better-supabase 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-CfuBICuG.js → adapter-D4aNBxhm.js} +4 -4
- package/dist/{ai-cache-BuNbWEFI.js → ai-cache-BFRKxgZ4.js} +2 -2
- package/dist/{ai-files-DeMWQfzs.js → ai-files-m_2z3rH1.js} +3 -3
- package/dist/{ai-schedules-Bp-U0cZG.d.ts → ai-schedules-7uQNMXve.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/batches/index.js +3 -3
- package/dist/ai-sdk/cache/index.js +1 -1
- package/dist/ai-sdk/chat/index.js +1 -1
- package/dist/ai-sdk/files/index.js +2 -2
- package/dist/ai-sdk/index.js +3 -3
- package/dist/ai-sdk/mcp/index.js +2 -2
- package/dist/ai-sdk/workflow/index.js +2 -2
- package/dist/api-3C0AWFeP.js +696 -0
- package/dist/{api-BIw5g_4V.d.ts → api-CHObZL7m.d.ts} +2 -2
- package/dist/{app-tables-oYkgtcRM.d.ts → app-tables-BGzdnQm5.d.ts} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/astro/index.js +5 -5
- package/dist/{attachments-BTIwCuwm.js → attachments-BXbLnNxm.js} +5 -5
- package/dist/{authorization-08F77H2w.d.ts → authorization-DhoA7dsD.d.ts} +22 -8
- package/dist/{automations-jIIaT9EJ.js → automations-BMuqwZZn.js} +5 -5
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-BwQGUqdQ.d.ts → bind-CFsctoFJ.d.ts} +4 -4
- package/dist/{block-authors-D9hyCizs.js → block-authors-Bw3zdzgl.js} +1 -1
- package/dist/{block-env-Dh0Fe-fK.d.ts → block-env-BrUNeuJ_.d.ts} +4 -4
- package/dist/{block-events-pBXPzwnW.js → block-events-IWAyafO3.js} +1 -1
- package/dist/{block-fields-DE_FgpOU.js → block-fields-BjXgX_5c.js} +4 -3
- package/dist/{block-helpers-DnCtsKtv.js → block-helpers-B0f0ZVb5.js} +169 -4
- package/dist/{block-hooks-DbIpkq7a.js → block-hooks-DKtz0HRh.js} +1 -1
- package/dist/{block-subjects-BRJO0IqO.js → block-subjects-DFSuFY1a.js} +1 -1
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +4 -5
- package/dist/blocks/activities/index.d.ts +1 -1
- package/dist/blocks/activities/index.js +4 -5
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/agents/index.js +3 -4
- 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 +4 -5
- 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 -4
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +5 -6
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +4 -5
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.js +5 -6
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.js +4 -5
- package/dist/blocks/assets/index.d.ts +1 -1
- package/dist/blocks/assets/index.js +3 -4
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/assignment/index.js +4 -5
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/attachments/index.js +5 -6
- package/dist/blocks/audit/index.d.ts +5 -5
- package/dist/blocks/audit/index.js +8 -9
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/automations/index.js +6 -6
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.js +6 -7
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/billing/index.js +6 -7
- package/dist/blocks/bookings/index.d.ts +3 -3
- package/dist/blocks/bookings/index.js +7 -7
- package/dist/blocks/bulk/index.d.ts +4 -3
- package/dist/blocks/bulk/index.js +4 -4
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/calendar/index.js +7 -7
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/catalog/index.js +5 -6
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/channels/index.js +3 -4
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +3 -4
- package/dist/blocks/comments/index.d.ts +5 -5
- package/dist/blocks/comments/index.js +8 -9
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +5 -6
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +3 -4
- package/dist/blocks/contacts/index.d.ts +1 -1
- package/dist/blocks/contacts/index.js +4 -5
- package/dist/blocks/content/index.d.ts +1 -1
- package/dist/blocks/content/index.js +3 -4
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +8 -9
- package/dist/blocks/courses/index.d.ts +1 -1
- package/dist/blocks/courses/index.js +5 -6
- 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 -4
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +9 -10
- package/dist/blocks/dispatch/index.d.ts +1 -1
- package/dist/blocks/dispatch/index.js +7 -8
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +2 -3
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +3 -4
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +7 -8
- package/dist/blocks/drive/index.d.ts +5 -1
- package/dist/blocks/drive/index.js +6 -7
- package/dist/blocks/employees/index.d.ts +2 -2
- package/dist/blocks/employees/index.js +7 -8
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.js +2 -3
- package/dist/blocks/enrollments/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.js +3 -4
- 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 +6 -7
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/field-history/index.js +2 -3
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +4 -5
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.js +5 -6
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/forms/index.js +4 -5
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +4 -5
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/guests/index.js +4 -5
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +4 -5
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +2 -3
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/imports/index.js +3 -3
- package/dist/blocks/inbox/index.d.ts +5 -5
- package/dist/blocks/inbox/index.js +4 -5
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +5 -6
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +7 -7
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +3 -4
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/invoices/index.js +6 -7
- 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 +4 -5
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +7 -8
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +4 -5
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/ledger/index.js +3 -4
- package/dist/blocks/mail-sync/index.d.ts +1 -1
- package/dist/blocks/mail-sync/index.js +5 -6
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/memory/index.js +3 -4
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +6 -7
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +4 -5
- 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 -4
- package/dist/blocks/notifications/index.d.ts +4 -4
- package/dist/blocks/notifications/index.js +8 -9
- 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 -4
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +2 -3
- package/dist/blocks/orders/index.d.ts +9 -2
- package/dist/blocks/orders/index.js +7 -8
- package/dist/blocks/organizations/index.d.ts +3 -3
- package/dist/blocks/organizations/index.js +5 -6
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/outbox/index.js +3 -4
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/passes/index.js +7 -8
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/permissions/index.js +2 -3
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +4 -5
- package/dist/blocks/posts/index.d.ts +1 -1
- package/dist/blocks/posts/index.js +4 -5
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +3 -4
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +4 -5
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/push/index.js +5 -6
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/queue/index.js +7 -8
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/quotes/index.js +6 -7
- 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 -5
- package/dist/blocks/relations/index.d.ts +3 -2
- package/dist/blocks/relations/index.js +8 -8
- package/dist/blocks/reminders/index.d.ts +10 -6
- package/dist/blocks/reminders/index.js +13 -12
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/reviews/index.js +3 -4
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.js +4 -4
- package/dist/blocks/scores/index.d.ts +1 -1
- package/dist/blocks/scores/index.js +4 -4
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/search/index.js +3 -4
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +2 -3
- package/dist/blocks/segments/index.d.ts +1 -1
- package/dist/blocks/segments/index.js +4 -5
- package/dist/blocks/sequences/index.d.ts +1 -1
- package/dist/blocks/sequences/index.js +3 -4
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +3 -4
- 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 -4
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/share-links/index.js +6 -6
- package/dist/blocks/shipments/index.d.ts +1 -1
- package/dist/blocks/shipments/index.js +9 -10
- package/dist/blocks/signatures/index.d.ts +1 -1
- package/dist/blocks/signatures/index.js +3 -4
- 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 +7 -8
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/sso/index.js +2 -3
- 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 +3 -4
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/index.js +6 -6
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +7 -8
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +3 -3
- package/dist/blocks/templates/index.d.ts +3 -3
- package/dist/blocks/templates/index.js +3 -4
- package/dist/blocks/time-tracking/index.d.ts +8 -1
- package/dist/blocks/time-tracking/index.js +9 -10
- package/dist/blocks/timeline/index.d.ts +3 -3
- package/dist/blocks/timeline/index.js +4 -5
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +3 -4
- 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 +2 -3
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +3 -4
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +6 -7
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +4 -5
- package/dist/blocks/webhooks/index.d.ts +3 -3
- package/dist/blocks/webhooks/index.js +13 -14
- package/dist/blocks/workflow-editor/index.d.ts +6 -6
- package/dist/blocks/workflow-editor/index.js +10 -11
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/blocks/workflows/index.js +5 -6
- package/dist/{bookings-Dox2rced.d.ts → bookings-BpCNphYp.d.ts} +1 -2
- package/dist/{build-D9lWi5bk.js → build-CH2N3Yf0.js} +4 -4
- package/dist/{build-BFC8nFiL.js → build-DbIRFcHQ.js} +3 -65
- package/dist/chat-sdk/index.js +2 -3
- package/dist/cli/{add-CH7dC6UR.js → add-B6CQOt3A.js} +2 -2
- package/dist/cli/{add-CtLjnwds.js → add-BXFzr0Wf.js} +9 -9
- package/dist/cli/add-w_HumDPX.js +1 -0
- package/dist/cli/{backfill-DBJIMzcy.js → backfill-Dflp6JZk.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-i1w0EEvs.js → blocks-CBH3N7Fy.js} +1 -1
- package/dist/cli/{blocks-CS58-xnw.js → blocks-FtOIcUbu.js} +1 -1
- package/dist/cli/{cache-Cn3crN0v.js → cache-61VwYKEv.js} +1 -1
- package/dist/cli/{codemod-D6wifOAH.js → codemod-CqPRa25J.js} +1 -1
- package/dist/cli/{content-mapper-Q9We297z.js → content-mapper-DGQQY5IA.js} +2 -2
- package/dist/cli/{doctor-DmfdE5Ct.js → doctor-BxxSO193.js} +62 -58
- package/dist/cli/{gen-D68A0uN8.js → gen-D2cqqqTH.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-N7pkBbJn.js → init-BnG1IE1y.js} +5 -5
- package/dist/cli/{live-0xAAlTK_.js → live-D26OWOAb.js} +2 -2
- package/dist/cli/{mcp-CbN3ulRF.js → mcp-1l3C_GdB.js} +2 -2
- package/dist/cli/{metadata-417ldpf4.js → metadata-DDfPBHwI.js} +3 -3
- package/dist/cli/{migration-safety-BC_UI4jC.js → migration-safety-CQbrfZIx.js} +1 -1
- package/dist/cli/{migrations-DdBKwrvG.js → migrations-Ch5Uuvyj.js} +1 -1
- package/dist/cli/{module-migration-DdxPdqMC.js → module-migration-Dul1uTYX.js} +2 -2
- package/dist/cli/{powersync-CJTEz-uY.js → powersync-CfT-tRx1.js} +2 -2
- package/dist/cli/powersync-Vmhw5c1N.js +1 -0
- package/dist/cli/{print-DyFm91R-.js → print-CbPT4PTL.js} +2 -2
- package/dist/cli/{remove-CPY0xsVm.js → remove-kDH1yxKZ.js} +5 -5
- package/dist/cli/{render-DE3O1OFq.js → render-0Vd7BaNA.js} +22 -5
- package/dist/cli/{run-WtIEFGvP.js → run-Dafms0D2.js} +8 -8
- package/dist/cli/{run-CcrNGX9C.js → run-DxTd55Ug.js} +21 -21
- package/dist/cli/{shared-SlukBuKn.js → shared-BQAMXvwd.js} +1 -1
- package/dist/cli/{snapshot-pyIsJjUV.js → snapshot-B8K6gYjA.js} +2 -2
- package/dist/cli/{source-Bclt9D0Y.js → source-CXDyCWz5.js} +1 -1
- package/dist/cli/{spec-D7zsEVj_.js → spec-BGsnTkIl.js} +2 -2
- package/dist/cli/{spec-BsdLx7tZ.js → spec-CaN7nOqI.js} +1 -1
- package/dist/cli/{sql-layout-C6baAM5t.js → sql-layout-BGAlcp1U.js} +2 -2
- package/dist/cli/{sync-Cse8VXAU.js → sync-CT_5VG0E.js} +3 -3
- package/dist/cli/{upgrade-28ENjIJU.js → upgrade-DA7aO88E.js} +2 -2
- package/dist/cli/{upgrade-Cwc1RiAE.js → upgrade-frUtPDDb.js} +4 -4
- package/dist/cli/{version-yWIaLG04.js → version-CUdPyV6J.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +4 -4
- package/dist/client/native/index.js +1 -1
- package/dist/{codecs-BfmQSbM6.js → codecs-CSUFGrdP.js} +3 -3
- package/dist/commerce/index.js +3 -3
- package/dist/{composite-D24L5RIY.js → composite-CBRbvn5j.js} +2 -2
- package/dist/{composite-DbRuu6Jb.d.ts → composite-ChzHhSB0.d.ts} +3 -3
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +5 -5
- package/dist/{config-CD2OGfCG.js → config-C9AOcQ9S.js} +1 -1
- package/dist/{config-D74JT0qL.js → config-CH-D2B-4.js} +4 -4
- package/dist/{context-CjHXhCck.d.ts → context-DEisra3V.d.ts} +19 -7
- package/dist/{controller-BeqcjERs.d.ts → controller-B6vWdKSa.d.ts} +1 -1
- package/dist/{controller-BNZKd6bJ.js → controller-qG-B1eDn.js} +1 -1
- package/dist/{conversion-BqDvi8ty.d.ts → conversion-DBgMck5U.d.ts} +1 -1
- package/dist/create/index.d.ts +72 -451
- package/dist/create/index.js +15 -1687
- package/dist/create/lite/index.d.ts +250 -13
- package/dist/create/lite/index.js +1007 -24
- package/dist/{create-blocks-0pWKQ6x4.js → create-blocks-BfrDUSM6.js} +14 -10
- package/dist/credentials/index.js +3 -4
- package/dist/{cron-CgHTKwYG.js → cron-DdT4ti8a.js} +1 -1
- package/dist/{cron-route-UU9i5i9J.js → cron-route-FjKgRvTY.js} +1 -1
- package/dist/{deal-forecast-DikouYGj.js → deal-forecast-CKBnRodz.js} +2 -2
- package/dist/{define-Djgn3HQQ.js → define-D-dLADd5.js} +16 -19
- package/dist/{define-BqaUwrIC.d.ts → define-Lf6rI2QN.d.ts} +14 -8
- package/dist/{define-block-CRwHsxZO.d.ts → define-block-DCAiOrNX.d.ts} +12 -3
- package/dist/edge/index.d.ts +5 -5
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.js +1 -1
- package/dist/{entitlements-mDz7GfA_.d.ts → entitlements-BPaPd3MD.d.ts} +1 -1
- package/dist/{entitlements-DBir2qwB.js → entitlements-tGL6-69B.js} +2 -2
- package/dist/{entity-schema-BDv6w-OQ.js → entity-schema-B1YmMtP8.js} +1 -1
- package/dist/events/index.js +3 -3
- package/dist/{executor-3qcMhg6R.js → executor-C2Ne-Scm.js} +3 -2
- package/dist/{executor-Bi056Cnj.d.ts → executor-DNK401lZ.d.ts} +1 -1
- package/dist/{executor-D3gB-9si.js → executor-DqIci3Jb.js} +3 -3
- package/dist/{executor-BQ7dYw4E.js → executor-WolvKszH.js} +3 -3
- package/dist/{executor-_O-CqCPl.d.ts → executor-aFV7nEBs.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/expo/index.js +3 -3
- package/dist/{field-errors-Cfvcg-C3.d.ts → field-errors-DBgDCITw.d.ts} +6 -6
- package/dist/{fields--5a88KJe.js → fields-BBm49w-E.js} +1 -1
- package/dist/{filter-evaluate-w1XOIUOL.js → filter-evaluate-lCToXzZI.js} +2 -2
- package/dist/{filter-query-DMoKo82_.js → filter-query-CQ6d5GnQ.js} +1 -1
- package/dist/{flags-ClOQY-p5.js → flags-DF_SCqp5.js} +1 -1
- package/dist/flags-sdk/index.js +2 -2
- package/dist/{framework-B-1Ka0GW.d.ts → framework-DKA3fTHl.d.ts} +3 -3
- package/dist/{framework-CNhTg0th.js → framework-DYEUraqt.js} +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +6 -6
- package/dist/{index-CjnDGAJr.d.ts → index-3p_oWttZ.d.ts} +77 -2
- package/dist/{index-BzW1T3oI.d.ts → index-ByF22_C6.d.ts} +3 -3
- package/dist/{index-BdzfjFnd.d.ts → index-C4sjewrr.d.ts} +9 -9
- package/dist/{index-CYzckGOz.d.ts → index-CM2aGNRo.d.ts} +9 -5
- package/dist/{index-DfgP-9eC.d.ts → index-CdMZQCYR.d.ts} +3 -3
- package/dist/{index-EieRHooI.d.ts → index-ClvuSZEz.d.ts} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -7
- package/dist/{app-tables-DyswUg6J.js → instances-CK0jR3Pc.js} +147 -3
- package/dist/{json-schema-Ca6gYbEP.js → json-schema-DHJxiizN.js} +1 -1
- package/dist/{kit-DhlB-vv_.js → kit-Bcd9wYCV.js} +1 -1
- package/dist/{knowledge-CV6OSirC.js → knowledge-tCrrU99q.js} +2 -2
- package/dist/list/index.d.ts +1 -1
- package/dist/list/index.js +3 -3
- package/dist/{list-query-BKy2zBaT.js → list-query-BnpA2BDg.js} +1 -1
- package/dist/{list-query-6vTI1VN6.d.ts → list-query-XYfUZb0j.d.ts} +1 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.js +7 -7
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{messages-D4XWuRTj.js → messages-ecPW_nOv.js} +1 -1
- package/dist/{model-messages-CKG0zwdF.js → model-messages-CkZSDDHP.js} +1 -1
- package/dist/{money-codec-uV5WbT60.js → money-codec-BJuS2zEW.js} +1 -1
- package/dist/nestjs/index.js +1 -1
- package/dist/next/index.d.ts +14 -14
- package/dist/next/index.js +8 -8
- package/dist/node/index.js +1 -1
- package/dist/{operations-DbNAgo7E.d.ts → operations-DC3wU3Sy.d.ts} +1 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +5 -5
- package/dist/otel/index.js +5 -5
- package/dist/{ports-DO3tgLTo.d.ts → ports-BbBJVyS0.d.ts} +1 -1
- package/dist/{ports-CaVRXjxq.js → ports-DvpNseap.js} +1 -1
- package/dist/postgres/index.js +5 -4
- package/dist/{postgrest-executor-BFW4oWte.js → postgrest-executor-B_Uezhrm.js} +7 -3
- package/dist/powersync/index.d.ts +3 -3
- package/dist/powersync/index.js +1 -1
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +4 -4
- package/dist/{preset-B3CukUhu.js → preset-CS490mYJ.js} +179 -7
- package/dist/project-NmP1NdLi.js +1760 -0
- package/dist/{push-token-IFGi8jvd.d.ts → push-token-CPJfPFa2.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +1 -1
- package/dist/{rate-limit-BPuUWz4U.js → rate-limit-fZ_d8gSE.js} +4 -5
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +2 -2
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +6 -6
- package/dist/react/server.js +2 -2
- package/dist/{react-D-p70_wL.js → react-CcrQQl0_.js} +4 -4
- package/dist/react-router/index.d.ts +3 -3
- package/dist/react-router/index.js +5 -5
- package/dist/{read-set-BnKnofIj.js → read-set-B1sDib5O.js} +1 -1
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +2 -2
- package/dist/{record-bindings-DkBJpC5A.js → record-bindings-Z51mGfhB.js} +1 -1
- package/dist/{record-form-yMVvkPiQ.d.ts → record-form-BbZpwsEi.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/records/index.js +3 -3
- package/dist/{refusal-D48CMqpQ.js → refusal-DDlInPff.js} +2 -2
- package/dist/{instances-DDt7NdVl.js → resolved-names-DdlJzoMK.js} +2 -146
- package/dist/{resource-R3KToNze.js → resource-BUJcZKiW.js} +2 -2
- package/dist/{resource-execute-LR71zWej.d.ts → resource-execute-CUG6xUuh.d.ts} +1 -1
- package/dist/{resource-types-eXuFxVt7.d.ts → resource-types-DjZ91WKA.d.ts} +1 -1
- package/dist/{resources-Dpz3h8Fe.d.ts → resources-6Ncdt9XT.d.ts} +1 -1
- package/dist/{resources-DqIwoQsP.js → resources-jb3R6rEa.js} +1 -1
- package/dist/{rows-EGAbu7MG.js → rows-BdqXmiB-.js} +2 -2
- package/dist/{rows-Bh9QemqN.js → rows-jijHLVE_.js} +1 -1
- package/dist/{rrule-79K2c3Nr.js → rrule-C9Ot6ax8.js} +1 -1
- package/dist/{sales-lines-CP4Z_LyE.js → sales-lines-DO7oRu1o.js} +3 -3
- package/dist/{sales-shared-BKXXA5qV.js → sales-shared-BuTA8JK7.js} +2 -2
- package/dist/{schemas-BSTNfGsQ.js → schemas-CLOTvdsC.js} +1 -1
- package/dist/{scores-CsgM-dw7.js → scores-bY2Is0kx.js} +2 -2
- package/dist/server/index.d.ts +7 -7
- package/dist/server/index.js +9 -9
- package/dist/{server-types-BTBzrzOH.d.ts → server-types-BH6AjDBN.d.ts} +1 -1
- package/dist/{session-BgYGk_FS.d.ts → session-Y5SSYO2C.d.ts} +1 -1
- package/dist/{shared-C47zAh2A.js → shared-BeHTi8Fu.js} +1 -1
- package/dist/{sign-in-BTaRWS-L.js → sign-in-NO7LWlw4.js} +5 -5
- package/dist/{signatures-CNcoq392.js → signatures-CX1b4WHa.js} +2 -2
- package/dist/{signers-BAEzvTJ0.d.ts → signers-BKgmVh6A.d.ts} +2 -2
- package/dist/{signing-keys-DqI-gB_C.js → signing-keys-CWtpMask.js} +3 -3
- package/dist/solid/index.d.ts +6 -6
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +2 -693
- package/dist/{spec-DTWkHzYZ.js → spec-BMvCCNnd.js} +1 -1
- package/dist/sql/index.d.ts +4 -4
- package/dist/sql/index.js +2 -2
- package/dist/{sql-B0wb7XA5.js → sql-BMXEHTvr.js} +9685 -6254
- package/dist/{sql-BPbbPzRJ.js → sql-CYt7EhH0.js} +2 -2
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/sqlite/index.js +1 -1
- package/dist/{sso-Co2TbnEy.js → sso-DdDpJQzw.js} +2 -2
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.js +3 -3
- package/dist/streams/index.js +1 -2
- package/dist/{subject-readers-F1xvRY-d.js → subject-readers-CeeJJOQ4.js} +1 -1
- package/dist/svelte/index.d.ts +6 -6
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +5 -5
- package/dist/{table-schema-CD8cJz_M.js → table-schema-C80xItaV.js} +1 -1
- package/dist/{tags-CXeJu332.d.ts → tags-Cjtcp5cN.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{temporal-DLZlWbOi.js → temporal-Dbo0fLzc.js} +12 -2
- package/dist/{temporal-required-Dy0GGD8E.js → temporal-required-DcLhnDhQ.js} +1 -1
- package/dist/{tenant-DzymQ9sv.d.ts → tenant-BHvMFNXl.d.ts} +1 -1
- package/dist/testing/index.d.ts +10 -10
- package/dist/testing/index.js +10 -10
- package/dist/{timeline-BMVOKokJ.d.ts → timeline-CEzj9v1z.d.ts} +3 -3
- package/dist/{topic-0uK4db_2.d.ts → topic-gTVjLGTk.d.ts} +2 -2
- package/dist/types-BC1HLEVx.d.ts +461 -0
- package/dist/{types-DsRfiQ0v.d.ts → types-yj8VF4oY.d.ts} +5 -0
- package/dist/{undo-B3FQvuAd.js → undo-BbftL9-4.js} +2 -2
- package/dist/vercel-connect/index.js +1 -1
- package/dist/{verify-ZLFUdlqE.js → verify-7EucfCnv.js} +3 -3
- package/dist/{verify-DexkIx4t.d.ts → verify-B0KLBb3j.d.ts} +1 -1
- package/dist/vue/index.d.ts +6 -6
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-CG3kOX-D.d.ts → watch-topic-C6HhbnVz.d.ts} +1 -1
- package/dist/wire-ChYn1g21.js +91 -0
- package/dist/workflow-sdk/builder/index.d.ts +2 -2
- package/dist/workflow-sdk/builder/index.js +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/skills/better-supabase/references/ui-recipes.md +1 -1
- package/dist/block-transport-PNea4lfQ.js +0 -84
- package/dist/cli/add-DyCrVejx.js +0 -1
- package/dist/cli/powersync-CYQ4Ljcz.js +0 -1
- package/dist/types-DGHfTW8_.d.ts +0 -9
- package/dist/{data-hooks-tgF1Ct0F.js → data-hooks-CdcZfVS1.js} +1 -1
- package/dist/{respond-3RKp6VgU.js → respond-CZMWbUs3.js} +1 -1
- package/dist/{topic-DXbA-jwr.js → topic-DClSoqY7.js} +2 -2
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
3
|
-
import { t as temporal } from "../../temporal-required-
|
|
3
|
+
import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
5
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
6
5
|
import { t as tasksSqlOptions } from "../../options-D2s7fT1s.js";
|
|
7
|
-
import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, S as optionalInstant, d as enumOrThrow, k as recordsOf, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
8
|
-
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
9
6
|
import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
|
|
10
|
-
import { n as entitySchema } from "../../entity-schema-BDv6w-OQ.js";
|
|
11
|
-
import { t as defineRecordBinding } from "../../record-bindings-DkBJpC5A.js";
|
|
12
7
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
13
|
-
import { n as
|
|
8
|
+
import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
9
|
+
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
10
|
+
import { n as entitySchema } from "../../entity-schema-B1YmMtP8.js";
|
|
11
|
+
import { t as defineRecordBinding } from "../../record-bindings-Z51mGfhB.js";
|
|
12
|
+
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
14
13
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
15
14
|
import { t as defineConversionAction } from "../../conversion-Dq1S7xzE.js";
|
|
16
|
-
import { t as expandRule } from "../../rrule-
|
|
15
|
+
import { t as expandRule } from "../../rrule-C9Ot6ax8.js";
|
|
17
16
|
//#region src/blocks/tasks/tasks.ts
|
|
18
17
|
const STATES$1 = [
|
|
19
18
|
"triage",
|
|
@@ -5,7 +5,7 @@ import { $ as SaasEventData, Ct as Events } from "../../events-vcqenSYU.js";
|
|
|
5
5
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
6
6
|
import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
8
|
-
import { c as BlockOf } from "../../define-block-
|
|
8
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
9
9
|
//#region src/blocks/teams/teams.d.ts
|
|
10
10
|
interface TeamsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
11
11
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
2
|
import { t as teamsSqlOptions } from "../../options-BfFC4iFE.js";
|
|
3
|
-
import { C as optionalText, D as recordOf, I as textOf, k as recordsOf, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
4
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
5
3
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
6
|
-
import { n as
|
|
4
|
+
import { A as recordsOf, L as textOf, O as recordOf, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
5
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
6
|
+
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
7
7
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
8
8
|
//#region src/blocks/teams/teams.ts
|
|
9
9
|
function teamOf(value) {
|
|
@@ -7,10 +7,10 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
11
11
|
import { t as ComposedEmail } from "../../email-B3YxEzwC.js";
|
|
12
|
-
import { E as WorkflowStepInfo, x as WorkflowEditor } from "../../types-
|
|
13
|
-
import { i as GraphStepCall } from "../../executor-
|
|
12
|
+
import { E as WorkflowStepInfo, x as WorkflowEditor } from "../../types-yj8VF4oY.js";
|
|
13
|
+
import { i as GraphStepCall } from "../../executor-DNK401lZ.js";
|
|
14
14
|
//#region src/blocks/templates/merge-fields.d.ts
|
|
15
15
|
/** How a rendered value is escaped: for HTML markup, or left as it is. */
|
|
16
16
|
type MergeEscape = "html" | "text";
|
|
@@ -2,13 +2,12 @@ import { t as DbException } from "../../db-exception-Lngc1W49.js";
|
|
|
2
2
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
3
3
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
5
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
6
5
|
import { n as validate } from "../../standard-BA3mLh6w.js";
|
|
7
6
|
import { t as templatesSqlOptions } from "../../options-BKDxrPvE.js";
|
|
8
|
-
import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, O as recordOrEmpty, S as optionalInstant, d as enumOrThrow, k as recordsOf, n as applyTemporal, o as blockCall, r as asDbError } from "../../block-helpers-DnCtsKtv.js";
|
|
9
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
10
7
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
11
|
-
import { n as
|
|
8
|
+
import { A as recordsOf, C as optionalInstant, L as textOf, 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, r as asDbError, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
9
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
10
|
+
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
12
11
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
13
12
|
//#region src/blocks/templates/templates.ts
|
|
14
13
|
const SCOPES = ["tenant", "system"];
|
|
@@ -8,7 +8,7 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
|
8
8
|
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
9
9
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
10
10
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
12
12
|
import { n as Money } from "../../money-BNRdJQzA.js";
|
|
13
13
|
import { t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
|
|
14
14
|
import { n as MetricDefinition } from "../../metric-definition-EAYI1r2n.js";
|
|
@@ -167,6 +167,13 @@ export declare function createTimeTracking<S extends StandardSchemaV1 | undefine
|
|
|
167
167
|
interface TimeTrackingMetricsOptions {
|
|
168
168
|
/** The time-tracking module's schema. Default `better_supabase`. */
|
|
169
169
|
readonly schema?: string;
|
|
170
|
+
/**
|
|
171
|
+
* The entries table, `blocks.time-tracking.tables.entries`. Default
|
|
172
|
+
* `time_entries`.
|
|
173
|
+
*/
|
|
174
|
+
readonly table?: string;
|
|
175
|
+
/** Its tenant column. Default `tenant_id`. */
|
|
176
|
+
readonly tenant?: string;
|
|
170
177
|
/** The IANA time zone buckets start in. Default `UTC`. */
|
|
171
178
|
readonly tz?: string;
|
|
172
179
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { s as nowInstant } from "../../temporal-
|
|
3
|
-
import { t as temporal } from "../../temporal-required-
|
|
2
|
+
import { s as nowInstant } from "../../temporal-Dbo0fLzc.js";
|
|
3
|
+
import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
|
|
4
4
|
import { t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
5
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
6
5
|
import { t as timeTrackingSqlOptions } from "../../options-DhdazgTZ.js";
|
|
7
6
|
import { r as defineMetric } from "../../metric-definition-BjxVn4R5.js";
|
|
8
|
-
import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, S as optionalInstant, d as enumOrThrow, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
9
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
10
7
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
11
|
-
import { n as
|
|
8
|
+
import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
9
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
10
|
+
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
12
11
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
13
|
-
import { n as optionalRecordRefOf } from "../../block-subjects-
|
|
12
|
+
import { n as optionalRecordRefOf } from "../../block-subjects-DFSuFY1a.js";
|
|
14
13
|
import { t as requireOrganization } from "../../block-tenant-DHp7subc.js";
|
|
15
14
|
import { s as isCurrency } from "../../money-BZl985O-.js";
|
|
16
|
-
import { i as moneyOf, o as optionalMoneyOf, s as unknownCurrency, t as amountText } from "../../money-codec-
|
|
15
|
+
import { i as moneyOf, o as optionalMoneyOf, s as unknownCurrency, t as amountText } from "../../money-codec-BJuS2zEW.js";
|
|
17
16
|
//#region src/blocks/time-tracking/time-tracking.ts
|
|
18
17
|
const STATUSES = [
|
|
19
18
|
"open",
|
|
@@ -192,8 +191,8 @@ function timeTrackingMetrics(options = {}) {
|
|
|
192
191
|
return [defineMetric({
|
|
193
192
|
key: "time_tracked",
|
|
194
193
|
label: "Time tracked",
|
|
195
|
-
table: `${options.schema ?? "better_supabase"}.time_entries`,
|
|
196
|
-
tenant: "tenant_id",
|
|
194
|
+
table: `${options.schema ?? "better_supabase"}.${options.table ?? "time_entries"}`,
|
|
195
|
+
tenant: options.tenant ?? "tenant_id",
|
|
197
196
|
measure: { sum: "seconds" },
|
|
198
197
|
timeColumn: "started_at",
|
|
199
198
|
dimensions: [
|
|
@@ -5,10 +5,10 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
|
5
5
|
import { a as BlockTenantOptions, i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
6
6
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
8
|
-
import { t as BetterSupabase } from "../../define-
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
8
|
+
import { t as BetterSupabase } from "../../define-Lf6rI2QN.js";
|
|
9
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
10
10
|
import { i as EventSink, t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
|
|
11
|
-
import { i as ListDefinition } from "../../list-query-
|
|
11
|
+
import { i as ListDefinition } from "../../list-query-XYfUZb0j.js";
|
|
12
12
|
//#region src/blocks/timeline/timeline.d.ts
|
|
13
13
|
/**
|
|
14
14
|
* Where a timeline entry comes from: `event` for an `activity_entries` row that
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
3
|
-
import { C as optionalText, D as recordOf, I as textOf, R as toInstant, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall, w as pageOf } from "../../block-helpers-DnCtsKtv.js";
|
|
4
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
5
2
|
import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
|
|
3
|
+
import { A as recordsOf, L as textOf, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
|
|
4
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
6
5
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
7
|
-
import { n as optionalRecordRefOf } from "../../block-subjects-
|
|
8
|
-
import { n as defineListQuery } from "../../list-query-
|
|
6
|
+
import { n as optionalRecordRefOf } from "../../block-subjects-DFSuFY1a.js";
|
|
7
|
+
import { n as defineListQuery } from "../../list-query-BnpA2BDg.js";
|
|
9
8
|
import { t as requireOrganization } from "../../block-tenant-DHp7subc.js";
|
|
10
9
|
//#region src/blocks/timeline/timeline.ts
|
|
11
10
|
const ACTIVITY_SOURCES = [
|
|
@@ -8,7 +8,7 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
|
8
8
|
import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
9
9
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
10
10
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
12
12
|
//#region src/blocks/trash/trash.d.ts
|
|
13
13
|
interface TrashOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
14
14
|
/**
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
3
2
|
import { t as trashSqlOptions } from "../../options-B692WoK6.js";
|
|
4
|
-
import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, k as recordsOf, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
5
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
6
3
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
7
|
-
import { n as
|
|
4
|
+
import { A as recordsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
5
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
6
|
+
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
8
7
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
9
8
|
import { t as trashExtension } from "../../extension-DzCc0IOd.js";
|
|
10
9
|
//#region src/blocks/trash/trash.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
2
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
-
import { n as Controller } from "../../controller-
|
|
2
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
3
|
+
import { n as Controller } from "../../controller-B6vWdKSa.js";
|
|
4
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-B1jwnVyN.js";
|
|
5
5
|
//#region src/blocks/undo/client.d.ts
|
|
6
6
|
interface UndoEntry {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
2
1
|
import { t as defineController } from "../../controller-BEliOBOv.js";
|
|
2
|
+
import { U as rpcTransport, V as dbTransport, W as sqlTransport } from "../../block-helpers-B0f0ZVb5.js";
|
|
3
3
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
4
|
-
import { i as undoToken, n as createUndo, r as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-
|
|
4
|
+
import { i as undoToken, n as createUndo, r as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-BbftL9-4.js";
|
|
5
5
|
//#region src/blocks/undo/client.ts
|
|
6
6
|
/**
|
|
7
7
|
* A stack of undo tokens on the client, for a toast's Undo button or a Cmd+Z
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { Mt as Plugin } from "../../types-DFdg_4yN.js";
|
|
3
3
|
import { t as UpdatedAtSqlOptions } from "../../options-B_NrjVDt.js";
|
|
4
|
-
import { r as Block } from "../../define-block-
|
|
4
|
+
import { r as Block } from "../../define-block-DCAiOrNX.js";
|
|
5
5
|
//#region src/blocks/updated-at/extension.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The `updated-at` block's repository extension. Stamps the columns generated
|
|
@@ -2,8 +2,8 @@ import { b as DbError } from "../../result-DZeA5KS6.js";
|
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
3
3
|
import { n as StripeSource, t as StripeClient } from "../../stripe-X22LjuH-.js";
|
|
4
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-Dp45V42p.js";
|
|
5
|
-
import { c as BlockOf } from "../../define-block-
|
|
6
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
5
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
6
|
+
import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
|
|
7
7
|
//#region src/blocks/usage/manifest.d.ts
|
|
8
8
|
/** The `usage` block's manifest (ADR 0029). */
|
|
9
9
|
export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
3
2
|
import { t as usageSqlOptions } from "../../options-CsvJR-r2.js";
|
|
4
3
|
import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
|
|
5
|
-
import {
|
|
6
|
-
import { r as withBlockHooks } from "../../block-hooks-
|
|
4
|
+
import { A as recordsOf, L as textOf, N as seconds, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, n as applyTemporal, o as blockCall, t as DEFAULT_BLOCK_SCHEMA, u as eachLimit, w as optionalText, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
|
|
5
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
7
6
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
8
7
|
import { t as lazyStripe } from "../../stripe-BJUfp5jM.js";
|
|
9
8
|
//#region src/blocks/usage/usage.ts
|
|
@@ -6,7 +6,7 @@ import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
|
6
6
|
import { s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
8
8
|
import { a as ProblemFormat, t as BlockProblemOptions } from "../../problem-DNwN8iGz.js";
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
10
10
|
import { n as Jwks } from "../../jws-D0toeQlA.js";
|
|
11
11
|
//#region src/blocks/vercel-marketplace/partner-api.d.ts
|
|
12
12
|
/** The Vercel environments a resource's secrets reach. */
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { n as dbError, r as dbErrorOf } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
3
3
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
4
|
-
import { i as sqlTransport } from "../../block-transport-PNea4lfQ.js";
|
|
5
4
|
import { a as methodNotAllowed, o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
6
5
|
import { t as vercelMarketplaceSqlOptions } from "../../options-DZRpXKQE.js";
|
|
7
|
-
import { C as optionalText, D as recordOf, I as textOf, f as errorText, k as recordsOf, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
8
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
9
6
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
7
|
+
import { A as recordsOf, L as textOf, O as recordOf, W as sqlTransport, f as errorText, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
8
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
10
9
|
import { r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
|
|
11
|
-
import { t as cronRoute } from "../../cron-route-
|
|
10
|
+
import { t as cronRoute } from "../../cron-route-FjKgRvTY.js";
|
|
12
11
|
import { c as verifyCompact, t as JwsError } from "../../jws-DOgHJKHb.js";
|
|
13
12
|
import { t as jwksSource } from "../../jwks-cache-DEsKI0hJ.js";
|
|
14
13
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
@@ -8,7 +8,7 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
|
8
8
|
import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
9
9
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
10
10
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
11
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-
|
|
11
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
|
|
12
12
|
//#region src/blocks/versions/json-patch.d.ts
|
|
13
13
|
/** A JSON value, as a version's content holds it. */
|
|
14
14
|
type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
3
2
|
import { t as versionsSqlOptions } from "../../options-DZLkeqWn.js";
|
|
4
|
-
import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, d as enumOrThrow, k as recordsOf, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
5
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
6
|
-
import { n as entitySchema } from "../../entity-schema-BDv6w-OQ.js";
|
|
7
|
-
import { i as recordRowInput, t as defineRecordBinding } from "../../record-bindings-DkBJpC5A.js";
|
|
8
3
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
9
|
-
import { n as
|
|
4
|
+
import { A as recordsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
5
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
6
|
+
import { n as entitySchema } from "../../entity-schema-B1YmMtP8.js";
|
|
7
|
+
import { i as recordRowInput, t as defineRecordBinding } from "../../record-bindings-Z51mGfhB.js";
|
|
8
|
+
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
10
9
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
11
|
-
import { i as subjectRefOf } from "../../block-subjects-
|
|
10
|
+
import { i as subjectRefOf } from "../../block-subjects-DFSuFY1a.js";
|
|
12
11
|
import { t as requireOrganization } from "../../block-tenant-DHp7subc.js";
|
|
13
12
|
//#region src/blocks/versions/json-patch.ts
|
|
14
13
|
/** Thrown by `applyPatch` for an operation RFC 6902 calls an error. */
|
|
@@ -7,7 +7,7 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
|
7
7
|
import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
11
11
|
import { n as VerifyOptions } from "../../signatures-Dkx9OE8j.js";
|
|
12
12
|
//#region src/blocks/waitlist/waitlist.d.ts
|
|
13
13
|
type WaitlistStatus = "waiting" | "approved" | "rejected" | "joined";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
3
2
|
import { t as waitlistSqlOptions } from "../../options-DKoQoRCy.js";
|
|
4
|
-
import { C as optionalText, D as recordOf, I as textOf, R as toInstant, S as optionalInstant, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
5
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
6
3
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
7
|
-
import { n as
|
|
4
|
+
import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
|
|
5
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
6
|
+
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
8
7
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
9
|
-
import { r as hookError, t as authHook } from "../../verify-
|
|
8
|
+
import { r as hookError, t as authHook } from "../../verify-7EucfCnv.js";
|
|
10
9
|
//#region src/blocks/waitlist/waitlist.ts
|
|
11
10
|
const STATUSES = /* @__PURE__ */ new Set([
|
|
12
11
|
"waiting",
|
|
@@ -9,12 +9,12 @@ import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport,
|
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
10
10
|
import { t as BlockProblemOptions } from "../../problem-DNwN8iGz.js";
|
|
11
11
|
import { g as JobHandler, x as QueueSchemas, y as Queue } from "../../types-Czq9Xtpa.js";
|
|
12
|
-
import { c as BlockOf } from "../../define-block-
|
|
12
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
13
13
|
import { i as EventSink, t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
|
|
14
14
|
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-D_pwXlBs.js";
|
|
15
15
|
import { a as verifySharedSecret, i as signWebhook, n as VerifyOptions, o as verifyWebhook, r as WebhookInput, t as VerifiedWebhook } from "../../signatures-Dkx9OE8j.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-B0KLBb3j.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-BKgmVh6A.js";
|
|
18
18
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
19
19
|
//#region src/core/hmac.d.ts
|
|
20
20
|
/** Constant-time string comparison. */
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { t as DbException } from "../../db-exception-Lngc1W49.js";
|
|
2
2
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
3
3
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
4
|
-
import { t as temporal } from "../../temporal-required-
|
|
4
|
+
import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
|
|
5
5
|
import { a as ok, r as err, s as toDbError, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
6
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
7
6
|
import { i as toBase64, r as fromBase64 } from "../../base64-B9Wlsdj7.js";
|
|
8
7
|
import { a as methodNotAllowed, o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
9
8
|
import { t as MAX_BATCH } from "../../batch-limit-DKVQDz4o.js";
|
|
10
9
|
import { n as webhooksOutSqlOptions, t as webhooksInSqlOptions } from "../../options-D96dScev.js";
|
|
11
|
-
import { C as optionalText, D as recordOf, E as readBodyCapped, L as toBlockError, M as seconds, R as toInstant, c as chunksOf, f as errorText, i as batchResultsOf, k as recordsOf, n as applyTemporal, o as blockCall, r as asDbError, s as budget } from "../../block-helpers-DnCtsKtv.js";
|
|
12
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
13
10
|
import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
|
|
14
|
-
import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
|
|
15
11
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
16
|
-
import { r as blockEmitter } from "../../block-events-
|
|
12
|
+
import { r as blockEmitter } from "../../block-events-IWAyafO3.js";
|
|
13
|
+
import { toHttp } from "../../events/index.js";
|
|
14
|
+
import { A as recordsOf, D as readBodyCapped, N as seconds, O as recordOf, R as toBlockError, U as rpcTransport, V as dbTransport, W as sqlTransport, c as chunksOf, f as errorText, h as instantOf, i as batchResultsOf, n as applyTemporal, o as blockCall, r as asDbError, s as budget, w as optionalText, y as nullableInstant, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
|
|
15
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
16
|
+
import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
|
|
17
17
|
import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
|
|
18
|
-
import { i as signWebhook, o as verifySharedSecret, s as verifyWebhook, t as PUBLIC_KEY_PREFIX } from "../../signatures-
|
|
19
|
-
import { t as cronRoute } from "../../cron-route-
|
|
20
|
-
import { t as subjectReaders } from "../../subject-readers-
|
|
21
|
-
import { n as hitRateLimit, o as receiveWebhook } from "../../rate-limit-
|
|
18
|
+
import { i as signWebhook, o as verifySharedSecret, s as verifyWebhook, t as PUBLIC_KEY_PREFIX } from "../../signatures-CX1b4WHa.js";
|
|
19
|
+
import { t as cronRoute } from "../../cron-route-FjKgRvTY.js";
|
|
20
|
+
import { t as subjectReaders } from "../../subject-readers-CeeJJOQ4.js";
|
|
21
|
+
import { n as hitRateLimit, o as receiveWebhook } from "../../rate-limit-fZ_d8gSE.js";
|
|
22
22
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
23
|
-
import { a as signStripeWebhook, i as isDatabaseWebhook, n as databaseChange, o as stripeInboxVerify, r as hookError, s as verifyStripeWebhook, t as authHook } from "../../verify-
|
|
24
|
-
import { toHttp } from "../../events/index.js";
|
|
23
|
+
import { a as signStripeWebhook, i as isDatabaseWebhook, n as databaseChange, o as stripeInboxVerify, r as hookError, s as verifyStripeWebhook, t as authHook } from "../../verify-7EucfCnv.js";
|
|
25
24
|
//#region src/blocks/webhooks/destinations.ts
|
|
26
25
|
/**
|
|
27
26
|
* Stores deliveries in the webhook inbox under `source` (the delivery's source
|
|
@@ -216,7 +215,7 @@ function createIncomingWebhooks(options) {
|
|
|
216
215
|
enabled: row["enabled"] === true,
|
|
217
216
|
maxBodyBytes: Number(row["max_body_bytes"]),
|
|
218
217
|
receiveCount: Number(row["receive_count"]),
|
|
219
|
-
lastReceivedAt:
|
|
218
|
+
lastReceivedAt: nullableInstant(row["last_received_at"]),
|
|
220
219
|
lastStatus: row["last_status"] === null ? null : Number(row["last_status"]),
|
|
221
220
|
metadata: isRecord(row["metadata"]) ? row["metadata"] : {},
|
|
222
221
|
subject: typeof row["subject_type"] === "string" && typeof row["subject_id"] === "string" ? {
|
|
@@ -224,7 +223,7 @@ function createIncomingWebhooks(options) {
|
|
|
224
223
|
id: row["subject_id"]
|
|
225
224
|
} : null,
|
|
226
225
|
createdBy: optionalText(row["created_by"]) ?? null,
|
|
227
|
-
createdAt:
|
|
226
|
+
createdAt: instantOf(row["created_at"])
|
|
228
227
|
}))),
|
|
229
228
|
rotate: (id, rotateOptions = {}) => call("rotate_incoming_webhook", {
|
|
230
229
|
endpoint: id,
|
|
@@ -3,13 +3,13 @@ import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
|
3
3
|
import { r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
4
4
|
import { Ct as Events, gt as WorkflowEventData } from "../../events-vcqenSYU.js";
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
6
|
-
import { c as BlockOf } from "../../define-block-
|
|
6
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
7
7
|
import { g as Workflows, n as WorkflowRun } from "../../workflows-B0ZPAQu0.js";
|
|
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 graphRunFields, i as GraphStepCall, l as startNodeOf, n as GraphRunFields, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-
|
|
8
|
+
import { p as SubscriptionStatus } from "../../topic-gTVjLGTk.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-C6HhbnVz.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.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-yj8VF4oY.js";
|
|
12
|
+
import { a as GraphSubject, c as graphRunFields, i as GraphStepCall, l as startNodeOf, n as GraphRunFields, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-DNK401lZ.js";
|
|
13
13
|
//#region src/blocks/workflow-editor/workflow-editor.d.ts
|
|
14
14
|
/**
|
|
15
15
|
* The `workflow-editor` module's definitions, versions, triggers, credentials,
|
|
@@ -1,18 +1,17 @@
|
|
|
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, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
4
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
5
4
|
import { t as workflowEditorSqlOptions } from "../../options-DFpyP1bg.js";
|
|
5
|
+
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
6
6
|
import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
|
|
7
|
-
import { A as
|
|
8
|
-
import { r as withBlockHooks } from "../../block-hooks-
|
|
7
|
+
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-B0f0ZVb5.js";
|
|
8
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
9
9
|
import { n as LEGACY_PERMISSION_CAP_CLAIM, r as PERMISSION_CAP_CLAIM } from "../../delegation-DGOIiT8k.js";
|
|
10
10
|
import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as blockFields } from "../../block-fields-DE_FgpOU.js";
|
|
11
|
+
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
13
12
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
14
13
|
import { n as watchRun, t as firstError } from "../../run-watch-B-LoK5m1.js";
|
|
15
|
-
import { a as approved, c as evaluateCondition, f as matchesFilter, i as startNodeOf, l as filterConditionOf, m as validateGraph, n as executeGraph, o as diffGraphs, p as topologicalOrder, r as graphRunFields, s as durationMs, t as approvalToken, u as graphOf } from "../../executor-
|
|
14
|
+
import { a as approved, c as evaluateCondition, f as matchesFilter, i as startNodeOf, l as filterConditionOf, m as validateGraph, n as executeGraph, o as diffGraphs, p as topologicalOrder, r as graphRunFields, s as durationMs, t as approvalToken, u as graphOf } from "../../executor-DqIci3Jb.js";
|
|
16
15
|
//#region src/blocks/workflow-editor/rows.ts
|
|
17
16
|
const VERSION_STATUSES = [
|
|
18
17
|
"draft",
|
|
@@ -176,11 +175,11 @@ const forbidden = (message, hint, permissions) => dbError("forbidden", message,
|
|
|
176
175
|
* checked publisher (a user or the tenant's service principal), capped to the
|
|
177
176
|
* version's stored permissions.
|
|
178
177
|
*/
|
|
179
|
-
function defaultClaims(automation, publisher) {
|
|
178
|
+
function defaultClaims(automation, publisher, tenantClaim) {
|
|
180
179
|
return {
|
|
181
180
|
role: "authenticated",
|
|
182
181
|
sub: publisher,
|
|
183
|
-
...automation.tenant === null ? {} : {
|
|
182
|
+
...automation.tenant === null ? {} : { [tenantClaim]: automation.tenant },
|
|
184
183
|
[PERMISSION_CAP_CLAIM]: automation.permissions
|
|
185
184
|
};
|
|
186
185
|
}
|
|
@@ -228,7 +227,7 @@ function mayPublishRefusal(call, mayPublish, version, claims) {
|
|
|
228
227
|
* system definition's run belongs to. Every refusal is an error; nothing falls
|
|
229
228
|
* back to the service role.
|
|
230
229
|
*/
|
|
231
|
-
function runAsPublisher(serviceCall, runAs, version, tenant) {
|
|
230
|
+
function runAsPublisher(serviceCall, runAs, version, tenant, tenantClaim = "tenant_id") {
|
|
232
231
|
if (version === void 0) return AsyncResult.err(dbError("invalid_request", "The step call has no version id: pass meta.versionId to the graph runtime as version"));
|
|
233
232
|
return serviceCall("workflow_run_principal", {
|
|
234
233
|
version,
|
|
@@ -243,7 +242,7 @@ function runAsPublisher(serviceCall, runAs, version, tenant) {
|
|
|
243
242
|
}).andThen(async (automation) => {
|
|
244
243
|
if (runAs === void 0) {
|
|
245
244
|
if (automation.publisher === null) return err(forbidden("Install the service-accounts module or pass automation.runAs to createWorkflowEditor: an organization's workflow runs as its service principal", "WORKFLOW_PUBLISHER_REVOKED"));
|
|
246
|
-
return ok(defaultClaims(automation, automation.publisher));
|
|
245
|
+
return ok(defaultClaims(automation, automation.publisher, tenantClaim));
|
|
247
246
|
}
|
|
248
247
|
const claims = await settled(() => runAs(automation));
|
|
249
248
|
if (claims === void 0 || claims === null || !isRecord(claims)) return err(forbidden(automation.publisher === null ? "The app has no service principal for this organization's workflow" : "The user who published this workflow can no longer run it", "WORKFLOW_PUBLISHER_REVOKED"));
|
|
@@ -383,7 +382,7 @@ function createWorkflowEditor(options) {
|
|
|
383
382
|
}),
|
|
384
383
|
list: (definition) => call("workflow_versions_list", { definition }, (value) => recordsOf(value, "workflow_versions_list").map(versionOf)),
|
|
385
384
|
get: getVersion,
|
|
386
|
-
runAs: (version, tenant) => runAsPublisher(serviceCall, options.authorization?.automation?.runAs, version, tenant),
|
|
385
|
+
runAs: (version, tenant) => runAsPublisher(serviceCall, options.authorization?.automation?.runAs, version, tenant, options.tenantClaim),
|
|
387
386
|
diff: (from, to) => getVersion(from).andThen(async (before) => {
|
|
388
387
|
const after = await getVersion(to);
|
|
389
388
|
if (!after.ok) return after;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DZeA5KS6.js";
|
|
2
2
|
import { Ct as Events, _t as WorkflowRunEventData } from "../../events-vcqenSYU.js";
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
+
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
5
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-B0ZPAQu0.js";
|
|
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-
|
|
6
|
+
import { p as SubscriptionStatus } from "../../topic-gTVjLGTk.js";
|
|
7
|
+
import { n as TopicPort } from "../../watch-topic-C6HhbnVz.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
|
|
9
9
|
//#region src/blocks/workflows/client.d.ts
|
|
10
10
|
interface WorkflowRunsControllerOptions {
|
|
11
11
|
readonly client: {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { t as temporal } from "../../temporal-required-
|
|
2
|
+
import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
|
|
3
3
|
import { a as ok, r as err } from "../../result-ntFBW2p2.js";
|
|
4
|
-
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
5
|
-
import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
|
|
6
|
-
import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, M as seconds, S as optionalInstant, f as errorText, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall, w as pageOf } from "../../block-helpers-DnCtsKtv.js";
|
|
7
|
-
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
8
4
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
9
|
-
import { n as
|
|
5
|
+
import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
|
|
6
|
+
import { A as recordsOf, C as optionalInstant, L as textOf, N as seconds, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, f as errorText, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
7
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
8
|
+
import { n as nextCronRun, t as assertCron } from "../../cron-DdT4ti8a.js";
|
|
10
9
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
11
10
|
import { n as watchRun } from "../../run-watch-B-LoK5m1.js";
|
|
12
11
|
//#region src/blocks/workflows/workflows.ts
|
|
@@ -193,8 +193,7 @@ interface PlacedBooking extends Booking {
|
|
|
193
193
|
interface PublicBookingService {
|
|
194
194
|
readonly id: string;
|
|
195
195
|
readonly name: string;
|
|
196
|
-
|
|
197
|
-
readonly duration: string;
|
|
196
|
+
readonly duration: Temporal.Duration;
|
|
198
197
|
readonly resources: readonly {
|
|
199
198
|
readonly id: string;
|
|
200
199
|
readonly name: string;
|