gatelineAPI reference

Thin outbound HTTP client for the three routes runner-api.ts (server) exposes. Every call here is a client-initiated request — this process never listens on a socket (R3, AC3.1).

Constructors

  • Parameters

    • baseUrl: string
    • token: string
    • fetchImpl: (input: string | Request | URL, init?: RequestInit) => Promise<Response> = fetch

    Returns ControlPlaneClient

Methods

  • Startup check (scope step 2): confirms the control plane is reachable and the token is accepted before the poll loop starts, rather than discovering a bad token only after the first silently-failing poll.

    Returns Promise<void>