import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ApiRoutersApiKeyPairsSchemasCreator } from "./apiroutersapikeypairsschemascreator.js"; import { CertificateAlgorithm } from "./certificatealgorithm.js"; import { MerchantAccountSummary } from "./merchantaccountsummary.js"; import { Role } from "./role.js"; export type APIKeyPair = { /** * The type of this resource. */ type: "api-key-pair"; /** * The ID for the API key pair. */ id: string; /** * The unique thumbprint that identifies the API key pair. */ thumbprint: string; /** * The display name for the API key pair. */ displayName: string; algorithm: CertificateAlgorithm; /** * Whether the API key pair is active and can be used to authenticate. */ active: boolean; /** * The PEM-encoded private key. Only returned once, in the response to creating the API key pair, and only when Gr4vy generated the key pair. Store it securely, as it cannot be retrieved later. */ privateKey?: string | null | undefined; /** * The date and time when this API key pair was created. */ createdAt: Date; /** * The date and time when this API key pair was last updated. */ updatedAt: Date; /** * The date and time when this API key pair was last used to authenticate, or `null` if it has never been used. */ lastUsedAt?: Date | null | undefined; /** * The user or API key pair that created this API key pair. */ creator?: ApiRoutersApiKeyPairsSchemasCreator | null | undefined; /** * The merchant accounts this API key pair has access to. An empty list means it has access to all merchant accounts. */ merchantAccounts?: Array | undefined; /** * The roles assigned to this API key pair. */ roles?: Array | undefined; }; /** @internal */ export declare const APIKeyPair$inboundSchema: z.ZodType; export declare function apiKeyPairFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=apikeypair.d.ts.map