better-supabase 0.34.0 → 0.36.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-CWzyKepA.js → adapter-ddQ9Hzka.js} +126 -91
- package/dist/{agents-DXiOPB3V.d.ts → agents-BwUHtvD6.d.ts} +4 -4
- package/dist/{ai-cache-CLiAXCPH.d.ts → ai-cache-CPOP2PYz.d.ts} +4 -4
- package/dist/{ai-chat-DlcBdOhJ.d.ts → ai-chat-BZhfCHHr.d.ts} +106 -25
- package/dist/{ai-schedules-Drx2KRTn.d.ts → ai-schedules-BZPmySUa.d.ts} +5 -5
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/batches/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.d.ts +2 -2
- package/dist/ai-sdk/chat/index.js +3 -272
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +5 -5
- package/dist/ai-sdk/index.js +2 -3
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +6 -5
- package/dist/ai-sdk/workflow/index.js +9 -9
- package/dist/{api-myq2e9t5.d.ts → api-XEaCJbgv.d.ts} +5 -5
- package/dist/{api-keys-DbIbkGxx.d.ts → api-keys-C82fMru4.d.ts} +4 -4
- package/dist/{app-tables-Don-aNOB.d.ts → app-tables-C0XVpQEJ.d.ts} +1 -1
- package/dist/{approvals-Da4uAANx.js → approvals-D8gR1R8R.js} +95 -11
- package/dist/{approvals-DZoGtNFv.d.ts → approvals-DqCv7f-G.d.ts} +101 -7
- package/dist/{assistant-BEbRPjhn.d.ts → assistant-5heV2GeR.d.ts} +7 -3
- package/dist/assistant-BHZ6fqBR.js +300 -0
- package/dist/astro/index.d.ts +7 -7
- package/dist/astro/index.js +5 -5
- package/dist/{auth-module-CqXdm8qD.js → auth-module-DkqapRZJ.js} +1 -1
- package/dist/{authorization-DpVtxuKM.d.ts → authorization-2Rv1AJQJ.d.ts} +151 -39
- package/dist/{authorization-hooks-CxwsRnfV.d.ts → authorization-hooks-C0GfMvFm.d.ts} +8 -2
- package/dist/authz-topic-D7fPUY4P.js +13 -0
- package/dist/{automations-Bw5cX7oj.js → automations-D4QTP8nI.js} +2 -1
- package/dist/{availability-CebEOfMN.d.ts → availability-CZlcrkqD.d.ts} +49 -8
- package/dist/{base64-CVyKHBBw.js → base64-CEBz6-Jj.js} +9 -2
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-BA05aoY9.d.ts → bind-C2XvMlfg.d.ts} +7 -7
- package/dist/{block-env-UX42PHLP.d.ts → block-env-BQrtLPyc.d.ts} +4 -4
- package/dist/{block-helpers-disoUWCp.d.ts → block-helpers-BNtM1tqy.d.ts} +1 -1
- package/dist/{block-hooks-DrA_d1dJ.d.ts → block-hooks-CtMsgLQr.d.ts} +2 -2
- package/dist/{block-subjects-Br2MQNFn.d.ts → block-subjects-Bkieh2Xk.d.ts} +1 -1
- package/dist/{block-tables-Bre1zjau.d.ts → block-tables-DPOgnT3y.d.ts} +1 -1
- package/dist/{block-transport-BEtC_Kis.d.ts → block-transport-CDmOUuLZ.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +5 -5
- package/dist/blocks/activities/index.d.ts +9 -9
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-chat/index.d.ts +8 -8
- package/dist/blocks/ai-chat/index.js +80 -20
- package/dist/blocks/ai-files/index.d.ts +3 -3
- package/dist/blocks/ai-keys/index.d.ts +4 -4
- package/dist/blocks/ai-schedules/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +8 -8
- package/dist/blocks/api-keys/index.d.ts +3 -3
- package/dist/blocks/approvals/index.d.ts +16 -5
- package/dist/blocks/approvals/index.js +7 -4
- package/dist/blocks/assets/index.d.ts +6 -6
- package/dist/blocks/assignment/index.d.ts +7 -7
- package/dist/blocks/attachments/index.d.ts +4 -4
- package/dist/blocks/audit/index.d.ts +13 -13
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.d.ts +12 -12
- package/dist/blocks/billable-time/index.d.ts +6 -6
- package/dist/blocks/billing/index.d.ts +9 -9
- package/dist/blocks/billing/index.js +1 -1
- package/dist/blocks/bookings/index.d.ts +6 -6
- package/dist/blocks/bulk/index.d.ts +4 -4
- package/dist/blocks/calendar/index.d.ts +46 -8
- package/dist/blocks/calendar/index.js +306 -47
- package/dist/blocks/catalog/index.d.ts +52 -15
- package/dist/blocks/catalog/index.js +53 -18
- package/dist/blocks/channels/index.d.ts +7 -7
- package/dist/blocks/collections/index.d.ts +6 -6
- package/dist/blocks/comments/index.d.ts +10 -10
- package/dist/blocks/compliance/index.d.ts +5 -5
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/contacts/index.d.ts +6 -6
- package/dist/blocks/content/index.d.ts +5 -5
- package/dist/blocks/contracts/index.d.ts +6 -6
- package/dist/blocks/courses/index.d.ts +5 -5
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.d.ts +6 -6
- package/dist/blocks/data-lifecycle/index.d.ts +8 -8
- package/dist/blocks/deals/index.d.ts +6 -6
- package/dist/blocks/deals/index.js +1 -1
- package/dist/blocks/dispatch/index.d.ts +6 -6
- package/dist/blocks/documents/index.d.ts +4 -4
- package/dist/blocks/documents/index.js +1 -1
- package/dist/blocks/domains/index.d.ts +6 -6
- package/dist/blocks/donations/index.d.ts +6 -6
- package/dist/blocks/drive/index.d.ts +6 -6
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/enrichment/index.d.ts +6 -6
- package/dist/blocks/enrollments/index.d.ts +74 -9
- package/dist/blocks/enrollments/index.js +67 -3
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/expenses/index.d.ts +93 -6
- package/dist/blocks/expenses/index.js +95 -4
- package/dist/blocks/field-history/index.d.ts +4 -4
- package/dist/blocks/flags/index.d.ts +5 -5
- package/dist/blocks/forecasts/index.d.ts +6 -6
- package/dist/blocks/forms/index.d.ts +6 -6
- package/dist/blocks/goals/index.d.ts +4 -4
- package/dist/blocks/guests/index.d.ts +6 -6
- package/dist/blocks/hiring/index.d.ts +6 -6
- package/dist/blocks/identities/index.d.ts +5 -5
- package/dist/blocks/imports/index.d.ts +5 -5
- package/dist/blocks/inbox/index.d.ts +11 -11
- package/dist/blocks/inbox/index.js +56 -1
- package/dist/blocks/incidents/index.d.ts +5 -5
- package/dist/blocks/index.d.ts +9 -9
- package/dist/blocks/inventory/index.d.ts +6 -6
- package/dist/blocks/invoices/index.d.ts +30 -10
- package/dist/blocks/invoices/index.js +28 -9
- package/dist/blocks/knowledge/index.d.ts +4 -4
- package/dist/blocks/knowledge/index.js +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +7 -7
- package/dist/blocks/leases/index.d.ts +6 -6
- package/dist/blocks/leave/index.d.ts +88 -15
- package/dist/blocks/leave/index.js +65 -14
- package/dist/blocks/ledger/index.d.ts +6 -6
- package/dist/blocks/mail-sync/index.d.ts +5 -5
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memory/index.d.ts +5 -5
- package/dist/blocks/memory/index.js +30 -5
- package/dist/blocks/messaging/index.d.ts +11 -11
- package/dist/blocks/metrics/index.d.ts +6 -6
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +6 -6
- package/dist/blocks/notifications/index.d.ts +11 -11
- package/dist/blocks/notifications/index.js +1 -1
- package/dist/blocks/numbering/index.d.ts +4 -4
- package/dist/blocks/oauth-server/index.d.ts +5 -5
- package/dist/blocks/oauth-server/index.js +1 -1
- package/dist/blocks/onboarding/index.d.ts +5 -5
- package/dist/blocks/orders/index.d.ts +7 -7
- package/dist/blocks/organizations/index.d.ts +8 -8
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/passes/index.js +2 -2
- package/dist/blocks/permissions/index.d.ts +7 -7
- package/dist/blocks/pipelines/index.d.ts +6 -6
- package/dist/blocks/posts/index.d.ts +5 -5
- package/dist/blocks/profiles/index.d.ts +4 -4
- package/dist/blocks/promotions/index.d.ts +5 -5
- package/dist/blocks/push/index.d.ts +7 -7
- package/dist/blocks/queue/index.d.ts +6 -6
- package/dist/blocks/queue/index.js +2 -2
- package/dist/blocks/quotes/index.d.ts +119 -27
- package/dist/blocks/quotes/index.js +112 -18
- package/dist/blocks/rank/index.d.ts +4 -4
- package/dist/blocks/reactions/index.d.ts +9 -9
- package/dist/blocks/relations/index.d.ts +7 -7
- package/dist/blocks/reminders/index.d.ts +78 -11
- package/dist/blocks/reminders/index.js +118 -6
- package/dist/blocks/reviews/index.d.ts +5 -5
- package/dist/blocks/saved-views/index.d.ts +6 -6
- package/dist/blocks/scores/index.d.ts +5 -5
- package/dist/blocks/search/index.d.ts +7 -7
- package/dist/blocks/security-events/index.d.ts +7 -7
- package/dist/blocks/security-events/index.js +1 -1
- package/dist/blocks/segments/index.d.ts +7 -7
- package/dist/blocks/sequences/index.d.ts +6 -6
- package/dist/blocks/service-accounts/index.d.ts +5 -5
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +1 -1
- package/dist/blocks/settings/index.d.ts +6 -6
- package/dist/blocks/share-links/index.d.ts +5 -5
- package/dist/blocks/shipments/index.d.ts +6 -6
- package/dist/blocks/shipments/index.js +1 -1
- package/dist/blocks/signatures/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- package/dist/blocks/signing-keys/index.js +2 -2
- package/dist/blocks/sla/index.d.ts +7 -7
- package/dist/blocks/sso/index.d.ts +6 -6
- package/dist/blocks/state-machine/index.d.ts +27 -7
- package/dist/blocks/state-machine/index.js +7 -2
- package/dist/blocks/subjects/index.d.ts +6 -6
- package/dist/blocks/tags/index.d.ts +6 -6
- package/dist/blocks/tasks/index.d.ts +9 -9
- package/dist/blocks/teams/index.d.ts +4 -4
- package/dist/blocks/templates/index.d.ts +7 -7
- package/dist/blocks/time-tracking/index.d.ts +7 -7
- package/dist/blocks/time-tracking/index.js +1 -1
- package/dist/blocks/timeline/index.d.ts +8 -8
- package/dist/blocks/trash/index.d.ts +6 -6
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +4 -4
- package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
- package/dist/blocks/vercel-marketplace/index.js +3 -3
- package/dist/blocks/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/waitlist/index.js +1 -1
- package/dist/blocks/webhooks/index.d.ts +13 -13
- package/dist/blocks/webhooks/index.js +5 -5
- package/dist/blocks/workflow-editor/index.d.ts +10 -10
- package/dist/blocks/workflow-editor/index.js +65 -2
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-Br0VXzaf.d.ts → bookings-Dj5cvXKv.d.ts} +4 -4
- package/dist/{bucket-DvG66r5G.d.ts → bucket-CrsJNHzi.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/claims/index.d.ts +6 -6
- package/dist/claims/index.js +2 -2
- package/dist/cli/{add-DoEtJhZG.js → add-D2CH8t_B.js} +2 -2
- package/dist/cli/add-De73Ghlh.js +1 -0
- package/dist/cli/{add-THXE7juv.js → add-Duf1-19E.js} +16 -14
- package/dist/cli/{agent-59XWXsRi.js → agent-Tqq3MAqx.js} +26 -1
- package/dist/cli/{app-table-files-BqLd5TuX.js → app-table-files-ha8X0rRE.js} +2 -2
- package/dist/cli/app-tables-BIyQcsHH.js +42 -0
- package/dist/cli/{backfill-D-2W0fNT.js → backfill-CLgA6-ll.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-BVU_FoLo.js → blocks-9AeouX4h.js} +2 -2
- package/dist/cli/{blocks-XwUHeyUH.js → blocks-BVB1fMMj.js} +1 -1
- package/dist/cli/{cache-D4nwCBXc.js → cache-aMk9vF1_.js} +1 -1
- package/dist/cli/{codemod-Dh4lf_k4.js → codemod-B5wrcnF2.js} +113 -4
- package/dist/cli/{command-BpZ4AuhR.js → command-DM_x_yzZ.js} +6 -0
- package/dist/cli/{completion-DHTT6rjI.js → completion-CusuUJNn.js} +1 -1
- package/dist/cli/{completion-B08Q0xB3.js → completion-Cx2UYd-y.js} +2 -2
- package/dist/cli/{completion-CwL7e93t.js → completion-DbYb3N8e.js} +2 -2
- package/dist/cli/{config-D-Upz3jV.js → config-BeuImpav.js} +1 -1
- package/dist/cli/{content-mapper-CwFH_PEn.js → content-mapper-CEtdbshU.js} +2 -2
- package/dist/cli/{db-Diy1OebO.js → db-CeiQzhPq.js} +2 -2
- package/dist/cli/{doctor-CyAMbZ_s.js → doctor-DaOUWfRN.js} +391 -54
- package/dist/cli/env-BfWbheiC.js +1 -0
- package/dist/cli/{env-BAJn6wCA.js → env-DVV10l_r.js} +1 -1
- package/dist/cli/{gen-EAUNnUY7.js → gen-BO-2NF-G.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-BRmmmGHJ.js → init-Xit9Hnbb.js} +9 -9
- package/dist/cli/{keys-CxajkV_7.js → keys-DJTN2Avl.js} +1 -1
- package/dist/cli/{live-CV9mn-xC.js → live-CuMpyRjF.js} +2 -2
- package/dist/cli/{mcp-CnaxcLWa.js → mcp-C7d4j5cq.js} +4 -4
- package/dist/cli/{metadata-CFQGBR5E.js → metadata-D2YvkY2D.js} +3 -3
- package/dist/cli/{migrate-z5oHDGNs.js → migrate-BCXxyTKt.js} +2 -2
- package/dist/cli/{migration-safety-BtAPMEZa.js → migration-safety-DfwTOBQ4.js} +1 -1
- package/dist/cli/{migrations-CNa62JSi.js → migrations-nomh4TBo.js} +2 -2
- package/dist/cli/{module-migration-CKJ8kRm1.js → module-migration--9T_T-zt.js} +2 -2
- package/dist/cli/{moved-BAFPdJz_.js → moved-CT6i1csY.js} +1 -1
- package/dist/cli/{parse-BueItuNJ.js → parse-qgJylE_A.js} +1 -1
- package/dist/cli/{powersync-BgoAWeRT.js → powersync-DB9WZsIv.js} +4 -4
- package/dist/cli/powersync-IBM_v_eJ.js +1 -0
- package/dist/cli/{print-CoqKHoy0.js → print-S6IF5rZm.js} +2 -2
- package/dist/cli/{providers-CfbFxUOQ.js → providers-BDTcal71.js} +1 -1
- package/dist/cli/{prune-workflows-BigCoXLw.js → prune-workflows-Zr2DjByi.js} +3 -3
- package/dist/cli/{remove-C9zwn-Kk.js → remove-CPX5Tg5s.js} +6 -6
- package/dist/cli/{render-DQCU_kBW.js → render-Bp7a7XQ9.js} +18 -4
- package/dist/cli/{run-DOD00FFl.js → run-BclCFEyP.js} +13 -41
- package/dist/cli/{run-dY9uOC3W.js → run-BlVaLnt_.js} +2 -2
- package/dist/cli/{run-CVaBuT18.js → run-kgG50x_Z.js} +44 -43
- package/dist/cli/{seed-BpaqqyO8.js → seed-Cn2R91cd.js} +2 -2
- package/dist/cli/seed-DGGjReq4.js +1 -0
- package/dist/cli/{shared-COtj7l3r.js → shared-D60W9NS-.js} +1 -1
- package/dist/cli/{skills-jZThjL3B.js → skills-DH-yPDny.js} +1 -1
- package/dist/cli/{snapshot-BvlEmTB0.js → snapshot-C3_eQUgY.js} +2 -2
- package/dist/cli/{source-BhZRCitG.js → source-Bk6XwIAK.js} +1 -1
- package/dist/cli/{spec-Bo2wIViH.js → spec-BDTpcBns.js} +1 -1
- package/dist/cli/{spec-DsMWuJLv.js → spec-C8ydQwZC.js} +3 -3
- package/dist/cli/{sql-layout-CA7xgRjR.js → sql-layout-DVQ20UMi.js} +3 -3
- package/dist/cli/{stack-147NqctC.js → stack-CmhSfY5V.js} +3 -2
- package/dist/cli/{sync-D9xSGdzO.js → sync-D-WO4Yvl.js} +4 -4
- package/dist/cli/{table-D9FbJS8h.js → table-k5OABwy3.js} +1 -1
- package/dist/cli/{upgrade-Ykf0LLEB.js → upgrade-DGe5Pv6v.js} +5 -5
- package/dist/cli/{upgrade-XK_CQKVJ.js → upgrade-XdhMuHAu.js} +3 -3
- package/dist/cli/{version-Dfdz7KSh.js → version-DKfeme2I.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +5 -5
- package/dist/client/native/index.js +2 -2
- package/dist/{client-Bky2z09B.js → client-DrejIxsu.js} +1 -1
- package/dist/{cloud-event-DXWmXrus.d.ts → cloud-event-BEmAUdl1.d.ts} +1 -1
- package/dist/commerce/index.js +1 -1
- package/dist/{compiler-qlXlokKn.d.ts → compiler-BOW4yPcW.d.ts} +2 -2
- package/dist/{composite-CIxjVcL1.d.ts → composite-B-oAH16L.d.ts} +7 -7
- package/dist/{composite-D2JnIiHt.js → composite-BidYZWZY.js} +3 -3
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +4 -4
- package/dist/{config-Bu6pwqcO.js → config-BKxjItQ-.js} +3 -3
- package/dist/{config-MDRA2sre.js → config-BrRlSxhx.js} +1 -1
- package/dist/{connectors-Cf2LeAuZ.d.ts → connectors-CrLRW4Ol.d.ts} +4 -4
- package/dist/{context-BGC0J3t9.d.ts → context-yfOlyAqb.d.ts} +3 -3
- package/dist/contract/index.d.ts +9 -9
- package/dist/{controller-CQrkLoRX.d.ts → controller-CAcLEndc.d.ts} +1 -1
- package/dist/{conversion-C9rndpEI.d.ts → conversion-s1NtB6S-.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +4 -4
- package/dist/create/lite/index.js +2 -2
- package/dist/credentials/index.d.ts +4 -4
- package/dist/credentials/index.js +1 -1
- package/dist/{cron-route-DSITg1yC.js → cron-route-uTsC2BD0.js} +1 -1
- package/dist/{data-engine-CMENsp3d.d.ts → data-engine-CX1oYDZl.d.ts} +1 -1
- package/dist/{define-ITQA71fw.d.ts → define-BvkaC3Oh.d.ts} +5 -5
- package/dist/{define-B6D55cO0.js → define-Duh2mMYk.js} +1 -1
- package/dist/{define-block-COmMkx2x.d.ts → define-block-Ds3aLZwz.d.ts} +12 -12
- package/dist/{documents-DeZw83ue.d.ts → documents-Btk0MhC0.d.ts} +3 -3
- package/dist/edge/index.d.ts +9 -9
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/{embeddings-rVR2AKVz.d.ts → embeddings-CI6P_mtD.d.ts} +1 -1
- package/dist/{ended-NC_ZesY4.d.ts → ended-iq2wp8fc.d.ts} +8 -3
- package/dist/{entitlements-BOWTZaRf.d.ts → entitlements-Dhu-4vlH.d.ts} +2 -2
- package/dist/env/index.d.ts +1 -1
- package/dist/{messages-CRk1g6oe.js → errors-0Qid9fGz.js} +107 -3
- package/dist/eve/index.d.ts +9 -9
- package/dist/eve/index.js +3 -3
- package/dist/{eve-DIKjuPp5.d.ts → eve-DleYrhwj.d.ts} +2 -2
- package/dist/{event-calendar-DUtFyRrv.d.ts → event-calendar-DPMcqy7Q.d.ts} +1 -1
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-DVt3Z9hw.d.ts → events-DCw3c6pj.d.ts} +1 -1
- package/dist/{executor-DqNRrFxx.d.ts → executor-B-o7QMPp.d.ts} +16 -2
- package/dist/{executor-CFmee_nV.d.ts → executor-DoSNec_H.d.ts} +1 -1
- package/dist/{executor-CHnoKOxk.d.ts → executor-H8ZLkeHj.d.ts} +4 -4
- package/dist/{executor-BDMqPbVU.js → executor-RYiR4z47.js} +71 -37
- package/dist/expo/index.d.ts +4 -4
- package/dist/expo/index.js +7 -7
- package/dist/{field-errors-DxPZYw2m.d.ts → field-errors-DXZk9Qjt.d.ts} +10 -10
- package/dist/{fields-CAVk9dxX.d.ts → fields-CP46SPNE.d.ts} +1 -1
- package/dist/{filter-evaluate-Bz3Fzhz2.d.ts → filter-evaluate-Bkbb0nuQ.d.ts} +1 -1
- package/dist/{filter-query-DV-x8fio.d.ts → filter-query-Xj40B5KT.d.ts} +1 -1
- package/dist/{flags-6emyAXly.d.ts → flags-Cuew4tGx.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +2 -2
- package/dist/{framework-BFlaPuvv.d.ts → framework-Byr_j8G-.d.ts} +8 -8
- package/dist/{framework-ChzJYkJW.js → framework-z3KTPRjk.js} +4 -4
- package/dist/{gateway-DaekJ_Me.d.ts → gateway-B9k89AC4.d.ts} +3 -3
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.d.ts +9 -10
- package/dist/hono/index.js +8 -8
- package/dist/{inbox-DavCzW7b.d.ts → inbox-yGfUVQr2.d.ts} +61 -6
- package/dist/{index-Dvpu22CJ.d.ts → index-1uV69AZq.d.ts} +1 -1
- package/dist/{index-CJB50jzQ.d.ts → index-6H-8Ib1w.d.ts} +6 -6
- package/dist/{index-M1izbwbN.d.ts → index-Ag-T51Jl.d.ts} +1 -1
- package/dist/{index-DNAkWDXc.d.ts → index-BUluRi0b.d.ts} +6 -6
- package/dist/{index-QTZIopQj.d.ts → index-C78VPlXW.d.ts} +1 -1
- package/dist/{index-D18su_r5.d.ts → index-CY612vAg.d.ts} +10 -5
- package/dist/{index-BfU0KR0X.d.ts → index-CnzGRpeH.d.ts} +5 -5
- package/dist/{index-BIAtapnD.d.ts → index-Dbd1E5Au.d.ts} +5 -5
- package/dist/{index-Bhkag9ZE.d.ts → index-Dv6lfL5p.d.ts} +14 -14
- package/dist/{index-8w4OB5En.d.ts → index-F6lsRlsr.d.ts} +1 -1
- package/dist/{index-CeUwyJ3Z.d.ts → index-kkZwp5M1.d.ts} +6 -6
- package/dist/{index-Bz0WLuh_.d.ts → index-lMApFSAd.d.ts} +5 -5
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/{instances-D31jrmKh.js → instances-xQ2lupVE.js} +246 -12
- package/dist/jwks-cache-CBKtICNV.js +114 -0
- package/dist/{jws-B8p0ppgh.js → jws-De9qjIPV.js} +1 -1
- package/dist/{kit-9pZP5iLU.js → kit-D5rRAKWJ.js} +2 -2
- package/dist/{kit-OgFOW9rX.d.ts → kit-DCuO1ZhB.d.ts} +4 -4
- package/dist/{knowledge-DdZzUTQ-.js → knowledge-CJnZOaix.js} +67 -7
- package/dist/{knowledge-BBC2sfAY.d.ts → knowledge-DWXAxvkN.d.ts} +82 -11
- package/dist/lint/index.d.ts +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-C7V8kUaD.d.ts → list-query-D1h3Dmnk.d.ts} +3 -3
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{messaging-D5z2TR37.d.ts → messaging-Bfe4p9Pm.d.ts} +4 -4
- package/dist/{model-messages-BcrkjsPE.js → model-messages-CIHqP7Z3.js} +1 -1
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +331 -79
- package/dist/next/index.js +520 -105
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{operations-BG6prEnh.d.ts → operations-SWpzGC_K.d.ts} +1 -1
- package/dist/{options-D4dxMGHF.js → options-Bgnm4pTD.js} +1 -0
- package/dist/{options-C13-dVMH.js → options-D-jiqb0l.js} +2 -0
- package/dist/{options-DjFbIRgV.js → options-DjdxZgHi.js} +2 -1
- package/dist/{options-CgMiQGOF.js → options-DqmTs2nv.js} +4 -1
- package/dist/{options-C-NFS6e3.js → options-DxgZ8tVc.js} +2 -1
- package/dist/{options-CuPWezcV.js → options-RYbyaVhv.js} +3 -1
- package/dist/options-SOjQVgfS.js +37 -0
- package/dist/{options-JnPEVbBJ.js → options-ScQ6Hnxo.js} +2 -1
- package/dist/{options-Sq4bYbf5.js → options-X61tvckX.js} +4 -1
- package/dist/orpc/index.d.ts +8 -8
- package/dist/orpc/index.js +6 -6
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-7zgh-7nw.d.ts → outbox-BFZS6Kvz.d.ts} +4 -4
- package/dist/{permissions-CoHsUtZS.d.ts → permissions-2UlVQDzY.d.ts} +1 -1
- package/dist/{pool-D-4HyhuW.d.ts → pool-yO-LzZAd.d.ts} +3 -3
- package/dist/{ports-CmEXVqhg.js → ports-CkygVOeE.js} +2 -2
- package/dist/{ports-XvgCe7ey.d.ts → ports-prqYrReN.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-DZtM2nIS.d.ts → postgrest-Bjain6nf.d.ts} +1 -1
- package/dist/powersync/index.d.ts +6 -6
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-om2rbdYw.js → preset-BvHNleCo.js} +2 -2
- package/dist/{project-B7nqCzn5.js → project-CBvowdKY.js} +5 -5
- package/dist/{provider-BI0KC4u5.d.ts → provider-bIAzxVMB.d.ts} +1 -1
- package/dist/{push-token-kcc04ZaS.d.ts → push-token-DtqJeg8w.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/{rate-limit-CRhlLFhP.js → rate-limit-BJ4EMdAy.js} +1 -1
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +3 -3
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +1 -1
- package/dist/react/server.d.ts +9 -9
- package/dist/react/server.js +2 -2
- package/dist/react/session.d.ts +2 -32
- package/dist/react/session.js +1 -37
- package/dist/{react-COIov1yC.js → react-DZ7AW2yf.js} +2 -2
- package/dist/react-router/index.d.ts +6 -6
- package/dist/react-router/index.js +5 -5
- package/dist/realtime/index.d.ts +6 -6
- package/dist/{record-form-DU2EoVsv.d.ts → record-form-BQA-lawE.d.ts} +1 -1
- package/dist/{recordings-D69Va7gP.d.ts → recordings-Bw5LoocX.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refusal-CGi-0Q18.d.ts → refusal-BX1EvmpJ.d.ts} +3 -3
- package/dist/{refusal-5c6UMpUP.js → refusal-rnbr6RZD.js} +2 -2
- package/dist/{refresh-B8t_KE3s.js → request-kind-tNDM5Z_o.js} +15 -31
- package/dist/{resolve--LfVoOMg.d.ts → resolve-BIpQRhvF.d.ts} +97 -36
- package/dist/{resolve-FW8oeXvh.js → resolve-CZV31iCm.js} +402 -392
- package/dist/{resolved-names-DYYyh35i.js → resolved-names-b6P2--jK.js} +1 -1
- package/dist/{resource-BbWk4hoP.js → resource-COaS9_i8.js} +1 -1
- package/dist/{resource-DWllVW8k.d.ts → resource-CaYpB07K.d.ts} +1 -1
- package/dist/{resource-execute-DUBYKTYU.d.ts → resource-execute-A1NbR-sd.d.ts} +2 -2
- package/dist/{resource-types-RgaljPs0.d.ts → resource-types-CTcc37WL.d.ts} +4 -4
- package/dist/{resources-Bki1J4jy.d.ts → resources-13ZFX1G6.d.ts} +2 -2
- package/dist/{resources-DYSx9NYM.js → resources-DhiK3yLO.js} +1 -1
- package/dist/{respond-DLH4tD2d.js → respond-8A3EOo61.js} +1 -1
- package/dist/{respond-BYOV7KZp.d.ts → respond-CAxhkwAi.d.ts} +15 -19
- package/dist/{sales-lines-DuNVoKHA.d.ts → sales-lines-wQHuL-pa.d.ts} +1 -1
- package/dist/{sandboxes-B2hBoBvJ.d.ts → sandboxes-BF9RxxCU.d.ts} +1 -1
- package/dist/{scores-FAORS4qU.d.ts → scores-Ce8MxQX9.d.ts} +5 -5
- package/dist/server/index.d.ts +58 -36
- package/dist/server/index.js +35 -41
- package/dist/{server-types-C2hlvhP4.d.ts → server-types-DEjva0MW.d.ts} +19 -17
- package/dist/{session-B4VasaAA.d.ts → session-BA0YDmjt.d.ts} +11 -12
- package/dist/session-BjPYE4dT.js +180 -0
- package/dist/session-CeYL3EPm.d.ts +77 -0
- package/dist/{session-status-D8CBxCqv.d.ts → session-status-Df6tuKY9.d.ts} +4 -3
- package/dist/{sign-in-CX1a5i2P.d.ts → sign-in-4u4vLtXG.d.ts} +16 -4
- package/dist/{sign-in-CxdoTEp5.js → sign-in-djgvab1X.js} +3 -3
- package/dist/{sign-in-BMm1xhKq.js → sign-in-k2lXELeC.js} +2 -2
- package/dist/{signatures-CBn7w4VR.js → signatures-DK01D2S7.js} +1 -1
- package/dist/{signers-6ih6i9aq.d.ts → signers-Dw9DBZjJ.d.ts} +4 -4
- package/dist/{signing-keys-De09WNJ3.d.ts → signing-keys-FglIQ6iL.d.ts} +2 -2
- package/dist/{signing-keys-BC5_hJN5.js → signing-keys-sGaXklwD.js} +1 -1
- package/dist/{snapshot-CVMSyTHH.js → snapshot-BOA7lkRg.js} +9 -17
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-DdtukoIm.js → sql-BChN3Hxv.js} +7594 -2269
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-CuzAjsc8.d.ts → sso-B7w7h8RJ.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -6
- package/dist/ssr/index.js +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/streams/index.d.ts +1 -1
- package/dist/{subject-readers-BlD8tALG.d.ts → subject-readers-YL8H9G8X.d.ts} +2 -2
- package/dist/{subjects-Bv2dPflD.d.ts → subjects-CVjAE7nz.d.ts} +3 -3
- package/dist/{support-DxYI6sDM.d.ts → support-BwtMgjVg.d.ts} +4 -4
- package/dist/{support-view-DSmCett7.d.ts → support-view-GykHOIQ2.d.ts} +1 -1
- package/dist/svelte/index.d.ts +9 -9
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +7 -7
- package/dist/sveltekit/index.js +5 -5
- package/dist/{tags--k2fbPfO.d.ts → tags-CAfvzA1U.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{tenant-DkKbvK5T.d.ts → tenant-lBgoqg9T.d.ts} +1 -1
- package/dist/testing/index.d.ts +27 -28
- package/dist/testing/index.js +5 -5
- package/dist/{timeline-Bq658xsi.d.ts → timeline-CrO48Qa6.d.ts} +5 -5
- package/dist/{topic-B6zuexk7.d.ts → topic-x-mrN_Ff.d.ts} +5 -5
- package/dist/{types-C8UyJOPJ.d.ts → types-6PMaLIyw.d.ts} +3 -3
- package/dist/{types-Dh2OGEW5.d.ts → types-BdhE7I8Z.d.ts} +5 -5
- package/dist/{types-BkYEUWdz.d.ts → types-BzIYSSWK.d.ts} +16 -1
- package/dist/{types-DCoqai8o.d.ts → types-C7K8mu9B.d.ts} +45 -15
- package/dist/{types-d0JBRTAg.d.ts → types-C9XfFGmA.d.ts} +128 -13
- package/dist/{types-BvHw2cCS.d.ts → types-CJqNGQKb.d.ts} +2 -2
- package/dist/{types-TH3zlMiM.d.ts → types-D5uf0l4_.d.ts} +1 -1
- package/dist/{types-BBqP9H6w.d.ts → types-auvHrNWC.d.ts} +4 -4
- package/dist/{undo-22ofP6Zp.d.ts → undo-CdKp5_2X.d.ts} +2 -2
- package/dist/{usage-CNCT6_3D.d.ts → usage-DZ8j5Tm_.d.ts} +4 -4
- package/dist/{vault-yGQD5Rdl.d.ts → vault-DjbG4XQS.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-sandbox/index.d.ts +2 -2
- package/dist/{verify-DY_j4GPZ.js → verify-96j8d5ps.js} +1 -1
- package/dist/{verify-BQu3eBNW.d.ts → verify-HOiu3lRR.d.ts} +2 -2
- package/dist/{view-BfEqjZJ_.js → view-Ch0Qtr36.js} +1 -1
- package/dist/{view-Cy2XxYp1.d.ts → view-DdDY88SC.d.ts} +1 -1
- package/dist/vue/index.d.ts +10 -10
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-YYSVJGDY.d.ts → watch-topic-D6bcqOrJ.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +29 -5
- package/dist/workflow-sdk/builder/index.js +39 -12
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/index.js +2 -2
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-BL3wzkdp.js → workflow-sdk-CBS8L2Ku.js} +5 -0
- package/dist/{workflow-sdk-yIkECybp.d.ts → workflow-sdk-D3H10W5h.d.ts} +3 -3
- package/dist/{workflows-BljkWRxE.d.ts → workflows-BI4yKqFh.d.ts} +3 -3
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +162 -0
- package/schemas/doctor-report-v1.json +4 -0
- package/skills/better-supabase-auth/SKILL.md +45 -11
- package/dist/cli/add-C13ZqJ_N.js +0 -1
- package/dist/cli/env-UN6PJFX6.js +0 -1
- package/dist/cli/powersync-DoCruiOt.js +0 -1
- package/dist/cli/seed-ByLneY1H.js +0 -1
- package/dist/errors-D3-4c-XF.js +0 -102
- package/dist/http-BDC1IvBX.js +0 -27
- package/dist/jwks-cache-IZaiICAV.js +0 -48
- package/dist/options-Itq7QYoW.js +0 -20
- package/dist/refresh-BtbC2rZe.d.ts +0 -52
- package/dist/snapshot-BGsJw9xn.d.ts +0 -83
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as entityNoun, i as entityNames, n as checkEntityName, s as tenantRename, t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
|
|
2
|
-
import { L as tenantNameOf } from "./instances-
|
|
2
|
+
import { L as tenantNameOf } from "./instances-xQ2lupVE.js";
|
|
3
3
|
// src/config/defaults.ts
|
|
4
4
|
/**
|
|
5
5
|
* Every default `resolveConfig` fills in. Other modules (the SQL module
|
|
@@ -5,7 +5,7 @@ import { n as validate } from "./standard-BD2aOUsf.js";
|
|
|
5
5
|
import { a as methodNotAllowed } from "./problem-C0SVHhd3.js";
|
|
6
6
|
import { n as matchAction, r as planResource, t as TABLE_VERBS } from "./resource-DQ4kIBpa.js";
|
|
7
7
|
import { a as isRequestMemo, n as checkEach, r as checkPermission } from "./authorizer-BtIPDO-c.js";
|
|
8
|
-
import { a as isResult, o as respond } from "./respond-
|
|
8
|
+
import { a as isResult, o as respond } from "./respond-8A3EOo61.js";
|
|
9
9
|
// src/server/resource-execute.ts
|
|
10
10
|
async function settled(value) {
|
|
11
11
|
return await value;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ft as TableMeta, qt as AuthorizationIntent } from "./types-BzIYSSWK.js";
|
|
2
2
|
import { D as ResourceOperation, O as SecurityRequirement, i as JsonObject, k as TableVerb } from "./model-Lxa_mOzB.js";
|
|
3
3
|
/** A Standard Schema, or anything else that might carry `~standard`. */
|
|
4
4
|
interface StandardLike {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ResourceActionSpec } from "./resource-
|
|
2
|
-
import { i as ResourceContext, n as Parsed, r as ResourceAction, t as ActionArgs } from "./resource-types-
|
|
1
|
+
import { n as ResourceActionSpec } from "./resource-CaYpB07K.js";
|
|
2
|
+
import { i as ResourceContext, n as Parsed, r as ResourceAction, t as ActionArgs } from "./resource-types-CTcc37WL.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
/**
|
|
5
5
|
* Defines an action and types its handler's `data` and `query` from the
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { D as ValidationIssue, f as Result } from "./result-DTOQRyGY.js";
|
|
2
|
-
import {
|
|
3
|
-
import { Gt as SelectArg } from "./define-
|
|
4
|
-
import { a as RespondOptions } from "./respond-
|
|
2
|
+
import { It as RequestContext, at as Row, dt as TableKey, ft as TableMeta, gt as Update, k as AnyModels, q as Insert } from "./types-BzIYSSWK.js";
|
|
3
|
+
import { Gt as SelectArg } from "./define-BvkaC3Oh.js";
|
|
4
|
+
import { a as RespondOptions } from "./respond-CAxhkwAi.js";
|
|
5
5
|
import { D as ResourceOperation, k as TableVerb } from "./model-Lxa_mOzB.js";
|
|
6
|
-
import { a as ResourcePlan, i as ResourcePagination, n as ResourceActionSpec, r as ResourceDescription } from "./resource-
|
|
6
|
+
import { a as ResourcePlan, i as ResourcePagination, n as ResourceActionSpec, r as ResourceDescription } from "./resource-CaYpB07K.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
/** What a resource needs from `defineListQuery`. */
|
|
9
9
|
interface ResourceList {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as ResourceRouteOptions } from "./resource-types-
|
|
1
|
+
import { dt as TableKey, k as AnyModels } from "./types-BzIYSSWK.js";
|
|
2
|
+
import { l as ResourceRouteOptions } from "./resource-types-CTcc37WL.js";
|
|
3
3
|
/** Resources by table name; `true` serves a table with the defaults. */
|
|
4
4
|
type ResourceMap<M extends AnyModels, Ref = string, DbT = unknown> = { readonly [T in TableKey<M>]?: ResourceRouteOptions<M, T, Ref, DbT> | true; };
|
|
5
5
|
export { ResourceMap as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as dbError } from "./errors-B7tCfCvX.js";
|
|
2
2
|
import { o as problemResponse } from "./problem-C0SVHhd3.js";
|
|
3
|
-
import { n as actionFits, t as defineResource } from "./resource-
|
|
3
|
+
import { n as actionFits, t as defineResource } from "./resource-COaS9_i8.js";
|
|
4
4
|
// src/server/resources.ts
|
|
5
5
|
function split(path) {
|
|
6
6
|
return path.split("/").filter((segment) => segment !== "");
|
|
@@ -3,7 +3,7 @@ import { s as toDbError } from "./result-8xza7w5W.js";
|
|
|
3
3
|
import { o as problemResponse } from "./problem-C0SVHhd3.js";
|
|
4
4
|
import { n as jsonResponse } from "./json-O5vFw243.js";
|
|
5
5
|
import { i as delegationOf, n as actorOf } from "./actor-B5b0i1Fs.js";
|
|
6
|
-
import { s as checkAal, t as isAnonymousUser } from "./view-
|
|
6
|
+
import { s as checkAal, t as isAnonymousUser } from "./view-Ch0Qtr36.js";
|
|
7
7
|
// src/server/respond.ts
|
|
8
8
|
/**
|
|
9
9
|
* Refuses `cookies: false` with a `refresh` policy at setup: a refresh reads
|
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
import { b as DbError } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { r as AuthState } from "./resolve
|
|
2
|
+
import { r as AuthState } from "./resolve-BIpQRhvF.js";
|
|
3
3
|
import { t as Aal } from "./mfa-CM5r904M.js";
|
|
4
4
|
/**
|
|
5
5
|
* A router or browser prefetch, by its request headers: Next.js route and
|
|
6
6
|
* segment prefetches (`next-router-prefetch`, `next-router-segment-prefetch`),
|
|
7
7
|
* Next's middleware prefetch (`x-middleware-prefetch`), and browser and
|
|
8
8
|
* speculation-rules prefetches (`purpose`, `sec-purpose`, `x-moz`).
|
|
9
|
+
*
|
|
10
|
+
* Next.js strips its router headers before `proxy.ts` runs, so there it only
|
|
11
|
+
* sees the browser's; Playwright and server code that reads the original
|
|
12
|
+
* request see them all.
|
|
9
13
|
*/
|
|
10
14
|
declare function isPrefetch(request: Request): boolean;
|
|
11
15
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* session as it is, so a burst of parallel requests never races on the
|
|
16
|
-
* single-use refresh token.
|
|
16
|
+
* A top-level page load: a `GET` the browser sends with `sec-fetch-dest:
|
|
17
|
+
* document`, else one that accepts HTML and is not an RSC request. Never a
|
|
18
|
+
* prefetch, a client navigation, a `fetch` call or a mutation.
|
|
17
19
|
*/
|
|
18
|
-
declare function
|
|
20
|
+
declare function isDocumentLoad(request: Request): boolean;
|
|
19
21
|
/**
|
|
20
|
-
* Whether a request
|
|
21
|
-
* (`verifySession`): full page loads, and `paths` you list for client
|
|
22
|
-
* navigations. Never prefetches or mutations.
|
|
23
|
-
*/
|
|
24
|
-
declare function shouldCheckSession(request: Request, paths?: readonly string[]): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* When a session entry refreshes: always, never, on navigations, or a
|
|
22
|
+
* Whether a request may refresh an expired session: always, never, or a
|
|
27
23
|
* predicate.
|
|
28
24
|
*/
|
|
29
|
-
type RefreshPolicy = boolean |
|
|
30
|
-
/** `policy` for one request. */
|
|
25
|
+
type RefreshPolicy = boolean | ((request: Request) => boolean);
|
|
26
|
+
/** `policy` for one request; `undefined` when no policy is set. */
|
|
31
27
|
declare function refreshFor(policy: RefreshPolicy | undefined, request: Request): boolean | undefined;
|
|
32
28
|
type AuthKind = AuthState["kind"];
|
|
33
29
|
/**
|
|
@@ -63,8 +59,8 @@ interface GuardOptions {
|
|
|
63
59
|
interface MiddlewareOptions extends GuardOptions {
|
|
64
60
|
/**
|
|
65
61
|
* Refresh an expired cookie session and send the new cookies. Only for routes
|
|
66
|
-
* browsers call with cookies; bearer tokens never refresh.
|
|
67
|
-
*
|
|
62
|
+
* browsers call with cookies; bearer tokens never refresh. Parallel requests
|
|
63
|
+
* share one token refresh, so every request may refresh.
|
|
68
64
|
*/
|
|
69
65
|
readonly refresh?: RefreshPolicy;
|
|
70
66
|
/**
|
|
@@ -105,4 +101,4 @@ interface RespondOptions {
|
|
|
105
101
|
* Problem Details.
|
|
106
102
|
*/
|
|
107
103
|
declare function respond(run: () => unknown, options?: RespondOptions): Promise<Response>;
|
|
108
|
-
export { RespondOptions as a, isResult as c, RefreshPolicy as d,
|
|
104
|
+
export { RespondOptions as a, isResult as c, RefreshPolicy as d, isDocumentLoad as f, MiddlewareOptions as i, respond as l, refreshFor as m, AuthKind as n, Settled as o, isPrefetch as p, GuardOptions as r, guard as s, AllowedCaller as t, settle as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
|
-
import { _ as JobHandler } from "./types-
|
|
3
|
+
import { _ as JobHandler } from "./types-BdhE7I8Z.js";
|
|
4
4
|
type AiSandboxStatus = "running" | "stopping" | "stopped";
|
|
5
5
|
interface AiSandbox {
|
|
6
6
|
readonly id: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
|
-
import {
|
|
3
|
+
import { et as RecordRef } from "./types-BzIYSSWK.js";
|
|
4
4
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
5
|
-
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-
|
|
6
|
-
import { t as BlockTransport } from "./block-transport-
|
|
7
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
8
|
-
import { h as FilterQuery } from "./filter-query-
|
|
5
|
+
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
|
|
6
|
+
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
7
|
+
import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
|
|
8
|
+
import { h as FilterQuery } from "./filter-query-Xj40B5KT.js";
|
|
9
9
|
interface ScoresOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
10
10
|
readonly transport: BlockTransport;
|
|
11
11
|
/**
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { $t as
|
|
3
|
-
import { Ct as Events, lt as SupportEventData } from "../events-
|
|
4
|
-
import { E as
|
|
5
|
-
import { n as SqlClient } from "../executor-
|
|
2
|
+
import { $t as AuthorizationSubject, Gt as AuthorizationChange, It as RequestContext, Jt as AuthorizationOutcome, Kt as AuthorizationContext, O as AnyFunctions, Qt as AuthorizationResourceSource, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, an as bindAuthorizer, dt as TableKey, en as Authorizer, in as RequestMemo, k as AnyModels, nn as AuthzVersionCache, on as defineAuthorizer, qt as AuthorizationIntent, rn as PermissionRef, sn as requestMemo, tn as AuthorizerRuntime } from "../types-BzIYSSWK.js";
|
|
3
|
+
import { Ct as Events, lt as SupportEventData } from "../events-DCw3c6pj.js";
|
|
4
|
+
import { E as StoredSession, S as CookieRecord, _ as issuedAtOf, a as ResolveAuthOptions, b as snapshotOf, c as SessionRejection, d as SessionMemo, f as SessionMemoOptions, g as isSessionSnapshot, h as authzVersionOf, i as InvalidReason, j as sessionCookieName, k as readSession, l as clientIp, m as SessionSnapshot, n as AuthResolver, p as SessionMemoStats, r as AuthState, s as ResolvedState, t as AuthResolution, u as resolveAuth, v as sessionCacheKey, w as CookieWrite, x as CookieOptions, y as sessionMemo } from "../resolve-BIpQRhvF.js";
|
|
5
|
+
import { n as SqlClient } from "../executor-DoSNec_H.js";
|
|
6
6
|
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-DseNR02I.js";
|
|
7
7
|
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
|
|
8
|
-
import { G as permissionCapOf } from "../types-
|
|
8
|
+
import { G as permissionCapOf } from "../types-BdhE7I8Z.js";
|
|
9
9
|
import { a as ProblemFormat, 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-NGBjN-TO.js";
|
|
10
|
-
import { Y as DbStats, t as BetterSupabase, y as Db } from "../define-
|
|
11
|
-
import { j as StorageApi } from "../bucket-
|
|
12
|
-
import { a as authzVersionOf, c as sessionCacheKey, i as SessionSnapshot, l as sessionMemo, n as SessionMemoOptions, o as isSessionSnapshot, r as SessionMemoStats, s as issuedAtOf, t as SessionMemo, u as snapshotOf } from "../snapshot-BGsJw9xn.js";
|
|
10
|
+
import { Y as DbStats, t as BetterSupabase, y as Db } from "../define-BvkaC3Oh.js";
|
|
11
|
+
import { j as StorageApi } from "../bucket-CrsJNHzi.js";
|
|
13
12
|
import { n as Impersonator, r as impersonatorOf, t as ImpersonationOptions } from "../impersonation-BOCJcsmS.js";
|
|
14
13
|
import { a as checkAal, i as amrOf, n as AmrEntry, r as aalOf, t as Aal } from "../mfa-CM5r904M.js";
|
|
15
|
-
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-
|
|
16
|
-
import { c as RealtimeClient } from "../topic-
|
|
17
|
-
import { i as decodeEntitlementClaim, o as ClaimsRecord, s as ClaimsSource } from "../entitlements-
|
|
18
|
-
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-
|
|
19
|
-
import { a as isUserSession, i as isApiKeySession, n as AuthSession, o as toSession, r as UserSession, t as ApiKeySession } from "../view-
|
|
20
|
-
import { C as DeleteAccountOptions, S as LiteDriver, T as deleteAccount, _ as lastSignIns, a as ForContextOptions, b as PRIMARY_COOKIE, c as ServerKeys, d as TENANT_HEADER, f as EndSessionsResult, g as endSessions, h as SuspendAccountResult, i as ContextOptions, l as ServerOptions, m as SuspendAccountOptions, n as ApprovalOptions, o as ServerContext, p as LastSignIn, r as BetterServer, s as ServerDbOptions, t as AdminDb, v as suspendAccount, w as DeleteAccountResult, x as ReplicaState, y as RequestIdOptions } from "../server-types-
|
|
21
|
-
import { C as SupportSessionStore, E as supportClaims, S as SupportSession, T as sqlSupportStore, _ as SupportCallerClaims, a as SupportPolicy, b as SupportRequest, c as supportSessions, d as clearSupportCookie, f as supportCookie, g as SupportApprover, h as SupportApprovalQuery, i as SupportOptions, l as SUPPORT_COOKIE, m as SqlSupportStoreOptions, n as SupportApi, o as SupportSessions, p as supportCookieValue, r as SupportExpireRouteOptions, s as SupportStartRequest, t as ActiveSupport, u as SupportCookieOptions, v as SupportEndedBy, w as SupportStartInput, x as SupportRequestInput, y as SupportListFilter } from "../support-
|
|
22
|
-
import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-
|
|
23
|
-
import { a as RespondOptions, c as isResult, d as RefreshPolicy, f as
|
|
24
|
-
import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-
|
|
25
|
-
import { a as AuthorizedContext, c as ResourceLoaderContext, d as rolesAt, i as AuthorizeOptions, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions, u as hasRole } from "../kit-
|
|
26
|
-
import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-
|
|
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-C0GfMvFm.js";
|
|
15
|
+
import { c as RealtimeClient } from "../topic-x-mrN_Ff.js";
|
|
16
|
+
import { i as decodeEntitlementClaim, o as ClaimsRecord, s as ClaimsSource } from "../entitlements-Dhu-4vlH.js";
|
|
17
|
+
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-2UlVQDzY.js";
|
|
18
|
+
import { a as isUserSession, i as isApiKeySession, n as AuthSession, o as toSession, r as UserSession, t as ApiKeySession } from "../view-DdDY88SC.js";
|
|
19
|
+
import { C as DeleteAccountOptions, S as LiteDriver, T as deleteAccount, _ as lastSignIns, a as ForContextOptions, b as PRIMARY_COOKIE, c as ServerKeys, d as TENANT_HEADER, f as EndSessionsResult, g as endSessions, h as SuspendAccountResult, i as ContextOptions, l as ServerOptions, m as SuspendAccountOptions, n as ApprovalOptions, o as ServerContext, p as LastSignIn, r as BetterServer, s as ServerDbOptions, t as AdminDb, v as suspendAccount, w as DeleteAccountResult, x as ReplicaState, y as RequestIdOptions } from "../server-types-DEjva0MW.js";
|
|
20
|
+
import { C as SupportSessionStore, E as supportClaims, S as SupportSession, T as sqlSupportStore, _ as SupportCallerClaims, a as SupportPolicy, b as SupportRequest, c as supportSessions, d as clearSupportCookie, f as supportCookie, g as SupportApprover, h as SupportApprovalQuery, i as SupportOptions, l as SUPPORT_COOKIE, m as SqlSupportStoreOptions, n as SupportApi, o as SupportSessions, p as supportCookieValue, r as SupportExpireRouteOptions, s as SupportStartRequest, t as ActiveSupport, u as SupportCookieOptions, v as SupportEndedBy, w as SupportStartInput, x as SupportRequestInput, y as SupportListFilter } from "../support-BwtMgjVg.js";
|
|
21
|
+
import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-BA0YDmjt.js";
|
|
22
|
+
import { a as RespondOptions, c as isResult, d as RefreshPolicy, f as isDocumentLoad, i as MiddlewareOptions, l as respond, m as refreshFor, n as AuthKind, o as Settled, p as isPrefetch, r as GuardOptions, s as guard, u as settle } from "../respond-CAxhkwAi.js";
|
|
23
|
+
import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-B-oAH16L.js";
|
|
24
|
+
import { a as AuthorizedContext, c as ResourceLoaderContext, d as rolesAt, i as AuthorizeOptions, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions, u as hasRole } from "../kit-DCuO1ZhB.js";
|
|
25
|
+
import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-YL8H9G8X.js";
|
|
27
26
|
import { i as toCsv, n as csvColumns, t as CsvOptions } from "../csv-Dd1iKsk-.js";
|
|
28
27
|
import { i as JwsAlgorithm, n as Jwks, r as JwksOfOptions } from "../jws-CxgTsbgG.js";
|
|
29
|
-
import { i as ResourcePagination } from "../resource-
|
|
30
|
-
import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-
|
|
31
|
-
import { a as claimsFingerprint, i as SessionWatchStatus, n as SessionStatusRouteOptions, o as sessionStatusRoute, r as SessionStatusServer, t as SessionStatusBody } from "../session-status-
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { n as
|
|
36
|
-
import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-NC_ZesY4.js";
|
|
28
|
+
import { i as ResourcePagination } from "../resource-CaYpB07K.js";
|
|
29
|
+
import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-CTcc37WL.js";
|
|
30
|
+
import { a as claimsFingerprint, i as SessionWatchStatus, n as SessionStatusRouteOptions, o as sessionStatusRoute, r as SessionStatusServer, t as SessionStatusBody } from "../session-status-Df6tuKY9.js";
|
|
31
|
+
import { a as PasswordGrantOptions, c as safeRedirectPath, s as passwordGrant } from "../sign-in-4u4vLtXG.js";
|
|
32
|
+
import { i as tagFor, n as cacheTagsOf, r as tagCache, t as TagOptions } from "../tags-CAfvzA1U.js";
|
|
33
|
+
import { n as supportOf, t as SupportView } from "../support-view-GykHOIQ2.js";
|
|
34
|
+
import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-iq2wp8fc.js";
|
|
37
35
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
38
36
|
import { Middleware, SingleKeyEntry } from "@supabase/middleware";
|
|
39
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
40
37
|
import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
|
|
38
|
+
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
41
39
|
import { PostgresApi } from "@supabase/server/middleware/postgres";
|
|
42
40
|
interface CsvResponseOptions extends CsvOptions {
|
|
43
41
|
/** The download name, such as `invoices.csv`. */
|
|
@@ -529,12 +527,20 @@ interface SubscribeAuthzVersionsOptions {
|
|
|
529
527
|
* `realtime.messages` policy, so no user can listen.
|
|
530
528
|
*/
|
|
531
529
|
readonly client: AuthzVersionClient;
|
|
532
|
-
/**
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
530
|
+
/**
|
|
531
|
+
* The private channel the database trigger sends on. Defaults to
|
|
532
|
+
* `AUTHZ_TOPIC`, the topic of the sessions module's `authzVersions` option. A
|
|
533
|
+
* per-user `authz:<uid>` topic evicts that user when the payload names no
|
|
534
|
+
* one.
|
|
535
|
+
*/
|
|
536
|
+
readonly topic?: string;
|
|
537
|
+
/** The broadcast event name the trigger uses. Defaults to `"changed"`. */
|
|
538
|
+
readonly event?: string;
|
|
539
|
+
/**
|
|
540
|
+
* The payload key holding the user id whose authorization changed. Defaults
|
|
541
|
+
* to `"user_id"`.
|
|
542
|
+
*/
|
|
543
|
+
readonly userIdKey?: string;
|
|
538
544
|
/** The app's module-scope cache; each message evicts one user. */
|
|
539
545
|
readonly versions: AuthzVersionCache;
|
|
540
546
|
/** Called for a malformed message, a failed eviction or a channel error. */
|
|
@@ -554,6 +560,13 @@ interface AuthzVersionSubscription {
|
|
|
554
560
|
*
|
|
555
561
|
* ```ts
|
|
556
562
|
* export const versions = createVersionCache();
|
|
563
|
+
* subscribeAuthzVersions({ client: serviceClient, versions });
|
|
564
|
+
* ```
|
|
565
|
+
*
|
|
566
|
+
* With the sessions module's `authzVersions` option the defaults match the
|
|
567
|
+
* generated trigger. Pass `topic`, `event` and `userIdKey` for your own.
|
|
568
|
+
*
|
|
569
|
+
* ```ts
|
|
557
570
|
* subscribeAuthzVersions({
|
|
558
571
|
* client: serviceClient,
|
|
559
572
|
* topic: "authz-versions",
|
|
@@ -564,6 +577,15 @@ interface AuthzVersionSubscription {
|
|
|
564
577
|
* ```
|
|
565
578
|
*/
|
|
566
579
|
export declare function subscribeAuthzVersions(options: SubscribeAuthzVersionsOptions): AuthzVersionSubscription;
|
|
580
|
+
/**
|
|
581
|
+
* The private Realtime topic the sessions module's `authzVersions` option
|
|
582
|
+
* broadcasts on for servers. Only the service role reads it.
|
|
583
|
+
*/
|
|
584
|
+
export declare const AUTHZ_TOPIC = "better_supabase:authz";
|
|
585
|
+
/** The broadcast event both authorization topics use. */
|
|
586
|
+
export declare const AUTHZ_EVENT = "changed";
|
|
587
|
+
/** The private topic a signed-in user reads their own version changes on. */
|
|
588
|
+
export declare function authzUserTopic(userId: string): string;
|
|
567
589
|
/**
|
|
568
590
|
* Operations over one table, matching the paths and responses of the API model:
|
|
569
591
|
* `GET/POST /<table>`, `GET/PATCH/DELETE /<table>/{id}` and each action's path.
|
|
@@ -608,4 +630,4 @@ export declare function withDbStats(options?: {
|
|
|
608
630
|
stats(): DbStats;
|
|
609
631
|
};
|
|
610
632
|
}, () => DbStats>;
|
|
611
|
-
export { AUTHZ_VERSION_CLAIM,
|
|
633
|
+
export { AUTHZ_VERSION_CLAIM, type Aal, type AccessTokenResolverOptions, type AccessTokenRevocation, type AccountEventType, type ActClaim, type ActionResult, type ActiveSupport, type ActorOutcome, type AdminDb, type AgentActOptions, type AmrEntry, type AnyAuthorizer, type ApiKeySession, type ApprovalOptions, type ApprovalRequestRef, type Approver, type ApproverOf, type AuthKind, type AuthOutageHook, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type AuthorizationCallKind, type AuthorizationChange, type AuthorizationContext, type AuthorizationHooks, type AuthorizationIntent, type AuthorizationOutcome, type AuthorizationPurpose, type AuthorizationRequest, type AuthorizationResource, type AuthorizationResourceSource, type AuthorizationSubject, type AuthorizeOptions, type AuthorizedContext, type Authorizer, type AuthorizerRuntime, type AuthzVersionCache, type AuthzVersionChannel, type AuthzVersionClient, type AuthzVersionSubscription, type AutomationHooks, type AutomationRef, type BetterServer, type BetterSupabaseConfig, type BetterSupabaseContributions, type BetterSupabaseEntry, type BlockActionOptions, type BlockRequireOptions, type ChatAction, type ChatActionHook, type ClaimsRecord, type ClaimsSource, type ClearSessionCookiesOptions, type ContextOptions, type CookieOptions, type CookieRecord, type CookieWrite, type CsvOptions, type CsvResponseOptions, type DelegationPermissions, type DelegationRef, type DeleteAccountOptions, type DeleteAccountResult, type EndSessionsResult, FEATURES_CLAIM, type ForContextOptions, type GuardEntryConfig, type GuardOptions, type HandleOptions, IDENTITY_SCOPES, type IdentityRef, type IdentityTarget, type ImpersonationEvents, type ImpersonationOptions, type Impersonator, type InvalidReason, type LastSignIn, type LiteDriver, MEMBERSHIPS_CLAIM, type MiddlewareOptions, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, PRIMARY_COOKIE, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PasswordGrantOptions, type PermissionRef, type PermissionsOfOptions, type PrincipalByIdentity, type ProblemDetails, type ProblemOptions, type ProblemResponseOptions, type RateLimitPolicy, type RateLimitState, type RealtimeRelayOptions, type RefreshPolicy, type RelayAccessInput, type RelayAuthorize, type RelayEndReason, type RelayPostgres, type RelayServer, type RelayTopic, type ReplicaState, type RequestIdOptions, type RequestMemo, type ResolveAuthOptions, type ResolvedState, type ResourceHandler, type ResourceInput, type ResourceList, type ResourceLoaderContext, type ResourcePagination, type ResourceRouteOptions, type RespondOptions, SUPPORT_COOKIE, type ServerContext, type ServerCore, type ServerDbOptions, type ServerOptions, type ServerTiming, type SessionActor, type SessionDelegation, type SessionEntryConfig, type SessionLookup, type SessionMemo, type SessionMemoOptions, type SessionMemoStats, type SessionRejection, type SessionSnapshot, type SessionStatus, type SessionStatusBody, type SessionStatusOptions, type SessionStatusRouteOptions, type SessionStatusServer, type SessionWatchStatus, type Settled, type SqlSupportStoreOptions, type StoredSession, type SubjectReadersOptions, type SubscribeAuthzVersionsOptions, type Subscriber, type SubscriberEvent, type SubscriberPolicy, type SupabaseAuthContext, type SupportApi, type SupportApprovalQuery, type SupportApprover, type SupportAuthorize, type SupportAuthorizeInput, type SupportCallerClaims, type SupportCookieOptions, type SupportDecision, type SupportEndedBy, type SupportExpireRouteOptions, type SupportListFilter, type SupportOptions, type SupportPolicy, type SupportRequest, type SupportRequestInput, type SupportSession, type SupportSessionStore, type SupportSessions, type SupportStartInput, type SupportStartRequest, type SupportStorageOptions, type SupportView, type SuspendAccountOptions, type SuspendAccountResult, TENANT_HEADER, type TagOptions, type TicketSubject, type UserSession, aalOf, actorOf, agentClaims, amrOf, authContext, authzVersionOf, bindAuthorizer, cacheTagsOf, checkAal, claimsFingerprint, clearSessionCookies, clearSupportCookie, clientIp, csvColumns, decodeEntitlementClaim, defineAuthorizationHooks, defineAuthorizer, delegationOf, deleteAccount, endSessions, fromProblem, guard, hasRole, impersonatorOf, isApiKeySession, isDocumentLoad, isPrefetch, isProblem, isResult, isSessionSnapshot, isTruncated, isUserSession, issuedAtOf, lastSignIns, passwordGrant, permissionCapOf, permissionsOf, problemResponse, readSession, refreshFor, requestMemo, resolveAuth, respond, rolesAt, safeRedirectPath, serverCore, sessionCacheKey, sessionCookieName, sessionMemo, sessionStatus, sessionStatusRoute, settle, snapshotOf, sqlSupportStore, subjectReaders, supportClaims, supportCookie, supportCookieValue, supportOf, supportSessions, suspendAccount, tagCache, tagFor, toCsv, toProblem, toSession, withBetterSupabase, withGuard, withSession };
|
package/dist/server/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { n as dbError } from "../errors-B7tCfCvX.js";
|
|
2
2
|
import { n as isRecord } from "../guards-CsRa6v57.js";
|
|
3
|
-
import { t as base64ToText } from "../base64-
|
|
3
|
+
import { t as base64ToText } from "../base64-CEBz6-Jj.js";
|
|
4
4
|
import { n as validate } from "../standard-BD2aOUsf.js";
|
|
5
5
|
import { c as toProblem, i as isProblem, n as PROBLEM_TYPE_BASE, o as problemResponse, r as fromProblem, t as PROBLEM_CONTENT_TYPE } from "../problem-C0SVHhd3.js";
|
|
6
6
|
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../claim-names-BKig1LOk.js";
|
|
7
|
+
import { n as AUTHZ_TOPIC, r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D7fPUY4P.js";
|
|
7
8
|
import { n as event, t as defineEvents } from "../event-map-DxfsFgQT.js";
|
|
8
9
|
import { i as delegationOf, n as actorOf, r as agentClaims, t as IDENTITY_SCOPES } from "../actor-B5b0i1Fs.js";
|
|
9
10
|
import { i as userContext, r as impersonatorOf } from "../impersonation-D-quM36V.js";
|
|
@@ -12,28 +13,28 @@ import { t as joinTopic } from "../channels-BxeTTtCY.js";
|
|
|
12
13
|
import { o as permissionCapOf } from "../delegation-C2rLpkHO.js";
|
|
13
14
|
import { t as decodeEntitlementClaim } from "../entitlements-Dydkg-TV.js";
|
|
14
15
|
import { r as permissionsOf, t as isTruncated } from "../permissions-BDt27oYF.js";
|
|
15
|
-
import { a as sessionCacheKey, i as issuedAtOf, n as authzVersionOf, o as sessionMemo, r as isSessionSnapshot, s as snapshotOf } from "../snapshot-
|
|
16
|
-
import { a as aalOf, i as toSession, n as isApiKeySession, o as amrOf, r as isUserSession, s as checkAal } from "../view-
|
|
16
|
+
import { a as sessionCacheKey, i as issuedAtOf, n as authzVersionOf, o as sessionMemo, r as isSessionSnapshot, s as snapshotOf } from "../snapshot-BOA7lkRg.js";
|
|
17
|
+
import { a as aalOf, i as toSession, n as isApiKeySession, o as amrOf, r as isUserSession, s as checkAal } from "../view-Ch0Qtr36.js";
|
|
17
18
|
import "../claims/index.js";
|
|
18
19
|
import { r as toCsv, t as csvColumns } from "../csv-Bwn9insJ.js";
|
|
19
|
-
import { C as SERVER_EVENT_SOURCE, D as deleteAccount, E as suspendAccount, S as defineAuthorizationHooks, T as lastSignIns, a as unexpectedResponse, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, w as endSessions, x as serverCore, y as withSession } from "../adapter-
|
|
20
|
-
import {
|
|
20
|
+
import { C as SERVER_EVENT_SOURCE, D as deleteAccount, E as suspendAccount, S as defineAuthorizationHooks, T as lastSignIns, a as unexpectedResponse, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, w as endSessions, x as serverCore, y as withSession } from "../adapter-ddQ9Hzka.js";
|
|
21
|
+
import { a as PRIMARY_COOKIE, n as isPrefetch, r as refreshFor, t as isDocumentLoad } from "../request-kind-tNDM5Z_o.js";
|
|
21
22
|
import { t as authContext } from "../context-DSevnLrT.js";
|
|
22
|
-
import {
|
|
23
|
+
import { c as verifyCompact, t as JwsError } from "../jws-De9qjIPV.js";
|
|
24
|
+
import { t as jwksSource } from "../jwks-cache-CBKtICNV.js";
|
|
25
|
+
import { a as sessionStatus, d as sessionCookieName, i as clearSessionCookies, l as readSession, r as resolveAuth, t as clientIp } from "../resolve-CZV31iCm.js";
|
|
23
26
|
import { i as defineAuthorizer, s as requestMemo, t as bindAuthorizer } from "../authorizer-BtIPDO-c.js";
|
|
24
|
-
import { a as isResult, i as guard, o as respond, s as settle } from "../respond-
|
|
25
|
-
import { d as safeRedirectPath, f as supportSessions, m as supportClaims, p as sqlSupportStore, s as passwordGrant } from "../sign-in-
|
|
27
|
+
import { a as isResult, i as guard, o as respond, s as settle } from "../respond-8A3EOo61.js";
|
|
28
|
+
import { d as safeRedirectPath, f as supportSessions, m as supportClaims, p as sqlSupportStore, s as passwordGrant } from "../sign-in-k2lXELeC.js";
|
|
26
29
|
import { t as subjectReaders } from "../subject-readers-BARV5rNp.js";
|
|
27
30
|
import { t as postgresExecutor } from "../executor-Dc4Pl44u.js";
|
|
28
31
|
import { n as jwtClaimsOf, r as userClaimsOf, t as authModeOf } from "../claims-DouHL7ZL.js";
|
|
29
|
-
import { n as withGuard, t as withBetterSupabase } from "../composite-
|
|
30
|
-
import { c as verifyCompact, t as JwsError } from "../jws-B8p0ppgh.js";
|
|
31
|
-
import { t as jwksSource } from "../jwks-cache-IZaiICAV.js";
|
|
32
|
+
import { n as withGuard, t as withBetterSupabase } from "../composite-BidYZWZY.js";
|
|
32
33
|
import { i as rateLimitPolicyHeader, n as periodSeconds, r as rateLimitHeader, t as isRateLimitPolicyName } from "../ratelimit-headers-CpB-cDD6.js";
|
|
33
|
-
import { t as defineResource } from "../resource-
|
|
34
|
+
import { t as defineResource } from "../resource-COaS9_i8.js";
|
|
34
35
|
import { i as withServerTiming, n as parseDbStats, r as withDbStats, t as DB_CALLS_HEADER } from "../timing-B6yHayKA.js";
|
|
35
36
|
import { n as tagCache, r as tagFor, t as cacheTagsOf } from "../tags-CW-KvjdL.js";
|
|
36
|
-
import { a as rolesAt, r as hasRole } from "../kit-
|
|
37
|
+
import { a as rolesAt, r as hasRole } from "../kit-D5rRAKWJ.js";
|
|
37
38
|
import { defineMiddleware } from "@supabase/middleware";
|
|
38
39
|
// src/server/csv.ts
|
|
39
40
|
function disposition(filename) {
|
|
@@ -119,7 +120,7 @@ const statusOf = (resolution) => {
|
|
|
119
120
|
* ```
|
|
120
121
|
*/
|
|
121
122
|
function sessionStatusRoute(server, options = {}) {
|
|
122
|
-
const verifySession = options.verifySession ??
|
|
123
|
+
const verifySession = options.verifySession ?? false;
|
|
123
124
|
const refresh = options.refresh ?? false;
|
|
124
125
|
return async (request) => {
|
|
125
126
|
if (request.method !== "GET" && request.method !== "HEAD") return new Response(null, {
|
|
@@ -558,7 +559,6 @@ const RESERVED = /* @__PURE__ */ new Set([
|
|
|
558
559
|
]);
|
|
559
560
|
const TYPES = /* @__PURE__ */ new Set(["at+jwt", "application/at+jwt"]);
|
|
560
561
|
const BEARER = /^Bearer\s+([\w.~+/-]+=*)\s*$/i;
|
|
561
|
-
const MEMO_SIZE = 256;
|
|
562
562
|
function headerOf(token) {
|
|
563
563
|
const part = token.split(".", 1)[0];
|
|
564
564
|
if (!part || token.split(".").length !== 3) return;
|
|
@@ -679,21 +679,9 @@ function accessTokenResolver(options) {
|
|
|
679
679
|
...options.fetch ? { fetch: options.fetch } : {},
|
|
680
680
|
...options.now ? { now: options.now } : {}
|
|
681
681
|
});
|
|
682
|
-
const memo = /* @__PURE__ */ new Map();
|
|
683
682
|
const seconds = () => Math.floor((options.now ?? Date.now)() / 1e3);
|
|
684
683
|
const verify = async (token) => {
|
|
685
684
|
const now = seconds();
|
|
686
|
-
const hit = memo.get(token);
|
|
687
|
-
if (hit) {
|
|
688
|
-
memo.delete(token);
|
|
689
|
-
if (hit.expiresAt + (options.clockSkew ?? 30) > now) {
|
|
690
|
-
memo.set(token, hit);
|
|
691
|
-
return {
|
|
692
|
-
ok: true,
|
|
693
|
-
verified: hit
|
|
694
|
-
};
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
685
|
let payload;
|
|
698
686
|
for (const refresh of [false, true]) {
|
|
699
687
|
const set = await keys(refresh);
|
|
@@ -722,12 +710,9 @@ function accessTokenResolver(options) {
|
|
|
722
710
|
};
|
|
723
711
|
const checked = checkClaims(payload, options, now);
|
|
724
712
|
if (!checked.ok) return checked;
|
|
725
|
-
const verified = verifiedOf(checked.payload, options);
|
|
726
|
-
memo.set(token, verified);
|
|
727
|
-
if (memo.size > MEMO_SIZE) memo.delete(memo.keys().next().value);
|
|
728
713
|
return {
|
|
729
714
|
ok: true,
|
|
730
|
-
verified
|
|
715
|
+
verified: verifiedOf(checked.payload, options)
|
|
731
716
|
};
|
|
732
717
|
};
|
|
733
718
|
return {
|
|
@@ -741,10 +726,7 @@ function accessTokenResolver(options) {
|
|
|
741
726
|
if (options.revocation) {
|
|
742
727
|
const revoked = await options.revocation.isRevoked(verified.jti, verified.grantId);
|
|
743
728
|
if (!revoked.ok) return revocationError(revoked.error);
|
|
744
|
-
if (revoked.data)
|
|
745
|
-
memo.delete(token);
|
|
746
|
-
return invalid("ACCESS_TOKEN_REVOKED", "The access token was revoked");
|
|
747
|
-
}
|
|
729
|
+
if (revoked.data) return invalid("ACCESS_TOKEN_REVOKED", "The access token was revoked");
|
|
748
730
|
}
|
|
749
731
|
return {
|
|
750
732
|
kind: "user",
|
|
@@ -781,6 +763,7 @@ async function verifySession(sql, auth) {
|
|
|
781
763
|
return row?.active === true ? void 0 : revoked;
|
|
782
764
|
}
|
|
783
765
|
// src/server/authz-versions.ts
|
|
766
|
+
const USER_TOPIC_PREFIX = authzUserTopic("");
|
|
784
767
|
const subscriptions = /* @__PURE__ */ new WeakMap();
|
|
785
768
|
function userIdOf(payload, key) {
|
|
786
769
|
if (typeof payload !== "object" || payload === null || !(key in payload)) return;
|
|
@@ -795,6 +778,13 @@ function userIdOf(payload, key) {
|
|
|
795
778
|
*
|
|
796
779
|
* ```ts
|
|
797
780
|
* export const versions = createVersionCache();
|
|
781
|
+
* subscribeAuthzVersions({ client: serviceClient, versions });
|
|
782
|
+
* ```
|
|
783
|
+
*
|
|
784
|
+
* With the sessions module's `authzVersions` option the defaults match the
|
|
785
|
+
* generated trigger. Pass `topic`, `event` and `userIdKey` for your own.
|
|
786
|
+
*
|
|
787
|
+
* ```ts
|
|
798
788
|
* subscribeAuthzVersions({
|
|
799
789
|
* client: serviceClient,
|
|
800
790
|
* topic: "authz-versions",
|
|
@@ -807,14 +797,18 @@ function userIdOf(payload, key) {
|
|
|
807
797
|
function subscribeAuthzVersions(options) {
|
|
808
798
|
const existing = subscriptions.get(options.versions);
|
|
809
799
|
if (existing) return existing;
|
|
800
|
+
const topic = options.topic ?? "better_supabase:authz";
|
|
801
|
+
const event = options.event ?? "changed";
|
|
802
|
+
const userIdKey = options.userIdKey ?? "user_id";
|
|
803
|
+
const topicUser = topic.startsWith(USER_TOPIC_PREFIX) ? topic.slice(USER_TOPIC_PREFIX.length) : void 0;
|
|
810
804
|
const report = (error) => {
|
|
811
805
|
options.onError?.(error);
|
|
812
806
|
};
|
|
813
|
-
const channel = options.client.channel(
|
|
814
|
-
channel.on("broadcast", { event
|
|
815
|
-
const userId = userIdOf(message.payload,
|
|
807
|
+
const channel = options.client.channel(topic, { config: { private: true } });
|
|
808
|
+
channel.on("broadcast", { event }, (message) => {
|
|
809
|
+
const userId = userIdOf(message.payload, userIdKey) ?? topicUser;
|
|
816
810
|
if (userId === void 0) {
|
|
817
|
-
report(/* @__PURE__ */ new Error(`better-supabase: an ${
|
|
811
|
+
report(/* @__PURE__ */ new Error(`better-supabase: an ${event} message on ${topic} has no ${userIdKey}`));
|
|
818
812
|
return;
|
|
819
813
|
}
|
|
820
814
|
Promise.resolve(options.versions.evict(userId)).catch((cause) => {
|
|
@@ -829,7 +823,7 @@ function subscribeAuthzVersions(options) {
|
|
|
829
823
|
break;
|
|
830
824
|
case "CHANNEL_ERROR":
|
|
831
825
|
case "TIMED_OUT": {
|
|
832
|
-
const failure = error ?? /* @__PURE__ */ new Error(`better-supabase: ${
|
|
826
|
+
const failure = error ?? /* @__PURE__ */ new Error(`better-supabase: ${topic} ${status.toLowerCase()}`);
|
|
833
827
|
report(failure);
|
|
834
828
|
reject(failure);
|
|
835
829
|
break;
|
|
@@ -850,4 +844,4 @@ function subscribeAuthzVersions(options) {
|
|
|
850
844
|
subscriptions.set(options.versions, subscription);
|
|
851
845
|
return subscription;
|
|
852
846
|
}
|
|
853
|
-
export {
|
|
847
|
+
export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_CLAIM, DB_CALLS_HEADER, FEATURES_CLAIM, IDENTITY_SCOPES, MEMBERSHIPS_CLAIM, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, PRIMARY_COOKIE, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, SERVER_EVENT_SOURCE, SUPPORT_COOKIE, TENANT_HEADER, aalOf, accessTokenResolver, actorOf, agentClaims, amrOf, authContext, authModeOf, authzUserTopic, authzVersionOf, bindAuthorizer, cacheTagsOf, checkAal, claimsFingerprint, clearSessionCookies, clearSupportCookie, clientIp, contextFromSupabase, createServer, csvColumns, csvResponse, decodeEntitlementClaim, defineAuthorizationHooks, defineAuthorizer, defineResource, delegationOf, deleteAccount, endSessions, extendServer, flushEvents, fromProblem, guard, handle, hasRole, impersonationEvents, impersonatorOf, isApiKeySession, isDocumentLoad, isPrefetch, isProblem, isRateLimitPolicyName, isResult, isSessionSnapshot, isTruncated, isUserSession, issuedAtOf, jwtClaimsOf, lastSignIns, liveRelayTopic, parseDbStats, passwordGrant, periodSeconds, permissionCapOf, permissionsOf, problemResponse, rateLimitHeader, rateLimitPolicyHeader, readSession, realtimeRelay, realtimeTopicAccess, refreshFor, requestMemo, resolveAuth, resolveToken, respond, rolesAt, safeRedirectPath, serverCore, sessionCacheKey, sessionCookieName, sessionMemo, sessionStatus, sessionStatusRoute, settle, snapshotOf, sqlSupportStore, subjectReaders, subscribeAuthzVersions, supportClaims, supportCookie, supportCookieValue, supportOf, supportSessions, supportStorage, suspendAccount, tagCache, tagFor, toCsv, toProblem, toSession, unexpectedResponse, userClaimsOf, verifySession, withBetterDb, withBetterPostgres, withBetterSupabase, withBlock, withDbStats, withFlush, withGuard, withServerTiming, withSession };
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
|
-
import {
|
|
4
|
-
import { o as EventHub } from "./events-
|
|
5
|
-
import { o as EnvSource, t as BetterSupabaseEnv } from "./index-
|
|
6
|
-
import { a as ResolveAuthOptions,
|
|
7
|
-
import { r as CredentialProvider } from "./provider-
|
|
8
|
-
import { n as SqlClient } from "./executor-
|
|
9
|
-
import { Y as DbStats, Z as StatsRecorder, t as BetterSupabase, y as Db } from "./define-
|
|
10
|
-
import { j as StorageApi, n as Bucket } from "./bucket-
|
|
11
|
-
import { i as SessionSnapshot, n as SessionMemoOptions, r as SessionMemoStats } from "./snapshot-BGsJw9xn.js";
|
|
3
|
+
import { It as RequestContext, O as AnyFunctions, Ut as AnyAuthorizer, in as RequestMemo, k as AnyModels, nn as AuthzVersionCache } from "./types-BzIYSSWK.js";
|
|
4
|
+
import { o as EventHub } from "./events-DCw3c6pj.js";
|
|
5
|
+
import { o as EnvSource, t as BetterSupabaseEnv } from "./index-F6lsRlsr.js";
|
|
6
|
+
import { a as ResolveAuthOptions, f as SessionMemoOptions, m as SessionSnapshot, o as ResolvePhase, p as SessionMemoStats, r as AuthState, t as AuthResolution, w as CookieWrite } from "./resolve-BIpQRhvF.js";
|
|
7
|
+
import { r as CredentialProvider } from "./provider-bIAzxVMB.js";
|
|
8
|
+
import { n as SqlClient } from "./executor-DoSNec_H.js";
|
|
9
|
+
import { Y as DbStats, Z as StatsRecorder, t as BetterSupabase, y as Db } from "./define-BvkaC3Oh.js";
|
|
10
|
+
import { j as StorageApi, n as Bucket } from "./bucket-CrsJNHzi.js";
|
|
12
11
|
import { t as ImpersonationOptions } from "./impersonation-BOCJcsmS.js";
|
|
13
|
-
import { i as EventSink } from "./cloud-event-
|
|
14
|
-
import { b as TicketSubject, i as AuthorizationHooks } from "./authorization-hooks-
|
|
15
|
-
import { s as SqlClaims, t as BetterPostgres } from "./pool-
|
|
16
|
-
import { n as SupportApi, o as SupportSessions, t as ActiveSupport } from "./support-
|
|
12
|
+
import { i as EventSink } from "./cloud-event-BEmAUdl1.js";
|
|
13
|
+
import { b as TicketSubject, i as AuthorizationHooks } from "./authorization-hooks-C0GfMvFm.js";
|
|
14
|
+
import { s as SqlClaims, t as BetterPostgres } from "./pool-yO-LzZAd.js";
|
|
15
|
+
import { n as SupportApi, o as SupportSessions, t as ActiveSupport } from "./support-BwtMgjVg.js";
|
|
17
16
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
18
17
|
interface DeleteAccountOptions {
|
|
19
18
|
/**
|
|
@@ -258,8 +257,9 @@ interface ServerOptions<V extends AuthzVersionCache = AuthzVersionCache> {
|
|
|
258
257
|
*/
|
|
259
258
|
readonly approval?: ApprovalOptions;
|
|
260
259
|
/**
|
|
261
|
-
* The verified-
|
|
262
|
-
*
|
|
260
|
+
* The server's one verified-token memo, shared by the proxy, contexts,
|
|
261
|
+
* `snapshot()` and adapters: size and lifetime, or `false` to verify the
|
|
262
|
+
* token on every call.
|
|
263
263
|
*/
|
|
264
264
|
readonly sessions?: SessionMemoOptions | false;
|
|
265
265
|
}
|
|
@@ -433,9 +433,11 @@ interface BetterServer<M extends AnyModels, F extends AnyFunctions, E, C = unkno
|
|
|
433
433
|
contextFor(auth: AuthState<C, P>, options?: ContextOptions): ServerContext<M, F, E, C, P, B>;
|
|
434
434
|
/**
|
|
435
435
|
* A stateless supabase-js client for an auth state, optionally with extra
|
|
436
|
-
* request headers
|
|
436
|
+
* request headers: `createContextClient` from `@supabase/server/core` for a
|
|
437
|
+
* user or anon, `createAdminClient` for a secret key. Without headers, the
|
|
438
|
+
* admin and anon clients are shared.
|
|
437
439
|
*/
|
|
438
|
-
|
|
440
|
+
contextClient(auth: AuthState, headers?: Readonly<Record<string, string>>): SupabaseClient;
|
|
439
441
|
/**
|
|
440
442
|
* Repositories for an auth state (e.g. one resolved by the proxy). With
|
|
441
443
|
* `options.support`, from `support.resolve()` or `support.current()`, they
|