import { z } from "zod/v4"; import type { FilterAst } from "./webhookFilter.js"; export declare const WebhookSecretProvisioning: z.ZodEnum<{ either: "either"; integrator: "integrator"; provider: "provider"; }>; export type WebhookSecretProvisioning = z.infer; export declare const WebhookIdempotencyField: z.ZodObject<{ from: z.ZodEnum<{ body: "body"; header: "header"; }>; name: z.ZodString; }, z.core.$strip>; export type WebhookIdempotencyField = z.infer; export declare const WebhookValueSource: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; export type WebhookValueSource = z.infer; export declare const WebhookSignatureExtraction: z.ZodObject<{ itemSeparator: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>; export type WebhookSignatureExtraction = z.infer; export declare const WebhookTimestampConfig: z.ZodObject<{ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>; export type WebhookTimestampConfig = z.infer; export declare const WebhookSecretTransform: z.ZodObject<{ encoding: z.ZodOptional>; stripPrefix: z.ZodOptional; }, z.core.$strip>; export type WebhookSecretTransform = z.infer; export declare const WebhookSigningString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; export type WebhookSigningString = z.infer; /** * Body-parsing hint. Some providers send an event as JSON but a SECOND kind of callback (e.g. Slack * interactivity) as `application/x-www-form-urlencoded` with the JSON in a single field (Slack: `payload`). * When JSON parsing fails, the engine form-decodes and JSON-parses `field`'s value. The signature is over * the raw body either way, so verification is unaffected. Generic (a field name), no provider code in the engine. */ export declare const WebhookFormPayload: z.ZodObject<{ field: z.ZodString; }, z.core.$strip>; export type WebhookFormPayload = z.infer; export declare const WebhookHmacConfig: z.ZodObject<{ scheme: z.ZodLiteral<"hmac">; algorithm: z.ZodEnum<{ sha1: "sha1"; sha256: "sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; additionalSignatureHeaders: z.ZodOptional>; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; secret: z.ZodOptional>; stripPrefix: z.ZodOptional; }, z.core.$strip>>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; formPayload: z.ZodOptional>; }, z.core.$strip>; export type WebhookHmacConfig = z.infer; export declare const WebhookAsymmetricConfig: z.ZodObject<{ scheme: z.ZodLiteral<"asymmetric">; algorithm: z.ZodEnum<{ "ecdsa-p256": "ecdsa-p256"; ed25519: "ed25519"; "rsa-sha256": "rsa-sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; publicKeyEncoding: z.ZodOptional>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export type WebhookAsymmetricConfig = z.infer; export declare const WebhookSharedSecretConfig: z.ZodObject<{ scheme: z.ZodLiteral<"shared-secret">; placement: z.ZodEnum<{ basic: "basic"; bearer: "bearer"; body: "body"; header: "header"; }>; fieldName: z.ZodOptional; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export type WebhookSharedSecretConfig = z.infer; export declare const WebhookUrlSecretConfig: z.ZodObject<{ scheme: z.ZodLiteral<"url-secret">; placement: z.ZodEnum<{ path: "path"; query: "query"; }>; paramName: z.ZodString; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export type WebhookUrlSecretConfig = z.infer; export declare const WebhookVerifierConfig: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; algorithm: z.ZodEnum<{ sha1: "sha1"; sha256: "sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; additionalSignatureHeaders: z.ZodOptional>; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; secret: z.ZodOptional>; stripPrefix: z.ZodOptional; }, z.core.$strip>>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; formPayload: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"shared-secret">; placement: z.ZodEnum<{ basic: "basic"; bearer: "bearer"; body: "body"; header: "header"; }>; fieldName: z.ZodOptional; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"url-secret">; placement: z.ZodEnum<{ path: "path"; query: "query"; }>; paramName: z.ZodString; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"asymmetric">; algorithm: z.ZodEnum<{ "ecdsa-p256": "ecdsa-p256"; ed25519: "ed25519"; "rsa-sha256": "rsa-sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; publicKeyEncoding: z.ZodOptional>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>]>; export type WebhookVerifierConfig = z.infer; export declare const WebhookHandshakeConfig: z.ZodObject<{ matchPath: z.ZodString; matchValue: z.ZodString; respondPath: z.ZodOptional; respondStatus: z.ZodOptional, z.ZodLiteral<204>]>>; }, z.core.$strip>; export type WebhookHandshakeConfig = z.infer; /** * The status codes the ingress answers a provider with, for providers that require something other * than 200 JSON on success and 400 on a bad signature. Data-only: the ingress reads it off the * artifact and never knows which provider asked for it. */ export declare const WebhookResponseConfig: z.ZodObject<{ acceptedStatus: z.ZodOptional, z.ZodLiteral<202>, z.ZodLiteral<204>]>>; acceptedBody: z.ZodOptional>; rejectedStatus: z.ZodOptional, z.ZodLiteral<401>, z.ZodLiteral<403>]>>; }, z.core.$strip>; export type WebhookResponseConfig = z.infer; /** * A provider's GET verification of the endpoint URL (Meta's `hub.*` flow): the ingress answers a GET * whose `tokenParam` equals the endpoint's dedicated verify token by echoing `challengeParam` as text, and * records nothing. Data-only and provider-neutral; the query parameter names are the whole contract. */ export declare const WebhookGetHandshakeConfig: z.ZodObject<{ matchParam: z.ZodOptional; matchValue: z.ZodOptional; tokenParam: z.ZodString; challengeParam: z.ZodString; }, z.core.$strip>; export type WebhookGetHandshakeConfig = z.infer; export declare const WebhookVerifierArtifact: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; config: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; algorithm: z.ZodEnum<{ sha1: "sha1"; sha256: "sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; additionalSignatureHeaders: z.ZodOptional>; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; secret: z.ZodOptional>; stripPrefix: z.ZodOptional; }, z.core.$strip>>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; formPayload: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"shared-secret">; placement: z.ZodEnum<{ basic: "basic"; bearer: "bearer"; body: "body"; header: "header"; }>; fieldName: z.ZodOptional; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"url-secret">; placement: z.ZodEnum<{ path: "path"; query: "query"; }>; paramName: z.ZodString; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"asymmetric">; algorithm: z.ZodEnum<{ "ecdsa-p256": "ecdsa-p256"; ed25519: "ed25519"; "rsa-sha256": "rsa-sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; publicKeyEncoding: z.ZodOptional>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>]>; handshake: z.ZodOptional; respondStatus: z.ZodOptional, z.ZodLiteral<204>]>>; }, z.core.$strip>>; getHandshake: z.ZodOptional; matchValue: z.ZodOptional; tokenParam: z.ZodString; challengeParam: z.ZodString; }, z.core.$strip>>; response: z.ZodOptional, z.ZodLiteral<202>, z.ZodLiteral<204>]>>; acceptedBody: z.ZodOptional>; rejectedStatus: z.ZodOptional, z.ZodLiteral<401>, z.ZodLiteral<403>]>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"preset">; preset: z.ZodString; config: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; algorithm: z.ZodEnum<{ sha1: "sha1"; sha256: "sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; additionalSignatureHeaders: z.ZodOptional>; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; secret: z.ZodOptional>; stripPrefix: z.ZodOptional; }, z.core.$strip>>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; formPayload: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"shared-secret">; placement: z.ZodEnum<{ basic: "basic"; bearer: "bearer"; body: "body"; header: "header"; }>; fieldName: z.ZodOptional; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"url-secret">; placement: z.ZodEnum<{ path: "path"; query: "query"; }>; paramName: z.ZodString; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"asymmetric">; algorithm: z.ZodEnum<{ "ecdsa-p256": "ecdsa-p256"; ed25519: "ed25519"; "rsa-sha256": "rsa-sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; publicKeyEncoding: z.ZodOptional>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>]>; handshake: z.ZodOptional; respondStatus: z.ZodOptional, z.ZodLiteral<204>]>>; }, z.core.$strip>>; getHandshake: z.ZodOptional; matchValue: z.ZodOptional; tokenParam: z.ZodString; challengeParam: z.ZodString; }, z.core.$strip>>; response: z.ZodOptional, z.ZodLiteral<202>, z.ZodLiteral<204>]>>; acceptedBody: z.ZodOptional>; rejectedStatus: z.ZodOptional, z.ZodLiteral<401>, z.ZodLiteral<403>]>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"bundle">; bundleUrl: z.ZodString; hash: z.ZodString; }, z.core.$strip>]>; export type WebhookVerifierArtifact = z.infer; /** * One subscriber of a shared endpoint. `id` is the descriptor that declared it (the `webhook()` id, or * `agentId:eventId` / `agentId:connectorId` for a session subscriber) and is unique within the endpoint. * `filter` is this subscriber's own delivery filter; the session variant's `startOn` separately gates * session creation. */ export declare const WebhookRoutingTarget: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; id: z.ZodString; taskId: z.ZodString; filter: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"session">; id: z.ZodString; taskIdentifier: z.ZodString; keyTemplate: z.ZodString; deliverAs: z.ZodEnum<{ action: "action"; message: "message"; }>; actionType: z.ZodOptional; connectorId: z.ZodOptional; triggerConfigTemplate: z.ZodOptional>; startOn: z.ZodOptional; filter: z.ZodOptional; }, z.core.$strip>]>; export type WebhookRoutingTarget = z.infer; /** A routing target as stored on `WebhookEndpoint.routingTargets`, with its filter compiled at deploy. */ export type StoredWebhookRoutingTarget = WebhookRoutingTarget & { filterAst?: FilterAst; filterAstVersion?: number; }; export declare const WebhookDeliveryTargetStatus: z.ZodEnum<{ FAILED: "FAILED"; FILTERED: "FILTERED"; PENDING: "PENDING"; SUCCEEDED: "SUCCEEDED"; }>; export type WebhookDeliveryTargetStatus = z.infer; /** One target's outcome for one delivery, stored on `WebhookDelivery.targets`. */ export declare const WebhookDeliveryTargetResult: z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<{ session: "session"; task: "task"; waiter: "waiter"; }>; status: z.ZodEnum<{ FAILED: "FAILED"; FILTERED: "FILTERED"; PENDING: "PENDING"; SUCCEEDED: "SUCCEEDED"; }>; reason: z.ZodOptional; runId: z.ZodOptional; error: z.ZodOptional; deliverAs: z.ZodOptional>; taskId: z.ZodOptional; waiters: z.ZodOptional>; }, z.core.$strip>; export type WebhookDeliveryTargetResult = z.infer; export declare const WebhookVerifierResult: z.ZodObject<{ ok: z.ZodBoolean; idempotencyKey: z.ZodString; parsedEvent: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; export type WebhookVerifierResult = z.infer; export type StripeWebhookEvent = { id: string; object: "event"; type: string; created: number; data: { object: Record; }; [k: string]: unknown; }; export type GitHubWebhookEvent = { [k: string]: unknown; };