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 PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody = { organizationId?: string | undefined; tenantId?: string | undefined; keyId?: string | undefined; }; export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateStatus: { 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 PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateStatus = ClosedEnum; export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateScopes: { readonly TenantApiKeyScopeUnspecified: "TENANT_API_KEY_SCOPE_UNSPECIFIED"; readonly TenantApiKeyScopeReadJobs: "TENANT_API_KEY_SCOPE_READ_JOBS"; readonly TenantApiKeyScopeReadLeads: "TENANT_API_KEY_SCOPE_READ_LEADS"; readonly TenantApiKeyScopeReadWorkflows: "TENANT_API_KEY_SCOPE_READ_WORKFLOWS"; readonly TenantApiKeyScopeReadAnalytics: "TENANT_API_KEY_SCOPE_READ_ANALYTICS"; readonly TenantApiKeyScopeReadSettings: "TENANT_API_KEY_SCOPE_READ_SETTINGS"; readonly TenantApiKeyScopeWriteJobs: "TENANT_API_KEY_SCOPE_WRITE_JOBS"; readonly TenantApiKeyScopeWriteLeads: "TENANT_API_KEY_SCOPE_WRITE_LEADS"; readonly TenantApiKeyScopeWriteWorkflows: "TENANT_API_KEY_SCOPE_WRITE_WORKFLOWS"; readonly TenantApiKeyScopeWriteSettings: "TENANT_API_KEY_SCOPE_WRITE_SETTINGS"; readonly TenantApiKeyScopeDeleteJobs: "TENANT_API_KEY_SCOPE_DELETE_JOBS"; readonly TenantApiKeyScopeDeleteLeads: "TENANT_API_KEY_SCOPE_DELETE_LEADS"; readonly TenantApiKeyScopeDeleteWorkflows: "TENANT_API_KEY_SCOPE_DELETE_WORKFLOWS"; readonly TenantApiKeyScopeExportData: "TENANT_API_KEY_SCOPE_EXPORT_DATA"; readonly TenantApiKeyScopeManageKeys: "TENANT_API_KEY_SCOPE_MANAGE_KEYS"; readonly TenantApiKeyScopeBillingRead: "TENANT_API_KEY_SCOPE_BILLING_READ"; readonly TenantApiKeyScopeBillingWrite: "TENANT_API_KEY_SCOPE_BILLING_WRITE"; readonly TenantApiKeyScopeAdmin: "TENANT_API_KEY_SCOPE_ADMIN"; }; export type PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateScopes = ClosedEnum; export type PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey = { id?: string | undefined; keyHash?: string | undefined; keyPrefix?: string | undefined; name?: string | undefined; description?: string | undefined; status?: PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateStatus | undefined; scopes?: Array | undefined; maxUses?: number | undefined; allowedIps?: Array | undefined; useCount?: number | undefined; expiresAt?: Date | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; deletedAt?: Date | undefined; }; /** * Rotates a tenant API key while maintaining its configuration */ export type PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody = { newApiKey?: PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey | undefined; newKeyValue?: string | undefined; oldKeyExpiry?: Date | undefined; tenantId?: string | undefined; organizationId?: string | undefined; }; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody$inboundSchema: z.ZodType; /** @internal */ export type PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody$Outbound = { organizationId?: string | undefined; tenantId?: string | undefined; keyId?: string | undefined; }; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody$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 PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody$ { /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody$Outbound` instead. */ type Outbound = PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody$Outbound; } export declare function postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBodyToJSON(postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody: PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBody): string; export declare function postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateStatus$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 PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateStatus$ { /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateStatus$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 `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateStatus$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 PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateScopes$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateScopes$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 PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateScopes$ { /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateScopes$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly TenantApiKeyScopeUnspecified: "TENANT_API_KEY_SCOPE_UNSPECIFIED"; readonly TenantApiKeyScopeReadJobs: "TENANT_API_KEY_SCOPE_READ_JOBS"; readonly TenantApiKeyScopeReadLeads: "TENANT_API_KEY_SCOPE_READ_LEADS"; readonly TenantApiKeyScopeReadWorkflows: "TENANT_API_KEY_SCOPE_READ_WORKFLOWS"; readonly TenantApiKeyScopeReadAnalytics: "TENANT_API_KEY_SCOPE_READ_ANALYTICS"; readonly TenantApiKeyScopeReadSettings: "TENANT_API_KEY_SCOPE_READ_SETTINGS"; readonly TenantApiKeyScopeWriteJobs: "TENANT_API_KEY_SCOPE_WRITE_JOBS"; readonly TenantApiKeyScopeWriteLeads: "TENANT_API_KEY_SCOPE_WRITE_LEADS"; readonly TenantApiKeyScopeWriteWorkflows: "TENANT_API_KEY_SCOPE_WRITE_WORKFLOWS"; readonly TenantApiKeyScopeWriteSettings: "TENANT_API_KEY_SCOPE_WRITE_SETTINGS"; readonly TenantApiKeyScopeDeleteJobs: "TENANT_API_KEY_SCOPE_DELETE_JOBS"; readonly TenantApiKeyScopeDeleteLeads: "TENANT_API_KEY_SCOPE_DELETE_LEADS"; readonly TenantApiKeyScopeDeleteWorkflows: "TENANT_API_KEY_SCOPE_DELETE_WORKFLOWS"; readonly TenantApiKeyScopeExportData: "TENANT_API_KEY_SCOPE_EXPORT_DATA"; readonly TenantApiKeyScopeManageKeys: "TENANT_API_KEY_SCOPE_MANAGE_KEYS"; readonly TenantApiKeyScopeBillingRead: "TENANT_API_KEY_SCOPE_BILLING_READ"; readonly TenantApiKeyScopeBillingWrite: "TENANT_API_KEY_SCOPE_BILLING_WRITE"; readonly TenantApiKeyScopeAdmin: "TENANT_API_KEY_SCOPE_ADMIN"; }>; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateScopes$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly TenantApiKeyScopeUnspecified: "TENANT_API_KEY_SCOPE_UNSPECIFIED"; readonly TenantApiKeyScopeReadJobs: "TENANT_API_KEY_SCOPE_READ_JOBS"; readonly TenantApiKeyScopeReadLeads: "TENANT_API_KEY_SCOPE_READ_LEADS"; readonly TenantApiKeyScopeReadWorkflows: "TENANT_API_KEY_SCOPE_READ_WORKFLOWS"; readonly TenantApiKeyScopeReadAnalytics: "TENANT_API_KEY_SCOPE_READ_ANALYTICS"; readonly TenantApiKeyScopeReadSettings: "TENANT_API_KEY_SCOPE_READ_SETTINGS"; readonly TenantApiKeyScopeWriteJobs: "TENANT_API_KEY_SCOPE_WRITE_JOBS"; readonly TenantApiKeyScopeWriteLeads: "TENANT_API_KEY_SCOPE_WRITE_LEADS"; readonly TenantApiKeyScopeWriteWorkflows: "TENANT_API_KEY_SCOPE_WRITE_WORKFLOWS"; readonly TenantApiKeyScopeWriteSettings: "TENANT_API_KEY_SCOPE_WRITE_SETTINGS"; readonly TenantApiKeyScopeDeleteJobs: "TENANT_API_KEY_SCOPE_DELETE_JOBS"; readonly TenantApiKeyScopeDeleteLeads: "TENANT_API_KEY_SCOPE_DELETE_LEADS"; readonly TenantApiKeyScopeDeleteWorkflows: "TENANT_API_KEY_SCOPE_DELETE_WORKFLOWS"; readonly TenantApiKeyScopeExportData: "TENANT_API_KEY_SCOPE_EXPORT_DATA"; readonly TenantApiKeyScopeManageKeys: "TENANT_API_KEY_SCOPE_MANAGE_KEYS"; readonly TenantApiKeyScopeBillingRead: "TENANT_API_KEY_SCOPE_BILLING_READ"; readonly TenantApiKeyScopeBillingWrite: "TENANT_API_KEY_SCOPE_BILLING_WRITE"; readonly TenantApiKeyScopeAdmin: "TENANT_API_KEY_SCOPE_ADMIN"; }>; } /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$inboundSchema: z.ZodType; /** @internal */ export type PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$Outbound = { id?: string | undefined; keyHash?: string | undefined; keyPrefix?: string | undefined; name?: string | undefined; description?: string | undefined; status: string; scopes?: Array | undefined; maxUses?: number | undefined; allowedIps?: Array | undefined; useCount?: number | undefined; expiresAt?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; deletedAt?: string | undefined; }; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$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 PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$ { /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$Outbound` instead. */ type Outbound = PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$Outbound; } export declare function postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKeyToJSON(postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey: PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey): string; export declare function postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKeyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody$inboundSchema: z.ZodType; /** @internal */ export type PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody$Outbound = { newApiKey?: PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateNewApiKey$Outbound | undefined; newKeyValue?: string | undefined; oldKeyExpiry?: string | undefined; tenantId?: string | undefined; organizationId?: string | undefined; }; /** @internal */ export declare const PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody$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 PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody$ { /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody$Outbound` instead. */ type Outbound = PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody$Outbound; } export declare function postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBodyToJSON(postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody: PostApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBody): string; export declare function postApiLeadScraperMicroserviceApiV1OrganizationsTenantsApiKeysRotateResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postapileadscrapermicroserviceapiv1organizationstenantsapikeysrotate.d.ts.map