Skip to content

feat(api): add the v2 notebook endpoints to the generated client - #6595

Draft
SaxonF wants to merge 1 commit into
developfrom
notebooks/01-api-notebook-endpoints
Draft

SaxonF wants to merge 1 commit into
developfrom
notebooks/01-api-notebook-endpoints

Conversation

@SaxonF

@SaxonF SaxonF commented Sep 14, 2026

Copy link
Copy Markdown

Adds the five /v2/projects/{ref}/notebooks routes — list, get, create, update, delete — to the generated Management API client, so the notebook commands later in this stack have a typed client to drive.

What changed

  • scripts/openapi-overrides.json pins the notebook paths into the spec.
  • src/generated/{openapi.json,contracts.ts,effect-client.ts} regenerated from it.

Reviewer notes

The only hand-written part is the override block; everything else is codegen output.

supabase/infrastructure ships these routes ahead of the deployed platform spec, so the override is an add paired with a remove at the same path. The remove keeps the add idempotent once the deployed spec carries the routes itself — at which point the whole block should be deleted rather than left in place masking upstream. That intent is recorded in the block's $comment.

The churn in the existing webhook $comment strings is the overrides writer re-serializing the file and escaping the literal em-dashes as \u2014; no semantic change.

Note that the page / filter query parameters these operations declare are style: deepObject, which the client does not serialize correctly yet. That is fixed in the next PR in this stack.

@SaxonF
SaxonF added this pull request to stack #6600 September 14, 2026 11:20
Pins the five `/v2/projects/{ref}/notebooks` routes into the OpenAPI
overrides and regenerates the contracts, effect client, and spec snapshot
so `list`/`get`/`create`/`update`/`delete` notebook operations are
available as typed operations.

supabase/infrastructure ships these routes ahead of the platform spec, so
the override is an add paired with a remove that keeps it idempotent once
the deployed spec carries them — at which point the whole block should be
deleted rather than left masking upstream.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@SaxonF
SaxonF force-pushed the notebooks/01-api-notebook-endpoints branch from a3b3310 to b33241b Compare September 14, 2026 23:50
@SaxonF
SaxonF removed this pull request from stack #6600 September 15, 2026 00:30
@SaxonF
SaxonF added this pull request to stack #6612 September 15, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant