2022-06-17 21:35:26 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const updateApiTokenSchema = {
|
|
|
|
$id: '#/components/schemas/updateApiTokenSchema',
|
|
|
|
type: 'object',
|
|
|
|
required: ['expiresAt'],
|
2023-07-06 09:30:31 +02:00
|
|
|
description: 'An object with fields to updated for a given API token.',
|
2022-06-17 21:35:26 +02:00
|
|
|
properties: {
|
|
|
|
expiresAt: {
|
2023-07-06 09:30:31 +02:00
|
|
|
description: 'The new time when this token should expire.',
|
|
|
|
example: '2023-09-04T11:26:24+02:00',
|
2022-06-17 21:35:26 +02:00
|
|
|
type: 'string',
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type UpdateApiTokenSchema = FromSchema<typeof updateApiTokenSchema>;
|