@adcp/sdk API Reference - v14.0.0-beta.6
    Preparing search index...

    Interface DiscoverAuthorizationOptions

    interface DiscoverAuthorizationOptions {
        allowPrivateIp?: boolean;
        timeoutMs?: number;
        fetchFn?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        signal?: AbortSignal;
        wwwAuthenticate?: string;
    }
    Index

    Properties

    allowPrivateIp?: boolean

    Allow http:// and private-IP probe targets. Default false.

    timeoutMs?: number

    Override per-probe HTTP timeout (ms). Default inherits from ssrfSafeFetch (10s).

    fetchFn?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Scoped fetch implementation for the agent, PRM, and AS metadata probes.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    signal?: AbortSignal

    Caller cancellation, including the absolute task deadline.

    wwwAuthenticate?: string

    If provided, use this WWW-Authenticate header verbatim instead of re-probing the agent. Use this when you already have a 401 response in hand and want to avoid a second round-trip.