better-supabase 0.39.0 → 0.41.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/{agents-BwUHtvD6.d.ts → agents-BAiLeoR-.d.ts} +3 -3
- package/dist/{ai-cache-CPOP2PYz.d.ts → ai-cache-B94R1da7.d.ts} +3 -3
- package/dist/{ai-chat-BZhfCHHr.d.ts → ai-chat-rQ7Ftq9W.d.ts} +3 -3
- package/dist/{ai-schedules-ChJkI2jo.d.ts → ai-schedules-DIiPmFgn.d.ts} +4 -4
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/batches/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.d.ts +2 -2
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +5 -5
- package/dist/ai-sdk/mcp/index.d.ts +1 -1
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +3 -3
- package/dist/{api-keys-BncNDlWG.d.ts → api-keys-U3JQ8IlM.d.ts} +2 -2
- package/dist/{app-tables-BeLFmp0l.d.ts → app-tables-kHGNXFsd.d.ts} +1 -1
- package/dist/{approvals-CXW3yFWZ.d.ts → approvals-CTVaWq1O.d.ts} +74 -13
- package/dist/{approvals-D8gR1R8R.js → approvals-Qjn42OAZ.js} +35 -17
- package/dist/{assistant-5heV2GeR.d.ts → assistant-B1p5mYaM.d.ts} +2 -2
- package/dist/{authorization-DQZ8Lrp5.d.ts → authorization-CS5Q1V7A.d.ts} +35 -8
- package/dist/{automations-D4QTP8nI.js → automations-CJhRmPmq.js} +3 -1
- package/dist/{bind-DsDKjuQn.d.ts → bind-XrFxNm5r.d.ts} +4 -4
- package/dist/{block-env-mNi2rPSF.d.ts → block-env-CHFHOjvz.d.ts} +4 -4
- package/dist/{block-helpers-BNtM1tqy.d.ts → block-helpers-Sj-efEhC.d.ts} +15 -1
- package/dist/{block-hooks-CtMsgLQr.d.ts → block-hooks-VW4knarE.d.ts} +1 -1
- package/dist/{block-subjects-CINiJW1R.js → block-subjects-Bz95_dqA.js} +17 -6
- package/dist/{block-tables-DYFRvRWW.d.ts → block-tables-EXcmuOJT.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +3 -3
- package/dist/blocks/activities/index.d.ts +6 -6
- package/dist/blocks/agents/index.d.ts +2 -2
- package/dist/blocks/ai-cache/index.d.ts +2 -2
- package/dist/blocks/ai-chat/index.d.ts +6 -6
- package/dist/blocks/ai-files/index.d.ts +2 -2
- package/dist/blocks/ai-keys/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +6 -6
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/approvals/index.d.ts +4 -3
- package/dist/blocks/approvals/index.js +3 -2
- package/dist/blocks/assets/index.d.ts +3 -3
- package/dist/blocks/assignment/index.d.ts +3 -3
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/audit/index.d.ts +6 -6
- package/dist/blocks/automations/index.d.ts +6 -6
- package/dist/blocks/billable-time/index.d.ts +3 -3
- package/dist/blocks/billing/index.d.ts +4 -4
- package/dist/blocks/bookings/index.d.ts +3 -3
- package/dist/blocks/bulk/index.d.ts +2 -2
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/catalog/index.d.ts +3 -3
- package/dist/blocks/channels/index.d.ts +3 -3
- package/dist/blocks/collections/index.d.ts +3 -3
- package/dist/blocks/comments/index.d.ts +8 -8
- package/dist/blocks/compliance/index.d.ts +3 -3
- package/dist/blocks/connectors/index.d.ts +2 -2
- package/dist/blocks/contacts/index.d.ts +3 -3
- package/dist/blocks/content/index.d.ts +3 -3
- package/dist/blocks/contracts/index.d.ts +3 -3
- package/dist/blocks/courses/index.d.ts +3 -3
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +3 -3
- package/dist/blocks/data-lifecycle/index.d.ts +4 -4
- package/dist/blocks/deals/index.d.ts +3 -3
- package/dist/blocks/dispatch/index.d.ts +3 -3
- package/dist/blocks/documents/index.d.ts +2 -2
- package/dist/blocks/domains/index.d.ts +4 -4
- package/dist/blocks/donations/index.d.ts +3 -3
- package/dist/blocks/drive/index.d.ts +4 -4
- package/dist/blocks/employees/index.d.ts +4 -4
- package/dist/blocks/enrichment/index.d.ts +3 -3
- package/dist/blocks/enrollments/index.d.ts +3 -3
- package/dist/blocks/entitlements/index.d.ts +4 -4
- package/dist/blocks/expenses/index.d.ts +7 -3
- package/dist/blocks/expenses/index.js +4 -2
- package/dist/blocks/field-history/index.d.ts +3 -3
- package/dist/blocks/flags/index.d.ts +3 -3
- package/dist/blocks/forecasts/index.d.ts +3 -3
- package/dist/blocks/forms/index.d.ts +4 -4
- package/dist/blocks/goals/index.d.ts +3 -3
- package/dist/blocks/guests/index.d.ts +3 -3
- package/dist/blocks/hiring/index.d.ts +3 -3
- package/dist/blocks/identities/index.d.ts +3 -3
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/inbox/index.d.ts +8 -8
- package/dist/blocks/incidents/index.d.ts +3 -3
- package/dist/blocks/index.d.ts +4 -4
- package/dist/blocks/inventory/index.d.ts +4 -4
- package/dist/blocks/invoices/index.d.ts +8 -3
- package/dist/blocks/invoices/index.js +22 -12
- package/dist/blocks/knowledge/index.d.ts +2 -2
- package/dist/blocks/lead-scoring/index.d.ts +4 -4
- package/dist/blocks/leases/index.d.ts +3 -3
- package/dist/blocks/leave/index.d.ts +5 -3
- package/dist/blocks/leave/index.js +2 -1
- package/dist/blocks/ledger/index.d.ts +4 -3
- package/dist/blocks/ledger/index.js +2 -1
- package/dist/blocks/mail-sync/index.d.ts +2 -2
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +3 -3
- package/dist/blocks/messaging/index.d.ts +7 -7
- package/dist/blocks/metrics/index.d.ts +4 -4
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +3 -3
- package/dist/blocks/notifications/index.d.ts +6 -6
- package/dist/blocks/numbering/index.d.ts +2 -2
- package/dist/blocks/oauth-server/index.d.ts +3 -3
- package/dist/blocks/onboarding/index.d.ts +4 -4
- package/dist/blocks/orders/index.d.ts +5 -5
- package/dist/blocks/organizations/index.d.ts +5 -5
- package/dist/blocks/outbox/index.d.ts +2 -2
- package/dist/blocks/passes/index.d.ts +5 -5
- package/dist/blocks/permissions/index.d.ts +5 -5
- package/dist/blocks/pipelines/index.d.ts +3 -3
- package/dist/blocks/posts/index.d.ts +3 -3
- package/dist/blocks/profiles/index.d.ts +3 -3
- package/dist/blocks/promotions/index.d.ts +3 -3
- package/dist/blocks/push/index.d.ts +4 -4
- package/dist/blocks/queue/index.d.ts +4 -4
- package/dist/blocks/quotes/index.d.ts +57 -12
- package/dist/blocks/quotes/index.js +35 -7
- package/dist/blocks/rank/index.d.ts +4 -4
- package/dist/blocks/reactions/index.d.ts +6 -6
- package/dist/blocks/relations/index.d.ts +4 -4
- package/dist/blocks/reminders/index.d.ts +4 -4
- package/dist/blocks/reviews/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/scores/index.d.ts +3 -3
- package/dist/blocks/search/index.d.ts +5 -5
- package/dist/blocks/security-events/index.d.ts +4 -4
- package/dist/blocks/segments/index.d.ts +3 -3
- package/dist/blocks/sequences/index.d.ts +3 -3
- package/dist/blocks/service-accounts/index.d.ts +3 -3
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +4 -4
- package/dist/blocks/share-links/index.d.ts +3 -3
- package/dist/blocks/shipments/index.d.ts +3 -3
- package/dist/blocks/signatures/index.d.ts +3 -3
- package/dist/blocks/signing-keys/index.d.ts +2 -2
- package/dist/blocks/sla/index.d.ts +3 -3
- package/dist/blocks/sso/index.d.ts +4 -4
- package/dist/blocks/state-machine/index.d.ts +3 -14
- package/dist/blocks/subjects/index.d.ts +3 -3
- package/dist/blocks/tags/index.d.ts +4 -4
- package/dist/blocks/tasks/index.d.ts +5 -5
- package/dist/blocks/teams/index.d.ts +3 -3
- package/dist/blocks/templates/index.d.ts +6 -6
- package/dist/blocks/time-tracking/index.d.ts +3 -3
- package/dist/blocks/timeline/index.d.ts +3 -3
- package/dist/blocks/trash/index.d.ts +3 -3
- package/dist/blocks/undo/index.d.ts +3 -3
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +3 -3
- package/dist/blocks/vercel-marketplace/index.d.ts +3 -3
- package/dist/blocks/versions/index.d.ts +3 -3
- package/dist/blocks/waitlist/index.d.ts +3 -3
- package/dist/blocks/webhooks/index.d.ts +5 -5
- package/dist/blocks/workflow-editor/index.d.ts +7 -7
- package/dist/blocks/workflows/index.d.ts +5 -5
- package/dist/{bookings-Dj5cvXKv.d.ts → bookings-CHUzFwOI.d.ts} +3 -3
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claims/index.d.ts +4 -4
- package/dist/cli/{add-Ba8xoX4q.js → add-BGErz-yb.js} +10 -10
- package/dist/cli/add-CoP8iie6.js +1 -0
- package/dist/cli/{add-DKlk-VV9.js → add-DU5HAq6w.js} +2 -2
- package/dist/cli/{app-table-files-Dw02ao0W.js → app-table-files-Drzpekpt.js} +2 -2
- package/dist/cli/{app-tables-iSQ0c7G3.js → app-tables-dZpH63--.js} +2 -2
- package/dist/cli/{backfill-sYQgRuGd.js → backfill-B-p-19g6.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-YKQzZhPK.js → blocks-Ews-FZZO.js} +1 -1
- package/dist/cli/{blocks-BAj3U18j.js → blocks-iUjNl5yJ.js} +1 -1
- package/dist/cli/{cache-BFSbb4is.js → cache-JT4JhdmX.js} +1 -1
- package/dist/cli/{codemod-vbToOtFK.js → codemod-KIxYiazj.js} +1 -1
- package/dist/cli/{content-mapper-COnyl3V7.js → content-mapper-DkXzxt6f.js} +2 -2
- package/dist/cli/{doctor-BTGesU_-.js → doctor-VWanOD74.js} +17 -17
- package/dist/cli/{gen-h1Ncsh1X.js → gen-_lBdTgaR.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-DCy-FlB2.js → init-Cm6n4u_3.js} +8 -8
- package/dist/cli/{live-BUOVB-DV.js → live-D4iSuTmS.js} +2 -2
- package/dist/cli/{mcp-CLAjfETj.js → mcp-CHYX7utI.js} +2 -2
- package/dist/cli/{metadata-DqcJb3p5.js → metadata-DLba0VjH.js} +3 -3
- package/dist/cli/{migrate-dI1IaRan.js → migrate-nQhh0nEJ.js} +1 -1
- package/dist/cli/{migration-safety-Cj2AZdIH.js → migration-safety-C2d3BSTf.js} +1 -1
- package/dist/cli/{migrations-CFIlnOmr.js → migrations-BOmMcme9.js} +2 -2
- package/dist/cli/{module-migration-DteyIWzV.js → module-migration-DSDB473C.js} +2 -2
- package/dist/cli/{powersync-DWFvtUuZ.js → powersync-CAHvPkkb.js} +3 -3
- package/dist/cli/powersync-nH-NLDjy.js +1 -0
- package/dist/cli/{print-DUUGo-bA.js → print-CahE8HYK.js} +2 -2
- package/dist/cli/{providers-B4q4yMUv.js → providers-CL5Z5Uj4.js} +1 -1
- package/dist/cli/{prune-workflows-DhJX2wAQ.js → prune-workflows-C9xO0fRU.js} +1 -1
- package/dist/cli/{remove-BsAhvYpx.js → remove-DIy7gthm.js} +5 -5
- package/dist/cli/{render-CvRXYRSy.js → render-CoCZr3Ru.js} +3 -3
- package/dist/cli/{run-BY0fbQxQ.js → run-BBj137Fn.js} +27 -27
- package/dist/cli/{run-DxWZi4IJ.js → run-CVw8hmLk.js} +9 -9
- package/dist/cli/{shared-C_9DBYw-.js → shared-BdKeo7xp.js} +1 -1
- package/dist/cli/{snapshot-BAFwCE0l.js → snapshot-P2ww2xCt.js} +2 -2
- package/dist/cli/{source-CpnSlB6J.js → source-BCs4oBl2.js} +1 -1
- package/dist/cli/{spec-BMBYao_7.js → spec-oPbt9sbZ.js} +1 -1
- package/dist/cli/{spec-SNEhNUFc.js → spec-uCpXPLoF.js} +2 -2
- package/dist/cli/{sql-layout-CKFIMA8Y.js → sql-layout-Bsnge2oW.js} +2 -2
- package/dist/cli/{sync-DMMrYcyr.js → sync-Cv7iBRhe.js} +4 -4
- package/dist/cli/{upgrade-C1sSWUgx.js → upgrade-C6jWNxkc.js} +2 -2
- package/dist/cli/{upgrade-D9tsBxs0.js → upgrade-DV7jTRdh.js} +5 -5
- package/dist/cli/{version-DnpEuhUA.js → version-Hza4Q2PB.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-1-UmQczM.js → config-B7hnJFxh.js} +1 -1
- package/dist/{config-AEB5iNEO.js → config-DwXYtmwt.js} +4 -4
- package/dist/{connectors-DDsdz-cn.d.ts → connectors-OMJkoAP6.d.ts} +2 -2
- package/dist/{context-Cln1eg7-.d.ts → context-tFoygone.d.ts} +2 -2
- package/dist/contract/index.d.ts +4 -4
- package/dist/{controller-BQHh7VG5.d.ts → controller-phhsPHSz.d.ts} +1 -1
- package/dist/{conversion-CLBBITW5.d.ts → conversion-BShzA-u-.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +2 -2
- package/dist/{define-block-CDw9YGVh.d.ts → define-block-DBD7yhQg.d.ts} +5 -5
- package/dist/{documents-Btk0MhC0.d.ts → documents-CNVPrE_0.d.ts} +2 -2
- package/dist/{embeddings-CI6P_mtD.d.ts → embeddings-C2PBJ2Lx.d.ts} +1 -1
- package/dist/{entitlements-aN3jHcYL.d.ts → entitlements-LfW6S2RW.d.ts} +1 -1
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +1 -1
- package/dist/{eve-DleYrhwj.d.ts → eve-CtQd4iaO.d.ts} +2 -2
- package/dist/{executor-uNDJBzT8.d.ts → executor-DL7cZ-3T.d.ts} +1 -1
- package/dist/{field-errors-0V7t1-pz.d.ts → field-errors-CMWRPBmF.d.ts} +6 -6
- package/dist/{flags-Cuew4tGx.d.ts → flags-BrXfCmGB.d.ts} +1 -1
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/{gateway-B9k89AC4.d.ts → gateway-DJX-XUWl.d.ts} +3 -3
- package/dist/{inbox-yGfUVQr2.d.ts → inbox-DiQ8KhG8.d.ts} +4 -4
- package/dist/{index-DAS_5OfK.d.ts → index-1_-lg9Gc.d.ts} +1 -1
- package/dist/{index-CCb0JjiX.d.ts → index-B-HuxATL.d.ts} +8 -8
- package/dist/{index-3JE4ptwV.d.ts → index-B21Pim3I.d.ts} +2 -2
- package/dist/{index-DWCo9ZUL.d.ts → index-BXkPvYzd.d.ts} +1 -1
- package/dist/{index-hmnB81h6.d.ts → index-D-uiT4Qz.d.ts} +3 -3
- package/dist/{index-D1harGe_.d.ts → index-RZqQdq1G.d.ts} +2 -2
- package/dist/{index-DoDmA-sQ.d.ts → index-X5igfnIi.d.ts} +2 -2
- package/dist/{index-C0jB70wR.d.ts → index-fmrLdtVT.d.ts} +1 -1
- package/dist/{instances-Bycf_aus.js → instances-DJOknCJ0.js} +13 -2
- package/dist/{knowledge-DWXAxvkN.d.ts → knowledge-DtECa_QW.d.ts} +4 -4
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +1 -1
- package/dist/{messaging-Bfe4p9Pm.d.ts → messaging-CpQIhkFi.d.ts} +2 -2
- package/dist/next/index.d.ts +7 -7
- package/dist/{operations-TlhX7IZX.d.ts → operations-Cm4mSrAX.d.ts} +1 -1
- package/dist/{options-BXbixNrP.js → options-C5cLEJEa.js} +2 -1
- package/dist/{options-Bgnm4pTD.js → options-CzxG2Phg.js} +3 -0
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-DikdzUKf.d.ts → outbox-Cpxpzcue.d.ts} +2 -2
- package/dist/{permissions-CwlRRwvr.d.ts → permissions-r0Cxhxos.d.ts} +1 -1
- package/dist/{ports-rJDkwtOQ.d.ts → ports-BJJJmfWK.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-DkeXFh7e.js → preset-U47pzJMK.js} +2 -2
- package/dist/{project-Bcs-4Pfw.js → project-Dng8tO8S.js} +5 -5
- package/dist/{push-token-BLQ09NeA.d.ts → push-token-CA31xmQr.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-form-C-gIxGXe.d.ts → record-form-C-1TPtMG.d.ts} +1 -1
- package/dist/{recordings-Bw5LoocX.d.ts → recordings-BVuri85k.d.ts} +1 -1
- package/dist/records/index.d.ts +8 -8
- package/dist/{sandboxes-BF9RxxCU.d.ts → sandboxes-DKgJZYUZ.d.ts} +1 -1
- package/dist/{scores-Ce8MxQX9.d.ts → scores-BXuSVczw.d.ts} +2 -2
- package/dist/server/index.d.ts +4 -4
- package/dist/{signers-Dw9DBZjJ.d.ts → signers-UANxMfH-.d.ts} +2 -2
- package/dist/{signing-keys-FglIQ6iL.d.ts → signing-keys-DhBSWFy_.d.ts} +2 -2
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-D-_Egz0E.js → sql-BudVz33a.js} +1183 -396
- package/dist/{sso-B7w7h8RJ.d.ts → sso-Frh3sbJ1.d.ts} +2 -2
- package/dist/ssr/index.d.ts +1 -1
- package/dist/{subjects-CVjAE7nz.d.ts → subjects-DNFE2rMl.d.ts} +2 -2
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-BkW_auBX.d.ts → tenant-C2vnB0wX.d.ts} +1 -1
- package/dist/testing/index.d.ts +13 -13
- package/dist/testing/index.js +1 -1
- package/dist/{timeline-c6I3uxya.d.ts → timeline-BB9fKT_r.d.ts} +2 -2
- package/dist/{topic-L_8Qs5qs.d.ts → topic-CKN3kmoi.d.ts} +1 -1
- package/dist/{types-DtiDatvu.d.ts → types-D--4dv5K.d.ts} +3 -3
- package/dist/{types--PUNrvz8.d.ts → types-D8Tltfdq.d.ts} +2 -2
- package/dist/{types-BXLiM6VM.d.ts → types-DCzgSAlU.d.ts} +2 -2
- package/dist/{types-6PMaLIyw.d.ts → types-DU_nNO7U.d.ts} +2 -2
- package/dist/{types-BdhE7I8Z.d.ts → types-LLCyr-xs.d.ts} +2 -2
- package/dist/{types-D5uf0l4_.d.ts → types-kq8S5HVE.d.ts} +1 -1
- package/dist/{types-C7K8mu9B.d.ts → types-z31g0-5T.d.ts} +3 -3
- package/dist/{undo-CdKp5_2X.d.ts → undo-BCQMqIQN.d.ts} +1 -1
- package/dist/{usage-DZ8j5Tm_.d.ts → usage-CJDj5j15.d.ts} +3 -3
- package/dist/vercel-sandbox/index.d.ts +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-B9aKuw5v.d.ts → watch-topic-0dXuJMuE.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-CUt0E4v6.d.ts → workflow-sdk-DzKQo265.d.ts} +2 -2
- package/dist/{workflow-sdk-6psRpDIo.js → workflow-sdk-vXuxBSrk.js} +20 -1
- package/dist/{workflows-BI4yKqFh.d.ts → workflows-D7HvWeNu.d.ts} +2 -2
- package/dist/yjs/index.d.ts +2 -2
- package/package.json +1 -1
- package/schemas/config-v1.json +26 -0
- package/skills/better-supabase/SKILL.md +26 -8
- package/dist/cli/add-BCkaPIvM.js +0 -1
- package/dist/cli/powersync-D-1aQ3C6.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as AiChatMessageStorage } from "./ai-chat-
|
|
1
|
+
import { u as AiChatMessageStorage } from "./ai-chat-rQ7Ftq9W.js";
|
|
2
2
|
import { n as ExtraColumns, t as BlockOptionsSchema } from "./options-CRwTY_q2.js";
|
|
3
3
|
import { t as AssetsSqlOptions } from "./options-Bwrwb8do.js";
|
|
4
4
|
import { t as ContentSqlOptions } from "./options-Lh6uxepF.js";
|
|
@@ -171,9 +171,9 @@ interface BlockNameRegistry {
|
|
|
171
171
|
readonly tables: {
|
|
172
172
|
readonly "requests": "id" | "tenant" | "subjectType" | "subjectId" | "action" | "policy" | "step" | "status" | "requestedBy" | "reason" | "payload" | "expiresAt" | "remindedAt" | "decidedAt" | "fingerprint" | "consumedAt" | "createdAt";
|
|
173
173
|
readonly "decisions": "id" | "request" | "tenant" | "step" | "approver" | "decision" | "delegateTo" | "comment" | "createdAt";
|
|
174
|
-
readonly "policies": "id" | "tenant" | "subjectType" | "action" | "name" | "conditions" | "mode" | "steps" | "selfApproval" | "expiresIn" | "enabled" | "createdBy" | "createdAt" | "updatedAt";
|
|
174
|
+
readonly "policies": "id" | "tenant" | "subjectType" | "action" | "name" | "conditions" | "mode" | "steps" | "selfApproval" | "expiresIn" | "enabled" | "createdBy" | "createdAt" | "updatedAt" | "effect";
|
|
175
175
|
};
|
|
176
|
-
readonly functions: "approval_effective_policy" | "approval_eligible" | "approval_finalize" | "approval_notify" | "approval_policy" | "approval_requirement" | "cancel_approval" | "consume_approval" | "decide_approval" | "delegate_approval" | "expire_approvals" | "get_approval" | "is_approved" | "list_approvals" | "open_approval" | "remind_approvals" | "request_approval";
|
|
176
|
+
readonly functions: "approval_effective_policy" | "approval_eligible" | "approval_finalize" | "approval_notify" | "approval_policy" | "approval_requirement" | "cancel_approval" | "consume_approval" | "decide_approval" | "delegate_approval" | "escalate_approvals" | "expire_approvals" | "get_approval" | "is_approved" | "list_approvals" | "open_approval" | "remind_approvals" | "request_approval";
|
|
177
177
|
readonly actions: "read" | "request" | "manage";
|
|
178
178
|
readonly hooks: "before_approval_request" | "after_approval_request" | "before_approval_decide" | "after_approval_decide";
|
|
179
179
|
readonly entities: {
|
|
@@ -957,7 +957,7 @@ interface BlockNameRegistry {
|
|
|
957
957
|
readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt";
|
|
958
958
|
readonly "charges": "id" | "tenant" | "invoice" | "amount" | "currency" | "description" | "createdBy" | "createdAt";
|
|
959
959
|
};
|
|
960
|
-
readonly functions: "add_invoice_charge" | "create_invoice" | "credit_invoice" | "delete_invoice" | "invoice_aging" | "issue_invoice" | "record_invoice_payment" | "remove_invoice_charge" | "reverse_invoice_payment" | "set_invoice_lines" | "set_invoice_lines_recount" | "update_invoice" | "void_invoice" | "write_off_invoice";
|
|
960
|
+
readonly functions: "add_invoice_charge" | "create_invoice" | "credit_invoice" | "delete_invoice" | "invoice_aging" | "issue_invoice" | "list_invoice_payments" | "record_invoice_payment" | "remove_invoice_charge" | "reverse_invoice_payment" | "set_invoice_lines" | "set_invoice_lines_recount" | "update_invoice" | "void_invoice" | "write_off_invoice";
|
|
961
961
|
readonly actions: "read" | "write" | "manage" | "create" | "update" | "issue" | "payment" | "credit" | "charge" | "void" | "writeOff" | "reverse" | "delete";
|
|
962
962
|
readonly hooks: "before_invoice_issue" | "after_invoice_issue" | "before_invoice_payment" | "after_invoice_payment";
|
|
963
963
|
readonly entities: {
|
|
@@ -1351,16 +1351,17 @@ interface BlockNameRegistry {
|
|
|
1351
1351
|
};
|
|
1352
1352
|
readonly "quotes": {
|
|
1353
1353
|
readonly tables: {
|
|
1354
|
-
readonly "quotes": "id" | "tenant" | "number" | "identifier" | "revision" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "owner" | "currency" | "status" | "validUntil" | "terms" | "note" | "originType" | "originId" | "tokenHash" | "sentAt" | "viewedAt" | "decidedAt" | "decidedBy" | "decisionNote" | "decidedUser" | "decidedIp" | "decidedUserAgent" | "pricesIncludeTax" | "discountBps" | "discountAmount" | "depositBps" | "depositDue" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
|
|
1355
|
-
readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt" | "section" | "optional" | "selected";
|
|
1354
|
+
readonly "quotes": "id" | "tenant" | "number" | "identifier" | "revision" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "owner" | "currency" | "status" | "validUntil" | "terms" | "note" | "originType" | "originId" | "tokenHash" | "sentAt" | "viewedAt" | "decidedAt" | "decidedBy" | "decisionNote" | "decidedUser" | "decidedIp" | "decidedUserAgent" | "pricesIncludeTax" | "discountBps" | "discountAmount" | "depositBps" | "depositAmount" | "depositRequired" | "depositDue" | "unpublishedChanges" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
|
|
1355
|
+
readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt" | "section" | "optional" | "selected" | "periods";
|
|
1356
1356
|
readonly "versions": "id" | "tenant" | "quote" | "revision" | "snapshot" | "total" | "currency" | "publishedBy" | "publishedAt";
|
|
1357
|
+
readonly "versionLines": "id" | "tenant" | "version" | "position" | "description" | "quantity" | "unitAmount" | "periods" | "discountBps" | "taxRateBps" | "taxCode" | "section" | "optional" | "selected" | "productType" | "productId";
|
|
1357
1358
|
readonly "taxLines": "id" | "tenant" | "parent" | "taxRateBps" | "taxCode" | "net" | "tax" | "gross" | "discount";
|
|
1358
1359
|
};
|
|
1359
|
-
readonly functions: "create_quote" | "decide_quote" | "expire_quotes" | "portal_quote" | "public_quote" | "quote_version" | "quote_versions" | "respond_to_portal_quote" | "respond_to_quote" | "revise_quote" | "send_quote" | "set_quote_lines" | "set_quote_lines_recount" | "update_quote";
|
|
1360
|
+
readonly functions: "create_quote" | "decide_quote" | "expire_quotes" | "portal_quote" | "public_quote" | "quote_version" | "quote_versions" | "respond_to_portal_quote" | "respond_to_quote" | "revise_quote" | "send_quote" | "set_quote_lines" | "set_quote_lines_recount" | "update_quote" | "withdraw_quote";
|
|
1360
1361
|
readonly actions: "read" | "write" | "manage";
|
|
1361
1362
|
readonly hooks: "before_quote_send" | "after_quote_send" | "before_quote_accept" | "after_quote_accept";
|
|
1362
1363
|
readonly entities: {
|
|
1363
|
-
readonly "quote": "id" | "tenant_id" | "number" | "identifier" | "revision" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "owner_user_id" | "currency" | "status" | "valid_until" | "terms" | "note" | "origin_type" | "origin_id" | "token_hash" | "sent_at" | "viewed_at" | "decided_at" | "decided_by" | "decision_note" | "decided_user_id" | "decided_ip" | "decided_user_agent" | "prices_include_tax" | "discount_bps" | "discount_amount" | "deposit_bps" | "deposit_due" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
|
|
1364
|
+
readonly "quote": "id" | "tenant_id" | "number" | "identifier" | "revision" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "owner_user_id" | "currency" | "status" | "valid_until" | "terms" | "note" | "origin_type" | "origin_id" | "token_hash" | "sent_at" | "viewed_at" | "decided_at" | "decided_by" | "decision_note" | "decided_user_id" | "decided_ip" | "decided_user_agent" | "prices_include_tax" | "discount_bps" | "discount_amount" | "deposit_bps" | "deposit_amount" | "deposit_required" | "deposit_due" | "unpublished_changes" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
|
|
1364
1365
|
};
|
|
1365
1366
|
readonly primary: "quote";
|
|
1366
1367
|
};
|
|
@@ -2061,6 +2062,20 @@ type ApprovalsSqlOptions = {
|
|
|
2061
2062
|
* above with its own steps, conditions and mode (ADR 0119).
|
|
2062
2063
|
*/
|
|
2063
2064
|
readonly tenantPolicies?: boolean;
|
|
2065
|
+
/**
|
|
2066
|
+
* Rows of `approval_policies` without an organization are platform policies:
|
|
2067
|
+
* platform staff edit them at runtime, they apply to every organization and
|
|
2068
|
+
* stand in for a missing config floor. Needs `tenantPolicies`.
|
|
2069
|
+
*/
|
|
2070
|
+
readonly platformPolicies?: boolean;
|
|
2071
|
+
/**
|
|
2072
|
+
* `"rules"` matches tenant policy conditions through the automations block's
|
|
2073
|
+
* rule fields; `"payload"` matches them against the request payload without
|
|
2074
|
+
* automations.
|
|
2075
|
+
*/
|
|
2076
|
+
readonly conditions?: "rules" | "payload";
|
|
2077
|
+
/** Subject types whose requests may have no organization. */
|
|
2078
|
+
readonly tenantless?: readonly string[];
|
|
2064
2079
|
readonly extraColumns?: ExtraColumns;
|
|
2065
2080
|
};
|
|
2066
2081
|
/** `blocks.attachments.options`. */
|
|
@@ -2550,6 +2565,7 @@ type InvoicesSqlOptions = {
|
|
|
2550
2565
|
* table, so the app can renumber lines in one update. Default `true`.
|
|
2551
2566
|
*/
|
|
2552
2567
|
readonly linePositionKey?: boolean;
|
|
2568
|
+
readonly paymentsAfterWriteOff?: boolean;
|
|
2553
2569
|
};
|
|
2554
2570
|
/** `blocks.knowledge.options`. */
|
|
2555
2571
|
type KnowledgeSqlOptions = {
|
|
@@ -2835,6 +2851,17 @@ type QuotesSqlOptions = {
|
|
|
2835
2851
|
* and to basis points. Default `"bps"`.
|
|
2836
2852
|
*/
|
|
2837
2853
|
readonly lineRates?: "bps" | "percent";
|
|
2854
|
+
/**
|
|
2855
|
+
* Staff edit a sent quote while the customer keeps seeing its last published
|
|
2856
|
+
* version; sending it again publishes the next revision on the same link, and
|
|
2857
|
+
* an acceptance restores the version the customer saw.
|
|
2858
|
+
*/
|
|
2859
|
+
readonly workingCopy?: boolean;
|
|
2860
|
+
/**
|
|
2861
|
+
* Each published version keeps its lines as rows with their own ids in
|
|
2862
|
+
* `quote_version_lines`, so other records can point at them.
|
|
2863
|
+
*/
|
|
2864
|
+
readonly versionLines?: boolean;
|
|
2838
2865
|
};
|
|
2839
2866
|
/** `blocks.reactions.options`. */
|
|
2840
2867
|
type ReactionsSqlOptions = {
|
|
@@ -7,7 +7,9 @@ const quotesSqlOptions = blockOptions({
|
|
|
7
7
|
validDays: option.number({ default: 30 }),
|
|
8
8
|
extraColumns: option.extraColumns(),
|
|
9
9
|
lineExtraColumns: option.extraColumns(),
|
|
10
|
-
lineRates: option.string({ default: "bps" })
|
|
10
|
+
lineRates: option.string({ default: "bps" }),
|
|
11
|
+
workingCopy: option.boolean({ default: false }),
|
|
12
|
+
versionLines: option.boolean({ default: false })
|
|
11
13
|
});
|
|
12
14
|
// src/blocks/quotes/automations.ts
|
|
13
15
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "./types-BzIYSSWK.js";
|
|
2
|
-
import {
|
|
2
|
+
import { s as BlockTenant } from "./block-helpers-Sj-efEhC.js";
|
|
3
3
|
import { t as BetterSupabase, y as Db } from "./define-C_He1bQO.js";
|
|
4
4
|
import { n as DataEngine } from "./data-engine-CX1oYDZl.js";
|
|
5
|
-
import { Dn as GeneratedBlocks } from "./define-block-
|
|
6
|
-
import { rt as BetterQueries } from "./index-
|
|
7
|
-
import { t as ClientPorts } from "./ports-
|
|
5
|
+
import { Dn as GeneratedBlocks } from "./define-block-DBD7yhQg.js";
|
|
6
|
+
import { rt as BetterQueries } from "./index-1_-lg9Gc.js";
|
|
7
|
+
import { t as ClientPorts } from "./ports-BJJJmfWK.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
interface AuthUser {
|
|
10
10
|
readonly id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dn as GeneratedBlocks } from "./define-block-
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
3
|
-
import { t as ClientPorts } from "./ports-
|
|
4
|
-
import { t as AuthPort } from "./controller-
|
|
1
|
+
import { Dn as GeneratedBlocks } from "./define-block-DBD7yhQg.js";
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-0dXuJMuE.js";
|
|
3
|
+
import { t as ClientPorts } from "./ports-BJJJmfWK.js";
|
|
4
|
+
import { t as AuthPort } from "./controller-phhsPHSz.js";
|
|
5
5
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
6
6
|
/**
|
|
7
7
|
* What the block bindings hand their controllers: the provider's client,
|
|
@@ -53,4 +53,18 @@ interface CursorPageOptions<Cursor> {
|
|
|
53
53
|
readonly limit?: number;
|
|
54
54
|
readonly cursor?: Cursor;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Who made a change, for the state machine's history row: a portal visitor who
|
|
58
|
+
* isn't an auth user, the request's IP address and user agent, or the user the
|
|
59
|
+
* service role acts for.
|
|
60
|
+
*/
|
|
61
|
+
interface TransitionActor {
|
|
62
|
+
/** The user the service role acts for; a signed-in caller is kept instead. */
|
|
63
|
+
readonly id?: string;
|
|
64
|
+
readonly name?: string;
|
|
65
|
+
readonly email?: string;
|
|
66
|
+
/** An IPv4 or IPv6 address; anything else is refused. */
|
|
67
|
+
readonly ip?: string;
|
|
68
|
+
readonly userAgent?: string;
|
|
69
|
+
}
|
|
70
|
+
export { TransitionActor as a, CursorPageOptions as i, BlockOptions as n, BlockTenantOptions as o, BlockTemporalOptions as r, BlockTenant as s, BlockCall as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
2
2
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
3
|
-
import { t as BlockCall } from "./block-helpers-
|
|
3
|
+
import { t as BlockCall } from "./block-helpers-Sj-efEhC.js";
|
|
4
4
|
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
5
5
|
/** A block method: anything that returns an `AsyncResult`. */
|
|
6
6
|
type BlockMethod = (...args: never[]) => AsyncResult<unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as entityNoun, i as entityNames, n as checkEntityName, s as tenantRename, t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
|
|
2
|
-
import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG } from "./instances-
|
|
2
|
+
import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG } from "./instances-DJOknCJ0.js";
|
|
3
3
|
// src/config/defaults.ts
|
|
4
4
|
/**
|
|
5
5
|
* Every default `resolveConfig` fills in. Other modules (the SQL module
|
|
@@ -127,6 +127,14 @@ function resolveNames(module, names, blocks = {}) {
|
|
|
127
127
|
entityNaming: entityNames(renames)
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
+
// src/sql/tenant-column.ts
|
|
131
|
+
const DEFAULT_TENANT_COLUMN = "tenant_id";
|
|
132
|
+
function blockColumnName(where, columns, name, tenantColumn, rename) {
|
|
133
|
+
if (name !== DEFAULT_TENANT_COLUMN || tenantColumn === void 0) return rename(name);
|
|
134
|
+
const clash = Object.entries(columns).find(([, other]) => rename(other) === tenantColumn);
|
|
135
|
+
if (clash !== void 0) throw new TypeError(`sql.tenantColumn: "${tenantColumn}" is the name of ${where.table}.${clash[0]} in the ${where.module} module. Choose another name, or map blocks.${where.module}.columns.${where.table}.tenant.`);
|
|
136
|
+
return tenantColumn;
|
|
137
|
+
}
|
|
130
138
|
// src/config/block-subjects.ts
|
|
131
139
|
const CATALOG = new Map(PRESET_CATALOG.blocks.map((block) => [block.name, block]));
|
|
132
140
|
/** `names` and every block they require, from the catalog, in order. */
|
|
@@ -184,7 +192,7 @@ function blockEntities(module, blocks) {
|
|
|
184
192
|
});
|
|
185
193
|
}
|
|
186
194
|
/** The subjects one installed block registers, keyed by renamed entity. */
|
|
187
|
-
function subjectsOf(module, blocks) {
|
|
195
|
+
function subjectsOf(module, blocks, tenantColumn) {
|
|
188
196
|
const entities = CATALOG.get(module)?.entities;
|
|
189
197
|
const names = catalogNames(module);
|
|
190
198
|
const config = resolveBlock(blocks[module]);
|
|
@@ -197,7 +205,10 @@ function subjectsOf(module, blocks) {
|
|
|
197
205
|
const mapped = entity.table === void 0 ? void 0 : config.tables[entity.table];
|
|
198
206
|
if (subject === void 0 || entity.table === void 0 || table === void 0 || mapped === null) return [];
|
|
199
207
|
const logical = entity.table;
|
|
200
|
-
const column = (name) => config.columns[logical]?.[name] ??
|
|
208
|
+
const column = (name) => config.columns[logical]?.[name] ?? blockColumnName({
|
|
209
|
+
module,
|
|
210
|
+
table: logical
|
|
211
|
+
}, table.columns, table.columns[name] ?? name, tenantColumn, (each) => resolved.naming.rename(each));
|
|
201
212
|
const titled = (key) => config.columns[logical]?.[key] === null && subject.fallbackTitle !== void 0 ? column(subject.fallbackTitle) : column(key);
|
|
202
213
|
const name = mapped ?? resolved.naming.rename(table.name);
|
|
203
214
|
const url = entity.url ?? subject.url;
|
|
@@ -235,9 +246,9 @@ function subjectsOf(module, blocks) {
|
|
|
235
246
|
function blockSubjectTypes(module, blocks) {
|
|
236
247
|
return Object.keys(subjectsOf(module, blocks));
|
|
237
248
|
}
|
|
238
|
-
function withBlockSubjects(subjects, blockNames, blocks) {
|
|
249
|
+
function withBlockSubjects(subjects, blockNames, blocks, tenantColumn) {
|
|
239
250
|
const merged = {};
|
|
240
|
-
for (const module of withRequired(blockNames)) for (const [type, entry] of Object.entries(subjectsOf(module, blocks))) {
|
|
251
|
+
for (const module of withRequired(blockNames)) for (const [type, entry] of Object.entries(subjectsOf(module, blocks, tenantColumn))) {
|
|
241
252
|
if (Object.hasOwn(subjects, type)) throw new TypeError(`records.${type}: the ${module} block registers "${type}" itself; remove records.${type}, or set blocks.${module}.names.<entity>.subject to false to keep your own`);
|
|
242
253
|
merged[type] = entry;
|
|
243
254
|
}
|
|
@@ -250,4 +261,4 @@ function installedBlockSubjects(subjects, installed, blocks) {
|
|
|
250
261
|
const dropped = new Set(withRequired(installed).filter((module) => !installed.includes(module)).flatMap((module) => blockSubjectTypes(module, blocks)));
|
|
251
262
|
return dropped.size === 0 ? subjects : Object.fromEntries(Object.entries(subjects).filter(([type]) => !dropped.has(type)));
|
|
252
263
|
}
|
|
253
|
-
export { withBlockSubjects as a,
|
|
264
|
+
export { withBlockSubjects as a, resolveJsonSchema as c, installedBlockSubjects as i, CONFIG_DEFAULTS as l, blockEntityRenames as n, blockColumnName as o, blockSubjectTypes as r, resolveNames as s, blockEntities as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn as ResolvedConfig } from "./context-
|
|
1
|
+
import { cn as ResolvedConfig } from "./context-tFoygone.js";
|
|
2
2
|
/**
|
|
3
3
|
* One block table as the config names it: unquoted schema and table, and each
|
|
4
4
|
* logical column's written name, or `null` when an adopted table lacks it.
|
|
@@ -4,10 +4,10 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
5
|
import { Ct as Events, f as AccessRequestEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
7
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
interface AccessRequestsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -5,13 +5,13 @@ import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
|
5
5
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { b as EngagementEventData, x as EngagementRecordingEventData } from "../../index-DjJUamhw.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
8
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
9
9
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
10
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
11
|
-
import { f as AiFiles } from "../../types-
|
|
12
|
-
import { _ as JobHandler } from "../../types-
|
|
13
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
14
|
-
import { a as EngagementRecording, c as NoteTakerInput, d as Transcript, f as TranscriptSegment, i as EngagementNotesInput, l as Transcriber, n as EngagementActionItem, o as EngagementRecordingStatus, p as TranscriptSegmentInput, r as EngagementNotes, s as NoteTaker, t as ENGAGEMENT_TRANSCRIBE_QUEUE, u as TranscriberInput } from "../../recordings-
|
|
10
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
11
|
+
import { f as AiFiles } from "../../types-DU_nNO7U.js";
|
|
12
|
+
import { _ as JobHandler } from "../../types-LLCyr-xs.js";
|
|
13
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
14
|
+
import { a as EngagementRecording, c as NoteTakerInput, d as Transcript, f as TranscriptSegment, i as EngagementNotesInput, l as Transcriber, n as EngagementActionItem, o as EngagementRecordingStatus, p as TranscriptSegmentInput, r as EngagementNotes, s as NoteTaker, t as ENGAGEMENT_TRANSCRIBE_QUEUE, u as TranscriberInput } from "../../recordings-BVuri85k.js";
|
|
15
15
|
/** A record an engagement is on. */
|
|
16
16
|
interface EngagementSubject {
|
|
17
17
|
readonly type: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ct as Events, p as AgentEventData } from "../../events-DddDlibJ.js";
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
3
|
-
import { a as AgentSkill, c as AgentsOptions, i as AgentKnowledgeScope, l as NewAgent, n as AgentFields, o as AgentVisibility, r as AgentFilter, s as Agents, t as Agent, u as createAgents } from "../../agents-
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
+
import { a as AgentSkill, c as AgentsOptions, i as AgentKnowledgeScope, l as NewAgent, n as AgentFields, o as AgentVisibility, r as AgentFilter, s as Agents, t as Agent, u as createAgents } from "../../agents-BAiLeoR-.js";
|
|
4
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
5
5
|
/** The events of the `agents` block: type to data. */
|
|
6
6
|
type AgentsEvents = {
|
|
7
7
|
readonly "agent.saved": AgentEventData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
2
|
-
import { a as AiCacheSetOptions, i as AiCacheOptions, n as AiCacheEntry, o as cacheKey, r as AiCacheKind, s as createAiCache, t as AiCache } from "../../ai-cache-
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
2
|
+
import { a as AiCacheSetOptions, i as AiCacheOptions, n as AiCacheEntry, o as cacheKey, r as AiCacheKind, s as createAiCache, t as AiCache } from "../../ai-cache-B94R1da7.js";
|
|
3
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
4
4
|
/** The `ai-cache` block's manifest (ADR 0029). */
|
|
5
5
|
export declare const aiCacheBlock: BlockOf<"ai-cache", typeof createAiCache>;
|
|
6
6
|
export { type AiCache, type AiCacheEntry, type AiCacheKind, type AiCacheOptions, type AiCacheSetOptions, type BlockTransport, cacheKey, createAiCache, dbTransport, rpcTransport, sqlTransport };
|
|
@@ -2,12 +2,12 @@ import { b as DbError } from "../../result-DTOQRyGY.js";
|
|
|
2
2
|
import { Ct as Events, g as AiToolEventData, m as AiChatEventData } from "../../events-DddDlibJ.js";
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
4
4
|
import { a as AiMessagePart, c as AiReasoningPart, d as AiTextPart, f as AiToolApprovalPart, g as isAiMessage, h as aiMessageSchema, i as AiMessage, l as AiSourcePart, m as AiToolResultPart, n as AiDataPart, o as AiMessagePartType, p as AiToolCallPart, r as AiFilePart, s as AiMessageRole, t as AI_MESSAGE_SCHEMA_ID, u as AiStepPart } from "../../message-Cc4bkdNw.js";
|
|
5
|
-
import { $ as createHarnessSessions, A as AiRunStatus, B as SharedAiChat, C as AiModerationInput, D as AiProject, E as AiPendingInputRequest, F as AiStreamClaim, G as AiPendingApproval, H as AiHarnessSessionPatch, I as AiToolApproval, J as AiRunState, K as AiRun, L as AiToolApprovalRequest, M as AiShareLink, N as AiStoredMessage, O as AiProjectInput, P as AiStoredMessageStatus, Q as AiRuns, R as AiToolPolicy, S as AiModerationEvent, T as AiPendingInput, U as AiHarnessSessions, V as AiHarnessSession, W as AiHarnessStatus, X as AiRunStepInput, Y as AiRunStep, Z as AiRunStepStatus, _ as AiFeedback, a as createAiChat, b as AiModelInput, c as AiAssistantMessageOptions, d as AiChatPage, f as AiChatPatch, g as AiChatVisibility, h as AiChatShare, i as aiChatTopic, j as AiSaveResult, k as AiRunRelease, l as AiChatInput, m as AiChatRecord, n as AiChatOptions, o as AiAppendResult, p as AiChatQuery, q as AiRunQuery, r as aiChatListTopic, s as AiApprovalDecision, t as AiChat, v as AiMessageSibling, w as AiModerationStage, x as AiModerationAction, y as AiModel, z as AiUserMessageTrigger } from "../../ai-chat-
|
|
6
|
-
import { a as NewAiSandbox, i as AiSandboxes, n as AiSandboxStatus, r as AiSandboxStopper, t as AiSandbox } from "../../sandboxes-
|
|
7
|
-
import { c as BlockOf } from "../../define-block-
|
|
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-
|
|
5
|
+
import { $ as createHarnessSessions, A as AiRunStatus, B as SharedAiChat, C as AiModerationInput, D as AiProject, E as AiPendingInputRequest, F as AiStreamClaim, G as AiPendingApproval, H as AiHarnessSessionPatch, I as AiToolApproval, J as AiRunState, K as AiRun, L as AiToolApprovalRequest, M as AiShareLink, N as AiStoredMessage, O as AiProjectInput, P as AiStoredMessageStatus, Q as AiRuns, R as AiToolPolicy, S as AiModerationEvent, T as AiPendingInput, U as AiHarnessSessions, V as AiHarnessSession, W as AiHarnessStatus, X as AiRunStepInput, Y as AiRunStep, Z as AiRunStepStatus, _ as AiFeedback, a as createAiChat, b as AiModelInput, c as AiAssistantMessageOptions, d as AiChatPage, f as AiChatPatch, g as AiChatVisibility, h as AiChatShare, i as aiChatTopic, j as AiSaveResult, k as AiRunRelease, l as AiChatInput, m as AiChatRecord, n as AiChatOptions, o as AiAppendResult, p as AiChatQuery, q as AiRunQuery, r as aiChatListTopic, s as AiApprovalDecision, t as AiChat, v as AiMessageSibling, w as AiModerationStage, x as AiModerationAction, y as AiModel, z as AiUserMessageTrigger } from "../../ai-chat-rQ7Ftq9W.js";
|
|
6
|
+
import { a as NewAiSandbox, i as AiSandboxes, n as AiSandboxStatus, r as AiSandboxStopper, t as AiSandbox } from "../../sandboxes-DKgJZYUZ.js";
|
|
7
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
8
|
+
import { p as SubscriptionStatus } from "../../topic-CKN3kmoi.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
12
12
|
/**
|
|
13
13
|
* The `type` of each part in the canonical AI message (version 1); the SQL
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
2
2
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
4
|
-
import { _ as NewAiFile, a as AiDocumentWithContent, c as AiFileSource, d as AiFileUpload, f as AiFiles, g as NewAiDocument, h as AiSuggestion, i as AiDocumentVersion, l as AiFileStatus, m as AiProviderFile, n as AiDocumentEdit, o as AiFile, p as AiFilesOptions, r as AiDocumentKind, s as AiFileBucket, t as AiDocument, u as AiFileStorage, v as StoredAiFile } from "../../types-
|
|
5
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
+
import { _ as NewAiFile, a as AiDocumentWithContent, c as AiFileSource, d as AiFileUpload, f as AiFiles, g as NewAiDocument, h as AiSuggestion, i as AiDocumentVersion, l as AiFileStatus, m as AiProviderFile, n as AiDocumentEdit, o as AiFile, p as AiFilesOptions, r as AiDocumentKind, s as AiFileBucket, t as AiDocument, u as AiFileStorage, v as StoredAiFile } from "../../types-DU_nNO7U.js";
|
|
5
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
6
6
|
/** The URL a message stores for a file: `supabase-storage://{bucket}/{path}`. */
|
|
7
7
|
export declare function aiFileUrl(file: Pick<AiFile, "bucket" | "path">): string;
|
|
8
8
|
/** The bucket and path of a `supabase-storage://` URL, or `undefined`. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ct as Events, h as AiProviderKeyEventData } from "../../events-DddDlibJ.js";
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
3
|
-
import { a as AiBatchItemStatus, c as AiKeys, d as AiProviderKeyInput, f as NewAiBatch, i as AiBatchItemInput, l as AiKeysOptions, n as AiBatchCounts, o as AiBatchPatch, p as ResolvedProviderKey, r as AiBatchItem, s as AiBatchStatus, t as AiBatch, u as AiProviderKey } from "../../types-
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
+
import { a as AiBatchItemStatus, c as AiKeys, d as AiProviderKeyInput, f as NewAiBatch, i as AiBatchItemInput, l as AiKeysOptions, n as AiBatchCounts, o as AiBatchPatch, p as ResolvedProviderKey, r as AiBatchItem, s as AiBatchStatus, t as AiBatch, u as AiProviderKey } from "../../types-DCzgSAlU.js";
|
|
4
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
5
5
|
/** Per-tenant provider keys and provider batch jobs. */
|
|
6
6
|
export declare function createAiKeys(options: AiKeysOptions): AiKeys;
|
|
7
7
|
/** The events of the `ai-keys` block: type to data. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
2
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
-
import { a as AiTaskOutcome, c as AiTaskRunner, i as AiTaskFields, l as NewAiTask, n as AiSchedulesOptions, o as AiTaskRun, r as AiTask, s as AiTaskRunStatus, t as AiSchedules, u as createAiSchedules } from "../../ai-schedules-
|
|
2
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
3
|
+
import { a as AiTaskOutcome, c as AiTaskRunner, i as AiTaskFields, l as NewAiTask, n as AiSchedulesOptions, o as AiTaskRun, r as AiTask, s as AiTaskRunStatus, t as AiSchedules, u as createAiSchedules } from "../../ai-schedules-DIiPmFgn.js";
|
|
4
4
|
/** The `ai-schedules` block's manifest (ADR 0029). */
|
|
5
5
|
export declare const aiSchedulesBlock: BlockOf<"ai-schedules", typeof createAiSchedules, Record<never, never>, {
|
|
6
6
|
readonly notifier: "optional";
|
|
@@ -4,13 +4,13 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
5
|
import { Ct as Events, _ as AnnouncementEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
7
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
12
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
13
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
11
|
+
import { p as SubscriptionStatus } from "../../topic-CKN3kmoi.js";
|
|
12
|
+
import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
|
|
13
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
|
|
14
14
|
type AnnouncementSeverity = "info" | "success" | "warning" | "critical";
|
|
15
15
|
/**
|
|
16
16
|
* Who sees it: everyone, members of some tenants, members with some roles, or
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
2
|
-
import { _ as createApiKeys, a as ApiKeyExtraClaims, c as ApiKeyState, d as CreateApiKeyInput, f as CreatedApiKey, g as apiKeyResolver, h as apiKeyClaims, i as ApiKeyExtraClaim, l as ApiKeys, m as apiKeyChecksum, n as ApiKeyCheck, o as ApiKeyReservedClaim, p as ParsedApiKey, r as ApiKeyClaimsOptions, s as ApiKeyResolverOptions, t as ApiKey, u as ApiKeysOptions, v as parseApiKey } from "../../api-keys-
|
|
3
|
-
import { a as ApiKeyDraft, c as ApiKeysControllerOptions, d as ApiKeyAuth, f as ApiKeyContributions, i as ApiKeyChange, l as ApiKeysSnapshot, m as withApiKey, n as ApiKeysEvents, o as ApiKeysActions, p as WithApiKeyOptions, r as apiKeysEvents, s as ApiKeysController, t as apiKeysBlock, u as createApiKeysController } from "../../index-
|
|
2
|
+
import { _ as createApiKeys, a as ApiKeyExtraClaims, c as ApiKeyState, d as CreateApiKeyInput, f as CreatedApiKey, g as apiKeyResolver, h as apiKeyClaims, i as ApiKeyExtraClaim, l as ApiKeys, m as apiKeyChecksum, n as ApiKeyCheck, o as ApiKeyReservedClaim, p as ParsedApiKey, r as ApiKeyClaimsOptions, s as ApiKeyResolverOptions, t as ApiKey, u as ApiKeysOptions, v as parseApiKey } from "../../api-keys-U3JQ8IlM.js";
|
|
3
|
+
import { a as ApiKeyDraft, c as ApiKeysControllerOptions, d as ApiKeyAuth, f as ApiKeyContributions, i as ApiKeyChange, l as ApiKeysSnapshot, m as withApiKey, n as ApiKeysEvents, o as ApiKeysActions, p as WithApiKeyOptions, r as apiKeysEvents, s as ApiKeysController, t as apiKeysBlock, u as createApiKeysController } from "../../index-D-uiT4Qz.js";
|
|
4
4
|
export { type ApiKey, type ApiKeyAuth, type ApiKeyChange, type ApiKeyCheck, type ApiKeyClaimsOptions, type ApiKeyContributions, type ApiKeyDraft, type ApiKeyExtraClaim, type ApiKeyExtraClaims, type ApiKeyReservedClaim, type ApiKeyResolverOptions, type ApiKeyState, type ApiKeys, type ApiKeysActions, type ApiKeysController, type ApiKeysControllerOptions, type ApiKeysEvents, type ApiKeysOptions, type ApiKeysSnapshot, type BlockTransport, type CreateApiKeyInput, type CreatedApiKey, type ParsedApiKey, type WithApiKeyOptions, apiKeyChecksum, apiKeyClaims, apiKeyResolver, apiKeysBlock, apiKeysEvents, createApiKeys, createApiKeysController, dbTransport, parseApiKey, rpcTransport, sqlTransport, withApiKey };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as CollaborationEventData, Ct as Events } from "../../events-DddDlibJ.js";
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
-
import { a as
|
|
3
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
4
|
+
import { _ as approvalFingerprint, a as ApprovalMode, c as ApprovalRequestDetail, d as ApprovalStatus, f as ApprovalStep, g as ApprovalsOptions, h as Approvals, i as ApprovalListOptions, l as ApprovalRequestInput, m as ApprovalTenantPolicy, n as ApprovalDecideOptions, o as ApprovalPolicyInput, p as ApprovalStepInput, r as ApprovalDecision, s as ApprovalRequest, t as ApprovalApprovers, u as ApprovalRequirement, v as createApprovals } from "../../approvals-CTVaWq1O.js";
|
|
5
5
|
/** `approval_policy.saved` and `approval_policy.removed`. */
|
|
6
6
|
interface ApprovalPolicyEventData {
|
|
7
7
|
readonly organizationId: string;
|
|
@@ -19,6 +19,7 @@ type ApprovalsEvents = {
|
|
|
19
19
|
readonly "approval.expired": CollaborationEventData;
|
|
20
20
|
readonly "approval.delegated": CollaborationEventData;
|
|
21
21
|
readonly "approval.consumed": CollaborationEventData;
|
|
22
|
+
readonly "approval.escalated": CollaborationEventData;
|
|
22
23
|
readonly "approval_policy.saved": ApprovalPolicyEventData;
|
|
23
24
|
readonly "approval_policy.removed": ApprovalPolicyEventData;
|
|
24
25
|
};
|
|
@@ -26,4 +27,4 @@ type ApprovalsEvents = {
|
|
|
26
27
|
export declare const approvalsEvents: Events<ApprovalsEvents>;
|
|
27
28
|
/** The `approvals` block's manifest (ADR 0029). */
|
|
28
29
|
export declare const approvalsBlock: BlockOf<"approvals", typeof createApprovals, ApprovalsEvents>;
|
|
29
|
-
export { type ApprovalApprovers, type ApprovalDecision, type ApprovalListOptions, type ApprovalMode, type ApprovalPolicyInput, type ApprovalRequest, type ApprovalRequestDetail, type ApprovalRequestInput, type ApprovalRequirement, type ApprovalStatus, type ApprovalStep, type ApprovalTenantPolicy, type Approvals, type ApprovalsEvents, type ApprovalsOptions, type BlockTransport, approvalFingerprint, createApprovals, dbTransport, rpcTransport, sqlTransport };
|
|
30
|
+
export { type ApprovalApprovers, type ApprovalDecideOptions, type ApprovalDecision, type ApprovalListOptions, type ApprovalMode, type ApprovalPolicyInput, type ApprovalRequest, type ApprovalRequestDetail, type ApprovalRequestInput, type ApprovalRequirement, type ApprovalStatus, type ApprovalStep, type ApprovalStepInput, type ApprovalTenantPolicy, type Approvals, type ApprovalsEvents, type ApprovalsOptions, type BlockTransport, approvalFingerprint, createApprovals, dbTransport, rpcTransport, sqlTransport };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as approvalsSqlOptions } from "../../options-
|
|
1
|
+
import { t as approvalsSqlOptions } from "../../options-CzxG2Phg.js";
|
|
2
2
|
import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
3
3
|
import { U as rpcTransport, V as dbTransport, W as sqlTransport } from "../../block-helpers-I7UzjNEf.js";
|
|
4
4
|
import { n as defineBlock } from "../../define-block-22Jv4U_-.js";
|
|
5
|
-
import { n as createApprovals, t as approvalFingerprint } from "../../approvals-
|
|
5
|
+
import { n as createApprovals, t as approvalFingerprint } from "../../approvals-Qjn42OAZ.js";
|
|
6
6
|
// src/blocks/approvals/events.ts
|
|
7
7
|
/** The `approvals` block's event types, for its manifest and `onBlockEvent`. */
|
|
8
8
|
const approvalsEvents = defineEvents({
|
|
@@ -13,6 +13,7 @@ const approvalsEvents = defineEvents({
|
|
|
13
13
|
"approval.expired": event(),
|
|
14
14
|
"approval.delegated": event(),
|
|
15
15
|
"approval.consumed": event(),
|
|
16
|
+
"approval.escalated": event(),
|
|
16
17
|
"approval_policy.saved": event(),
|
|
17
18
|
"approval_policy.removed": event()
|
|
18
19
|
});
|
|
@@ -3,11 +3,11 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
4
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import {
|
|
6
|
+
import { o as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
8
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
9
9
|
import { t as AssetsSqlOptions } from "../../options-Bwrwb8do.js";
|
|
10
|
-
import { c as BlockOf, rn as RecordBinding } from "../../define-block-
|
|
10
|
+
import { c as BlockOf, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
interface AssetsOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -3,11 +3,11 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
|
3
3
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
4
|
import { p as AssignmentEventData } from "../../index-DjJUamhw.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
6
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
8
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
9
9
|
import { h as FilterQuery } from "../../filter-query-Xj40B5KT.js";
|
|
10
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
10
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
/** How a queue picks the next owner. */
|
|
12
12
|
type AssignmentStrategy = "round_robin" | "weighted";
|
|
13
13
|
/** A member in a queue's rotation. */
|
|
@@ -2,8 +2,8 @@ import { b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRy
|
|
|
2
2
|
import { Ct as Events, ot as StorageObjectEventData, y as AttachmentEventData } from "../../events-DddDlibJ.js";
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
4
4
|
import { t as Author } from "../../block-authors-C5z3tGVu.js";
|
|
5
|
-
import { At as NewAttachment, Ct as AttachmentScannerOptions, Dt as AttachmentVersion, Et as AttachmentUpload, Ft as ScannedObject, It as attachmentVersionOf, Lt as createAttachmentScanner, Mt as ObjectScanner, Nt as ObjectScannerOptions, Ot as Attachments, Pt as ScanVerdict, Rt as createAttachments, Sn as EntitySchema, St as AttachmentScanner, Tt as AttachmentStorage, _t as AttachmentDownload, bt as AttachmentReplacement, c as BlockOf, gt as AttachmentBucket, ht as Attachment, jt as ObjectScanJob, kt as AttachmentsOptions, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding, vt as AttachmentImageUrlOptions, wt as AttachmentStatus, xt as AttachmentScanJob, yt as AttachmentImages, zt as createObjectScanner } from "../../define-block-
|
|
6
|
-
import { n as Controller } from "../../controller-
|
|
5
|
+
import { At as NewAttachment, Ct as AttachmentScannerOptions, Dt as AttachmentVersion, Et as AttachmentUpload, Ft as ScannedObject, It as attachmentVersionOf, Lt as createAttachmentScanner, Mt as ObjectScanner, Nt as ObjectScannerOptions, Ot as Attachments, Pt as ScanVerdict, Rt as createAttachments, Sn as EntitySchema, St as AttachmentScanner, Tt as AttachmentStorage, _t as AttachmentDownload, bt as AttachmentReplacement, c as BlockOf, gt as AttachmentBucket, ht as Attachment, jt as ObjectScanJob, kt as AttachmentsOptions, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding, vt as AttachmentImageUrlOptions, wt as AttachmentStatus, xt as AttachmentScanJob, yt as AttachmentImages, zt as createObjectScanner } from "../../define-block-DBD7yhQg.js";
|
|
6
|
+
import { n as Controller } from "../../controller-phhsPHSz.js";
|
|
7
7
|
/** A pending write to a record's files, for `useOptimistic`. */
|
|
8
8
|
type AttachmentsOptimisticAction = {
|
|
9
9
|
readonly type: "add";
|
|
@@ -3,17 +3,17 @@ import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from ".
|
|
|
3
3
|
import { O as AnyFunctions, dt as TableKey, k as AnyModels } from "../../types-BzIYSSWK.js";
|
|
4
4
|
import { Ct as Events, b as AuditRevealEventData } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
6
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
7
7
|
import { n as SqlClient } from "../../executor-DoSNec_H.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
10
10
|
import { Yt as WhereInput, t as BetterSupabase } from "../../define-C_He1bQO.js";
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
12
12
|
import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
|
|
13
13
|
import { i as ListDefinition } from "../../list-query-BkbLV-Yc.js";
|
|
14
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
15
|
-
import { a as UndoToken } from "../../undo-
|
|
16
|
-
import { n as AuditCategory } from "../../context-
|
|
14
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
|
|
15
|
+
import { a as UndoToken } from "../../undo-BCQMqIQN.js";
|
|
16
|
+
import { n as AuditCategory } from "../../context-tFoygone.js";
|
|
17
17
|
interface PurgeAuditLogOptions extends BlockTemporalOptions {
|
|
18
18
|
/**
|
|
19
19
|
* How long entries are kept when `retention` has no answer. Defaults to `1
|
|
@@ -3,16 +3,16 @@ import { D as ValidationIssue, T as ErrorMapper, b as DbError, f as Result, t as
|
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
4
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
6
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
8
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
9
9
|
import { _ as FilterRule, d as FilterLimits, f as FilterNode, h as FilterQuery, i as FilterCombinator, m as FilterOperatorSpec, r as FilterClock } from "../../filter-query-Xj40B5KT.js";
|
|
10
|
-
import { $t as createActionRegistry, Bt as Action, Gt as ActionInfo, Ht as ActionContext, Jt as ActionRegistry, Kt as ActionOrigin, L as NotifierInput, Qt as actionKey, Ut as ActionDescriptor, Vt as ActionCall, Wt as ActionHandler, Yt as ActionSpec, Zt as DefaultAutomation, c as BlockOf, en as defineAction, qt as ActionRef } from "../../define-block-
|
|
11
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
12
|
-
import {
|
|
10
|
+
import { $t as createActionRegistry, Bt as Action, Gt as ActionInfo, Ht as ActionContext, Jt as ActionRegistry, Kt as ActionOrigin, L as NotifierInput, Qt as actionKey, Ut as ActionDescriptor, Vt as ActionCall, Wt as ActionHandler, Yt as ActionSpec, Zt as DefaultAutomation, c as BlockOf, en as defineAction, qt as ActionRef } from "../../define-block-DBD7yhQg.js";
|
|
11
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
|
|
12
|
+
import { l as ApprovalRequestInput } from "../../approvals-CTVaWq1O.js";
|
|
13
13
|
import { n as FilterRecordField, t as FilterEvaluation } from "../../filter-evaluate-Bkbb0nuQ.js";
|
|
14
14
|
import { a as checkRuleConditions, c as ruleFilterFields, i as RuleFieldDefinition, n as RuleField, o as defineRuleFields, r as RuleFieldCatalog, s as ruleFilterFieldInfo, t as RULE_LIMITS } from "../../fields-CP46SPNE.js";
|
|
15
|
-
import { a as ConversionRelations, i as ConversionRef, n as ConversionContext, o as ConversionSpec, r as ConversionOutcome, s as defineConversionAction, t as ConversionClients } from "../../conversion-
|
|
15
|
+
import { a as ConversionRelations, i as ConversionRef, n as ConversionContext, o as ConversionSpec, r as ConversionOutcome, s as defineConversionAction, t as ConversionClients } from "../../conversion-BShzA-u-.js";
|
|
16
16
|
/** What a rule runs when it matches: an action reference (ADR 0046). */
|
|
17
17
|
type RuleAction = ActionRef;
|
|
18
18
|
interface Rule {
|
|
@@ -3,10 +3,10 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
4
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import {
|
|
6
|
+
import { o as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
9
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-
|
|
8
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
9
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
|
|
10
10
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
11
11
|
/** How `unbilled` and `invoice` turn entries into lines. */
|
|
12
12
|
type BillableTimeGrouping = "subject" | "member" | "entry";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { C as BillingEventData, Ct as Events, O as BlockEventType, o as EventHub } from "../../events-DddDlibJ.js";
|
|
4
4
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
5
|
-
import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-
|
|
5
|
+
import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
6
6
|
import { n as SqlClient } from "../../executor-DoSNec_H.js";
|
|
7
7
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
8
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
9
9
|
import { n as StripeSource, r as StripeTaxId, t as StripeClient } from "../../stripe-Bl-sjnl6.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
|
|
12
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
|
|
13
13
|
import { d as stripeInboxVerify, f as verifyStripeWebhook, u as signStripeWebhook } from "../../verify-Cpc1upDA.js";
|
|
14
14
|
/** The events of the `billing` block: type to data. */
|
|
15
15
|
type BillingEvents = {
|