better-supabase 0.18.3 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ai-cache-Cu8j6aQQ.js → ai-cache-BuNbWEFI.js} +2 -2
- package/dist/{ai-files-CgFCRsnU.js → ai-files-DeMWQfzs.js} +2 -2
- package/dist/{ai-schedules-DzLh6BYI.d.ts → ai-schedules-Bp-U0cZG.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/batches/index.js +1 -1
- package/dist/ai-sdk/cache/index.js +1 -1
- package/dist/ai-sdk/files/index.js +2 -2
- package/dist/ai-sdk/mcp/index.js +1 -1
- package/dist/{api-B6zteBya.d.ts → api-BIw5g_4V.d.ts} +1 -1
- package/dist/{app-tables-atP-tZKZ.d.ts → app-tables-oYkgtcRM.d.ts} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/{attachments-M-Dy79Ry.js → attachments-BTIwCuwm.js} +4 -4
- package/dist/{authorization-IiE__z2m.d.ts → authorization-08F77H2w.d.ts} +3 -0
- package/dist/{automations-B5P6vTvk.js → automations-EzXteupo.js} +2 -1
- package/dist/{automations-BYsz43AG.js → automations-jIIaT9EJ.js} +3 -3
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-pu5TLrla.d.ts → bind-BwQGUqdQ.d.ts} +4 -4
- package/dist/{block-authors-BDV3y1SP.js → block-authors-D9hyCizs.js} +1 -1
- package/dist/{block-env-CA65ulTD.d.ts → block-env-Dh0Fe-fK.d.ts} +4 -4
- package/dist/{block-helpers-CtBdjgO4.js → block-helpers-DnCtsKtv.js} +2 -83
- package/dist/{block-hooks-BfxX3682.js → block-hooks-DbIpkq7a.js} +1 -1
- package/dist/{block-subjects-BhDKK_j7.js → block-subjects-BRJO0IqO.js} +1 -1
- package/dist/block-transport-PNea4lfQ.js +84 -0
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +3 -2
- package/dist/blocks/activities/index.d.ts +1 -1
- package/dist/blocks/activities/index.js +3 -2
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/agents/index.js +3 -2
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.js +2 -2
- package/dist/blocks/ai-chat/index.d.ts +4 -4
- package/dist/blocks/ai-chat/index.js +3 -2
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.js +2 -2
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.js +3 -2
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +3 -2
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +3 -2
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.js +3 -2
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.js +4 -3
- package/dist/blocks/assets/index.d.ts +1 -1
- package/dist/blocks/assets/index.js +3 -2
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/assignment/index.js +4 -3
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/attachments/index.js +3 -2
- package/dist/blocks/audit/index.d.ts +5 -5
- package/dist/blocks/audit/index.js +5 -4
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/automations/index.js +4 -4
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.js +4 -3
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/billing/index.js +4 -3
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/index.js +3 -3
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/bulk/index.js +2 -2
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/calendar/index.js +2 -2
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/catalog/index.js +4 -3
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/channels/index.js +3 -2
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +3 -2
- package/dist/blocks/comments/index.d.ts +5 -5
- package/dist/blocks/comments/index.js +6 -5
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +3 -2
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +3 -2
- package/dist/blocks/contacts/index.d.ts +1 -1
- package/dist/blocks/contacts/index.js +3 -2
- package/dist/blocks/content/index.d.ts +1 -1
- package/dist/blocks/content/index.js +3 -2
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +5 -4
- package/dist/blocks/courses/index.d.ts +1 -1
- package/dist/blocks/courses/index.js +3 -2
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.js +2 -2
- package/dist/blocks/data-lifecycle/index.d.ts +1 -1
- package/dist/blocks/data-lifecycle/index.js +3 -2
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +8 -7
- package/dist/blocks/dispatch/index.d.ts +1 -1
- package/dist/blocks/dispatch/index.js +4 -3
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +3 -2
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +4 -3
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +4 -3
- package/dist/blocks/drive/index.d.ts +1 -1
- package/dist/blocks/drive/index.js +4 -3
- package/dist/blocks/employees/index.d.ts +2 -2
- package/dist/blocks/employees/index.js +5 -4
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.js +3 -2
- package/dist/blocks/enrollments/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.js +3 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/index.js +2 -2
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/expenses/index.js +4 -3
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/field-history/index.js +3 -2
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +4 -3
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.js +6 -5
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/forms/index.js +3 -2
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +4 -3
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/guests/index.js +3 -2
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +4 -3
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +3 -2
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/imports/index.js +2 -2
- package/dist/blocks/inbox/index.d.ts +5 -5
- package/dist/blocks/inbox/index.js +4 -3
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +3 -2
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +4 -4
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +3 -2
- package/dist/blocks/invoices/index.d.ts +2 -2
- package/dist/blocks/invoices/index.js +7 -6
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.js +2 -2
- package/dist/blocks/lead-scoring/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.js +5 -4
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +4 -3
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +3 -2
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/ledger/index.js +3 -2
- package/dist/blocks/mail-sync/index.d.ts +1 -1
- package/dist/blocks/mail-sync/index.js +3 -2
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/memory/index.js +4 -3
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +5 -4
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +3 -2
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +1 -1
- package/dist/blocks/moderation/index.js +3 -2
- package/dist/blocks/notifications/index.d.ts +4 -4
- package/dist/blocks/notifications/index.js +4 -3
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/numbering/index.js +2 -2
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.js +3 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +3 -2
- package/dist/blocks/orders/index.d.ts +2 -2
- package/dist/blocks/orders/index.js +5 -4
- package/dist/blocks/organizations/index.d.ts +3 -3
- package/dist/blocks/organizations/index.js +3 -2
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/outbox/index.js +3 -2
- package/dist/blocks/passes/index.d.ts +1 -1
- package/dist/blocks/passes/index.js +5 -4
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/permissions/index.js +3 -2
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +4 -3
- package/dist/blocks/posts/index.d.ts +1 -1
- package/dist/blocks/posts/index.js +3 -2
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +3 -2
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +4 -3
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/push/index.js +3 -2
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/queue/index.js +4 -3
- package/dist/blocks/quotes/index.d.ts +2 -2
- package/dist/blocks/quotes/index.js +7 -6
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/rank/index.js +2 -2
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +4 -3
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/relations/index.js +4 -4
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reminders/index.js +4 -4
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/reviews/index.js +3 -2
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.js +2 -2
- package/dist/blocks/scores/index.d.ts +1 -1
- package/dist/blocks/scores/index.js +3 -3
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/search/index.js +3 -2
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +3 -2
- package/dist/blocks/segments/index.d.ts +1 -1
- package/dist/blocks/segments/index.js +4 -3
- package/dist/blocks/sequences/index.d.ts +1 -1
- package/dist/blocks/sequences/index.js +3 -2
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +3 -2
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +1 -1
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/index.js +3 -2
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/share-links/index.js +3 -3
- package/dist/blocks/shipments/index.d.ts +1 -1
- package/dist/blocks/shipments/index.js +5 -4
- package/dist/blocks/signatures/index.d.ts +1 -1
- package/dist/blocks/signatures/index.js +3 -2
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.js +2 -2
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sla/index.js +5 -4
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/sso/index.js +3 -2
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.js +3 -3
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/subjects/index.js +4 -3
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/index.js +2 -2
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +3 -2
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +2 -2
- package/dist/blocks/templates/index.d.ts +1 -1
- package/dist/blocks/templates/index.js +3 -2
- package/dist/blocks/time-tracking/index.d.ts +1 -1
- package/dist/blocks/time-tracking/index.js +5 -4
- package/dist/blocks/timeline/index.d.ts +3 -3
- package/dist/blocks/timeline/index.js +4 -3
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +3 -2
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/undo/index.js +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/index.js +3 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +3 -2
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +4 -3
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +3 -2
- package/dist/blocks/webhooks/index.d.ts +2 -2
- package/dist/blocks/webhooks/index.js +5 -4
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflow-editor/index.js +3 -2
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/blocks/workflows/index.js +3 -2
- package/dist/{build-QitPVzzO.js → build-D9lWi5bk.js} +1 -1
- package/dist/chat-sdk/index.js +2 -1
- package/dist/cli/{add-Ccca1h3C.js → add-CH7dC6UR.js} +2 -2
- package/dist/cli/{add-Elh2S4Z8.js → add-CtLjnwds.js} +11 -11
- package/dist/cli/add-DyCrVejx.js +1 -0
- package/dist/cli/{backfill-kq6M-ksU.js → backfill-DBJIMzcy.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-vl6ydiEz.js → blocks-CS58-xnw.js} +1 -1
- package/dist/cli/{blocks-CSOK4qqe.js → blocks-i1w0EEvs.js} +1 -1
- package/dist/cli/{cache-DPRc-BzP.js → cache-Cn3crN0v.js} +1 -1
- package/dist/cli/{codemod-CoaS9hJu.js → codemod-D6wifOAH.js} +1 -1
- package/dist/cli/{config-BJSqMi04.js → config-BH0goim0.js} +3 -2
- package/dist/cli/{config-BlfVh0IP.js → config-CTRzkX0H.js} +1 -1
- package/dist/cli/{content-mapper-DM2jgKpn.js → content-mapper-Q9We297z.js} +2 -2
- package/dist/cli/{db-DYU5hUcd.js → db-DCeyHS1y.js} +2 -2
- package/dist/cli/{doctor-CU08NDWh.js → doctor-DmfdE5Ct.js} +16 -16
- package/dist/cli/{gen-DNwJl35g.js → gen-D68A0uN8.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-B_CsBYPR.js → init-N7pkBbJn.js} +6 -6
- package/dist/cli/{live-TQN9GSV4.js → live-0xAAlTK_.js} +2 -2
- package/dist/cli/{mcp-BfC4giv7.js → mcp-CbN3ulRF.js} +2 -2
- package/dist/cli/{metadata-DlISbZDp.js → metadata-417ldpf4.js} +3 -3
- package/dist/cli/{migration-safety-C8mh2xlK.js → migration-safety-BC_UI4jC.js} +2 -2
- package/dist/cli/{migrations-D-0Sd9tO.js → migrations-DdBKwrvG.js} +1 -1
- package/dist/cli/{module-migration-Cl8hBBqw.js → module-migration-DdxPdqMC.js} +2 -2
- package/dist/cli/{powersync-CBCanSnb.js → powersync-CJTEz-uY.js} +2 -2
- package/dist/cli/powersync-CYQ4Ljcz.js +1 -0
- package/dist/cli/{print-DImaK12W.js → print-DyFm91R-.js} +2 -2
- package/dist/cli/{remove-DeOze3-k.js → remove-CPY0xsVm.js} +5 -5
- package/dist/cli/{render-GFy-2cii.js → render-DE3O1OFq.js} +28 -5
- package/dist/cli/{run-D4XWCMl2.js → run-CcrNGX9C.js} +25 -25
- package/dist/cli/{run-DNpUCD8d.js → run-WtIEFGvP.js} +8 -8
- package/dist/cli/seed-CXJvTU5D.js +1 -0
- package/dist/cli/{seed-D9mt8bnW.js → seed-CdSxunFT.js} +2 -2
- package/dist/cli/{shared-DM_FKwqk.js → shared-SlukBuKn.js} +1 -1
- package/dist/cli/{snapshot-BnZCeU7E.js → snapshot-pyIsJjUV.js} +3 -3
- package/dist/cli/{source-DZonA0x5.js → source-Bclt9D0Y.js} +1 -1
- package/dist/cli/{source-args-DlckPVje.js → source-args-z-jkabmO.js} +1 -1
- package/dist/cli/{spec-U6hCGGu_.js → spec-BsdLx7tZ.js} +1 -1
- package/dist/cli/{spec-DCO8EEnf.js → spec-D7zsEVj_.js} +2 -2
- package/dist/cli/{sql-layout-VnkvENWw.js → sql-layout-C6baAM5t.js} +2 -2
- package/dist/cli/{sync-D-YWMzZI.js → sync-Cse8VXAU.js} +3 -3
- package/dist/cli/{upgrade-DKZ3QOEJ.js → upgrade-28ENjIJU.js} +2 -2
- package/dist/cli/{upgrade-BGcDzVSu.js → upgrade-Cwc1RiAE.js} +4 -4
- package/dist/cli/{version-BatoE1Gj.js → version-yWIaLG04.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{codecs-TylXqU_I.js → codecs-BfmQSbM6.js} +2 -2
- package/dist/{composite-C-8A8qzi.d.ts → composite-DbRuu6Jb.d.ts} +3 -3
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +1 -1
- package/dist/{config-mbVyJwSc.js → config-D74JT0qL.js} +2 -1
- package/dist/{context-Cj-9gE6l.d.ts → context-CjHXhCck.d.ts} +6 -3
- package/dist/{controller-BR7CZ1R9.d.ts → controller-BeqcjERs.d.ts} +1 -1
- package/dist/{conversion-BgtOfTaS.d.ts → conversion-BqDvi8ty.d.ts} +1 -1
- package/dist/create/index.d.ts +2 -2
- package/dist/create/index.js +2 -2
- package/dist/{create-blocks-Bu4H5TXw.js → create-blocks-0pWKQ6x4.js} +20 -6
- package/dist/credentials/index.js +2 -1
- package/dist/{deal-forecast-Bv52QMyX.js → deal-forecast-DikouYGj.js} +2 -2
- package/dist/{define-Cgru0_kF.d.ts → define-BqaUwrIC.d.ts} +4 -2
- package/dist/{define-DlUeKHce.js → define-Djgn3HQQ.js} +81 -5
- package/dist/{define-block-CJWiDWa5.d.ts → define-block-CRwHsxZO.d.ts} +20 -6
- package/dist/edge/index.d.ts +5 -5
- package/dist/{entitlements-NZAE_vLj.js → entitlements-DBir2qwB.js} +2 -2
- package/dist/{entitlements-DHcNt1aF.d.ts → entitlements-mDz7GfA_.d.ts} +1 -1
- package/dist/{executor-BWFfz0ik.d.ts → executor-_O-CqCPl.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/{field-errors-DkAemDoc.d.ts → field-errors-Cfvcg-C3.d.ts} +6 -6
- package/dist/{fields-B0zaJAO3.js → fields--5a88KJe.js} +3 -2
- package/dist/{flags-BOdA_ETQ.js → flags-ClOQY-p5.js} +1 -1
- package/dist/flags-sdk/index.js +2 -2
- package/dist/{framework-x9Y4uB1q.d.ts → framework-B-1Ka0GW.d.ts} +3 -3
- package/dist/hono/index.d.ts +4 -4
- package/dist/{index-DTbJAsrT.d.ts → index-BdzfjFnd.d.ts} +9 -9
- package/dist/{index-DmbCyl6Z.d.ts → index-BzW1T3oI.d.ts} +3 -3
- package/dist/{index-DZylLz7h.d.ts → index-CYzckGOz.d.ts} +3 -3
- package/dist/{index-DVYEoVMK.d.ts → index-CjnDGAJr.d.ts} +1 -1
- package/dist/{index-C6ruLtyx.d.ts → index-DfgP-9eC.d.ts} +3 -3
- package/dist/{index-C0t-vNIt.d.ts → index-EieRHooI.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/instance-property-hRh88y_s.js +7 -0
- package/dist/{knowledge-BGbtxMP9.js → knowledge-CV6OSirC.js} +2 -2
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-DxjuIHEL.d.ts → list-query-6vTI1VN6.d.ts} +1 -1
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/{money-codec-BzddguAQ.js → money-codec-uV5WbT60.js} +1 -1
- package/dist/next/index.d.ts +14 -14
- package/dist/next/index.js +4 -3
- package/dist/{operations-CAjMgNr9.d.ts → operations-DbNAgo7E.d.ts} +1 -1
- package/dist/{options-lsxJYfYx.js → options-BOqfYsM1.js} +2 -1
- package/dist/{options-Bc4xz5jQ.js → options-DZen3UiC.js} +2 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +1 -1
- package/dist/otel/index.js +4 -4
- package/dist/{ports-g0H1Kzwr.d.ts → ports-DO3tgLTo.d.ts} +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +3 -3
- package/dist/{push-token-Cl2EihRc.d.ts → push-token-IFGi8jvd.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/{rate-limit-Dt9vAY4E.js → rate-limit-BPuUWz4U.js} +3 -2
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +1 -1
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +6 -6
- package/dist/react/server.js +1 -1
- package/dist/{react-zBTxLsV6.js → react-D-p70_wL.js} +2 -2
- package/dist/react-router/index.d.ts +3 -3
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +2 -2
- package/dist/{record-form-zMwz0Ayt.d.ts → record-form-yMVvkPiQ.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{resource-execute-CKBtGL8-.d.ts → resource-execute-LR71zWej.d.ts} +1 -1
- package/dist/{resource-types-8Q5Klkpa.d.ts → resource-types-eXuFxVt7.d.ts} +1 -1
- package/dist/{resources-DxpqenZA.d.ts → resources-Dpz3h8Fe.d.ts} +1 -1
- package/dist/{rows-Bm6sskji.js → rows-Bh9QemqN.js} +1 -1
- package/dist/{rows-BDLZStp4.js → rows-EGAbu7MG.js} +2 -2
- package/dist/{sales-lines-D-sf9PIB.js → sales-lines-CP4Z_LyE.js} +6 -4
- package/dist/{sales-lines-Bk4mbLH1.d.ts → sales-lines-KxxStRzU.d.ts} +1 -0
- package/dist/{sales-shared-DXGFJP4g.js → sales-shared-BKXXA5qV.js} +1 -1
- package/dist/{schemas-l2aF78zQ.js → schemas-BSTNfGsQ.js} +1 -1
- package/dist/{scores-CRp3vvQU.js → scores-CsgM-dw7.js} +2 -2
- package/dist/server/index.d.ts +7 -7
- package/dist/server/index.js +2 -2
- package/dist/{server-types-gR4Q1aM0.d.ts → server-types-BTBzrzOH.d.ts} +1 -1
- package/dist/{session-Fcft5A39.d.ts → session-BgYGk_FS.d.ts} +1 -1
- package/dist/{signing-keys-wGKh4vtt.js → signing-keys-DqI-gB_C.js} +2 -2
- package/dist/solid/index.d.ts +6 -6
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/spec/index.d.ts +1 -1
- package/dist/spec/index.js +1 -1
- package/dist/sql/index.d.ts +4 -4
- package/dist/sql/index.js +1 -1
- package/dist/{sql-B8usqPPx.js → sql-B0wb7XA5.js} +107 -64
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/{sso-d2S4x_f9.js → sso-Co2TbnEy.js} +2 -2
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.js +2 -7
- package/dist/storage-api-Dg78Wqsg.js +10 -0
- package/dist/streams/index.js +2 -1
- package/dist/{subject-readers-B-pQ9Mmo.js → subject-readers-F1xvRY-d.js} +1 -1
- package/dist/subject-type-BRnK7Av3.js +8 -0
- package/dist/svelte/index.d.ts +6 -6
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/{tags-sM-CH9Mn.d.ts → tags-CXeJu332.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/{tenant-DyoVYFfC.d.ts → tenant-DzymQ9sv.d.ts} +1 -1
- package/dist/testing/index.d.ts +7 -7
- package/dist/testing/index.js +5 -5
- package/dist/{timeline-CMmo0R7g.d.ts → timeline-BMVOKokJ.d.ts} +3 -3
- package/dist/{topic-nQYxoTaU.d.ts → topic-0uK4db_2.d.ts} +2 -2
- package/dist/{undo-BjCChCmH.js → undo-B3FQvuAd.js} +2 -2
- package/dist/{verify-DEqY__0N.d.ts → verify-DexkIx4t.d.ts} +1 -1
- package/dist/vue/index.d.ts +6 -6
- package/dist/{watch-topic-UGSEWAqR.d.ts → watch-topic-CG3kOX-D.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +22 -1
- package/dist/cli/add-BKybJ2e1.js +0 -1
- package/dist/cli/powersync-BEWwRqNy.js +0 -1
- package/dist/cli/seed-EPO6AvLG.js +0 -1
- package/dist/db-blocks-DJGbjIPz.js +0 -62
- package/dist/{sign-in-BLkRU3lc.js → sign-in-BTaRWS-L.js} +1 -1
- package/dist/{topic-J9I3yu6f.js → topic-DXbA-jwr.js} +1 -1
package/dist/storage/index.js
CHANGED
|
@@ -2,11 +2,12 @@ import { t as DbException } from "../db-exception-Lngc1W49.js";
|
|
|
2
2
|
import { n as dbError } from "../errors-BVFgt8BZ.js";
|
|
3
3
|
import { c as optionalTemporal, n as isInstant } from "../temporal-DLZlWbOi.js";
|
|
4
4
|
import { n as temporalMissing } from "../temporal-required-Dy0GGD8E.js";
|
|
5
|
+
import { n as storageApiOf } from "../storage-api-Dg78Wqsg.js";
|
|
5
6
|
import { a as ok, r as err, s as toDbError, t as AsyncResult } from "../result-ntFBW2p2.js";
|
|
7
|
+
import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "../template-Drgg3v2J.js";
|
|
6
8
|
import { a as spansAllTenants } from "../plugin-AKwwe2gF.js";
|
|
7
9
|
import { n as decodeJwtPayload } from "../base64-B9Wlsdj7.js";
|
|
8
10
|
import { a as tenantClaimPaths, o as tenantFrom, s as tenantPathsFor } from "../claims-Bp9My7XP.js";
|
|
9
|
-
import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "../template-Drgg3v2J.js";
|
|
10
11
|
import { r as accessCheck } from "../access-sql-CNIgUqWf.js";
|
|
11
12
|
import { t as fromStorageError } from "../errors-CyxMxzlu.js";
|
|
12
13
|
import { a as ttlSeconds, i as TTL, r as transformFor, t as checkVariants } from "../variants-Cy--Ub-a.js";
|
|
@@ -314,12 +315,6 @@ function uploadTokenExpiry(token, now) {
|
|
|
314
315
|
return (/* @__PURE__ */ new Date(seconds * 1e3)).toISOString();
|
|
315
316
|
}
|
|
316
317
|
//#endregion
|
|
317
|
-
//#region src/storage/storage-api.ts
|
|
318
|
-
/** The `StorageApi` of a client, or the client itself. */
|
|
319
|
-
function storageApiOf(client) {
|
|
320
|
-
return "storage" in client ? client.storage : client;
|
|
321
|
-
}
|
|
322
|
-
//#endregion
|
|
323
318
|
//#region src/storage/connect.ts
|
|
324
319
|
/** Folder listings in flight at once while `list` walks a tree. */
|
|
325
320
|
const LIST_CONCURRENCY = 4;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
2
|
+
//#region src/storage/storage-api.ts
|
|
3
|
+
/** Whether `value` has Storage's `from(bucket)`. */
|
|
4
|
+
const isStorageApi = (value) => isRecord(value) && typeof value["from"] === "function";
|
|
5
|
+
/** The `StorageApi` of a client, or the client itself. */
|
|
6
|
+
function storageApiOf(client) {
|
|
7
|
+
return "storage" in client ? client.storage : client;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { storageApiOf as n, isStorageApi as t };
|
package/dist/streams/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as isRecord } from "../guards-6F2bCtQR.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../block-transport-PNea4lfQ.js";
|
|
3
|
+
import { D as recordOf, F as stringsOf, M as seconds, o as blockCall } from "../block-helpers-DnCtsKtv.js";
|
|
3
4
|
import { n as teeToStore, r as writeToStore, t as resumeFromStore } from "../tee-V97_v1ZS.js";
|
|
4
5
|
import { t as pollingRead } from "../store-McN-2esd.js";
|
|
5
6
|
//#region src/streams/postgres.ts
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/core/subject-type.ts
|
|
2
|
+
const SUBJECT_TYPE_PATTERN = /^[a-z][a-z0-9_-]{0,62}$/;
|
|
3
|
+
const SUBJECT_TYPE_SQL_PATTERN = "^[a-z][a-z0-9_-]{0,62}$";
|
|
4
|
+
function subjectTypeIdent(type) {
|
|
5
|
+
return type.replaceAll("-", "_");
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { SUBJECT_TYPE_SQL_PATTERN as n, subjectTypeIdent as r, SUBJECT_TYPE_PATTERN as t };
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { b as DbError } from "../result-DZeA5KS6.js";
|
|
2
2
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-vcqenSYU.js";
|
|
3
|
-
import { pt as QuerySpec } from "../define-
|
|
3
|
+
import { pt as QuerySpec } from "../define-BqaUwrIC.js";
|
|
4
4
|
import { tt as TemplateValues } from "../bucket-vc-QRrva.js";
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-0uK4db_2.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-BwQGUqdQ.js";
|
|
7
7
|
import { t as AuthSession } from "../view-DyFdMCqg.js";
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
8
|
+
import { n as Controller } from "../controller-BeqcjERs.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-Cfvcg-C3.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-Dh0Fe-fK.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
3
|
-
import { t as BetterSupabase } from "../define-
|
|
4
|
-
import { n as BetterServer } from "../server-types-
|
|
3
|
+
import { t as BetterSupabase } from "../define-BqaUwrIC.js";
|
|
4
|
+
import { n as BetterServer } from "../server-types-BTBzrzOH.js";
|
|
5
5
|
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
|
|
6
6
|
import { t as RefusalRedirects } from "../refusal-OrlI3g4H.js";
|
|
7
|
-
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
7
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-B-1Ka0GW.js";
|
|
8
8
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
9
|
-
import { i as tagFor } from "../tags-
|
|
9
|
+
import { i as tagFor } from "../tags-CXeJu332.js";
|
|
10
10
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
12
12
|
//#region src/bridges/sveltekit.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as CacheTarget, Zt as CacheAdapter } from "./define-
|
|
1
|
+
import { Qt as CacheTarget, Zt as CacheAdapter } from "./define-BqaUwrIC.js";
|
|
2
2
|
//#region src/core/tags.d.ts
|
|
3
3
|
interface TagOptions {
|
|
4
4
|
/** The tenant the read is scoped to; `"*"` is every tenant's reads. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
2
|
-
import { t as BetterSupabase, v as Db } from "../define-
|
|
2
|
+
import { t as BetterSupabase, v as Db } from "../define-BqaUwrIC.js";
|
|
3
3
|
import { n as DataEngine } from "../data-engine-BWoz9lED.js";
|
|
4
4
|
import { t as BetterQueryMeta } from "../invalidate-DMp4eqfF.js";
|
|
5
5
|
import { QueryClient, SkipToken } from "@tanstack/query-core";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
3
|
-
import { t as BetterSupabase } from "../define-
|
|
4
|
-
import { n as BetterServer } from "../server-types-
|
|
3
|
+
import { t as BetterSupabase } from "../define-BqaUwrIC.js";
|
|
4
|
+
import { n as BetterServer } from "../server-types-BTBzrzOH.js";
|
|
5
5
|
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
|
|
6
6
|
import { t as RefusalRedirects } from "../refusal-OrlI3g4H.js";
|
|
7
|
-
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
7
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-B-1Ka0GW.js";
|
|
8
8
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
9
9
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
10
10
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ import { a as BlockTransportMiddleware } from "../block-hooks-DZN2w69m.js";
|
|
|
9
9
|
import { a as SessionActor, o as SessionDelegation } from "../actor-CoveJgya.js";
|
|
10
10
|
import { P as QueueProvider } from "../types-Czq9Xtpa.js";
|
|
11
11
|
import { n as Embedder } from "../knowledge-F1IhRI4Q.js";
|
|
12
|
-
import { a as AuthorizationProvider } from "../authorization-
|
|
12
|
+
import { a as AuthorizationProvider } from "../authorization-08F77H2w.js";
|
|
13
13
|
import { o as StreamStore } from "../store-CpheI-lN.js";
|
|
14
14
|
import { o as Authorizer } from "../authorizer-B6X09otb.js";
|
|
15
|
-
import { J as DbStats, Zt as CacheAdapter, t as BetterSupabase, v as Db } from "../define-
|
|
15
|
+
import { J as DbStats, Zt as CacheAdapter, t as BetterSupabase, v as Db } from "../define-BqaUwrIC.js";
|
|
16
16
|
import { Q as StoragePath } from "../bucket-vc-QRrva.js";
|
|
17
|
-
import { a as ServerContext, c as ServerOptions } from "../server-types-
|
|
17
|
+
import { a as ServerContext, c as ServerOptions } from "../server-types-BTBzrzOH.js";
|
|
18
18
|
import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
|
|
19
|
-
import { tn as AnyRecordBinding } from "../define-block-
|
|
19
|
+
import { tn as AnyRecordBinding } from "../define-block-CRwHsxZO.js";
|
|
20
20
|
import { n as Money } from "../money-BNRdJQzA.js";
|
|
21
21
|
import { i as EventSink, t as CloudEvent } from "../cloud-event-CzZTJkXv.js";
|
|
22
22
|
import { i as AuthorizationHooks } from "../authorization-hooks-D_pwXlBs.js";
|
|
@@ -24,9 +24,9 @@ import { s as SqlClaims, t as BetterPostgres } from "../pool-CrtT4dg-.js";
|
|
|
24
24
|
import { C as SupportSessionStore } from "../support-B4ZBVxt3.js";
|
|
25
25
|
import { r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
26
26
|
import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-BBSJt_YV.js";
|
|
27
|
-
import { n as Controller } from "../controller-
|
|
28
|
-
import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-
|
|
29
|
-
import { Ht as GeneratorModel, Qt as ResolvedConfig, jt as Generator, zt as GeneratorInput } from "../context-
|
|
27
|
+
import { n as Controller } from "../controller-BeqcjERs.js";
|
|
28
|
+
import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-Bp-U0cZG.js";
|
|
29
|
+
import { Ht as GeneratorModel, Qt as ResolvedConfig, jt as Generator, zt as GeneratorInput } from "../context-CjHXhCck.js";
|
|
30
30
|
import { r as WebhookInput } from "../signatures-Dkx9OE8j.js";
|
|
31
31
|
import { n as Payment, o as PaymentProvider } from "../payments-BYcN34Fp.js";
|
|
32
32
|
import { t as NotificationChannel } from "../channel-JcMd5lNP.js";
|
package/dist/testing/index.js
CHANGED
|
@@ -4,22 +4,22 @@ import { t as isList } from "../guards-6F2bCtQR.js";
|
|
|
4
4
|
import { d as temporalText } from "../temporal-DLZlWbOi.js";
|
|
5
5
|
import { t as temporal } from "../temporal-required-Dy0GGD8E.js";
|
|
6
6
|
import { a as ok } from "../result-ntFBW2p2.js";
|
|
7
|
-
import { t as BetterSupabase } from "../define-
|
|
7
|
+
import { t as BetterSupabase } from "../define-Djgn3HQQ.js";
|
|
8
|
+
import { n as rawError } from "../block-transport-PNea4lfQ.js";
|
|
8
9
|
import { a as toBase64Url, r as fromBase64, t as base64ToText } from "../base64-B9Wlsdj7.js";
|
|
9
|
-
import { c as resolveConfig } from "../config-
|
|
10
|
+
import { c as resolveConfig } from "../config-D74JT0qL.js";
|
|
10
11
|
import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-CNIgUqWf.js";
|
|
11
12
|
import { r as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-zRcc2TeZ.js";
|
|
12
13
|
import { i as seedLite, n as loadLite, r as migrateLite, t as LITE_INSTALL } from "../runtime-CoKxZibd.js";
|
|
13
14
|
import { ENV_VARIABLES } from "../env/index.js";
|
|
14
15
|
import { t as defineController } from "../controller-BEliOBOv.js";
|
|
15
16
|
import { t as onBlockEvent } from "../block-event-listener-Bu6G0TFH.js";
|
|
16
|
-
import { V as rawError } from "../block-helpers-CtBdjgO4.js";
|
|
17
17
|
import "../replicas-Dyoh3CEg.js";
|
|
18
18
|
import { i as defineAuthorizer, r as checkPermission, s as requestOf } from "../authorizer-BGhXaDmo.js";
|
|
19
19
|
import { a as tenantCredentialRef } from "../provider-B6g7rBZX.js";
|
|
20
20
|
import { t as postgresExecutor } from "../executor-3qcMhg6R.js";
|
|
21
21
|
import { n as parseDbStats } from "../timing-dypS0nxW.js";
|
|
22
|
-
import { r as subjectKey } from "../block-subjects-
|
|
22
|
+
import { r as subjectKey } from "../block-subjects-BRJO0IqO.js";
|
|
23
23
|
import { t as organizationsEvents } from "../events-DuLhzjP6.js";
|
|
24
24
|
import { t as mailHeaders } from "../delivery-Bm0jxmzI.js";
|
|
25
25
|
import { toCloudEvents } from "../events/index.js";
|
|
@@ -29,7 +29,7 @@ import { t as trashExtension } from "../extension-DzCc0IOd.js";
|
|
|
29
29
|
import { t as membershipsExtension } from "../extension-DeAd_MqI.js";
|
|
30
30
|
import { t as createdByExtension } from "../extension-DTaHjwdc.js";
|
|
31
31
|
import { t as updatedAtExtension } from "../extension-mGylYROs.js";
|
|
32
|
-
import { t as buildApiModel } from "../build-
|
|
32
|
+
import { t as buildApiModel } from "../build-D9lWi5bk.js";
|
|
33
33
|
import { createClient } from "@supabase/supabase-js";
|
|
34
34
|
import { existsSync } from "node:fs";
|
|
35
35
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { D as ValidationIssue, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { o as FilterField } from "./filter-query-BXLs72G9.js";
|
|
4
|
-
import { cn as RecordBindingResult, hn as TimelineItem, in as RecordBindingData } from "./define-block-
|
|
5
|
-
import { A as BindingBlocks, F as LoadBindingsOptions, M as BindingName, N as BindingOf, P as BindingSource, V as PermissionSet, _ as RecordTypeBlocks, g as RecordType, h as RecordCan } from "./index-
|
|
6
|
-
import { c as ListParseOptions, m as ListSearchParams } from "./list-query-
|
|
4
|
+
import { cn as RecordBindingResult, hn as TimelineItem, in as RecordBindingData } from "./define-block-CRwHsxZO.js";
|
|
5
|
+
import { A as BindingBlocks, F as LoadBindingsOptions, M as BindingName, N as BindingOf, P as BindingSource, V as PermissionSet, _ as RecordTypeBlocks, g as RecordType, h as RecordCan } from "./index-EieRHooI.js";
|
|
6
|
+
import { c as ListParseOptions, m as ListSearchParams } from "./list-query-6vTI1VN6.js";
|
|
7
7
|
//#region src/records/list.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* How a binding fills a list column: `count` is how many rows it has (the
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as ValidationIssue, b as DbError, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { D as AccessTopicPolicy, O as AnyFunctions, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { t as AuthorizationFunctions } from "./authorization-
|
|
4
|
-
import { t as BetterSupabase } from "./define-
|
|
3
|
+
import { t as AuthorizationFunctions } from "./authorization-08F77H2w.js";
|
|
4
|
+
import { t as BetterSupabase } from "./define-BqaUwrIC.js";
|
|
5
5
|
import { et as TemplateParams, tt as TemplateValues } from "./bucket-vc-QRrva.js";
|
|
6
6
|
import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-D_pwXlBs.js";
|
|
7
7
|
import { t as RealtimeStatus } from "./realtime-status-BhNkb-Ow.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as dbError } from "./errors-BVFgt8BZ.js";
|
|
2
2
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
3
3
|
import { a as ok, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
4
|
-
import { o as blockCall } from "./block-helpers-
|
|
5
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
4
|
+
import { o as blockCall } from "./block-helpers-DnCtsKtv.js";
|
|
5
|
+
import { r as withBlockHooks } from "./block-hooks-DbIpkq7a.js";
|
|
6
6
|
//#region src/blocks/undo/undo.ts
|
|
7
7
|
/** The functions an undo token may call: the inverses the blocks return. */
|
|
8
8
|
const UNDO_FUNCTIONS = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { f as Result } from "./result-DZeA5KS6.js";
|
|
3
3
|
import { O as AnyFunctions, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
4
|
-
import { t as BetterSupabase } from "./define-
|
|
4
|
+
import { t as BetterSupabase } from "./define-BqaUwrIC.js";
|
|
5
5
|
import { n as VerifyOptions, r as WebhookInput, t as VerifiedWebhook } from "./signatures-Dkx9OE8j.js";
|
|
6
6
|
//#region src/blocks/webhooks/verify.d.ts
|
|
7
7
|
/** The `Stripe-Signature` header for `body`, for tests and local replays. */
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { b as DbError } from "../result-DZeA5KS6.js";
|
|
2
2
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-vcqenSYU.js";
|
|
3
|
-
import { pt as QuerySpec } from "../define-
|
|
3
|
+
import { pt as QuerySpec } from "../define-BqaUwrIC.js";
|
|
4
4
|
import { tt as TemplateValues } from "../bucket-vc-QRrva.js";
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-0uK4db_2.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-BwQGUqdQ.js";
|
|
7
7
|
import { t as AuthSession } from "../view-DyFdMCqg.js";
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
8
|
+
import { n as Controller } from "../controller-BeqcjERs.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-Cfvcg-C3.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-Dh0Fe-fK.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
12
12
|
import { t as SupportView } from "../support-view-BYOgwXsJ.js";
|
|
13
13
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-
|
|
1
|
+
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-0uK4db_2.js";
|
|
2
2
|
//#region src/realtime/watch-topic.d.ts
|
|
3
3
|
interface TopicWatch {
|
|
4
4
|
readonly onMessage: (event: string, payload: unknown) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
|
-
import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
3
2
|
import { i as sqlIdent } from "../../template-Drgg3v2J.js";
|
|
3
|
+
import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
4
4
|
import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-DELaQEp3.js";
|
|
5
5
|
import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
|
|
6
6
|
import { t as watchPoolErrors } from "../../pool-errors-JUBcGrre.js";
|
package/dist/yjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../result-DZeA5KS6.js";
|
|
2
|
-
import { c as RealtimeClient, r as PresenceMember } from "../topic-
|
|
2
|
+
import { c as RealtimeClient, r as PresenceMember } from "../topic-0uK4db_2.js";
|
|
3
3
|
import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-Cup1rpjF.js";
|
|
4
4
|
//#region src/yjs/yjs.d.ts
|
|
5
5
|
type PresenceState = Readonly<Record<string, unknown>>;
|
package/dist/yjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { n as isRecord } from "../guards-6F2bCtQR.js";
|
|
|
2
2
|
import { a as ok, r as err, t as AsyncResult } from "../result-ntFBW2p2.js";
|
|
3
3
|
import { i as toBase64, r as fromBase64 } from "../base64-B9Wlsdj7.js";
|
|
4
4
|
import { t as importOptionalPeer } from "../optional-peer-C1NbBRJm.js";
|
|
5
|
-
import { t as defineTopic } from "../topic-
|
|
5
|
+
import { t as defineTopic } from "../topic-DXbA-jwr.js";
|
|
6
6
|
//#region src/yjs/yjs.ts
|
|
7
7
|
function isYjs(value) {
|
|
8
8
|
return isRecord(value) && typeof value["applyUpdate"] === "function" && typeof value["mergeUpdates"] === "function";
|
package/package.json
CHANGED
package/schemas/config-v1.json
CHANGED
|
@@ -223,6 +223,9 @@
|
|
|
223
223
|
"type": "string",
|
|
224
224
|
"description": "Whose policies govern the app's tables a block runs over, unless the block sets its own ownTablePolicies: block (the default) lets a block add its bsb_ policies where none of the app's covers them, and app keeps every bsb_ policy, permissive or restrictive, off them.",
|
|
225
225
|
"default": "block"
|
|
226
|
+
},
|
|
227
|
+
"tenantColumn": {
|
|
228
|
+
"type": "string"
|
|
226
229
|
}
|
|
227
230
|
},
|
|
228
231
|
"additionalProperties": false
|
|
@@ -1335,7 +1338,7 @@
|
|
|
1335
1338
|
"type": "object",
|
|
1336
1339
|
"propertyNames": {
|
|
1337
1340
|
"type": "string",
|
|
1338
|
-
"pattern": "^[a-z][a-z0-9_]{0,62}$"
|
|
1341
|
+
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
1339
1342
|
},
|
|
1340
1343
|
"additionalProperties": {
|
|
1341
1344
|
"type": "object",
|
|
@@ -4523,6 +4526,12 @@
|
|
|
4523
4526
|
"additionalProperties": {
|
|
4524
4527
|
"type": "string"
|
|
4525
4528
|
}
|
|
4529
|
+
},
|
|
4530
|
+
"lineExtraColumns": {
|
|
4531
|
+
"type": "object",
|
|
4532
|
+
"additionalProperties": {
|
|
4533
|
+
"type": "string"
|
|
4534
|
+
}
|
|
4526
4535
|
}
|
|
4527
4536
|
}
|
|
4528
4537
|
}
|
|
@@ -5095,6 +5104,12 @@
|
|
|
5095
5104
|
"additionalProperties": {
|
|
5096
5105
|
"type": "string"
|
|
5097
5106
|
}
|
|
5107
|
+
},
|
|
5108
|
+
"lineExtraColumns": {
|
|
5109
|
+
"type": "object",
|
|
5110
|
+
"additionalProperties": {
|
|
5111
|
+
"type": "string"
|
|
5112
|
+
}
|
|
5098
5113
|
}
|
|
5099
5114
|
}
|
|
5100
5115
|
}
|
|
@@ -5865,6 +5880,12 @@
|
|
|
5865
5880
|
"additionalProperties": {
|
|
5866
5881
|
"type": "string"
|
|
5867
5882
|
}
|
|
5883
|
+
},
|
|
5884
|
+
"lineExtraColumns": {
|
|
5885
|
+
"type": "object",
|
|
5886
|
+
"additionalProperties": {
|
|
5887
|
+
"type": "string"
|
|
5888
|
+
}
|
|
5868
5889
|
}
|
|
5869
5890
|
}
|
|
5870
5891
|
}
|
package/dist/cli/add-BKybJ2e1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as addCommand } from "./add-Elh2S4Z8.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as powersyncStreamsCommand } from "./powersync-CBCanSnb.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as seedCommand } from "./seed-D9mt8bnW.js";
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
//#region src/core/db-blocks.ts
|
|
2
|
-
/** `lead-scoring` as `leadScoring`: the property an instance key gets. */
|
|
3
|
-
function instanceProperty(key) {
|
|
4
|
-
return key.replaceAll(/[-_]([a-z0-9])/g, (_, c) => c.toUpperCase());
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* A prototype for every `Db` of a definition, with one getter per block
|
|
8
|
-
* instance (skipping those whose property a table holds) and `$blocks` with all
|
|
9
|
-
* of them. Each getter builds the instance's client for the `Db` it is read on,
|
|
10
|
-
* once, so `$with` and every request get their own.
|
|
11
|
-
*/
|
|
12
|
-
function blocksPrototype(source, parent, tables, events) {
|
|
13
|
-
const prototype = Object.create(parent);
|
|
14
|
-
const built = /* @__PURE__ */ new WeakMap();
|
|
15
|
-
const clientOf = (db, key) => {
|
|
16
|
-
let clients = built.get(db);
|
|
17
|
-
if (clients === void 0) {
|
|
18
|
-
clients = /* @__PURE__ */ new Map();
|
|
19
|
-
built.set(db, clients);
|
|
20
|
-
}
|
|
21
|
-
if (!clients.has(key)) clients.set(key, source.client(db, key, { events }));
|
|
22
|
-
return clients.get(key);
|
|
23
|
-
};
|
|
24
|
-
const views = /* @__PURE__ */ new WeakMap();
|
|
25
|
-
for (const key of source.instances) {
|
|
26
|
-
const property = instanceProperty(key);
|
|
27
|
-
if (tables.includes(property)) continue;
|
|
28
|
-
Object.defineProperty(prototype, property, {
|
|
29
|
-
get() {
|
|
30
|
-
return clientOf(this, key);
|
|
31
|
-
},
|
|
32
|
-
configurable: true,
|
|
33
|
-
enumerable: false
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
Object.defineProperty(prototype, "$blocks", {
|
|
37
|
-
get() {
|
|
38
|
-
let view = views.get(this);
|
|
39
|
-
if (view === void 0) {
|
|
40
|
-
view = Object.defineProperties({}, Object.fromEntries(source.instances.map((key) => [instanceProperty(key), {
|
|
41
|
-
get: () => clientOf(this, key),
|
|
42
|
-
enumerable: true
|
|
43
|
-
}])));
|
|
44
|
-
views.set(this, view);
|
|
45
|
-
}
|
|
46
|
-
return view;
|
|
47
|
-
},
|
|
48
|
-
configurable: true,
|
|
49
|
-
enumerable: false
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(prototype, "$api", {
|
|
52
|
-
value(fn, args) {
|
|
53
|
-
return source.call(this, fn, args);
|
|
54
|
-
},
|
|
55
|
-
configurable: true,
|
|
56
|
-
enumerable: false,
|
|
57
|
-
writable: false
|
|
58
|
-
});
|
|
59
|
-
return prototype;
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
export { instanceProperty as n, blocksPrototype as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as mapDbError, n as dbError } from "./errors-BVFgt8BZ.js";
|
|
2
2
|
import { t as temporal } from "./temporal-required-Dy0GGD8E.js";
|
|
3
3
|
import { a as ok, r as err, s as toDbError, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
4
|
+
import { i as sqlIdent } from "./template-Drgg3v2J.js";
|
|
4
5
|
import { n as validate } from "./standard-BA3mLh6w.js";
|
|
5
6
|
import { o as problemResponse } from "./problem-Bf0cJ7tk.js";
|
|
6
|
-
import { i as sqlIdent } from "./template-Drgg3v2J.js";
|
|
7
7
|
import { t as fromPgError } from "./pg-error-B5QLDcbG.js";
|
|
8
8
|
import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-CfuBICuG.js";
|
|
9
9
|
import { a as emitBlockEvent } from "./block-events-pBXPzwnW.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as dbError } from "./errors-BVFgt8BZ.js";
|
|
2
2
|
import { a as ok, r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
3
|
+
import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "./template-Drgg3v2J.js";
|
|
3
4
|
import { t as toApp } from "./casing-DdFWEtqr.js";
|
|
4
5
|
import { a as tenantClaimPaths } from "./claims-Bp9My7XP.js";
|
|
5
|
-
import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "./template-Drgg3v2J.js";
|
|
6
6
|
import { a as isScopeName, i as fillTemplate, o as resolveProviderSql, r as accessCheck } from "./access-sql-CNIgUqWf.js";
|
|
7
7
|
import { t as refreshRealtimeAuth } from "./auth-DyF_LRxd.js";
|
|
8
8
|
import { t as joinTopic } from "./channels-CfcFPuo_.js";
|