2022-09-16 09:54:27 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const patSchema = {
|
|
|
|
$id: '#/components/schemas/patSchema',
|
|
|
|
type: 'object',
|
|
|
|
properties: {
|
2022-10-10 12:35:12 +02:00
|
|
|
id: {
|
|
|
|
type: 'number',
|
|
|
|
},
|
2022-09-16 09:54:27 +02:00
|
|
|
secret: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
expiresAt: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'date-time',
|
|
|
|
nullable: true,
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'date-time',
|
|
|
|
nullable: true,
|
|
|
|
},
|
|
|
|
seenAt: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'date-time',
|
|
|
|
nullable: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
schemas: {},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type PatSchema = FromSchema<typeof patSchema>;
|