mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
27 lines
806 B
TypeScript
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
|
|
>;
|