@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Type Alias IdempotencyCapabilities

    IdempotencyCapabilities:
        | { supported?: true; replayTtlSeconds: number }
        | { supported: false; replayTtlSeconds?: never }

    Idempotency capabilities declared by the seller.

    Clients MUST NOT fall back to an assumed TTL when the seller omits this — getIdempotencyReplayTtlSeconds() throws when the declaration is missing on a v3 server rather than silently defaulting to 24h. A seller without the declaration is non-compliant and unsafe for retry-sensitive operations.

    Type Declaration

    • { supported?: true; replayTtlSeconds: number }
      • Optionalsupported?: true

        Explicit wire discriminator. Optional only for legacy normalized fixtures.

      • replayTtlSeconds: number

        Seconds the seller retains cached (principal, idempotency_key, payload) tuples. BYOK callers compare their persisted key's age against this to decide whether a fresh key + natural-key lookup is safer than reusing.

    • { supported: false; replayTtlSeconds?: never }
      • supported: false

        Seller explicitly declares that replay protection is unavailable.

      • OptionalreplayTtlSeconds?: never