import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { APIKeyDeploymentSetupConfig } from "./apikeydeploymentsetupconfig.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export declare const CreateAPIKeyResponseType: { readonly Workspace: "workspace"; readonly Project: "project"; readonly Deployment: "deployment"; readonly DeploymentGroup: "deployment-group"; readonly Manager: "manager"; }; export type CreateAPIKeyResponseType = ClosedEnum; export type KeyInfo = { /** * Unique identifier for the api key. */ id: string; description: string | null; keyPrefix: string; type: CreateAPIKeyResponseType; role: string; workspaceId: string; projectId: string | null; deploymentId: string | null; deploymentGroupId: string | null; managerId: string | null; enabled: boolean; createdAt: Date; expiresAt: Date | null; lastUsedAt: Date | null; revokedAt: Date | null; deploymentSetupConfig: APIKeyDeploymentSetupConfig | null; }; /** * Response containing the new API key and its metadata */ export type CreateAPIKeyResponse = { /** * The generated API key value (only shown once) */ apiKey: string; keyInfo: KeyInfo; }; /** @internal */ export declare const CreateAPIKeyResponseType$inboundSchema: z.ZodEnum; /** @internal */ export declare const KeyInfo$inboundSchema: z.ZodType; export declare function keyInfoFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateAPIKeyResponse$inboundSchema: z.ZodType; export declare function createAPIKeyResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createapikeyresponse.d.ts.map