1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00
unleash.unleash/src/lib/openapi/spec/public-signup-token-create-schema.ts
Christopher Kolstad 53354224fc
chore: Bump biome and configure husky (#6589)
Upgrades biome to 1.6.1, and updates husky pre-commit hook.

Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00

27 lines
806 B
TypeScript

import type { FromSchema } from 'json-schema-to-ts';
export const publicSignupTokenCreateSchema = {
$id: '#/components/schemas/publicSignupTokenCreateSchema',
type: 'object',
description:
'Used for creating a [public invite link](https://docs.getunleash.io/reference/public-signup#public-sign-up-tokens)',
additionalProperties: false,
required: ['name', 'expiresAt'],
properties: {
name: {
description: `The token's name.`,
type: 'string',
},
expiresAt: {
type: 'string',
description: `The token's expiration date.`,
format: 'date-time',
},
},
components: {},
} as const;
export type PublicSignupTokenCreateSchema = FromSchema<
typeof publicSignupTokenCreateSchema
>;