Cf

codemode-gatewaysourcetypescript
Path: codemode-gateway/src/types/cf.tsRelative: src/types/cf.tsSubproject: codemode-gatewayCategory: codemode-gateway
Lines: 58Bytes: 1,628Imports: 0Exports: 5

Content Preview

  1. /**
  2. * Cloudflare REST API client types and the typed error surfaced to sandbox
  3. * code when the API returns `success:false` or a non-2xx status.
  4. *
  5. * These are gateway-local types (no dependency on the codemode connector
  6. * classes, per ADR-2026-07-10-codemode-snippets-kv-not-runtime). The `cf`
  7. * namespace is hand-built `ResolvedProvider` fns calling the Cloudflare REST
  8. * API host-side.
  9. */
  10. /** A single Cloudflare API error entry from the standard `{success, result, errors}` envelope. */
  11. ex