2022-09-30 13:01:32 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const createInvitedUserSchema = {
|
|
|
|
$id: '#/components/schemas/createInvitedUserSchema',
|
|
|
|
type: 'object',
|
|
|
|
additionalProperties: false,
|
|
|
|
required: ['email', 'name', 'password'],
|
2023-07-28 08:45:56 +02:00
|
|
|
description: 'Data used to create a user that has been invited to Unleash.',
|
2022-09-30 13:01:32 +02:00
|
|
|
properties: {
|
|
|
|
username: {
|
|
|
|
type: 'string',
|
2023-07-28 08:45:56 +02:00
|
|
|
description: "The user's username. Must be unique if provided.",
|
|
|
|
example: 'Hunter',
|
2022-09-30 13:01:32 +02:00
|
|
|
},
|
|
|
|
email: {
|
|
|
|
type: 'string',
|
2023-07-28 08:45:56 +02:00
|
|
|
description: "The invited user's email address",
|
|
|
|
example: 'hunter@example.com',
|
2022-09-30 13:01:32 +02:00
|
|
|
},
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
2023-07-28 08:45:56 +02:00
|
|
|
description: "The user's name",
|
|
|
|
example: 'Hunter Burgan',
|
2022-09-30 13:01:32 +02:00
|
|
|
},
|
|
|
|
password: {
|
|
|
|
type: 'string',
|
2023-07-28 08:45:56 +02:00
|
|
|
description: "The user's password",
|
|
|
|
example: 'hunter2',
|
2022-09-30 13:01:32 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type CreateInvitedUserSchema = FromSchema<
|
|
|
|
typeof createInvitedUserSchema
|
|
|
|
>;
|