@qtsurfer/sdk
    Preparing search index...

    Interface QTSurferOptions

    Configuration for QTSurfer.

    interface QTSurferOptions {
        baseUrl: string;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        token?: string;
    }
    Index
    baseUrl: string

    Base URL of the QTSurfer API, e.g. https://api.qtsurfer.com/v1.

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

    Inject a custom fetch (Node 20+, browser, or test mock).

    Type Declaration

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

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

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

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

        Returns Promise<Response>

    token?: string

    Pre-obtained bearer token. When omitted, requests go out unauthenticated. Use the authenticate() helper instead of this constructor if you want the SDK to exchange an apikey for a JWT and refresh it on 401 for you.