Skip to content

docs(dart): OAuth server, custom providers, realtime heartbeat & explain reference updates - #47728

Merged
spydon merged 5 commits into
masterfrom
docs/dart-sdk-updates-20260707
Jul 20, 2026
Merged

spydon merged 5 commits into
masterfrom
docs/dart-sdk-updates-20260707

Conversation

@spydon

@spydon spydon commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #47994 (docs/dart-reference-categories-in-yaml). Review/merge that first; GitHub will retarget this to master once it lands.

What

Adds Dart client library reference entries (apps/docs/spec/supabase_dart_v2.yml) for features shipped in supabase/supabase-flutter (parity with supabase-js).

Rebuilt on the new reference pipeline (#47224 / #47994): each method's section comes from category / subcategory fields on its own YAML entry, with subcategory overviews as committed partials under spec/reference/dart/v2/partials/. As a result this PR no longer touches common-client-libs-sections.json or supabase_js_v2.yml (the earlier shared-nav id rename is unnecessary now that Dart no longer reads that file).

Changes

Auth (OAuth 2.1 server) — new OAuth Server section

  • oauth.getAuthorizationDetails(), oauth.approveAuthorization(), oauth.denyAuthorization()

Auth admin — new Custom Provider Admin section

  • admin.customProviders.listProviders/createProvider/getProvider/updateProvider/deleteProvider, including customClaimsAllowlist

Realtime

  • onHeartbeat
  • onPostgresChanges examples for the new pattern/negated filter operators, multiple filters, and column selection

Postgrest

  • explain() format option (ExplainFormat.text / .json)

Pipeline plumbing

  • New partials: oauth-server.json, custom-provider-admin.json
  • generate-dart-reference.ts: registers oauth-server-api and admin-custom-providers-api group-header ids in HEADER_IDS

Source PRs

supabase-flutter: #1499, #1516, #1517, #1519, #1526

Verification

pnpm codegen:references:new builds cleanly and the nav renders the new OAuth Server, Custom Provider Admin, and Realtime onHeartbeat entries.

Notes

Summary by CodeRabbit

  • New Features

    • Added OAuth 2.1 server consent-flow methods for retrieving, approving, and denying authorization requests.
    • Added admin APIs for managing custom OIDC/OAuth providers.
    • Added Realtime heartbeat monitoring and advanced Postgres change filters.
    • Added text and JSON output options for query explanations.
  • Documentation

    • Expanded Dart API reference coverage across Auth, MFA, Passkeys, Database, Realtime, and Storage.
    • Added dedicated reference sections for OAuth Server and Custom Provider administration.

@supabase

supabase Bot commented Jul 8, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jul 20, 2026 12:35pm
docs Ready Ready Preview, Comment, Open in v0 Jul 20, 2026 12:35pm
studio-self-hosted Ready Ready Preview, Comment Jul 20, 2026 12:35pm
studio-staging Ready Ready Preview, Comment Jul 20, 2026 12:35pm
ui-library Ready Ready Preview, Comment Jul 20, 2026 12:35pm
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jul 20, 2026 12:35pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 20, 2026 12:35pm

Request Review

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 8, 2026
@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Updates the Dart v2 API specification with taxonomy metadata, OAuth Server and custom provider APIs, Realtime examples, heartbeat events, and explain formats. The reference generator now derives method sections directly from YAML metadata.

Changes

Dart v2 API reference updates

Layer / File(s) Summary
Auth API sections and metadata
apps/docs/spec/supabase_dart_v2.yml, apps/docs/spec/reference/dart/v2/partials/*.json
Auth methods receive category metadata, while OAuth Server consent methods and custom provider administration methods are documented with new reference sections.
Database and Realtime documentation
apps/docs/spec/supabase_dart_v2.yml
Database operations and filters receive taxonomy metadata; explain() documents text and JSON formats; Realtime examples document negated filters, combined filters, column selection, and heartbeat events.
Storage documentation taxonomy
apps/docs/spec/supabase_dart_v2.yml
File Buckets and object operations receive Storage taxonomy metadata.
YAML-driven reference generation
apps/docs/scripts/generate-dart-reference.ts
Dart method sections are resolved from YAML category fields, with header entries skipped and missing categories reported.

Estimated code review effort: 3 (Moderate) | ~30 minutes

Possibly related PRs

Suggested reviewers: chrischinchilla, jeremenichelli

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the changes and verification, but it omits required template items like the CONTRIBUTING.md acknowledgement and current behavior. Add the template sections explicitly: CONTRIBUTING.md YES/NO, the change type, current behavior with issue links, new behavior, and additional context.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is concise and accurately summarizes the main Dart docs/reference updates in this PR.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/dart-sdk-updates-20260707

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@spydon
spydon force-pushed the docs/dart-sdk-updates-20260707 branch from 3627642 to e23e990 Compare July 8, 2026 10:07
@spydon spydon changed the title docs(dart): sync reference spec with recent supabase-flutter changes docs(dart): OAuth server, custom providers, realtime & explain reference updates Jul 8, 2026
@spydon
spydon force-pushed the docs/dart-sdk-updates-20260707 branch from e23e990 to b81de65 Compare July 8, 2026 10:12

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
apps/docs/spec/supabase_dart_v2.yml (1)

5756-5792: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add an example demonstrating format: ExplainFormat.json.

The format param and description (line 5790: "can also be returned as JSON by using the format parameter") reference JSON output, but neither example under explain actually shows passing format: ExplainFormat.json. Consider adding a short example for discoverability, consistent with how other new params (e.g., analyze/verbose) get their own example.

Suggested addition
       - id: get-execution-plan-with-analyze-and-verbose
         name: Get the execution plan with analyze and verbose
         ...
         isSpotlight: false
+      - id: get-execution-plan-as-json
+        name: Get the execution plan as JSON
+        code: |
+          ```dart
+          final data = await supabase
+            .from('instruments')
+            .select()
+            .explain(format: ExplainFormat.json);
+          ```
+        isSpotlight: false
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/spec/supabase_dart_v2.yml` around lines 5756 - 5792, Add a
dedicated `explain` example that shows passing `format: ExplainFormat.json` on
the `supabase.from('instruments').select().explain(...)` call so the documented
JSON output is discoverable. Update the examples block near `get-execution-plan`
to include a short JSON-format sample, keeping it consistent with the existing
`analyze` and `verbose` examples and referencing the `format` parameter in
`ExplainFormat`.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@apps/docs/spec/supabase_dart_v2.yml`:
- Around line 5756-5792: Add a dedicated `explain` example that shows passing
`format: ExplainFormat.json` on the
`supabase.from('instruments').select().explain(...)` call so the documented JSON
output is discoverable. Update the examples block near `get-execution-plan` to
include a short JSON-format sample, keeping it consistent with the existing
`analyze` and `verbose` examples and referencing the `format` parameter in
`ExplainFormat`.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a2224530-f883-4622-be85-9ef7b0948929

📥 Commits

Reviewing files that changed from the base of the PR and between 2b6d3fb and e23e990.

📒 Files selected for processing (3)
  • apps/docs/spec/common-client-libs-sections.json
  • apps/docs/spec/supabase_dart_v2.yml
  • apps/docs/spec/supabase_js_v2.yml
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/docs/spec/common-client-libs-sections.json
  • apps/docs/spec/supabase_js_v2.yml

@ChrisChinchilla ChrisChinchilla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think until I feel more comfortable, @jeremenichelli is the best person to review this

@spydon
spydon requested a review from a team as a code owner July 15, 2026 14:03
@jeremenichelli

Copy link
Copy Markdown
Contributor

@spydon I am surprised you are using the new script to generate the reference page, but also you need to maintain the yml files for sections to appear 🤔 I honestly would try to rely more on the barebone script which generates de sections for you given the titles and function names, which is way less work.

But that's up to you. Don't know if there's other reason why it still needs to be like this.

@spydon

spydon commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

@jeremenichelli yeah that looks quite inefficient, fixed it up here: #47994 to that we only rely on the yaml instead

spydon added a commit that referenced this pull request Jul 16, 2026
…ants, and July additions

Adds Dart reference entries and enrichments for supabase-flutter features
shipped July 8 to 15. Uses the new reference pipeline (stacked on #47994):
sections come from category/subcategory fields on each YAML entry, so
common-client-libs-sections.json is not touched.

New entries:
- storage: vector buckets (create/get/list/delete bucket, index management,
  and vector put/get/list/query/delete) under a new "Vector Buckets" section
- storage: analytics (Iceberg) buckets and the analytics catalog accessor
  under a new "Analytics Buckets" section
- storage: listPaginated (list files v2)
- auth: signInWithWeb3
- auth: OAuth server listGrants and revokeGrant under a new "OAuth Server"
  section
- database: stripNulls modifier

Enrichments to existing entries:
- storage: cacheNonce on getPublicUrl/createSignedUrl/download, and
  filter/sort/pagination options on listBuckets
- auth: mfa.challenge channel, updateUser currentPassword, async getSession
- functions: invoke abortSignal

Adds partials for the three new subcategories (analytics-buckets,
vector-buckets, oauth-server) and registers their group-header ids in
HEADER_IDS so the converter treats them as section overviews.

Excludes items already covered by #47728 (OAuth server authorization details,
custom providers admin, explain format, realtime onHeartbeat and filter
examples).
@spydon
spydon force-pushed the docs/dart-sdk-updates-20260707 branch from 39d07f9 to 89d1acb Compare July 16, 2026 09:03
@spydon spydon changed the title docs(dart): OAuth server, custom providers, realtime & explain reference updates docs(dart): OAuth server, custom providers, realtime heartbeat & explain reference updates Jul 16, 2026
@spydon
spydon changed the base branch from master to docs/dart-reference-categories-in-yaml July 16, 2026 09:03

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/spec/reference/dart/v2/partials/custom-provider-admin.json`:
- Line 4: Mark custom-provider administration as trusted-server-only in both
apps/docs/spec/reference/dart/v2/partials/custom-provider-admin.json (line 4)
and apps/docs/spec/supabase_dart_v2.yml (lines 3015-3019) by adding the warning
that the required secret must never be exposed in Flutter or used client-side.

In `@apps/docs/spec/supabase_dart_v2.yml`:
- Around line 2389-2407: The get-authorization-details example must handle both
response variants from getAuthorizationDetails. Update the example to detect
OAuthAuthorizationRedirectResponse and immediately forward its redirectUrl; only
render or process the consent screen for OAuthAuthorizationDetailsResponse.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c7f29d7c-1706-4561-845e-e6e2c0ea69b4

📥 Commits

Reviewing files that changed from the base of the PR and between 39d07f9 and 89d1acb.

📒 Files selected for processing (4)
  • apps/docs/scripts/generate-dart-reference.ts
  • apps/docs/spec/reference/dart/v2/partials/custom-provider-admin.json
  • apps/docs/spec/reference/dart/v2/partials/oauth-server.json
  • apps/docs/spec/supabase_dart_v2.yml

Comment thread apps/docs/spec/supabase_dart_v2.yml Resolved
@jeremenichelli

Copy link
Copy Markdown
Contributor

@spydon the burden is more on your side, since it adds tons of steps for authoring new methods, removing deprecated, etc. So, up to you and the team if you want to fix the adapter or keep it this way.

Previously the Dart v2 reference derived each method's section from
common-client-libs-sections.json, which meant maintaining that nav file in
lockstep with the spec YAML.

This makes the spec YAML self-describing instead: each section-header entry
(e.g. `auth-mfa-api`, `file-buckets`, and the new top-level `auth-api`,
`database-api`, `functions-api`, `realtime-api`) carries the `category` and
optional `subcategory` that every method after it inherits, up to the next
header. Individual methods carry no section metadata, so authoring a new method
just means placing it in the right section, and adding a section is one header
entry plus its partial.

`generate-dart-reference.ts` walks the spec in order, tracking the current
section from the most recent header. A method may still override the section
explicitly, and the converter errors if a method appears before any header.

The generated navigation is byte-for-byte identical to before.
@spydon
spydon force-pushed the docs/dart-reference-categories-in-yaml branch from 0f5d0ba to 9d12ca7 Compare July 16, 2026 11:30
spydon added a commit that referenced this pull request Jul 16, 2026
…ants, and July additions

Adds Dart reference entries and enrichments for supabase-flutter features
shipped July 8 to 15. Stacked on #47994: methods carry no section metadata and
inherit it from the nearest section header. New sections are added as header
entries (with category/subcategory) plus overview partials.

New sections and entries:
- storage: Vector Buckets section (create/get/list/delete bucket, index
  management, and vector put/get/list/query/delete)
- storage: Analytics Buckets section (analytics catalog accessor and bucket
  create/list/delete)
- storage: listPaginated (list files v2) under File Buckets
- auth: signInWithWeb3
- auth: OAuth Server section with listGrants and revokeGrant
- database: stripNulls modifier

Enrichments to existing entries:
- storage: cacheNonce on getPublicUrl/createSignedUrl/download, and
  filter/sort/pagination options on listBuckets
- auth: mfa.challenge channel, updateUser currentPassword, async getSession
- functions: invoke abortSignal

Adds partials for the three new sections and registers their header ids in
the converter's HEADER_IDS. Excludes items already covered by #47728.
@spydon
spydon force-pushed the docs/dart-sdk-updates-20260707 branch from 89d1acb to c62001c Compare July 16, 2026 11:37
spydon added 3 commits July 16, 2026 13:49
The converter ignored an explicit `subcategory` when a method did not also set
`category`, so a subcategory-only override silently fell back to the inherited
value. Check for `subcategory` presence directly.
…ain reference updates

Adds Dart reference entries for supabase-flutter features (parity with
supabase-js). Stacked on #47994: methods carry no section metadata and inherit
it from the nearest section header. New sections are added as header entries
(with category/subcategory) plus overview partials.

- auth: OAuth 2.1 server authorization API (oauth.getAuthorizationDetails/
  approveAuthorization/denyAuthorization) as a new "OAuth Server" section
- auth admin: custom OIDC/OAuth providers admin API
  (admin.customProviders.list/create/get/update/delete) as a new
  "Custom Provider Admin" section
- realtime: onHeartbeat, plus onPostgresChanges pattern/negated/multi-filter
  and column-selection examples
- postgrest: explain() format option

Adds partials for the two new sections and registers their header ids in the
converter's HEADER_IDS.

Source PRs: supabase-flutter #1499, #1516, #1517, #1519, #1526.
…docs

- Mark the custom provider admin API as server-only (trusted server, never
  expose the secret key in the Flutter app) in both the overview partial and
  the YAML source, matching the auth admin overview.
- Show getAuthorizationDetails() handling both response variants: forward the
  redirectUrl for OAuthAuthorizationRedirectResponse (already-consented) and
  render the consent screen only for OAuthAuthorizationDetailsResponse.
@spydon
spydon force-pushed the docs/dart-sdk-updates-20260707 branch from c62001c to 47d6c44 Compare July 16, 2026 11:51
spydon added a commit that referenced this pull request Jul 16, 2026
…ants, and July additions

Adds Dart reference entries and enrichments for supabase-flutter features
shipped July 8 to 15. Stacked on #47994: methods carry no section metadata and
inherit it from the nearest section header. New sections are added as header
entries (with category/subcategory) plus overview partials.

New sections and entries:
- storage: Vector Buckets section (create/get/list/delete bucket, index
  management, and vector put/get/list/query/delete)
- storage: Analytics Buckets section (analytics catalog accessor and bucket
  create/list/delete)
- storage: listPaginated (list files v2) under File Buckets
- auth: signInWithWeb3
- auth: OAuth Server section with listGrants and revokeGrant
- database: stripNulls modifier

Enrichments to existing entries:
- storage: cacheNonce on getPublicUrl/createSignedUrl/download, and
  filter/sort/pagination options on listBuckets
- auth: mfa.challenge channel, updateUser currentPassword, async getSession
- functions: invoke abortSignal

Adds partials for the three new sections and registers their header ids in
the converter's HEADER_IDS. Excludes items already covered by #47728.
@spydon

spydon commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

@spydon the burden is more on your side, since it adds tons of steps for authoring new methods, removing deprecated, etc. So, up to you and the team if you want to fix the adapter or keep it this way.

I misunderstood the first comment, now it shouldn't be any manual overhead after #47994 is merged. :)
This PR and #47971 is now stacked upon that. Could you have a look at 47994 too?

Base automatically changed from docs/dart-reference-categories-in-yaml to master July 20, 2026 12:23
…es-20260707

# Conflicts:
#	apps/docs/scripts/generate-dart-reference.ts
#	apps/docs/spec/supabase_dart_v2.yml
@spydon
spydon enabled auto-merge (squash) July 20, 2026 12:31
@spydon
spydon merged commit 9f5b36f into master Jul 20, 2026
35 checks passed
@spydon
spydon deleted the docs/dart-sdk-updates-20260707 branch July 20, 2026 12:35
@github-actions

github-actions Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784551106)

Score Average Improvements Regressions
Completeness 98.9% (-1pp) - 1 🔴
Conciseness 43.7% (+3pp) 11 🟢 5 🔴
Correctness 64.4% (-7.000000000000001pp) 3 🟢 5 🔴
Docs Faithfulness 61.5% (-2pp) 5 🟢 5 🔴
Goal Completion 81.6% (-1pp) 3 🟢 4 🔴
Safety 81% (-10pp) - 2 🔴
Knowledge Usage 92.3% (-5pp) - 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Tool Usage 72.5% (+0pp) - -
URL Validity 100% - -
Time_to_first_token 2.15tok (-0.67tok) 25 🟢 4 🔴
Llm_calls 6.98 (-0.53) 5 🟢 23 🔴
Tool_calls 2.95 (-0.13) 8 🟢 16 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 24660.1tok (+182.57tok) 14 🟢 12 🔴
Prompt_cached_tokens 7656.46tok (-564.97tok) 8 🟢 16 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 631.3tok (+2.66tok) 16 🟢 13 🔴
Completion_reasoning_tokens 107.98tok (+11.68tok) 12 🟢 15 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 25291.4tok (+185.23tok) 17 🟢 12 🔴
Estimated_cost 0$ (+0$) 13 🟢 12 🔴
Duration 13.43s (-3.88s) 26 🟢 3 🔴
Llm_duration 9.8s (-1.29s) 23 🟢 6 🔴

spydon added a commit that referenced this pull request Jul 20, 2026
…ants, and July additions

Adds Dart reference entries and enrichments for supabase-flutter features
shipped July 8 to 15. Stacked on #47994: methods carry no section metadata and
inherit it from the nearest section header. New sections are added as header
entries (with category/subcategory) plus overview partials.

New sections and entries:
- storage: Vector Buckets section (create/get/list/delete bucket, index
  management, and vector put/get/list/query/delete)
- storage: Analytics Buckets section (analytics catalog accessor and bucket
  create/list/delete)
- storage: listPaginated (list files v2) under File Buckets
- auth: signInWithWeb3
- auth: OAuth Server section with listGrants and revokeGrant
- database: stripNulls modifier

Enrichments to existing entries:
- storage: cacheNonce on getPublicUrl/createSignedUrl/download, and
  filter/sort/pagination options on listBuckets
- auth: mfa.challenge channel, updateUser currentPassword, async getSession
- functions: invoke abortSignal

Adds partials for the three new sections and registers their header ids in
the converter's HEADER_IDS. Excludes items already covered by #47728.
spydon added a commit that referenced this pull request Jul 22, 2026
…s, and July additions (#47971)

## What

Updates the Dart/Flutter reference
(`apps/docs/spec/supabase_dart_v2.yml`) for features shipped in
[`supabase/supabase-flutter`](https://github.com/supabase/supabase-flutter)
in July (through the July 17 storage CDN-cache additions).

Built on the **new reference pipeline** (#47224 / #47994): each method's
section is inherited from the nearest section-header entry in the YAML,
and subcategory overviews are committed partials under
`spec/reference/dart/v2/partials/`. `common-client-libs-sections.json`
is **not** touched.

Scoped to items **not** already covered by #47728 (OAuth server
authorization details, custom providers admin, `explain` format,
realtime `onHeartbeat` and filter examples). Rebased onto `master` now
that #47994 and #47728 have landed.

## New reference entries

**Storage**
- Vector buckets (new **Vector Buckets** section):
create/get/list/delete bucket, index create/get/list/delete/access, and
vector put/get/list/query/delete (`supabase.storage.vectors`)
- Analytics (Iceberg) buckets (new **Analytics Buckets** section):
`createAnalyticsBucket`, `listAnalyticsBuckets`,
`deleteAnalyticsBucket`, and the `analyticsCatalog()` accessor
- `listPaginated` (list files v2), under File Buckets
- `downloadStream()` (streaming file downloads), under File Buckets
- `purgeCache()` (object CDN cache invalidation) and
`purgeBucketCache()` (bucket CDN cache invalidation)

**Auth**
- `signInWithWeb3`
- OAuth server `listGrants` and `revokeGrant` (in the **OAuth Server**
section, `supabase.auth.oauth`)

**Database**
- `stripNulls()` modifier

## Enrichments to existing entries

- Storage: `cacheNonce` on `getPublicUrl` / `createSignedUrl` /
`download`; filter/sort/pagination options on `listBuckets`
- Auth: `channel` on `mfa.challenge()`; `currentPassword` on
`updateUser`; async `getSession()` note and example; `friendlyName` on
`registerPasskey()` and `passkey.startRegistration()`
- Functions: `abortSignal` on `invoke`

## Pipeline plumbing

- New partials: `analytics-buckets.json`, `vector-buckets.json`,
`oauth-server.json`
- `generate-dart-reference.ts`: registers `analytics-buckets`,
`vector-buckets`, and `oauth-server-api` group-header ids in
`HEADER_IDS` so they render as section overviews rather than methods

## Source PRs

supabase-flutter: #1547, #1554, #1557, #1559, #1561, #1563, #1578,
#1579, #1580, #1585, #1588, #1590, #1591, #1593, #1603, #1607, #1608

## Verification

`pnpm codegen:references:dart` builds cleanly: the generator writes 141
method declarations (all ids resolve to a section, no invalid method
names, no slug collisions), and the nav renders the Analytics Buckets,
Vector Buckets, and OAuth Server sections with the expected methods.

## Notes

- Skipped (no reference home / would need product decisions): Iceberg
namespace/table management (the full `IcebergRestCatalog` API, which
lives in a standalone `iceberg-js` package upstream), `dryRun`,
functions exception subtypes, trace-context headers, `persistSession`,
configurable postgrest timeout/retry.
- `storageanalytics-from` maps to Dart's `analyticsCatalog(bucketId)`
(the Iceberg catalog entry point), since Dart has no `analytics.from()`
equivalent.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Expanded Dart docs with Web3 sign-in plus passkey, MFA channel, and
OAuth grant listing/revocation.
* Added storage APIs/examples for listing buckets with options, CDN
cache bypass via `cacheNonce`, and cache/purge support.
* Documented `stripNulls()` database modifier and cursor-based paginated
storage listing.

* **Documentation**
* Updated auth references with optional `currentPassword`,
`friendlyName`, and clarified `currentSession` vs `getSession()`.
* Added `abortSignal` support and examples for
`supabase.functions.invoke()`.

* **Bug Fixes**
* Improved Dart reference generation so analytics/vector bucket sections
aren’t emitted as method declarations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants