better-supabase 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-B2WRsRIg.js → adapter-CRNH2aX_.js} +362 -253
- package/dist/{agents-CbUIrH-w.d.ts → agents-CGP2AQge.d.ts} +1 -1
- package/dist/{ai-files-DXbgWA5M.js → ai-files-ChFDkMLN.js} +12 -4
- package/dist/ai-sdk/agents/index.d.ts +3 -3
- package/dist/ai-sdk/batches/index.d.ts +1 -1
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/files/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +2 -2
- package/dist/{ai-tasks-BJJChl-D.d.ts → ai-tasks-ZvPnNudQ.d.ts} +1 -1
- package/dist/{api-keys-qnM63qjS.d.ts → api-keys-AgDXbcql.d.ts} +1 -1
- package/dist/{approvals-CRZtzxNt.d.ts → approvals-CyX709B-.d.ts} +1 -1
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{attachments-Bk3tyeUF.js → attachments-CK8D8bIV.js} +8 -2
- package/dist/{authorization-hooks-mLi894KH.d.ts → authorization-hooks-WDQMKIsc.d.ts} +1 -1
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-CTNKpBM6.d.ts → bind-Bfo40o63.d.ts} +3 -3
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/agents/index.d.ts +2 -2
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +2 -2
- package/dist/blocks/ai-chat/react/index.d.ts +1 -1
- package/dist/blocks/ai-chat/solid/index.d.ts +2 -2
- package/dist/blocks/ai-chat/svelte/index.d.ts +2 -2
- package/dist/blocks/ai-chat/vue/index.d.ts +2 -2
- package/dist/blocks/ai-files/index.d.ts +2 -2
- package/dist/blocks/ai-files/index.js +1 -1
- package/dist/blocks/ai-providers/index.d.ts +2 -2
- package/dist/blocks/ai-tasks/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +2 -2
- package/dist/blocks/announcements/react/index.d.ts +1 -1
- package/dist/blocks/announcements/solid/index.d.ts +2 -2
- package/dist/blocks/announcements/svelte/index.d.ts +2 -2
- package/dist/blocks/announcements/vue/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.d.ts +4 -4
- package/dist/blocks/api-keys/react/index.d.ts +1 -1
- package/dist/blocks/api-keys/react/server.d.ts +1 -1
- package/dist/blocks/api-keys/solid/index.d.ts +2 -2
- package/dist/blocks/api-keys/svelte/index.d.ts +2 -2
- package/dist/blocks/api-keys/vue/index.d.ts +2 -2
- package/dist/blocks/approvals/index.d.ts +2 -2
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/attachments/index.js +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/audit/react/index.d.ts +1 -1
- package/dist/blocks/audit/react/server.d.ts +1 -1
- package/dist/blocks/audit/solid/index.d.ts +2 -2
- package/dist/blocks/audit/svelte/index.d.ts +2 -2
- package/dist/blocks/audit/vue/index.d.ts +2 -2
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/billing/react/index.d.ts +1 -1
- package/dist/blocks/billing/react/server.d.ts +1 -1
- package/dist/blocks/billing/solid/index.d.ts +2 -2
- package/dist/blocks/billing/svelte/index.d.ts +2 -2
- package/dist/blocks/billing/vue/index.d.ts +2 -2
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/react/index.d.ts +1 -1
- package/dist/blocks/bookings/solid/index.d.ts +2 -2
- package/dist/blocks/bookings/svelte/index.d.ts +2 -2
- package/dist/blocks/bookings/vue/index.d.ts +2 -2
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/calendar/react/index.d.ts +1 -1
- package/dist/blocks/calendar/solid/index.d.ts +2 -2
- package/dist/blocks/calendar/svelte/index.d.ts +2 -2
- package/dist/blocks/calendar/vue/index.d.ts +2 -2
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/comments/index.d.ts +2 -2
- package/dist/blocks/comments/react/index.d.ts +1 -1
- package/dist/blocks/comments/react/server.d.ts +1 -1
- package/dist/blocks/comments/solid/index.d.ts +2 -2
- package/dist/blocks/comments/svelte/index.d.ts +2 -2
- package/dist/blocks/comments/vue/index.d.ts +2 -2
- package/dist/blocks/connectors/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/data-lifecycle/index.d.ts +2 -2
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/drive/index.d.ts +2 -3
- package/dist/blocks/drive/index.js +14 -5
- package/dist/blocks/employees/index.d.ts +1 -1
- package/dist/blocks/engagements/index.d.ts +1 -1
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/react/index.d.ts +2 -2
- package/dist/blocks/entitlements/solid/index.d.ts +2 -2
- package/dist/blocks/entitlements/svelte/index.d.ts +2 -2
- package/dist/blocks/entitlements/vue/index.d.ts +2 -2
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/forms/react/index.d.ts +1 -1
- package/dist/blocks/forms/solid/index.d.ts +2 -2
- package/dist/blocks/forms/svelte/index.d.ts +2 -2
- package/dist/blocks/forms/vue/index.d.ts +2 -2
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/identities/index.d.ts +2 -2
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +2 -2
- package/dist/blocks/inbox/react/index.d.ts +2 -2
- package/dist/blocks/inbox/react/server.d.ts +2 -2
- package/dist/blocks/inbox/solid/index.d.ts +2 -2
- package/dist/blocks/inbox/svelte/index.d.ts +2 -2
- package/dist/blocks/inbox/vue/index.d.ts +2 -2
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/jobs/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.d.ts +2 -2
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +3 -3
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/mfa/react/index.d.ts +1 -1
- package/dist/blocks/mfa/react/server.d.ts +1 -1
- package/dist/blocks/mfa/solid/index.d.ts +2 -2
- package/dist/blocks/mfa/svelte/index.d.ts +2 -2
- package/dist/blocks/mfa/vue/index.d.ts +2 -2
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/notifications/react/index.d.ts +1 -1
- package/dist/blocks/notifications/react/server.d.ts +1 -1
- package/dist/blocks/notifications/solid/index.d.ts +2 -2
- package/dist/blocks/notifications/svelte/index.d.ts +2 -2
- package/dist/blocks/notifications/vue/index.d.ts +2 -2
- package/dist/blocks/number-sequences/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/react/index.d.ts +1 -1
- package/dist/blocks/onboarding/react/server.d.ts +1 -1
- package/dist/blocks/onboarding/solid/index.d.ts +2 -2
- package/dist/blocks/onboarding/svelte/index.d.ts +2 -2
- package/dist/blocks/onboarding/vue/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +1 -1
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/organizations/react/index.d.ts +1 -1
- package/dist/blocks/organizations/react/server.d.ts +1 -1
- package/dist/blocks/organizations/solid/index.d.ts +2 -2
- package/dist/blocks/organizations/svelte/index.d.ts +2 -2
- package/dist/blocks/organizations/vue/index.d.ts +2 -2
- package/dist/blocks/outbox/index.d.ts +2 -2
- package/dist/blocks/parties/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +2 -2
- package/dist/blocks/reactions/react/index.d.ts +1 -1
- package/dist/blocks/reactions/solid/index.d.ts +2 -2
- package/dist/blocks/reactions/svelte/index.d.ts +2 -2
- package/dist/blocks/reactions/vue/index.d.ts +2 -2
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/reminders/index.d.ts +3 -3
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/rules/index.d.ts +4 -4
- package/dist/blocks/rules/react/index.d.ts +1 -1
- package/dist/blocks/rules/solid/index.d.ts +2 -2
- package/dist/blocks/rules/svelte/index.d.ts +2 -2
- package/dist/blocks/rules/vue/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.d.ts +2 -2
- package/dist/blocks/saved-views/react/index.d.ts +1 -1
- package/dist/blocks/saved-views/react/server.d.ts +1 -1
- package/dist/blocks/saved-views/solid/index.d.ts +2 -2
- package/dist/blocks/saved-views/svelte/index.d.ts +2 -2
- package/dist/blocks/saved-views/vue/index.d.ts +2 -2
- package/dist/blocks/search/index.d.ts +2 -2
- package/dist/blocks/search/react/index.d.ts +1 -1
- package/dist/blocks/search/react/server.d.ts +1 -1
- package/dist/blocks/search/solid/index.d.ts +2 -2
- package/dist/blocks/search/svelte/index.d.ts +2 -2
- package/dist/blocks/search/vue/index.d.ts +2 -2
- package/dist/blocks/service-principals/index.d.ts +1 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/react/index.d.ts +1 -1
- package/dist/blocks/sessions/react/server.d.ts +1 -1
- package/dist/blocks/sessions/solid/index.d.ts +2 -2
- package/dist/blocks/sessions/svelte/index.d.ts +2 -2
- package/dist/blocks/sessions/vue/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/react/index.d.ts +1 -1
- package/dist/blocks/settings/react/server.d.ts +1 -1
- package/dist/blocks/settings/solid/index.d.ts +2 -2
- package/dist/blocks/settings/svelte/index.d.ts +2 -2
- package/dist/blocks/settings/vue/index.d.ts +2 -2
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/shared-signals/index.d.ts +2 -2
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sso/index.d.ts +2 -2
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/react/index.d.ts +1 -1
- package/dist/blocks/tags/react/server.d.ts +1 -1
- package/dist/blocks/tags/solid/index.d.ts +2 -2
- package/dist/blocks/tags/svelte/index.d.ts +2 -2
- package/dist/blocks/tags/vue/index.d.ts +2 -2
- package/dist/blocks/targets/index.d.ts +1 -1
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/templates/index.d.ts +3 -3
- package/dist/blocks/time-tracking/index.d.ts +1 -1
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/undo/react/index.d.ts +1 -1
- package/dist/blocks/undo/react/server.d.ts +1 -1
- package/dist/blocks/undo/solid/index.d.ts +2 -2
- package/dist/blocks/undo/svelte/index.d.ts +2 -2
- package/dist/blocks/undo/vue/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/react/index.d.ts +1 -1
- package/dist/blocks/usage/react/server.d.ts +1 -1
- package/dist/blocks/usage/solid/index.d.ts +2 -2
- package/dist/blocks/usage/svelte/index.d.ts +2 -2
- package/dist/blocks/usage/vue/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.d.ts +4 -4
- package/dist/blocks/work-items/index.d.ts +1 -1
- package/dist/blocks/workflow-builder/index.d.ts +4 -4
- package/dist/blocks/workflow-builder/react/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/solid/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/svelte/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/vue/index.d.ts +2 -2
- package/dist/blocks/workflows/index.d.ts +2 -2
- package/dist/blocks/workflows/react/index.d.ts +1 -1
- package/dist/blocks/workflows/solid/index.d.ts +2 -2
- package/dist/blocks/workflows/svelte/index.d.ts +2 -2
- package/dist/blocks/workflows/vue/index.d.ts +2 -2
- package/dist/{bucket-BBSNDFNH.d.ts → bucket-BbePDVwc.d.ts} +16 -0
- package/dist/chat-sdk/index.d.ts +2 -2
- package/dist/chat-sdk/react/index.d.ts +2 -2
- package/dist/chat-sdk/react/server.d.ts +2 -2
- package/dist/cli/add-DnAyR9w_.js +1 -0
- package/dist/cli/{add-B5V6uokQ.js → add-TT72pQk6.js} +3 -3
- package/dist/cli/adopt-BuS-DC7_.js +1 -0
- package/dist/cli/{adopt-Ht34C3QD.js → adopt-mbB1bcIG.js} +4 -4
- package/dist/cli/{apply-4BmTvj2A.js → apply-CiBFOFGw.js} +15 -21
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-jIvPqPtw.js → blocks-5-JGzwXX.js} +1 -1
- package/dist/cli/{blocks-bBI050w6.js → blocks-DeLQOlUK.js} +1 -1
- package/dist/cli/{cache-CVJmPGpd.js → cache-DQwgb3rg.js} +1 -1
- package/dist/cli/{codemod-vsknM1Ue.js → codemod-BzAMX4el.js} +2 -2
- package/dist/cli/{command-DLCZeHdo.js → command-dfdVhU_2.js} +16 -1
- package/dist/cli/{completion-CEZ-c3ja.js → completion-4lLjtI49.js} +1 -1
- package/dist/cli/{completion-D2BObVth.js → completion-D4InNrxw.js} +2 -2
- package/dist/cli/{completion-BAm8SwGQ.js → completion-zsp5s0zI.js} +2 -2
- package/dist/cli/{config-CynctXbc.js → config-CCyweX7Y.js} +1 -1
- package/dist/cli/{config-CC5DXgKX.js → config-DI6ielsx.js} +1 -1
- package/dist/cli/{config-C4e_RrmL.js → config-yZ55rsKZ.js} +1 -1
- package/dist/cli/{db-BxMRcHrY.js → db-TRymMyAW.js} +3 -3
- package/dist/cli/{design-edit-B-WsnhUF.js → design-edit-0U9iCTiS.js} +29 -2
- package/dist/cli/{doctor-D47sFjh9.js → doctor-DOfy6kjt.js} +119 -70
- package/dist/cli/env-Cmu99uKR.js +1 -0
- package/dist/cli/{env--JFvv45k.js → env-Dh5K5t2U.js} +32 -31
- package/dist/cli/{gen-D2E8osBE.js → gen-D3sC5jDn.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-Cx7DDAdQ.js → init-DNomoycJ.js} +12 -18
- package/dist/cli/{introspect-Ck7aa6v0.js → introspect-kYX06Q2g.js} +3 -3
- package/dist/cli/{keys-6ufnWeZl.js → keys-B8dIJwwi.js} +1 -1
- package/dist/cli/{live-CLxJNC0r.js → live-CkV3d3yp.js} +1 -1
- package/dist/cli/{mcp-BVWvEoKo.js → mcp-DrxB2Wuw.js} +3 -3
- package/dist/cli/{metadata-BRywyPvv.js → metadata-BGkle6WM.js} +1 -1
- package/dist/cli/{moved-BmtFuMK3.js → moved-BMQu1YNY.js} +1 -1
- package/dist/cli/{parse-ksnw4phM.js → parse-QzDvMpXH.js} +1 -1
- package/dist/cli/{preset-B1o6KbFp.js → preset-CfIs24cc.js} +1 -1
- package/dist/cli/run-Bck-p0MI.js +63 -0
- package/dist/cli/{run-Bb8Nn8Ax.js → run-BhJKAanr.js} +2 -2
- package/dist/cli/{run-nX5ffQM_.js → run-DRZ10srj.js} +51 -43
- package/dist/cli/{scaffold-DcXr4z7M.js → scaffold-DoURlDEI.js} +1 -1
- package/dist/cli/{scaffold-fO-FJGoO.js → scaffold-mzy3OsN5.js} +1 -1
- package/dist/cli/seed-C5q4UUIL.js +1 -0
- package/dist/cli/{seed-BmOC6_iz.js → seed-CIdg6s7m.js} +3 -3
- package/dist/cli/{skills-CUx7S0bk.js → skills-D3zwIlGA.js} +1 -1
- package/dist/cli/{snapshot-ClgWGd-b.js → snapshot-BBKFojqM.js} +3 -3
- package/dist/cli/{source-args-BDiUhsH8.js → source-args-Cwo7zwvq.js} +1 -1
- package/dist/cli/{spec-DjHpWZJM.js → spec-DOgQUZwM.js} +1 -1
- package/dist/cli/{spec-CM7iyRnE.js → spec-DZeIP9ta.js} +3 -3
- package/dist/cli/{sql-C4ymac2h.js → sql-CL_Lbhwl.js} +1 -1
- package/dist/cli/{sql-ybcjbz20.js → sql-DLOvvnBV.js} +1 -1
- package/dist/cli/stack-env-_uWWNHWq.js +87 -0
- package/dist/cli/{stack-status-Cb_D79ZR.js → stack-status-_NUgd-g5.js} +41 -1
- package/dist/cli/{version-CUKjFbNd.js → version-B7akdvDv.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +5 -5
- package/dist/{client-GdJH4XJM.d.ts → client-BAOZuBhz.d.ts} +1 -1
- package/dist/{client-B9_8yzct.d.ts → client-BJN0IMEp.d.ts} +2 -2
- package/dist/{client-QvuCfO4b.d.ts → client-BMcjLG0V.d.ts} +5 -5
- package/dist/{client-CeH7vd-g.d.ts → client-BN_fXOs7.d.ts} +1 -1
- package/dist/{client-CCGSn7m5.d.ts → client-BONsuFYf.d.ts} +4 -4
- package/dist/{client-CBQ2TV0r.d.ts → client-BPn9XhAM.d.ts} +1 -1
- package/dist/{client-ehjQ2tIT.d.ts → client-BtC-r4hE.d.ts} +3 -3
- package/dist/{client-DarDYaQj.d.ts → client-BuneNd-C.d.ts} +1 -1
- package/dist/{client-B_vHBwB6.d.ts → client-CHwNV8Kz.d.ts} +3 -3
- package/dist/{client-DbxvLC9Y.d.ts → client-CLQHsa-2.d.ts} +1 -1
- package/dist/{client-9ZOirdtr.d.ts → client-CMxxwT3N.d.ts} +3 -3
- package/dist/{client-B4a7f5ma.d.ts → client-CU7aNN_B.d.ts} +2 -2
- package/dist/{client-cWUWrgis.d.ts → client-CYEdJKjk.d.ts} +1 -1
- package/dist/{client-CNh-pjkT.d.ts → client-CYhSGlCN.d.ts} +3 -3
- package/dist/{client-5YAtJjyT.d.ts → client-D3gRTNSi.d.ts} +1 -1
- package/dist/{client-BqoYuTK3.d.ts → client-DB34f_7i.d.ts} +2 -2
- package/dist/{client-eCtwzCbQ.d.ts → client-DCawyopp.d.ts} +3 -3
- package/dist/{client-Bovn6-M9.d.ts → client-Dqa4XyJ5.d.ts} +1 -1
- package/dist/{client-CXTDJCIs.d.ts → client-Dr5h2r9r.d.ts} +1 -1
- package/dist/{client-CrZKZVbb.d.ts → client-DrTqKgvy.d.ts} +1 -1
- package/dist/{client-BNy-K6XT.d.ts → client-GCCRI9ge.d.ts} +1 -1
- package/dist/{client-DLz68Qga.d.ts → client-P6v3h7vh.d.ts} +1 -1
- package/dist/{client-CJT3xiuI.d.ts → client-P8l8ncxV.d.ts} +3 -3
- package/dist/{client-BXv09wO1.d.ts → client-kWg4OqIr.d.ts} +2 -2
- package/dist/{client-C3rmP3b0.d.ts → client-tvG258_1.d.ts} +4 -4
- package/dist/{client-Dft5Vq6m.d.ts → client-wKmX-f3r.d.ts} +1 -1
- package/dist/{composite-BFatHqOU.js → composite-1kPAxXto.js} +1 -1
- package/dist/{composite-B1Mmo4TU.d.ts → composite-DzvBL5nb.d.ts} +5 -5
- package/dist/{connectors-CR9FJGzV.d.ts → connectors-BwPNt-ZG.d.ts} +1 -1
- package/dist/{controller-BBXX1RMw.d.ts → controller-BZhiIb-N.d.ts} +1 -1
- package/dist/create/index.d.ts +24 -2
- package/dist/create/index.js +1001 -914
- package/dist/credentials/index.d.ts +2 -2
- package/dist/{define-M_r1d2AT.d.ts → define-DYZnvAbs.d.ts} +1 -1
- package/dist/{define-block-CPyJ95rq.d.ts → define-block-BHxLHLys.d.ts} +2 -2
- package/dist/edge/index.d.ts +8 -8
- package/dist/edge/index.js +3 -3
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{embeddings-lTUwzvW4.d.ts → embeddings-CKhygw4C.d.ts} +1 -1
- package/dist/{ended-DQmwYosO.d.ts → ended-De6H52nX.d.ts} +1 -1
- package/dist/{entitlements-DgkeStXd.d.ts → entitlements-CtBGXb3B.d.ts} +2 -2
- package/dist/eve/index.d.ts +3 -3
- package/dist/eve/index.js +1 -1
- package/dist/{eve-C_Onyk_j.d.ts → eve-B6ru2Bt4.d.ts} +2 -2
- package/dist/{executor-DfdC00xr.d.ts → executor-BWgJNbGh.d.ts} +1 -1
- package/dist/expo/index.d.ts +3 -3
- package/dist/expo/index.js +3 -3
- package/dist/expo-sqlite/index.d.ts +1 -1
- package/dist/{field-errors-DmJICh93.d.ts → field-errors-Z-sgsdoN.d.ts} +6 -6
- package/dist/{framework-D6IFkuAg.d.ts → framework-BQhTsLX-.d.ts} +5 -5
- package/dist/{framework-Ch8bMmQY.js → framework-C6PKBgme.js} +1 -1
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +8 -8
- package/dist/hono/index.js +2 -2
- package/dist/{index-DgobXyil.d.ts → index-1Vsg-7YV.d.ts} +1 -1
- package/dist/{index-D8yhOz_4.d.ts → index-BJLPQr2s.d.ts} +36 -3
- package/dist/{index-CK0Sxx57.d.ts → index-C-_fs7EI.d.ts} +7 -7
- package/dist/{index-F6XTTkC9.d.ts → index-CXFf-c-j.d.ts} +4 -4
- package/dist/{index-CEcDqDhc.d.ts → index-Cm2-g_4H.d.ts} +1 -1
- package/dist/{index-qCG78-Rf.d.ts → index-DTQSeHx2.d.ts} +2 -2
- package/dist/{index-DHReeV74.d.ts → index-Hc4tetmB.d.ts} +1 -1
- package/dist/{index-Bq409YZn.d.ts → index-QWTq2o31.d.ts} +1 -1
- package/dist/{index-Csi8jD-m.d.ts → index-XcTBR4Gb.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/{kit-BeZX2pR_.d.ts → kit-De-EVRhw.d.ts} +3 -3
- package/dist/{knowledge-CRk1jOAJ.d.ts → knowledge-B5zdpDD-.d.ts} +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-FhFXzObg.d.ts → list-query-aXr2WkGA.d.ts} +1 -1
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/sdk/index.d.ts +5 -5
- package/dist/mcp/sdk/index.js +1 -1
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/index.d.ts +15 -15
- package/dist/next/index.js +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +1 -1
- package/dist/otel/index.js +5 -5
- package/dist/{outbox-njgoVzFA.d.ts → outbox-B1hZ7PPY.d.ts} +1 -1
- package/dist/{ports-DCAcG26M.d.ts → ports-BCDIbC_U.d.ts} +1 -1
- package/dist/{ports-DGe1vzF2.d.ts → ports-P0A5wo_-.d.ts} +2 -2
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +2 -2
- package/dist/preset/index.js +2 -2
- package/dist/{preset-Cqwlwx6G.js → preset-Cf0T9GRt.js} +49 -6
- package/dist/{provider-CNs0Jx0I.d.ts → provider-DXgx5oSA.d.ts} +1 -1
- package/dist/{push-token-D2sDxSNN.d.ts → push-token-y1Gnz5bQ.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +7 -7
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +8 -8
- package/dist/react/session.d.ts +2 -2
- package/dist/react-router/index.d.ts +5 -5
- package/dist/react-router/index.js +2 -2
- package/dist/realtime/index.d.ts +5 -5
- package/dist/{refusal-CufncwaN.d.ts → refusal-C7geIBRl.d.ts} +1 -1
- package/dist/{resolve-f8QNuYI3.js → resolve-AtncaPTU.js} +12 -5
- package/dist/{resolve-Bqb8TMTt.d.ts → resolve-Ceft-18-.d.ts} +6 -2
- package/dist/{resource-execute-ruP2L1op.d.ts → resource-execute-Bxvgmx-n.d.ts} +1 -1
- package/dist/{resource-types-CGr0BbL-.d.ts → resource-types-LW1i5-h3.d.ts} +2 -2
- package/dist/{resources-BiQpsM6O.d.ts → resources-D3_FAz_H.d.ts} +1 -1
- package/dist/{respond-CEBC6KUX.d.ts → respond-BSL36dQp.d.ts} +1 -1
- package/dist/server/index.d.ts +27 -19
- package/dist/server/index.js +4 -4
- package/dist/{server-types-BKN_R4Ws.d.ts → server-types-fLdep4gb.d.ts} +11 -9
- package/dist/{session-CwpfitmI.d.ts → session-DObioXpX.d.ts} +3 -3
- package/dist/solid/index.d.ts +7 -7
- package/dist/{solid-controller-Uqi5ef6z.d.ts → solid-controller-CWotGxcG.d.ts} +1 -1
- package/dist/solid-start/index.d.ts +5 -5
- package/dist/solid-start/index.js +2 -2
- package/dist/sql/index.d.ts +1 -1
- package/dist/sql/index.js +1 -1
- package/dist/{sql-DCfCbS2j.js → sql-CT1Jnwp8.js} +1 -1
- package/dist/ssr/index.d.ts +4 -4
- package/dist/ssr/index.js +1 -1
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +11 -0
- package/dist/{subject-readers-BNQzBDN9.d.ts → subject-readers-BUChuOxL.d.ts} +1 -1
- package/dist/{support-BAhTqI7y.js → support-C2wPYwD7.js} +1 -1
- package/dist/{support-view-IRnDLuGN.d.ts → support-view-Bj_lZ8Wr.d.ts} +1 -1
- package/dist/svelte/index.d.ts +6 -6
- package/dist/{svelte-controller-BQOIXWEw.d.ts → svelte-controller-sS4X66yL.d.ts} +1 -1
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tags-AUpl4Ob9.d.ts → tags-BrGopDVG.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-db/supabase/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +5 -5
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenant-BNp3kBAG.d.ts → tenant-DZMLVuyQ.d.ts} +2 -2
- package/dist/testing/index.d.ts +13 -15
- package/dist/{topic-1WTkDnPd.d.ts → topic-DAY_HOX2.d.ts} +3 -3
- package/dist/{types-DDQ-Rsep.d.ts → types-BA1eTvy4.d.ts} +1 -1
- package/dist/{types-Bq64h5nY.d.ts → types-Bels39_u.d.ts} +2 -2
- package/dist/{types-DO9xWsGC.d.ts → types-DOC7wnh6.d.ts} +11 -2
- package/dist/{types-B4zhT6dq.d.ts → types-D_2rClz-.d.ts} +1 -1
- package/dist/upload-claim-BBFCZbBF.js +33 -0
- package/dist/{vault-DR2-zOjz.d.ts → vault-ClkzMGTP.d.ts} +1 -1
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/{verify-BucYsoKq.d.ts → verify-DU4p9-Ve.d.ts} +1 -1
- package/dist/{version-TXpQEfh1.js → version-DSWxci83.js} +1 -1
- package/dist/{view-Bf7e07rQ.d.ts → view-KQhe6eNc.d.ts} +1 -1
- package/dist/vue/index.d.ts +7 -7
- package/dist/{vue-controller-Cav6Wt_r.d.ts → vue-controller-BUo1oove.d.ts} +1 -1
- package/dist/{watch-ry70AEm6.d.ts → watch-5btote1y.d.ts} +2 -2
- package/dist/{watch-topic-DWHy63ZJ.d.ts → watch-topic-C79ZW5-R.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/{workflow-sdk-DM7T3sF4.d.ts → workflow-sdk-CWdCWj7M.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/cli-commands-v1.json +15 -0
- package/schemas/config-v1.json +1 -1
- package/schemas/doctor-report-v1.json +1 -0
- package/dist/cli/add-DzRJEHzD.js +0 -1
- package/dist/cli/adopt-DDy50yz9.js +0 -1
- package/dist/cli/env-D-O91RK1.js +0 -1
- package/dist/cli/seed-C_BmN498.js +0 -1
package/dist/next/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as AnyModels, i as AnyFunctions } from "../types-BrpW5ixT.js";
|
|
2
|
-
import { r as AuthState } from "../resolve-
|
|
2
|
+
import { r as AuthState } from "../resolve-Ceft-18-.js";
|
|
3
3
|
import { s as PermissionRef, t as AnyAuthorizer } from "../authorizer-eiOjo-3l.js";
|
|
4
|
-
import { Wt as DbStats, at as QuerySpec, q as ReadSet, s as CacheAdapter, t as BetterSupabase } from "../define-
|
|
4
|
+
import { Wt as DbStats, at as QuerySpec, q as ReadSet, s as CacheAdapter, t as BetterSupabase } from "../define-DYZnvAbs.js";
|
|
5
5
|
import { n as Impersonator } from "../impersonation-D5chOkrO.js";
|
|
6
|
-
import { C as SupportSessions, S as SupportPolicy, T as supportSessions, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer, r as ContextOptions, v as ActiveSupport, w as SupportStartRequest, x as SupportOptions } from "../server-types-
|
|
6
|
+
import { C as SupportSessions, S as SupportPolicy, T as supportSessions, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer, r as ContextOptions, v as ActiveSupport, w as SupportStartRequest, x as SupportOptions } from "../server-types-fLdep4gb.js";
|
|
7
7
|
import { n as AmrEntry, t as Aal } from "../mfa-YzkRjNad.js";
|
|
8
|
-
import { t as tenantOf } from "../tenant-
|
|
9
|
-
import { n as toSession, t as AuthSession } from "../view-
|
|
10
|
-
import { t as AuthOutageHook } from "../session-
|
|
11
|
-
import { n as AuthKind, r as GuardOptions } from "../respond-
|
|
12
|
-
import { a as AuthorizedContext, c as Unwrapped, i as AuthorizeOptions, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-
|
|
13
|
-
import { r as LiveCountSeed, t as CountRunner } from "../index-
|
|
14
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
15
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
16
|
-
import { t as ResourceMap } from "../resources-
|
|
17
|
-
import { t as defineAction } from "../resource-execute-
|
|
18
|
-
import { i as tagFor, t as TagOptions } from "../tags-
|
|
19
|
-
import { n as supportOf, t as SupportView } from "../support-view-
|
|
8
|
+
import { t as tenantOf } from "../tenant-DZMLVuyQ.js";
|
|
9
|
+
import { n as toSession, t as AuthSession } from "../view-KQhe6eNc.js";
|
|
10
|
+
import { t as AuthOutageHook } from "../session-DObioXpX.js";
|
|
11
|
+
import { n as AuthKind, r as GuardOptions } from "../respond-BSL36dQp.js";
|
|
12
|
+
import { a as AuthorizedContext, c as Unwrapped, i as AuthorizeOptions, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-De-EVRhw.js";
|
|
13
|
+
import { r as LiveCountSeed, t as CountRunner } from "../index-DTQSeHx2.js";
|
|
14
|
+
import { r as MembershipClaim } from "../entitlements-CtBGXb3B.js";
|
|
15
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-LW1i5-h3.js";
|
|
16
|
+
import { t as ResourceMap } from "../resources-D3_FAz_H.js";
|
|
17
|
+
import { t as defineAction } from "../resource-execute-Bxvgmx-n.js";
|
|
18
|
+
import { i as tagFor, t as TagOptions } from "../tags-BrGopDVG.js";
|
|
19
|
+
import { n as supportOf, t as SupportView } from "../support-view-Bj_lZ8Wr.js";
|
|
20
20
|
import { NextRequest } from "next/server.js";
|
|
21
21
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
22
22
|
//#region src/next/collector.d.ts
|
package/dist/next/index.js
CHANGED
|
@@ -9,10 +9,10 @@ import { o as problemResponse } from "../problem-JRCohp1j.js";
|
|
|
9
9
|
import { i as claimsOf } from "../claims-PqzCxaTD.js";
|
|
10
10
|
import { t as supportOf } from "../support-view-g4YLBeqX.js";
|
|
11
11
|
import { t as tenantOf } from "../tenant-B-fiItlJ.js";
|
|
12
|
-
import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents, p as supportCookieMaxAge, r as handle, s as createServer, t as bearerRequest, v as outageResponse } from "../adapter-
|
|
12
|
+
import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents, p as supportCookieMaxAge, r as handle, s as createServer, t as bearerRequest, v as outageResponse } from "../adapter-CRNH2aX_.js";
|
|
13
13
|
import { a as checkAal, n as toSession } from "../view-CYX1wsgp.js";
|
|
14
14
|
import { o as settle, r as guard, t as defaultExpose } from "../respond-Bhp3G__q.js";
|
|
15
|
-
import { t as supportSessions } from "../support-
|
|
15
|
+
import { t as supportSessions } from "../support-C2wPYwD7.js";
|
|
16
16
|
import { r as defineAction } from "../resource-Bdkqi8jo.js";
|
|
17
17
|
import { r as tagFor, t as cacheTagsOf } from "../tags-B99_U9Pp.js";
|
|
18
18
|
import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-LTbHrWWD.js";
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "../refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "../refusal-C7geIBRl.js";
|
|
2
2
|
import { i as toWebHeaders, r as applyWebHeaders, t as NodeHeaderTarget } from "../node-headers-AO06VhqH.js";
|
|
3
|
-
import { _ as toNodeHandler, a as FastifyReplyLike, b as toWebRequest, c as KoaMiddleware, d as guard, f as koaGuard, g as toKoa, h as toFastify, i as FastifyHook, l as ToNodeOptions, m as toExpress, n as ExpressMiddleware, o as FastifyRequestLike, p as problemErrorHandler, r as ExpressResponse, s as KoaContextLike, t as ExpressErrorHandler, u as fastifyGuard, v as WebRequestOptions, y as sendWebResponse } from "../index-
|
|
3
|
+
import { _ as toNodeHandler, a as FastifyReplyLike, b as toWebRequest, c as KoaMiddleware, d as guard, f as koaGuard, g as toKoa, h as toFastify, i as FastifyHook, l as ToNodeOptions, m as toExpress, n as ExpressMiddleware, o as FastifyRequestLike, p as problemErrorHandler, r as ExpressResponse, s as KoaContextLike, t as ExpressErrorHandler, u as fastifyGuard, v as WebRequestOptions, y as sendWebResponse } from "../index-QWTq2o31.js";
|
|
4
4
|
export { ExpressErrorHandler, ExpressMiddleware, ExpressResponse, FastifyHook, FastifyReplyLike, FastifyRequestLike, KoaContextLike, KoaMiddleware, type NodeHeaderTarget, type RouteGuardOptions, ToNodeOptions, type WebRequestOptions, applyWebHeaders, fastifyGuard, guard, koaGuard, problemErrorHandler, sendWebResponse, toExpress, toFastify, toKoa, toNodeHandler, toWebHeaders, toWebRequest };
|
package/dist/orpc/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "../result-BREt7qOh.js";
|
|
2
2
|
import { a as AnyModels, i as AnyFunctions } from "../types-BrpW5ixT.js";
|
|
3
|
-
import { r as AuthState } from "../resolve-
|
|
3
|
+
import { r as AuthState } from "../resolve-Ceft-18-.js";
|
|
4
4
|
import { i as ProblemDetails } from "../problem-DCDIQiTA.js";
|
|
5
|
-
import { t as BetterSupabase } from "../define-
|
|
6
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-
|
|
7
|
-
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-
|
|
8
|
-
import { s as BlockRequireOptions } from "../kit-
|
|
5
|
+
import { t as BetterSupabase } from "../define-DYZnvAbs.js";
|
|
6
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-fLdep4gb.js";
|
|
7
|
+
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-BSL36dQp.js";
|
|
8
|
+
import { s as BlockRequireOptions } from "../kit-De-EVRhw.js";
|
|
9
9
|
import { t as Validated } from "../shared-DDSjEGDR.js";
|
|
10
10
|
import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-c6c1mB6R.js";
|
|
11
11
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
package/dist/orpc/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as dbErrorOf } from "../errors-BV1SKTVs.js";
|
|
|
2
2
|
import { c as toProblem } from "../problem-JRCohp1j.js";
|
|
3
3
|
import { i as claimsOf } from "../claims-PqzCxaTD.js";
|
|
4
4
|
import { t as tenantOf } from "../tenant-B-fiItlJ.js";
|
|
5
|
-
import { c as extendServer, n as flushEvents, s as createServer, x as refreshFor } from "../adapter-
|
|
5
|
+
import { c as extendServer, n as flushEvents, s as createServer, x as refreshFor } from "../adapter-CRNH2aX_.js";
|
|
6
6
|
import { n as toSession } from "../view-CYX1wsgp.js";
|
|
7
7
|
import { o as settle, r as guard, t as defaultExpose } from "../respond-Bhp3G__q.js";
|
|
8
8
|
import { t as authorizeCaller } from "../kit-LTbHrWWD.js";
|
package/dist/otel/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as definePlugin } from "../plugin-tfXW1-qO.js";
|
|
2
2
|
import { t as SPEC_PINS } from "../spec-pins-S4PymRxp.js";
|
|
3
|
-
import "../version-
|
|
3
|
+
import "../version-DSWxci83.js";
|
|
4
4
|
import { i as blockEventAttributes } from "../block-events-DD9Q_NUz.js";
|
|
5
5
|
import { SpanKind, SpanStatusCode, context, metrics, propagation, trace } from "@opentelemetry/api";
|
|
6
6
|
//#region src/otel/index.ts
|
|
@@ -40,9 +40,9 @@ function systemOf(executor) {
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
function otel(options = {}) {
|
|
43
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
43
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.12.0");
|
|
44
44
|
let histogram;
|
|
45
|
-
if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.
|
|
45
|
+
if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.12.0")).createHistogram("db.client.operation.duration", {
|
|
46
46
|
unit: "s",
|
|
47
47
|
description: "Duration of database client operations.",
|
|
48
48
|
advice: { explicitBucketBoundaries: [
|
|
@@ -216,7 +216,7 @@ function otel(options = {}) {
|
|
|
216
216
|
* Returns a function that stops listening.
|
|
217
217
|
*/
|
|
218
218
|
function traceAuth(betterSupabase, options = {}) {
|
|
219
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
219
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.12.0");
|
|
220
220
|
const offAuth = betterSupabase.events.on("auth", (event) => {
|
|
221
221
|
const span = tracer.startSpan("auth.resolve", {
|
|
222
222
|
kind: SpanKind.INTERNAL,
|
|
@@ -254,7 +254,7 @@ function traceAuth(betterSupabase, options = {}) {
|
|
|
254
254
|
* set an error status. Returns a function that stops listening.
|
|
255
255
|
*/
|
|
256
256
|
function traceBlockEvents(betterSupabase, options = {}) {
|
|
257
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
257
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.12.0");
|
|
258
258
|
return betterSupabase.events.on("block", (event) => {
|
|
259
259
|
const attributes = {
|
|
260
260
|
...options.attributes,
|
|
@@ -5,7 +5,7 @@ import { i as CursorPageOptions, n as BlockOptions } from "./block-helpers-CjcQM
|
|
|
5
5
|
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|
|
6
6
|
import { t as BlockProblemOptions } from "./problem-DCDIQiTA.js";
|
|
7
7
|
import { i as EventSink, t as CloudEvent } from "./cloud-event-DXkNoI6v.js";
|
|
8
|
-
import { g as SubscriberPolicy, i as AuthorizationHooks } from "./authorization-hooks-
|
|
8
|
+
import { g as SubscriberPolicy, i as AuthorizationHooks } from "./authorization-hooks-WDQMKIsc.js";
|
|
9
9
|
//#region src/blocks/outbox/outbox.d.ts
|
|
10
10
|
/** One row of the outbox, as `outbox_claim` and `outbox_history` return it. */
|
|
11
11
|
interface OutboxEvent {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AsyncResult } from "./result-BREt7qOh.js";
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-C79ZW5-R.js";
|
|
3
3
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
4
4
|
//#region src/client/ports.d.ts
|
|
5
5
|
/**
|
|
@@ -6,7 +6,7 @@ import { t as BlockTransport } from "./block-transport-DezJPPA0.js";
|
|
|
6
6
|
import { r as BlockTemporalOptions } from "./block-helpers-CjcQM1yA.js";
|
|
7
7
|
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|
|
8
8
|
import { r as FieldsOf } from "./block-fields-DnaDbgZS.js";
|
|
9
|
-
import { f as AiFiles } from "./types-
|
|
9
|
+
import { f as AiFiles, y as UploadClaimStorage } from "./types-DOC7wnh6.js";
|
|
10
10
|
import { g as JobHandler } from "./types-BEEFkNFY.js";
|
|
11
11
|
import { i as EventSink } from "./cloud-event-DXkNoI6v.js";
|
|
12
12
|
import { g as Workflows } from "./workflows-DQBCzrHC.js";
|
|
@@ -35,7 +35,7 @@ interface AttachmentBucket {
|
|
|
35
35
|
}): PromiseLike<StorageReply<unknown>>;
|
|
36
36
|
}
|
|
37
37
|
/** `supabase.storage`, typed structurally. */
|
|
38
|
-
interface AttachmentStorage {
|
|
38
|
+
interface AttachmentStorage extends UploadClaimStorage {
|
|
39
39
|
from(bucket: string): AttachmentBucket;
|
|
40
40
|
}
|
|
41
41
|
interface AttachmentsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as AuthSnapshot } from "../bind-
|
|
1
|
+
import { t as AuthSnapshot } from "../bind-Bfo40o63.js";
|
|
2
2
|
import { _ as SqliteValue, a as fromSqliteError, b as quoteSqliteIdent, c as SqliteCompilerOptions, d as SqliteKeyedPlan, f as SqliteKeys, g as SqliteSelectPlan, h as SqliteReturning, i as SqliteContextLike, l as SqliteDecode, m as SqliteQuery, n as PowerSyncExecutorOptions, o as postgrestTimestamp, p as SqlitePlan, r as powersyncExecutor, s as SqliteColumn, t as PowerSyncDatabaseLike, u as SqliteInsertPlan, v as compileSqlite, x as sqliteValue, y as likeToGlob } from "../executor-CvsNcQsa.js";
|
|
3
|
-
import { a as checkSqlite, i as CheckSqliteOptions, n as sqliteTables, o as sqliteCompiler, r as watch, t as WatchOptions } from "../watch-
|
|
3
|
+
import { a as checkSqlite, i as CheckSqliteOptions, n as sqliteTables, o as sqliteCompiler, r as watch, t as WatchOptions } from "../watch-5btote1y.js";
|
|
4
4
|
import { a as UploadConnector, c as UploadRepository, d as uploadOutcome, i as RejectedStore, l as UploadRoute, n as CrudQueueLike, o as UploadConnectorOptions, r as RejectedChange, s as UploadOutcome, t as CrudEntryLike, u as createUploadConnector } from "../connector-D9NMNkv0.js";
|
|
5
5
|
//#region src/powersync/auth.d.ts
|
|
6
6
|
/** The part of a PowerSync database `syncWithAuth` drives. */
|
package/dist/preset/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { $ as PRESET_FRAMEWORKS, G as PRESET_GROUPS, J as PresetName, K as PRESET_NAMES, Q as PRESET_FIELDS, U as NamedPreset, W as PRESETS, X as namedPreset, Y as isPresetName, Z as DEFAULT_CONVENTIONS, at as PresetConventions, bn as AppColumnFormat, ct as PresetFieldValue, dt as PresetScope, et as PRESET_TENANT_NAMES, gt as presetValueLabel, ht as presetField, lt as PresetFramework, mt as integrationsForFramework, nt as Preset, ot as PresetField, pn as APP_COLUMN_FORMATS, pt as PresetValueInfo, q as PresetGroup, rt as PresetAccess, st as PresetFieldKey, tt as PRESET_VERSION, ut as PresetPlatforms } from "../codegen-C64C0NZG.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { $ as PresetGlueItem, A as readDesignFile, B as ResolvedPresetBlock, C as designFileSource, D as encodeDesign, E as designOf, F as presetConfig, G as decodePreset, H as presetBlockConflict, I as presetOf, J as withPresetField, K as encodePreset, L as PresetConflict, M as PresetInput, N as conventionConfig, O as isDesignCode, P as expandPreset, Q as PresetCatalogManifest, R as PresetIntegration, S as designConfigSource, T as designInstallCommand, U as resolvePreset, V as listNames, W as DecodedPreset, X as PresetCatalog, Y as PRESET_CATALOG, Z as PresetCatalogBlock, _ as DesignTooLongError, a as presetConfigSource, b as designApplyCommand, c as DesignChange, d as diffAppTables, et as PRESET_BLOCKS, f as diffDesigns, g as DesignFile, h as DESIGN_FORMAT, i as presetBlocksSource, j as ConfigConventions, k as parseDesign, l as DesignChangeKind, m as DESIGN_FILE, n as glueCommand, o as presetGlue, p as CreateDesign, q as isPresetCode, r as presetApplyCommand, s as presetInstallCommand, t as PROVIDER_COMMENT, u as DiffOptions, v as MAX_DESIGN_CODE_LENGTH, w as designFormat, x as designConfig, y as decodeDesign, z as ResolvedPreset } from "../index-BJLPQr2s.js";
|
|
3
3
|
import { a as appReservedColumns, i as appNameLengthError, n as appDefaultError, r as appIdentifierError, s as isAppDefault, t as APP_NAME_MAX } from "../app-tables-BrMBjyuq.js";
|
|
4
|
-
export { APP_COLUMN_FORMATS, APP_NAME_MAX, type AppColumnFormat, type ConfigConventions, type CreateDesign, DEFAULT_CONVENTIONS, DESIGN_FORMAT, type DecodedPreset, type DesignChange, type DesignChangeKind, DesignTooLongError, type DiffOptions, MAX_DESIGN_CODE_LENGTH, type NamedPreset, PRESETS, PRESET_BLOCKS, PRESET_CATALOG, PRESET_FIELDS, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PRESET_VERSION, PROVIDER_COMMENT, type Preset, type PresetAccess, type PresetCatalog, type PresetCatalogBlock, type PresetCatalogManifest, type PresetConflict, type PresetConventions, type PresetField, type PresetFieldKey, type PresetFieldValue, type PresetFramework, type PresetGlueItem, type PresetGroup, type PresetInput, type PresetIntegration, type PresetName, type PresetPlatforms, type PresetScope, type PresetValueInfo, type ResolvedPreset, type ResolvedPresetBlock, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, conventionConfig, decodeDesign, decodePreset, designApplyCommand, designConfig, designConfigSource, designFormat, designInstallCommand, designOf, diffAppTables, diffDesigns, encodeDesign, encodePreset, expandPreset, glueCommand, integrationsForFramework, isAppDefault, isDesignCode, isPresetCode, isPresetName, listNames, namedPreset, presetApplyCommand, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetGlue, presetInstallCommand, presetOf, presetValueLabel, resolvePreset, withPresetField };
|
|
4
|
+
export { APP_COLUMN_FORMATS, APP_NAME_MAX, type AppColumnFormat, type ConfigConventions, type CreateDesign, DEFAULT_CONVENTIONS, DESIGN_FILE, DESIGN_FORMAT, type DecodedPreset, type DesignChange, type DesignChangeKind, type DesignFile, DesignTooLongError, type DiffOptions, MAX_DESIGN_CODE_LENGTH, type NamedPreset, PRESETS, PRESET_BLOCKS, PRESET_CATALOG, PRESET_FIELDS, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PRESET_VERSION, PROVIDER_COMMENT, type Preset, type PresetAccess, type PresetCatalog, type PresetCatalogBlock, type PresetCatalogManifest, type PresetConflict, type PresetConventions, type PresetField, type PresetFieldKey, type PresetFieldValue, type PresetFramework, type PresetGlueItem, type PresetGroup, type PresetInput, type PresetIntegration, type PresetName, type PresetPlatforms, type PresetScope, type PresetValueInfo, type ResolvedPreset, type ResolvedPresetBlock, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, conventionConfig, decodeDesign, decodePreset, designApplyCommand, designConfig, designConfigSource, designFileSource, designFormat, designInstallCommand, designOf, diffAppTables, diffDesigns, encodeDesign, encodePreset, expandPreset, glueCommand, integrationsForFramework, isAppDefault, isDesignCode, isPresetCode, isPresetName, listNames, namedPreset, parseDesign, presetApplyCommand, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetGlue, presetInstallCommand, presetOf, presetValueLabel, readDesignFile, resolvePreset, withPresetField };
|
package/dist/preset/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { C as integrationsForFramework, E as PRESET_BLOCKS, S as PRESET_VERSION, T as presetValueLabel, _ as withPresetField, a as listNames, b as PRESET_FRAMEWORKS, c as PRESET_CATALOG, d as PRESET_NAMES, f as isPresetName, g as isPresetCode, h as encodePreset, i as presetOf, l as PRESETS, m as decodePreset, n as expandPreset, o as presetBlockConflict, p as namedPreset, r as presetConfig, s as resolvePreset, t as conventionConfig, u as PRESET_GROUPS, v as DEFAULT_CONVENTIONS, w as presetField, x as PRESET_TENANT_NAMES, y as PRESET_FIELDS } from "../config-DHhQmmuD.js";
|
|
2
2
|
import { a as appDefaultError, c as appReservedColumns, n as APP_NAME_MAX, o as appIdentifierError, p as isAppDefault, s as appNameLengthError, y as APP_COLUMN_FORMATS } from "../app-tables-BRjMcWhW.js";
|
|
3
|
-
import { _ as
|
|
4
|
-
export { APP_COLUMN_FORMATS, APP_NAME_MAX, DEFAULT_CONVENTIONS, DESIGN_FORMAT, DesignTooLongError, MAX_DESIGN_CODE_LENGTH, PRESETS, PRESET_BLOCKS, PRESET_CATALOG, PRESET_FIELDS, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PRESET_VERSION, PROVIDER_COMMENT, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, conventionConfig, decodeDesign, decodePreset, designApplyCommand, designConfig, designConfigSource, designFormat, designInstallCommand, designOf, diffAppTables, diffDesigns, encodeDesign, encodePreset, expandPreset, glueCommand, integrationsForFramework, isAppDefault, isDesignCode, isPresetCode, isPresetName, listNames, namedPreset, presetApplyCommand, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetGlue, presetInstallCommand, presetOf, presetValueLabel, resolvePreset, withPresetField };
|
|
3
|
+
import { C as presetConfigSource, S as presetBlocksSource, T as presetInstallCommand, _ as parseDesign, a as DesignTooLongError, b as glueCommand, c as designApplyCommand, d as designFileSource, f as designFormat, g as isDesignCode, h as encodeDesign, i as DESIGN_FORMAT, l as designConfig, m as designOf, n as diffDesigns, o as MAX_DESIGN_CODE_LENGTH, p as designInstallCommand, r as DESIGN_FILE, s as decodeDesign, t as diffAppTables, u as designConfigSource, v as readDesignFile, w as presetGlue, x as presetApplyCommand, y as PROVIDER_COMMENT } from "../preset-Cf0T9GRt.js";
|
|
4
|
+
export { APP_COLUMN_FORMATS, APP_NAME_MAX, DEFAULT_CONVENTIONS, DESIGN_FILE, DESIGN_FORMAT, DesignTooLongError, MAX_DESIGN_CODE_LENGTH, PRESETS, PRESET_BLOCKS, PRESET_CATALOG, PRESET_FIELDS, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PRESET_VERSION, PROVIDER_COMMENT, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, conventionConfig, decodeDesign, decodePreset, designApplyCommand, designConfig, designConfigSource, designFileSource, designFormat, designInstallCommand, designOf, diffAppTables, diffDesigns, encodeDesign, encodePreset, expandPreset, glueCommand, integrationsForFramework, isAppDefault, isDesignCode, isPresetCode, isPresetName, listNames, namedPreset, parseDesign, presetApplyCommand, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetGlue, presetInstallCommand, presetOf, presetValueLabel, readDesignFile, resolvePreset, withPresetField };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as PRESET_CATALOG, h as encodePreset, r as presetConfig } from "./config-DHhQmmuD.js";
|
|
1
|
+
import { c as PRESET_CATALOG, h as encodePreset, i as presetOf, r as presetConfig } from "./config-DHhQmmuD.js";
|
|
2
2
|
import { r as FIELD_FORMATS } from "./field-formats-Cif5gr7c.js";
|
|
3
3
|
import { f as appTablesOf } from "./app-tables-BRjMcWhW.js";
|
|
4
4
|
//#region src/preset/render.ts
|
|
5
|
-
const CREATE_URL = "https://bettersupabase.com/create";
|
|
5
|
+
const CREATE_URL = "https://app.bettersupabase.com/create";
|
|
6
6
|
/** The comment a config with the provider access model gets above `blocks`. */
|
|
7
7
|
const PROVIDER_COMMENT = [" // The provider access model reads roles from your authorization", " // library: set `authorization` to its adapter."];
|
|
8
8
|
const key = (name) => /^[a-z_$][a-z0-9_$]*$/i.test(name) ? name : JSON.stringify(name);
|
|
@@ -167,6 +167,8 @@ function designFormat(design) {
|
|
|
167
167
|
}
|
|
168
168
|
/** The longest design code, so a `/create` URL stays under common limits. */
|
|
169
169
|
const MAX_DESIGN_CODE_LENGTH = 6e3;
|
|
170
|
+
/** The name Create gives the design file it downloads. */
|
|
171
|
+
const DESIGN_FILE = "better-supabase.design.json";
|
|
170
172
|
/**
|
|
171
173
|
* What `encodeDesign` throws when a valid design is too long for a URL, so
|
|
172
174
|
* a caller can offer the config download instead of a fix.
|
|
@@ -175,7 +177,7 @@ var DesignTooLongError = class extends TypeError {
|
|
|
175
177
|
/** The length the code would have. */
|
|
176
178
|
length;
|
|
177
179
|
constructor(length) {
|
|
178
|
-
super(`design: the code is ${String(length)} characters; the most a URL carries is ${String(MAX_DESIGN_CODE_LENGTH)}. Download the
|
|
180
|
+
super(`design: the code is ${String(length)} characters; the most a URL carries is ${String(MAX_DESIGN_CODE_LENGTH)}. Download the design file instead, then run \`better-supabase init --preset ./${DESIGN_FILE}\`.`);
|
|
179
181
|
this.name = "DesignTooLongError";
|
|
180
182
|
this.length = length;
|
|
181
183
|
}
|
|
@@ -235,9 +237,13 @@ function positionsOf(value) {
|
|
|
235
237
|
}));
|
|
236
238
|
}
|
|
237
239
|
/**
|
|
238
|
-
* Checks a design
|
|
239
|
-
*
|
|
240
|
+
* Checks a design object, such as one from storage or a request body, and
|
|
241
|
+
* drops its empty parts. It runs the same checks as `decodeDesign`, without
|
|
242
|
+
* the code. Throws a TypeError naming the first problem.
|
|
240
243
|
*/
|
|
244
|
+
function parseDesign(value) {
|
|
245
|
+
return designOfValue(value);
|
|
246
|
+
}
|
|
241
247
|
function designOfValue(value, catalog = PRESET_CATALOG) {
|
|
242
248
|
if (!isRecord(value)) throw new TypeError("design must be an object");
|
|
243
249
|
const unknownKey = Object.keys(value).find((name) => name !== "appTables" && name !== "extraColumns" && name !== "positions" && name !== "version");
|
|
@@ -371,6 +377,43 @@ function designConfigSource(resolved, design, designCode = "") {
|
|
|
371
377
|
function designInstallCommand(resolved, designCode) {
|
|
372
378
|
return designCode === "" ? presetInstallCommand(resolved) : `npx better-supabase init --preset "${createUrl(resolved, designCode)}"`;
|
|
373
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* The design file for a preset and design, as JSON text. Throws a TypeError
|
|
382
|
+
* when the design is invalid; it has no length limit.
|
|
383
|
+
*/
|
|
384
|
+
function designFileSource(resolved, design) {
|
|
385
|
+
const checked = designOfValue(design);
|
|
386
|
+
const format = designFormat(checked);
|
|
387
|
+
const file = {
|
|
388
|
+
preset: encodePreset(resolved.preset),
|
|
389
|
+
design: format === 0 ? checked : {
|
|
390
|
+
version: format,
|
|
391
|
+
...checked
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
return `${JSON.stringify(file, null, 2)}\n`;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Reads a design file's text. Throws a TypeError naming the first problem:
|
|
398
|
+
* text that isn't JSON, a missing or invalid preset, or an invalid design.
|
|
399
|
+
*/
|
|
400
|
+
function readDesignFile(text) {
|
|
401
|
+
let value;
|
|
402
|
+
try {
|
|
403
|
+
value = JSON.parse(text);
|
|
404
|
+
} catch (error) {
|
|
405
|
+
throw new TypeError("design file: the text is not JSON", { cause: error });
|
|
406
|
+
}
|
|
407
|
+
if (!isRecord(value)) throw new TypeError("design file: expected an object with preset and design");
|
|
408
|
+
const unknownKey = Object.keys(value).find((name) => name !== "preset" && name !== "design");
|
|
409
|
+
if (unknownKey !== void 0) throw new TypeError(`design file: unknown key "${unknownKey}"; a design file has preset and design`);
|
|
410
|
+
const preset = value["preset"];
|
|
411
|
+
if (typeof preset !== "string" || preset === "") throw new TypeError("design file: preset must be a preset name or code from /create");
|
|
412
|
+
return {
|
|
413
|
+
preset: presetOf(preset),
|
|
414
|
+
design: designOfValue(value["design"] ?? {})
|
|
415
|
+
};
|
|
416
|
+
}
|
|
374
417
|
/** The command that applies the preset and design to an existing project. */
|
|
375
418
|
function designApplyCommand(resolved, designCode) {
|
|
376
419
|
return designCode === "" ? presetApplyCommand(resolved) : `npx better-supabase apply --preset "${createUrl(resolved, designCode)}"`;
|
|
@@ -645,4 +688,4 @@ function diffDesigns(before, after) {
|
|
|
645
688
|
return diffAppTables(before.appTables ?? {}, after.appTables ?? {});
|
|
646
689
|
}
|
|
647
690
|
//#endregion
|
|
648
|
-
export {
|
|
691
|
+
export { presetConfigSource as C, presetBlocksSource as S, presetInstallCommand as T, parseDesign as _, DesignTooLongError as a, glueCommand as b, designApplyCommand as c, designFileSource as d, designFormat as f, isDesignCode as g, encodeDesign as h, DESIGN_FORMAT as i, designConfig as l, designOf as m, diffDesigns as n, MAX_DESIGN_CODE_LENGTH as o, designInstallCommand as p, DESIGN_FILE as r, decodeDesign as s, diffAppTables as t, designConfigSource as u, readDesignFile as v, presetGlue as w, presetApplyCommand as x, PROVIDER_COMMENT as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, t as AsyncResult } from "./result-BREt7qOh.js";
|
|
3
|
-
import { r as AuthState } from "./resolve-
|
|
3
|
+
import { r as AuthState } from "./resolve-Ceft-18-.js";
|
|
4
4
|
//#region src/credentials/provider.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Names a credential without holding it. Tables store this as a
|
package/dist/query/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as escapeLike } from "../escape-like-B339PlP-.js";
|
|
2
2
|
import { n as invalidateTables, t as BetterQueryMeta } from "../invalidate-BBqhpxyB.js";
|
|
3
|
-
import { _ as invalidateOnMutation, a as UserChangeSource, c as InfiniteExtras, d as QueriesOptions, f as QueryHelpers, g as createQueries, h as TableQueries, i as optimistic, l as InfiniteOptionsOf, m as QueryOptionsOf, n as OptimisticSnapshot, o as clearOnUserChange, p as QueryKeyOf, r as OptimisticTarget, s as BetterQueries, t as OptimisticHandlers, u as MutationOptionsOf, v as queryCache } from "../index-
|
|
3
|
+
import { _ as invalidateOnMutation, a as UserChangeSource, c as InfiniteExtras, d as QueriesOptions, f as QueryHelpers, g as createQueries, h as TableQueries, i as optimistic, l as InfiniteOptionsOf, m as QueryOptionsOf, n as OptimisticSnapshot, o as clearOnUserChange, p as QueryKeyOf, r as OptimisticTarget, s as BetterQueries, t as OptimisticHandlers, u as MutationOptionsOf, v as queryCache } from "../index-XcTBR4Gb.js";
|
|
4
4
|
export { type BetterQueries, type BetterQueryMeta, type InfiniteExtras, type InfiniteOptionsOf, type MutationOptionsOf, type OptimisticHandlers, type OptimisticSnapshot, type OptimisticTarget, type QueriesOptions, type QueryHelpers, type QueryKeyOf, type QueryOptionsOf, type TableQueries, type UserChangeSource, clearOnUserChange, createQueries, escapeLike, invalidateOnMutation, invalidateTables, optimistic, queryCache };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as escapeLike } from "../escape-like-B339PlP-.js";
|
|
2
2
|
import { n as Impersonator } from "../impersonation-D5chOkrO.js";
|
|
3
|
-
import { t as tenantOf } from "../tenant-
|
|
4
|
-
import { t as AuthSession } from "../view-
|
|
5
|
-
import { r as LiveCountSeed } from "../index-
|
|
6
|
-
import { a as BroadcastOptions, c as LiveCountHookOptions, m as UseActionOptions, n as ActionInputOf, o as ClaimsOf, p as ProfileOf, r as ActionResultOf, s as ClientLike, t as fieldErrorsOf, u as LiveQueryHookOptions } from "../field-errors-
|
|
7
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
8
|
-
import { n as supportOf, t as SupportView } from "../support-view-
|
|
9
|
-
import { A as useSupabase, C as BetterSupabaseProviderProps, D as useBroadcast, E as useAuth, O as useLiveCount, S as BetterSupabaseProvider, T as createHooks, _ as ActionHandle, a as UploadTarget, b as useActionForm, c as useUpload, d as useDebouncedSearch, f as Presence, g as ActionForm, h as usePresence, i as UploadStatus, k as useLiveQuery, l as DebouncedSearch, m as PresenceTopic, n as SignedUrlSource, o as UseUploadOptions, p as PresenceHookOptions, r as Upload, s as useSignedUrl, t as SignedUrl, u as DebouncedSearchOptions, v as UseActionFormOptions, w as LiveCount, x as BetterHooks, y as useAction } from "../index-
|
|
3
|
+
import { t as tenantOf } from "../tenant-DZMLVuyQ.js";
|
|
4
|
+
import { t as AuthSession } from "../view-KQhe6eNc.js";
|
|
5
|
+
import { r as LiveCountSeed } from "../index-DTQSeHx2.js";
|
|
6
|
+
import { a as BroadcastOptions, c as LiveCountHookOptions, m as UseActionOptions, n as ActionInputOf, o as ClaimsOf, p as ProfileOf, r as ActionResultOf, s as ClientLike, t as fieldErrorsOf, u as LiveQueryHookOptions } from "../field-errors-Z-sgsdoN.js";
|
|
7
|
+
import { r as MembershipClaim } from "../entitlements-CtBGXb3B.js";
|
|
8
|
+
import { n as supportOf, t as SupportView } from "../support-view-Bj_lZ8Wr.js";
|
|
9
|
+
import { A as useSupabase, C as BetterSupabaseProviderProps, D as useBroadcast, E as useAuth, O as useLiveCount, S as BetterSupabaseProvider, T as createHooks, _ as ActionHandle, a as UploadTarget, b as useActionForm, c as useUpload, d as useDebouncedSearch, f as Presence, g as ActionForm, h as usePresence, i as UploadStatus, k as useLiveQuery, l as DebouncedSearch, m as PresenceTopic, n as SignedUrlSource, o as UseUploadOptions, p as PresenceHookOptions, r as Upload, s as useSignedUrl, t as SignedUrl, u as DebouncedSearchOptions, v as UseActionFormOptions, w as LiveCount, x as BetterHooks, y as useAction } from "../index-C-_fs7EI.js";
|
|
10
10
|
import { SessionProvider, SessionProviderProps, useSession, useSupportSession } from "./session.js";
|
|
11
11
|
import { a as useSignIn, i as SignOut, n as PendingState, o as useSignOut, r as SignIn, t as AuthHookOptions } from "../sign-in-BCV5S2WZ.js";
|
|
12
12
|
export { type ActionForm, type ActionHandle, type ActionInputOf, type ActionResultOf, type AuthHookOptions, type AuthSession, type BetterHooks, BetterSupabaseProvider, type BetterSupabaseProviderProps, type BroadcastOptions, type ClaimsOf, type ClientLike, type DebouncedSearch, type DebouncedSearchOptions, type Impersonator, type LiveCount, type LiveCountHookOptions, type LiveCountSeed, type LiveQueryHookOptions, type MembershipClaim, type PendingState, type Presence, type PresenceHookOptions, type PresenceTopic, type ProfileOf, SessionProvider, type SessionProviderProps, type SignIn, type SignOut, type SignedUrl, type SignedUrlSource, type SupportView, type Upload, type UploadStatus, type UploadTarget, type UseActionFormOptions, type UseActionOptions, type UseUploadOptions, createHooks, escapeLike, fieldErrorsOf, supportOf, tenantOf, useAction, useActionForm, useAuth, useBroadcast, useDebouncedSearch, useLiveCount, useLiveQuery, usePresence, useSession, useSignIn, useSignOut, useSignedUrl, useSupabase, useSupportSession, useUpload };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AuthSnapshot } from "../../bind-
|
|
1
|
+
import { t as AuthSnapshot } from "../../bind-Bfo40o63.js";
|
|
2
2
|
import { a as OAuthSignInOptions, i as OAuthClient, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, t as AuthFailure } from "../../auth-link-BjFPqwLz.js";
|
|
3
3
|
import { n as PendingState } from "../../sign-in-BCV5S2WZ.js";
|
|
4
4
|
import { Provider } from "@supabase/supabase-js";
|
package/dist/react/server.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as escapeLike } from "../escape-like-B339PlP-.js";
|
|
2
|
-
import { at as QuerySpec } from "../define-
|
|
2
|
+
import { at as QuerySpec } from "../define-DYZnvAbs.js";
|
|
3
3
|
import { n as Impersonator } from "../impersonation-D5chOkrO.js";
|
|
4
|
-
import { t as tenantOf } from "../tenant-
|
|
5
|
-
import { t as AuthSession } from "../view-
|
|
6
|
-
import { r as LiveCountSeed } from "../index-
|
|
7
|
-
import { a as BroadcastOptions, c as LiveCountHookOptions, m as UseActionOptions, n as ActionInputOf, o as ClaimsOf, p as ProfileOf, r as ActionResultOf, s as ClientLike, t as fieldErrorsOf, u as LiveQueryHookOptions } from "../field-errors-
|
|
8
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
9
|
-
import { n as supportOf, t as SupportView } from "../support-view-
|
|
10
|
-
import { A as useSupabase, C as BetterSupabaseProviderProps, D as useBroadcast, E as useAuth, S as BetterSupabaseProvider, _ as ActionHandle, a as UploadTarget, c as useUpload$1, d as useDebouncedSearch$1, f as Presence, g as ActionForm, h as usePresence$1, i as UploadStatus, k as useLiveQuery, l as DebouncedSearch, m as PresenceTopic, n as SignedUrlSource, o as UseUploadOptions, p as PresenceHookOptions, r as Upload, s as useSignedUrl$1, t as SignedUrl, u as DebouncedSearchOptions, v as UseActionFormOptions, w as LiveCount, x as BetterHooks } from "../index-
|
|
4
|
+
import { t as tenantOf } from "../tenant-DZMLVuyQ.js";
|
|
5
|
+
import { t as AuthSession } from "../view-KQhe6eNc.js";
|
|
6
|
+
import { r as LiveCountSeed } from "../index-DTQSeHx2.js";
|
|
7
|
+
import { a as BroadcastOptions, c as LiveCountHookOptions, m as UseActionOptions, n as ActionInputOf, o as ClaimsOf, p as ProfileOf, r as ActionResultOf, s as ClientLike, t as fieldErrorsOf, u as LiveQueryHookOptions } from "../field-errors-Z-sgsdoN.js";
|
|
8
|
+
import { r as MembershipClaim } from "../entitlements-CtBGXb3B.js";
|
|
9
|
+
import { n as supportOf, t as SupportView } from "../support-view-Bj_lZ8Wr.js";
|
|
10
|
+
import { A as useSupabase, C as BetterSupabaseProviderProps, D as useBroadcast, E as useAuth, S as BetterSupabaseProvider, _ as ActionHandle, a as UploadTarget, c as useUpload$1, d as useDebouncedSearch$1, f as Presence, g as ActionForm, h as usePresence$1, i as UploadStatus, k as useLiveQuery, l as DebouncedSearch, m as PresenceTopic, n as SignedUrlSource, o as UseUploadOptions, p as PresenceHookOptions, r as Upload, s as useSignedUrl$1, t as SignedUrl, u as DebouncedSearchOptions, v as UseActionFormOptions, w as LiveCount, x as BetterHooks } from "../index-C-_fs7EI.js";
|
|
11
11
|
import { SessionProvider, SessionProviderProps } from "./session.js";
|
|
12
12
|
import { a as useSignIn$1, i as SignOut, n as PendingState, o as useSignOut$1, r as SignIn, t as AuthHookOptions } from "../sign-in-BCV5S2WZ.js";
|
|
13
13
|
//#region src/react/server.d.ts
|
package/dist/react/session.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as AuthSession } from "../view-
|
|
2
|
-
import { t as SupportView } from "../support-view-
|
|
1
|
+
import { t as AuthSession } from "../view-KQhe6eNc.js";
|
|
2
|
+
import { t as SupportView } from "../support-view-Bj_lZ8Wr.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/react/session.d.ts
|
|
5
5
|
export interface SessionProviderProps {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as AnyModels, i as AnyFunctions } from "../types-BrpW5ixT.js";
|
|
2
|
-
import { t as BetterSupabase } from "../define-
|
|
3
|
-
import { n as BetterServer } from "../server-types-
|
|
4
|
-
import { a as AuthorizedContext, c as Unwrapped, i as AuthorizeOptions, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-
|
|
5
|
-
import { t as RefusalRedirects } from "../refusal-
|
|
6
|
-
import { n as FrameworkOptions, t as FrameworkLocals } from "../framework-
|
|
2
|
+
import { t as BetterSupabase } from "../define-DYZnvAbs.js";
|
|
3
|
+
import { n as BetterServer } from "../server-types-fLdep4gb.js";
|
|
4
|
+
import { a as AuthorizedContext, c as Unwrapped, i as AuthorizeOptions, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-De-EVRhw.js";
|
|
5
|
+
import { t as RefusalRedirects } from "../refusal-C7geIBRl.js";
|
|
6
|
+
import { n as FrameworkOptions, t as FrameworkLocals } from "../framework-BQhTsLX-.js";
|
|
7
7
|
import { t as Validated } from "../shared-DDSjEGDR.js";
|
|
8
8
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as problemResponse } from "../problem-JRCohp1j.js";
|
|
2
|
-
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
2
|
+
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-CRNH2aX_.js";
|
|
3
3
|
import { o as settle, t as defaultExpose } from "../respond-Bhp3G__q.js";
|
|
4
4
|
import { i as requireCaller, o as runAction } from "../kit-LTbHrWWD.js";
|
|
5
5
|
import { n as bufferInPlace, t as around } from "../shared-BmMcMoW9.js";
|
|
6
|
-
import { i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-
|
|
6
|
+
import { i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-C6PKBgme.js";
|
|
7
7
|
import { r as refusalResponse } from "../refusal-CFpfmjcS.js";
|
|
8
8
|
//#region src/bridges/react-router.ts
|
|
9
9
|
/**
|
package/dist/realtime/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as AccessPolicySql, r as AccessTopicPolicy } from "../types-BrpW5ixT.js";
|
|
2
2
|
import { t as RealtimeStatus } from "../realtime-status-DcsO00Gw.js";
|
|
3
|
-
import { D as TemplateParams, O as TemplateValues } from "../bucket-
|
|
4
|
-
import { A as TriggerTopic, C as TopicSubscription, D as TriggerLookup, E as TopicTriggerValue, F as FanOutResult, I as TopicFanOutOptions, M as defineTopic, N as rowChange, O as TriggerOptions, P as rowKeys, S as TopicSubscribeOptions, T as TopicTriggerOptions, _ as TopicMessage, a as PresenceOutput, b as TopicPermission, c as RealtimeClient, d as SubscribeOptions, f as Subscription, g as TopicHandlers, h as TopicEvent, i as PresenceOptions, j as TriggerValue, k as TriggerPayloadMode, l as RowChange, m as Topic, n as PresenceInput, o as PresenceSchema, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas, u as RowKeys, v as TopicOptions, w as TopicTriggerLookup, x as TopicSqlOptions, y as TopicPayload } from "../topic-
|
|
5
|
-
import { a as watchTopic, i as topicPort, n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-
|
|
6
|
-
import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-
|
|
7
|
-
import { a as LiveSource, c as liveQuery, i as LiveQueryOptions, l as liveTopic, n as LiveCountOptions, o as LiveSubscription, r as LiveCountSeed, s as liveCount, t as CountRunner } from "../index-
|
|
3
|
+
import { D as TemplateParams, O as TemplateValues } from "../bucket-BbePDVwc.js";
|
|
4
|
+
import { A as TriggerTopic, C as TopicSubscription, D as TriggerLookup, E as TopicTriggerValue, F as FanOutResult, I as TopicFanOutOptions, M as defineTopic, N as rowChange, O as TriggerOptions, P as rowKeys, S as TopicSubscribeOptions, T as TopicTriggerOptions, _ as TopicMessage, a as PresenceOutput, b as TopicPermission, c as RealtimeClient, d as SubscribeOptions, f as Subscription, g as TopicHandlers, h as TopicEvent, i as PresenceOptions, j as TriggerValue, k as TriggerPayloadMode, l as RowChange, m as Topic, n as PresenceInput, o as PresenceSchema, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas, u as RowKeys, v as TopicOptions, w as TopicTriggerLookup, x as TopicSqlOptions, y as TopicPayload } from "../topic-DAY_HOX2.js";
|
|
5
|
+
import { a as watchTopic, i as topicPort, n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-C79ZW5-R.js";
|
|
6
|
+
import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-BUChuOxL.js";
|
|
7
|
+
import { a as LiveSource, c as liveQuery, i as LiveQueryOptions, l as liveTopic, n as LiveCountOptions, o as LiveSubscription, r as LiveCountSeed, s as liveCount, t as CountRunner } from "../index-DTQSeHx2.js";
|
|
8
8
|
export { type AccessPolicySql, type AccessTopicPolicy, type CountRunner, type EventSchemas, type FanOutResult, type LiveCountOptions, type LiveCountSeed, type LiveQueryOptions, type LiveSource, type LiveSubscription, type PresenceInput, type PresenceMember, type PresenceOptions, type PresenceOutput, type PresenceSchema, type PresenceSubscription, type RealtimeClient, type RealtimeStatus, type RowChange, type RowKeys, type SubjectReadersOptions, type SubscribeOptions, type Subscription, type SubscriptionStatus, type TemplateParams, type TemplateValues, type Topic, type TopicEvent, type TopicFanOutOptions, type TopicHandle, type TopicHandlers, type TopicMessage, type TopicOptions, type TopicPayload, type TopicPermission, type TopicPort, type TopicSqlOptions, type TopicSubscribeOptions, type TopicSubscription, type TopicTriggerLookup, type TopicTriggerOptions, type TopicTriggerValue, type TopicWatch, type TriggerLookup, type TriggerOptions, type TriggerPayloadMode, type TriggerTopic, type TriggerValue, defineTopic, liveCount, liveQuery, liveTopic, rowChange, rowKeys, subjectReaders, topicPort, watchTopic };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AnyAuthorizer } from "./authorizer-eiOjo-3l.js";
|
|
2
|
-
import { s as BlockRequireOptions } from "./kit-
|
|
2
|
+
import { s as BlockRequireOptions } from "./kit-De-EVRhw.js";
|
|
3
3
|
//#region src/server/refusal.d.ts
|
|
4
4
|
/** Where refused callers go instead of a Problem Details response. */
|
|
5
5
|
interface RefusalRedirects {
|
|
@@ -444,13 +444,20 @@ function expiryOf(session) {
|
|
|
444
444
|
const exp = decodeJwtPayload(session.access_token)?.["exp"];
|
|
445
445
|
return typeof exp === "number" ? exp : void 0;
|
|
446
446
|
}
|
|
447
|
+
/** An empty key set: `auth.jwks: false` verifies against it and fetches nothing. */
|
|
448
|
+
const NO_KEYS = { keys: [] };
|
|
449
|
+
/** `auth.jwks`, then `env.jwks` (`SUPABASE_JWKS`), then `env.jwksUrl`. */
|
|
450
|
+
function jwksOf(options) {
|
|
451
|
+
if (options.jwks === false || options.jwks === null) return NO_KEYS;
|
|
452
|
+
return options.jwks ?? options.env.jwks ?? options.env.jwksUrl;
|
|
453
|
+
}
|
|
447
454
|
function serverEnv(options) {
|
|
448
455
|
const { env } = options;
|
|
449
456
|
return {
|
|
450
457
|
url: env.url,
|
|
451
458
|
publishableKeys: { default: env.publishableKey },
|
|
452
459
|
secretKeys: env.secretKeys ?? (env.secretKey ? { default: env.secretKey } : {}),
|
|
453
|
-
jwks: options
|
|
460
|
+
jwks: jwksOf(options)
|
|
454
461
|
};
|
|
455
462
|
}
|
|
456
463
|
const MEMO_SIZE = 256;
|
|
@@ -480,10 +487,10 @@ function secretId(secret) {
|
|
|
480
487
|
* A hit skips the audience and issuer checks too, so both are part of the key.
|
|
481
488
|
*/
|
|
482
489
|
function memoFor(options) {
|
|
483
|
-
const jwks = options
|
|
484
|
-
const inline =
|
|
490
|
+
const jwks = jwksOf(options);
|
|
491
|
+
const inline = !(jwks instanceof URL);
|
|
485
492
|
const key = JSON.stringify([
|
|
486
|
-
inline ? null : String(jwks
|
|
493
|
+
inline ? null : String(jwks),
|
|
487
494
|
options.env.url,
|
|
488
495
|
options.audience ?? null,
|
|
489
496
|
options.issuer ?? null,
|
|
@@ -633,7 +640,7 @@ function base64url(text) {
|
|
|
633
640
|
* fetch it as before.
|
|
634
641
|
*/
|
|
635
642
|
function prefetchJwks(options) {
|
|
636
|
-
if (options
|
|
643
|
+
if (!(jwksOf(options) instanceof URL)) return Promise.resolve();
|
|
637
644
|
return verifyCredentials({
|
|
638
645
|
token: PREFETCH_TOKEN,
|
|
639
646
|
apikey: null
|
|
@@ -188,8 +188,12 @@ interface ResolveAuthOptions {
|
|
|
188
188
|
* request another site makes it send.
|
|
189
189
|
*/
|
|
190
190
|
readonly cookies?: boolean;
|
|
191
|
-
/**
|
|
192
|
-
|
|
191
|
+
/**
|
|
192
|
+
* Inline JWKS instead of fetching `env.jwksUrl` (tests, air-gapped).
|
|
193
|
+
* `false` or `null` verifies against no keys and never fetches, ignoring
|
|
194
|
+
* `SUPABASE_JWKS` and `SUPABASE_JWKS_URL`.
|
|
195
|
+
*/
|
|
196
|
+
readonly jwks?: SupabaseEnv["jwks"] | false;
|
|
193
197
|
/**
|
|
194
198
|
* Verify HS256 tokens without a `kid` locally with this shared secret, the
|
|
195
199
|
* tokens Supabase Lite issues (`auth.jwt_secret`). Tokens with a `kid`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceActionSpec } from "./resource-DYEtc-KN.js";
|
|
2
|
-
import { i as ResourceContext, n as Parsed, r as ResourceAction, t as ActionArgs } from "./resource-types-
|
|
2
|
+
import { i as ResourceContext, n as Parsed, r as ResourceAction, t as ActionArgs } from "./resource-types-LW1i5-h3.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/server/resource-execute.d.ts
|
|
5
5
|
/** Defines an action and types its handler's `data` and `query` from the schemas. */
|
|
@@ -3,8 +3,8 @@ import { B as TableKey, G as Update, N as Row, S as Insert, V as TableMeta, a as
|
|
|
3
3
|
import { m as RequestContext } from "./plugin-D-95Q0w0.js";
|
|
4
4
|
import { D as ResourceOperation } from "./model-lUafmeBQ.js";
|
|
5
5
|
import { a as ResourcePlan, i as ResourcePagination, n as ResourceActionSpec, r as ResourceDescription } from "./resource-DYEtc-KN.js";
|
|
6
|
-
import { Lt as SelectArg } from "./define-
|
|
7
|
-
import { a as RespondOptions } from "./respond-
|
|
6
|
+
import { Lt as SelectArg } from "./define-DYZnvAbs.js";
|
|
7
|
+
import { a as RespondOptions } from "./respond-BSL36dQp.js";
|
|
8
8
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
9
9
|
//#region src/server/resource-types.d.ts
|
|
10
10
|
/** What a resource needs from `defineListQuery`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as TableKey, a as AnyModels } from "./types-BrpW5ixT.js";
|
|
2
|
-
import { l as ResourceRouteOptions } from "./resource-types-
|
|
2
|
+
import { l as ResourceRouteOptions } from "./resource-types-LW1i5-h3.js";
|
|
3
3
|
//#region src/server/resources.d.ts
|
|
4
4
|
/** Resources by table name; `true` serves a table with the defaults. */
|
|
5
5
|
type ResourceMap<M extends AnyModels, Ref = string, DbT = unknown> = { readonly [T in TableKey<M>]?: ResourceRouteOptions<M, T, Ref, DbT> | true; };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as DbError } from "./result-BREt7qOh.js";
|
|
2
|
-
import { r as AuthState } from "./resolve-
|
|
2
|
+
import { r as AuthState } from "./resolve-Ceft-18-.js";
|
|
3
3
|
import { t as Aal } from "./mfa-YzkRjNad.js";
|
|
4
4
|
//#region src/server/refresh.d.ts
|
|
5
5
|
/** A router or browser prefetch, by its request headers. */
|