import * as z from "zod/v4-mini"; import { ClosedEnum, OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; export declare const UpdateWebhookEventTypeRequest: { readonly QueueItemNew: "QUEUE_ITEM_NEW"; readonly QueueItemCompleted: "QUEUE_ITEM_COMPLETED"; readonly QueueItemAction: "QUEUE_ITEM_ACTION"; readonly QueueItemRejected: "QUEUE_ITEM_REJECTED"; readonly QueueItemAllowed: "QUEUE_ITEM_ALLOWED"; readonly AuthorBlocked: "AUTHOR_BLOCKED"; readonly AuthorUnblocked: "AUTHOR_UNBLOCKED"; readonly AuthorSuspended: "AUTHOR_SUSPENDED"; readonly AuthorUpdated: "AUTHOR_UPDATED"; readonly AuthorTrustLevelChanged: "AUTHOR_TRUST_LEVEL_CHANGED"; readonly AuthorAction: "AUTHOR_ACTION"; }; export type UpdateWebhookEventTypeRequest = ClosedEnum; export type UpdateWebhookRequestBody = { /** * The webhook's name, used to identify it in the dashboard */ name?: string | undefined; /** * The webhook's description */ description?: string | null | undefined; /** * The webhook's URL. We'll call this URL when an event occurs. */ url?: string | undefined; /** * Event types this webhook subscribes to. One webhook URL receives all events you list here. */ eventTypes?: Array | undefined; }; export type UpdateWebhookRequest = { /** * The ID of the webhook to update. */ id: string; /** * The project to act on, when you call with an organization key. Optional when the organization has one project. A project key acts on its own project: naming another one is an error. */ projectId?: string | undefined; body: UpdateWebhookRequestBody; }; export declare const UpdateWebhookEventTypeResponse: { readonly QueueItemNew: "QUEUE_ITEM_NEW"; readonly QueueItemCompleted: "QUEUE_ITEM_COMPLETED"; readonly QueueItemAction: "QUEUE_ITEM_ACTION"; readonly QueueItemRejected: "QUEUE_ITEM_REJECTED"; readonly QueueItemAllowed: "QUEUE_ITEM_ALLOWED"; readonly AuthorBlocked: "AUTHOR_BLOCKED"; readonly AuthorUnblocked: "AUTHOR_UNBLOCKED"; readonly AuthorSuspended: "AUTHOR_SUSPENDED"; readonly AuthorUpdated: "AUTHOR_UPDATED"; readonly AuthorTrustLevelChanged: "AUTHOR_TRUST_LEVEL_CHANGED"; readonly AuthorAction: "AUTHOR_ACTION"; }; export type UpdateWebhookEventTypeResponse = OpenEnum; /** * Payload envelope version. V2 is the Stripe-style envelope; V1 is the legacy flat shape and is read-only via this API. */ export declare const UpdateWebhookPayloadVersion: { readonly V1: "V1"; readonly V2: "V2"; }; /** * Payload envelope version. V2 is the Stripe-style envelope; V1 is the legacy flat shape and is read-only via this API. */ export type UpdateWebhookPayloadVersion = OpenEnum; /** * Webhook updated successfully */ export type UpdateWebhookResponse = { /** * The ID of the webhook. */ id: string; /** * The webhook's name. */ name: string; /** * The webhook's description. */ description?: string | null | undefined; /** * The URL we call when a subscribed event occurs. */ url: string; /** * Event types this webhook subscribes to. Empty for legacy v1 webhooks, which subscribe via their single deprecated `type` instead. */ eventTypes: Array; /** * Payload envelope version. V2 is the Stripe-style envelope; V1 is the legacy flat shape and is read-only via this API. */ payloadVersion: UpdateWebhookPayloadVersion; /** * The date the webhook was created. */ createdAt: string; }; /** @internal */ export declare const UpdateWebhookEventTypeRequest$outboundSchema: z.ZodMiniEnum; /** @internal */ export type UpdateWebhookRequestBody$Outbound = { name?: string | undefined; description?: string | null | undefined; url?: string | undefined; eventTypes?: Array | undefined; }; /** @internal */ export declare const UpdateWebhookRequestBody$outboundSchema: z.ZodMiniType; export declare function updateWebhookRequestBodyToJSON(updateWebhookRequestBody: UpdateWebhookRequestBody): string; /** @internal */ export type UpdateWebhookRequest$Outbound = { id: string; projectId?: string | undefined; body: UpdateWebhookRequestBody$Outbound; }; /** @internal */ export declare const UpdateWebhookRequest$outboundSchema: z.ZodMiniType; export declare function updateWebhookRequestToJSON(updateWebhookRequest: UpdateWebhookRequest): string; /** @internal */ export declare const UpdateWebhookEventTypeResponse$inboundSchema: z.ZodMiniType; /** @internal */ export declare const UpdateWebhookPayloadVersion$inboundSchema: z.ZodMiniType; /** @internal */ export declare const UpdateWebhookResponse$inboundSchema: z.ZodMiniType; export declare function updateWebhookResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=update-webhook.d.ts.map