/** * Athena API * REST API for the Athena system * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ServiceToken */ export interface ServiceToken { /** * Unique identifier * @type {string} * @memberof ServiceToken */ id: string; /** * Name of the service consumer * @type {string} * @memberof ServiceToken */ consumerName: string; /** * Whether the token is active * @type {boolean} * @memberof ServiceToken */ active: boolean; /** * Role assigned to the token * @type {string} * @memberof ServiceToken */ role: ServiceTokenRoleEnum; /** * Creation timestamp * @type {Date} * @memberof ServiceToken */ createdAt: Date; /** * Last update timestamp * @type {Date} * @memberof ServiceToken */ updatedAt: Date; } /** * @export */ export declare const ServiceTokenRoleEnum: { readonly Consumer: "consumer"; readonly Admin: "admin"; }; export type ServiceTokenRoleEnum = typeof ServiceTokenRoleEnum[keyof typeof ServiceTokenRoleEnum]; /** * Check if a given object implements the ServiceToken interface. */ export declare function instanceOfServiceToken(value: object): value is ServiceToken; export declare function ServiceTokenFromJSON(json: any): ServiceToken; export declare function ServiceTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceToken; export declare function ServiceTokenToJSON(json: any): ServiceToken; export declare function ServiceTokenToJSONTyped(value?: ServiceToken | null, ignoreDiscriminator?: boolean): any;