Skip to content

docs(dart): storage buckets, streaming/cache-purge, web3, OAuth grants, and July additions - #47971

Merged
spydon merged 4 commits into
masterfrom
docs/dart-sdk-updates-20260715
Jul 22, 2026
Merged

spydon merged 4 commits into
masterfrom
docs/dart-sdk-updates-20260715

Conversation

@spydon

@spydon spydon commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

What

Updates the Dart/Flutter reference (apps/docs/spec/supabase_dart_v2.yml) for features shipped in 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.

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.

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

supabase Bot commented Jul 15, 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 15, 2026 •

Copy link
Copy Markdown

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

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

Request Review

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

coderabbitai Bot commented Jul 15, 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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d955da72-9059-4723-86b4-552ece2dd989

📥 Commits

Reviewing files that changed from the base of the PR and between f6cd415 and 5862262.

📒 Files selected for processing (2)
  • apps/docs/spec/reference/dart/v2/partials/analytics-buckets.json
  • apps/docs/spec/supabase_dart_v2.yml
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/docs/spec/reference/dart/v2/partials/analytics-buckets.json
  • apps/docs/spec/supabase_dart_v2.yml

📝 Walkthrough

Walkthrough

Changes

The Dart v2 specification expands authentication, OAuth, function cancellation, storage listing and cache controls, and database modifier documentation. The reference generator now excludes Analytics and Vector bucket headers from generated declarations.

Dart v2 documentation

Layer / File(s) Summary
Reference section generation
apps/docs/scripts/generate-dart-reference.ts, apps/docs/spec/reference/dart/v2/partials/*
Adds Analytics and Vector bucket metadata, expands OAuth overview notes, and prevents bucket headers from becoming method declarations.
Authentication and OAuth APIs
apps/docs/spec/supabase_dart_v2.yml
Documents Web3 sign-in, passkey names, session retrieval, password updates, MFA channels, and OAuth grant management.
Functions invocation cancellation
apps/docs/spec/supabase_dart_v2.yml
Documents abortSignal support and RequestAbortedException handling for function invocations.
Storage and database APIs
apps/docs/spec/supabase_dart_v2.yml
Adds bucket-listing options, paginated listing, cache controls and purging, and stripNulls().

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

Suggested reviewers: jeremenichelli

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and clearly summarizes the main docs updates across storage, auth, and OAuth.
Description check ✅ Passed It includes the change summary, scope, verification, and context, though it doesn't follow the template headings exactly.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/dart-sdk-updates-20260715

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.

@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/supabase_dart_v2.yml`:
- Around line 5674-5678: Update both createIndex examples to use the same
three-element vector dimension as the subsequent insert and query examples,
including the second createIndex occurrence and all referenced examples. Keep
the existing cosine distance metric and vector values unchanged.
- Around line 3068-3084: Update the “aborting-a-request” Dart example to
reference the exception through the http package namespace, using
http.RequestAbortedException in the catch clause, and ensure the example imports
package:http so the type resolves without relying on supabase_flutter exports.
🪄 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: b5d9e269-fd9b-4931-966d-b98a481dc2df

📥 Commits

Reviewing files that changed from the base of the PR and between 8a37784 and f0bfb39.

📒 Files selected for processing (2)
  • apps/docs/scripts/generate-dart-reference.ts
  • apps/docs/spec/supabase_dart_v2.yml

Comment thread apps/docs/spec/supabase_dart_v2.yml Resolved
Comment thread apps/docs/spec/supabase_dart_v2.yml Resolved
@spydon
spydon force-pushed the docs/dart-sdk-updates-20260715 branch from f0bfb39 to 29d6d4a Compare July 16, 2026 08:46
@spydon
spydon changed the base branch from master to docs/dart-reference-categories-in-yaml July 16, 2026 08:47
@spydon
spydon force-pushed the docs/dart-reference-categories-in-yaml branch from 0f5d0ba to 9d12ca7 Compare July 16, 2026 11:30
@spydon
spydon force-pushed the docs/dart-sdk-updates-20260715 branch 2 times, most recently from f0c3ca9 to 68d0cc7 Compare July 16, 2026 11:52
Base automatically changed from docs/dart-reference-categories-in-yaml to master July 20, 2026 12:23
spydon added a commit that referenced this pull request Jul 20, 2026
…ain reference updates (#47728)

> **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`](https://github.com/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

- `RealtimeChannelConfig.replicationReady` (#1526) is omitted since
there is no reference slot for channel-config options.
- The **OAuth Server** section also appears in #47971 (which adds
`listGrants` / `revokeGrant`). Whichever lands second should drop the
duplicate section header/partial and keep both sets of methods.

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

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

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
…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-20260715 branch from 68d0cc7 to 8be8050 Compare July 20, 2026 12:43
… friendlyName

Documents supabase-flutter additions not yet covered by this PR:
- storage: from.downloadStream() (#1580)
- storage: from.purgeCache() (#1607)
- storage: purgeBucketCache() (#1608)
- auth: friendlyName on registerPasskey() / passkey.startRegistration() (#1603)
@spydon spydon changed the title docs(dart): storage vector/analytics buckets, list-v2, web3, OAuth grants, and July additions docs(dart): storage buckets, streaming/cache-purge, web3, OAuth grants, and July additions Jul 20, 2026

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

Verified that the documentation built correctly by running the command.

Recommend including a section in the PR description to manually test and see the Preview. Docs Preview was skipped, making code review take longer than necessary.

Comment thread apps/docs/spec/supabase_dart_v2.yml Resolved
@spydon
spydon merged commit a132009 into master Jul 22, 2026
35 of 36 checks passed
@spydon
spydon deleted the docs/dart-sdk-updates-20260715 branch July 22, 2026 13:43
@github-actions

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784728050)

Score Average Improvements Regressions
Completeness 98.9% (-1pp) - 1 🔴
Conciseness 40.2% (+2pp) 8 🟢 6 🔴
Goal Completion 80.5% (-1pp) 3 🟢 6 🔴
Knowledge Usage 89.7% (-8pp) - 3 🔴
Tool Usage 70.6% (-2pp) - 1 🔴
Correctness 75.6% (+3pp) 4 🟢 1 🔴
Docs Faithfulness 67.9% (-1pp) 2 🟢 4 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 100% (+5pp) 1 🟢 -
URL Validity 100% (+0pp) - -
Time_to_first_token 2.84tok (-0.11tok) 16 🟢 13 🔴
Llm_calls 6.95 (-0.15) 7 🟢 14 🔴
Tool_calls 2.87 (-0.1) 9 🟢 13 🔴
Errors 0.02 (+0.02) - 1 🔴
Llm_errors 0.01 (+0.01) - 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 24656.41tok (+190.3tok) 14 🟢 11 🔴
Prompt_cached_tokens 8739.31tok (+1377.1tok) 11 🟢 16 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 587.1tok (-22.94tok) 17 🟢 11 🔴
Completion_reasoning_tokens 89.82tok (-11.87tok) 17 🟢 9 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 25243.52tok (+167.36tok) 17 🟢 12 🔴
Estimated_cost 0$ (0$) 12 🟢 15 🔴
Duration 13.96s (-3.77s) 26 🟢 3 🔴
Llm_duration 10.61s (-0.81s) 19 🟢 10 🔴

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.

2 participants