import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody = { organizationId?: string | undefined; tenantId?: string | undefined; accountId?: string | undefined; workspaceId?: string | undefined; keyId?: string | undefined; }; export declare const PostApiLeadScraperMicroserviceApiV1ApiKeysRotateStatus: { readonly StatusUnspecified: "STATUS_UNSPECIFIED"; readonly StatusActive: "STATUS_ACTIVE"; readonly StatusSuspended: "STATUS_SUSPENDED"; readonly StatusPendingVerification: "STATUS_PENDING_VERIFICATION"; readonly StatusRevoked: "STATUS_REVOKED"; readonly StatusExpired: "STATUS_EXPIRED"; readonly StatusRateLimited: "STATUS_RATE_LIMITED"; readonly StatusPendingReview: "STATUS_PENDING_REVIEW"; readonly StatusDeprecated: "STATUS_DEPRECATED"; readonly StatusMaintenance: "STATUS_MAINTENANCE"; }; export type PostApiLeadScraperMicroserviceApiV1ApiKeysRotateStatus = ClosedEnum; export type NewApiKey = { id?: string | undefined; name?: string | undefined; keyHash?: string | undefined; keyPrefix?: string | undefined; scopes?: Array | undefined; allowedIps?: Array | undefined; allowedDomains?: Array | undefined; allowedEnvironments?: Array | undefined; isTestKey?: boolean | undefined; requestsPerSecond?: number | undefined; requestsPerDay?: number | undefined; concurrentRequests?: number | undefined; monthlyRequestQuota?: string | undefined; costPerRequest?: number | undefined; billingTier?: string | undefined; totalRequests?: string | undefined; totalErrors?: string | undefined; lastUsedAt?: Date | undefined; averageResponseTime?: number | undefined; endpointUsageJson?: string | undefined; errorRatesJson?: string | undefined; recentErrors?: string | undefined; successfulRequestsCount?: number | undefined; successRate?: number | undefined; status?: PostApiLeadScraperMicroserviceApiV1ApiKeysRotateStatus | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; expiresAt?: Date | undefined; deletedAt?: Date | undefined; lastRotatedAt?: Date | undefined; lastSecurityReviewAt?: Date | undefined; requiresClientSecret?: boolean | undefined; clientSecretHash?: string | undefined; enforceHttps?: boolean | undefined; enforceSigning?: boolean | undefined; allowedSignatureAlgorithms?: Array | undefined; enforceMutualTls?: boolean | undefined; clientCertificateHash?: string | undefined; requireRequestSigning?: boolean | undefined; description?: string | undefined; metadataJson?: string | undefined; tags?: Array | undefined; apiVersion?: string | undefined; supportedFeatures?: Array | undefined; documentationUrl?: string | undefined; supportContact?: string | undefined; logAllRequests?: boolean | undefined; lastRotationReason?: string | undefined; lastRotationDate?: Date | undefined; rotationFrequencyDays?: number | undefined; complianceStandards?: Array | undefined; requiresAuditLogging?: boolean | undefined; dataResidency?: string | undefined; approvedIntegrations?: Array | undefined; alertEmails?: Array | undefined; webhookUrl?: string | undefined; alertOnQuotaThreshold?: boolean | undefined; quotaAlertThreshold?: number | undefined; alertOnErrorSpike?: boolean | undefined; errorAlertThreshold?: number | undefined; monitoringIntegrations?: Array | undefined; encrypted?: boolean | undefined; dataClassification?: string | undefined; maxUses?: number | undefined; rateLimit?: number | undefined; }; /** * Rotates an API key while maintaining its configuration */ export type PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody = { newApiKey?: NewApiKey | undefined; newKeyValue?: string | undefined; oldKeyExpiry?: Date | undefined; }; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody$inboundSchema: z.ZodType; /** @internal */ export type PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody$Outbound = { organizationId?: string | undefined; tenantId?: string | undefined; accountId?: string | undefined; workspaceId?: string | undefined; keyId?: string | undefined; }; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody$ { /** @deprecated use `PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody$Outbound` instead. */ type Outbound = PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody$Outbound; } export declare function postApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBodyToJSON(postApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody: PostApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBody): string; export declare function postApiLeadScraperMicroserviceApiV1ApiKeysRotateRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1ApiKeysRotateStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1ApiKeysRotateStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostApiLeadScraperMicroserviceApiV1ApiKeysRotateStatus$ { /** @deprecated use `PostApiLeadScraperMicroserviceApiV1ApiKeysRotateStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly StatusUnspecified: "STATUS_UNSPECIFIED"; readonly StatusActive: "STATUS_ACTIVE"; readonly StatusSuspended: "STATUS_SUSPENDED"; readonly StatusPendingVerification: "STATUS_PENDING_VERIFICATION"; readonly StatusRevoked: "STATUS_REVOKED"; readonly StatusExpired: "STATUS_EXPIRED"; readonly StatusRateLimited: "STATUS_RATE_LIMITED"; readonly StatusPendingReview: "STATUS_PENDING_REVIEW"; readonly StatusDeprecated: "STATUS_DEPRECATED"; readonly StatusMaintenance: "STATUS_MAINTENANCE"; }>; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1ApiKeysRotateStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly StatusUnspecified: "STATUS_UNSPECIFIED"; readonly StatusActive: "STATUS_ACTIVE"; readonly StatusSuspended: "STATUS_SUSPENDED"; readonly StatusPendingVerification: "STATUS_PENDING_VERIFICATION"; readonly StatusRevoked: "STATUS_REVOKED"; readonly StatusExpired: "STATUS_EXPIRED"; readonly StatusRateLimited: "STATUS_RATE_LIMITED"; readonly StatusPendingReview: "STATUS_PENDING_REVIEW"; readonly StatusDeprecated: "STATUS_DEPRECATED"; readonly StatusMaintenance: "STATUS_MAINTENANCE"; }>; } /** @internal */ export declare const NewApiKey$inboundSchema: z.ZodType; /** @internal */ export type NewApiKey$Outbound = { id?: string | undefined; name?: string | undefined; keyHash?: string | undefined; keyPrefix?: string | undefined; scopes?: Array | undefined; allowedIps?: Array | undefined; allowedDomains?: Array | undefined; allowedEnvironments?: Array | undefined; isTestKey?: boolean | undefined; requestsPerSecond?: number | undefined; requestsPerDay?: number | undefined; concurrentRequests?: number | undefined; monthlyRequestQuota?: string | undefined; costPerRequest?: number | undefined; billingTier?: string | undefined; totalRequests?: string | undefined; totalErrors?: string | undefined; lastUsedAt?: string | undefined; averageResponseTime?: number | undefined; endpointUsageJson?: string | undefined; errorRatesJson?: string | undefined; recentErrors?: string | undefined; successfulRequestsCount?: number | undefined; successRate?: number | undefined; status: string; createdAt?: string | undefined; updatedAt?: string | undefined; expiresAt?: string | undefined; deletedAt?: string | undefined; lastRotatedAt?: string | undefined; lastSecurityReviewAt?: string | undefined; requiresClientSecret?: boolean | undefined; clientSecretHash?: string | undefined; enforceHttps?: boolean | undefined; enforceSigning?: boolean | undefined; allowedSignatureAlgorithms?: Array | undefined; enforceMutualTls?: boolean | undefined; clientCertificateHash?: string | undefined; requireRequestSigning?: boolean | undefined; description?: string | undefined; metadataJson?: string | undefined; tags?: Array | undefined; apiVersion?: string | undefined; supportedFeatures?: Array | undefined; documentationUrl?: string | undefined; supportContact?: string | undefined; logAllRequests?: boolean | undefined; lastRotationReason?: string | undefined; lastRotationDate?: string | undefined; rotationFrequencyDays?: number | undefined; complianceStandards?: Array | undefined; requiresAuditLogging?: boolean | undefined; dataResidency?: string | undefined; approvedIntegrations?: Array | undefined; alertEmails?: Array | undefined; webhookUrl?: string | undefined; alertOnQuotaThreshold?: boolean | undefined; quotaAlertThreshold?: number | undefined; alertOnErrorSpike?: boolean | undefined; errorAlertThreshold?: number | undefined; monitoringIntegrations?: Array | undefined; encrypted?: boolean | undefined; dataClassification?: string | undefined; maxUses?: number | undefined; rateLimit?: number | undefined; }; /** @internal */ export declare const NewApiKey$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace NewApiKey$ { /** @deprecated use `NewApiKey$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `NewApiKey$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `NewApiKey$Outbound` instead. */ type Outbound = NewApiKey$Outbound; } export declare function newApiKeyToJSON(newApiKey: NewApiKey): string; export declare function newApiKeyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody$inboundSchema: z.ZodType; /** @internal */ export type PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody$Outbound = { newApiKey?: NewApiKey$Outbound | undefined; newKeyValue?: string | undefined; oldKeyExpiry?: string | undefined; }; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody$ { /** @deprecated use `PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody$Outbound` instead. */ type Outbound = PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody$Outbound; } export declare function postApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBodyToJSON(postApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody: PostApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBody): string; export declare function postApiLeadScraperMicroserviceApiV1ApiKeysRotateResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postapileadscrapermicroserviceapiv1apikeysrotate.d.ts.map