UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

66 lines 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.publicSignupTokenSchema = void 0; const user_schema_1 = require("./user-schema"); const role_schema_1 = require("./role-schema"); exports.publicSignupTokenSchema = { $id: '#/components/schemas/publicSignupTokenSchema', type: 'object', additionalProperties: false, required: [ 'secret', 'url', 'name', 'expiresAt', 'createdAt', 'createdBy', 'enabled', 'role', ], properties: { secret: { type: 'string', }, url: { description: 'The public signup link for the token. Users who follow this link will be taken to a signup page where they can create an Unleash user.', type: 'string', }, name: { type: 'string', }, enabled: { type: 'boolean', }, expiresAt: { type: 'string', format: 'date-time', }, createdAt: { type: 'string', format: 'date-time', }, createdBy: { type: 'string', nullable: true, }, users: { type: 'array', description: 'Array of users that have signed up using the token.', items: { $ref: '#/components/schemas/userSchema', }, nullable: true, }, role: { description: 'Users who sign up using this token will be given this role.', $ref: '#/components/schemas/roleSchema', }, }, components: { schemas: { userSchema: user_schema_1.userSchema, roleSchema: role_schema_1.roleSchema, }, }, }; //# sourceMappingURL=public-signup-token-schema.js.map