2022-09-16 09:54:27 +02:00
import { FromSchema } from 'json-schema-to-ts' ;
import { patSchema } from './pat-schema' ;
export const patsSchema = {
$id : '#/components/schemas/patsSchema' ,
type : 'object' ,
2023-05-11 09:11:17 +02:00
description :
2024-02-01 15:28:46 +01:00
'Contains a collection of [personal access tokens](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens), or PATs. PATs are automatically scoped to the authenticated user.' ,
2022-09-16 09:54:27 +02:00
properties : {
pats : {
type : 'array' ,
2024-02-01 15:28:46 +01:00
description : 'A collection of PATs.' ,
2022-09-16 09:54:27 +02:00
items : {
2024-02-01 15:28:46 +01:00
$ref : patSchema.$id ,
2022-09-16 09:54:27 +02:00
} ,
} ,
} ,
components : {
schemas : {
patSchema ,
} ,
} ,
} as const ;
export type PatsSchema = FromSchema < typeof patsSchema > ;