better-supabase 0.35.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-X3yzJljM.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-D1P3VBOd.d.ts → authorization-2Rv1AJQJ.d.ts} +114 -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/{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-Bvv-Zrdh.d.ts → bind-C2XvMlfg.d.ts} +7 -7
- package/dist/{block-env-h_uPl2f_.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-pj3eHfoP.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 +39 -17
- package/dist/blocks/catalog/index.js +35 -15
- 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/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 +26 -10
- package/dist/blocks/invoices/index.js +23 -7
- 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 +111 -17
- 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/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-DzgsOE8V.js → add-D2CH8t_B.js} +2 -2
- package/dist/cli/add-De73Ghlh.js +1 -0
- package/dist/cli/{add-CYreXA68.js → add-Duf1-19E.js} +16 -14
- package/dist/cli/{agent-59XWXsRi.js → agent-Tqq3MAqx.js} +26 -1
- package/dist/cli/{app-table-files-BnISa3uY.js → app-table-files-ha8X0rRE.js} +2 -2
- package/dist/cli/app-tables-BIyQcsHH.js +42 -0
- package/dist/cli/{backfill-BLLTSDSa.js → backfill-CLgA6-ll.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-uzh1g_0v.js → blocks-9AeouX4h.js} +2 -2
- package/dist/cli/{blocks-CpRvI7x8.js → blocks-BVB1fMMj.js} +1 -1
- package/dist/cli/{cache-BPWC7tGD.js → cache-aMk9vF1_.js} +1 -1
- package/dist/cli/{codemod-CbJVS_kG.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-Cjkm2Sg3.js → content-mapper-CEtdbshU.js} +2 -2
- package/dist/cli/{db-Diy1OebO.js → db-CeiQzhPq.js} +2 -2
- package/dist/cli/{doctor-D94FEJZs.js → doctor-DaOUWfRN.js} +386 -49
- package/dist/cli/env-BfWbheiC.js +1 -0
- package/dist/cli/{env-BAJn6wCA.js → env-DVV10l_r.js} +1 -1
- package/dist/cli/{gen-Cd0VNDjE.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-Co1N9ZoA.js → init-Xit9Hnbb.js} +9 -9
- package/dist/cli/{keys-CxajkV_7.js → keys-DJTN2Avl.js} +1 -1
- package/dist/cli/{live-NFNeZsP7.js → live-CuMpyRjF.js} +2 -2
- package/dist/cli/{mcp-WZ8t7NMz.js → mcp-C7d4j5cq.js} +4 -4
- package/dist/cli/{metadata-BzMkmrZR.js → metadata-D2YvkY2D.js} +3 -3
- package/dist/cli/{migrate-C9gyDAV7.js → migrate-BCXxyTKt.js} +2 -2
- package/dist/cli/{migration-safety-BNi8PIiM.js → migration-safety-DfwTOBQ4.js} +1 -1
- package/dist/cli/{migrations-Ds0J_TmZ.js → migrations-nomh4TBo.js} +2 -2
- package/dist/cli/{module-migration-hFrlzQZ5.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-oFiwgsBi.js → powersync-DB9WZsIv.js} +4 -4
- package/dist/cli/powersync-IBM_v_eJ.js +1 -0
- package/dist/cli/{print-BtreoJSm.js → print-S6IF5rZm.js} +2 -2
- package/dist/cli/{providers-Be2dgyuR.js → providers-BDTcal71.js} +1 -1
- package/dist/cli/{prune-workflows-BPxgRrqY.js → prune-workflows-Zr2DjByi.js} +3 -3
- package/dist/cli/{remove-B4ad996E.js → remove-CPX5Tg5s.js} +6 -6
- package/dist/cli/{render-C-Mfq-o3.js → render-Bp7a7XQ9.js} +18 -4
- package/dist/cli/{run-D2nuyyPo.js → run-BclCFEyP.js} +12 -48
- package/dist/cli/{run-dY9uOC3W.js → run-BlVaLnt_.js} +2 -2
- package/dist/cli/{run-cLdnJHH0.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-DCHxLAEL.js → shared-D60W9NS-.js} +1 -1
- package/dist/cli/{skills-jZThjL3B.js → skills-DH-yPDny.js} +1 -1
- package/dist/cli/{snapshot-CloKPNxv.js → snapshot-C3_eQUgY.js} +2 -2
- package/dist/cli/{source-Bwyp18Rj.js → source-Bk6XwIAK.js} +1 -1
- package/dist/cli/{spec-DsVq4_qV.js → spec-BDTpcBns.js} +1 -1
- package/dist/cli/{spec-DAUF4ybu.js → spec-C8ydQwZC.js} +3 -3
- package/dist/cli/{sql-layout-CHpEL0oq.js → sql-layout-DVQ20UMi.js} +2 -2
- package/dist/cli/{stack-147NqctC.js → stack-CmhSfY5V.js} +3 -2
- package/dist/cli/{sync-DZu1r34s.js → sync-D-WO4Yvl.js} +4 -4
- package/dist/cli/{table-D9FbJS8h.js → table-k5OABwy3.js} +1 -1
- package/dist/cli/{upgrade-Bpvi70zm.js → upgrade-DGe5Pv6v.js} +5 -5
- package/dist/cli/{upgrade-A-BALvp3.js → upgrade-XdhMuHAu.js} +3 -3
- package/dist/cli/{version-B59mZJoy.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-BZWSFxkG.js → config-BKxjItQ-.js} +3 -3
- package/dist/{config-DQP0IvDX.js → config-BrRlSxhx.js} +1 -1
- package/dist/{connectors-Cf2LeAuZ.d.ts → connectors-CrLRW4Ol.d.ts} +4 -4
- package/dist/{context-CderJRZf.d.ts → context-yfOlyAqb.d.ts} +3 -3
- package/dist/contract/index.d.ts +9 -9
- package/dist/{controller-DaWA9eWS.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-BefkpQIz.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-D1meOs_H.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-BbDiBiKt.d.ts → index-6H-8Ib1w.d.ts} +4 -4
- package/dist/{index-M1izbwbN.d.ts → index-Ag-T51Jl.d.ts} +1 -1
- package/dist/{index-ZQZMQF4l.d.ts → index-BUluRi0b.d.ts} +6 -6
- package/dist/{index-BQlLxOj5.d.ts → index-C78VPlXW.d.ts} +1 -1
- package/dist/{index-D18su_r5.d.ts → index-CY612vAg.d.ts} +10 -5
- package/dist/{index-DXUiRyEk.d.ts → index-CnzGRpeH.d.ts} +5 -5
- package/dist/{index-BIAtapnD.d.ts → index-Dbd1E5Au.d.ts} +5 -5
- package/dist/{index-ChLuLxy-.d.ts → index-Dv6lfL5p.d.ts} +14 -14
- package/dist/{index-8w4OB5En.d.ts → index-F6lsRlsr.d.ts} +1 -1
- package/dist/{index-D9aV0Fvx.d.ts → index-kkZwp5M1.d.ts} +6 -6
- package/dist/{index-C13UgV67.d.ts → index-lMApFSAd.d.ts} +5 -5
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/{instances-D9YrkoAy.js → instances-xQ2lupVE.js} +218 -11
- 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-t_hlXkS4.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-C9bp3SEA.js → options-DqmTs2nv.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-CuaWhsQS.js → options-X61tvckX.js} +2 -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-C8p6RlIZ.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-C-8uduFM.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-B_sSI9vg.js → preset-BvHNleCo.js} +2 -2
- package/dist/{project-DVlXQGEp.js → project-CBvowdKY.js} +5 -5
- package/dist/{provider-BI0KC4u5.d.ts → provider-bIAzxVMB.d.ts} +1 -1
- package/dist/{push-token-D41lOoE8.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-h-3UbKcw.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-C9nO-Mat.js → sql-BChN3Hxv.js} +7382 -2219
- 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-gezshhcs.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-BVq5RdsI.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-hTj5OuFo.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-BOclyLFd.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 +126 -0
- package/schemas/doctor-report-v1.json +4 -0
- package/skills/better-supabase-auth/SKILL.md +45 -11
- package/dist/cli/add-BaB3y1lv.js +0 -1
- package/dist/cli/env-UN6PJFX6.js +0 -1
- package/dist/cli/powersync-J2Kms2NT.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,9 +1,9 @@
|
|
|
1
|
-
import { O as AnyFunctions, k as AnyModels } from "./types-
|
|
2
|
-
import { n as AuthOutageEvent, o as EventHub } from "./events-
|
|
3
|
-
import {
|
|
4
|
-
import { i as ContextOptions, o as ServerContext } from "./server-types-
|
|
5
|
-
import { t as ActiveSupport } from "./support-
|
|
6
|
-
import { d as RefreshPolicy } from "./respond-
|
|
1
|
+
import { O as AnyFunctions, k as AnyModels } from "./types-BzIYSSWK.js";
|
|
2
|
+
import { n as AuthOutageEvent, o as EventHub } from "./events-DCw3c6pj.js";
|
|
3
|
+
import { C as CookieScope, T as SessionEncoding, o as ResolvePhase, r as AuthState, t as AuthResolution } from "./resolve-BIpQRhvF.js";
|
|
4
|
+
import { i as ContextOptions, o as ServerContext } from "./server-types-DEjva0MW.js";
|
|
5
|
+
import { t as ActiveSupport } from "./support-BwtMgjVg.js";
|
|
6
|
+
import { d as RefreshPolicy } from "./respond-CAxhkwAi.js";
|
|
7
7
|
import { SingleKeyEntry } from "@supabase/middleware";
|
|
8
8
|
/**
|
|
9
9
|
* What the entries need from a `createServer` server: its resolver, its
|
|
@@ -38,19 +38,18 @@ interface SessionEntryConfig {
|
|
|
38
38
|
/**
|
|
39
39
|
* Refresh an expired cookie session and send the new cookies on the response.
|
|
40
40
|
* Only where cookies can be written once per request (a proxy, a framework
|
|
41
|
-
* middleware); never in Server Components.
|
|
42
|
-
*
|
|
43
|
-
* calls never race on the refresh token. Defaults to false.
|
|
41
|
+
* middleware); never in Server Components. Parallel requests share one token
|
|
42
|
+
* refresh, so every request may refresh. Defaults to false.
|
|
44
43
|
*/
|
|
45
44
|
readonly refresh?: RefreshPolicy;
|
|
46
45
|
/**
|
|
47
46
|
* Ask the Auth server whether the session still exists, so a session ended
|
|
48
47
|
* elsewhere (sign-out on another device, an admin revoke) is anon here too.
|
|
49
48
|
* One Auth call per matching request: `true` checks every request,
|
|
50
|
-
* `'
|
|
51
|
-
*
|
|
49
|
+
* `'document'` full page loads (`isDocumentLoad`). Off by default, because a
|
|
50
|
+
* valid token otherwise never calls the Auth server.
|
|
52
51
|
*/
|
|
53
|
-
readonly verifySession?: boolean | "
|
|
52
|
+
readonly verifySession?: boolean | "document" | ((request: Request) => boolean);
|
|
54
53
|
/**
|
|
55
54
|
* Read the session cookie. Defaults to true; `false` resolves bearer tokens
|
|
56
55
|
* only.
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { r as authzUserTopic, t as AUTHZ_EVENT } from "./authz-topic-D7fPUY4P.js";
|
|
2
|
+
import { t as supportOf } from "./support-view-CvDEgyGY.js";
|
|
3
|
+
import { createContext, createElement, use, useContext, useEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
4
|
+
// src/react/authz-refresh.ts
|
|
5
|
+
function isTabMessage(value) {
|
|
6
|
+
if (typeof value !== "object" || value === null) return false;
|
|
7
|
+
const message = value;
|
|
8
|
+
return message.type === "better-supabase:authz" && typeof message.userId === "string" && typeof message.version === "number";
|
|
9
|
+
}
|
|
10
|
+
/** The `version` of a broadcast payload; Postgres `bigint` may arrive as text. */
|
|
11
|
+
function versionOf(payload) {
|
|
12
|
+
if (typeof payload !== "object" || payload === null) return;
|
|
13
|
+
const value = Object.entries(payload).find(([name]) => name === "version")?.[1];
|
|
14
|
+
const version = typeof value === "string" ? Number(value) : value;
|
|
15
|
+
return typeof version === "number" && Number.isFinite(version) ? version : void 0;
|
|
16
|
+
}
|
|
17
|
+
function errorOf(cause) {
|
|
18
|
+
return cause instanceof Error ? cause : new Error(String(cause));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Listens on the user's `authz:<uid>` topic. A visible tab that hears a new
|
|
22
|
+
* version refreshes the token, runs `onChange` and tells the other tabs, which
|
|
23
|
+
* run only `onChange`: the cookies are shared, so one refresh is enough. A
|
|
24
|
+
* hidden tab waits until it becomes visible. Returns the cleanup.
|
|
25
|
+
*/
|
|
26
|
+
function startAuthzRefresh(options) {
|
|
27
|
+
let seen = Number.NEGATIVE_INFINITY;
|
|
28
|
+
let handled = Number.NEGATIVE_INFINITY;
|
|
29
|
+
let stopped = false;
|
|
30
|
+
const report = (cause) => {
|
|
31
|
+
options.onError?.(errorOf(cause));
|
|
32
|
+
};
|
|
33
|
+
const tabs = options.channel !== false && typeof BroadcastChannel === "function" ? new BroadcastChannel(options.channel) : void 0;
|
|
34
|
+
const doc = "document" in globalThis ? globalThis.document : void 0;
|
|
35
|
+
const visible = () => doc?.visibilityState !== "hidden";
|
|
36
|
+
const refresh = async (version) => {
|
|
37
|
+
handled = version;
|
|
38
|
+
await options.client.auth.refreshSession();
|
|
39
|
+
if (stopped) return;
|
|
40
|
+
await options.onChange();
|
|
41
|
+
const message = {
|
|
42
|
+
type: "better-supabase:authz",
|
|
43
|
+
userId: options.userId,
|
|
44
|
+
version
|
|
45
|
+
};
|
|
46
|
+
tabs?.postMessage(message);
|
|
47
|
+
};
|
|
48
|
+
const channel = options.client.channel(authzUserTopic(options.userId), { config: { private: true } }).on("broadcast", { event: AUTHZ_EVENT }, (message) => {
|
|
49
|
+
const version = versionOf(message.payload);
|
|
50
|
+
if (version === void 0 || version <= seen) return;
|
|
51
|
+
seen = version;
|
|
52
|
+
if (visible()) refresh(version).catch(report);
|
|
53
|
+
}).subscribe();
|
|
54
|
+
const onTab = (event) => {
|
|
55
|
+
const message = event.data;
|
|
56
|
+
if (!isTabMessage(message) || message.userId !== options.userId || message.version <= handled) return;
|
|
57
|
+
handled = message.version;
|
|
58
|
+
seen = Math.max(seen, message.version);
|
|
59
|
+
Promise.resolve(options.onChange()).catch(report);
|
|
60
|
+
};
|
|
61
|
+
const onVisible = () => {
|
|
62
|
+
if (visible() && seen > handled) refresh(seen).catch(report);
|
|
63
|
+
};
|
|
64
|
+
tabs?.addEventListener("message", onTab);
|
|
65
|
+
doc?.addEventListener("visibilitychange", onVisible);
|
|
66
|
+
return () => {
|
|
67
|
+
stopped = true;
|
|
68
|
+
tabs?.removeEventListener("message", onTab);
|
|
69
|
+
tabs?.close();
|
|
70
|
+
doc?.removeEventListener("visibilitychange", onVisible);
|
|
71
|
+
channel.unsubscribe().catch(report);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
// src/react/session.ts
|
|
75
|
+
function createSessionStore(initial) {
|
|
76
|
+
let current = initial;
|
|
77
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
78
|
+
return {
|
|
79
|
+
get: () => current,
|
|
80
|
+
set: (value) => {
|
|
81
|
+
if (value === current) return;
|
|
82
|
+
current = value;
|
|
83
|
+
for (const listener of listeners) listener();
|
|
84
|
+
},
|
|
85
|
+
subscribe: (listener) => {
|
|
86
|
+
listeners.add(listener);
|
|
87
|
+
return () => {
|
|
88
|
+
listeners.delete(listener);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
const SessionContext = createContext(null);
|
|
94
|
+
/**
|
|
95
|
+
* The signed-in user's id, or `undefined` once the session resolves to
|
|
96
|
+
* anonymous.
|
|
97
|
+
*/
|
|
98
|
+
function useUserId(store) {
|
|
99
|
+
const value = useSyncExternalStore(store.subscribe, store.get, store.get);
|
|
100
|
+
const [userId, setUserId] = useState(void 0);
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
let active = true;
|
|
103
|
+
Promise.resolve(value).then((session) => {
|
|
104
|
+
if (active) setUserId(session.kind === "user" ? session.user.id : void 0);
|
|
105
|
+
}).catch(() => {});
|
|
106
|
+
return () => {
|
|
107
|
+
active = false;
|
|
108
|
+
};
|
|
109
|
+
}, [value]);
|
|
110
|
+
return userId;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Shares the server-verified session with Client Components, and with a
|
|
114
|
+
* `client` refreshes it when the database bumps the user's authorization
|
|
115
|
+
* version.
|
|
116
|
+
*/
|
|
117
|
+
function SessionProvider(props) {
|
|
118
|
+
const [store] = useState(() => createSessionStore(props.session));
|
|
119
|
+
const handlers = useRef(props);
|
|
120
|
+
const userId = useUserId(store);
|
|
121
|
+
const { client } = props;
|
|
122
|
+
const channel = props.channel ?? "better-supabase:session";
|
|
123
|
+
useEffect(() => {
|
|
124
|
+
handlers.current = props;
|
|
125
|
+
store.set(props.session);
|
|
126
|
+
});
|
|
127
|
+
useEffect(() => {
|
|
128
|
+
if (!client || userId === void 0) return;
|
|
129
|
+
return startAuthzRefresh({
|
|
130
|
+
client,
|
|
131
|
+
userId,
|
|
132
|
+
channel,
|
|
133
|
+
onChange: () => handlers.current.onAuthzChange?.(),
|
|
134
|
+
onError: (error) => handlers.current.onError?.(error)
|
|
135
|
+
});
|
|
136
|
+
}, [
|
|
137
|
+
client,
|
|
138
|
+
userId,
|
|
139
|
+
channel
|
|
140
|
+
]);
|
|
141
|
+
return createElement(SessionContext.Provider, { value: store }, props.children);
|
|
142
|
+
}
|
|
143
|
+
function useSessionValue() {
|
|
144
|
+
const store = useContext(SessionContext);
|
|
145
|
+
const subscribe = store?.subscribe ?? noSubscribe;
|
|
146
|
+
const get = store?.get ?? noSession;
|
|
147
|
+
return useSyncExternalStore(subscribe, get, get);
|
|
148
|
+
}
|
|
149
|
+
const noSubscribe = () => () => void 0;
|
|
150
|
+
const noSession = () => void 0;
|
|
151
|
+
/**
|
|
152
|
+
* The session from the nearest `<SessionProvider>`. Suspends while the session
|
|
153
|
+
* is a pending promise, so render it inside `<Suspense>`. `C` types the claims
|
|
154
|
+
* (the output of `betterSupabase.claims(schema)`) and `P` the profile (the
|
|
155
|
+
* output of `betterSupabase.userMetadata(schema)`); `createHooks().useSession`
|
|
156
|
+
* infers both.
|
|
157
|
+
*/
|
|
158
|
+
function useSession() {
|
|
159
|
+
const value = useSessionValue();
|
|
160
|
+
if (value === void 0) throw new Error("better-supabase: useSession() needs <SessionProvider session={...}>");
|
|
161
|
+
return value instanceof Promise ? use(value) : value;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The support session the page renders in, for a "Viewing as" banner, or
|
|
165
|
+
* `undefined` for a normal session. Needs `<SessionProvider>` like
|
|
166
|
+
* `useSession`.
|
|
167
|
+
*/
|
|
168
|
+
function useSupportSession() {
|
|
169
|
+
return supportOf(useSession());
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* `useSupportSession()` that answers `undefined` outside a `<SessionProvider>`
|
|
173
|
+
* instead of throwing.
|
|
174
|
+
*/
|
|
175
|
+
function useOptionalSupportSession() {
|
|
176
|
+
const value = useSessionValue();
|
|
177
|
+
if (value === void 0) return;
|
|
178
|
+
return supportOf(value instanceof Promise ? use(value) : value);
|
|
179
|
+
}
|
|
180
|
+
export { useSupportSession as i, useOptionalSupportSession as n, useSession as r, SessionProvider as t };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { n as AuthSession } from "./view-DdDY88SC.js";
|
|
2
|
+
import { t as SupportView } from "./support-view-GykHOIQ2.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
/** The broadcast message shape Realtime delivers for `realtime.send()`. */
|
|
5
|
+
interface BroadcastMessage {
|
|
6
|
+
readonly payload?: unknown;
|
|
7
|
+
}
|
|
8
|
+
/** The part of a supabase-js `RealtimeChannel` the provider uses. */
|
|
9
|
+
interface AuthzRefreshChannel {
|
|
10
|
+
on(type: "broadcast", filter: {
|
|
11
|
+
readonly event: string;
|
|
12
|
+
}, callback: (message: BroadcastMessage) => void): AuthzRefreshChannel;
|
|
13
|
+
subscribe(): AuthzRefreshChannel;
|
|
14
|
+
unsubscribe(): Promise<unknown>;
|
|
15
|
+
}
|
|
16
|
+
/** The part of a browser supabase-js client the provider uses. */
|
|
17
|
+
interface AuthzRefreshClient {
|
|
18
|
+
channel(topic: string, options: {
|
|
19
|
+
readonly config: {
|
|
20
|
+
readonly private: boolean;
|
|
21
|
+
};
|
|
22
|
+
}): AuthzRefreshChannel;
|
|
23
|
+
readonly auth: {
|
|
24
|
+
refreshSession(): Promise<unknown>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface SessionProviderProps {
|
|
28
|
+
/**
|
|
29
|
+
* The server-verified session: `bsb.claims()`, unresolved when it's created
|
|
30
|
+
* inside a `<Suspense>` boundary so the layout itself never waits for auth.
|
|
31
|
+
*/
|
|
32
|
+
readonly session: AuthSession | Promise<AuthSession>;
|
|
33
|
+
/**
|
|
34
|
+
* A browser supabase-js client. With it the provider listens on the user's
|
|
35
|
+
* private `authz:<uid>` topic (the sessions module's `authzVersions` option),
|
|
36
|
+
* refreshes the token when the version changes and calls `onAuthzChange`.
|
|
37
|
+
*/
|
|
38
|
+
readonly client?: AuthzRefreshClient;
|
|
39
|
+
/**
|
|
40
|
+
* Runs after the token refresh, such as `bsb.refreshSessionCache` followed by
|
|
41
|
+
* `router.refresh()`. Other tabs run it too, without a second refresh.
|
|
42
|
+
*/
|
|
43
|
+
readonly onAuthzChange?: () => unknown;
|
|
44
|
+
/**
|
|
45
|
+
* The `BroadcastChannel` that tells the app's other tabs, or `false` for
|
|
46
|
+
* none. Defaults to `better-supabase:session`.
|
|
47
|
+
*/
|
|
48
|
+
readonly channel?: string | false;
|
|
49
|
+
readonly onError?: (error: Error) => void;
|
|
50
|
+
readonly children?: ReactNode;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Shares the server-verified session with Client Components, and with a
|
|
54
|
+
* `client` refreshes it when the database bumps the user's authorization
|
|
55
|
+
* version.
|
|
56
|
+
*/
|
|
57
|
+
declare function SessionProvider(props: SessionProviderProps): ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* The session from the nearest `<SessionProvider>`. Suspends while the session
|
|
60
|
+
* is a pending promise, so render it inside `<Suspense>`. `C` types the claims
|
|
61
|
+
* (the output of `betterSupabase.claims(schema)`) and `P` the profile (the
|
|
62
|
+
* output of `betterSupabase.userMetadata(schema)`); `createHooks().useSession`
|
|
63
|
+
* infers both.
|
|
64
|
+
*/
|
|
65
|
+
declare function useSession<C = unknown, P = unknown>(): AuthSession<C, P>;
|
|
66
|
+
/**
|
|
67
|
+
* The support session the page renders in, for a "Viewing as" banner, or
|
|
68
|
+
* `undefined` for a normal session. Needs `<SessionProvider>` like
|
|
69
|
+
* `useSession`.
|
|
70
|
+
*/
|
|
71
|
+
declare function useSupportSession(): SupportView | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* `useSupportSession()` that answers `undefined` outside a `<SessionProvider>`
|
|
74
|
+
* instead of throwing.
|
|
75
|
+
*/
|
|
76
|
+
declare function useOptionalSupportSession(): SupportView | undefined;
|
|
77
|
+
export { useSupportSession as a, useSession as i, SessionProviderProps as n, useOptionalSupportSession as r, SessionProvider as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as AuthState, t as AuthResolution } from "./resolve
|
|
2
|
-
import { t as ActiveSupport } from "./support-
|
|
1
|
+
import { r as AuthState, t as AuthResolution } from "./resolve-BIpQRhvF.js";
|
|
2
|
+
import { t as ActiveSupport } from "./support-BwtMgjVg.js";
|
|
3
3
|
/**
|
|
4
4
|
* `active`: the session is valid. `expired`: the cookie's token expired and the
|
|
5
5
|
* route may not refresh it; the next navigation through the proxy does. `ended`
|
|
@@ -44,7 +44,8 @@ interface SessionStatusRouteOptions {
|
|
|
44
44
|
/**
|
|
45
45
|
* Ask Auth whether the session still exists, one network call per check, so a
|
|
46
46
|
* revoked session or a ban shows up before the token expires. Defaults to
|
|
47
|
-
*
|
|
47
|
+
* false: the route reads the verified claims only, and the proxy's
|
|
48
|
+
* `verifySession` and the `authz:<uid>` broadcast catch revocations.
|
|
48
49
|
*/
|
|
49
50
|
readonly verifySession?: boolean;
|
|
50
51
|
/**
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import { f as Result } from "./result-DTOQRyGY.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as RefreshOptions } from "./refresh-BtbC2rZe.js";
|
|
2
|
+
import { E as StoredSession } from "./resolve-BIpQRhvF.js";
|
|
4
3
|
/**
|
|
5
4
|
* `next` when it is a same-origin path (`/dashboard?tab=1`), else `fallback`.
|
|
6
5
|
* Use it on any `?next=` or `redirectTo` value a request carries, so the value
|
|
7
6
|
* can't send the user to another origin.
|
|
8
7
|
*/
|
|
9
8
|
declare function safeRedirectPath(next: string | null | undefined, fallback: string): string;
|
|
10
|
-
|
|
9
|
+
interface PasswordGrantOptions {
|
|
10
|
+
readonly url: string;
|
|
11
|
+
readonly publishableKey: string;
|
|
12
|
+
/**
|
|
13
|
+
* Sends `Sb-Forwarded-For` with the secret key as `apikey`, so Auth's per-IP
|
|
14
|
+
* rate limit counts the user, not the server.
|
|
15
|
+
*/
|
|
16
|
+
readonly forwardedFor?: {
|
|
17
|
+
readonly ip: string;
|
|
18
|
+
readonly secretKey: string;
|
|
19
|
+
};
|
|
20
|
+
readonly fetch?: typeof fetch;
|
|
21
|
+
/** Milliseconds before the request counts as a network failure. Defaults to 5000. */
|
|
22
|
+
readonly timeoutMs?: number;
|
|
11
23
|
readonly now?: () => number;
|
|
12
|
-
}
|
|
24
|
+
}
|
|
13
25
|
/** The email link and code types `/auth/v1/verify` accepts. */
|
|
14
26
|
type EmailOtpType = "signup" | "invite" | "magiclink" | "recovery" | "email_change" | "email";
|
|
15
27
|
/** A link's `token_hash`, or the email and the code Auth sent to it. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as specKey, i as sessionUserId, n as hasAuthModule, t as authModuleOf } from "./auth-module-
|
|
1
|
+
import { a as specKey, i as sessionUserId, n as hasAuthModule, t as authModuleOf } from "./auth-module-DkqapRZJ.js";
|
|
2
2
|
import { t as clearOnUserChange } from "./user-change-Ngy8z1fZ.js";
|
|
3
|
-
import { c as liveKey, d as shownCount, f as startBroadcast, i as countSource, m as startLiveQuery, p as startLiveCount, t as NO_COUNT } from "./client-
|
|
4
|
-
import { useSession } from "./
|
|
3
|
+
import { c as liveKey, d as shownCount, f as startBroadcast, i as countSource, m as startLiveQuery, p as startLiveCount, t as NO_COUNT } from "./client-DrejIxsu.js";
|
|
4
|
+
import { r as useSession } from "./session-BjPYE4dT.js";
|
|
5
5
|
import { createContext, createElement, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
6
6
|
// src/react/context.ts
|
|
7
7
|
/**
|
|
@@ -7,8 +7,8 @@ import { o as problemResponse } from "./problem-C0SVHhd3.js";
|
|
|
7
7
|
import { i as sqlIdent } from "./template-CNq9xcfx.js";
|
|
8
8
|
import { a as emitBlockEvent } from "./block-events-Bp6GPIBN.js";
|
|
9
9
|
import { t as fromPgError } from "./pg-error-D92B6jlF.js";
|
|
10
|
-
import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-
|
|
11
|
-
import { t as cronRoute } from "./cron-route-
|
|
10
|
+
import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-ddQ9Hzka.js";
|
|
11
|
+
import { t as cronRoute } from "./cron-route-uTsC2BD0.js";
|
|
12
12
|
import { t as boundedTtlCache } from "./ttl-cache-C5S0L2wx.js";
|
|
13
13
|
// src/auth/support.ts
|
|
14
14
|
/** A request from the jsonb the `impersonation` request functions return. */
|
|
@@ -2,7 +2,7 @@ import { n as dbError } from "./errors-B7tCfCvX.js";
|
|
|
2
2
|
import { c as optionalTemporal, s as nowInstant } from "./temporal-DKTdGK9i.js";
|
|
3
3
|
import { n as temporalMissing } from "./temporal-required-w_2u4EDp.js";
|
|
4
4
|
import { a as ok, r as err } from "./result-8xza7w5W.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as toBase64, i as fromBase64 } from "./base64-CEBz6-Jj.js";
|
|
6
6
|
import { r as timingSafeEqual, t as encoder } from "./hmac-DNcfpmI9.js";
|
|
7
7
|
// src/core/signatures.ts
|
|
8
8
|
/** Accepts `whsec_…`, `v1,whsec_…` (Supabase Auth hooks) or raw base64. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, f as Result, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
3
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
4
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
5
|
-
import { n as SqlClient } from "./executor-
|
|
6
|
-
import { t as BlockTransport } from "./block-transport-
|
|
7
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
4
|
+
import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
|
|
5
|
+
import { n as SqlClient } from "./executor-DoSNec_H.js";
|
|
6
|
+
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
7
|
+
import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
|
|
8
8
|
import { t as BlockProblemOptions } from "./problem-NGBjN-TO.js";
|
|
9
9
|
/** How a delivery proves it came from the sender. */
|
|
10
10
|
type IncomingVerify = "none" | "standard-webhooks" | "hmac-sha256" | "shared-secret";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
3
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
4
|
-
import { n as BlockOptions } from "./block-helpers-
|
|
5
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
4
|
+
import { n as BlockOptions } from "./block-helpers-BNtM1tqy.js";
|
|
5
|
+
import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
|
|
6
6
|
import { i as JwsAlgorithm, n as Jwks, o as SigningAlgorithm, t as Jwk } from "./jws-CxgTsbgG.js";
|
|
7
7
|
interface SigningKeysOptions extends BlockOptions {
|
|
8
8
|
/**
|
|
@@ -4,7 +4,7 @@ import { t as temporal } from "./temporal-required-w_2u4EDp.js";
|
|
|
4
4
|
import { t as AsyncResult } from "./result-8xza7w5W.js";
|
|
5
5
|
import { L as textOf, M as run, O as recordOf, d as enumOrThrow, n as applyTemporal, o as blockCall } from "./block-helpers-I7UzjNEf.js";
|
|
6
6
|
import { r as withBlockHooks } from "./block-hooks-CadxQ9-_.js";
|
|
7
|
-
import { a as jwksOf, n as generateSigningKey, o as signBytes, r as importSigningKey, s as signCompact } from "./jws-
|
|
7
|
+
import { a as jwksOf, n as generateSigningKey, o as signBytes, r as importSigningKey, s as signCompact } from "./jws-De9qjIPV.js";
|
|
8
8
|
// src/blocks/signing-keys/signing-keys.ts
|
|
9
9
|
const ALGORITHMS = ["Ed25519", "ES256"];
|
|
10
10
|
/**
|
|
@@ -53,13 +53,6 @@ function authOfSnapshot(snapshot) {
|
|
|
53
53
|
function sessionCacheKey(snapshot) {
|
|
54
54
|
return `${snapshot.userId}:${snapshot.sessionId ?? "-"}:${String(snapshot.authzVersion ?? 0)}`;
|
|
55
55
|
}
|
|
56
|
-
const encoder = new TextEncoder();
|
|
57
|
-
async function tokenKey(token) {
|
|
58
|
-
const digest = await crypto.subtle.digest("SHA-256", encoder.encode(token));
|
|
59
|
-
let hex = "";
|
|
60
|
-
for (const byte of new Uint8Array(digest)) hex += byte.toString(16).padStart(2, "0");
|
|
61
|
-
return hex;
|
|
62
|
-
}
|
|
63
56
|
/**
|
|
64
57
|
* A bounded LRU of verified sessions. Keys derive only from the token, never
|
|
65
58
|
* from a user id or a header, so one instance can serve many users at once
|
|
@@ -83,42 +76,41 @@ function sessionMemo(expiresAt, options = {}) {
|
|
|
83
76
|
}
|
|
84
77
|
};
|
|
85
78
|
return {
|
|
86
|
-
|
|
87
|
-
const key = await tokenKey(token);
|
|
79
|
+
get(token, load) {
|
|
88
80
|
const now = clock();
|
|
89
|
-
const known = entries.get(
|
|
81
|
+
const known = entries.get(token);
|
|
90
82
|
if (known && known.until > now) {
|
|
91
83
|
hits += 1;
|
|
92
|
-
store(
|
|
84
|
+
store(token, known);
|
|
93
85
|
return known.promise;
|
|
94
86
|
}
|
|
95
87
|
misses += 1;
|
|
96
88
|
const entry = {
|
|
97
89
|
promise: load().then((value) => {
|
|
98
90
|
if (value === null) {
|
|
99
|
-
if (entries.get(
|
|
91
|
+
if (entries.get(token) === entry) entries.delete(token);
|
|
100
92
|
} else {
|
|
101
93
|
entry.value = value;
|
|
102
94
|
entry.until = Math.min(entry.until, untilFor(entry.until - ttlMs, expiresAt(value)));
|
|
103
95
|
}
|
|
104
96
|
return value;
|
|
105
97
|
}, (cause) => {
|
|
106
|
-
if (entries.get(
|
|
98
|
+
if (entries.get(token) === entry) entries.delete(token);
|
|
107
99
|
throw cause;
|
|
108
100
|
}),
|
|
109
101
|
until: now + ttlMs
|
|
110
102
|
};
|
|
111
|
-
store(
|
|
103
|
+
store(token, entry);
|
|
112
104
|
return entry.promise;
|
|
113
105
|
},
|
|
114
|
-
|
|
115
|
-
const key = await tokenKey(token);
|
|
106
|
+
seed(token, value) {
|
|
116
107
|
const until = untilFor(clock(), expiresAt(value));
|
|
117
|
-
store(
|
|
108
|
+
store(token, {
|
|
118
109
|
promise: Promise.resolve(value),
|
|
119
110
|
value,
|
|
120
111
|
until
|
|
121
112
|
});
|
|
113
|
+
return Promise.resolve();
|
|
122
114
|
},
|
|
123
115
|
evict(match) {
|
|
124
116
|
for (const [key, entry] of entries) if (entry.value !== void 0 && match(entry.value)) entries.delete(key);
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as DbError } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-
|
|
3
|
-
import { mt as QuerySpec } from "../define-
|
|
4
|
-
import { tt as TemplateValues } from "../bucket-
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
7
|
-
import { n as AuthSession } from "../view-
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
2
|
+
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DCw3c6pj.js";
|
|
3
|
+
import { mt as QuerySpec } from "../define-BvkaC3Oh.js";
|
|
4
|
+
import { tt as TemplateValues } from "../bucket-CrsJNHzi.js";
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-x-mrN_Ff.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-C2XvMlfg.js";
|
|
7
|
+
import { n as AuthSession } from "../view-DdDY88SC.js";
|
|
8
|
+
import { n as Controller } from "../controller-CAcLEndc.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DXZk9Qjt.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-BQrtLPyc.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
|
|
12
|
-
import { t as SupportView } from "../support-view-
|
|
12
|
+
import { t as SupportView } from "../support-view-GykHOIQ2.js";
|
|
13
13
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
14
14
|
import { QueryClient } from "@tanstack/query-core";
|
|
15
15
|
import { Accessor, JSX } from "solid-js";
|
package/dist/solid/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clearOnUserChange } from "../user-change-Ngy8z1fZ.js";
|
|
2
|
-
import { a as createActionRunner, c as liveKey, d as shownCount, f as startBroadcast, i as countSource, l as notJoined, m as startLiveQuery, n as assertInvalidateClient, o as joinPresence, p as startLiveCount, r as callerOf, s as keyed, t as NO_COUNT, u as plainCaller } from "../client-
|
|
2
|
+
import { a as createActionRunner, c as liveKey, d as shownCount, f as startBroadcast, i as countSource, l as notJoined, m as startLiveQuery, n as assertInvalidateClient, o as joinPresence, p as startLiveCount, r as callerOf, s as keyed, t as NO_COUNT, u as plainCaller } from "../client-DrejIxsu.js";
|
|
3
3
|
import { t as supportOf } from "../support-view-CvDEgyGY.js";
|
|
4
4
|
import { c as listenToBlockEvents, d as fieldErrorsOf, i as dataTarget, l as blockEnv, n as createDataOne, o as createBlockMutation, s as createBlockQuery, t as createDataList, u as withEnv } from "../data-hooks-BToeAcQ_.js";
|
|
5
5
|
import { createComponent, createContext, createEffect, createMemo, createSignal, from, onCleanup, onMount, untrack, useContext } from "solid-js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BetterSupabase } from "../define-
|
|
3
|
-
import { r as BetterServer } from "../server-types-
|
|
4
|
-
import { a as AuthorizedContext, l 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, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
1
|
+
import { O as AnyFunctions, Ut as AnyAuthorizer, k as AnyModels, rn as PermissionRef } from "../types-BzIYSSWK.js";
|
|
2
|
+
import { t as BetterSupabase } from "../define-BvkaC3Oh.js";
|
|
3
|
+
import { r as BetterServer } from "../server-types-DEjva0MW.js";
|
|
4
|
+
import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-DCuO1ZhB.js";
|
|
5
|
+
import { t as RefusalRedirects } from "../refusal-BX1EvmpJ.js";
|
|
6
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-Byr_j8G-.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
/** The part of a SolidStart `FetchEvent` the integration reads and writes. */
|
|
9
9
|
export interface SolidFetchEvent {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
2
|
-
import { n as defaultExpose } from "../respond-
|
|
3
|
-
import { i as requireCaller, o as runAction } from "../kit-
|
|
1
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-ddQ9Hzka.js";
|
|
2
|
+
import { n as defaultExpose } from "../respond-8A3EOo61.js";
|
|
3
|
+
import { i as requireCaller, o as runAction } from "../kit-D5rRAKWJ.js";
|
|
4
4
|
import { i as nitroCloudflareEnv } from "../shared-Ci1g9nl4.js";
|
|
5
|
-
import { i as localsOf, r as frameworkEntry } from "../framework-
|
|
6
|
-
import { r as refusalResponse } from "../refusal-
|
|
5
|
+
import { i as localsOf, r as frameworkEntry } from "../framework-z3KTPRjk.js";
|
|
6
|
+
import { r as refusalResponse } from "../refusal-rnbr6RZD.js";
|
|
7
7
|
import { t as beforeRoute } from "../before-route-Ra3OhI2x.js";
|
|
8
8
|
// src/solid-start/index.ts
|
|
9
9
|
/** SolidStart integration: middleware, guards and server function actions. */
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as DescribedFunction } from "../function-contract-DgDBYbXu.js";
|
|
2
2
|
import { C as ModelWebhook, D as ResourceOperation, E as OperationSource, O as SecurityRequirement, S as ModelTag, T as OAuthFlow, _ as ModelResponseOrRef, a as JsonSchema, b as ModelServer, c as ModelChannelOperation, d as ModelInfo, f as ModelMessage, g as ModelResponse, h as ModelParameter, i as JsonObject, k as TableVerb, l as ModelContent, m as ModelOperation, n as DataApiOperation, o as ModelBody, p as ModelMessageTrait, r as HttpMethod, s as ModelChannel, t as ApiModel, u as ModelExample, v as ModelSecurityProfileRequirement, w as ModelWorkflow, x as ModelStep, y as ModelSecurityScheme } from "../model-Lxa_mOzB.js";
|
|
3
|
-
import { a as ResourcePlan, o as StandardLike, r as ResourceDescription } from "../resource-
|
|
3
|
+
import { a as ResourcePlan, o as StandardLike, r as ResourceDescription } from "../resource-CaYpB07K.js";
|
|
4
4
|
import { a as FormatVersion, c as SpecDiagnostic, d as defineDocumentFormat, i as DocumentOf, l as VersionOf, n as DiagnosticSeverity, o as LowerContext, r as DocumentFormat, s as RenderedOf, t as AnyDocumentFormat, u as VersionStatus } from "../format-BT0Z3V54.js";
|
|
5
5
|
import { t as SPEC_PINS } from "../spec-pins-CuQ2anBw.js";
|
|
6
|
-
import { A as AnyOpenApiDocument, B as OpenApiSecurityRequirement, C as TopicInput, D as DEFAULT_ERRORS, E as CustomSecurity, F as OpenApi33PreviewDocument, H as RenderedOpenApi, I as OpenApiComponents, L as OpenApiDocument, M as OpenApi30Document, N as OpenApi31Document, O as PROBLEM_SCHEMA, P as OpenApi32Document, R as OpenApiDocuments, S as EventsOptions, T as DataApiOptions, V as OpenApiVersion, _ as WorkflowSource, a as OverlayEngine, b as CLOUD_EVENT_TRAIT, c as defineApi, d as BuiltModel, f as ComponentNameContext, g as RouteSpec, h as ResourceInput, i as OpenApiRenderResult, j as OPENAPI_33_PREVIEW_VERSION, k as SecurityPreset, l as ApiOptions, m as OperationIdContext, n as DefineApiOptions, o as RenderOptions, p as EnrichHooks, r as OpenApiRenderOptions, s as RenderResult, t as Api, u as ApiSource, v as BlockEventSchema, w as topicsFrom, x as CloudEventsInput, y as BlockEventSchemas, z as OpenApiInfo } from "../api-
|
|
6
|
+
import { A as AnyOpenApiDocument, B as OpenApiSecurityRequirement, C as TopicInput, D as DEFAULT_ERRORS, E as CustomSecurity, F as OpenApi33PreviewDocument, H as RenderedOpenApi, I as OpenApiComponents, L as OpenApiDocument, M as OpenApi30Document, N as OpenApi31Document, O as PROBLEM_SCHEMA, P as OpenApi32Document, R as OpenApiDocuments, S as EventsOptions, T as DataApiOptions, V as OpenApiVersion, _ as WorkflowSource, a as OverlayEngine, b as CLOUD_EVENT_TRAIT, c as defineApi, d as BuiltModel, f as ComponentNameContext, g as RouteSpec, h as ResourceInput, i as OpenApiRenderResult, j as OPENAPI_33_PREVIEW_VERSION, k as SecurityPreset, l as ApiOptions, m as OperationIdContext, n as DefineApiOptions, o as RenderOptions, p as EnrichHooks, r as OpenApiRenderOptions, s as RenderResult, t as Api, u as ApiSource, v as BlockEventSchema, w as topicsFrom, x as CloudEventsInput, y as BlockEventSchemas, z as OpenApiInfo } from "../api-XEaCJbgv.js";
|
|
7
7
|
/**
|
|
8
8
|
* Builds the version-neutral API model once per metadata, plugin list, block
|
|
9
9
|
* set and options object. Formats lower it to each version; `defineApi` wraps
|
package/dist/sql/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as BlockOptionsRegistry, j as BLOCK_OPTION_SCHEMAS, k as resolveBlock } from "../authorization-
|
|
2
|
-
import { A as declaredIndexes, C as OwnView, D as OwnIndex, E as DeclaredView, F as extensionSchema, I as policyGrants, L as rlsTables, M as declaredTables, N as declaredUpdatedAtTriggers, O as PolicyGrant, P as declaredViews, S as BlockSqlUpgrade, T as notNullCheckName, _ as BlockSqlDeprecation, a as BlockSqlContext, ar as DeclaredForeignKey, b as BlockSqlLayout, c as BlockSqlIdType, cr as auditRegistrations, d as MODULE_ID_TYPES, f as contractSignature, g as BlockSqlAccessProvider, h as BlockSql, i as BlockSqlAudit, j as declaredTableColumns, k as declaredColumnTypes, l as BlockSqlNames, m as moduleIdType, n as AuditCategory, o as BlockSqlContractFunction, or as sameTenantLayout, p as isBlockSqlIdType, r as BlockSqlAction, s as BlockSqlEmit, sr as AuditedTable, t as AUDIT_CATEGORIES, u as BlockSqlTableSpec, v as BlockSqlEntitlementsProvider, w as blockSqlVersion, x as BlockSqlTestFile, y as BlockSqlFile } from "../context-
|
|
3
|
-
import { n as BlockTables, r as blockTables, t as BlockTable } from "../block-tables-
|
|
4
|
-
import { a as appTableEventTypes } from "../app-tables-
|
|
5
|
-
import { $ as MigrationOptionUse, $t as BlockSqlTopic, A as declaredPolicies, At as BlockSqlExtension, B as catalogPolicy, Bt as moduleDataDir, C as isRule, Ct as APP_TABLES_MARKER, D as renderRulePolicy, Dt as instanceFunctions, E as renderRule, Et as DEFAULT_ROLES, F as Policy, Ft as moduleSchemaExtensions, G as readPolicy, Gt as BLOCK_RENAMES, H as policy, Ht as EntityRenamePlan, I as PolicyCommand, It as blockFileState, J as hasColumnAccess, Jt as renamedBlock, K as renderPolicy, Kt as currentBlockName, L as PolicyInput, Lt as isModuleDataFile, M as TENANT_SCOPE_NAMES, Mt as moduleEventTriggers, N as TENANT_SCOPE_POLICY, Nt as moduleHidingColumns, O as rulePolicy, Ot as SQL_MODULES, P as Grant, Pt as modulePermissionKeys, Q as sharedRolesProblems, Qt as upgradePlan, R as ReadPolicy, Rt as moduleFileVersion, S as disallowedPolicyCalls, St as moduleWritesText, T as readRulePolicies, Tt as appTablesFiles, U as readGrants, Ut as EntityRenameStep, V as maskSql, Vt as moduleFilePaths, W as readPolicies, Wt as entityRenamePlan, X as compileReadSet, Xt as InstalledBlock, Y as CompiledReadSet, Yt as BlockSqlUpgradePlan, Z as compileReadSets, Zt as moduleDeprecations, _ as Rule, _t as AdoptedTable, a as setTableFeature, at as templateFunctions, b as RulePolicyInput, bt as adoptedTables, c as BsbComment, ct as tenantsQuery, d as formatBsbComment, dt as sameTenantTrigger, en as customContracts, et as migrationOptionUses, f as parseBsbComment, ft as DataExportPlan, g as ReadRulePolicy, gt as resolveExposeColumns, h as PolicyFunctionsOptions, ht as excludedColumns, i as isTableFeature, it as scopeProblems, j as widenedCommands, jt as BlockSqlPermissionKey, k as appTablePolicyNotes, kt as resolveBlocks, l as BsbTag, lt as expiredFlagsQuery, m as POLICY_FUNCTIONS, mt as dataExportPlan, n as TableFeature, nn as moduleTopics, nt as SCOPE_ID_TYPES, o as tableFeatures, ot as subjectColumns, p as setBsbTag, pt as SECRET_COLUMNS, q as scopePolicyName, qt as formerBlockName, r as createsTable, rn as renderBlocks, rt as resolveProviderSql, s as tableTagComments, st as TenantQuery, t as TABLE_FEATURES, tn as moduleBody, tt as moduleLayout, u as commentOnTableSql, ut as sameTenantColumn, v as RuleOperator, vt as AdoptedView, w as policyFunctionsSql, wt as APP_TABLES_MODULE, x as RuleValue, xt as adoptedViews, y as RulePolicy, yt as adoptedColumnProblems, z as RenderPolicyOptions, zt as sameBlockFile } from "../index-
|
|
1
|
+
import { M as BlockOptionsRegistry, j as BLOCK_OPTION_SCHEMAS, k as resolveBlock } from "../authorization-2Rv1AJQJ.js";
|
|
2
|
+
import { A as declaredIndexes, C as OwnView, D as OwnIndex, E as DeclaredView, F as extensionSchema, I as policyGrants, L as rlsTables, M as declaredTables, N as declaredUpdatedAtTriggers, O as PolicyGrant, P as declaredViews, S as BlockSqlUpgrade, T as notNullCheckName, _ as BlockSqlDeprecation, a as BlockSqlContext, ar as DeclaredForeignKey, b as BlockSqlLayout, c as BlockSqlIdType, cr as auditRegistrations, d as MODULE_ID_TYPES, f as contractSignature, g as BlockSqlAccessProvider, h as BlockSql, i as BlockSqlAudit, j as declaredTableColumns, k as declaredColumnTypes, l as BlockSqlNames, m as moduleIdType, n as AuditCategory, o as BlockSqlContractFunction, or as sameTenantLayout, p as isBlockSqlIdType, r as BlockSqlAction, s as BlockSqlEmit, sr as AuditedTable, t as AUDIT_CATEGORIES, u as BlockSqlTableSpec, v as BlockSqlEntitlementsProvider, w as blockSqlVersion, x as BlockSqlTestFile, y as BlockSqlFile } from "../context-yfOlyAqb.js";
|
|
3
|
+
import { n as BlockTables, r as blockTables, t as BlockTable } from "../block-tables-DPOgnT3y.js";
|
|
4
|
+
import { a as appTableEventTypes } from "../app-tables-C0XVpQEJ.js";
|
|
5
|
+
import { $ as MigrationOptionUse, $t as BlockSqlTopic, A as declaredPolicies, At as BlockSqlExtension, B as catalogPolicy, Bt as moduleDataDir, C as isRule, Ct as APP_TABLES_MARKER, D as renderRulePolicy, Dt as instanceFunctions, E as renderRule, Et as DEFAULT_ROLES, F as Policy, Ft as moduleSchemaExtensions, G as readPolicy, Gt as BLOCK_RENAMES, H as policy, Ht as EntityRenamePlan, I as PolicyCommand, It as blockFileState, J as hasColumnAccess, Jt as renamedBlock, K as renderPolicy, Kt as currentBlockName, L as PolicyInput, Lt as isModuleDataFile, M as TENANT_SCOPE_NAMES, Mt as moduleEventTriggers, N as TENANT_SCOPE_POLICY, Nt as moduleHidingColumns, O as rulePolicy, Ot as SQL_MODULES, P as Grant, Pt as modulePermissionKeys, Q as sharedRolesProblems, Qt as upgradePlan, R as ReadPolicy, Rt as moduleFileVersion, S as disallowedPolicyCalls, St as moduleWritesText, T as readRulePolicies, Tt as appTablesFiles, U as readGrants, Ut as EntityRenameStep, V as maskSql, Vt as moduleFilePaths, W as readPolicies, Wt as entityRenamePlan, X as compileReadSet, Xt as InstalledBlock, Y as CompiledReadSet, Yt as BlockSqlUpgradePlan, Z as compileReadSets, Zt as moduleDeprecations, _ as Rule, _t as AdoptedTable, a as setTableFeature, at as templateFunctions, b as RulePolicyInput, bt as adoptedTables, c as BsbComment, ct as tenantsQuery, d as formatBsbComment, dt as sameTenantTrigger, en as customContracts, et as migrationOptionUses, f as parseBsbComment, ft as DataExportPlan, g as ReadRulePolicy, gt as resolveExposeColumns, h as PolicyFunctionsOptions, ht as excludedColumns, i as isTableFeature, it as scopeProblems, j as widenedCommands, jt as BlockSqlPermissionKey, k as appTablePolicyNotes, kt as resolveBlocks, l as BsbTag, lt as expiredFlagsQuery, m as POLICY_FUNCTIONS, mt as dataExportPlan, n as TableFeature, nn as moduleTopics, nt as SCOPE_ID_TYPES, o as tableFeatures, ot as subjectColumns, p as setBsbTag, pt as SECRET_COLUMNS, q as scopePolicyName, qt as formerBlockName, r as createsTable, rn as renderBlocks, rt as resolveProviderSql, s as tableTagComments, st as TenantQuery, t as TABLE_FEATURES, tn as moduleBody, tt as moduleLayout, u as commentOnTableSql, ut as sameTenantColumn, v as RuleOperator, vt as AdoptedView, w as policyFunctionsSql, wt as APP_TABLES_MODULE, x as RuleValue, xt as adoptedViews, y as RulePolicy, yt as adoptedColumnProblems, z as RenderPolicyOptions, zt as sameBlockFile } from "../index-6H-8Ib1w.js";
|
|
6
6
|
export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, type AdoptedTable, type AdoptedView, type AuditCategory, type AuditedTable, BLOCK_OPTION_SCHEMAS, BLOCK_RENAMES, type BlockOptionsRegistry, type BlockSql, type BlockSqlAccessProvider, type BlockSqlAction, type BlockSqlAudit, type BlockSqlContext, type BlockSqlContractFunction, type BlockSqlDeprecation, type BlockSqlEmit, type BlockSqlEntitlementsProvider, type BlockSqlExtension, type BlockSqlFile, type BlockSqlIdType, type BlockSqlLayout, type BlockSqlNames, type BlockSqlPermissionKey, type BlockSqlTableSpec, type BlockSqlTestFile, type BlockSqlTopic, type BlockSqlUpgrade, type BlockSqlUpgradePlan, type BlockTable, type BlockTables, type BsbComment, type BsbTag, type CompiledReadSet, DEFAULT_ROLES, type DataExportPlan, type DeclaredForeignKey, type DeclaredView, type EntityRenamePlan, type EntityRenameStep, type Grant, type InstalledBlock, MODULE_ID_TYPES, type MigrationOptionUse, type OwnIndex, type OwnView, POLICY_FUNCTIONS, type Policy, type PolicyCommand, type PolicyFunctionsOptions, type PolicyGrant, type PolicyInput, type ReadPolicy, type ReadRulePolicy, type RenderPolicyOptions, type Rule, type RuleOperator, type RulePolicy, type RulePolicyInput, type RuleValue, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, TABLE_FEATURES, TENANT_SCOPE_NAMES, TENANT_SCOPE_POLICY, type TableFeature, type TenantQuery, adoptedColumnProblems, adoptedTables, adoptedViews, appTableEventTypes, appTablePolicyNotes, appTablesFiles, auditRegistrations, blockFileState, blockSqlVersion, blockTables, catalogPolicy, commentOnTableSql, compileReadSet, compileReadSets, contractSignature, createsTable, currentBlockName, customContracts, dataExportPlan, declaredColumnTypes, declaredIndexes, declaredPolicies, declaredTableColumns, declaredTables, declaredUpdatedAtTriggers, declaredViews, disallowedPolicyCalls, entityRenamePlan, excludedColumns, expiredFlagsQuery, extensionSchema, formatBsbComment, formerBlockName, hasColumnAccess, instanceFunctions, isBlockSqlIdType, isModuleDataFile, isRule, isTableFeature, maskSql, migrationOptionUses, moduleBody, moduleDataDir, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleTopics, moduleWritesText, notNullCheckName, parseBsbComment, policy, policyFunctionsSql, policyGrants, readGrants, readPolicies, readPolicy, readRulePolicies, renamedBlock, renderBlocks, renderPolicy, renderRule, renderRulePolicy, resolveBlock, resolveBlocks, resolveExposeColumns, resolveProviderSql, rlsTables, rulePolicy, sameBlockFile, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopePolicyName, scopeProblems, setBsbTag, setTableFeature, sharedRolesProblems, subjectColumns, tableFeatures, tableTagComments, templateFunctions, tenantsQuery, upgradePlan, widenedCommands };
|
package/dist/sql/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as resolveBlock, h as appTableEventTypes, w as hasColumnAccess } from "../instances-
|
|
1
|
+
import { I as resolveBlock, h as appTableEventTypes, w as hasColumnAccess } from "../instances-xQ2lupVE.js";
|
|
2
2
|
import { c as templateFunctions, o as resolveProviderSql, s as scopeProblems, t as SCOPE_ID_TYPES } from "../access-sql-Dao1C0fz.js";
|
|
3
|
-
import { $ as moduleEventTriggers, A as blockTables, At as declaredViews, B as declaredPolicies, Bt as readPolicy, C as expiredFlagsQuery, Ct as moduleIdType, D as adoptedViews, Dt as declaredTableColumns, E as adoptedTables, Et as declaredIndexes, F as moduleTopics, Ft as catalogPolicy, G as APP_TABLES_MODULE, H as moduleDataDir, I as renderBlocks, It as maskSql, J as blockSqlVersion, K as appTablesFiles, L as moduleDeprecations, Lt as policy, M as entityRenamePlan, Mt as policyGrants, N as customContracts, Nt as rlsTables, O as moduleWritesText, Ot as declaredTables, P as moduleBody, Pt as auditRegistrations, Q as sameBlockFile, R as upgradePlan, Rt as readGrants, S as tenantsQuery, St as isBlockSqlIdType, T as adoptedColumnProblems, Tt as declaredColumnTypes, U as moduleFilePaths, V as widenedCommands, Vt as renderPolicy, W as APP_TABLES_MARKER, X as isModuleDataFile, Y as blockFileState, Z as moduleFileVersion, _ as renderRulePolicy, _t as formerBlockName, a as tableFeatures, at as TENANT_SCOPE_NAMES, b as compileReadSets, bt as MODULE_ID_TYPES, c as formatBsbComment, ct as resolveExposeColumns, d as POLICY_FUNCTIONS, dt as subjectColumns, et as moduleHidingColumns, f as disallowedPolicyCalls, ft as sameTenantColumn, g as renderRule, gt as currentBlockName, h as readRulePolicies, ht as BLOCK_RENAMES, i as setTableFeature, it as resolveBlocks, j as moduleLayout, jt as extensionSchema, k as instanceFunctions, kt as declaredUpdatedAtTriggers, l as parseBsbComment, lt as SECRET_COLUMNS, m as policyFunctionsSql, mt as migrationOptionUses, n as createsTable, nt as moduleSchemaExtensions, o as tableTagComments, ot as TENANT_SCOPE_POLICY, p as isRule, pt as sameTenantTrigger, q as scopePolicyName, r as isTableFeature, rt as SQL_MODULES, s as commentOnTableSql, st as excludedColumns, t as TABLE_FEATURES, tt as modulePermissionKeys, u as setBsbTag, ut as dataExportPlan, v as rulePolicy, vt as renamedBlock, w as sameTenantLayout, wt as BLOCK_OPTION_SCHEMAS, x as sharedRolesProblems, xt as contractSignature, y as compileReadSet, yt as AUDIT_CATEGORIES, z as appTablePolicyNotes, zt as readPolicies } from "../sql-
|
|
4
|
-
import { Z as notNullCheckName, a as DEFAULT_ROLES } from "../workflow-sdk-
|
|
3
|
+
import { $ as moduleEventTriggers, A as blockTables, At as declaredViews, B as declaredPolicies, Bt as readPolicy, C as expiredFlagsQuery, Ct as moduleIdType, D as adoptedViews, Dt as declaredTableColumns, E as adoptedTables, Et as declaredIndexes, F as moduleTopics, Ft as catalogPolicy, G as APP_TABLES_MODULE, H as moduleDataDir, I as renderBlocks, It as maskSql, J as blockSqlVersion, K as appTablesFiles, L as moduleDeprecations, Lt as policy, M as entityRenamePlan, Mt as policyGrants, N as customContracts, Nt as rlsTables, O as moduleWritesText, Ot as declaredTables, P as moduleBody, Pt as auditRegistrations, Q as sameBlockFile, R as upgradePlan, Rt as readGrants, S as tenantsQuery, St as isBlockSqlIdType, T as adoptedColumnProblems, Tt as declaredColumnTypes, U as moduleFilePaths, V as widenedCommands, Vt as renderPolicy, W as APP_TABLES_MARKER, X as isModuleDataFile, Y as blockFileState, Z as moduleFileVersion, _ as renderRulePolicy, _t as formerBlockName, a as tableFeatures, at as TENANT_SCOPE_NAMES, b as compileReadSets, bt as MODULE_ID_TYPES, c as formatBsbComment, ct as resolveExposeColumns, d as POLICY_FUNCTIONS, dt as subjectColumns, et as moduleHidingColumns, f as disallowedPolicyCalls, ft as sameTenantColumn, g as renderRule, gt as currentBlockName, h as readRulePolicies, ht as BLOCK_RENAMES, i as setTableFeature, it as resolveBlocks, j as moduleLayout, jt as extensionSchema, k as instanceFunctions, kt as declaredUpdatedAtTriggers, l as parseBsbComment, lt as SECRET_COLUMNS, m as policyFunctionsSql, mt as migrationOptionUses, n as createsTable, nt as moduleSchemaExtensions, o as tableTagComments, ot as TENANT_SCOPE_POLICY, p as isRule, pt as sameTenantTrigger, q as scopePolicyName, r as isTableFeature, rt as SQL_MODULES, s as commentOnTableSql, st as excludedColumns, t as TABLE_FEATURES, tt as modulePermissionKeys, u as setBsbTag, ut as dataExportPlan, v as rulePolicy, vt as renamedBlock, w as sameTenantLayout, wt as BLOCK_OPTION_SCHEMAS, x as sharedRolesProblems, xt as contractSignature, y as compileReadSet, yt as AUDIT_CATEGORIES, z as appTablePolicyNotes, zt as readPolicies } from "../sql-BChN3Hxv.js";
|
|
4
|
+
import { Z as notNullCheckName, a as DEFAULT_ROLES } from "../workflow-sdk-CBS8L2Ku.js";
|
|
5
5
|
export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, BLOCK_OPTION_SCHEMAS, BLOCK_RENAMES, DEFAULT_ROLES, MODULE_ID_TYPES, POLICY_FUNCTIONS, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, TABLE_FEATURES, TENANT_SCOPE_NAMES, TENANT_SCOPE_POLICY, adoptedColumnProblems, adoptedTables, adoptedViews, appTableEventTypes, appTablePolicyNotes, appTablesFiles, auditRegistrations, blockFileState, blockSqlVersion, blockTables, catalogPolicy, commentOnTableSql, compileReadSet, compileReadSets, contractSignature, createsTable, currentBlockName, customContracts, dataExportPlan, declaredColumnTypes, declaredIndexes, declaredPolicies, declaredTableColumns, declaredTables, declaredUpdatedAtTriggers, declaredViews, disallowedPolicyCalls, entityRenamePlan, excludedColumns, expiredFlagsQuery, extensionSchema, formatBsbComment, formerBlockName, hasColumnAccess, instanceFunctions, isBlockSqlIdType, isModuleDataFile, isRule, isTableFeature, maskSql, migrationOptionUses, moduleBody, moduleDataDir, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleTopics, moduleWritesText, notNullCheckName, parseBsbComment, policy, policyFunctionsSql, policyGrants, readGrants, readPolicies, readPolicy, readRulePolicies, renamedBlock, renderBlocks, renderPolicy, renderRule, renderRulePolicy, resolveBlock, resolveBlocks, resolveExposeColumns, resolveProviderSql, rlsTables, rulePolicy, sameBlockFile, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopePolicyName, scopeProblems, setBsbTag, setTableFeature, sharedRolesProblems, subjectColumns, tableFeatures, tableTagComments, templateFunctions, tenantsQuery, upgradePlan, widenedCommands };
|