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 APIKeyType: { readonly Workspace: "workspace"; readonly Project: "project"; readonly Deployment: "deployment"; readonly DeploymentGroup: "deployment-group"; readonly Manager: "manager"; }; export type APIKeyType = ClosedEnum; /** * User information associated with the API key */ export type CreatedByUser = { id: string; email: string; image: string | null; }; /** * API key information */ export type APIKey = { /** * Unique identifier for the api key. */ id: string; description: string | null; keyPrefix: string; type: APIKeyType; 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; /** * User information associated with the API key */ createdByUser: CreatedByUser | null; }; /** @internal */ export declare const APIKeyType$inboundSchema: z.ZodEnum; /** @internal */ export declare const CreatedByUser$inboundSchema: z.ZodType; export declare function createdByUserFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const APIKey$inboundSchema: z.ZodType; export declare function apiKeyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=apikey.d.ts.map