• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 38607762803
67%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 14 Oct 2026 05:35PM UTC
Jobs 1
Files 79
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Oct 2026 05:33PM UTC coverage: 66.737%. Remained the same
38607762803

push

github

web-flow
fix(cli): route every management api call through the typed client (#7123)

## Summary

Every Management API call in `apps/cli` now goes through the typed
`@supabase/api` client. Each call gets an `api.operation` span named
after its OpenAPI operation ID, so telemetry can tell which operations a
command really calls. It complements the permission mapping added in
#7105, which declares the operations each module calls.

Before this PR, a dozen call sites built URLs by hand. Those calls
skipped the span, response decoding, and the client's retry and error
handling. Some of them existed because the generated client couldn't
express what they needed, so this PR fixes the generator and client
first, then moves the call sites, then adds a lint rule so new raw URLs
fail CI.

```mermaid
flowchart LR
  subgraph before["Before"]
    direction TB
    H1["command handler"] -->|"typed call"| C1["@supabase/api"]
    H2["sso / snippets / advisors /<br/>postgres-config / db query / login …"] -->|"hand-built /v1/... URL"| X1["HttpClient"]
    C1 --> X1
    X1 --> API1[("Management API")]
  end
  subgraph after["After"]
    direction TB
    H3["every command handler<br/>and shared module"] -->|"api.v1.op(input, options?)"| C2["@supabase/api<br/>span · decode · retry"]
    C2 --> X2["HttpClient"]
    X2 --> API2[("Management API")]
    L["lint rule<br/>supabase/no-raw-management-api-url"] -. "blocks new raw URLs" .-> H3
  end
```

## What changes

### 1. Generator and client (`packages/api`)

Four gaps forced callers back to raw HTTP:

| Gap | Fix |
| --- | --- |
| Response enums were closed, so a new server value broke decoding |
Multi-value response enums are open: `"ACTIVE" \| "PAUSED" \| (string &
{})`. Single-value enums stay closed. |
| Unknown request keys were dropped without an error | Request input
decodes with `onExcessProperty: "error"`, so a typo fails as
`SupabaseApiInputError` before any request is sent |
| `const` schemas weren't generated | `const` maps... (continued)

4097 of 6139 relevant lines covered (66.74%)

7.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38607762803.1 14 Oct 2026 05:35PM UTC 79
66.74
GitHub Action Run
Source Files on build 38607762803
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38607762803
  • 401fde68 on github
  • Prev Build on develop (#38601244960)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc