mirror of
https://github.com/openziti/zrok.git
synced 2026-09-27 17:55:51 -04:00
initial rough pass for a stored token implementation
This commit is contained in:
@@ -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'
|
||||
}
|
||||
@@ -230,3 +230,10 @@
|
||||
*
|
||||
* @property {string} email
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef inviteGenerateRequest
|
||||
* @memberof module:types
|
||||
*
|
||||
* @property {string[]} tokens
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user