unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
121 lines (120 loc) • 4.56 kB
TypeScript
import { FromSchema } from 'json-schema-to-ts';
export declare const publicSignupTokenSchema: {
readonly $id: "#/components/schemas/publicSignupTokenSchema";
readonly type: "object";
readonly additionalProperties: false;
readonly required: readonly ["secret", "url", "name", "expiresAt", "createdAt", "createdBy", "enabled", "role"];
readonly properties: {
readonly secret: {
readonly type: "string";
};
readonly url: {
readonly 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.";
readonly type: "string";
};
readonly name: {
readonly type: "string";
};
readonly enabled: {
readonly type: "boolean";
};
readonly expiresAt: {
readonly type: "string";
readonly format: "date-time";
};
readonly createdAt: {
readonly type: "string";
readonly format: "date-time";
};
readonly createdBy: {
readonly type: "string";
readonly nullable: true;
};
readonly users: {
readonly type: "array";
readonly description: "Array of users that have signed up using the token.";
readonly items: {
readonly $ref: "#/components/schemas/userSchema";
};
readonly nullable: true;
};
readonly role: {
readonly description: "Users who sign up using this token will be given this role.";
readonly $ref: "#/components/schemas/roleSchema";
};
};
readonly components: {
readonly schemas: {
readonly userSchema: {
readonly $id: "#/components/schemas/userSchema";
readonly type: "object";
readonly additionalProperties: false;
readonly required: readonly ["id"];
readonly properties: {
readonly id: {
readonly type: "number";
};
readonly isAPI: {
readonly type: "boolean";
};
readonly name: {
readonly type: "string";
};
readonly email: {
readonly type: "string";
};
readonly username: {
readonly type: "string";
};
readonly imageUrl: {
readonly type: "string";
};
readonly inviteLink: {
readonly type: "string";
};
readonly loginAttempts: {
readonly type: "number";
};
readonly emailSent: {
readonly type: "boolean";
};
readonly rootRole: {
readonly type: "number";
};
readonly seenAt: {
readonly type: "string";
readonly format: "date-time";
readonly nullable: true;
};
readonly createdAt: {
readonly type: "string";
readonly format: "date-time";
};
};
readonly components: {};
};
readonly roleSchema: {
readonly $id: "#/components/schemas/roleSchema";
readonly type: "object";
readonly additionalProperties: false;
readonly required: readonly ["id", "type", "name"];
readonly properties: {
readonly id: {
readonly type: "number";
};
readonly type: {
readonly type: "string";
};
readonly name: {
readonly type: "string";
};
readonly description: {
readonly type: "string";
};
};
readonly components: {};
};
};
};
};
export declare type PublicSignupTokenSchema = FromSchema<typeof publicSignupTokenSchema>;