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

    Class CloudflareClient

    @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.

    Index

    Constructors

    Properties

    accountId: string | undefined

    Methods

    • Make a request and return the unwrapped result, throwing a CloudflareError when success is false.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>

    • Like request but returns the RAW body (no {success,result} envelope) — for KV value reads, which return the stored value directly. Returns null on 404 (key not found). Never echoes the body into an error.

      Parameters

      Returns Promise<string | null>

    • Resolve (and cache) the account id — the first account the token can see, unless one was supplied.

      Returns Promise<string>