/** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * 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 { ApiKeyScope } from './ApiKeyScope'; import type { ApiKeyRequestUsage } from './ApiKeyRequestUsage'; import type { ApiKeyCreatedResource } from './ApiKeyCreatedResource'; import type { ApiKeyResourceTotals } from './ApiKeyResourceTotals'; /** * * @export * @interface ApiKeyUsageResponse */ export interface ApiKeyUsageResponse { /** * * @type {boolean} * @memberof ApiKeyUsageResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof ApiKeyUsageResponse */ type: string; /** * * @type {string} * @memberof ApiKeyUsageResponse */ id: string; /** * * @type {string} * @memberof ApiKeyUsageResponse */ name: string; /** * Credential storage lane. Scoped secrets are never stored in the legacy hash column. * @type {ApiKeyUsageResponseCredentialLaneEnum} * @memberof ApiKeyUsageResponse */ credentialLane: ApiKeyUsageResponseCredentialLaneEnum; /** * * @type {string} * @memberof ApiKeyUsageResponse */ keyPrefix: string; /** * * @type {string} * @memberof ApiKeyUsageResponse */ keyLastFour: string; /** * Box ID for a platform-managed machine key, or null for a user-created key. * @type {string} * @memberof ApiKeyUsageResponse */ sandboxId: string; /** * * @type {Date} * @memberof ApiKeyUsageResponse */ createdAt: Date; /** * * @type {Date} * @memberof ApiKeyUsageResponse */ lastUsedAt: Date; /** * * @type {ApiKeyRequestUsage} * @memberof ApiKeyUsageResponse */ usage: ApiKeyRequestUsage; /** * * @type {ApiKeyResourceTotals} * @memberof ApiKeyUsageResponse */ resources: ApiKeyResourceTotals; /** * * @type {Date} * @memberof ApiKeyUsageResponse */ expiresAt?: Date; /** * * @type {boolean} * @memberof ApiKeyUsageResponse */ expired?: boolean; /** * * @type {boolean} * @memberof ApiKeyUsageResponse */ expiringSoon?: boolean; /** * * @type {ApiKeyScope} * @memberof ApiKeyUsageResponse */ scope?: ApiKeyScope; /** * * @type {Array} * @memberof ApiKeyUsageResponse */ createdResources: Array; } /** * @export */ export declare const ApiKeyUsageResponseCredentialLaneEnum: { readonly Legacy: 'legacy'; readonly ScopedV1: 'scoped-v1'; }; export type ApiKeyUsageResponseCredentialLaneEnum = typeof ApiKeyUsageResponseCredentialLaneEnum[keyof typeof ApiKeyUsageResponseCredentialLaneEnum]; /** * Check if a given object implements the ApiKeyUsageResponse interface. */ export declare function instanceOfApiKeyUsageResponse(value: object): value is ApiKeyUsageResponse; export declare function ApiKeyUsageResponseFromJSON(json: any): ApiKeyUsageResponse; export declare function ApiKeyUsageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyUsageResponse; export declare function ApiKeyUsageResponseToJSON(json: any): ApiKeyUsageResponse; export declare function ApiKeyUsageResponseToJSONTyped(value?: ApiKeyUsageResponse | null, ignoreDiscriminator?: boolean): any;