mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-31 01:16:01 +02:00
Adds a new Inactive Users list component to admin/users for easier cleanup of users that are counted as inactive: No sign of activity (logins or api token usage) in the last 180 days. --------- Co-authored-by: David Leek <david@getunleash.io>
24 lines
597 B
TypeScript
24 lines
597 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const idsSchema = {
|
|
$id: '#/components/schemas/idsSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
description: 'Used for bulk deleting multiple ids',
|
|
required: ['ids'],
|
|
properties: {
|
|
ids: {
|
|
type: 'array',
|
|
description: 'Ids, for instance userid',
|
|
items: {
|
|
type: 'number',
|
|
minimum: 0,
|
|
},
|
|
example: [12, 212],
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type IdsSchema = FromSchema<typeof idsSchema>;
|