@suluk/cloudflare - v0.4.0
    Preparing search index...

    Interface CloudflareClientOptions

    @suluk/cloudflare — API-driven provisioning + deployment for a Suluk app on Cloudflare, no wrangler CLI. A typed REST client, idempotent provisioners (D1 / KV / R2 / secrets), the Workers module-script + static-assets upload flow, and a one-call deploy() that wires them in dependency order. The platform that ships itself, shipping itself — readable, testable, and the same contract-first discipline as the rest of the suite. CANDIDATE tooling.

    interface CloudflareClientOptions {
        apiToken: string;
        accountId?: string;
        fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
        baseUrl?: string;
    }
    Index

    Properties

    apiToken: string

    an API token (Bearer). Account-scoped: Workers Scripts + D1 (+ KV/R2) Edit, Account Settings Read.

    accountId?: string

    the account id; resolved from the token's first account when omitted.

    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    injected fetch (tests pass a recorder); defaults to the global.

    Type Declaration

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

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    baseUrl?: string

    API base (default the public Cloudflare API).