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
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Dt as HasFlag, Mt as Plugin, Pt as RepositoryExtension, Z as PrimaryKeyValue } from "../../types-
|
|
6
|
-
import { A as CollaborationEventData, Ct as Events } from "../../events-
|
|
5
|
+
import { Dt as HasFlag, Mt as Plugin, Pt as RepositoryExtension, Z as PrimaryKeyValue } from "../../types-BkYEUWdz.js";
|
|
6
|
+
import { A as CollaborationEventData, Ct as Events } from "../../events-DVt3Z9hw.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
9
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
10
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
8
|
+
import { n as BlockOptions } from "../../block-helpers-disoUWCp.js";
|
|
9
|
+
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
10
|
+
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
11
|
+
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
12
12
|
interface TrashOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
13
13
|
/**
|
|
14
14
|
* A Standard Schema for the trash item's extra columns
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
2
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
-
import { n as Controller } from "../../controller-
|
|
4
|
-
import { a as UndoToken, c as undoToken, i as UndoOptions, n as Undo, o as createUndo, r as UndoCall, s as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-
|
|
1
|
+
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
2
|
+
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
3
|
+
import { n as Controller } from "../../controller-CQrkLoRX.js";
|
|
4
|
+
import { a as UndoToken, c as undoToken, i as UndoOptions, n as Undo, o as createUndo, r as UndoCall, s as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-22ofP6Zp.js";
|
|
5
5
|
interface UndoEntry {
|
|
6
6
|
readonly id: number;
|
|
7
7
|
/** What the toast or menu shows, e.g. "Moved 3 tasks". */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Mt as Plugin } from "../../types-
|
|
2
|
+
import { Mt as Plugin } from "../../types-BkYEUWdz.js";
|
|
3
3
|
import { t as UpdatedAtSqlOptions } from "../../options-CJVYQue3.js";
|
|
4
|
-
import { r as Block } from "../../define-block-
|
|
4
|
+
import { r as Block } from "../../define-block-COmMkx2x.js";
|
|
5
5
|
/**
|
|
6
6
|
* The `updated-at` block's repository extension. Stamps the columns generated
|
|
7
7
|
* as `Flags.timestamps`: `createdAt` on insert, `updatedAt` on insert and
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DTOQRyGY.js";
|
|
2
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
2
|
+
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
3
3
|
import { n as StripeSource, t as StripeClient } from "../../stripe-Bl-sjnl6.js";
|
|
4
|
-
import { _ as reportUsageToStripe, a as Usage, c as UsageEntry, d as UsageMeterInfo, f as UsageOptions, g as createUsage, h as UsageStatus, i as ReportUsageResult, l as UsageHistoryEntry, m as UsageRecorded, n as RecordUsageOptions, o as UsageBatchRecorded, p as UsagePeriod, r as ReportUsageOptions, s as UsageBreakdownEntry, t as PurgeUsageOptions, u as UsageHistoryOptions } from "../../usage-
|
|
5
|
-
import { c as BlockOf } from "../../define-block-
|
|
6
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
4
|
+
import { _ as reportUsageToStripe, a as Usage, c as UsageEntry, d as UsageMeterInfo, f as UsageOptions, g as createUsage, h as UsageStatus, i as ReportUsageResult, l as UsageHistoryEntry, m as UsageRecorded, n as RecordUsageOptions, o as UsageBatchRecorded, p as UsagePeriod, r as ReportUsageOptions, s as UsageBreakdownEntry, t as PurgeUsageOptions, u as UsageHistoryOptions } from "../../usage-CNCT6_3D.js";
|
|
5
|
+
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
6
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
7
7
|
/** The `usage` block's manifest (ADR 0029). */
|
|
8
8
|
export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
|
|
9
9
|
interface UsageMeterControllerOptions {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
|
-
import { Ct as Events } from "../../events-
|
|
3
|
+
import { Ct as Events } from "../../events-DVt3Z9hw.js";
|
|
4
4
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
5
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
6
|
-
import { s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
7
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
5
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-disoUWCp.js";
|
|
6
|
+
import { s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
7
|
+
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
8
8
|
import { a as ProblemFormat, t as BlockProblemOptions } from "../../problem-NGBjN-TO.js";
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
10
10
|
import { n as Jwks } from "../../jws-CxgTsbgG.js";
|
|
11
11
|
/** The Vercel environments a resource's secrets reach. */
|
|
12
12
|
type VercelEnvironment = "production" | "preview" | "development";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { $ as RecordRef } from "../../types-
|
|
6
|
-
import { A as CollaborationEventData, Ct as Events } from "../../events-
|
|
5
|
+
import { $ as RecordRef } from "../../types-BkYEUWdz.js";
|
|
6
|
+
import { A as CollaborationEventData, Ct as Events } from "../../events-DVt3Z9hw.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
9
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
10
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
11
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-
|
|
8
|
+
import { n as BlockOptions } from "../../block-helpers-disoUWCp.js";
|
|
9
|
+
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
10
|
+
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
11
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-COmMkx2x.js";
|
|
12
12
|
/** A JSON value, as a version's content holds it. */
|
|
13
13
|
type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
|
|
14
14
|
readonly [key: string]: JsonValue;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events, G as InviteCodeEventData, Z as OrganizationEventData, mt as WaitlistEventData } from "../../events-
|
|
5
|
+
import { Ct as Events, G as InviteCodeEventData, Z as OrganizationEventData, mt as WaitlistEventData } from "../../events-DVt3Z9hw.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
8
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
7
|
+
import { n as BlockOptions } from "../../block-helpers-disoUWCp.js";
|
|
8
|
+
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
10
|
+
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
11
11
|
import { n as VerifyOptions } from "../../signatures-jPr9JXyw.js";
|
|
12
12
|
type WaitlistStatus = "waiting" | "approved" | "rejected" | "joined";
|
|
13
13
|
/** An entry. `F` types the extra columns the `fields` schema describes. */
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
|
-
import { Ft as RequestContext } from "../../types-
|
|
4
|
-
import { Ct as Events, U as IncomingWebhookEventData, ht as WebhookEventData, o as EventHub } from "../../events-
|
|
5
|
-
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../../provider-
|
|
6
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
7
|
-
import { n as SqlClient } from "../../executor-
|
|
8
|
-
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
10
|
-
import { C as QueueSchemas, _ as JobHandler, x as Queue } from "../../types-
|
|
3
|
+
import { Ft as RequestContext } from "../../types-BkYEUWdz.js";
|
|
4
|
+
import { Ct as Events, U as IncomingWebhookEventData, ht as WebhookEventData, o as EventHub } from "../../events-DVt3Z9hw.js";
|
|
5
|
+
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../../provider-BI0KC4u5.js";
|
|
6
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-disoUWCp.js";
|
|
7
|
+
import { n as SqlClient } from "../../executor-CFmee_nV.js";
|
|
8
|
+
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
10
|
+
import { C as QueueSchemas, _ as JobHandler, x as Queue } from "../../types-Dh2OGEW5.js";
|
|
11
11
|
import { t as BlockProblemOptions } from "../../problem-NGBjN-TO.js";
|
|
12
|
-
import { c as BlockOf } from "../../define-block-
|
|
13
|
-
import { i as EventSink, t as CloudEvent } from "../../cloud-event-
|
|
14
|
-
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-
|
|
12
|
+
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
13
|
+
import { i as EventSink, t as CloudEvent } from "../../cloud-event-DXWmXrus.js";
|
|
14
|
+
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CxwsRnfV.js";
|
|
15
15
|
import { a as verifySharedSecret, i as signWebhook, n as VerifyOptions, o as verifyWebhook, r as WebhookInput, t as VerifiedWebhook } from "../../signatures-jPr9JXyw.js";
|
|
16
|
-
import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-
|
|
17
|
-
import { A as IncomingVerify, C as isPublicAddress, D as IncomingDelivery, E as CreatedIncomingWebhook, F as UpdateIncomingWebhookInput, I as UpdatedIncomingWebhook, M as IncomingWebhooks, N as IncomingWebhooksOptions, O as IncomingDestination, P as RotatedIncomingSecret, S as ResolveHost, T as CreateIncomingWebhookInput, _ as WebhookResponse, a as WebhookSignInput, b as AllowUrl, c as standardWebhooks, d as RotateSecretOptions, f as WebhookSecretStore, g as WebhookRequest, h as WebhookPolicyError, i as StandardWebhooksOptions, j as IncomingWebhook, k as IncomingDestinationResult, l as standardWebhooksAsymmetric, m as FetchTransportOptions, n as HmacSignerOptions, o as WebhookSigner, p as sqlSecretStore, r as RawSigner, s as hmacSigner, t as AsymmetricWebhooksOptions, u as webhookPublicKey, v as WebhookTransport, w as publicUrl, x as PublicUrlOptions, y as fetchTransport } from "../../signers-
|
|
16
|
+
import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-BQu3eBNW.js";
|
|
17
|
+
import { A as IncomingVerify, C as isPublicAddress, D as IncomingDelivery, E as CreatedIncomingWebhook, F as UpdateIncomingWebhookInput, I as UpdatedIncomingWebhook, M as IncomingWebhooks, N as IncomingWebhooksOptions, O as IncomingDestination, P as RotatedIncomingSecret, S as ResolveHost, T as CreateIncomingWebhookInput, _ as WebhookResponse, a as WebhookSignInput, b as AllowUrl, c as standardWebhooks, d as RotateSecretOptions, f as WebhookSecretStore, g as WebhookRequest, h as WebhookPolicyError, i as StandardWebhooksOptions, j as IncomingWebhook, k as IncomingDestinationResult, l as standardWebhooksAsymmetric, m as FetchTransportOptions, n as HmacSignerOptions, o as WebhookSigner, p as sqlSecretStore, r as RawSigner, s as hmacSigner, t as AsymmetricWebhooksOptions, u as webhookPublicKey, v as WebhookTransport, w as publicUrl, x as PublicUrlOptions, y as fetchTransport } from "../../signers-6ih6i9aq.js";
|
|
18
18
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
19
19
|
/** Constant-time string comparison. */
|
|
20
20
|
export declare function timingSafeEqual(a: string, b: string): boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
3
3
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
4
|
-
import { Ct as Events, gt as WorkflowEventData } from "../../events-
|
|
5
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
6
|
-
import { c as BlockOf } from "../../define-block-
|
|
7
|
-
import { g as Workflows, n as WorkflowRun } from "../../workflows-
|
|
8
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
9
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
10
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
11
|
-
import { A as WorkflowVersionOwner, B as WorkflowGraphNode, C as WorkflowGrantPrincipal, D as WorkflowTrigger, E as WorkflowStepInfo, F as WorkflowFilterCondition, G as durationMs, H as WorkflowNodeKind, I as WorkflowFilterField, J as matchesFilter, K as evaluateCondition, L as WorkflowGraph, M as GraphScope, N as WorkflowCondition, O as WorkflowTriggerKind, P as WorkflowConditionOperator, R as WorkflowGraphDiff, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as approved, V as WorkflowNodeCondition, W as diffGraphs, X as validateGraph, Y as topologicalOrder, _ as WorkflowCredential, a as CredentialInput, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, j as WorkflowVersionStatus, k as WorkflowVersion, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, o as DefinitionInput, p as TriggerInput, q as filterConditionOf, r as BuilderStartCall, s as GrantInput, t as AlertInput, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WorkflowGraphEdge } from "../../types-
|
|
12
|
-
import { a as GraphSubject, c as startNodeOf, i as GraphStepCall, n as GraphRunFields, o as executeGraph, r as GraphRuntime, s as graphRunFields, t as GraphApprovalCall } from "../../executor-
|
|
4
|
+
import { Ct as Events, gt as WorkflowEventData } from "../../events-DVt3Z9hw.js";
|
|
5
|
+
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
6
|
+
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
7
|
+
import { g as Workflows, n as WorkflowRun } from "../../workflows-BljkWRxE.js";
|
|
8
|
+
import { p as SubscriptionStatus } from "../../topic-B6zuexk7.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
11
|
+
import { A as WorkflowVersionOwner, B as WorkflowGraphNode, C as WorkflowGrantPrincipal, D as WorkflowTrigger, E as WorkflowStepInfo, F as WorkflowFilterCondition, G as durationMs, H as WorkflowNodeKind, I as WorkflowFilterField, J as matchesFilter, K as evaluateCondition, L as WorkflowGraph, M as GraphScope, N as WorkflowCondition, O as WorkflowTriggerKind, P as WorkflowConditionOperator, R as WorkflowGraphDiff, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as approved, V as WorkflowNodeCondition, W as diffGraphs, X as validateGraph, Y as topologicalOrder, _ as WorkflowCredential, a as CredentialInput, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, j as WorkflowVersionStatus, k as WorkflowVersion, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, o as DefinitionInput, p as TriggerInput, q as filterConditionOf, r as BuilderStartCall, s as GrantInput, t as AlertInput, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WorkflowGraphEdge } from "../../types-d0JBRTAg.js";
|
|
12
|
+
import { a as GraphSubject, c as startNodeOf, i as GraphStepCall, n as GraphRunFields, o as executeGraph, r as GraphRuntime, s as graphRunFields, t as GraphApprovalCall } from "../../executor-DqNRrFxx.js";
|
|
13
13
|
/**
|
|
14
14
|
* The `workflow-editor` module's definitions, versions, triggers, credentials,
|
|
15
15
|
* step library, node runs and alerts. The engine plugs in through `compile` and
|
|
@@ -1,12 +1,13 @@
|
|
|
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, t as AsyncResult } from "../../result-8xza7w5W.js";
|
|
4
|
+
import { o as PERMISSION_CAP_CLAIM } from "../../claim-names-BKig1LOk.js";
|
|
4
5
|
import { t as workflowEditorSqlOptions } from "../../options-SlC_jZ7y.js";
|
|
5
6
|
import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
6
7
|
import { n as whileSignedIn, t as defineController } from "../../controller-BJmh7gFm.js";
|
|
7
8
|
import { A as recordsOf, C as optionalInstant, E as randomToken, I as stringsOf, L as textOf, N as seconds, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, k as recordOrEmpty, n as applyTemporal, o as blockCall, p as injectableOf, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
|
|
8
9
|
import { r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
|
|
9
|
-
import { n as LEGACY_PERMISSION_CAP_CLAIM
|
|
10
|
+
import { n as LEGACY_PERMISSION_CAP_CLAIM } from "../../delegation-C2rLpkHO.js";
|
|
10
11
|
import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6qpleR9.js";
|
|
11
12
|
import { n as blockFields } from "../../block-fields-Bjcv6_zc.js";
|
|
12
13
|
import { n as defineBlock } from "../../define-block-22Jv4U_-.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DTOQRyGY.js";
|
|
2
|
-
import { Ct as Events, _t as WorkflowRunEventData } from "../../events-
|
|
3
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
5
|
-
import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-
|
|
6
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
7
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
2
|
+
import { Ct as Events, _t as WorkflowRunEventData } from "../../events-DVt3Z9hw.js";
|
|
3
|
+
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
4
|
+
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
5
|
+
import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-BljkWRxE.js";
|
|
6
|
+
import { p as SubscriptionStatus } from "../../topic-B6zuexk7.js";
|
|
7
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
9
9
|
interface WorkflowRunsControllerOptions {
|
|
10
10
|
readonly client: {
|
|
11
11
|
readonly runs: Pick<Workflows["runs"], "list">;
|
|
@@ -3,9 +3,9 @@ import { t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "./block-fields-Puv5m5D3.js";
|
|
5
5
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
6
|
-
import { n as BlockOptions } from "./block-helpers-
|
|
7
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
8
|
-
import { _ as JobHandler } from "./types-
|
|
6
|
+
import { n as BlockOptions } from "./block-helpers-disoUWCp.js";
|
|
7
|
+
import { n as BlockHooks } from "./block-hooks-DrA_d1dJ.js";
|
|
8
|
+
import { _ as JobHandler } from "./types-Dh2OGEW5.js";
|
|
9
9
|
import { o as WeeklyHours } from "./availability-CebEOfMN.js";
|
|
10
10
|
/** An ISO weekday: 1 is Monday, 7 is Sunday. */
|
|
11
11
|
type BookingWeekday = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, f as Result, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
|
-
import { Ft as RequestContext, T as AccessBucketPolicy, _t as BucketLifecycle, bt as VersioningStatus, j as BucketPolicyName, yt as ObjectVersion } from "./types-
|
|
3
|
+
import { Ft as RequestContext, T as AccessBucketPolicy, _t as BucketLifecycle, bt as VersioningStatus, j as BucketPolicyName, yt as ObjectVersion } from "./types-BkYEUWdz.js";
|
|
4
4
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
5
5
|
/**
|
|
6
6
|
* Placeholder names in a `{name}` template; a rest placeholder `{...name}` is
|
package/dist/chat-sdk/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
3
|
-
import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../provider-
|
|
4
|
-
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-
|
|
3
|
+
import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider } 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
5
|
import { o as StreamStore } from "../store-c7QxUHX-.js";
|
|
6
|
-
import { u as MessageFile } from "../messaging-
|
|
7
|
-
import { c as ChatActionHook, d as IdentityRef, f as IdentityTarget, i as AuthorizationHooks, p as PrincipalByIdentity, s as ChatAction, t as ApprovalRequestRef } from "../authorization-hooks-
|
|
8
|
-
import { S as StoredInboundEvent, c as DeliveryStatus, f as InboxFileSource, i as Conversation, l as InboundResult, p as InboxMessage, y as PendingInboxFile } from "../types-
|
|
9
|
-
import { a as Inbox } from "../inbox-
|
|
6
|
+
import { u as MessageFile } from "../messaging-D5z2TR37.js";
|
|
7
|
+
import { c as ChatActionHook, d as IdentityRef, f as IdentityTarget, i as AuthorizationHooks, p as PrincipalByIdentity, s as ChatAction, t as ApprovalRequestRef } from "../authorization-hooks-CxwsRnfV.js";
|
|
8
|
+
import { S as StoredInboundEvent, c as DeliveryStatus, f as InboxFileSource, i as Conversation, l as InboundResult, p as InboxMessage, y as PendingInboxFile } from "../types-TH3zlMiM.js";
|
|
9
|
+
import { a as Inbox } from "../inbox-DavCzW7b.js";
|
|
10
10
|
import { Adapter, AdapterPostableMessage, Attachment, Author, ChatError, ChatInstance, Message, RawMessage, ScheduledMessage, StateAdapter, WebhookOptions } from "chat";
|
|
11
11
|
/** One status callback for a message the bot sent on a channel. */
|
|
12
12
|
interface DeliveryUpdate {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/core/claim-names.ts
|
|
2
|
+
/**
|
|
3
|
+
* The claim `forContext({ permissions })` sets: the permission keys the work
|
|
4
|
+
* may use. `better_supabase.cap_allows` refuses every other key, and a job
|
|
5
|
+
* queued under a cap keeps it.
|
|
6
|
+
*/
|
|
7
|
+
const PERMISSION_CAP_CLAIM = "bsb_permission_cap";
|
|
8
|
+
/**
|
|
9
|
+
* The authorization version an access token hook writes, so caches key on it. A
|
|
10
|
+
* provider bumps it when a user's grants change.
|
|
11
|
+
*/
|
|
12
|
+
const AUTHZ_VERSION_CLAIM = "authz_ver";
|
|
13
|
+
/** The caller's memberships, as a list of `{ scope, id, roles }`. */
|
|
14
|
+
const MEMBERSHIPS_CLAIM = "memberships";
|
|
15
|
+
/** Plan features per tenant (`{ [tenantId]: string[] }`). */
|
|
16
|
+
const FEATURES_CLAIM = "features";
|
|
17
|
+
/** Permission keys per tenant (`{ [tenantId]: string[] }`). */
|
|
18
|
+
const PERMISSIONS_CLAIM = "permissions";
|
|
19
|
+
/**
|
|
20
|
+
* Set to `true` when the hook left permission keys out of the `permissions`
|
|
21
|
+
* claim. A provider that declares `tokenHook.truncatedClaim` uses its own.
|
|
22
|
+
*/
|
|
23
|
+
const PERMISSIONS_TRUNCATED_CLAIM = "permissions_truncated";
|
|
24
|
+
export { PERMISSIONS_TRUNCATED_CLAIM as a, PERMISSIONS_CLAIM as i, FEATURES_CLAIM as n, PERMISSION_CAP_CLAIM as o, MEMBERSHIPS_CLAIM as r, AUTHZ_VERSION_CLAIM as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
|
|
2
|
+
import { G as permissionCapOf } from "../types-Dh2OGEW5.js";
|
|
3
|
+
import { i as SessionSnapshot, o as isSessionSnapshot } from "../snapshot-BGsJw9xn.js";
|
|
4
|
+
import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-BOWTZaRf.js";
|
|
5
|
+
import { t as tenantOf } from "../tenant-DkKbvK5T.js";
|
|
6
|
+
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-CoHsUtZS.js";
|
|
7
|
+
import { a as isUserSession, i as isApiKeySession, n as AuthSession, r as UserSession, t as ApiKeySession } from "../view-Cy2XxYp1.js";
|
|
8
|
+
export { AUTHZ_VERSION_CLAIM, type ApiKeySession, type AuthSession, type ClaimsRecord, type ClaimsSource, type EntitlementClaimOptions, FEATURES_CLAIM, MEMBERSHIPS_CLAIM, type MembershipClaim, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, type PermissionsOfOptions, type SessionSnapshot, type UserSession, decodeEntitlementClaim, isApiKeySession, isSessionSnapshot, isTruncated, isUserSession, permissionCapOf, permissionsOf, tenantOf };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../claim-names-BKig1LOk.js";
|
|
2
|
+
import { t as tenantOf } from "../tenant-Beqd7TTq.js";
|
|
3
|
+
import { o as permissionCapOf } from "../delegation-C2rLpkHO.js";
|
|
4
|
+
import { t as decodeEntitlementClaim } from "../entitlements-Dydkg-TV.js";
|
|
5
|
+
import { r as permissionsOf, t as isTruncated } from "../permissions-BDt27oYF.js";
|
|
6
|
+
import { r as isSessionSnapshot } from "../snapshot-CVMSyTHH.js";
|
|
7
|
+
import { n as isApiKeySession, r as isUserSession } from "../view-BfEqjZJ_.js";
|
|
8
|
+
export { AUTHZ_VERSION_CLAIM, FEATURES_CLAIM, MEMBERSHIPS_CLAIM, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, decodeEntitlementClaim, isApiKeySession, isSessionSnapshot, isTruncated, isUserSession, permissionCapOf, permissionsOf, tenantOf };
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
import { i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, r as MEMBERSHIPS_CLAIM } from "./claim-names-BKig1LOk.js";
|
|
1
2
|
// src/core/claims.ts
|
|
2
3
|
const DEFAULT_CLAIMS = {
|
|
3
4
|
tenant: "tenant_id",
|
|
4
5
|
scope: "tenant",
|
|
5
|
-
features:
|
|
6
|
-
memberships:
|
|
7
|
-
permissions:
|
|
6
|
+
features: FEATURES_CLAIM,
|
|
7
|
+
memberships: MEMBERSHIPS_CLAIM,
|
|
8
|
+
permissions: PERMISSIONS_CLAIM
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
11
|
+
* The claim the hook sets to `true` when `claim` lost keys: `marker` when the
|
|
12
|
+
* provider declares one, otherwise `<claim>_truncated`.
|
|
13
|
+
*/
|
|
14
|
+
function truncatedMarker(claim, marker) {
|
|
15
|
+
return marker ?? `${claim}_truncated`;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
10
18
|
* The claim paths for `config.claims`, with defaults. For a generated schema,
|
|
11
19
|
* pass `claimsOf(meta)`.
|
|
12
20
|
*/
|
|
@@ -21,7 +29,7 @@ function claimPaths(claims) {
|
|
|
21
29
|
memberships: resolved.memberships,
|
|
22
30
|
scope: resolved.scope,
|
|
23
31
|
permissions: resolved.permissions,
|
|
24
|
-
permissionsTruncated:
|
|
32
|
+
permissionsTruncated: truncatedMarker(resolved.permissions, resolved.permissionsTruncated)
|
|
25
33
|
};
|
|
26
34
|
}
|
|
27
35
|
/** The configured claim names, with defaults for the ones codegen left out. */
|
|
@@ -87,4 +95,4 @@ function claimAt(claims, path) {
|
|
|
87
95
|
for (const segment of segmentsOf(path)) value = typeof value === "object" && value !== null ? value[segment] : void 0;
|
|
88
96
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
89
97
|
}
|
|
90
|
-
export { tenantClaimPaths as a, claimsOf as i, claimAt as n, tenantFrom as o, claimPaths as r, tenantPathsFor as s, DEFAULT_CLAIMS as t };
|
|
98
|
+
export { tenantClaimPaths as a, truncatedMarker as c, claimsOf as i, claimAt as n, tenantFrom as o, claimPaths as r, tenantPathsFor as s, DEFAULT_CLAIMS as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as addCommand } from "./add-THXE7juv.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import {
|
|
2
|
+
import { o as providerLabel } from "./authorization-DJkkOjjG.js";
|
|
3
3
|
import { r as applyPlan } from "./files-DQayErI8.js";
|
|
4
|
+
import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-CfbFxUOQ.js";
|
|
4
5
|
import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-C6sQ1MqT.js";
|
|
5
|
-
import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-
|
|
6
|
+
import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-D9xSGdzO.js";
|
|
6
7
|
import { basename, dirname } from "node:path";
|
|
7
8
|
import { readFile } from "node:fs/promises";
|
|
8
9
|
import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-Dfdz7KSh.js";
|
|
4
4
|
import { a as parseNames, n as CliError } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
|
|
6
|
-
import { t as loadSnapshot } from "./snapshot-
|
|
6
|
+
import { t as loadSnapshot } from "./snapshot-BvlEmTB0.js";
|
|
7
7
|
import { t as isRecord } from "./guards-DxwRG0Uv.js";
|
|
8
|
-
import { a as toCatalog } from "./source-
|
|
9
|
-
import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-
|
|
8
|
+
import { a as toCatalog } from "./source-BhZRCitG.js";
|
|
9
|
+
import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-DrrkMihk.js";
|
|
10
10
|
import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
11
|
-
import { n as dataMigration } from "./migrations-
|
|
12
|
-
import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-
|
|
11
|
+
import { n as dataMigration } from "./migrations-CNa62JSi.js";
|
|
12
|
+
import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-BtAPMEZa.js";
|
|
13
13
|
import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
|
|
14
14
|
import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-C6sQ1MqT.js";
|
|
15
|
-
import { t as syncModules } from "./sync-
|
|
16
|
-
import { t as addModules } from "./add-
|
|
17
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
18
|
-
import { t as blockNames } from "./blocks-
|
|
19
|
-
import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-
|
|
15
|
+
import { t as syncModules } from "./sync-D9xSGdzO.js";
|
|
16
|
+
import { t as addModules } from "./add-DoEtJhZG.js";
|
|
17
|
+
import { t as appTablePlan } from "./app-table-files-BqLd5TuX.js";
|
|
18
|
+
import { t as blockNames } from "./blocks-BVU_FoLo.js";
|
|
19
|
+
import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
21
21
|
import { dirname, join, posix, resolve } from "node:path";
|
|
22
22
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import { h as subjectTagArgs } from "./config-
|
|
3
|
-
import { r as layoutFor } from "./providers-DpfoF3VC.js";
|
|
2
|
+
import { h as subjectTagArgs } from "./config-DrrkMihk.js";
|
|
4
3
|
import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
|
|
5
|
-
import { r as
|
|
4
|
+
import { r as layoutFor } from "./providers-CfbFxUOQ.js";
|
|
5
|
+
import { r as literal } from "./live-CV9mn-xC.js";
|
|
6
6
|
import { join, resolve, sep } from "node:path";
|
|
7
7
|
import { FIELD_FORMATS } from "better-supabase/config";
|
|
8
8
|
import { APP_TABLES_MODULE, renderBlocks, setTableFeature } from "better-supabase/sql";
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-CZ66pY8j.js";
|
|
4
|
-
import { resolve } from "node:path";
|
|
5
|
-
import { MODULE_ID_TYPES, compileReadSets, moduleIdType, moduleLayout, modulePermissionKeys, resolveBlocks, scopeProblems, templateFunctions } from "better-supabase/sql";
|
|
6
|
-
import { isReadSet } from "better-supabase";
|
|
1
|
+
import { DEFAULT_CLAIMS } from "better-supabase/config";
|
|
2
|
+
import { MODULE_ID_TYPES, moduleIdType, scopeProblems, templateFunctions } from "better-supabase/sql";
|
|
7
3
|
// src/cli/authorization.ts
|
|
8
4
|
/** How findings name the provider. */
|
|
9
5
|
const providerLabel = (provider) => `the authorization provider (${provider.name})`;
|
|
@@ -93,6 +89,7 @@ function accessProviderMode(config) {
|
|
|
93
89
|
problem: `blocks.permissions.idType is "${access.idType}", but ${providerLabel(provider)} gives scope "${chosen.scope}" the type ${chosen.idType}. Set blocks.permissions.idType to "${chosen.idType}", or remove it.`
|
|
94
90
|
};
|
|
95
91
|
const { user, tenant } = provider.suspension ?? {};
|
|
92
|
+
const truncatedClaim = providerTruncatedClaim(provider);
|
|
96
93
|
return {
|
|
97
94
|
kind: "provider",
|
|
98
95
|
access: {
|
|
@@ -107,11 +104,21 @@ function accessProviderMode(config) {
|
|
|
107
104
|
} } : {},
|
|
108
105
|
...provider.roleSources && provider.roleSources.length > 0 ? { roleSources: provider.roleSources } : {},
|
|
109
106
|
...provider.approvals?.distinctApprover === true ? { approvals: { distinctApprover: true } } : {},
|
|
110
|
-
...provider.operations && Object.keys(provider.operations).length > 0 ? { operations: provider.operations } : {}
|
|
107
|
+
...provider.operations && Object.keys(provider.operations).length > 0 ? { operations: provider.operations } : {},
|
|
108
|
+
sqlCompleteKeys: sqlCompleteKeys(provider),
|
|
109
|
+
...ownsPermissionsClaim(provider, config.claims?.permissions) ? { ownsPermissions: true } : {},
|
|
110
|
+
...truncatedClaim === void 0 ? {} : { truncatedClaim }
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
+
* Whether the provider's hook writes the `permissions` claim (`claim`, as
|
|
116
|
+
* `config.claims.permissions`) itself.
|
|
117
|
+
*/
|
|
118
|
+
function ownsPermissionsClaim(provider, claim = DEFAULT_CLAIMS.permissions) {
|
|
119
|
+
return provider.tokenHook?.ownedClaims.includes(claim) ?? false;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
115
122
|
* `complete` when the provider marks the key `sqlComplete: true`. A key without
|
|
116
123
|
* the flag is unknown, and so is every key when the provider lists no
|
|
117
124
|
* permissions.
|
|
@@ -204,95 +211,20 @@ const entitlementRequirements = (provider) => [...templateFunctions(provider.mem
|
|
|
204
211
|
caller: "feature_claims",
|
|
205
212
|
role: "supabase_auth_admin"
|
|
206
213
|
}))];
|
|
207
|
-
// src/cli/read-sets.ts
|
|
208
|
-
/** Every read set exported by the modules in `config.readSets`. */
|
|
209
|
-
async function loadReadSets(config) {
|
|
210
|
-
const sets = [];
|
|
211
|
-
for (const entry of config.readSets) {
|
|
212
|
-
const loaded = await importFresh(resolve(config.root, entry));
|
|
213
|
-
const found = Object.values(loaded).filter(isReadSet);
|
|
214
|
-
if (found.length === 0) throw new CliError("invalid_input", `${entry} exports no read set (defineReadSet)`);
|
|
215
|
-
for (const set of found) if (!sets.includes(set)) sets.push(set);
|
|
216
|
-
}
|
|
217
|
-
return sets;
|
|
218
|
-
}
|
|
219
|
-
/** The compiled functions for `config.readSets`; empty when none are configured. */
|
|
220
|
-
async function compiledReadSets(config) {
|
|
221
|
-
if (config.readSets.length === 0) return [];
|
|
222
|
-
return compileReadSets(await loadReadSets(config));
|
|
223
|
-
}
|
|
224
|
-
// src/cli/sql/providers.ts
|
|
225
|
-
/** Modules that fill the `memberships` claim, which a provider's hook may own. */
|
|
226
|
-
const MEMBERSHIP_CLAIM_MODULES = /* @__PURE__ */ new Set(["memberships"]);
|
|
227
|
-
/**
|
|
228
|
-
* Whether the provider's access token hook writes the `memberships` claim
|
|
229
|
-
* itself.
|
|
230
|
-
*/
|
|
231
|
-
const providerOwnsMemberships = (config) => config.authorization?.tokenHook?.ownedClaims.includes("memberships") ?? false;
|
|
232
|
-
/**
|
|
233
|
-
* The provider's memberships for the `entitlements` module. When `names`
|
|
234
|
-
* resolve to that module, an invalid mode (no provider, a scope it lacks, an
|
|
235
|
-
* unknown id type) throws instead of falling back to the tenant module. Without
|
|
236
|
-
* `names` (`blocks list --installed`) it only describes the modules, so it
|
|
237
|
-
* doesn't.
|
|
238
|
-
*/
|
|
239
|
-
function entitlementsProviderFor(config, names) {
|
|
240
|
-
const mode = entitlementsMode(config);
|
|
241
|
-
switch (mode.kind) {
|
|
242
|
-
case "tenant": return;
|
|
243
|
-
case "provider": return mode.provider;
|
|
244
|
-
case "invalid":
|
|
245
|
-
if (names === void 0 || !resolveBlocks(names, {}).some((module) => module.name === "entitlements")) return;
|
|
246
|
-
throw new TypeError(mode.problem);
|
|
247
|
-
default: return mode;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
214
|
/**
|
|
251
|
-
* The
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
* `names`) doesn't render, so it doesn't throw.
|
|
215
|
+
* The truncated marker the provider's hook sets on the `permissions` claim:
|
|
216
|
+
* `tokenHook.truncatedClaim`, then `budget.truncatedClaim`. `undefined` means
|
|
217
|
+
* the default, `<claim>_truncated`.
|
|
255
218
|
*/
|
|
256
|
-
function
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
switch (mode.kind) {
|
|
260
|
-
case "off": return;
|
|
261
|
-
case "provider": {
|
|
262
|
-
if (!renders || !config.authorization) return mode.access;
|
|
263
|
-
const problems = moduleKeyProblems(config.authorization, modulePermissionKeys(config.blocks, names, config.subjects));
|
|
264
|
-
if (problems.length > 0) throw new TypeError(problems.map((problem) => problem.message).join("\n"));
|
|
265
|
-
return mode.access;
|
|
266
|
-
}
|
|
267
|
-
case "invalid":
|
|
268
|
-
if (!renders) return;
|
|
269
|
-
throw new TypeError(mode.problem);
|
|
270
|
-
default: return mode;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
/** The provider's permission keys, for `api-keys` scopes. */
|
|
274
|
-
const permissionKeysFor = (config) => config.authorization?.permissions?.map((permission) => permission.key);
|
|
275
|
-
async function layout(config, args, names) {
|
|
276
|
-
return {
|
|
277
|
-
...moduleLayout(config, args["tests-dir"], [], entitlementsProviderFor(config, names), accessProviderFor(config, names), permissionKeysFor(config)),
|
|
278
|
-
schemasDir: await schemasDirOf(config)
|
|
279
|
-
};
|
|
219
|
+
function providerTruncatedClaim(provider) {
|
|
220
|
+
const hook = provider?.tokenHook;
|
|
221
|
+
return hook?.truncatedClaim ?? hook?.budget?.truncatedClaim;
|
|
280
222
|
}
|
|
281
223
|
/**
|
|
282
|
-
* The
|
|
283
|
-
* `
|
|
224
|
+
* The keys the provider marks `sqlComplete: true`: the only ones the SQL
|
|
225
|
+
* functions answer for, and so the only ones the `permissions` claim carries.
|
|
284
226
|
*/
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
const resolved = new Set(resolveBlocks(names, entitlementsProvider ? { entitlementsProvider } : {}).map((module) => module.name));
|
|
288
|
-
const accessProvider = accessProviderFor(config, names);
|
|
289
|
-
return moduleLayoutFor(config, {
|
|
290
|
-
names,
|
|
291
|
-
testsDir: args["tests-dir"],
|
|
292
|
-
readSets: resolved.has("read-sets") ? await compiledReadSets(config) : [],
|
|
293
|
-
...entitlementsProvider ? { entitlementsProvider } : {},
|
|
294
|
-
...accessProvider ? { accessProvider } : {},
|
|
295
|
-
permissionCatalog: permissionKeysFor(config)
|
|
296
|
-
});
|
|
227
|
+
function sqlCompleteKeys(provider) {
|
|
228
|
+
return (provider.permissions ?? []).filter((permission) => permission.sqlComplete === true).map((permission) => permission.key);
|
|
297
229
|
}
|
|
298
|
-
export {
|
|
230
|
+
export { moduleKeyProblems as a, unsafeKey as c, entitlementsMode as i, accessRequirements as n, providerLabel as o, entitlementRequirements as r, providerTruncatedClaim as s, accessProviderMode as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
|
|
2
2
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
3
3
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-59XWXsRi.js";
|
|
4
|
-
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-
|
|
4
|
+
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
|
|
5
5
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
6
|
-
import { n as ident } from "./live-
|
|
7
|
-
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-
|
|
6
|
+
import { n as ident } from "./live-CV9mn-xC.js";
|
|
7
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
|
|
8
8
|
// src/cli/commands/backfill.ts
|
|
9
9
|
const DEFAULT_BATCH = 1e3;
|
|
10
10
|
const ARGS = {
|
package/dist/cli/bin.js
CHANGED