@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface WebhookVerificationConfig

    interface WebhookVerificationConfig {
        webBotAuth?: {
            directory: SignatureDirectoryResolver;
            revocation?: {
                status(origin: string, keyid: string): Promise<OriginRevocationStatus>;
            };
            isRevoked?: (origin: string, keyid: string) => Promise<boolean>;
        };
        publisherPins?: (
            registration: Readonly<WebhookRegistration>,
        ) => Promise<readonly PublisherSigningKeyPin[]>;
        onKeyResolutionError?: (error: unknown) => void;
        jwks?: JwksResolver;
        replayStore?: ReplayStore;
        revocationStore?: RevocationStore;
        now?: () => number;
        resolverOptions?: Omit<
            ResolvedAgentJwksResolverOptions,
            "fetchCapabilities",
        >;
        fetchCapabilities?: (
            agentUrl: string,
            protocol: "mcp" | "a2a",
        ) => Promise<unknown>;
    }
    Index
    webBotAuth?: {
        directory: SignatureDirectoryResolver;
        revocation?: {
            status(origin: string, keyid: string): Promise<OriginRevocationStatus>;
        };
        isRevoked?: (origin: string, keyid: string) => Promise<boolean>;
    }

    Type Declaration

    • directory: SignatureDirectoryResolver
    • Optionalrevocation?: { status(origin: string, keyid: string): Promise<OriginRevocationStatus> }

      Seller origin revocation, checked after verification. A revoked key is refused; unknown status is retryable; a seller that serves no list is accepted (webhooks do not spend). Usually an OriginRevocationResolver.

    • OptionalisRevoked?: (origin: string, keyid: string) => Promise<boolean>

      Use revocation. Conservative: a seller that serves no list is refused.

    publisherPins?: (
        registration: Readonly<WebhookRegistration>,
    ) => Promise<readonly PublisherSigningKeyPin[]>

    Applicable pins from persisted media-buy records. Reuse refresh callbacks bound to the seller/publisher/tenant across deliveries to share their cooldown. Never use webhook payload fields.

    onKeyResolutionError?: (error: unknown) => void

    Local diagnostics for request_signature_* discovery causes.

    jwks?: JwksResolver

    Deterministic/custom key source. Defaults to resolveAgent brand.json discovery.

    replayStore?: ReplayStore

    Shared nonce replay store. Defaults to one process-local store per client.

    revocationStore?: RevocationStore

    Key revocation source. Defaults to one process-local store per client.

    now?: () => number

    Clock in epoch seconds.

    resolverOptions?: Omit<ResolvedAgentJwksResolverOptions, "fetchCapabilities">

    Safe discovery/cache tuning for the default seller-pinned JWK resolver.

    fetchCapabilities?: (
        agentUrl: string,
        protocol: "mcp" | "a2a",
    ) => Promise<unknown>

    Fetch capabilities for seller key discovery. The callback must authenticate only to the supplied, already-pinned seller URL and protocol.