mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
f8d30850e5
## About the changes Promoted experimental networkView flag into a configuration that relies on prometheusApi being configured. Also, a follow-up on https://github.com/Unleash/unleash/pull/3054 moving this code to enterprise because it doesn't make sense to maintain this code in OSS where it's not being used.
87 lines
2.0 KiB
TypeScript
87 lines
2.0 KiB
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
import { versionSchema } from './version-schema';
|
|
|
|
export const uiConfigSchema = {
|
|
$id: '#/components/schemas/uiConfigSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
required: ['version', 'unleashUrl', 'baseUriPath', 'versionInfo'],
|
|
properties: {
|
|
slogan: {
|
|
type: 'string',
|
|
},
|
|
name: {
|
|
type: 'string',
|
|
},
|
|
version: {
|
|
type: 'string',
|
|
},
|
|
environment: {
|
|
type: 'string',
|
|
},
|
|
unleashUrl: {
|
|
type: 'string',
|
|
},
|
|
baseUriPath: {
|
|
type: 'string',
|
|
},
|
|
disablePasswordAuth: {
|
|
type: 'boolean',
|
|
},
|
|
emailEnabled: {
|
|
type: 'boolean',
|
|
},
|
|
maintenanceMode: {
|
|
type: 'boolean',
|
|
},
|
|
segmentValuesLimit: {
|
|
type: 'number',
|
|
},
|
|
strategySegmentsLimit: {
|
|
type: 'number',
|
|
},
|
|
networkViewEnabled: {
|
|
type: 'boolean',
|
|
},
|
|
frontendApiOrigins: {
|
|
type: 'array',
|
|
items: {
|
|
type: 'string',
|
|
},
|
|
},
|
|
flags: {
|
|
type: 'object',
|
|
additionalProperties: {
|
|
type: 'boolean',
|
|
},
|
|
},
|
|
links: {
|
|
type: 'array',
|
|
items: {
|
|
type: 'object',
|
|
},
|
|
},
|
|
authenticationType: {
|
|
type: 'string',
|
|
enum: [
|
|
'open-source',
|
|
'demo',
|
|
'enterprise',
|
|
'hosted',
|
|
'custom',
|
|
'none',
|
|
],
|
|
},
|
|
versionInfo: {
|
|
$ref: '#/components/schemas/versionSchema',
|
|
},
|
|
},
|
|
components: {
|
|
schemas: {
|
|
versionSchema,
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export type UiConfigSchema = FromSchema<typeof uiConfigSchema>;
|