mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
29 lines
968 B
TypeScript
29 lines
968 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
|
||
|
export const adminCountSchema = {
|
||
|
$id: '#/components/schemas/adminCountSchema',
|
||
|
type: 'object',
|
||
|
additionalProperties: false,
|
||
|
description: 'Contains total admin counts for an Unleash instance.',
|
||
|
required: ['password', 'noPassword', 'service'],
|
||
|
properties: {
|
||
|
password: {
|
||
|
type: 'number',
|
||
|
description: 'Total number of admins that have a password set.',
|
||
|
},
|
||
|
noPassword: {
|
||
|
type: 'number',
|
||
|
description:
|
||
|
'Total number of admins that do not have a password set. May be SSO, but may also be users that did not set a password yet.',
|
||
|
},
|
||
|
service: {
|
||
|
type: 'number',
|
||
|
description:
|
||
|
'Total number of service accounts that have the admin root role.',
|
||
|
},
|
||
|
},
|
||
|
components: {},
|
||
|
} as const;
|
||
|
|
||
|
export type AdminCountSchema = FromSchema<typeof adminCountSchema>;
|