mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
5806b6748f
* Implement user grouping feature for permissions Co-authored-by: Thomas Heartman <thomas@getunleash.ai> Co-authored-by: Jaanus Sellin <sellinjaanus@gmail.com> Co-authored-by: Nuno Góis <github@nunogois.com> Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
28 lines
720 B
TypeScript
28 lines
720 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
import { groupSchema } from './group-schema';
|
|
import { groupUserModelSchema } from './group-user-model-schema';
|
|
import { userSchema } from './user-schema';
|
|
|
|
export const groupsSchema = {
|
|
$id: '#/components/schemas/groupsSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
properties: {
|
|
groups: {
|
|
type: 'array',
|
|
items: {
|
|
$ref: '#/components/schemas/groupSchema',
|
|
},
|
|
},
|
|
},
|
|
components: {
|
|
schemas: {
|
|
groupSchema,
|
|
groupUserModelSchema,
|
|
userSchema,
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export type GroupsSchema = FromSchema<typeof groupsSchema>;
|