better-supabase 0.36.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ai-schedules-BZPmySUa.d.ts → ai-schedules-ChJkI2jo.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/batches/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/{api-XEaCJbgv.d.ts → api-CbY2qdzT.d.ts} +3 -3
- package/dist/{api-keys-C82fMru4.d.ts → api-keys-BncNDlWG.d.ts} +1 -1
- package/dist/{app-tables-C0XVpQEJ.d.ts → app-tables-D2c0i05-.d.ts} +1 -1
- package/dist/{approvals-DqCv7f-G.d.ts → approvals-CXW3yFWZ.d.ts} +1 -1
- package/dist/astro/index.d.ts +5 -5
- package/dist/{authorization-2Rv1AJQJ.d.ts → authorization-D8CaAdqU.d.ts} +48 -20
- package/dist/{authorization-hooks-C0GfMvFm.d.ts → authorization-hooks-CR8TVvqo.d.ts} +1 -1
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-C2XvMlfg.d.ts → bind-5vOwNouG.d.ts} +4 -4
- package/dist/{block-env-BQrtLPyc.d.ts → block-env-hco8BLjC.d.ts} +4 -4
- package/dist/block-subjects-CINiJW1R.js +253 -0
- package/dist/{block-tables-DPOgnT3y.d.ts → block-tables-BsgdB6VG.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +2 -2
- package/dist/blocks/activities/index.d.ts +3 -3
- package/dist/blocks/agents/index.d.ts +2 -2
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +5 -5
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.d.ts +3 -3
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +5 -5
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/approvals/index.d.ts +3 -3
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assignment/index.d.ts +3 -3
- package/dist/blocks/attachments/index.d.ts +3 -3
- package/dist/blocks/audit/index.d.ts +7 -7
- package/dist/blocks/automations/index.d.ts +5 -5
- package/dist/blocks/billable-time/index.d.ts +2 -2
- package/dist/blocks/billing/index.d.ts +5 -5
- 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 +26 -3
- package/dist/blocks/catalog/index.js +41 -2
- 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 +5 -5
- package/dist/blocks/compliance/index.d.ts +2 -2
- package/dist/blocks/connectors/index.d.ts +3 -3
- package/dist/blocks/contacts/index.d.ts +3 -3
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/contracts/index.d.ts +2 -2
- package/dist/blocks/courses/index.d.ts +2 -2
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +2 -2
- 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 +2 -2
- package/dist/blocks/documents/index.d.ts +2 -2
- package/dist/blocks/domains/index.d.ts +2 -2
- package/dist/blocks/donations/index.d.ts +2 -2
- package/dist/blocks/drive/index.d.ts +3 -3
- 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 +2 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +4 -2
- package/dist/blocks/expenses/index.js +10 -3
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/flags/index.d.ts +2 -2
- package/dist/blocks/forecasts/index.d.ts +3 -3
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/guests/index.d.ts +2 -2
- package/dist/blocks/hiring/index.d.ts +3 -3
- package/dist/blocks/identities/index.d.ts +2 -2
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/inbox/index.d.ts +6 -6
- package/dist/blocks/incidents/index.d.ts +2 -2
- package/dist/blocks/index.d.ts +4 -4
- package/dist/blocks/inventory/index.d.ts +171 -10
- package/dist/blocks/inventory/index.js +206 -13
- package/dist/blocks/invoices/index.d.ts +18 -4
- package/dist/blocks/invoices/index.js +13 -0
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +1 -1
- package/dist/blocks/leases/index.d.ts +2 -2
- package/dist/blocks/leave/index.d.ts +2 -2
- package/dist/blocks/leave/index.js +1 -1
- package/dist/blocks/ledger/index.d.ts +2 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +7 -7
- package/dist/blocks/metrics/index.d.ts +2 -2
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/notifications/index.d.ts +7 -7
- package/dist/blocks/numbering/index.d.ts +2 -2
- package/dist/blocks/oauth-server/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +80 -13
- package/dist/blocks/orders/index.js +63 -4
- package/dist/blocks/organizations/index.d.ts +4 -4
- package/dist/blocks/outbox/index.d.ts +2 -2
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/pipelines/index.d.ts +3 -3
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/promotions/index.d.ts +3 -3
- package/dist/blocks/promotions/index.js +1 -1
- package/dist/blocks/push/index.d.ts +3 -3
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/quotes/index.d.ts +3 -3
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +5 -5
- package/dist/blocks/relations/index.d.ts +2 -2
- package/dist/blocks/reminders/index.d.ts +3 -3
- package/dist/blocks/reviews/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.d.ts +4 -4
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/search/index.d.ts +4 -4
- package/dist/blocks/security-events/index.d.ts +3 -3
- package/dist/blocks/segments/index.d.ts +3 -3
- package/dist/blocks/sequences/index.d.ts +2 -2
- package/dist/blocks/service-accounts/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +3 -3
- package/dist/blocks/share-links/index.d.ts +2 -2
- package/dist/blocks/shipments/index.d.ts +73 -4
- package/dist/blocks/shipments/index.js +57 -4
- package/dist/blocks/signatures/index.d.ts +2 -2
- 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 +3 -3
- package/dist/blocks/state-machine/index.d.ts +9 -2
- package/dist/blocks/state-machine/index.js +2 -0
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/tags/index.d.ts +3 -3
- package/dist/blocks/tasks/index.d.ts +5 -5
- package/dist/blocks/teams/index.d.ts +2 -2
- package/dist/blocks/templates/index.d.ts +122 -9
- package/dist/blocks/templates/index.js +157 -7
- package/dist/blocks/time-tracking/index.d.ts +3 -3
- package/dist/blocks/timeline/index.d.ts +9 -7
- package/dist/blocks/timeline/index.js +3 -1
- package/dist/blocks/trash/index.d.ts +2 -2
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
- package/dist/blocks/versions/index.d.ts +2 -2
- package/dist/blocks/waitlist/index.d.ts +2 -2
- package/dist/blocks/webhooks/index.d.ts +6 -6
- package/dist/blocks/workflow-editor/index.d.ts +7 -7
- package/dist/blocks/workflows/index.d.ts +5 -5
- package/dist/{carrier-D2b_028L.d.ts → carrier-B2eytEjR.d.ts} +10 -1
- package/dist/chat-sdk/index.d.ts +2 -2
- package/dist/claims/index.d.ts +5 -5
- package/dist/cli/{add-Duf1-19E.js → add-7nCSDmpt.js} +11 -11
- package/dist/cli/{add-D2CH8t_B.js → add-B4tQpnXP.js} +2 -2
- package/dist/cli/add-CdDneXMN.js +1 -0
- package/dist/cli/{app-table-files-ha8X0rRE.js → app-table-files-CtO-zxpO.js} +2 -2
- package/dist/cli/{app-tables-BIyQcsHH.js → app-tables-B7UzcJ_g.js} +2 -2
- package/dist/cli/{backfill-CLgA6-ll.js → backfill-B2nFDXaS.js} +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-9AeouX4h.js → blocks-BX_6HUQT.js} +2 -2
- package/dist/cli/{blocks-BVB1fMMj.js → blocks-DU4iDrYS.js} +1 -1
- package/dist/cli/{cache-aMk9vF1_.js → cache-bS5bAoF-.js} +1 -1
- package/dist/cli/{codemod-B5wrcnF2.js → codemod-B1sSIE2p.js} +88 -62
- package/dist/cli/{command-DM_x_yzZ.js → command-67WobzTC.js} +7 -1
- package/dist/cli/{completion-DbYb3N8e.js → completion-C3nMZgUZ.js} +2 -2
- package/dist/cli/{completion-CusuUJNn.js → completion-DSrus7H1.js} +1 -1
- package/dist/cli/{completion-Cx2UYd-y.js → completion-Dm0S3ub0.js} +2 -2
- package/dist/cli/{config-BeuImpav.js → config-cbK-wiNs.js} +1 -1
- package/dist/cli/{content-mapper-CEtdbshU.js → content-mapper-CW6V6VRq.js} +2 -2
- package/dist/cli/{db-CeiQzhPq.js → db-bK5eCLaE.js} +1 -1
- package/dist/cli/{doctor-DaOUWfRN.js → doctor-Dw2pAf1b.js} +16 -16
- package/dist/cli/env-AFfMXxWw.js +1 -0
- package/dist/cli/{env-DVV10l_r.js → env-CCT-dMFm.js} +1 -1
- package/dist/cli/{gen-BO-2NF-G.js → gen-BtoSx3go.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-Xit9Hnbb.js → init-DZXbrKuJ.js} +9 -9
- package/dist/cli/{keys-DJTN2Avl.js → keys-Dj5sJNj7.js} +1 -1
- package/dist/cli/{live-CuMpyRjF.js → live-CDFfJcdR.js} +2 -2
- package/dist/cli/{mcp-C7d4j5cq.js → mcp-BukxvITV.js} +3 -3
- package/dist/cli/{metadata-D2YvkY2D.js → metadata-iZizGVuY.js} +3 -3
- package/dist/cli/{migrate-BCXxyTKt.js → migrate-DPnnGLzw.js} +2 -2
- package/dist/cli/{migration-safety-DfwTOBQ4.js → migration-safety-COcnZbMO.js} +1 -1
- package/dist/cli/{migrations-nomh4TBo.js → migrations-BBt9fmiV.js} +2 -2
- package/dist/cli/{module-migration--9T_T-zt.js → module-migration-tCmPLhQp.js} +2 -2
- package/dist/cli/{moved-CT6i1csY.js → moved-CY0yDtAr.js} +1 -1
- package/dist/cli/{parse-qgJylE_A.js → parse-yAC-NFMq.js} +1 -1
- package/dist/cli/{powersync-DB9WZsIv.js → powersync-BRmUJ-uR.js} +4 -4
- package/dist/cli/powersync-CYLPcJ9G.js +1 -0
- package/dist/cli/{print-S6IF5rZm.js → print-DdwQNG_e.js} +2 -2
- package/dist/cli/{providers-BDTcal71.js → providers-CaNg6Ayz.js} +1 -1
- package/dist/cli/{prune-workflows-Zr2DjByi.js → prune-workflows-BQQrI3tU.js} +2 -2
- package/dist/cli/{remove-CPX5Tg5s.js → remove-BEj9YEON.js} +6 -6
- package/dist/cli/{render-Bp7a7XQ9.js → render-UBqU9r44.js} +3 -3
- package/dist/cli/{run-BclCFEyP.js → run-3E_IuJzS.js} +9 -9
- package/dist/cli/{run-kgG50x_Z.js → run-BXlX9YdD.js} +44 -43
- package/dist/cli/{run-BlVaLnt_.js → run-DX4X7xqV.js} +2 -2
- package/dist/cli/seed-CLlvrV8I.js +1 -0
- package/dist/cli/{seed-Cn2R91cd.js → seed-DSC6f0oh.js} +1 -1
- package/dist/cli/{shared-D60W9NS-.js → shared-agrqD28l.js} +1 -1
- package/dist/cli/{skills-DH-yPDny.js → skills-B5p6bDwe.js} +1 -1
- package/dist/cli/{snapshot-C3_eQUgY.js → snapshot-DOXmozSq.js} +2 -2
- package/dist/cli/{source-Bk6XwIAK.js → source-BfJprU-6.js} +1 -1
- package/dist/cli/{spec-BDTpcBns.js → spec-CgtIHFsl.js} +1 -1
- package/dist/cli/{spec-C8ydQwZC.js → spec-DRpSQGOW.js} +3 -3
- package/dist/cli/{sql-layout-DVQ20UMi.js → sql-layout-Cs3FMWcY.js} +2 -2
- package/dist/cli/{stack-CmhSfY5V.js → stack-CQXLe5j0.js} +1 -1
- package/dist/cli/{sync-D-WO4Yvl.js → sync-C_YGIDjk.js} +4 -4
- package/dist/cli/{table-k5OABwy3.js → table-BIQA9Hdt.js} +1 -1
- package/dist/cli/{upgrade-DGe5Pv6v.js → upgrade-ByQeJRGU.js} +5 -5
- package/dist/cli/{upgrade-XdhMuHAu.js → upgrade-OG9vaBeX.js} +3 -3
- package/dist/cli/{version-DKfeme2I.js → version-CF6Yzah0.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{cloud-event-BEmAUdl1.d.ts → cloud-event-BjgxkfJJ.d.ts} +1 -1
- package/dist/{codecs-B9v5Y5HH.js → codecs-D_pOvjvD.js} +1 -0
- package/dist/{codecs-B1VO2BGL.d.ts → codecs-DaP45ETv.d.ts} +1 -1
- package/dist/{composite-B-oAH16L.d.ts → composite-DPN4SFud.d.ts} +6 -6
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-BrRlSxhx.js → config-1-UmQczM.js} +1 -1
- package/dist/{config-BKxjItQ-.js → config-AEB5iNEO.js} +4 -123
- package/dist/{connectors-CrLRW4Ol.d.ts → connectors-DDsdz-cn.d.ts} +1 -1
- package/dist/{context-yfOlyAqb.d.ts → context-CH5FYnVk.d.ts} +2 -2
- package/dist/contract/index.d.ts +8 -8
- package/dist/{controller-CAcLEndc.d.ts → controller-CJ6rLnpS.d.ts} +1 -1
- package/dist/{conversion-s1NtB6S-.d.ts → conversion-CLBBITW5.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/credentials/index.d.ts +3 -3
- package/dist/{define-BvkaC3Oh.d.ts → define-C_He1bQO.d.ts} +1 -1
- package/dist/{define-block-Ds3aLZwz.d.ts → define-block-CDw9YGVh.d.ts} +4 -4
- package/dist/edge/index.d.ts +8 -8
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{ended-iq2wp8fc.d.ts → ended-BwpmNC5k.d.ts} +1 -1
- package/dist/{entitlements-Dhu-4vlH.d.ts → entitlements-6gODwBSz.d.ts} +2 -2
- package/dist/eve/index.d.ts +3 -3
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-DCw3c6pj.d.ts → events-DddDlibJ.d.ts} +8 -0
- package/dist/{executor-H8ZLkeHj.d.ts → executor-CxMHiDp_.d.ts} +2 -2
- package/dist/{executor-B-o7QMPp.d.ts → executor-uNDJBzT8.d.ts} +1 -1
- package/dist/expo/index.d.ts +3 -3
- package/dist/{field-errors-DXZk9Qjt.d.ts → field-errors-CdSjV9Zo.d.ts} +7 -7
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/{framework-Byr_j8G-.d.ts → framework-B6JAPr1i.d.ts} +7 -7
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +8 -8
- package/dist/{index-lMApFSAd.d.ts → index-B5awu2SP.d.ts} +3 -3
- package/dist/{index-CnzGRpeH.d.ts → index-BgRl484n.d.ts} +5 -5
- package/dist/{index-6H-8Ib1w.d.ts → index-CgKieWlO.d.ts} +3 -3
- package/dist/{index-kkZwp5M1.d.ts → index-CrOeAgSh.d.ts} +4 -4
- package/dist/{index-Ag-T51Jl.d.ts → index-CvLTqmdq.d.ts} +1 -1
- package/dist/{index-Dbd1E5Au.d.ts → index-DAS_5OfK.d.ts} +3 -3
- package/dist/{index-CY612vAg.d.ts → index-DjJUamhw.d.ts} +2 -2
- package/dist/{index-Dv6lfL5p.d.ts → index-DnEJVKQ2.d.ts} +11 -11
- package/dist/{index-BUluRi0b.d.ts → index-DzLLMmUB.d.ts} +5 -5
- package/dist/{index-C78VPlXW.d.ts → index-vkd2LTt2.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/{instances-xQ2lupVE.js → instances-Bycf_aus.js} +86 -7
- package/dist/{kit-DCuO1ZhB.d.ts → kit-lHFpu2_1.d.ts} +3 -3
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-D1h3Dmnk.d.ts → list-query-BkbLV-Yc.d.ts} +1 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/sdk/index.d.ts +5 -5
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +22 -22
- package/dist/node/index.d.ts +2 -2
- package/dist/{operations-SWpzGC_K.d.ts → operations-knMnfzgm.d.ts} +1 -1
- package/dist/{options-DqmTs2nv.js → options-CEwoGUk_.js} +2 -1
- package/dist/{options-yRwYr4up.js → options-CGQC7Wue.js} +4 -1
- package/dist/{options-RYbyaVhv.js → options-CS1DA8q9.js} +1 -0
- package/dist/{options-ScQ6Hnxo.js → options-zsLpIqBA.js} +2 -1
- package/dist/orpc/index.d.ts +7 -7
- package/dist/otel/index.d.ts +1 -1
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-BFZS6Kvz.d.ts → outbox-DikdzUKf.d.ts} +2 -2
- package/dist/{permissions-2UlVQDzY.d.ts → permissions-Ed8WvLgQ.d.ts} +1 -1
- package/dist/{pool-yO-LzZAd.d.ts → pool-BJAjQcrJ.d.ts} +1 -1
- package/dist/{ports-prqYrReN.d.ts → ports-Bnwy2mlR.d.ts} +1 -1
- package/dist/postgres/index.d.ts +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BvHNleCo.js → preset-DkeXFh7e.js} +2 -2
- package/dist/{project-CBvowdKY.js → project-By0R8ioI.js} +5 -5
- package/dist/{provider-bIAzxVMB.d.ts → provider-CVlXXbda.d.ts} +1 -1
- package/dist/{push-token-DtqJeg8w.d.ts → push-token-CJbEvwjI.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +9 -9
- package/dist/react/session.d.ts +1 -1
- package/dist/react-router/index.d.ts +5 -5
- package/dist/realtime/index.d.ts +4 -4
- package/dist/{record-form-BQA-lawE.d.ts → record-form-C-gIxGXe.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{refusal-BX1EvmpJ.d.ts → refusal-CjUUBfhY.d.ts} +2 -2
- package/dist/{resolve-BIpQRhvF.d.ts → resolve-XlMQRUeG.d.ts} +1 -1
- package/dist/{resource-execute-A1NbR-sd.d.ts → resource-execute-B7-QaS6R.d.ts} +1 -1
- package/dist/{resource-types-CTcc37WL.d.ts → resource-types-CF3Uc6OW.d.ts} +2 -2
- package/dist/{resources-13ZFX1G6.d.ts → resources-DnHSmJIM.d.ts} +1 -1
- package/dist/{respond-CAxhkwAi.d.ts → respond-D7kUatjc.d.ts} +1 -1
- package/dist/server/index.d.ts +21 -21
- package/dist/{server-types-DEjva0MW.d.ts → server-types-DpI82uNq.d.ts} +8 -8
- package/dist/{session-CeYL3EPm.d.ts → session-JV1z0kxa.d.ts} +2 -2
- package/dist/{session-BA0YDmjt.d.ts → session-s-mUZ8RQ.d.ts} +5 -5
- package/dist/{session-status-Df6tuKY9.d.ts → session-status-CJjTuFtA.d.ts} +2 -2
- package/dist/{sign-in-4u4vLtXG.d.ts → sign-in-D5Bg7R47.d.ts} +1 -1
- package/dist/solid/index.d.ts +9 -9
- package/dist/solid-start/index.d.ts +5 -5
- package/dist/spec/index.d.ts +1 -1
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-BChN3Hxv.js → sql-B2cMvGnZ.js} +4207 -756
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/ssr/index.d.ts +4 -4
- package/dist/{statuses-BTrQ5H4S.js → statuses-Qqpzda35.js} +12 -1
- package/dist/stock-detail-BMqvwq1q.js +12 -0
- package/dist/stock-detail-BRIt7CjU.d.ts +19 -0
- package/dist/{subject-readers-YL8H9G8X.d.ts → subject-readers-D1Km_Q42.d.ts} +1 -1
- package/dist/{support-BwtMgjVg.d.ts → support-Dj5V2WTs.d.ts} +4 -4
- package/dist/{support-view-GykHOIQ2.d.ts → support-view-DKZkZeM5.d.ts} +1 -1
- package/dist/svelte/index.d.ts +8 -8
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/{tags-CAfvzA1U.d.ts → tags-BihwKkTT.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +5 -5
- package/dist/{tenant-lBgoqg9T.d.ts → tenant-eZNRWTRJ.d.ts} +1 -1
- package/dist/testing/index.d.ts +17 -17
- package/dist/testing/index.js +2 -2
- package/dist/{timeline-CrO48Qa6.d.ts → timeline-c6I3uxya.d.ts} +3 -3
- package/dist/{topic-x-mrN_Ff.d.ts → topic-D7F2FBNp.d.ts} +3 -3
- package/dist/{types-auvHrNWC.d.ts → types-BXLiM6VM.d.ts} +1 -1
- package/dist/{types-C9XfFGmA.d.ts → types-DtiDatvu.d.ts} +2 -2
- package/dist/{types-CJqNGQKb.d.ts → types-bqvFoBhf.d.ts} +2 -2
- package/dist/{vault-DjbG4XQS.d.ts → vault-CbhvnoVC.d.ts} +1 -1
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-sandbox/index.d.ts +1 -1
- package/dist/{verify-HOiu3lRR.d.ts → verify-Cpc1upDA.d.ts} +1 -1
- package/dist/{view-DdDY88SC.d.ts → view-eHgOOyRS.d.ts} +1 -1
- package/dist/vue/index.d.ts +9 -9
- package/dist/{watch-topic-D6bcqOrJ.d.ts → watch-topic-BIEaSN0Y.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.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-CBS8L2Ku.js → workflow-sdk-6psRpDIo.js} +2 -50
- package/dist/{workflow-sdk-D3H10W5h.d.ts → workflow-sdk-CUt0E4v6.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +15 -0
- package/skills/better-supabase-auth/SKILL.md +1 -1
- package/dist/cli/add-De73Ghlh.js +0 -1
- package/dist/cli/env-BfWbheiC.js +0 -1
- package/dist/cli/powersync-IBM_v_eJ.js +0 -1
- package/dist/cli/seed-DGGjReq4.js +0 -1
- package/dist/resolved-names-b6P2--jK.js +0 -130
|
@@ -0,0 +1,253 @@
|
|
|
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-Bycf_aus.js";
|
|
3
|
+
// src/config/defaults.ts
|
|
4
|
+
/**
|
|
5
|
+
* Every default `resolveConfig` fills in. Other modules (the SQL module
|
|
6
|
+
* registry, the CLI) read their fallbacks from here instead of repeating the
|
|
7
|
+
* literals.
|
|
8
|
+
*/
|
|
9
|
+
const CONFIG_DEFAULTS = {
|
|
10
|
+
output: "src/lib/supabase/generated.ts",
|
|
11
|
+
schemas: ["public"],
|
|
12
|
+
casing: "snake",
|
|
13
|
+
postgrestVersion: "13",
|
|
14
|
+
codecs: {
|
|
15
|
+
timestamptz: "string",
|
|
16
|
+
int8: "number",
|
|
17
|
+
numeric: "number"
|
|
18
|
+
},
|
|
19
|
+
sql: {
|
|
20
|
+
dir: "supabase/schemas",
|
|
21
|
+
prefix: "900_better_supabase",
|
|
22
|
+
testsDir: "supabase/tests"
|
|
23
|
+
},
|
|
24
|
+
seed: {
|
|
25
|
+
entry: "supabase/seed.ts",
|
|
26
|
+
output: "supabase/seeds/000_better_supabase.sql",
|
|
27
|
+
perTenant: "supabase/seed.tenant.ts"
|
|
28
|
+
},
|
|
29
|
+
openapi: {
|
|
30
|
+
entry: "src/lib/openapi.ts",
|
|
31
|
+
output: "openapi.json"
|
|
32
|
+
},
|
|
33
|
+
specs: { failOn: "error" },
|
|
34
|
+
doctor: {
|
|
35
|
+
format: "text",
|
|
36
|
+
sources: ["src/**/*.{ts,tsx}"],
|
|
37
|
+
policyHelperLimit: 5
|
|
38
|
+
},
|
|
39
|
+
gen: { watchInterval: 2e3 },
|
|
40
|
+
env: { output: ".env.local" }
|
|
41
|
+
};
|
|
42
|
+
// src/config/json.ts
|
|
43
|
+
/**
|
|
44
|
+
* The JSON Schema document for a `json[...].schema` entry. A Standard Schema
|
|
45
|
+
* converts for `target` (2020-12 by default); a JSON Schema object is returned
|
|
46
|
+
* as it is.
|
|
47
|
+
*/
|
|
48
|
+
function resolveJsonSchema(source, target = "draft-2020-12") {
|
|
49
|
+
const standard = source["~standard"];
|
|
50
|
+
if (standard === void 0) return source;
|
|
51
|
+
const jsonSchema = standard.jsonSchema;
|
|
52
|
+
if (typeof jsonSchema?.input !== "function") throw new TypeError("json[...].schema: this Standard Schema library does not implement Standard JSON Schema; pass a JSON Schema object instead");
|
|
53
|
+
return jsonSchema.input({ target });
|
|
54
|
+
}
|
|
55
|
+
// src/sql/resolved-names.ts
|
|
56
|
+
const PLACEHOLDER$1 = /\{([^{}]*)\}/g;
|
|
57
|
+
function primaryOf(where, entities) {
|
|
58
|
+
const primary = Object.entries(entities).find(([, spec]) => spec.primary);
|
|
59
|
+
if (primary === void 0) throw new TypeError(`${where}: the block has no primary entity, so name one: ${Object.keys(entities).join(", ") || "none"}`);
|
|
60
|
+
return primary[0];
|
|
61
|
+
}
|
|
62
|
+
/** `blocks.<name>.entities` as entity key to its config, shorthand expanded. */
|
|
63
|
+
function configured(where, entities, config) {
|
|
64
|
+
if (config === void 0) return /* @__PURE__ */ new Map();
|
|
65
|
+
if (typeof config === "string") return /* @__PURE__ */ new Map([[primaryOf(where, entities), { name: config }]]);
|
|
66
|
+
const found = /* @__PURE__ */ new Map();
|
|
67
|
+
for (const [key, value] of Object.entries(config)) {
|
|
68
|
+
if (value === void 0) continue;
|
|
69
|
+
if (!(key in entities)) throw new TypeError(`${where}: unknown entity "${key}". Entities: ${Object.keys(entities).join(", ") || "none"}`);
|
|
70
|
+
found.set(key, typeof value === "string" ? { name: value } : value);
|
|
71
|
+
}
|
|
72
|
+
return found;
|
|
73
|
+
}
|
|
74
|
+
function checkUrl(where, url, columns) {
|
|
75
|
+
for (const [, column] of url.matchAll(PLACEHOLDER$1)) if (columns === void 0 || column === void 0 || !(column in columns)) throw new TypeError(`${where}: "{${column ?? ""}}" is not a column of the entity's table. Columns: ${Object.keys(columns ?? {}).join(", ") || "none"}`);
|
|
76
|
+
return url;
|
|
77
|
+
}
|
|
78
|
+
/** The noun forms a rename matches, for the containment check. */
|
|
79
|
+
const nounForms = (noun) => [noun.singular, noun.plural];
|
|
80
|
+
function checkNoun(where, noun, others) {
|
|
81
|
+
for (const other of others) {
|
|
82
|
+
const taken = nounForms(other).find((form) => new RegExp(`(^|_)${form}(_|$)`).test(noun.singular));
|
|
83
|
+
if (taken !== void 0) throw new TypeError(`${where}: "${noun.singular}" contains "${taken}", another name the blocks rename. Choose another name.`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function resolveEntity(where, key, spec, names, config) {
|
|
87
|
+
const from = entityNoun(spec.singular, spec.plural);
|
|
88
|
+
const to = config?.name === void 0 && config?.plural === void 0 ? from : entityNoun(config.name === void 0 ? spec.singular : checkEntityName(`${where}.${key}`, config.name), config.plural === void 0 ? void 0 : checkEntityName(`${where}.${key}.plural`, config.plural));
|
|
89
|
+
const columns = spec.table === void 0 ? void 0 : names.tables[spec.table]?.columns;
|
|
90
|
+
return {
|
|
91
|
+
key,
|
|
92
|
+
from,
|
|
93
|
+
to,
|
|
94
|
+
primary: spec.primary === true,
|
|
95
|
+
global: spec.global === true,
|
|
96
|
+
...spec.table === void 0 ? {} : { table: spec.table },
|
|
97
|
+
...config?.url === void 0 ? {} : { url: checkUrl(`${where}.${key}.url`, config.url, columns) },
|
|
98
|
+
...spec.subject === void 0 || config?.subject === false ? {} : { subject: spec.subject }
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The final names of `module` under `blocks`: its entities renamed through
|
|
103
|
+
* `blocks.<module>.entities`, and the tenant through
|
|
104
|
+
* `blocks.memberships.names.organization`. Throws on an unknown entity, a name
|
|
105
|
+
* that isn't a lowercase identifier, a `url` placeholder that isn't a column,
|
|
106
|
+
* or a name that contains another noun the blocks rename.
|
|
107
|
+
*/
|
|
108
|
+
function resolveNames(module, names, blocks = {}) {
|
|
109
|
+
const where = `blocks.${module}.names`;
|
|
110
|
+
const specs = names.entities ?? {};
|
|
111
|
+
const config = configured(where, specs, blocks[module]?.entities);
|
|
112
|
+
const tenantName = tenantNameOf(blocks);
|
|
113
|
+
const tenant = tenantName === void 0 ? DEFAULT_TENANT : tenantRename(tenantName).to;
|
|
114
|
+
const entities = Object.fromEntries(Object.entries(specs).map(([key, spec]) => [key, resolveEntity(where, key, spec, names, config.get(key))]));
|
|
115
|
+
const own = Object.values(entities).filter((entity) => !entity.global);
|
|
116
|
+
const defaults = [DEFAULT_TENANT, ...own.map((entity) => entity.from)];
|
|
117
|
+
for (const entity of own) if (entity.to.singular !== entity.from.singular) checkNoun(`${where}.${entity.key}`, entity.to, defaults.filter((noun) => noun !== entity.from));
|
|
118
|
+
const renames = own.map((entity) => ({
|
|
119
|
+
from: entity.from,
|
|
120
|
+
to: entity.to
|
|
121
|
+
}));
|
|
122
|
+
return {
|
|
123
|
+
module,
|
|
124
|
+
entities,
|
|
125
|
+
tenant,
|
|
126
|
+
naming: entityNames([...tenantName === void 0 ? [] : [tenantRename(tenantName)], ...renames]),
|
|
127
|
+
entityNaming: entityNames(renames)
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
// src/config/block-subjects.ts
|
|
131
|
+
const CATALOG = new Map(PRESET_CATALOG.blocks.map((block) => [block.name, block]));
|
|
132
|
+
/** `names` and every block they require, from the catalog, in order. */
|
|
133
|
+
function withRequired(names) {
|
|
134
|
+
const found = /* @__PURE__ */ new Set();
|
|
135
|
+
const add = (name) => {
|
|
136
|
+
if (found.has(name)) return;
|
|
137
|
+
found.add(name);
|
|
138
|
+
for (const required of CATALOG.get(name)?.requires ?? []) add(required);
|
|
139
|
+
};
|
|
140
|
+
for (const name of names) add(name);
|
|
141
|
+
return [...found];
|
|
142
|
+
}
|
|
143
|
+
const PLACEHOLDER = /\{([^{}]*)\}/g;
|
|
144
|
+
/** One installed module's names under `blocks`, from the catalog. */
|
|
145
|
+
function catalogNames(module) {
|
|
146
|
+
const entities = CATALOG.get(module)?.entities;
|
|
147
|
+
return entities === void 0 ? void 0 : {
|
|
148
|
+
tables: entities.tables,
|
|
149
|
+
entities: entities.specs
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The entities `blocks.<module>.names` gives a new name, such as `work_item` to
|
|
154
|
+
* `task`, for the block's TypeScript client (`blocks.generated.ts`). Empty when
|
|
155
|
+
* the module renames none.
|
|
156
|
+
*/
|
|
157
|
+
function blockEntityRenames(module, blocks) {
|
|
158
|
+
const names = catalogNames(module);
|
|
159
|
+
if (names === void 0) return [];
|
|
160
|
+
return Object.values(resolveNames(module, names, blocks).entities).filter((entity) => !entity.global && (entity.to.singular !== entity.from.singular || entity.to.plural !== entity.from.plural)).map((entity) => ({
|
|
161
|
+
from: entity.from,
|
|
162
|
+
to: entity.to
|
|
163
|
+
}));
|
|
164
|
+
}
|
|
165
|
+
/** The entities one installed block declares, with their final names. */
|
|
166
|
+
function blockEntities(module, blocks) {
|
|
167
|
+
const names = catalogNames(module);
|
|
168
|
+
if (names === void 0) return [];
|
|
169
|
+
const resolved = resolveNames(module, names, blocks);
|
|
170
|
+
const mapped = resolveBlock(blocks[module]).tables;
|
|
171
|
+
return Object.values(resolved.entities).map((entity) => {
|
|
172
|
+
const logical = entity.table;
|
|
173
|
+
const spec = logical === void 0 ? void 0 : names.tables[logical];
|
|
174
|
+
const target = logical === void 0 ? void 0 : mapped[logical];
|
|
175
|
+
const table = spec === void 0 || target === null ? void 0 : target ?? resolved.naming.rename(spec.name);
|
|
176
|
+
return {
|
|
177
|
+
key: entity.key,
|
|
178
|
+
from: entity.from,
|
|
179
|
+
to: entity.to,
|
|
180
|
+
primary: entity.primary,
|
|
181
|
+
table,
|
|
182
|
+
url: entity.url
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/** The subjects one installed block registers, keyed by renamed entity. */
|
|
187
|
+
function subjectsOf(module, blocks) {
|
|
188
|
+
const entities = CATALOG.get(module)?.entities;
|
|
189
|
+
const names = catalogNames(module);
|
|
190
|
+
const config = resolveBlock(blocks[module]);
|
|
191
|
+
if (entities === void 0 || names === void 0 || config.mode === "custom") return {};
|
|
192
|
+
const resolved = resolveNames(module, names, blocks);
|
|
193
|
+
const key = (action) => config.permissions[action] ?? resolved.entityNaming.rename(entities.keys[action] ?? `${module}.${action}`);
|
|
194
|
+
return Object.fromEntries(Object.values(resolved.entities).flatMap((entity) => {
|
|
195
|
+
const subject = entity.subject;
|
|
196
|
+
const table = entity.table === void 0 ? void 0 : names.tables[entity.table];
|
|
197
|
+
const mapped = entity.table === void 0 ? void 0 : config.tables[entity.table];
|
|
198
|
+
if (subject === void 0 || entity.table === void 0 || table === void 0 || mapped === null) return [];
|
|
199
|
+
const logical = entity.table;
|
|
200
|
+
const column = (name) => config.columns[logical]?.[name] ?? resolved.naming.rename(table.columns[name] ?? name);
|
|
201
|
+
const titled = (key) => config.columns[logical]?.[key] === null && subject.fallbackTitle !== void 0 ? column(subject.fallbackTitle) : column(key);
|
|
202
|
+
const name = mapped ?? resolved.naming.rename(table.name);
|
|
203
|
+
const url = entity.url ?? subject.url;
|
|
204
|
+
const entry = {
|
|
205
|
+
table: name.includes(".") ? name : `${config.schema}.${name}`,
|
|
206
|
+
idType: "uuid",
|
|
207
|
+
tenant: column("tenant"),
|
|
208
|
+
title: titled(subject.title),
|
|
209
|
+
permissions: {
|
|
210
|
+
read: key(subject.permissions.read),
|
|
211
|
+
write: key(subject.permissions.write),
|
|
212
|
+
...subject.permissions.upload === void 0 ? {} : { upload: key(subject.permissions.upload) }
|
|
213
|
+
},
|
|
214
|
+
...subject.deletedAt === void 0 ? {} : { deletedAt: column(subject.deletedAt) },
|
|
215
|
+
...subject.rank === void 0 ? {} : { rank: {
|
|
216
|
+
column: column(subject.rank.column),
|
|
217
|
+
group: column(subject.rank.group)
|
|
218
|
+
} },
|
|
219
|
+
...subject.search === void 0 ? {} : { search: {
|
|
220
|
+
title: titled(subject.search.title),
|
|
221
|
+
body: subject.search.body.filter((name) => config.columns[logical]?.[name] !== null).map(column)
|
|
222
|
+
} },
|
|
223
|
+
...url === void 0 ? {} : { url: url.replaceAll(PLACEHOLDER, (_, placeholder) => `{${column(placeholder)}}`) },
|
|
224
|
+
...subject.cascade === true ? { cascade: true } : {}
|
|
225
|
+
};
|
|
226
|
+
return [[entity.to.singular, entry]];
|
|
227
|
+
}));
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* The entities of every installed block that registers one (work items, deals,
|
|
231
|
+
* companies and people, products, employees), under their renamed type, then
|
|
232
|
+
* `subjects`. Throws when `subjects` already has a block's type.
|
|
233
|
+
*/
|
|
234
|
+
/** The subject types one installed block registers, by renamed entity. */
|
|
235
|
+
function blockSubjectTypes(module, blocks) {
|
|
236
|
+
return Object.keys(subjectsOf(module, blocks));
|
|
237
|
+
}
|
|
238
|
+
function withBlockSubjects(subjects, blockNames, blocks) {
|
|
239
|
+
const merged = {};
|
|
240
|
+
for (const module of withRequired(blockNames)) for (const [type, entry] of Object.entries(subjectsOf(module, blocks))) {
|
|
241
|
+
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
|
+
merged[type] = entry;
|
|
243
|
+
}
|
|
244
|
+
return {
|
|
245
|
+
...merged,
|
|
246
|
+
...subjects
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function installedBlockSubjects(subjects, installed, blocks) {
|
|
250
|
+
const dropped = new Set(withRequired(installed).filter((module) => !installed.includes(module)).flatMap((module) => blockSubjectTypes(module, blocks)));
|
|
251
|
+
return dropped.size === 0 ? subjects : Object.fromEntries(Object.entries(subjects).filter(([type]) => !dropped.has(type)));
|
|
252
|
+
}
|
|
253
|
+
export { withBlockSubjects as a, CONFIG_DEFAULTS as c, installedBlockSubjects as i, blockEntityRenames as n, resolveNames as o, blockSubjectTypes as r, resolveJsonSchema as s, blockEntities as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn as ResolvedConfig } from "./context-
|
|
1
|
+
import { cn as ResolvedConfig } from "./context-CH5FYnVk.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.
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events, f as AccessRequestEventData } from "../../events-
|
|
5
|
+
import { Ct as Events, f as AccessRequestEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
11
|
interface AccessRequestsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events } from "../../events-
|
|
6
|
-
import { b as EngagementEventData, x as EngagementRecordingEventData } from "../../index-
|
|
5
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
6
|
+
import { b as EngagementEventData, x as EngagementRecordingEventData } from "../../index-DjJUamhw.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
8
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.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
10
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
11
11
|
import { f as AiFiles } from "../../types-6PMaLIyw.js";
|
|
12
12
|
import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
|
|
13
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
13
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
14
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-Bw5LoocX.js";
|
|
15
15
|
/** A record an engagement is on. */
|
|
16
16
|
interface EngagementSubject {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Ct as Events, p as AgentEventData } from "../../events-
|
|
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
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-BwUHtvD6.js";
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.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
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-CPOP2PYz.js";
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.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 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DTOQRyGY.js";
|
|
2
|
-
import { Ct as Events, g as AiToolEventData, m as AiChatEventData } from "../../events-
|
|
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
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-BZhfCHHr.js";
|
|
6
6
|
import { a as NewAiSandbox, i as AiSandboxes, n as AiSandboxStatus, r as AiSandboxStopper, t as AiSandbox } from "../../sandboxes-BF9RxxCU.js";
|
|
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-
|
|
7
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
|
+
import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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
|
|
@@ -2,7 +2,7 @@ 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
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-6PMaLIyw.js";
|
|
5
|
-
import { c as BlockOf } from "../../define-block-
|
|
5
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.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
|
-
import { Ct as Events, h as AiProviderKeyEventData } from "../../events-
|
|
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-BXLiM6VM.js";
|
|
4
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.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-CDw9YGVh.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-ChJkI2jo.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";
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events, _ as AnnouncementEventData } from "../../events-
|
|
5
|
+
import { Ct as Events, _ as AnnouncementEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
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-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
|
+
import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
|
|
12
|
+
import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
|
|
13
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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-BncNDlWG.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-BgRl484n.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
|
-
import { A as CollaborationEventData, Ct as Events } from "../../events-
|
|
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 ApprovalPolicyInput, c as ApprovalRequestInput, d as ApprovalStep, f as ApprovalTenantPolicy, g as createApprovals, h as approvalFingerprint, i as ApprovalMode, l as ApprovalRequirement, m as ApprovalsOptions, n as ApprovalDecision, o as ApprovalRequest, p as Approvals, r as ApprovalListOptions, s as ApprovalRequestDetail, t as ApprovalApprovers, u as ApprovalStatus } from "../../approvals-
|
|
3
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
4
|
+
import { a as ApprovalPolicyInput, c as ApprovalRequestInput, d as ApprovalStep, f as ApprovalTenantPolicy, g as createApprovals, h as approvalFingerprint, i as ApprovalMode, l as ApprovalRequirement, m as ApprovalsOptions, n as ApprovalDecision, o as ApprovalRequest, p as Approvals, r as ApprovalListOptions, s as ApprovalRequestDetail, t as ApprovalApprovers, u as ApprovalStatus } from "../../approvals-CXW3yFWZ.js";
|
|
5
5
|
/** `approval_policy.saved` and `approval_policy.removed`. */
|
|
6
6
|
interface ApprovalPolicyEventData {
|
|
7
7
|
readonly organizationId: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
|
-
import { Ct as Events } from "../../events-
|
|
4
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.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
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.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-CDw9YGVh.js";
|
|
11
11
|
interface AssetsOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
|
-
import { Ct as Events } from "../../events-
|
|
4
|
-
import { p as AssignmentEventData } from "../../index-
|
|
3
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
|
+
import { p as AssignmentEventData } from "../../index-DjJUamhw.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.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
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.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-CDw9YGVh.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. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
2
|
-
import { Ct as Events, ot as StorageObjectEventData, y as AttachmentEventData } from "../../events-
|
|
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-CDw9YGVh.js";
|
|
6
|
+
import { n as Controller } from "../../controller-CJ6rLnpS.js";
|
|
7
7
|
/** A pending write to a record's files, for `useOptimistic`. */
|
|
8
8
|
type AttachmentsOptimisticAction = {
|
|
9
9
|
readonly type: "add";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { O as AnyFunctions, dt as TableKey, k as AnyModels } from "../../types-BzIYSSWK.js";
|
|
4
|
-
import { Ct as Events, b as AuditRevealEventData } from "../../events-
|
|
4
|
+
import { Ct as Events, b as AuditRevealEventData } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.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
9
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
10
|
-
import { Yt as WhereInput, t as BetterSupabase } from "../../define-
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
12
|
-
import { i as EventSink, t as CloudEvent } from "../../cloud-event-
|
|
13
|
-
import { i as ListDefinition } from "../../list-query-
|
|
14
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
10
|
+
import { Yt as WhereInput, t as BetterSupabase } from "../../define-C_He1bQO.js";
|
|
11
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
12
|
+
import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
|
|
13
|
+
import { i as ListDefinition } from "../../list-query-BkbLV-Yc.js";
|
|
14
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
|
|
15
15
|
import { a as UndoToken } from "../../undo-CdKp5_2X.js";
|
|
16
|
-
import { n as AuditCategory } from "../../context-
|
|
16
|
+
import { n as AuditCategory } from "../../context-CH5FYnVk.js";
|
|
17
17
|
interface PurgeAuditLogOptions extends BlockTemporalOptions {
|
|
18
18
|
/**
|
|
19
19
|
* How long entries are kept when `retention` has no answer. Defaults to `1
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { D as ValidationIssue, T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
|
-
import { Ct as Events } from "../../events-
|
|
4
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.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
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.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 { c as ApprovalRequestInput } from "../../approvals-
|
|
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-CDw9YGVh.js";
|
|
11
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
|
|
12
|
+
import { c as ApprovalRequestInput } from "../../approvals-CXW3yFWZ.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-CLBBITW5.js";
|
|
16
16
|
/** What a rule runs when it matches: an action reference (ADR 0046). */
|
|
17
17
|
type RuleAction = ActionRef;
|
|
18
18
|
interface Rule {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
|
-
import { Ct as Events } from "../../events-
|
|
4
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.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
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
9
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-
|
|
9
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-CDw9YGVh.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";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
|
-
import { C as BillingEventData, Ct as Events, O as BlockEventType, o as EventHub } from "../../events-
|
|
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
5
|
import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.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
8
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.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-
|
|
11
|
-
import { i as EventSink } from "../../cloud-event-
|
|
12
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
13
|
-
import { d as stripeInboxVerify, f as verifyStripeWebhook, u as signStripeWebhook } from "../../verify-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
|
+
import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
|
|
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 = {
|
|
16
16
|
readonly "billing.customer_linked": BillingEventData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DTOQRyGY.js";
|
|
2
|
-
import { Ct as Events, tt as SchedulingEventData } from "../../events-
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
-
import { n as Controller } from "../../controller-
|
|
2
|
+
import { Ct as Events, tt as SchedulingEventData } from "../../events-DddDlibJ.js";
|
|
3
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
4
|
+
import { n as Controller } from "../../controller-CJ6rLnpS.js";
|
|
5
5
|
import { o as WeeklyHours } from "../../availability-CZlcrkqD.js";
|
|
6
6
|
import { C as bookingSeriesOf, S as BookingWeekday, T as parseRecurrence, _ as BookedSeries, a as BookingExceptionInput, b as BookingSeriesScope, c as BookingResourceInput, d as BookingStatus, f as Bookings, g as createBookings, h as PublicBookingService, i as BookingDuration, l as BookingServiceInput, m as PlacedBooking, n as Booking, o as BookingExpirePayload, p as BookingsOptions, r as BookingCustomer, s as BookingRange, t as BOOKING_EXPIRE_QUEUE, u as BookingSlot, v as BookingRecurrence, w as formatRecurrence, x as BookingSeriesStatus, y as BookingSeries } from "../../bookings-Dj5cvXKv.js";
|
|
7
7
|
import { t as EventCalendarEvent } from "../../event-calendar-DPMcqy7Q.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
|
-
import { $ as SaasEventData, Ct as Events } from "../../events-
|
|
3
|
+
import { $ as SaasEventData, Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
4
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
5
5
|
import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
7
|
-
import { c as BlockOf } from "../../define-block-
|
|
7
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
8
|
/** The actions every install knows, when the block that owns each is installed. */
|
|
9
9
|
type BuiltInBulkAction = "tags.set" | "stateMachine.transition" | "relations.link" | "trash.trash" | "collections.add" | "appTables.set";
|
|
10
10
|
/** Arguments per built-in action; an app's own actions take any object. */
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events, tt as SchedulingEventData } from "../../events-
|
|
5
|
+
import { Ct as Events, tt as SchedulingEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
7
|
import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
8
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
9
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
9
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
10
|
+
import { n as Controller } from "../../controller-CJ6rLnpS.js";
|
|
11
11
|
import { A as CalendarAlarmAction, C as IcsEvent, D as parseIcs, E as ToIcsOptions, O as toIcs, S as CalendarEventStatus, T as ParsedIcs, _ as expandOccurrences, a as FreeBusy, b as AttendeeRole, c as WorkingHoursInput, d as workingHoursOf, f as CalendarEvent, g as SplitRules, h as OccurrenceRange, i as CommonFreeTimeOptions, j as CalendarReminder, k as CalendarAlarm, l as commonFreeTime, m as OccurrenceOptions, n as CalendarEventKind, o as WeeklyHours, p as CalendarOccurrence, r as CalendarTransparency, s as WorkingHours, t as BusyRange, u as freeBusyOf, v as splitRule, w as IcsSource, x as CalendarAttendee, y as AttendeeResponse } from "../../availability-CZlcrkqD.js";
|
|
12
12
|
import { a as fromEventCalendarUpdate, c as toEventCalendarResources, i as OccurrenceMove, n as EventCalendarOptions, o as seriesOf, r as EventCalendarResource, s as toEventCalendarEvents, t as EventCalendarEvent } from "../../event-calendar-DPMcqy7Q.js";
|
|
13
13
|
import { t as VisibleRange } from "../../range-BN3kpJAE.js";
|