1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-31 01:16:01 +02:00
unleash.unleash/src/lib/openapi/spec/ids-schema.ts
Christopher Kolstad ea38877b0c
feat: List and delete inactive users
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>
2024-02-05 14:07:38 +01:00

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>;