initial rough pass for a stored token implementation

This commit is contained in:
Cam Otts
2023-01-09 11:00:37 -06:00
parent 0d8a3def4d
commit e5b749be71
24 changed files with 1186 additions and 19 deletions
+24
View File
@@ -0,0 +1,24 @@
/** @module invite */
// Auto-generated, edits will be overwritten
import * as gateway from './gateway'
/**
* @param {object} options Optional options
* @param {module:types.inviteGenerateRequest} [options.body]
* @return {Promise<object>} invitation tokens created
*/
export function inviteGenerate(options) {
if (!options) options = {}
const parameters = {
body: {
body: options.body
}
}
return gateway.request(inviteGenerateOperation, parameters)
}
const inviteGenerateOperation = {
path: '/invite/generate',
contentTypes: ['application/zrok.v1+json'],
method: 'post'
}
+7
View File
@@ -230,3 +230,10 @@
*
* @property {string} email
*/
/**
* @typedef inviteGenerateRequest
* @memberof module:types
*
* @property {string[]} tokens
*/