mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
32 lines
694 B
TypeScript
32 lines
694 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
|
||
|
export const patSchema = {
|
||
|
$id: '#/components/schemas/patSchema',
|
||
|
type: 'object',
|
||
|
properties: {
|
||
|
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>;
|