2022-08-26 09:09:48 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const setUiConfigSchema = {
|
|
|
|
$id: '#/components/schemas/setUiConfigSchema',
|
|
|
|
type: 'object',
|
|
|
|
additionalProperties: false,
|
2023-07-19 17:18:47 +02:00
|
|
|
description: 'Unleash configuration settings affect the admin UI.',
|
2022-08-26 09:09:48 +02:00
|
|
|
properties: {
|
|
|
|
frontendSettings: {
|
|
|
|
type: 'object',
|
2023-07-19 17:18:47 +02:00
|
|
|
description: 'Settings related to the front-end API.',
|
2022-08-26 09:09:48 +02:00
|
|
|
additionalProperties: false,
|
|
|
|
required: ['frontendApiOrigins'],
|
|
|
|
properties: {
|
|
|
|
frontendApiOrigins: {
|
2023-07-19 17:18:47 +02:00
|
|
|
description:
|
|
|
|
'The list of origins that the front-end API should accept requests from.',
|
|
|
|
example: ['*'],
|
2022-08-26 09:09:48 +02:00
|
|
|
type: 'array',
|
|
|
|
items: { type: 'string' },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type SetUiConfigSchema = FromSchema<typeof setUiConfigSchema>;
|