mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
1cf42d6527
* First version ready * Final * Refactor * Update pat store * Website revert * Website revert * Update * Revert website * Revert docs to main * Revert docs to main * Fix eslint * Test * Fix table name
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>;
|