unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
33 lines • 1.34 kB
JavaScript
export const createProjectApiTokenSchema = {
type: 'object',
required: ['tokenName', 'type'],
$id: '#/components/schemas/createProjectApiTokenSchema',
description: 'The schema for creating a project API token. This schema is used to create a new project API token.',
properties: {
type: {
type: 'string',
pattern: '^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$',
description: `A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive).`,
example: 'frontend',
},
environment: {
type: 'string',
description: 'The environment that the token should be valid for. Defaults to "default".',
example: 'development',
default: 'default',
},
expiresAt: {
type: 'string',
description: 'The date and time when the token should expire. The date should be in ISO 8601 format.',
example: '2023-10-01T00:00:00Z',
format: 'date-time',
},
tokenName: {
type: 'string',
description: 'A unique name for this particular token',
example: 'some-user',
},
},
components: {},
};
//# sourceMappingURL=create-project-api-token-schema.js.map