/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * 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. */ import type { APIKeyRoleV1 } from './APIKeyRoleV1.js'; import type { APIKeyTeamRoleV1 } from './APIKeyTeamRoleV1.js'; import type { ActorV1 } from './ActorV1.js'; /** * * @export * @interface APIKeyV1 */ export interface APIKeyV1 { /** * Freeform notes about this API key */ comments?: string; /** * When the API key was created */ created_at: Date; /** * */ creator: ActorV1; /** * When this API key stops working. If it's not set, the key never expires. */ expires_at?: Date; /** * Unique identifier for this API key */ id: string; /** * When the key was last used to authenticate a request */ last_used_at?: Date; /** * The name of the API key, for the user's reference */ name: string; /** * The account-level roles assigned to this API key */ roles: Array; /** * IDs of teams that this API key is scoped to */ team_ids: Array; /** * The team-level roles assigned to this API key */ team_roles: Array; /** * When the current token for this API was last issued. This is the last time the token was rotated, or when it was initially created. Older tokens may remain valid for up to an hour after they have been rotated, configured when you call the rotate endpoint. */ token_last_issued_at: Date; } /** * Check if a given object implements the APIKeyV1 interface. */ export declare function instanceOfAPIKeyV1(value: object): value is APIKeyV1; export declare function APIKeyV1FromJSON(json: any): APIKeyV1; export declare function APIKeyV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): APIKeyV1; export declare function APIKeyV1ToJSON(json: any): APIKeyV1; export declare function APIKeyV1ToJSONTyped(value?: APIKeyV1 | null, ignoreDiscriminator?: boolean): any;