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/server/index.d.ts
CHANGED
|
@@ -2,30 +2,30 @@ import { b as DbError, f as Result } from "../result-BREt7qOh.js";
|
|
|
2
2
|
import { B as TableKey, a as AnyModels, i as AnyFunctions } from "../types-BrpW5ixT.js";
|
|
3
3
|
import { lt as SupportEventData, wt as Events } from "../events-P3raDX2E.js";
|
|
4
4
|
import { m as RequestContext } from "../plugin-D-95Q0w0.js";
|
|
5
|
-
import { E as writeSession, S as readSession, a as ResolveAuthOptions, c as resolveAuth, d as CookieRecord, g as StoredSession, i as InvalidReason, l as AUTH_CACHE_HEADERS, n as AuthResolver, o as ResolvedState, p as CookieWrite, r as AuthState, s as clientIp, t as AuthResolution, u as CookieOptions, w as sessionCookieName } from "../resolve-
|
|
5
|
+
import { E as writeSession, S as readSession, a as ResolveAuthOptions, c as resolveAuth, d as CookieRecord, g as StoredSession, i as InvalidReason, l as AUTH_CACHE_HEADERS, n as AuthResolver, o as ResolvedState, p as CookieWrite, r as AuthState, s as clientIp, t as AuthResolution, u as CookieOptions, w as sessionCookieName } from "../resolve-Ceft-18-.js";
|
|
6
6
|
import { n as SqlClient } from "../executor-D1hECPGG.js";
|
|
7
7
|
import { a as SessionActor, c as agentClaims, i as IDENTITY_SCOPES, l as delegationOf, n as ActorOutcome, o as SessionDelegation, r as AgentActOptions, s as actorOf, t as ActClaim } from "../actor-BAhb-d1S.js";
|
|
8
8
|
import { c as fromProblem, d as toProblem, i as ProblemDetails, l as isProblem, n as PROBLEM_CONTENT_TYPE, o as ProblemOptions, r as PROBLEM_TYPE_BASE, s as ProblemResponseOptions, u as problemResponse } from "../problem-DCDIQiTA.js";
|
|
9
9
|
import { a as AuthorizationSubject, c as defineAuthorizer, i as AuthorizationResource, n as AuthorizationOutcome, o as Authorizer, r as AuthorizationRequest, s as PermissionRef, t as AnyAuthorizer } from "../authorizer-eiOjo-3l.js";
|
|
10
10
|
import { i as ResourcePagination } from "../resource-DYEtc-KN.js";
|
|
11
|
-
import { j as StorageApi } from "../bucket-
|
|
12
|
-
import { Wt as DbStats, _ as Db, t as BetterSupabase } from "../define-
|
|
11
|
+
import { j as StorageApi } from "../bucket-BbePDVwc.js";
|
|
12
|
+
import { Wt as DbStats, _ as Db, t as BetterSupabase } from "../define-DYZnvAbs.js";
|
|
13
13
|
import { n as Impersonator, r as impersonatorOf, t as ImpersonationOptions } from "../impersonation-D5chOkrO.js";
|
|
14
|
-
import { _ as SupportAuthorize, a as AutomationHooks, b as TicketSubject, c as ChatActionHook, d as IdentityRef, f as IdentityTarget, g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, l as DelegationPermissions, m as Subscriber, n as Approver, o as AutomationRef, p as PrincipalByIdentity, r as ApproverOf, s as ChatAction, t as ApprovalRequestRef, u as DelegationRef, v as SupportAuthorizeInput, x as defineAuthorizationHooks, y as SupportDecision } from "../authorization-hooks-
|
|
15
|
-
import { A as supportCookieValue, B as SupportSessionStore, C as SupportSessions, D as SupportCookieOptions, E as SUPPORT_COOKIE, F as SupportEndedBy, G as PRIMARY_COOKIE, H as sqlSupportStore, I as SupportListFilter, J as DeleteAccountOptions, K as ReplicaState, L as SupportRequest, M as SupportApprovalQuery, N as SupportApprover, O as clearSupportCookie, P as SupportCallerClaims, R as SupportRequestInput, S as SupportPolicy, T as supportSessions, U as supportClaims, V as SupportStartInput, W as RequestIdOptions, X as deleteAccount, Y as DeleteAccountResult, _ as suspendAccount, a as ServerContext, b as SupportExpireRouteOptions, c as ServerOptions, d as EndSessionsResult, f as LastSignIn, g as lastSignIns, h as endSessions, i as ForContextOptions, j as SqlSupportStoreOptions, k as supportCookie, m as SuspendAccountResult, n as BetterServer, o as ServerDbOptions, p as SuspendAccountOptions, q as LiteDriver, r as ContextOptions, s as ServerKeys, t as AdminDb, u as TENANT_HEADER, v as ActiveSupport, w as SupportStartRequest, x as SupportOptions, y as SupportApi, z as SupportSession } from "../server-types-
|
|
14
|
+
import { _ as SupportAuthorize, a as AutomationHooks, b as TicketSubject, c as ChatActionHook, d as IdentityRef, f as IdentityTarget, g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, l as DelegationPermissions, m as Subscriber, n as Approver, o as AutomationRef, p as PrincipalByIdentity, r as ApproverOf, s as ChatAction, t as ApprovalRequestRef, u as DelegationRef, v as SupportAuthorizeInput, x as defineAuthorizationHooks, y as SupportDecision } from "../authorization-hooks-WDQMKIsc.js";
|
|
15
|
+
import { A as supportCookieValue, B as SupportSessionStore, C as SupportSessions, D as SupportCookieOptions, E as SUPPORT_COOKIE, F as SupportEndedBy, G as PRIMARY_COOKIE, H as sqlSupportStore, I as SupportListFilter, J as DeleteAccountOptions, K as ReplicaState, L as SupportRequest, M as SupportApprovalQuery, N as SupportApprover, O as clearSupportCookie, P as SupportCallerClaims, R as SupportRequestInput, S as SupportPolicy, T as supportSessions, U as supportClaims, V as SupportStartInput, W as RequestIdOptions, X as deleteAccount, Y as DeleteAccountResult, _ as suspendAccount, a as ServerContext, b as SupportExpireRouteOptions, c as ServerOptions, d as EndSessionsResult, f as LastSignIn, g as lastSignIns, h as endSessions, i as ForContextOptions, j as SqlSupportStoreOptions, k as supportCookie, m as SuspendAccountResult, n as BetterServer, o as ServerDbOptions, p as SuspendAccountOptions, q as LiteDriver, r as ContextOptions, s as ServerKeys, t as AdminDb, u as TENANT_HEADER, v as ActiveSupport, w as SupportStartRequest, x as SupportOptions, y as SupportApi, z as SupportSession } from "../server-types-fLdep4gb.js";
|
|
16
16
|
import { a as checkAal, i as amrOf, n as AmrEntry, r as aalOf, t as Aal } from "../mfa-YzkRjNad.js";
|
|
17
|
-
import { n as toSession, t as AuthSession } from "../view-
|
|
18
|
-
import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-
|
|
19
|
-
import { a as RespondOptions, c as isResult, d as RefreshPolicy, f as isPrefetch, h as shouldRefresh, i as MiddlewareOptions, l as respond, m as shouldCheckSession, n as AuthKind, o as Settled, p as refreshFor, r as GuardOptions, s as guard, u as settle } from "../respond-
|
|
20
|
-
import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-
|
|
21
|
-
import { a as AuthorizedContext, i as AuthorizeOptions, l as hasRole, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions, u as rolesAt } from "../kit-
|
|
22
|
-
import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-
|
|
17
|
+
import { n as toSession, t as AuthSession } from "../view-KQhe6eNc.js";
|
|
18
|
+
import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-DObioXpX.js";
|
|
19
|
+
import { a as RespondOptions, c as isResult, d as RefreshPolicy, f as isPrefetch, h as shouldRefresh, i as MiddlewareOptions, l as respond, m as shouldCheckSession, n as AuthKind, o as Settled, p as refreshFor, r as GuardOptions, s as guard, u as settle } from "../respond-BSL36dQp.js";
|
|
20
|
+
import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-DzvBL5nb.js";
|
|
21
|
+
import { a as AuthorizedContext, i as AuthorizeOptions, l as hasRole, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions, u as rolesAt } from "../kit-De-EVRhw.js";
|
|
22
|
+
import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-BUChuOxL.js";
|
|
23
23
|
import { i as toCsv, n as csvColumns, t as CsvOptions } from "../csv-D3eKxV1T.js";
|
|
24
24
|
import { i as JwsAlgorithm, n as Jwks, r as JwksOfOptions } from "../jws-35a8VhFV.js";
|
|
25
|
-
import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-
|
|
26
|
-
import { i as tagFor, n as cacheTagsOf, r as tagCache, t as TagOptions } from "../tags-
|
|
27
|
-
import { n as supportOf, t as SupportView } from "../support-view-
|
|
28
|
-
import { a as sessionStatus, c as RefreshOutcome, i as clearSessionCookies, l as refreshSession, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-
|
|
25
|
+
import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-LW1i5-h3.js";
|
|
26
|
+
import { i as tagFor, n as cacheTagsOf, r as tagCache, t as TagOptions } from "../tags-BrGopDVG.js";
|
|
27
|
+
import { n as supportOf, t as SupportView } from "../support-view-Bj_lZ8Wr.js";
|
|
28
|
+
import { a as sessionStatus, c as RefreshOutcome, i as clearSessionCookies, l as refreshSession, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-De6H52nX.js";
|
|
29
29
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
30
30
|
import { Middleware, SingleKeyEntry } from "@supabase/middleware";
|
|
31
31
|
import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
|
|
@@ -128,7 +128,7 @@ interface SupportStorageOptions {
|
|
|
128
128
|
readonly admin: StorageApi;
|
|
129
129
|
/** Runs as the target, such as `postgres.asUser(support.claims)`, so RLS on `storage.objects` decides. Writes need its `transaction`. */
|
|
130
130
|
readonly sql: SqlClient;
|
|
131
|
-
/** Runs as the connection-string role, such as `postgres.admin`. Writes need it to make the target the owner of what they store. */
|
|
131
|
+
/** Runs as the connection-string role, such as `postgres.admin`. Writes and signed upload claims need it to make the target the owner of what they store. */
|
|
132
132
|
readonly adminSql?: SqlClient;
|
|
133
133
|
/** The session the writes are recorded under. Writes need it. */
|
|
134
134
|
readonly session?: Pick<SupportSession, "id" | "adminId" | "targetUserId">;
|
|
@@ -155,9 +155,17 @@ interface SupportStorageOptions {
|
|
|
155
155
|
* decide as for the target's own request. Then the service client writes,
|
|
156
156
|
* the admin connection makes the target the owner of the stored object,
|
|
157
157
|
* and its `user_metadata` records the session id and the admin's id. A
|
|
158
|
-
* refused dry run resolves to Storage's `403`.
|
|
159
|
-
*
|
|
160
|
-
*
|
|
158
|
+
* refused dry run resolves to Storage's `403`.
|
|
159
|
+
*
|
|
160
|
+
* `createSignedUploadUrl` runs the same dry run as `upload` before the
|
|
161
|
+
* service client signs the URL. The object a browser uploads there has no
|
|
162
|
+
* owner, so `claimSignedUpload(bucket, path)` finishes the upload: it checks again
|
|
163
|
+
* that the target may insert at the path, then makes the target the owner
|
|
164
|
+
* of an object without one and stamps the session on its `user_metadata`.
|
|
165
|
+
* An object another user owns is refused with a `403`. `uploadToSignedUrl`
|
|
166
|
+
* claims what it stores. Every write in a read-only session resolves to a
|
|
167
|
+
* `403` `SUPPORT_READ_ONLY` error, and without `adminSql`, `session` or a
|
|
168
|
+
* `sql` client with `transaction` to a `403` `SUPPORT_STORAGE_WRITES` error.
|
|
161
169
|
*/
|
|
162
170
|
export declare function supportStorage(options: SupportStorageOptions): StorageApi;
|
|
163
171
|
//#endregion
|
package/dist/server/index.js
CHANGED
|
@@ -6,18 +6,18 @@ import { i as delegationOf, n as actorOf, r as agentClaims, t as IDENTITY_SCOPES
|
|
|
6
6
|
import { i as userContext, r as impersonatorOf } from "../impersonation-DxU6yHJV.js";
|
|
7
7
|
import { t as supportOf } from "../support-view-g4YLBeqX.js";
|
|
8
8
|
import { r as toCsv, t as csvColumns } from "../csv-CVfXqaAu.js";
|
|
9
|
-
import { A as suspendAccount, C as shouldRefresh, D as SERVER_EVENT_SOURCE, E as defineAuthorizationHooks, O as endSessions, S as shouldCheckSession, T as serverCore, a as unexpectedResponse, b as isPrefetch, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, j as deleteAccount, k as lastSignIns, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, x as refreshFor, y as withSession } from "../adapter-
|
|
9
|
+
import { A as suspendAccount, C as shouldRefresh, D as SERVER_EVENT_SOURCE, E as defineAuthorizationHooks, O as endSessions, S as shouldCheckSession, T as serverCore, a as unexpectedResponse, b as isPrefetch, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, j as deleteAccount, k as lastSignIns, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, x as refreshFor, y as withSession } from "../adapter-CRNH2aX_.js";
|
|
10
10
|
import { n as PRIMARY_COOKIE } from "../replicas-BvIL4_jL.js";
|
|
11
11
|
import { t as authContext } from "../context-BiwgsycK.js";
|
|
12
|
-
import { _ as writeSession, a as clearSessionCookies, h as sessionCookieName, i as refreshSession, o as sessionStatus, p as readSession, r as resolveAuth, s as AUTH_CACHE_HEADERS, t as clientIp } from "../resolve-
|
|
12
|
+
import { _ as writeSession, a as clearSessionCookies, h as sessionCookieName, i as refreshSession, o as sessionStatus, p as readSession, r as resolveAuth, s as AUTH_CACHE_HEADERS, t as clientIp } from "../resolve-AtncaPTU.js";
|
|
13
13
|
import { a as checkAal, i as amrOf, n as toSession, r as aalOf } from "../view-CYX1wsgp.js";
|
|
14
14
|
import { a as respond, i as isResult, o as settle, r as guard } from "../respond-Bhp3G__q.js";
|
|
15
|
-
import { n as sqlSupportStore, r as supportClaims, t as supportSessions } from "../support-
|
|
15
|
+
import { n as sqlSupportStore, r as supportClaims, t as supportSessions } from "../support-C2wPYwD7.js";
|
|
16
16
|
import { n as event, t as defineEvents } from "../event-map-Dy2vKHai.js";
|
|
17
17
|
import { t as subjectReaders } from "../subject-readers-BpwUFJtp.js";
|
|
18
18
|
import { t as postgresExecutor } from "../executor-CxGQiQN_.js";
|
|
19
19
|
import { n as jwtClaimsOf, r as userClaimsOf, t as authModeOf } from "../claims-0KZVT804.js";
|
|
20
|
-
import { n as withGuard, t as withBetterSupabase } from "../composite-
|
|
20
|
+
import { n as withGuard, t as withBetterSupabase } from "../composite-1kPAxXto.js";
|
|
21
21
|
import { c as verifyCompact, t as JwsError } from "../jws-CwBB5QAT.js";
|
|
22
22
|
import { t as jwksSource } from "../jwks-cache-C4rA69hD.js";
|
|
23
23
|
import { i as rateLimitPolicyHeader, n as periodSeconds, r as rateLimitHeader, t as isRateLimitPolicyName } from "../ratelimit-headers-Bsxx0Tj2.js";
|
|
@@ -3,17 +3,17 @@ import { t as AsyncResult } from "./result-BREt7qOh.js";
|
|
|
3
3
|
import { a as AnyModels, i as AnyFunctions } from "./types-BrpW5ixT.js";
|
|
4
4
|
import { o as EventHub } from "./events-P3raDX2E.js";
|
|
5
5
|
import { m as RequestContext } from "./plugin-D-95Q0w0.js";
|
|
6
|
-
import { t as BetterSupabaseEnv } from "./index-CxmVzT-3.js";
|
|
7
|
-
import { a as ResolveAuthOptions, p as CookieWrite, r as AuthState, t as AuthResolution } from "./resolve-
|
|
8
|
-
import { r as CredentialProvider } from "./provider-
|
|
6
|
+
import { o as EnvSource, t as BetterSupabaseEnv } from "./index-CxmVzT-3.js";
|
|
7
|
+
import { a as ResolveAuthOptions, p as CookieWrite, r as AuthState, t as AuthResolution } from "./resolve-Ceft-18-.js";
|
|
8
|
+
import { r as CredentialProvider } from "./provider-DXgx5oSA.js";
|
|
9
9
|
import { n as SqlClient } from "./executor-D1hECPGG.js";
|
|
10
10
|
import { a as ProblemFormat } from "./problem-DCDIQiTA.js";
|
|
11
11
|
import { t as AnyAuthorizer } from "./authorizer-eiOjo-3l.js";
|
|
12
12
|
import { i as EventSink } from "./cloud-event-DXkNoI6v.js";
|
|
13
|
-
import { j as StorageApi, n as Bucket } from "./bucket-
|
|
14
|
-
import { Kt as StatsRecorder, Wt as DbStats, _ as Db, t as BetterSupabase } from "./define-
|
|
13
|
+
import { j as StorageApi, n as Bucket } from "./bucket-BbePDVwc.js";
|
|
14
|
+
import { Kt as StatsRecorder, Wt as DbStats, _ as Db, t as BetterSupabase } from "./define-DYZnvAbs.js";
|
|
15
15
|
import { t as ImpersonationOptions } from "./impersonation-D5chOkrO.js";
|
|
16
|
-
import { _ as SupportAuthorize, b as TicketSubject, i as AuthorizationHooks } from "./authorization-hooks-
|
|
16
|
+
import { _ as SupportAuthorize, b as TicketSubject, i as AuthorizationHooks } from "./authorization-hooks-WDQMKIsc.js";
|
|
17
17
|
import { s as SqlClaims, t as BetterPostgres } from "./pool-cM3rpOQr.js";
|
|
18
18
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
19
19
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -482,10 +482,12 @@ interface ServerDbOptions {
|
|
|
482
482
|
}
|
|
483
483
|
interface ServerOptions {
|
|
484
484
|
/**
|
|
485
|
-
*
|
|
486
|
-
*
|
|
485
|
+
* A loaded env, or the variables to load it from (`{ SUPABASE_URL, ... }`),
|
|
486
|
+
* read without falling back to the runtime's. Defaults to the variables
|
|
487
|
+
* `getEnv` from `@supabase/middleware` reads: Workers bindings, then
|
|
488
|
+
* `process.env`, then `Deno.env`.
|
|
487
489
|
*/
|
|
488
|
-
readonly env?: BetterSupabaseEnv;
|
|
490
|
+
readonly env?: BetterSupabaseEnv | EnvSource;
|
|
489
491
|
/** Enables `ctx.sql` and `actingAs()`. */
|
|
490
492
|
readonly postgres?: BetterPostgres;
|
|
491
493
|
readonly auth?: Omit<ResolveAuthOptions, "env">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as AnyModels, i as AnyFunctions } from "./types-BrpW5ixT.js";
|
|
2
2
|
import { n as AuthOutageEvent, o as EventHub } from "./events-P3raDX2E.js";
|
|
3
|
-
import { f as CookieScope, h as SessionEncoding, r as AuthState, t as AuthResolution } from "./resolve-
|
|
4
|
-
import { a as ServerContext, r as ContextOptions, v as ActiveSupport } from "./server-types-
|
|
5
|
-
import { d as RefreshPolicy } from "./respond-
|
|
3
|
+
import { f as CookieScope, h as SessionEncoding, r as AuthState, t as AuthResolution } from "./resolve-Ceft-18-.js";
|
|
4
|
+
import { a as ServerContext, r as ContextOptions, v as ActiveSupport } from "./server-types-fLdep4gb.js";
|
|
5
|
+
import { d as RefreshPolicy } from "./respond-BSL36dQp.js";
|
|
6
6
|
import { SingleKeyEntry } from "@supabase/middleware";
|
|
7
7
|
//#region src/server/entries/core.d.ts
|
|
8
8
|
/**
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { b as DbError } from "../result-BREt7qOh.js";
|
|
2
|
-
import { O as TemplateValues } from "../bucket-
|
|
3
|
-
import { at as QuerySpec } from "../define-
|
|
4
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
5
|
-
import { t as AuthSnapshot } from "../bind-
|
|
6
|
-
import { t as AuthSession } from "../view-
|
|
7
|
-
import { a as BroadcastOptions, c as LiveCountHookOptions, d as PresenceHookOptions, f as PresenceTopic, i as ActionState, l as LiveCountSource, 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 { t as SupportView } from "../support-view-
|
|
2
|
+
import { O as TemplateValues } from "../bucket-BbePDVwc.js";
|
|
3
|
+
import { at as QuerySpec } from "../define-DYZnvAbs.js";
|
|
4
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-DAY_HOX2.js";
|
|
5
|
+
import { t as AuthSnapshot } from "../bind-Bfo40o63.js";
|
|
6
|
+
import { t as AuthSession } from "../view-KQhe6eNc.js";
|
|
7
|
+
import { a as BroadcastOptions, c as LiveCountHookOptions, d as PresenceHookOptions, f as PresenceTopic, i as ActionState, l as LiveCountSource, 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 { t as SupportView } from "../support-view-Bj_lZ8Wr.js";
|
|
9
9
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
10
10
|
import { Accessor, JSX } from "solid-js";
|
|
11
11
|
import { QueryClient } from "@tanstack/query-core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Controller } from "./controller-
|
|
1
|
+
import { n as Controller } from "./controller-BZhiIb-N.js";
|
|
2
2
|
import { Accessor } from "solid-js";
|
|
3
3
|
//#region src/blocks/solid-controller.d.ts
|
|
4
4
|
/** A block controller in a Solid component: `state` follows the controller. */
|
|
@@ -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, 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, 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 { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
//#region src/solid-start/index.d.ts
|
|
9
9
|
/** The part of a SolidStart `FetchEvent` the integration reads and writes. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
1
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CRNH2aX_.js";
|
|
2
2
|
import { t as defaultExpose } from "../respond-Bhp3G__q.js";
|
|
3
3
|
import { i as requireCaller, o as runAction } from "../kit-LTbHrWWD.js";
|
|
4
4
|
import { i as nitroCloudflareEnv } from "../shared-BmMcMoW9.js";
|
|
5
|
-
import { i as localsOf, r as frameworkEntry } from "../framework-
|
|
5
|
+
import { i as localsOf, r as frameworkEntry } from "../framework-C6PKBgme.js";
|
|
6
6
|
import { r as refusalResponse } from "../refusal-CFpfmjcS.js";
|
|
7
7
|
import { t as beforeRoute } from "../before-route-B98js9m_.js";
|
|
8
8
|
//#region src/solid-start/index.ts
|
package/dist/sql/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as BLOCK_OPTION_SCHEMAS, S as resolveModule, w as BlockOptionsRegistry } from "../authorization-ClWBcXJi.js";
|
|
2
2
|
import { a as ModuleAudit, c as ModuleEmit, d as ModuleTableSpec, f as contractSignature, i as ModuleAction, l as ModuleIdType, m as moduleIdType, n as AuditCategory, o as ModuleContext, p as isModuleIdType, r as MODULE_ID_TYPES, s as ModuleContractFunction, t as AUDIT_CATEGORIES, u as ModuleNames } from "../context-Cv3KlxWY.js";
|
|
3
|
-
import { $ as ModuleDeprecation, A as APP_TABLES_MODULE, B as moduleFileVersion, C as dataExportPlan, D as adoptedColumnProblems, E as AdoptedTable, F as ModulePermissionKey, G as moduleDeprecations, H as moduleFilePaths, I as moduleEventTriggers, J as customContracts, K as upgradePlan, L as moduleHidingColumns, M as SQL_MODULES, N as resolveModules, O as adoptedTables, P as ModuleExtension, Q as ModuleAccessProvider, R as modulePermissionKeys, S as SECRET_COLUMNS, T as resolveExposeColumns, U as InstalledModule, V as sameModuleFile, W as ModuleUpgradePlan, X as moduleTopics, Y as moduleBody, Z as renderModules, _ as subjectColumns, a as MigrationOptionUse, at as SqlModule, b as sameTenantTrigger, c as SCOPE_ID_TYPES, ct as sameTenantLayout, d as templateFunctions, et as ModuleEntitlementsProvider, f as PolicyGrant, g as rlsTables, h as policyGrants, i as sharedRolesProblems, it as ModuleUpgrade, j as appTablesFiles, k as APP_TABLES_MARKER, l as resolveProviderSql, lt as AuditedTable, m as extensionSchema, n as compileReadSet, nt as ModuleLayout, o as migrationOptionUses, ot as moduleVersion, p as declaredTables, q as ModuleTopic, r as compileReadSets, rt as ModuleTestFile, s as moduleLayout, st as DeclaredForeignKey, t as CompiledReadSet, tt as ModuleFile, u as scopeProblems, ut as auditRegistrations, v as expiredFlagsQuery, w as excludedColumns, x as DataExportPlan, y as sameTenantColumn, z as moduleSchemaExtensions } from "../index-
|
|
3
|
+
import { $ as ModuleDeprecation, A as APP_TABLES_MODULE, B as moduleFileVersion, C as dataExportPlan, D as adoptedColumnProblems, E as AdoptedTable, F as ModulePermissionKey, G as moduleDeprecations, H as moduleFilePaths, I as moduleEventTriggers, J as customContracts, K as upgradePlan, L as moduleHidingColumns, M as SQL_MODULES, N as resolveModules, O as adoptedTables, P as ModuleExtension, Q as ModuleAccessProvider, R as modulePermissionKeys, S as SECRET_COLUMNS, T as resolveExposeColumns, U as InstalledModule, V as sameModuleFile, W as ModuleUpgradePlan, X as moduleTopics, Y as moduleBody, Z as renderModules, _ as subjectColumns, a as MigrationOptionUse, at as SqlModule, b as sameTenantTrigger, c as SCOPE_ID_TYPES, ct as sameTenantLayout, d as templateFunctions, et as ModuleEntitlementsProvider, f as PolicyGrant, g as rlsTables, h as policyGrants, i as sharedRolesProblems, it as ModuleUpgrade, j as appTablesFiles, k as APP_TABLES_MARKER, l as resolveProviderSql, lt as AuditedTable, m as extensionSchema, n as compileReadSet, nt as ModuleLayout, o as migrationOptionUses, ot as moduleVersion, p as declaredTables, q as ModuleTopic, r as compileReadSets, rt as ModuleTestFile, s as moduleLayout, st as DeclaredForeignKey, t as CompiledReadSet, tt as ModuleFile, u as scopeProblems, ut as auditRegistrations, v as expiredFlagsQuery, w as excludedColumns, x as DataExportPlan, y as sameTenantColumn, z as moduleSchemaExtensions } from "../index-Cm2-g_4H.js";
|
|
4
4
|
import { o as appTableEventTypes } from "../app-tables-BrMBjyuq.js";
|
|
5
5
|
export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, type AdoptedTable, type AuditCategory, type AuditedTable, BLOCK_OPTION_SCHEMAS, type BlockOptionsRegistry, type CompiledReadSet, type DataExportPlan, type DeclaredForeignKey, type InstalledModule, MODULE_ID_TYPES, type MigrationOptionUse, type ModuleAccessProvider, type ModuleAction, type ModuleAudit, type ModuleContext, type ModuleContractFunction, type ModuleDeprecation, type ModuleEmit, type ModuleEntitlementsProvider, type ModuleExtension, type ModuleFile, type ModuleIdType, type ModuleLayout, type ModuleNames, type ModulePermissionKey, type ModuleTableSpec, type ModuleTestFile, type ModuleTopic, type ModuleUpgrade, type ModuleUpgradePlan, type PolicyGrant, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, type SqlModule, adoptedColumnProblems, adoptedTables, appTableEventTypes, appTablesFiles, auditRegistrations, compileReadSet, compileReadSets, contractSignature, customContracts, dataExportPlan, declaredTables, excludedColumns, expiredFlagsQuery, extensionSchema, isModuleIdType, migrationOptionUses, moduleBody, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleTopics, moduleVersion, policyGrants, renderModules, resolveExposeColumns, resolveModule, resolveModules, resolveProviderSql, rlsTables, sameModuleFile, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopeProblems, sharedRolesProblems, subjectColumns, templateFunctions, upgradePlan };
|
package/dist/sql/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as resolveModule } from "../blocks-D2WQ63PI.js";
|
|
2
2
|
import { u as appTableEventTypes } from "../app-tables-BRjMcWhW.js";
|
|
3
3
|
import { c as templateFunctions, o as resolveProviderSql, s as scopeProblems, t as SCOPE_ID_TYPES } from "../access-sql-CTJPHjCL.js";
|
|
4
|
-
import { A as SECRET_COLUMNS, B as migrationOptionUses, C as moduleHidingColumns, D as resolveModules, E as SQL_MODULES, F as rlsTables, G as moduleIdType, H as MODULE_ID_TYPES, I as auditRegistrations, K as BLOCK_OPTION_SCHEMAS, L as subjectColumns, M as declaredTables, N as extensionSchema, O as excludedColumns, P as policyGrants, R as sameTenantColumn, S as moduleEventTriggers, T as moduleSchemaExtensions, U as contractSignature, V as AUDIT_CATEGORIES, W as isModuleIdType, _ as moduleFilePaths, a as expiredFlagsQuery, b as appTablesFiles, c as adoptedTables, d as customContracts, f as moduleBody, g as upgradePlan, h as moduleDeprecations, i as moduleLayout, j as dataExportPlan, k as resolveExposeColumns, l as moduleFileVersion, m as renderModules, n as compileReadSets, o as sameTenantLayout, p as moduleTopics, r as sharedRolesProblems, s as adoptedColumnProblems, t as compileReadSet, u as sameModuleFile, v as APP_TABLES_MARKER, w as modulePermissionKeys, x as moduleVersion, y as APP_TABLES_MODULE, z as sameTenantTrigger } from "../sql-
|
|
4
|
+
import { A as SECRET_COLUMNS, B as migrationOptionUses, C as moduleHidingColumns, D as resolveModules, E as SQL_MODULES, F as rlsTables, G as moduleIdType, H as MODULE_ID_TYPES, I as auditRegistrations, K as BLOCK_OPTION_SCHEMAS, L as subjectColumns, M as declaredTables, N as extensionSchema, O as excludedColumns, P as policyGrants, R as sameTenantColumn, S as moduleEventTriggers, T as moduleSchemaExtensions, U as contractSignature, V as AUDIT_CATEGORIES, W as isModuleIdType, _ as moduleFilePaths, a as expiredFlagsQuery, b as appTablesFiles, c as adoptedTables, d as customContracts, f as moduleBody, g as upgradePlan, h as moduleDeprecations, i as moduleLayout, j as dataExportPlan, k as resolveExposeColumns, l as moduleFileVersion, m as renderModules, n as compileReadSets, o as sameTenantLayout, p as moduleTopics, r as sharedRolesProblems, s as adoptedColumnProblems, t as compileReadSet, u as sameModuleFile, v as APP_TABLES_MARKER, w as modulePermissionKeys, x as moduleVersion, y as APP_TABLES_MODULE, z as sameTenantTrigger } from "../sql-CT1Jnwp8.js";
|
|
5
5
|
export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, BLOCK_OPTION_SCHEMAS, MODULE_ID_TYPES, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, adoptedColumnProblems, adoptedTables, appTableEventTypes, appTablesFiles, auditRegistrations, compileReadSet, compileReadSets, contractSignature, customContracts, dataExportPlan, declaredTables, excludedColumns, expiredFlagsQuery, extensionSchema, isModuleIdType, migrationOptionUses, moduleBody, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleTopics, moduleVersion, policyGrants, renderModules, resolveExposeColumns, resolveModule, resolveModules, resolveProviderSql, rlsTables, sameModuleFile, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopeProblems, sharedRolesProblems, subjectColumns, templateFunctions, upgradePlan };
|
|
@@ -101,7 +101,7 @@ import { t as FINAL_RUN_STATES$1 } from "./run-state-CgBKzYMW.js";
|
|
|
101
101
|
import { t as ISO_4217_MINOR_UNITS } from "./iso4217-A8ev-CNW.js";
|
|
102
102
|
import { a as metricsOf, i as grainDivides, t as METRIC_GRAINS } from "./metric-definition-BjxVn4R5.js";
|
|
103
103
|
import { r as NEGATIVE, t as FILTER_OPERATORS } from "./filter-query-B3lhckKX.js";
|
|
104
|
-
import { t as VERSION } from "./version-
|
|
104
|
+
import { t as VERSION } from "./version-DSWxci83.js";
|
|
105
105
|
import { t as compileSql } from "./sql-BPKRNutj.js";
|
|
106
106
|
//#region src/sql/actor-guard.ts
|
|
107
107
|
/**
|
package/dist/ssr/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as serializeCookie, E as writeSession, S as readSession, T as sessionEncoding, _ as WriteSessionOptions, a as ResolveAuthOptions, b as parseCookies, c as resolveAuth, d as CookieRecord, f as CookieScope, g as StoredSession, h as SessionEncoding, l as AUTH_CACHE_HEADERS, m as DEFAULT_SESSION_ENCODING, n as AuthResolver, p as CookieWrite, r as AuthState, t as AuthResolution, u as CookieOptions, v as applyCookieWrites, w as sessionCookieName, x as pruneSessionChunks, y as clearSessionAtScopes } from "../resolve-
|
|
2
|
-
import { n as toSession, t as AuthSession } from "../view-
|
|
3
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
4
|
-
import { a as sessionStatus, c as RefreshOutcome, i as clearSessionCookies, l as refreshSession, n as SessionStatus, o as authContext, r as SessionStatusOptions, s as RefreshOptions, t as ClearSessionCookiesOptions } from "../ended-
|
|
1
|
+
import { C as serializeCookie, E as writeSession, S as readSession, T as sessionEncoding, _ as WriteSessionOptions, a as ResolveAuthOptions, b as parseCookies, c as resolveAuth, d as CookieRecord, f as CookieScope, g as StoredSession, h as SessionEncoding, l as AUTH_CACHE_HEADERS, m as DEFAULT_SESSION_ENCODING, n as AuthResolver, p as CookieWrite, r as AuthState, t as AuthResolution, u as CookieOptions, v as applyCookieWrites, w as sessionCookieName, x as pruneSessionChunks, y as clearSessionAtScopes } from "../resolve-Ceft-18-.js";
|
|
2
|
+
import { n as toSession, t as AuthSession } from "../view-KQhe6eNc.js";
|
|
3
|
+
import { r as MembershipClaim } from "../entitlements-CtBGXb3B.js";
|
|
4
|
+
import { a as sessionStatus, c as RefreshOutcome, i as clearSessionCookies, l as refreshSession, n as SessionStatus, o as authContext, r as SessionStatusOptions, s as RefreshOptions, t as ClearSessionCookiesOptions } from "../ended-De6H52nX.js";
|
|
5
5
|
export { AUTH_CACHE_HEADERS, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type ClearSessionCookiesOptions, type CookieOptions, type CookieRecord, type CookieScope, type CookieWrite, DEFAULT_SESSION_ENCODING, type MembershipClaim, type RefreshOptions, type RefreshOutcome, type ResolveAuthOptions, type SessionEncoding, type SessionStatus, type SessionStatusOptions, type StoredSession, type WriteSessionOptions, applyCookieWrites, authContext, clearSessionAtScopes, clearSessionCookies, parseCookies, pruneSessionChunks, readSession, refreshSession, resolveAuth, serializeCookie, sessionCookieName, sessionEncoding, sessionStatus, toSession, writeSession };
|
package/dist/ssr/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as authContext } from "../context-BiwgsycK.js";
|
|
2
|
-
import { _ as writeSession, a as clearSessionCookies, c as DEFAULT_SESSION_ENCODING, d as parseCookies, f as pruneSessionChunks, g as sessionEncoding, h as sessionCookieName, i as refreshSession, l as applyCookieWrites, m as serializeCookie, o as sessionStatus, p as readSession, r as resolveAuth, s as AUTH_CACHE_HEADERS, u as clearSessionAtScopes } from "../resolve-
|
|
2
|
+
import { _ as writeSession, a as clearSessionCookies, c as DEFAULT_SESSION_ENCODING, d as parseCookies, f as pruneSessionChunks, g as sessionEncoding, h as sessionCookieName, i as refreshSession, l as applyCookieWrites, m as serializeCookie, o as sessionStatus, p as readSession, r as resolveAuth, s as AUTH_CACHE_HEADERS, u as clearSessionAtScopes } from "../resolve-AtncaPTU.js";
|
|
3
3
|
import { n as toSession } from "../view-CYX1wsgp.js";
|
|
4
4
|
export { AUTH_CACHE_HEADERS, DEFAULT_SESSION_ENCODING, applyCookieWrites, authContext, clearSessionAtScopes, clearSessionCookies, parseCookies, pruneSessionChunks, readSession, refreshSession, resolveAuth, serializeCookie, sessionCookieName, sessionEncoding, sessionStatus, toSession, writeSession };
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { J as BucketLifecycleRule, X as VersioningStatus, Y as ObjectVersion, n as AccessPolicySql, q as BucketLifecycle, t as AccessBucketPolicy } from "../types-BrpW5ixT.js";
|
|
2
|
-
import { A as TtlPreset, B as StorageListV2Folder, C as UrlOptions, D as TemplateParams, E as AppliedBucket, F as StorageDownloadOptions, G as StorageResponse, H as StorageListV2Result, I as StorageFailure, J as StorageSignedUrlEntry, K as StorageSearchOptions, L as StorageFetchParameters, M as StorageBucketApi, N as StorageClient, O as TemplateValues, P as StorageDestinationOptions, Q as StoragePath, R as StorageFileOptions, S as UploadOptions, T as parseSize, U as StorageObjectInfo, V as StorageListV2Object, W as StorageRemoveEntry, X as StorageUrlOptions, Y as StorageTransform, Z as PathIn, _ as SweepOptions, a as BucketConnectOptions, b as TransformOptions, c as DownloadOptions, d as PurgeCacheOptions, f as ReplaceOptions, g as StoredObject, h as StorageAdminClient, i as BucketConfig, j as StorageApi, k as TTL, l as ObjectTarget, m as Reservation, n as Bucket, o as BucketDrift, p as ReplaceResult, q as StorageSearchV2Options, r as BucketClient, s as BucketPolicy, t as ActualBucket, u as PathValues, v as SweepResult, w as defineBucket, x as UploadBody, y as TransferOptions, z as StorageListEntry } from "../bucket-
|
|
3
|
-
import { A as defineBuckets, C as BucketIdOf, D as ConnectedRef, E as Buckets, M as StorageImageSize, N as storageImageUrl, O as ResolvedRef, P as fromStorageError, S as AnyBucket, T as BucketWithId, _ as IMAGE_TYPES, a as VectorHit, b as avatarBucket, c as VectorMetadata, d as defineVectorBucket, f as AnalyticsBucket, g as AvatarBucketOptions, h as defineAnalyticsBucket, i as VectorDistance, j as StorageImageOptions, k as StoredRef, l as VectorQueryOptions, m as AnalyticsCatalog, n as VectorBucketClient, o as VectorIndexClient, p as AnalyticsBucketClient, r as VectorBucketConfig, s as VectorIndexConfig, t as VectorBucket, u as VectorRecord, v as ImageBucketOptions, w as BucketMap, x as organizationLogoBucket, y as OrganizationLogoBucketOptions } from "../index-
|
|
2
|
+
import { A as TtlPreset, B as StorageListV2Folder, C as UrlOptions, D as TemplateParams, E as AppliedBucket, F as StorageDownloadOptions, G as StorageResponse, H as StorageListV2Result, I as StorageFailure, J as StorageSignedUrlEntry, K as StorageSearchOptions, L as StorageFetchParameters, M as StorageBucketApi, N as StorageClient, O as TemplateValues, P as StorageDestinationOptions, Q as StoragePath, R as StorageFileOptions, S as UploadOptions, T as parseSize, U as StorageObjectInfo, V as StorageListV2Object, W as StorageRemoveEntry, X as StorageUrlOptions, Y as StorageTransform, Z as PathIn, _ as SweepOptions, a as BucketConnectOptions, b as TransformOptions, c as DownloadOptions, d as PurgeCacheOptions, f as ReplaceOptions, g as StoredObject, h as StorageAdminClient, i as BucketConfig, j as StorageApi, k as TTL, l as ObjectTarget, m as Reservation, n as Bucket, o as BucketDrift, p as ReplaceResult, q as StorageSearchV2Options, r as BucketClient, s as BucketPolicy, t as ActualBucket, u as PathValues, v as SweepResult, w as defineBucket, x as UploadBody, y as TransferOptions, z as StorageListEntry } from "../bucket-BbePDVwc.js";
|
|
3
|
+
import { A as defineBuckets, C as BucketIdOf, D as ConnectedRef, E as Buckets, M as StorageImageSize, N as storageImageUrl, O as ResolvedRef, P as fromStorageError, S as AnyBucket, T as BucketWithId, _ as IMAGE_TYPES, a as VectorHit, b as avatarBucket, c as VectorMetadata, d as defineVectorBucket, f as AnalyticsBucket, g as AvatarBucketOptions, h as defineAnalyticsBucket, i as VectorDistance, j as StorageImageOptions, k as StoredRef, l as VectorQueryOptions, m as AnalyticsCatalog, n as VectorBucketClient, o as VectorIndexClient, p as AnalyticsBucketClient, r as VectorBucketConfig, s as VectorIndexConfig, t as VectorBucket, u as VectorRecord, v as ImageBucketOptions, w as BucketMap, x as organizationLogoBucket, y as OrganizationLogoBucketOptions } from "../index-Hc4tetmB.js";
|
|
4
4
|
export { type AccessBucketPolicy, type AccessPolicySql, type ActualBucket, type AnalyticsBucket, type AnalyticsBucketClient, type AnalyticsCatalog, type AnyBucket, type AppliedBucket, type AvatarBucketOptions, type Bucket, type BucketClient, type BucketConfig, type BucketConnectOptions, type BucketDrift, type BucketIdOf, type BucketLifecycle, type BucketLifecycleRule, type BucketMap, type BucketPolicy, type BucketWithId, type Buckets, type ConnectedRef, type DownloadOptions, IMAGE_TYPES, type ImageBucketOptions, type ObjectTarget, type ObjectVersion, type OrganizationLogoBucketOptions, type PathIn, type PathValues, type PurgeCacheOptions, type ReplaceOptions, type ReplaceResult, type Reservation, type ResolvedRef, type StorageAdminClient, type StorageApi, type StorageBucketApi, type StorageClient, type StorageDestinationOptions, type StorageDownloadOptions, type StorageFailure, type StorageFetchParameters, type StorageFileOptions, type StorageImageOptions, type StorageImageSize, type StorageListEntry, type StorageListV2Folder, type StorageListV2Object, type StorageListV2Result, type StorageObjectInfo, type StoragePath, type StorageRemoveEntry, type StorageResponse, type StorageSearchOptions, type StorageSearchV2Options, type StorageSignedUrlEntry, type StorageTransform, type StorageUrlOptions, type StoredObject, type StoredRef, type SweepOptions, type SweepResult, TTL, type TemplateParams, type TemplateValues, type TransferOptions, type TransformOptions, type TtlPreset, type UploadBody, type UploadOptions, type UrlOptions, type VectorBucket, type VectorBucketClient, type VectorBucketConfig, type VectorDistance, type VectorHit, type VectorIndexClient, type VectorIndexConfig, type VectorMetadata, type VectorQueryOptions, type VectorRecord, type VersioningStatus, avatarBucket, defineAnalyticsBucket, defineBucket, defineBuckets, defineVectorBucket, fromStorageError, organizationLogoBucket, parseSize, storageImageUrl };
|
package/dist/storage/index.js
CHANGED
|
@@ -357,6 +357,11 @@ function connectBucket(bucket, client, resolveTarget, connectOptions, guard) {
|
|
|
357
357
|
return err(fromStorageError(cause, bucket.id));
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
|
+
const claim = (path) => {
|
|
361
|
+
if (!storage.claimSignedUpload) return AsyncResult.ok(path);
|
|
362
|
+
const claiming = storage.claimSignedUpload(bucket.id, path);
|
|
363
|
+
return run(() => claiming);
|
|
364
|
+
};
|
|
360
365
|
const fileOptions = (options, contentType) => ({
|
|
361
366
|
...contentType ? { contentType } : {},
|
|
362
367
|
...options?.cacheControl ? { cacheControl: options.cacheControl } : {},
|
|
@@ -388,6 +393,8 @@ function connectBucket(bucket, client, resolveTarget, connectOptions, guard) {
|
|
|
388
393
|
onProgress: options.onProgress
|
|
389
394
|
});
|
|
390
395
|
if (failure) return err(fromStorageError(failure, bucket.id));
|
|
396
|
+
const claimed = await claim(path);
|
|
397
|
+
if (!claimed.ok) return claimed;
|
|
391
398
|
evict([path]);
|
|
392
399
|
return ok({ path });
|
|
393
400
|
}
|
|
@@ -660,6 +667,10 @@ function connectBucket(bucket, client, resolveTarget, connectOptions, guard) {
|
|
|
660
667
|
return { path };
|
|
661
668
|
});
|
|
662
669
|
}),
|
|
670
|
+
claimReserved: (reservation) => AsyncResult.from(async () => {
|
|
671
|
+
const path = resolve(reservation.path);
|
|
672
|
+
return claim(path).map(() => ({ path }));
|
|
673
|
+
}),
|
|
663
674
|
sweep: (options) => AsyncResult.from(async () => {
|
|
664
675
|
const namespace = optionalTemporal();
|
|
665
676
|
if (namespace === void 0) return err(temporalMissing());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as BlockTransport } from "./block-transport-DezJPPA0.js";
|
|
2
|
-
import { g as SubscriberPolicy } from "./authorization-hooks-
|
|
2
|
+
import { g as SubscriberPolicy } from "./authorization-hooks-WDQMKIsc.js";
|
|
3
3
|
//#region src/core/subject-readers.d.ts
|
|
4
4
|
interface SubjectReadersOptions {
|
|
5
5
|
/** The schema of the `subjects` module. Default `better_supabase`. */
|
|
@@ -5,7 +5,7 @@ import { n as validate } from "./standard-B1BigegP.js";
|
|
|
5
5
|
import { o as problemResponse } from "./problem-JRCohp1j.js";
|
|
6
6
|
import { i as sqlIdent } from "./template-Dw3dTmKe.js";
|
|
7
7
|
import { t as fromPgError } from "./pg-error-BV_X8Isq.js";
|
|
8
|
-
import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-
|
|
8
|
+
import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-CRNH2aX_.js";
|
|
9
9
|
import { a as emitBlockEvent } from "./block-events-DD9Q_NUz.js";
|
|
10
10
|
import { t as cronRoute } from "./cron-route-mTvWhork.js";
|
|
11
11
|
import { t as boundedTtlCache } from "./ttl-cache-XzZ-Q2eX.js";
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { b as DbError } from "../result-BREt7qOh.js";
|
|
2
|
-
import { O as TemplateValues } from "../bucket-
|
|
3
|
-
import { at as QuerySpec } from "../define-
|
|
4
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
5
|
-
import { t as AuthSnapshot } from "../bind-
|
|
6
|
-
import { t as AuthSession } from "../view-
|
|
7
|
-
import { a as BroadcastOptions, c as LiveCountHookOptions, d as PresenceHookOptions, f as PresenceTopic, i as ActionState, l as LiveCountSource, 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-
|
|
2
|
+
import { O as TemplateValues } from "../bucket-BbePDVwc.js";
|
|
3
|
+
import { at as QuerySpec } from "../define-DYZnvAbs.js";
|
|
4
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-DAY_HOX2.js";
|
|
5
|
+
import { t as AuthSnapshot } from "../bind-Bfo40o63.js";
|
|
6
|
+
import { t as AuthSession } from "../view-KQhe6eNc.js";
|
|
7
|
+
import { a as BroadcastOptions, c as LiveCountHookOptions, d as PresenceHookOptions, f as PresenceTopic, i as ActionState, l as LiveCountSource, 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
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
import { QueryClient } from "@tanstack/query-core";
|
|
10
10
|
//#region src/svelte/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Controller } from "./controller-
|
|
1
|
+
import { n as Controller } from "./controller-BZhiIb-N.js";
|
|
2
2
|
import { Readable } from "svelte/store";
|
|
3
3
|
//#region src/blocks/svelte-controller.d.ts
|
|
4
4
|
/** A block controller in a Svelte component: a readable store of its state, with its actions. */
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
import { i as tagFor } from "../tags-
|
|
8
|
+
import { i as tagFor } from "../tags-BrGopDVG.js";
|
|
9
9
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
10
10
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
11
11
|
//#region src/bridges/sveltekit.d.ts
|
package/dist/sveltekit/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-CnWcYPxL.js";
|
|
2
2
|
import { r as dbErrorOf } from "../errors-BV1SKTVs.js";
|
|
3
3
|
import { c as toProblem } from "../problem-JRCohp1j.js";
|
|
4
|
-
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
4
|
+
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-CRNH2aX_.js";
|
|
5
5
|
import { t as defaultExpose } from "../respond-Bhp3G__q.js";
|
|
6
6
|
import { r as tagFor } from "../tags-B99_U9Pp.js";
|
|
7
7
|
import { i as requireCaller, o as runAction } from "../kit-LTbHrWWD.js";
|
|
8
8
|
import { n as bufferInPlace, t as around } from "../shared-BmMcMoW9.js";
|
|
9
|
-
import { a as platformWaitUntil, i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-
|
|
9
|
+
import { a as platformWaitUntil, i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-C6PKBgme.js";
|
|
10
10
|
import { i as refusalTarget } from "../refusal-CFpfmjcS.js";
|
|
11
11
|
//#region src/bridges/sveltekit.ts
|
|
12
12
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as CacheTarget, s as CacheAdapter } from "./define-
|
|
1
|
+
import { c as CacheTarget, s as CacheAdapter } from "./define-DYZnvAbs.js";
|
|
2
2
|
//#region src/core/tags.d.ts
|
|
3
3
|
interface TagOptions {
|
|
4
4
|
/** The tenant the read is scoped to; `"*"` is every tenant's reads. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as TableKey, a as AnyModels, i as AnyFunctions } from "../types-BrpW5ixT.js";
|
|
2
|
-
import { _ as Db, t as BetterSupabase } from "../define-
|
|
2
|
+
import { _ as Db, t as BetterSupabase } from "../define-DYZnvAbs.js";
|
|
3
3
|
import { t as BetterQueryMeta } from "../invalidate-BBqhpxyB.js";
|
|
4
4
|
import { QueryClient, SkipToken } from "@tanstack/query-core";
|
|
5
5
|
//#region src/tanstack-db/collection.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as TableKey, a as AnyModels, i as AnyFunctions } from "../../types-BrpW5ixT.js";
|
|
2
|
-
import { _ as Db, t as BetterSupabase } from "../../define-
|
|
2
|
+
import { _ as Db, t as BetterSupabase } from "../../define-DYZnvAbs.js";
|
|
3
3
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
4
4
|
import { supabaseCollectionOptions } from "@supabase-labs/tanstack-db";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -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,8 +1,8 @@
|
|
|
1
|
-
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
1
|
+
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-CRNH2aX_.js";
|
|
2
2
|
import { t as defaultExpose } from "../respond-Bhp3G__q.js";
|
|
3
3
|
import { i as requireCaller, o as runAction } from "../kit-LTbHrWWD.js";
|
|
4
4
|
import { n as bufferInPlace, t as around } from "../shared-BmMcMoW9.js";
|
|
5
|
-
import { i as localsOf, r as frameworkEntry } from "../framework-
|
|
5
|
+
import { i as localsOf, r as frameworkEntry } from "../framework-C6PKBgme.js";
|
|
6
6
|
import { r as refusalResponse } from "../refusal-CFpfmjcS.js";
|
|
7
7
|
//#region src/bridges/tanstack-start.ts
|
|
8
8
|
/** The `response` of a request middleware's `next()` result; server function results have none. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as AuthSnapshot } from "./bind-
|
|
2
|
-
import { t as AuthSession } from "./view-
|
|
1
|
+
import { t as AuthSnapshot } from "./bind-Bfo40o63.js";
|
|
2
|
+
import { t as AuthSession } from "./view-KQhe6eNc.js";
|
|
3
3
|
//#region src/auth/tenant.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The active tenant of a user session: the `claim` claim (`tenant_id` by
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { B as TableKey, F as SchemaMeta, G as Update, N as Row, S as Insert, a as AnyModels, i as AnyFunctions } from "../types-BrpW5ixT.js";
|
|
2
2
|
import { r as Executor } from "../executor-BnMC0lj3.js";
|
|
3
3
|
import { m as RequestContext, n as AnyPlugin } from "../plugin-D-95Q0w0.js";
|
|
4
|
-
import { t as BetterSupabaseEnv } from "../index-CxmVzT-3.js";
|
|
5
|
-
import { n as AuthResolver } from "../resolve-
|
|
6
|
-
import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-
|
|
4
|
+
import { c as InlineJwks, t as BetterSupabaseEnv } from "../index-CxmVzT-3.js";
|
|
5
|
+
import { n as AuthResolver } from "../resolve-Ceft-18-.js";
|
|
6
|
+
import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-DXgx5oSA.js";
|
|
7
7
|
import { n as SqlClient } from "../executor-D1hECPGG.js";
|
|
8
8
|
import { a as BlockTransportMiddleware } from "../block-hooks-DcPJHztl.js";
|
|
9
9
|
import { a as SessionActor, o as SessionDelegation } from "../actor-BAhb-d1S.js";
|
|
10
10
|
import { M as QueueBackend } from "../types-BEEFkNFY.js";
|
|
11
|
-
import { n as Embedder } from "../knowledge-
|
|
11
|
+
import { n as Embedder } from "../knowledge-B5zdpDD-.js";
|
|
12
12
|
import { a as AuthorizationProvider } from "../authorization-ClWBcXJi.js";
|
|
13
13
|
import { o as StreamStore } from "../store-B18bIvKc.js";
|
|
14
14
|
import { t as ApiModel } from "../model-lUafmeBQ.js";
|
|
15
15
|
import { l as VersionOf, t as AnyDocumentFormat } from "../format-CNwSjXUU.js";
|
|
16
16
|
import { o as Authorizer } from "../authorizer-eiOjo-3l.js";
|
|
17
17
|
import { i as EventSink, t as CloudEvent } from "../cloud-event-DXkNoI6v.js";
|
|
18
|
-
import { Wt as DbStats, _ as Db, s as CacheAdapter, t as BetterSupabase } from "../define-
|
|
18
|
+
import { Wt as DbStats, _ as Db, s as CacheAdapter, t as BetterSupabase } from "../define-DYZnvAbs.js";
|
|
19
19
|
import { n as Impersonator } from "../impersonation-D5chOkrO.js";
|
|
20
|
-
import { i as AuthorizationHooks } from "../authorization-hooks-
|
|
20
|
+
import { i as AuthorizationHooks } from "../authorization-hooks-WDQMKIsc.js";
|
|
21
21
|
import { t as BetterPostgres } from "../pool-cM3rpOQr.js";
|
|
22
|
-
import { B as SupportSessionStore, a as ServerContext, c as ServerOptions } from "../server-types-
|
|
23
|
-
import { r as GuardOptions } from "../respond-
|
|
24
|
-
import { n as Controller } from "../controller-
|
|
25
|
-
import { i as AiTaskRun, o as AiTaskRunner, t as AiTask } from "../ai-tasks-
|
|
22
|
+
import { B as SupportSessionStore, a as ServerContext, c as ServerOptions } from "../server-types-fLdep4gb.js";
|
|
23
|
+
import { r as GuardOptions } from "../respond-BSL36dQp.js";
|
|
24
|
+
import { n as Controller } from "../controller-BZhiIb-N.js";
|
|
25
|
+
import { i as AiTaskRun, o as AiTaskRunner, t as AiTask } from "../ai-tasks-ZvPnNudQ.js";
|
|
26
26
|
import { r as WebhookInput } from "../signatures-BXlDXV3D.js";
|
|
27
27
|
import { n as Money } from "../money-DFpWzQvk.js";
|
|
28
28
|
import { a as Generator, c as GeneratorModel, s as GeneratorInput, x as ResolvedConfig } from "../codegen-C64C0NZG.js";
|
|
29
29
|
import { t as NotificationChannel } from "../channel-D-LHCY11.js";
|
|
30
30
|
import { a as DeliveryTransport } from "../delivery-BeHgwS3k.js";
|
|
31
31
|
import { C as PaymentProvider, l as TaxProvider, r as TaxAddress, y as Payment } from "../tax-DMWDUzKt.js";
|
|
32
|
-
import { B as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-
|
|
32
|
+
import { B as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-Bels39_u.js";
|
|
33
33
|
import { O as IncomingDestination, f as WebhookSecretStore, o as WebhookSigner, v as WebhookTransport } from "../signers-BwKV-9S6.js";
|
|
34
|
-
import { t as EveDocumentBackend } from "../eve-
|
|
34
|
+
import { t as EveDocumentBackend } from "../eve-B6ru2Bt4.js";
|
|
35
35
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
36
36
|
import { Message, StateAdapter } from "chat";
|
|
37
37
|
import { webcrypto } from "node:crypto";
|
|
@@ -57,9 +57,7 @@ export declare function signTestJwt(secret: string, claims: TestJwtClaims): Prom
|
|
|
57
57
|
export declare function localAuth(secret: string): AuthResolver;
|
|
58
58
|
interface TestSigner {
|
|
59
59
|
/** Public JWKS; pass as `jwks` to `resolveAuth` / `createServer({ auth: { jwks } })`. */
|
|
60
|
-
readonly jwks:
|
|
61
|
-
readonly keys: readonly webcrypto.JsonWebKey[];
|
|
62
|
-
};
|
|
60
|
+
readonly jwks: InlineJwks;
|
|
63
61
|
sign(claims: TestJwtClaims): Promise<string>;
|
|
64
62
|
}
|
|
65
63
|
/** A private ES256 JWK, as `better-supabase keys` writes to `supabase/signing_keys.json`. */
|
|
@@ -2,9 +2,9 @@ import { D as ValidationIssue, b as DbError, t as AsyncResult } from "./result-B
|
|
|
2
2
|
import { B as TableKey, N as Row, a as AnyModels, i as AnyFunctions, r as AccessTopicPolicy } from "./types-BrpW5ixT.js";
|
|
3
3
|
import { t as AuthorizationFunctions } from "./authorization-ClWBcXJi.js";
|
|
4
4
|
import { t as RealtimeStatus } from "./realtime-status-DcsO00Gw.js";
|
|
5
|
-
import { D as TemplateParams, O as TemplateValues } from "./bucket-
|
|
6
|
-
import { t as BetterSupabase } from "./define-
|
|
7
|
-
import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-
|
|
5
|
+
import { D as TemplateParams, O as TemplateValues } from "./bucket-BbePDVwc.js";
|
|
6
|
+
import { t as BetterSupabase } from "./define-DYZnvAbs.js";
|
|
7
|
+
import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-WDQMKIsc.js";
|
|
8
8
|
import { RealtimeChannel, SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/realtime/fan-out.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-BREt7qOh.js";
|
|
3
3
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
4
|
-
import { i as CredentialRef, r as CredentialProvider } from "./provider-
|
|
4
|
+
import { i as CredentialRef, r as CredentialProvider } from "./provider-DXgx5oSA.js";
|
|
5
5
|
import { t as BlockTransport } from "./block-transport-DezJPPA0.js";
|
|
6
6
|
import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-CjcQM1yA.js";
|
|
7
7
|
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|