import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type WebhookCredentialsUpdate = { /** * New secret (only allowed for admin). */ secret?: string | undefined; /** * Previous secret for rotation (only allowed for admin). */ previousSecret?: string | undefined; /** * Invalidation time for previous secret (only allowed for admin). */ previousSecretInvalidAt?: Date | undefined; /** * Set to true to rotate the secret. The current secret becomes the previous_secret, and a new secret is generated. `previous_secret_invalid_at` defaults to 24h if not provided. */ rotateSecret?: boolean | undefined; }; /** @internal */ export declare const WebhookCredentialsUpdate$inboundSchema: z.ZodType; /** @internal */ export type WebhookCredentialsUpdate$Outbound = { secret?: string | undefined; previous_secret?: string | undefined; previous_secret_invalid_at?: string | undefined; rotate_secret?: boolean | undefined; }; /** @internal */ export declare const WebhookCredentialsUpdate$outboundSchema: z.ZodType; export declare function webhookCredentialsUpdateToJSON(webhookCredentialsUpdate: WebhookCredentialsUpdate): string; export declare function webhookCredentialsUpdateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=webhookcredentialsupdate.d.ts.map