better-supabase 0.32.0 → 0.34.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/README.md +11 -10
- package/codemods/0.32.json +31 -0
- package/dist/{adapter-CPPN80mx.js → adapter-CWzyKepA.js} +45 -16
- package/dist/{agents-BEiBtYmh.d.ts → agents-DXiOPB3V.d.ts} +4 -4
- package/dist/{ai-cache-FMYzw7lW.d.ts → ai-cache-CLiAXCPH.d.ts} +4 -4
- package/dist/{ai-chat-B_P--Ie2.d.ts → ai-chat-DlcBdOhJ.d.ts} +4 -4
- package/dist/{ai-schedules-D_q1iclL.d.ts → ai-schedules-Drx2KRTn.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/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/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +3 -3
- package/dist/{api-keys-u2sXB-CZ.d.ts → api-keys-DbIbkGxx.d.ts} +4 -4
- package/dist/{api-CwzVbbw4.d.ts → api-myq2e9t5.d.ts} +5 -6
- package/dist/{app-tables-DomvYx5b.d.ts → app-tables-Don-aNOB.d.ts} +1 -1
- package/dist/{approvals-idpuhILk.d.ts → approvals-DZoGtNFv.d.ts} +5 -5
- package/dist/{assistant-CMKsaeJd.d.ts → assistant-BEbRPjhn.d.ts} +2 -2
- package/dist/astro/index.d.ts +7 -8
- package/dist/astro/index.js +5 -5
- package/dist/{auth-module-CVo86UKh.js → auth-module-CqXdm8qD.js} +1 -1
- package/dist/{authorization-CYu_UKX4.d.ts → authorization-DpVtxuKM.d.ts} +28 -2
- package/dist/{authorization-hooks-CldgvzBZ.d.ts → authorization-hooks-CxwsRnfV.d.ts} +2 -2
- package/dist/{authorizer-D6po_XZA.js → authorizer-BtIPDO-c.js} +33 -10
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-8LYVJE5W.d.ts → bind-BA05aoY9.d.ts} +7 -7
- package/dist/{block-env-BsLgZL2l.d.ts → block-env-UX42PHLP.d.ts} +4 -4
- package/dist/{block-helpers-JxiD1iw4.d.ts → block-helpers-disoUWCp.d.ts} +1 -1
- package/dist/{block-hooks-CJP5kGEa.d.ts → block-hooks-DrA_d1dJ.d.ts} +2 -2
- package/dist/{block-subjects-SyJwfgrX.d.ts → block-subjects-Br2MQNFn.d.ts} +1 -1
- package/dist/block-tables-Bre1zjau.d.ts +34 -0
- package/dist/{block-transport-Bbf1ZZre.d.ts → block-transport-BEtC_Kis.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-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 +4 -108
- package/dist/blocks/approvals/index.d.ts +4 -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/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/bookings/index.d.ts +4 -4
- package/dist/blocks/bulk/index.d.ts +4 -4
- package/dist/blocks/calendar/index.d.ts +5 -5
- package/dist/blocks/catalog/index.d.ts +6 -6
- 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/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/drive/index.js +1 -1
- 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 +6 -6
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/entitlements/index.js +2 -23
- package/dist/blocks/expenses/index.d.ts +5 -5
- package/dist/blocks/field-history/index.d.ts +4 -4
- package/dist/blocks/flags/index.d.ts +5 -5
- package/dist/blocks/flags/index.js +1 -1
- 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 +10 -10
- 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 +8 -8
- package/dist/blocks/knowledge/index.d.ts +3 -3
- 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 +5 -5
- 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/memberships/index.js +1 -1
- package/dist/blocks/memory/index.d.ts +4 -4
- 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/numbering/index.d.ts +4 -4
- package/dist/blocks/oauth-server/index.d.ts +5 -5
- 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/organizations/index.js +1 -1
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/permissions/index.d.ts +12 -7
- package/dist/blocks/permissions/index.js +6 -6
- 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 +8 -8
- 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 +8 -8
- 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/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/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/signatures/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- 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 +5 -5
- 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/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/webhooks/index.d.ts +13 -13
- package/dist/blocks/workflow-editor/index.d.ts +9 -9
- package/dist/blocks/workflow-editor/index.js +2 -1
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-DG443336.d.ts → bookings-Br0VXzaf.d.ts} +3 -3
- package/dist/{bucket-Clq5xINQ.d.ts → bucket-DvG66r5G.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/claim-names-BKig1LOk.js +24 -0
- package/dist/claims/index.d.ts +8 -0
- package/dist/claims/index.js +8 -0
- package/dist/{claims-DRmafYVK.js → claims-CqTr_N1n.js} +13 -5
- package/dist/cli/add-C13ZqJ_N.js +1 -0
- package/dist/cli/{add-fzRPyIED.js → add-DoEtJhZG.js} +3 -2
- package/dist/cli/{add-ChoHyBhz.js → add-THXE7juv.js} +11 -11
- package/dist/cli/{app-table-files-C0OtdUVu.js → app-table-files-BqLd5TuX.js} +3 -3
- package/dist/cli/{providers-DpfoF3VC.js → authorization-DJkkOjjG.js} +25 -93
- package/dist/cli/{backfill-Dq2XMXf9.js → backfill-D-2W0fNT.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CCzp0eAH.js → blocks-BVU_FoLo.js} +1 -1
- package/dist/cli/{blocks-DVhJOzFj.js → blocks-XwUHeyUH.js} +1 -1
- package/dist/cli/{cache-CoC-1i1O.js → cache-D4nwCBXc.js} +1 -1
- package/dist/cli/{codemod-pyf6HmS9.js → codemod-Dh4lf_k4.js} +5 -4
- package/dist/cli/{config-D0m2rQqk.js → config-CrwCec-B.js} +1 -1
- package/dist/cli/{config-Dyl3iX3u.js → config-DrrkMihk.js} +1 -0
- package/dist/cli/{content-mapper-ChSVT9Tq.js → content-mapper-CwFH_PEn.js} +2 -2
- package/dist/cli/{db-dFzhcozO.js → db-Diy1OebO.js} +2 -2
- package/dist/cli/{doctor-BKZsztFV.js → doctor-CyAMbZ_s.js} +59 -19
- package/dist/cli/{gen-BN_eh6rE.js → gen-EAUNnUY7.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-CaDDt8F6.js → init-BRmmmGHJ.js} +9 -9
- package/dist/cli/{live-KU41LMGE.js → live-CV9mn-xC.js} +2 -2
- package/dist/cli/{mcp-C_m-TpLJ.js → mcp-CnaxcLWa.js} +2 -2
- package/dist/cli/{metadata-Bq4ra7zo.js → metadata-CFQGBR5E.js} +3 -3
- package/dist/cli/{migrate-DHG2Qz_K.js → migrate-z5oHDGNs.js} +1 -1
- package/dist/cli/{migration-safety-STVbiKhz.js → migration-safety-BtAPMEZa.js} +2 -2
- package/dist/cli/{migrations-O1QZoMiH.js → migrations-CNa62JSi.js} +2 -2
- package/dist/cli/{module-migration-DB9ntWM-.js → module-migration-CKJ8kRm1.js} +2 -2
- package/dist/cli/{powersync-CN3QPF2K.js → powersync-BgoAWeRT.js} +3 -3
- package/dist/cli/powersync-DoCruiOt.js +1 -0
- package/dist/cli/{print-DG7TRCi8.js → print-CoqKHoy0.js} +2 -2
- package/dist/cli/providers-CfbFxUOQ.js +99 -0
- package/dist/cli/{prune-workflows-DcNJUS1m.js → prune-workflows-BigCoXLw.js} +3 -3
- package/dist/cli/{remove-BpfYqP45.js → remove-C9zwn-Kk.js} +5 -5
- package/dist/cli/{render-Q7jnLn_C.js → render-DQCU_kBW.js} +7 -4
- package/dist/cli/{run-9NfabanB.js → run-CVaBuT18.js} +29 -29
- package/dist/cli/{run-D6K-qQIX.js → run-DOD00FFl.js} +9 -8
- package/dist/cli/{seed-B4H0Lco9.js → seed-BpaqqyO8.js} +2 -2
- package/dist/cli/seed-ByLneY1H.js +1 -0
- package/dist/cli/{shared-PrvYREVy.js → shared-COtj7l3r.js} +1 -1
- package/dist/cli/{snapshot-UfJsqfys.js → snapshot-BvlEmTB0.js} +3 -3
- package/dist/cli/{source-F3YTVvFo.js → source-BhZRCitG.js} +1 -1
- package/dist/cli/{source-args-DJMrW_jW.js → source-args-Bz5QQne2.js} +1 -1
- package/dist/cli/{spec-HQOBVbEO.js → spec-Bo2wIViH.js} +1 -1
- package/dist/cli/{spec-DsLQuJKp.js → spec-DsMWuJLv.js} +2 -2
- package/dist/cli/{sql-layout-CZ66pY8j.js → sql-layout-CA7xgRjR.js} +2 -2
- package/dist/cli/{sync-B12wbtFd.js → sync-D9xSGdzO.js} +4 -4
- package/dist/cli/{upgrade-C20z49De.js → upgrade-XK_CQKVJ.js} +2 -2
- package/dist/cli/{upgrade-AgUXFDo6.js → upgrade-Ykf0LLEB.js} +5 -5
- package/dist/cli/{version-DEUWW8cv.js → version-Dfdz7KSh.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 +1 -1
- package/dist/{client-BLor58Je.js → client-Bky2z09B.js} +1 -1
- package/dist/{cloud-event-bcaMqEbN.d.ts → cloud-event-DXWmXrus.d.ts} +1 -1
- package/dist/{compiler-CWishtY2.d.ts → compiler-qlXlokKn.d.ts} +2 -2
- package/dist/{composite-ClLWZIwX.d.ts → composite-CIxjVcL1.d.ts} +7 -7
- package/dist/{composite-BZMkWNOQ.js → composite-D2JnIiHt.js} +2 -2
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +2 -2
- package/dist/{config-BhExAhNK.js → config-Bu6pwqcO.js} +1 -1
- package/dist/{connectors-BImAu75R.d.ts → connectors-Cf2LeAuZ.d.ts} +4 -4
- package/dist/{context-DcxfrCml.d.ts → context-BGC0J3t9.d.ts} +15 -3
- package/dist/contract/index.d.ts +16 -0
- package/dist/contract/index.js +0 -0
- package/dist/{controller-D_UJBaEU.d.ts → controller-CQrkLoRX.d.ts} +1 -1
- package/dist/{conversion-7U1WeLxK.d.ts → conversion-C9rndpEI.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +1 -1
- package/dist/create/lite/index.d.ts +4 -4
- package/dist/create/lite/index.js +1 -1
- package/dist/credentials/index.d.ts +4 -4
- package/dist/{data-engine-B-D6bdyx.d.ts → data-engine-CMENsp3d.d.ts} +1 -1
- package/dist/{define-3RbqoF1S.d.ts → define-ITQA71fw.d.ts} +5 -5
- package/dist/{define-block-B_i9VPcc.d.ts → define-block-COmMkx2x.d.ts} +12 -12
- package/dist/{delegation-BRHHXERz.js → delegation-C2rLpkHO.js} +2 -7
- package/dist/{documents-6ov2gWh3.d.ts → documents-DeZw83ue.d.ts} +3 -3
- package/dist/edge/index.d.ts +13 -13
- package/dist/edge/index.js +9 -9
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/{embeddings-K0lH--nt.d.ts → embeddings-rVR2AKVz.d.ts} +1 -1
- package/dist/{ended-CCoE7XXY.d.ts → ended-NC_ZesY4.d.ts} +2 -2
- package/dist/{entitlements-XwpuBbKN.d.ts → entitlements-BOWTZaRf.d.ts} +21 -3
- package/dist/entitlements-Dydkg-TV.js +47 -0
- package/dist/{envelope-DAtaFJue.js → envelope-CapD-JtH.js} +3 -2
- package/dist/eve/index.d.ts +9 -9
- package/dist/eve/index.js +2 -2
- package/dist/{eve-Cf-QRGij.d.ts → eve-DIKjuPp5.d.ts} +2 -2
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-CfDdOwqg.d.ts → events-DVt3Z9hw.d.ts} +1 -1
- package/dist/{executor-ynEwaUZy.d.ts → executor-CFmee_nV.d.ts} +1 -1
- package/dist/{executor-CAhykadW.d.ts → executor-CHnoKOxk.d.ts} +4 -4
- package/dist/{executor-CbDX34I9.d.ts → executor-DqNRrFxx.d.ts} +1 -1
- package/dist/expo/index.d.ts +4 -4
- package/dist/expo/index.js +3 -3
- package/dist/{extension-LgaDPMJs.js → extension-Z8Pe7fXA.js} +1 -1
- package/dist/{field-errors-tQr-anYL.d.ts → field-errors-DxPZYw2m.d.ts} +10 -10
- package/dist/{fields-AKKMirg_.d.ts → fields-CAVk9dxX.d.ts} +1 -1
- package/dist/{filter-evaluate-Bhq99aEN.d.ts → filter-evaluate-Bz3Fzhz2.d.ts} +1 -1
- package/dist/{filter-query-B7A4l2xn.d.ts → filter-query-DV-x8fio.d.ts} +1 -1
- package/dist/{flags-D0npSE-5.js → flags-0EXDD3Iz.js} +1 -1
- package/dist/{flags-B5B4mkZV.d.ts → flags-6emyAXly.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +2 -2
- package/dist/flags-sdk/index.js +1 -1
- package/dist/{framework-CyDn_SXR.d.ts → framework-BFlaPuvv.d.ts} +8 -7
- package/dist/{framework-B1h-uquj.js → framework-ChzJYkJW.js} +3 -2
- package/dist/{gateway-Cg_MgGen.d.ts → gateway-DaekJ_Me.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 +14 -13
- package/dist/hono/index.js +9 -8
- package/dist/{inbox-BmSA9K01.d.ts → inbox-DavCzW7b.d.ts} +5 -5
- package/dist/{index-D2BGCjIz.d.ts → index-BIAtapnD.d.ts} +5 -5
- package/dist/index-BfU0KR0X.d.ts +107 -0
- package/dist/{index-xCpjvDVm.d.ts → index-Bhkag9ZE.d.ts} +14 -14
- package/dist/{index-B2871MHr.d.ts → index-Bz0WLuh_.d.ts} +5 -5
- package/dist/{index-D66_dYVi.d.ts → index-CJB50jzQ.d.ts} +4 -4
- package/dist/{index-B5_J-MaK.d.ts → index-CeUwyJ3Z.d.ts} +5 -5
- package/dist/{index-lazpPVr0.d.ts → index-D18su_r5.d.ts} +3 -3
- package/dist/index-DNAkWDXc.d.ts +289 -0
- package/dist/{index-CTpEQvIv.d.ts → index-Dvpu22CJ.d.ts} +1 -1
- package/dist/index-IKfbX_39.d.ts +23 -0
- package/dist/{index-DzBFdI9I.d.ts → index-M1izbwbN.d.ts} +1 -1
- package/dist/{index-CRrBZtKm.d.ts → index-QTZIopQj.d.ts} +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/{kit-CVZDd1X9.js → kit-9pZP5iLU.js} +42 -11
- package/dist/{kit-CJKo0soh.d.ts → kit-OgFOW9rX.d.ts} +4 -4
- package/dist/{knowledge-BUwbpS8I.d.ts → knowledge-BBC2sfAY.d.ts} +5 -5
- package/dist/lint/index.d.ts +1 -1
- package/dist/lint/index.js +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-CZ-K5aHX.d.ts → list-query-C7V8kUaD.d.ts} +3 -3
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +4 -289
- package/dist/mcp/index.js +52 -18
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{messaging-DMhtGxVv.d.ts → messaging-D5z2TR37.d.ts} +4 -4
- 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 +28 -26
- package/dist/next/index.js +11 -10
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{operations-D51ONRvR.d.ts → operations-BG6prEnh.d.ts} +1 -1
- package/dist/{options-B56njigZ.js → options-CjocPkX1.js} +2 -0
- package/dist/orpc/index.d.ts +8 -8
- package/dist/orpc/index.js +8 -8
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-C44Aa94K.d.ts → outbox-7zgh-7nw.d.ts} +4 -4
- package/dist/{permissions-B9aZZ9LR.js → permissions-BDt27oYF.js} +19 -14
- package/dist/permissions-CoHsUtZS.d.ts +44 -0
- package/dist/{pool-Bji4lnQM.d.ts → pool-D-4HyhuW.d.ts} +3 -3
- package/dist/{ports-C-hdygkZ.js → ports-CmEXVqhg.js} +1 -1
- package/dist/{ports-zFqRNXVJ.d.ts → ports-XvgCe7ey.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-2WjRrtmX.d.ts → postgrest-DZtM2nIS.d.ts} +1 -1
- package/dist/powersync/index.d.ts +6 -6
- package/dist/preset/index.d.ts +3 -3
- package/dist/{project-oNHntJ6T.js → project-B7nqCzn5.js} +2 -2
- package/dist/{provider-CH8McX3b.d.ts → provider-BI0KC4u5.d.ts} +1 -1
- package/dist/{push-token-a3Ev1U3L.d.ts → push-token-kcc04ZaS.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +8 -8
- 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 +8 -8
- package/dist/react/server.js +3 -3
- package/dist/react/session.d.ts +2 -2
- package/dist/{react-C40oomj7.js → react-COIov1yC.js} +1 -1
- package/dist/react-router/index.d.ts +6 -7
- package/dist/react-router/index.js +6 -6
- package/dist/realtime/index.d.ts +6 -6
- package/dist/realtime/index.js +1 -1
- package/dist/{record-form-DCIui2Ol.d.ts → record-form-DU2EoVsv.d.ts} +1 -1
- package/dist/{recordings-Dlpq8jUG.d.ts → recordings-D69Va7gP.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refresh-BK9epzeC.d.ts → refresh-BtbC2rZe.d.ts} +1 -1
- package/dist/{refusal-DhX7Xpfp.js → refusal-5c6UMpUP.js} +3 -3
- package/dist/{refusal-DEuFVi4s.d.ts → refusal-CGi-0Q18.d.ts} +3 -3
- package/dist/{resolve-DVOtYTAc.d.ts → resolve--LfVoOMg.d.ts} +1 -1
- package/dist/{resource-Cn6Bn-_o.js → resource-BbWk4hoP.js} +59 -15
- package/dist/{resource-BfsTJnxZ.d.ts → resource-DWllVW8k.d.ts} +6 -1
- package/dist/{resource-execute-DQRS7PFt.d.ts → resource-execute-DUBYKTYU.d.ts} +2 -2
- package/dist/{resource-types-DF6KDAZM.d.ts → resource-types-RgaljPs0.d.ts} +4 -4
- package/dist/{resources-CeY53FiJ.d.ts → resources-Bki1J4jy.d.ts} +2 -2
- package/dist/{resources-B0Vy7_wv.js → resources-DYSx9NYM.js} +1 -1
- package/dist/{respond-CkwkvFdZ.d.ts → respond-BYOV7KZp.d.ts} +1 -1
- package/dist/{respond-C2qvP1wv.js → respond-DLH4tD2d.js} +1 -1
- package/dist/{sales-lines-Bde9cV5F.d.ts → sales-lines-DuNVoKHA.d.ts} +1 -1
- package/dist/{sandboxes-DDWuD9fh.d.ts → sandboxes-B2hBoBvJ.d.ts} +1 -1
- package/dist/{scores-Bql-ABl0.d.ts → scores-FAORS4qU.d.ts} +5 -5
- package/dist/server/index.d.ts +31 -28
- package/dist/server/index.js +15 -11
- package/dist/{server-types-C3p3jUqr.d.ts → server-types-C2hlvhP4.d.ts} +39 -101
- package/dist/{session-BOch2y2z.d.ts → session-B4VasaAA.d.ts} +6 -6
- package/dist/{session-status-DRBRnZHx.d.ts → session-status-D8CBxCqv.d.ts} +2 -2
- package/dist/{sign-in-BmigClRh.js → sign-in-BMm1xhKq.js} +1 -1
- package/dist/{sign-in-Dxyi4aKu.d.ts → sign-in-CX1a5i2P.d.ts} +3 -34
- package/dist/{sign-in-CXOg2Dwb.js → sign-in-CxdoTEp5.js} +2 -2
- package/dist/{signers-Cz5ZhTHH.d.ts → signers-6ih6i9aq.d.ts} +4 -4
- package/dist/{signing-keys-DS-rIVzz.d.ts → signing-keys-De09WNJ3.d.ts} +2 -2
- package/dist/snapshot-BGsJw9xn.d.ts +83 -0
- package/dist/{view-YnesSUEa.js → snapshot-CVMSyTHH.js} +3 -109
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +6 -7
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +6 -5
- package/dist/sql/index.js +2 -2
- package/dist/{sql-BPV51R3A.js → sql-DdtukoIm.js} +405 -187
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-BEvNf1oW.d.ts → sso-CuzAjsc8.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -5
- package/dist/ssr/index.js +1 -1
- 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-DWkVSbFr.d.ts → subject-readers-BlD8tALG.d.ts} +2 -2
- package/dist/{subjects-vci6Wufh.d.ts → subjects-Bv2dPflD.d.ts} +3 -3
- package/dist/{support-rZbdU35s.d.ts → support-DxYI6sDM.d.ts} +4 -4
- package/dist/{support-view-WY4Y-A40.d.ts → support-view-DSmCett7.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 -8
- package/dist/sveltekit/index.js +5 -5
- package/dist/{tags-BVLELhOf.d.ts → tags--k2fbPfO.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -7
- package/dist/tanstack-start/index.js +5 -5
- package/dist/tenant-Beqd7TTq.js +48 -0
- package/dist/{tenant-RKvGBB-U.d.ts → tenant-DkKbvK5T.d.ts} +4 -5
- package/dist/testing/index.d.ts +71 -32
- package/dist/testing/index.js +136 -16
- package/dist/{timeline-Ck8OFuAN.d.ts → timeline-Bq658xsi.d.ts} +5 -5
- package/dist/{topic-Dr8VYE4D.d.ts → topic-B6zuexk7.d.ts} +5 -5
- package/dist/{topic-BBBCVLyS.js → topic-k17VvXRj.js} +1 -1
- package/dist/{types-Pv5WPfIC.d.ts → types-BBqP9H6w.d.ts} +4 -4
- package/dist/{types-WZUVlTXs.d.ts → types-BkYEUWdz.d.ts} +189 -1
- package/dist/{types-CCmW3MqI.d.ts → types-BvHw2cCS.d.ts} +2 -2
- package/dist/{types-D9FY9qSJ.d.ts → types-C8UyJOPJ.d.ts} +3 -3
- package/dist/{types-CvlJNzX4.d.ts → types-DCoqai8o.d.ts} +4 -4
- package/dist/{types-DWZubmwk.d.ts → types-Dh2OGEW5.d.ts} +10 -10
- package/dist/{types-BiedVwz_.d.ts → types-TH3zlMiM.d.ts} +1 -1
- package/dist/{types-CL-z0A4K.d.ts → types-d0JBRTAg.d.ts} +7 -7
- package/dist/{undo-BdoEJ6Ot.d.ts → undo-22ofP6Zp.d.ts} +2 -2
- package/dist/{usage-D27Uw426.d.ts → usage-CNCT6_3D.d.ts} +4 -4
- package/dist/{vault-Dx0LaNMX.d.ts → vault-yGQD5Rdl.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-DnL0Fgu0.d.ts → verify-BQu3eBNW.d.ts} +2 -2
- package/dist/view-BfEqjZJ_.js +117 -0
- package/dist/{view-DmEZA1fL.d.ts → view-Cy2XxYp1.d.ts} +14 -2
- package/dist/vue/index.d.ts +10 -10
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-BB7T05sc.d.ts → watch-topic-YYSVJGDY.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/builder/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/index.js +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/{workflow-sdk-D5zRSwxh.js → workflow-sdk-q2jnEaAJ.js} +2 -2
- package/dist/{workflow-sdk-DMpVSMB7.d.ts → workflow-sdk-yIkECybp.d.ts} +3 -3
- package/dist/{workflows-DKTw2PZo.d.ts → workflows-BljkWRxE.d.ts} +3 -3
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +12 -1
- package/schemas/config-v1.json +8 -0
- package/schemas/doctor-report-v1.json +1 -0
- package/dist/authorizer-AswD5q6g.d.ts +0 -116
- package/dist/cli/add-DlYL-1mF.js +0 -1
- package/dist/cli/powersync-DfeGl5N1.js +0 -1
- package/dist/cli/seed-BIB6-WPa.js +0 -1
- package/dist/tenant-BR7fvPj7.js +0 -26
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { Ct as Events, P as CredentialEventData } from "../events-
|
|
3
|
-
import { a as CredentialSubject, c as SetCredentialOptions, d as credentialRefInTenant, f as foreignCredentialRef, i as CredentialRef, l as StartAuthorizationOptions, m as tenantCredentialRef, n as CredentialCapabilities, o as CredentialToken, p as subjectFor, r as CredentialProvider, s as GetTokenOptions, t as CompleteAuthorizationOptions, u as StartAuthorizationResult } from "../provider-
|
|
4
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-
|
|
5
|
-
import { a as vaultCredentials, i as VaultInboundScheme, n as VaultCredentials, r as VaultCredentialsOptions, t as VaultCredentialRef } from "../vault-
|
|
2
|
+
import { Ct as Events, P as CredentialEventData } from "../events-DVt3Z9hw.js";
|
|
3
|
+
import { a as CredentialSubject, c as SetCredentialOptions, d as credentialRefInTenant, f as foreignCredentialRef, i as CredentialRef, l as StartAuthorizationOptions, m as tenantCredentialRef, n as CredentialCapabilities, o as CredentialToken, p as subjectFor, r as CredentialProvider, s as GetTokenOptions, t as CompleteAuthorizationOptions, u as StartAuthorizationResult } from "../provider-BI0KC4u5.js";
|
|
4
|
+
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-BEtC_Kis.js";
|
|
5
|
+
import { a as vaultCredentials, i as VaultInboundScheme, n as VaultCredentials, r as VaultCredentialsOptions, t as VaultCredentialRef } from "../vault-yGQD5Rdl.js";
|
|
6
6
|
/**
|
|
7
7
|
* One provider over several: each call goes to the provider whose `name` is the
|
|
8
8
|
* ref's `provider`. A ref no provider handles fails with `invalid_input`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as DbError, f as Result, x as DbErrorKind } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { Bt as Executor } from "./types-
|
|
2
|
+
import { Bt as Executor } from "./types-BkYEUWdz.js";
|
|
3
3
|
/** A queued local change: PowerSync's `CrudEntry`. */
|
|
4
4
|
interface CrudEntryLike {
|
|
5
5
|
/** `PUT`, `PATCH` or `DELETE` (PowerSync's `UpdateType`). */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, b as DbError, p as ThrowMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DRX6Ch1j.js";
|
|
4
|
-
import { Bt as Executor, Ct as ApplyExtension, Ft as RequestContext, It as WithExtension, K as Insert, O as AnyFunctions, St as AnyPlugin, Tt as ExtensionOf, Z as PrimaryKeyValue, a as CountMode, at as Schema, dt as TableMeta, ht as Update, it as Row, k as AnyModels, m as Operation, mt as UniqueWhere, nt as Relations, ot as SchemaMeta, pt as UniqueKeyName, st as Simplify, tt as RelationTypes, ut as TableKey } from "./types-
|
|
5
|
-
import { a as EventHandler, c as MutationNotice, d as RpcNotice, o as EventHub, s as EventName } from "./events-
|
|
4
|
+
import { Bt as Executor, Ct as ApplyExtension, Ft as RequestContext, It as WithExtension, K as Insert, O as AnyFunctions, St as AnyPlugin, Tt as ExtensionOf, Z as PrimaryKeyValue, a as CountMode, at as Schema, dt as TableMeta, ht as Update, it as Row, k as AnyModels, m as Operation, mt as UniqueWhere, nt as Relations, ot as SchemaMeta, pt as UniqueKeyName, st as Simplify, tt as RelationTypes, ut as TableKey } from "./types-BkYEUWdz.js";
|
|
5
|
+
import { a as EventHandler, c as MutationNotice, d as RpcNotice, o as EventHub, s as EventName } from "./events-DVt3Z9hw.js";
|
|
6
6
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
7
|
-
import { j as StorageApi, n as Bucket, r as BucketClient } from "./bucket-
|
|
8
|
-
import { h as FilterQuery } from "./filter-query-
|
|
9
|
-
import { a as PostgrestPlan, i as PostgrestCompileOptions } from "./postgrest-
|
|
7
|
+
import { j as StorageApi, n as Bucket, r as BucketClient } from "./bucket-DvG66r5G.js";
|
|
8
|
+
import { h as FilterQuery } from "./filter-query-DV-x8fio.js";
|
|
9
|
+
import { a as PostgrestPlan, i as PostgrestCompileOptions } from "./postgrest-DZtM2nIS.js";
|
|
10
10
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
11
11
|
/**
|
|
12
12
|
* What a mutation changed: a table, the primary keys of its rows and the
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1$1 } from "./standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "./block-fields-Puv5m5D3.js";
|
|
5
|
-
import { $ as RecordRef } from "./types-
|
|
6
|
-
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching, o as EventHub, wt as MergedEventMap, xt as EventMapOf } from "./events-
|
|
5
|
+
import { $ as RecordRef } from "./types-BkYEUWdz.js";
|
|
6
|
+
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching, o as EventHub, wt as MergedEventMap, xt as EventMapOf } from "./events-DVt3Z9hw.js";
|
|
7
7
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
8
|
-
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-
|
|
9
|
-
import { a as BlockTenantOptions, n as BlockOptions, r as BlockTemporalOptions } from "./block-helpers-
|
|
10
|
-
import { r as DbTransportSource, t as BlockTransport } from "./block-transport-
|
|
11
|
-
import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-
|
|
12
|
-
import { f as AiFiles, y as UploadClaimStorage } from "./types-
|
|
13
|
-
import { _ as JobHandler } from "./types-
|
|
8
|
+
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-BI0KC4u5.js";
|
|
9
|
+
import { a as BlockTenantOptions, n as BlockOptions, r as BlockTemporalOptions } from "./block-helpers-disoUWCp.js";
|
|
10
|
+
import { r as DbTransportSource, t as BlockTransport } from "./block-transport-BEtC_Kis.js";
|
|
11
|
+
import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-DrA_d1dJ.js";
|
|
12
|
+
import { f as AiFiles, y as UploadClaimStorage } from "./types-C8UyJOPJ.js";
|
|
13
|
+
import { _ as JobHandler } from "./types-Dh2OGEW5.js";
|
|
14
14
|
import { t as BlockOptionsSchema } from "./options-CRwTY_q2.js";
|
|
15
15
|
import { t as Author } from "./block-authors-C5z3tGVu.js";
|
|
16
|
-
import { d as BlockInstanceSurface } from "./define-
|
|
17
|
-
import { A as TtlPreset, C as TransformOptions, j as StorageApi, l as ImageTransform } from "./bucket-
|
|
16
|
+
import { d as BlockInstanceSurface } from "./define-ITQA71fw.js";
|
|
17
|
+
import { A as TtlPreset, C as TransformOptions, j as StorageApi, l as ImageTransform } from "./bucket-DvG66r5G.js";
|
|
18
18
|
import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec } from "./table-schema-CwXg7oBz.js";
|
|
19
|
-
import { i as EventSink } from "./cloud-event-
|
|
20
|
-
import { g as Workflows } from "./workflows-
|
|
19
|
+
import { i as EventSink } from "./cloud-event-DXWmXrus.js";
|
|
20
|
+
import { g as Workflows } from "./workflows-BljkWRxE.js";
|
|
21
21
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
22
22
|
/** A noun in its singular and plural snake_case forms, e.g. `work_item`. */
|
|
23
23
|
interface EntityNoun {
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { n as isRecord } from "./guards-CsRa6v57.js";
|
|
2
|
+
import { o as PERMISSION_CAP_CLAIM } from "./claim-names-BKig1LOk.js";
|
|
2
3
|
import { n as actorOf } from "./actor-B5b0i1Fs.js";
|
|
3
4
|
import { n as impersonatorClaim, t as actClaim } from "./impersonation-D-quM36V.js";
|
|
4
5
|
// src/auth/delegation.ts
|
|
5
6
|
/**
|
|
6
|
-
* The claim `forContext({ permissions })` sets: the permission keys the work
|
|
7
|
-
* may use. `better_supabase.cap_allows` refuses every other key, and a job
|
|
8
|
-
* queued under a cap keeps it.
|
|
9
|
-
*/
|
|
10
|
-
const PERMISSION_CAP_CLAIM = "bsb_permission_cap";
|
|
11
|
-
/**
|
|
12
7
|
* The permission cap claim's 0.14 name. Through 0.15 the access functions and
|
|
13
8
|
* `permissionCapOf` read it when `bsb_permission_cap` is missing.
|
|
14
9
|
*/
|
|
@@ -149,4 +144,4 @@ function contextClaims(context, options = {}) {
|
|
|
149
144
|
...support?.readOnly ? { readOnly: true } : {}
|
|
150
145
|
};
|
|
151
146
|
}
|
|
152
|
-
export {
|
|
147
|
+
export { narrowCap as a, delegatedClaims as i, LEGACY_PERMISSION_CAP_CLAIM as n, permissionCapOf as o, contextClaims as r, DELEGATION_CLAIMS as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, 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 { t as BlockTransport } from "./block-transport-
|
|
6
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
4
|
+
import { r as BlockTemporalOptions } from "./block-helpers-disoUWCp.js";
|
|
5
|
+
import { t as BlockTransport } from "./block-transport-BEtC_Kis.js";
|
|
6
|
+
import { n as BlockHooks } from "./block-hooks-DrA_d1dJ.js";
|
|
7
7
|
interface DocumentsOptions extends BlockTemporalOptions {
|
|
8
8
|
readonly transport: BlockTransport;
|
|
9
9
|
/**
|
package/dist/edge/index.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { f as Result } from "../result-DTOQRyGY.js";
|
|
2
2
|
import { t as StandardSchemaV1 } from "../standard-DRX6Ch1j.js";
|
|
3
|
-
import { O as AnyFunctions, k as AnyModels } from "../types-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-CJKo0soh.js";
|
|
3
|
+
import { Ht as AnyAuthorizer, O as AnyFunctions, k as AnyModels, nn as PermissionRef, tn as AuthzVersionCache } from "../types-BkYEUWdz.js";
|
|
4
|
+
import { t as BetterSupabase } from "../define-ITQA71fw.js";
|
|
5
|
+
import { n as AuthSession } from "../view-Cy2XxYp1.js";
|
|
6
|
+
import { l as ServerOptions, o as ServerContext, r as BetterServer } from "../server-types-C2hlvhP4.js";
|
|
7
|
+
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-BYOV7KZp.js";
|
|
8
|
+
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-OgFOW9rX.js";
|
|
10
9
|
import { n as FunctionContract, t as DescribedFunction } from "../function-contract-DgDBYbXu.js";
|
|
10
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-RgaljPs0.js";
|
|
11
11
|
import { t as Validated } from "../shared-DsBcvj6q.js";
|
|
12
12
|
import { n as SUPABASE_CORS_HEADERS, r as corsConfig, t as CorsOptions } from "../cors-9SDsndtb.js";
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as defineAction } from "../resource-execute-DQRS7PFt.js";
|
|
13
|
+
import { t as ResourceMap } from "../resources-Bki1J4jy.js";
|
|
14
|
+
import { t as defineAction } from "../resource-execute-DUBYKTYU.js";
|
|
16
15
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
17
16
|
/** The platform context Workers pass as the third `fetch` argument. */
|
|
18
17
|
interface EdgeExecutionContext {
|
|
@@ -129,7 +128,7 @@ export interface EdgeRoute<M extends AnyModels, F extends AnyFunctions, E, C = u
|
|
|
129
128
|
* are params, a final `*` matches the rest of the path.
|
|
130
129
|
*/
|
|
131
130
|
export type EdgeRoutes<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, B = unknown, Ref = unknown> = Readonly<Record<string, EdgeRouteHandler<M, F, E, C, P, Readonly<Record<string, string>>, B> | EdgeRoute<M, F, E, C, P, Readonly<Record<string, string>>, B, Ref>>>;
|
|
132
|
-
export interface BetterEdge<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, Ref = string, B = unknown> extends BetterServer<M, F, E, C, P, B> {
|
|
131
|
+
export interface BetterEdge<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, Ref = string, B = unknown, V extends AuthzVersionCache = AuthzVersionCache> extends BetterServer<M, F, E, C, P, B, V> {
|
|
133
132
|
/**
|
|
134
133
|
* A fetch handler (`Deno.serve`, Workers `fetch`) running as the caller.
|
|
135
134
|
* `Result`s become JSON or Problem Details; `undefined` becomes 204.
|
|
@@ -167,7 +166,8 @@ export interface BetterEdge<M extends AnyModels, F extends AnyFunctions, E, C =
|
|
|
167
166
|
resources(map: ResourceMap<M, Ref, ServerContext<M, F, E, C, P, B>["db"]>, options?: ResourcesOptions): EdgeHandler;
|
|
168
167
|
}
|
|
169
168
|
/** Fetch-handler integration for Supabase Edge Functions, Deno, Bun and Workers. */
|
|
170
|
-
export declare function createEdge<M extends AnyModels, D, F extends AnyFunctions, E, C = unknown, P = unknown, A extends AnyAuthorizer | undefined = undefined, B = unknown>(betterSupabase: BetterSupabase<M, D, F, E, C, P, B>, options?: EdgeOptions & {
|
|
169
|
+
export declare function createEdge<M extends AnyModels, D, F extends AnyFunctions, E, C = unknown, P = unknown, A extends AnyAuthorizer<V> | undefined = undefined, B = unknown, V extends AuthzVersionCache = AuthzVersionCache>(betterSupabase: BetterSupabase<M, D, F, E, C, P, B>, options?: EdgeOptions & {
|
|
171
170
|
readonly authorizer?: A;
|
|
172
|
-
|
|
171
|
+
readonly versions?: V;
|
|
172
|
+
}): BetterEdge<M, F, E, C, P, PermissionRef<A>, B, V>;
|
|
173
173
|
export { type ActionArgs, type BlockRequireOptions, type ContractOf, type CorsOptions, type EdgeExecutionContext, type EdgeHandler, type FunctionContract, type FunctionDefinition, type GuardOptions, type MiddlewareOptions, type ResourceAction, type ResourceContext, type ResourceHooks, type ResourceMap, type ResourceRouteOptions, SUPABASE_CORS_HEADERS, type TypedFunction, corsConfig, defineAction };
|
package/dist/edge/index.js
CHANGED
|
@@ -2,15 +2,15 @@ import { n as dbError } from "../errors-B7tCfCvX.js";
|
|
|
2
2
|
import { a as ok, r as err } from "../result-8xza7w5W.js";
|
|
3
3
|
import { n as validate } from "../standard-BD2aOUsf.js";
|
|
4
4
|
import { o as problemResponse } from "../problem-C0SVHhd3.js";
|
|
5
|
-
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
6
|
-
import { n as defaultExpose, o as respond, s as settle } from "../respond-
|
|
7
|
-
import { t as withBetterSupabase } from "../composite-
|
|
8
|
-
import { i as defineAction } from "../resource-
|
|
9
|
-
import { i as requireCaller } from "../kit-
|
|
5
|
+
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-CWzyKepA.js";
|
|
6
|
+
import { n as defaultExpose, o as respond, s as settle } from "../respond-DLH4tD2d.js";
|
|
7
|
+
import { t as withBetterSupabase } from "../composite-D2JnIiHt.js";
|
|
8
|
+
import { i as defineAction } from "../resource-BbWk4hoP.js";
|
|
9
|
+
import { i as requireCaller } from "../kit-9pZP5iLU.js";
|
|
10
10
|
import { t as withExtra } from "../extra-Dz9n5y1s.js";
|
|
11
|
-
import { n as resourceRouter } from "../resources-
|
|
11
|
+
import { n as resourceRouter } from "../resources-DYSx9NYM.js";
|
|
12
12
|
import { n as corsConfig, t as SUPABASE_CORS_HEADERS } from "../cors-DrDFLMNn.js";
|
|
13
|
-
import { t as EVERY_CALLER } from "../framework-
|
|
13
|
+
import { t as EVERY_CALLER } from "../framework-ChzJYkJW.js";
|
|
14
14
|
import { t as FUNCTION_DESCRIPTOR } from "../function-contract-Bf6llTkE.js";
|
|
15
15
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
16
16
|
import { withCors } from "@supabase/middleware/cors";
|
|
@@ -221,7 +221,7 @@ function createEdge(betterSupabase, options = {}) {
|
|
|
221
221
|
const caller = await requireCaller(ctx.auth, {
|
|
222
222
|
...shared,
|
|
223
223
|
...route.options
|
|
224
|
-
}, tenant,
|
|
224
|
+
}, tenant, server.authorizer, ctx, request.method);
|
|
225
225
|
if ("kind" in caller) return err(caller);
|
|
226
226
|
return route.handler(request, withExtra(ctx, {
|
|
227
227
|
params,
|
|
@@ -240,7 +240,7 @@ function createEdge(betterSupabase, options = {}) {
|
|
|
240
240
|
const { basePath, ...middlewareOptions } = resourcesOptions;
|
|
241
241
|
const router = resourceRouter(betterSupabase, map, {
|
|
242
242
|
...basePath === void 0 ? {} : { basePath },
|
|
243
|
-
...
|
|
243
|
+
...server.authorizer === void 0 ? {} : { authorizer: server.authorizer }
|
|
244
244
|
});
|
|
245
245
|
return serve((request, ctx) => {
|
|
246
246
|
const route = router.match(request);
|
package/dist/elysia/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "../refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "../refusal-CGi-0Q18.js";
|
|
2
2
|
import { t as Validated } from "../shared-DsBcvj6q.js";
|
|
3
3
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
4
4
|
interface ElysiaBridge<Entries extends readonly AnyEntry[]> {
|
package/dist/elysia/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as around } from "../shared-Ci1g9nl4.js";
|
|
2
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
2
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-5c6UMpUP.js";
|
|
3
3
|
import { bufferRequest } from "@supabase/middleware";
|
|
4
4
|
// src/bridges/elysia.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as KnowledgeSearchOptions, n as Embedder, o as KnowledgeHit, r as Knowledge } from "./knowledge-
|
|
1
|
+
import { d as KnowledgeSearchOptions, n as Embedder, o as KnowledgeHit, r as Knowledge } from "./knowledge-BBC2sfAY.js";
|
|
2
2
|
import { EmbeddingModel, RerankingModel, SourceDocumentUIPart, Tool, embedMany } from "ai";
|
|
3
3
|
type ProviderOptions = Parameters<typeof embedMany>[0]["providerOptions"];
|
|
4
4
|
interface EmbedWithOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ft as RequestContext } from "./types-
|
|
2
|
-
import { f as CookieOptions, r as AuthState } from "./resolve
|
|
1
|
+
import { Ft as RequestContext } from "./types-BkYEUWdz.js";
|
|
2
|
+
import { f as CookieOptions, r as AuthState } from "./resolve--LfVoOMg.js";
|
|
3
3
|
/** The repository context (`actor`, `claims`) for an auth state. */
|
|
4
4
|
declare function authContext(auth: AuthState): RequestContext;
|
|
5
5
|
/** `banned`: Auth rejected the token with `error_code: "user_banned"`. */
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { t as AuthSnapshot } from "./bind-
|
|
2
|
-
import {
|
|
1
|
+
import { t as AuthSnapshot } from "./bind-BA05aoY9.js";
|
|
2
|
+
import { n as AuthSession } from "./view-Cy2XxYp1.js";
|
|
3
|
+
/** Verified claims, read by name. */
|
|
4
|
+
type ClaimsRecord = Readonly<Record<string, unknown>>;
|
|
5
|
+
/** A server session, the client's `useAuth()` snapshot, or verified claims. */
|
|
6
|
+
type ClaimsSource<C = unknown, P = unknown> = AuthSession<C, P> | AuthSnapshot | ClaimsRecord;
|
|
3
7
|
/**
|
|
4
8
|
* One entry of the `memberships` claim when a hook writes it as a list. Hooks
|
|
5
9
|
* strip `null`s, so optional fields are absent rather than `null`.
|
|
@@ -49,4 +53,18 @@ interface EntitlementClaimOptions {
|
|
|
49
53
|
* or the client's `useAuth()` snapshot.
|
|
50
54
|
*/
|
|
51
55
|
declare function hasEntitlement<C>(session: AuthSession<C> | AuthSnapshot, tenantId: string, key: EntitlementKey<C>, claim?: string | EntitlementClaimOptions): boolean;
|
|
52
|
-
|
|
56
|
+
/**
|
|
57
|
+
* The features claim with its short codes turned back into feature keys, per
|
|
58
|
+
* tenant. `keys` is `entitlements.claim.keys` (feature key to short code); a
|
|
59
|
+
* code it doesn't list is kept as written. A malformed claim, or a tenant entry
|
|
60
|
+
* that isn't a list of strings, is left out.
|
|
61
|
+
*
|
|
62
|
+
* ```ts
|
|
63
|
+
* const features = decodeEntitlementClaim(claims, {
|
|
64
|
+
* keys: { "api.access": "a" },
|
|
65
|
+
* });
|
|
66
|
+
* features[tenantId]?.includes("api.access");
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
declare function decodeEntitlementClaim(source: ClaimsSource, options?: EntitlementClaimOptions): Readonly<Record<string, readonly string[]>>;
|
|
70
|
+
export { hasEntitlement as a, decodeEntitlementClaim as i, EntitlementKey as n, ClaimsRecord as o, MembershipClaim as r, ClaimsSource as s, EntitlementClaimOptions as t };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "./claim-names-BKig1LOk.js";
|
|
2
|
+
import { n as claimsFrom } from "./tenant-Beqd7TTq.js";
|
|
3
|
+
// src/auth/entitlements.ts
|
|
4
|
+
/**
|
|
5
|
+
* Whether the session's plan-features claim grants `key` in `tenantId`. `claim`
|
|
6
|
+
* is `config.claims.features` (default `features`), the claim
|
|
7
|
+
* `better_supabase.feature_claims()` fills, or `{ claim, keys }` when
|
|
8
|
+
* `entitlements.claim.keys` writes short codes. The claim is as fresh as the
|
|
9
|
+
* token: enforce it in RLS with `better_supabase.has_entitlement()`, and
|
|
10
|
+
* refresh the session after checkout. A tenant left out by
|
|
11
|
+
* `entitlements.claim.maxTenants` reads as not granted. Takes a server session
|
|
12
|
+
* or the client's `useAuth()` snapshot.
|
|
13
|
+
*/
|
|
14
|
+
function hasEntitlement(session, tenantId, key, claim = "features") {
|
|
15
|
+
const options = typeof claim === "string" ? { claim } : claim;
|
|
16
|
+
const claims = "kind" in session ? session.kind === "user" ? session.claims : void 0 : session.claims;
|
|
17
|
+
if (!isRecord(claims)) return false;
|
|
18
|
+
const features = claims[options.claim ?? "features"];
|
|
19
|
+
if (!isRecord(features) || !Object.hasOwn(features, tenantId)) return false;
|
|
20
|
+
const keys = features[tenantId];
|
|
21
|
+
const code = options.keys?.[key] ?? key;
|
|
22
|
+
return Array.isArray(keys) && keys.includes(code);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The features claim with its short codes turned back into feature keys, per
|
|
26
|
+
* tenant. `keys` is `entitlements.claim.keys` (feature key to short code); a
|
|
27
|
+
* code it doesn't list is kept as written. A malformed claim, or a tenant entry
|
|
28
|
+
* that isn't a list of strings, is left out.
|
|
29
|
+
*
|
|
30
|
+
* ```ts
|
|
31
|
+
* const features = decodeEntitlementClaim(claims, {
|
|
32
|
+
* keys: { "api.access": "a" },
|
|
33
|
+
* });
|
|
34
|
+
* features[tenantId]?.includes("api.access");
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
function decodeEntitlementClaim(source, options = {}) {
|
|
38
|
+
const features = claimsFrom(source)?.[options.claim ?? "features"];
|
|
39
|
+
if (!isRecord(features)) return {};
|
|
40
|
+
const byCode = /* @__PURE__ */ new Map();
|
|
41
|
+
for (const [key, code] of Object.entries(options.keys ?? {})) byCode.set(code, key);
|
|
42
|
+
const decoded = {};
|
|
43
|
+
for (const [tenant, codes] of Object.entries(features)) if (Array.isArray(codes) && codes.every((code) => typeof code === "string")) decoded[tenant] = codes.map((code) => byCode.get(code) ?? code);
|
|
44
|
+
return decoded;
|
|
45
|
+
}
|
|
46
|
+
const isRecord = (value) => typeof value === "object" && value !== null;
|
|
47
|
+
export { hasEntitlement as n, decodeEntitlementClaim as t };
|
|
@@ -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
3
|
import { a as ok, r as err } from "./result-8xza7w5W.js";
|
|
4
|
-
import { o as
|
|
4
|
+
import { o as PERMISSION_CAP_CLAIM } from "./claim-names-BKig1LOk.js";
|
|
5
|
+
import { o as tenantFrom, s as tenantPathsFor } from "./claims-CqTr_N1n.js";
|
|
5
6
|
import { n as impersonatorClaim, r as impersonatorOf } from "./impersonation-D-quM36V.js";
|
|
6
|
-
import {
|
|
7
|
+
import { i as delegatedClaims, o as permissionCapOf, t as DELEGATION_CLAIMS } from "./delegation-C2rLpkHO.js";
|
|
7
8
|
// src/blocks/queue/envelope.ts
|
|
8
9
|
/** Marks a payload that carries a job context; pgmq stores it as the payload. */
|
|
9
10
|
const ENVELOPE = "$bs";
|
package/dist/eve/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { Ft as RequestContext } from "../types-
|
|
3
|
-
import { a as ResolveAuthOptions, r as AuthState } from "../resolve
|
|
4
|
-
import { i as CredentialRef, r as CredentialProvider } from "../provider-
|
|
5
|
-
import { r as DbTransportSource, t as BlockTransport } from "../block-transport-
|
|
6
|
-
import { j as ScheduleOptions } from "../types-
|
|
7
|
-
import { P as AiToolPolicy, i as AiChat } from "../ai-chat-
|
|
8
|
-
import { l as Approvals } from "../approvals-
|
|
9
|
-
import { a as Inbox } from "../inbox-
|
|
10
|
-
import { S as EveToolContext, _ as EveApprovalResponseDecision, a as EveMemoryToolsContext, b as EveSessionContext, c as MemoryDocumentConflictError, d as supabaseDocumentBackend, f as supabaseMemory, g as EveApprovalResponseContext, h as EveApprovalPolicy, i as EveMemoryTool, l as SupabaseDocumentBackendOptions, m as EveApprovalContext, n as EveMemoryContext, o as EveRecallMessage, p as EveApprovalConfiguration, r as EveMemoryProvider, s as EveRecallResult, t as EveDocumentBackend, u as SupabaseMemoryOptions, v as EveApprovalStatus, x as EveToolApproval, y as EveSessionAuth } from "../eve-
|
|
2
|
+
import { Ft as RequestContext } from "../types-BkYEUWdz.js";
|
|
3
|
+
import { a as ResolveAuthOptions, r as AuthState } from "../resolve--LfVoOMg.js";
|
|
4
|
+
import { i as CredentialRef, r as CredentialProvider } from "../provider-BI0KC4u5.js";
|
|
5
|
+
import { r as DbTransportSource, t as BlockTransport } from "../block-transport-BEtC_Kis.js";
|
|
6
|
+
import { j as ScheduleOptions } from "../types-Dh2OGEW5.js";
|
|
7
|
+
import { P as AiToolPolicy, i as AiChat } from "../ai-chat-DlcBdOhJ.js";
|
|
8
|
+
import { l as Approvals } from "../approvals-DZoGtNFv.js";
|
|
9
|
+
import { a as Inbox } from "../inbox-DavCzW7b.js";
|
|
10
|
+
import { S as EveToolContext, _ as EveApprovalResponseDecision, a as EveMemoryToolsContext, b as EveSessionContext, c as MemoryDocumentConflictError, d as supabaseDocumentBackend, f as supabaseMemory, g as EveApprovalResponseContext, h as EveApprovalPolicy, i as EveMemoryTool, l as SupabaseDocumentBackendOptions, m as EveApprovalContext, n as EveMemoryContext, o as EveRecallMessage, p as EveApprovalConfiguration, r as EveMemoryProvider, s as EveRecallResult, t as EveDocumentBackend, u as SupabaseMemoryOptions, v as EveApprovalStatus, x as EveToolApproval, y as EveSessionAuth } from "../eve-DIKjuPp5.js";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
12
12
|
/** The user a tool runs as when the session has no Supabase user. */
|
|
13
13
|
interface EveRunAs {
|
package/dist/eve/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-Dv18UZ-I.js";
|
|
2
2
|
import { n as dbError } from "../errors-B7tCfCvX.js";
|
|
3
3
|
import { n as isRecord } from "../guards-CsRa6v57.js";
|
|
4
|
-
import { a as tenantClaimPaths, n as claimAt, t as DEFAULT_CLAIMS } from "../claims-
|
|
4
|
+
import { a as tenantClaimPaths, n as claimAt, t as DEFAULT_CLAIMS } from "../claims-CqTr_N1n.js";
|
|
5
5
|
import { t as importOptionalPeer } from "../optional-peer-5SOYr3lL.js";
|
|
6
6
|
import { r as agentClaims } from "../actor-B5b0i1Fs.js";
|
|
7
7
|
import { V as dbTransport } from "../block-helpers-I7UzjNEf.js";
|
|
8
|
+
import { t as isAnonymousUser } from "../view-BfEqjZJ_.js";
|
|
8
9
|
import { i as resolveAuth } from "../resolve-FW8oeXvh.js";
|
|
9
|
-
import { t as isAnonymousUser } from "../view-YnesSUEa.js";
|
|
10
10
|
import { t as createApprovals } from "../approvals-Da4uAANx.js";
|
|
11
11
|
// src/eve/ids.ts
|
|
12
12
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as KnowledgeSearchOptions, r as Knowledge } from "./knowledge-
|
|
2
|
-
import { t as Memory } from "./types-
|
|
1
|
+
import { d as KnowledgeSearchOptions, r as Knowledge } from "./knowledge-BBC2sfAY.js";
|
|
2
|
+
import { t as Memory } from "./types-DCoqai8o.js";
|
|
3
3
|
/**
|
|
4
4
|
* Eve's `SessionAuthContext`, typed structurally so this entry never imports
|
|
5
5
|
* eve. `attributes` carries `tenantId`, `roles` and `isAnonymous`.
|
package/dist/events/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as SaasEventData, A as CollaborationEventData, B as FormEventData, C as BillingEventData, Ct as Events, D as BlockEventPattern, Dt as mergeEvents, E as BlockEventMeta, Et as event, F as DataExportEventData, G as InviteCodeEventData, H as InboxEventData, J as NotificationEventData, K as LegalHoldEventData, M as CommerceSubjectEventData, N as ConnectorEventData, O as BlockEventType, P as CredentialEventData, Q as PushDeviceEventData, S as BLOCK_EVENT_RENAMES, St as EventSpec, T as BlockEvent, Tt as defineEvents, U as IncomingWebhookEventData, V as FormSubmissionEventData, W as InvitationEventData, X as OrganizationDomainEventData, Y as OrganizationDeletionEventData, Z as OrganizationEventData, _ as AnnouncementEventData, _t as WorkflowRunEventData, at as SsoProviderEventData, b as AuditRevealEventData, bt as EventMap, ct as SubjectEventType, dt as TemplateEventData, et as SaasSubjectEventData, ft as TimeEntryEventData, g as AiToolEventData, gt as WorkflowEventData, h as AiProviderKeyEventData, ht as WebhookEventData, it as SignatureEventData, j as CommerceEventData, k as BlockEventsMatching, lt as SupportEventData, m as AiChatEventData, mt as WaitlistEventData, nt as ScimEventData, ot as StorageObjectEventData, p as AgentEventData, pt as TimesheetEventData, q as NotificationDeliveryEventData, rt as SettingEventData, st as SubjectEventData, tt as SchedulingEventData, ut as TemplateApplicationEventData, v as ApiKeyEventData, vt as blockEventAttributes, w as BlockEmit, wt as MergedEventMap, x as BLOCK_ATTRIBUTES, xt as EventMapOf, y as AttachmentEventData, yt as emitBlockEvent, z as FlagEventData } from "../events-
|
|
2
|
-
import { A as PartyEventData, C as ForecastSnapshotEventData, D as MailMessageEventData, E as MailAccountEventData, F as SegmentEventData, I as SegmentMemberEventData, L as SlaEventData, M as PipelineStageEventData, N as QuoteEventData, O as MailTrackingEventData, P as SavedItemEventData, R as WorkItemEventData, S as EnrichmentEventData, T as JobEventData, a as RowEventData, b as EngagementEventData, c as httpSink, d as toHttp, f as ApplicationEventData, g as CollectionEventData, h as CollectionEntryEventData, i as ROW_EVENT_TYPES, j as PipelineEventData, l as isCloudEvent, n as HttpMode, o as forwardMutations, p as AssignmentEventData, r as HttpSinkOptions, s as fromHttp, t as ForwardOptions, u as toCloudEvents, v as DealEventData, w as InvoiceEventData, x as EngagementRecordingEventData, y as EmployeeEventData, z as onBlockEvent } from "../index-
|
|
3
|
-
import { a as ForwardBlockOptions, i as EventSink, n as CloudEventOptions, o as blockCloudEvent, r as DataschemaContext, s as forwardBlockEvents, t as CloudEvent } from "../cloud-event-
|
|
1
|
+
import { $ as SaasEventData, A as CollaborationEventData, B as FormEventData, C as BillingEventData, Ct as Events, D as BlockEventPattern, Dt as mergeEvents, E as BlockEventMeta, Et as event, F as DataExportEventData, G as InviteCodeEventData, H as InboxEventData, J as NotificationEventData, K as LegalHoldEventData, M as CommerceSubjectEventData, N as ConnectorEventData, O as BlockEventType, P as CredentialEventData, Q as PushDeviceEventData, S as BLOCK_EVENT_RENAMES, St as EventSpec, T as BlockEvent, Tt as defineEvents, U as IncomingWebhookEventData, V as FormSubmissionEventData, W as InvitationEventData, X as OrganizationDomainEventData, Y as OrganizationDeletionEventData, Z as OrganizationEventData, _ as AnnouncementEventData, _t as WorkflowRunEventData, at as SsoProviderEventData, b as AuditRevealEventData, bt as EventMap, ct as SubjectEventType, dt as TemplateEventData, et as SaasSubjectEventData, ft as TimeEntryEventData, g as AiToolEventData, gt as WorkflowEventData, h as AiProviderKeyEventData, ht as WebhookEventData, it as SignatureEventData, j as CommerceEventData, k as BlockEventsMatching, lt as SupportEventData, m as AiChatEventData, mt as WaitlistEventData, nt as ScimEventData, ot as StorageObjectEventData, p as AgentEventData, pt as TimesheetEventData, q as NotificationDeliveryEventData, rt as SettingEventData, st as SubjectEventData, tt as SchedulingEventData, ut as TemplateApplicationEventData, v as ApiKeyEventData, vt as blockEventAttributes, w as BlockEmit, wt as MergedEventMap, x as BLOCK_ATTRIBUTES, xt as EventMapOf, y as AttachmentEventData, yt as emitBlockEvent, z as FlagEventData } from "../events-DVt3Z9hw.js";
|
|
2
|
+
import { A as PartyEventData, C as ForecastSnapshotEventData, D as MailMessageEventData, E as MailAccountEventData, F as SegmentEventData, I as SegmentMemberEventData, L as SlaEventData, M as PipelineStageEventData, N as QuoteEventData, O as MailTrackingEventData, P as SavedItemEventData, R as WorkItemEventData, S as EnrichmentEventData, T as JobEventData, a as RowEventData, b as EngagementEventData, c as httpSink, d as toHttp, f as ApplicationEventData, g as CollectionEventData, h as CollectionEntryEventData, i as ROW_EVENT_TYPES, j as PipelineEventData, l as isCloudEvent, n as HttpMode, o as forwardMutations, p as AssignmentEventData, r as HttpSinkOptions, s as fromHttp, t as ForwardOptions, u as toCloudEvents, v as DealEventData, w as InvoiceEventData, x as EngagementRecordingEventData, y as EmployeeEventData, z as onBlockEvent } from "../index-D18su_r5.js";
|
|
3
|
+
import { a as ForwardBlockOptions, i as EventSink, n as CloudEventOptions, o as blockCloudEvent, r as DataschemaContext, s as forwardBlockEvents, t as CloudEvent } from "../cloud-event-DXWmXrus.js";
|
|
4
4
|
export { type AgentEventData, type AiChatEventData, type AiProviderKeyEventData, type AiToolEventData, type AnnouncementEventData, type ApiKeyEventData, type ApplicationEventData, type AssignmentEventData, type AttachmentEventData, type AuditRevealEventData, BLOCK_ATTRIBUTES, BLOCK_EVENT_RENAMES, type BillingEventData, type BlockEmit, type BlockEvent, type BlockEventMeta, type BlockEventPattern, type BlockEventType, type BlockEventsMatching, type CloudEvent, type CloudEventOptions, type CollaborationEventData, type CollectionEntryEventData, type CollectionEventData, type CommerceEventData, type CommerceSubjectEventData, type ConnectorEventData, type CredentialEventData, type DataExportEventData, type DataschemaContext, type DealEventData, type EmployeeEventData, type EngagementEventData, type EngagementRecordingEventData, type EnrichmentEventData, type EventMap, type EventMapOf, type EventSink, type EventSpec, type Events, type FlagEventData, type ForecastSnapshotEventData, type FormEventData, type FormSubmissionEventData, type ForwardBlockOptions, ForwardOptions, HttpMode, HttpSinkOptions, type InboxEventData, type IncomingWebhookEventData, type InvitationEventData, type InviteCodeEventData, type InvoiceEventData, type JobEventData, type LegalHoldEventData, type MailAccountEventData, type MailMessageEventData, type MailTrackingEventData, type MergedEventMap, type NotificationDeliveryEventData, type NotificationEventData, type OrganizationDeletionEventData, type OrganizationDomainEventData, type OrganizationEventData, type PartyEventData, type PipelineEventData, type PipelineStageEventData, type PushDeviceEventData, type QuoteEventData, ROW_EVENT_TYPES, RowEventData, type SaasEventData, type SaasSubjectEventData, type SavedItemEventData, type SchedulingEventData, type ScimEventData, type SegmentEventData, type SegmentMemberEventData, type SettingEventData, type SignatureEventData, type SlaEventData, type SsoProviderEventData, type StorageObjectEventData, type SubjectEventData, type SubjectEventType, type SupportEventData, type TemplateApplicationEventData, type TemplateEventData, type TimeEntryEventData, type TimesheetEventData, type WaitlistEventData, type WebhookEventData, type WorkItemEventData, type WorkflowEventData, type WorkflowRunEventData, blockCloudEvent, blockEventAttributes, defineEvents, emitBlockEvent, event, forwardBlockEvents, forwardMutations, fromHttp, httpSink, isCloudEvent, mergeEvents, onBlockEvent, toCloudEvents, toHttp };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError } from "./result-DTOQRyGY.js";
|
|
3
|
-
import { Ft as RequestContext, d as MutationIntent, f as MutationKind, m as Operation } from "./types-
|
|
3
|
+
import { Ft as RequestContext, d as MutationIntent, f as MutationKind, m as Operation } from "./types-BkYEUWdz.js";
|
|
4
4
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
5
5
|
/**
|
|
6
6
|
* Event maps: the types a block or an app emits and the data of each. Kept
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { E as RawDbError, b as DbError, f as Result } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { Bt as Executor, O as AnyFunctions, dt as TableMeta, k as AnyModels, m as Operation, ut as TableKey } from "./types-
|
|
3
|
-
import { mt as QuerySpec, t as BetterSupabase } from "./define-
|
|
4
|
-
import { i as ListDefinition } from "./list-query-
|
|
5
|
-
import { t as Compiler } from "./compiler-
|
|
2
|
+
import { Bt as Executor, O as AnyFunctions, dt as TableMeta, k as AnyModels, m as Operation, ut as TableKey } from "./types-BkYEUWdz.js";
|
|
3
|
+
import { mt as QuerySpec, t as BetterSupabase } from "./define-ITQA71fw.js";
|
|
4
|
+
import { i as ListDefinition } from "./list-query-C7V8kUaD.js";
|
|
5
|
+
import { t as Compiler } from "./compiler-qlXlokKn.js";
|
|
6
6
|
/** A value SQLite binds: booleans become `0`/`1`, objects JSON text. */
|
|
7
7
|
type SqliteValue = string | number | bigint | null;
|
|
8
8
|
interface SqliteQuery {
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { O as AnyFunctions, k as AnyModels } from "../types-
|
|
2
|
-
import { t as BetterSupabase } from "../define-
|
|
3
|
-
import {
|
|
4
|
-
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-
|
|
1
|
+
import { O as AnyFunctions, k as AnyModels } from "../types-BkYEUWdz.js";
|
|
2
|
+
import { t as BetterSupabase } from "../define-ITQA71fw.js";
|
|
3
|
+
import { i as ContextOptions, l as ServerOptions, o as ServerContext, r as BetterServer } from "../server-types-C2hlvhP4.js";
|
|
4
|
+
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-BYOV7KZp.js";
|
|
5
5
|
import { t as Validated } from "../shared-DsBcvj6q.js";
|
|
6
6
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
7
7
|
import { ImmutableRequest, MiddlewareFunction } from "expo-server";
|
package/dist/expo/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-Dv18UZ-I.js";
|
|
2
2
|
import { c as toProblem } from "../problem-C0SVHhd3.js";
|
|
3
|
-
import { a as unexpectedResponse, c as extendServer, s as createServer } from "../adapter-
|
|
3
|
+
import { a as unexpectedResponse, c as extendServer, s as createServer } from "../adapter-CWzyKepA.js";
|
|
4
4
|
import { n as refreshFor, t as isPrefetch } from "../refresh-B8t_KE3s.js";
|
|
5
5
|
import { h as serializeCookie } from "../resolve-FW8oeXvh.js";
|
|
6
|
-
import { i as guard, n as defaultExpose, o as respond } from "../respond-
|
|
7
|
-
import { t as withBetterSupabase } from "../composite-
|
|
6
|
+
import { i as guard, n as defaultExpose, o as respond } from "../respond-DLH4tD2d.js";
|
|
7
|
+
import { t as withBetterSupabase } from "../composite-D2JnIiHt.js";
|
|
8
8
|
import { r as handoffOf } from "../shared-Ci1g9nl4.js";
|
|
9
9
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
10
10
|
import { StatusError, setResponseHeaders } from "expo-server";
|
|
@@ -2,7 +2,7 @@ import { t as DbException } from "./db-exception-Dv18UZ-I.js";
|
|
|
2
2
|
import { n as dbError } from "./errors-B7tCfCvX.js";
|
|
3
3
|
import { a as spansAllTenants, r as definePlugin } from "./plugin-Ca2qBiFZ.js";
|
|
4
4
|
import { n as scopeOperation } from "./scope-dD_OAgRU.js";
|
|
5
|
-
import { o as tenantFrom, s as tenantPathsFor } from "./claims-
|
|
5
|
+
import { o as tenantFrom, s as tenantPathsFor } from "./claims-CqTr_N1n.js";
|
|
6
6
|
import { a as insertsOnly, n as equals, r as forbidden, t as dbName } from "./extension-shared-DJb_PfD4.js";
|
|
7
7
|
// src/blocks/memberships/extension.ts
|
|
8
8
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { o as EventHub } from "./events-
|
|
3
|
-
import { o as BlockTenant } from "./block-helpers-
|
|
4
|
-
import { mt as QuerySpec } from "./define-
|
|
5
|
-
import { tt as TemplateValues } from "./bucket-
|
|
6
|
-
import { n as DataEngine } from "./data-engine-
|
|
7
|
-
import { Dn as GeneratedBlocks } from "./define-block-
|
|
8
|
-
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-
|
|
9
|
-
import { t as ClientPorts } from "./ports-
|
|
10
|
-
import { a as ClientAuth } from "./bind-
|
|
11
|
-
import { a as LiveSource, r as LiveCountSeed } from "./index-
|
|
2
|
+
import { o as EventHub } from "./events-DVt3Z9hw.js";
|
|
3
|
+
import { o as BlockTenant } from "./block-helpers-disoUWCp.js";
|
|
4
|
+
import { mt as QuerySpec } from "./define-ITQA71fw.js";
|
|
5
|
+
import { tt as TemplateValues } from "./bucket-DvG66r5G.js";
|
|
6
|
+
import { n as DataEngine } from "./data-engine-CMENsp3d.js";
|
|
7
|
+
import { Dn as GeneratedBlocks } from "./define-block-COmMkx2x.js";
|
|
8
|
+
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-B6zuexk7.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-XvgCe7ey.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-BA05aoY9.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-Bz0WLuh_.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
14
14
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as ValidationIssue } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { c as FilterFieldLabels, d as FilterLimits, h as FilterQuery, l as FilterFieldType, o as FilterField, s as FilterFieldInfo } from "./filter-query-
|
|
2
|
+
import { c as FilterFieldLabels, d as FilterLimits, h as FilterQuery, l as FilterFieldType, o as FilterField, s as FilterFieldInfo } from "./filter-query-DV-x8fio.js";
|
|
3
3
|
/** One field of `defineRuleFields`: a value rules on the subject type may test. */
|
|
4
4
|
interface RuleFieldDefinition {
|
|
5
5
|
readonly type: FilterFieldType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as FilterQuery, l as FilterFieldType, r as FilterClock } from "./filter-query-
|
|
1
|
+
import { h as FilterQuery, l as FilterFieldType, r as FilterClock } from "./filter-query-DV-x8fio.js";
|
|
2
2
|
/**
|
|
3
3
|
* A field a filter tree can test on a plain record. `FilterFieldInfo` from a
|
|
4
4
|
* list definition fits; the rules block builds these from its field catalog.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as isRecord } from "./guards-CsRa6v57.js";
|
|
2
|
-
import { t as DEFAULT_CLAIMS } from "./claims-
|
|
2
|
+
import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
|
|
3
3
|
import { A as recordsOf, I as stringsOf, L as textOf, f as errorText, n as applyTemporal, o as blockCall, w as optionalText } from "./block-helpers-I7UzjNEf.js";
|
|
4
4
|
// src/blocks/flags/flags.ts
|
|
5
5
|
const BUCKETS = 1e4;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ErrorMapper } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
3
|
-
import { t as BlockTransport } from "./block-transport-
|
|
2
|
+
import { r as BlockTemporalOptions } from "./block-helpers-disoUWCp.js";
|
|
3
|
+
import { t as BlockTransport } from "./block-transport-BEtC_Kis.js";
|
|
4
4
|
type FlagType = "boolean" | "string" | "number" | "object";
|
|
5
5
|
type FlagValue = boolean | string | number | null | FlagValue[] | {
|
|
6
6
|
[key: string]: FlagValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as AuthState } from "../resolve
|
|
2
|
-
import { a as FlagContextOptions, b as FlagsProvider, i as FlagContext, s as FlagDefinition, x as FlagsProviderOptions, y as FlagValue } from "../flags-
|
|
1
|
+
import { r as AuthState } from "../resolve--LfVoOMg.js";
|
|
2
|
+
import { a as FlagContextOptions, b as FlagsProvider, i as FlagContext, s as FlagDefinition, x as FlagsProviderOptions, y as FlagValue } from "../flags-6emyAXly.js";
|
|
3
3
|
import { t as FLAG_OVERRIDES_COOKIE } from "../cookie-DDkqvqe4.js";
|
|
4
4
|
/** One Flags SDK entity; Vercel Flags targets it as `<name>.id`. */
|
|
5
5
|
interface FlagsSdkEntity {
|
package/dist/flags-sdk/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as errorText } from "../block-helpers-I7UzjNEf.js";
|
|
2
2
|
import { n as jwtClaimsOf } from "../claims-DouHL7ZL.js";
|
|
3
3
|
import { t as FLAG_OVERRIDES_COOKIE } from "../cookie-DJI6xXJ9.js";
|
|
4
|
-
import { a as evaluateFlag, c as flagContext, i as createFlagsProvider } from "../flags-
|
|
4
|
+
import { a as evaluateFlag, c as flagContext, i as createFlagsProvider } from "../flags-0EXDD3Iz.js";
|
|
5
5
|
import { getEnv } from "@supabase/middleware";
|
|
6
6
|
// src/flags-sdk/flags-sdk.ts
|
|
7
7
|
function originOf(origin, key) {
|