better-supabase 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-CWzyKepA.js → adapter-ddQ9Hzka.js} +126 -91
- package/dist/{agents-DXiOPB3V.d.ts → agents-BwUHtvD6.d.ts} +4 -4
- package/dist/{ai-cache-CLiAXCPH.d.ts → ai-cache-CPOP2PYz.d.ts} +4 -4
- package/dist/{ai-chat-DlcBdOhJ.d.ts → ai-chat-BZhfCHHr.d.ts} +106 -25
- package/dist/{ai-schedules-Drx2KRTn.d.ts → ai-schedules-ChJkI2jo.d.ts} +5 -5
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/batches/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.d.ts +2 -2
- package/dist/ai-sdk/chat/index.js +3 -272
- 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/index.js +2 -3
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +6 -5
- package/dist/ai-sdk/workflow/index.js +9 -9
- package/dist/{api-myq2e9t5.d.ts → api-CbY2qdzT.d.ts} +5 -5
- package/dist/{api-keys-DbIbkGxx.d.ts → api-keys-BncNDlWG.d.ts} +4 -4
- package/dist/{app-tables-X3yzJljM.d.ts → app-tables-BlhdqqHf.d.ts} +1 -1
- package/dist/{approvals-DZoGtNFv.d.ts → approvals-CXW3yFWZ.d.ts} +101 -7
- package/dist/{approvals-Da4uAANx.js → approvals-D8gR1R8R.js} +95 -11
- package/dist/{assistant-BEbRPjhn.d.ts → assistant-5heV2GeR.d.ts} +7 -3
- package/dist/assistant-BHZ6fqBR.js +300 -0
- package/dist/astro/index.d.ts +7 -7
- package/dist/astro/index.js +5 -5
- package/dist/{auth-module-CqXdm8qD.js → auth-module-DkqapRZJ.js} +1 -1
- package/dist/{authorization-D1P3VBOd.d.ts → authorization-C7yjZttV.d.ts} +155 -54
- package/dist/{authorization-hooks-CxwsRnfV.d.ts → authorization-hooks-CR8TVvqo.d.ts} +8 -2
- package/dist/authz-topic-D7fPUY4P.js +13 -0
- package/dist/{availability-CebEOfMN.d.ts → availability-CZlcrkqD.d.ts} +49 -8
- package/dist/{base64-CVyKHBBw.js → base64-CEBz6-Jj.js} +9 -2
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-Bvv-Zrdh.d.ts → bind-BspFMDdW.d.ts} +7 -7
- package/dist/{block-env-h_uPl2f_.d.ts → block-env-CLco8YUl.d.ts} +4 -4
- package/dist/{block-helpers-disoUWCp.d.ts → block-helpers-BNtM1tqy.d.ts} +1 -1
- package/dist/{block-hooks-DrA_d1dJ.d.ts → block-hooks-CtMsgLQr.d.ts} +2 -2
- package/dist/{block-subjects-Br2MQNFn.d.ts → block-subjects-Bkieh2Xk.d.ts} +1 -1
- package/dist/{block-tables-pj3eHfoP.d.ts → block-tables-DfomofFv.d.ts} +1 -1
- package/dist/{block-transport-BEtC_Kis.d.ts → block-transport-CDmOUuLZ.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +5 -5
- package/dist/blocks/activities/index.d.ts +9 -9
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-chat/index.d.ts +8 -8
- package/dist/blocks/ai-chat/index.js +80 -20
- package/dist/blocks/ai-files/index.d.ts +3 -3
- package/dist/blocks/ai-keys/index.d.ts +4 -4
- package/dist/blocks/ai-schedules/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +8 -8
- package/dist/blocks/api-keys/index.d.ts +3 -3
- package/dist/blocks/approvals/index.d.ts +16 -5
- package/dist/blocks/approvals/index.js +7 -4
- package/dist/blocks/assets/index.d.ts +6 -6
- package/dist/blocks/assignment/index.d.ts +7 -7
- package/dist/blocks/attachments/index.d.ts +4 -4
- package/dist/blocks/audit/index.d.ts +13 -13
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.d.ts +12 -12
- package/dist/blocks/billable-time/index.d.ts +6 -6
- package/dist/blocks/billing/index.d.ts +9 -9
- package/dist/blocks/billing/index.js +1 -1
- package/dist/blocks/bookings/index.d.ts +6 -6
- package/dist/blocks/bulk/index.d.ts +4 -4
- package/dist/blocks/calendar/index.d.ts +46 -8
- package/dist/blocks/calendar/index.js +306 -47
- package/dist/blocks/catalog/index.d.ts +58 -17
- package/dist/blocks/catalog/index.js +65 -16
- package/dist/blocks/channels/index.d.ts +7 -7
- package/dist/blocks/collections/index.d.ts +6 -6
- package/dist/blocks/comments/index.d.ts +10 -10
- package/dist/blocks/compliance/index.d.ts +5 -5
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/contacts/index.d.ts +6 -6
- package/dist/blocks/content/index.d.ts +5 -5
- package/dist/blocks/contracts/index.d.ts +6 -6
- package/dist/blocks/courses/index.d.ts +5 -5
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.d.ts +6 -6
- package/dist/blocks/data-lifecycle/index.d.ts +8 -8
- package/dist/blocks/deals/index.d.ts +6 -6
- package/dist/blocks/dispatch/index.d.ts +6 -6
- package/dist/blocks/documents/index.d.ts +4 -4
- package/dist/blocks/documents/index.js +1 -1
- package/dist/blocks/domains/index.d.ts +6 -6
- package/dist/blocks/donations/index.d.ts +6 -6
- package/dist/blocks/drive/index.d.ts +6 -6
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/enrichment/index.d.ts +6 -6
- package/dist/blocks/enrollments/index.d.ts +74 -9
- package/dist/blocks/enrollments/index.js +67 -3
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/expenses/index.d.ts +93 -6
- package/dist/blocks/expenses/index.js +95 -4
- package/dist/blocks/field-history/index.d.ts +4 -4
- package/dist/blocks/flags/index.d.ts +5 -5
- package/dist/blocks/forecasts/index.d.ts +6 -6
- package/dist/blocks/forms/index.d.ts +6 -6
- package/dist/blocks/goals/index.d.ts +4 -4
- package/dist/blocks/guests/index.d.ts +6 -6
- package/dist/blocks/hiring/index.d.ts +6 -6
- package/dist/blocks/identities/index.d.ts +5 -5
- package/dist/blocks/imports/index.d.ts +5 -5
- package/dist/blocks/inbox/index.d.ts +11 -11
- package/dist/blocks/inbox/index.js +56 -1
- package/dist/blocks/incidents/index.d.ts +5 -5
- package/dist/blocks/index.d.ts +9 -9
- package/dist/blocks/inventory/index.d.ts +175 -14
- package/dist/blocks/inventory/index.js +206 -13
- package/dist/blocks/invoices/index.d.ts +26 -10
- package/dist/blocks/invoices/index.js +23 -7
- package/dist/blocks/knowledge/index.d.ts +4 -4
- package/dist/blocks/knowledge/index.js +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +7 -7
- package/dist/blocks/leases/index.d.ts +6 -6
- package/dist/blocks/leave/index.d.ts +88 -15
- package/dist/blocks/leave/index.js +65 -14
- package/dist/blocks/ledger/index.d.ts +6 -6
- package/dist/blocks/mail-sync/index.d.ts +5 -5
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memory/index.d.ts +5 -5
- package/dist/blocks/memory/index.js +30 -5
- package/dist/blocks/messaging/index.d.ts +11 -11
- package/dist/blocks/metrics/index.d.ts +6 -6
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +6 -6
- package/dist/blocks/notifications/index.d.ts +11 -11
- package/dist/blocks/notifications/index.js +1 -1
- package/dist/blocks/numbering/index.d.ts +4 -4
- package/dist/blocks/oauth-server/index.d.ts +5 -5
- package/dist/blocks/oauth-server/index.js +1 -1
- package/dist/blocks/onboarding/index.d.ts +5 -5
- package/dist/blocks/orders/index.d.ts +84 -17
- package/dist/blocks/orders/index.js +63 -4
- package/dist/blocks/organizations/index.d.ts +8 -8
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/passes/index.js +2 -2
- package/dist/blocks/permissions/index.d.ts +7 -7
- package/dist/blocks/pipelines/index.d.ts +6 -6
- package/dist/blocks/posts/index.d.ts +5 -5
- package/dist/blocks/profiles/index.d.ts +4 -4
- package/dist/blocks/promotions/index.d.ts +6 -6
- package/dist/blocks/promotions/index.js +1 -1
- package/dist/blocks/push/index.d.ts +7 -7
- package/dist/blocks/queue/index.d.ts +6 -6
- package/dist/blocks/queue/index.js +2 -2
- package/dist/blocks/quotes/index.d.ts +119 -27
- package/dist/blocks/quotes/index.js +111 -17
- package/dist/blocks/rank/index.d.ts +4 -4
- package/dist/blocks/reactions/index.d.ts +9 -9
- package/dist/blocks/relations/index.d.ts +7 -7
- package/dist/blocks/reminders/index.d.ts +78 -11
- package/dist/blocks/reminders/index.js +118 -6
- package/dist/blocks/reviews/index.d.ts +5 -5
- package/dist/blocks/saved-views/index.d.ts +6 -6
- package/dist/blocks/scores/index.d.ts +5 -5
- package/dist/blocks/search/index.d.ts +7 -7
- package/dist/blocks/security-events/index.d.ts +7 -7
- package/dist/blocks/security-events/index.js +1 -1
- package/dist/blocks/segments/index.d.ts +7 -7
- package/dist/blocks/sequences/index.d.ts +6 -6
- package/dist/blocks/service-accounts/index.d.ts +5 -5
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +1 -1
- package/dist/blocks/settings/index.d.ts +6 -6
- package/dist/blocks/share-links/index.d.ts +5 -5
- package/dist/blocks/shipments/index.d.ts +77 -8
- package/dist/blocks/shipments/index.js +58 -5
- package/dist/blocks/signatures/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- package/dist/blocks/signing-keys/index.js +2 -2
- package/dist/blocks/sla/index.d.ts +7 -7
- package/dist/blocks/sso/index.d.ts +6 -6
- package/dist/blocks/state-machine/index.d.ts +34 -7
- package/dist/blocks/state-machine/index.js +9 -2
- package/dist/blocks/subjects/index.d.ts +6 -6
- package/dist/blocks/tags/index.d.ts +6 -6
- package/dist/blocks/tasks/index.d.ts +9 -9
- package/dist/blocks/teams/index.d.ts +4 -4
- package/dist/blocks/templates/index.d.ts +125 -12
- package/dist/blocks/templates/index.js +157 -7
- package/dist/blocks/time-tracking/index.d.ts +7 -7
- package/dist/blocks/timeline/index.d.ts +13 -11
- package/dist/blocks/timeline/index.js +3 -1
- package/dist/blocks/trash/index.d.ts +6 -6
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +4 -4
- package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
- package/dist/blocks/vercel-marketplace/index.js +3 -3
- package/dist/blocks/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/waitlist/index.js +1 -1
- package/dist/blocks/webhooks/index.d.ts +13 -13
- package/dist/blocks/webhooks/index.js +5 -5
- package/dist/blocks/workflow-editor/index.d.ts +10 -10
- package/dist/blocks/workflow-editor/index.js +65 -2
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-Br0VXzaf.d.ts → bookings-Dj5cvXKv.d.ts} +4 -4
- package/dist/{bucket-DvG66r5G.d.ts → bucket-CrsJNHzi.d.ts} +1 -1
- package/dist/{carrier-D2b_028L.d.ts → carrier-B2eytEjR.d.ts} +10 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/claims/index.d.ts +6 -6
- package/dist/claims/index.js +2 -2
- package/dist/cli/add-8zKWiO0X.js +1 -0
- package/dist/cli/{add-DzgsOE8V.js → add-Buuy7BSU.js} +2 -2
- package/dist/cli/{add-CYreXA68.js → add-DqfJVb1F.js} +16 -14
- package/dist/cli/{agent-59XWXsRi.js → agent-Tqq3MAqx.js} +26 -1
- package/dist/cli/{app-table-files-BnISa3uY.js → app-table-files-Ku-4tPUu.js} +2 -2
- package/dist/cli/app-tables-Dg0sh4dH.js +42 -0
- package/dist/cli/{backfill-BLLTSDSa.js → backfill-Dspz6kVJ.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CpRvI7x8.js → blocks-B8LAph-w.js} +1 -1
- package/dist/cli/{blocks-uzh1g_0v.js → blocks-CqVBlc4L.js} +2 -2
- package/dist/cli/{cache-BPWC7tGD.js → cache-BbuuCIRU.js} +1 -1
- package/dist/cli/{codemod-CbJVS_kG.js → codemod-DIAy8uXt.js} +139 -4
- package/dist/cli/{command-BpZ4AuhR.js → command-67WobzTC.js} +12 -0
- package/dist/cli/{completion-CwL7e93t.js → completion-C3nMZgUZ.js} +2 -2
- package/dist/cli/{completion-DHTT6rjI.js → completion-DSrus7H1.js} +1 -1
- package/dist/cli/{completion-B08Q0xB3.js → completion-Dm0S3ub0.js} +2 -2
- package/dist/cli/{config-D-Upz3jV.js → config-cbK-wiNs.js} +1 -1
- package/dist/cli/{content-mapper-Cjkm2Sg3.js → content-mapper-NXfJ5VkP.js} +2 -2
- package/dist/cli/{db-Diy1OebO.js → db-bK5eCLaE.js} +2 -2
- package/dist/cli/{doctor-D94FEJZs.js → doctor-CUOyLE0c.js} +386 -49
- package/dist/cli/env-AFfMXxWw.js +1 -0
- package/dist/cli/{env-BAJn6wCA.js → env-CCT-dMFm.js} +1 -1
- package/dist/cli/{gen-Cd0VNDjE.js → gen-s9canfdC.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-Co1N9ZoA.js → init-Zs0Ca5on.js} +9 -9
- package/dist/cli/{keys-CxajkV_7.js → keys-Dj5sJNj7.js} +1 -1
- package/dist/cli/{live-NFNeZsP7.js → live-BaLsNove.js} +2 -2
- package/dist/cli/{mcp-WZ8t7NMz.js → mcp-ST7bVpJD.js} +4 -4
- package/dist/cli/{metadata-BzMkmrZR.js → metadata-aOvlCOOg.js} +3 -3
- package/dist/cli/{migrate-C9gyDAV7.js → migrate-ClBx3Ggx.js} +2 -2
- package/dist/cli/{migration-safety-BNi8PIiM.js → migration-safety-mjm1pghO.js} +1 -1
- package/dist/cli/{migrations-Ds0J_TmZ.js → migrations-tzItvwxT.js} +2 -2
- package/dist/cli/{module-migration-hFrlzQZ5.js → module-migration-D0Rjdvdx.js} +2 -2
- package/dist/cli/{moved-BAFPdJz_.js → moved-CY0yDtAr.js} +1 -1
- package/dist/cli/{parse-BueItuNJ.js → parse-yAC-NFMq.js} +1 -1
- package/dist/cli/{powersync-oFiwgsBi.js → powersync-DryX_DMG.js} +4 -4
- package/dist/cli/powersync-vvu2-72V.js +1 -0
- package/dist/cli/{print-BtreoJSm.js → print-fOUnKwA9.js} +2 -2
- package/dist/cli/{providers-Be2dgyuR.js → providers-BR1d_5jA.js} +1 -1
- package/dist/cli/{prune-workflows-BPxgRrqY.js → prune-workflows-CCjzNrxl.js} +3 -3
- package/dist/cli/{remove-B4ad996E.js → remove-B_0OIusa.js} +6 -6
- package/dist/cli/{render-C-Mfq-o3.js → render-BCJKDX3c.js} +18 -4
- package/dist/cli/{run-D2nuyyPo.js → run-4VUQTR-R.js} +12 -48
- package/dist/cli/{run-cLdnJHH0.js → run-BctvQX_g.js} +45 -43
- package/dist/cli/{run-dY9uOC3W.js → run-DX4X7xqV.js} +2 -2
- package/dist/cli/seed-CLlvrV8I.js +1 -0
- package/dist/cli/{seed-BpaqqyO8.js → seed-DSC6f0oh.js} +2 -2
- package/dist/cli/{shared-DCHxLAEL.js → shared-oY7PGamd.js} +1 -1
- package/dist/cli/{skills-jZThjL3B.js → skills-B5p6bDwe.js} +1 -1
- package/dist/cli/{snapshot-CloKPNxv.js → snapshot-CWtER9-4.js} +2 -2
- package/dist/cli/{source-Bwyp18Rj.js → source-D4uav_v9.js} +1 -1
- package/dist/cli/{spec-DsVq4_qV.js → spec-BPsyEzqH.js} +1 -1
- package/dist/cli/{spec-DAUF4ybu.js → spec-DTnBeaCD.js} +3 -3
- package/dist/cli/{sql-layout-CHpEL0oq.js → sql-layout-DbhEQqq0.js} +2 -2
- package/dist/cli/{stack-147NqctC.js → stack-CQXLe5j0.js} +3 -2
- package/dist/cli/{sync-DZu1r34s.js → sync-CazH5FX4.js} +4 -4
- package/dist/cli/{table-D9FbJS8h.js → table-BIQA9Hdt.js} +1 -1
- package/dist/cli/{upgrade-Bpvi70zm.js → upgrade-Cyx6ESpc.js} +5 -5
- package/dist/cli/{upgrade-A-BALvp3.js → upgrade-Dyb4-f0Q.js} +3 -3
- package/dist/cli/{version-B59mZJoy.js → version-D1ZKUFng.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +5 -5
- package/dist/client/native/index.js +2 -2
- package/dist/{client-Bky2z09B.js → client-DrejIxsu.js} +1 -1
- package/dist/{cloud-event-DXWmXrus.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/commerce/index.js +1 -1
- package/dist/{compiler-qlXlokKn.d.ts → compiler-BOW4yPcW.d.ts} +2 -2
- package/dist/{composite-D2JnIiHt.js → composite-BidYZWZY.js} +3 -3
- package/dist/{composite-CIxjVcL1.d.ts → composite-DPN4SFud.d.ts} +7 -7
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +4 -4
- package/dist/{config-DQP0IvDX.js → config-Dx3bEPlX.js} +1 -1
- package/dist/{config-BZWSFxkG.js → config-uSliwPS6.js} +3 -3
- package/dist/{connectors-Cf2LeAuZ.d.ts → connectors-DDsdz-cn.d.ts} +4 -4
- package/dist/{context-CderJRZf.d.ts → context-D6OZQdcT.d.ts} +3 -3
- package/dist/contract/index.d.ts +9 -9
- package/dist/{controller-DaWA9eWS.d.ts → controller-DhcSXkAC.d.ts} +1 -1
- package/dist/{conversion-C9rndpEI.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 +4 -4
- package/dist/create/lite/index.js +2 -2
- package/dist/credentials/index.d.ts +4 -4
- package/dist/credentials/index.js +1 -1
- package/dist/{cron-route-DSITg1yC.js → cron-route-uTsC2BD0.js} +1 -1
- package/dist/{data-engine-CMENsp3d.d.ts → data-engine-CX1oYDZl.d.ts} +1 -1
- package/dist/{define-ITQA71fw.d.ts → define-C_He1bQO.d.ts} +5 -5
- package/dist/{define-B6D55cO0.js → define-Duh2mMYk.js} +1 -1
- package/dist/{define-block-COmMkx2x.d.ts → define-block-CDw9YGVh.d.ts} +12 -12
- package/dist/{documents-DeZw83ue.d.ts → documents-Btk0MhC0.d.ts} +3 -3
- package/dist/edge/index.d.ts +9 -9
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/{embeddings-rVR2AKVz.d.ts → embeddings-CI6P_mtD.d.ts} +1 -1
- package/dist/{ended-NC_ZesY4.d.ts → ended-BwpmNC5k.d.ts} +8 -3
- package/dist/{entitlements-BefkpQIz.d.ts → entitlements-Bi4y8w8e.d.ts} +2 -2
- package/dist/env/index.d.ts +1 -1
- package/dist/{messages-CRk1g6oe.js → errors-0Qid9fGz.js} +107 -3
- package/dist/eve/index.d.ts +9 -9
- package/dist/eve/index.js +3 -3
- package/dist/{eve-DIKjuPp5.d.ts → eve-DleYrhwj.d.ts} +2 -2
- package/dist/{event-calendar-DUtFyRrv.d.ts → event-calendar-DPMcqy7Q.d.ts} +1 -1
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-DVt3Z9hw.d.ts → events-DddDlibJ.d.ts} +9 -1
- package/dist/{executor-CHnoKOxk.d.ts → executor-CxMHiDp_.d.ts} +4 -4
- package/dist/{executor-CFmee_nV.d.ts → executor-DoSNec_H.d.ts} +1 -1
- package/dist/{executor-BDMqPbVU.js → executor-RYiR4z47.js} +71 -37
- package/dist/{executor-DqNRrFxx.d.ts → executor-uNDJBzT8.d.ts} +16 -2
- package/dist/expo/index.d.ts +4 -4
- package/dist/expo/index.js +7 -7
- package/dist/{field-errors-D1meOs_H.d.ts → field-errors-CJ_i6HFg.d.ts} +10 -10
- package/dist/{fields-CAVk9dxX.d.ts → fields-CP46SPNE.d.ts} +1 -1
- package/dist/{filter-evaluate-Bz3Fzhz2.d.ts → filter-evaluate-Bkbb0nuQ.d.ts} +1 -1
- package/dist/{filter-query-DV-x8fio.d.ts → filter-query-Xj40B5KT.d.ts} +1 -1
- package/dist/{flags-6emyAXly.d.ts → flags-Cuew4tGx.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +2 -2
- package/dist/{framework-BFlaPuvv.d.ts → framework-B6JAPr1i.d.ts} +8 -8
- package/dist/{framework-ChzJYkJW.js → framework-z3KTPRjk.js} +4 -4
- package/dist/{gateway-DaekJ_Me.d.ts → gateway-B9k89AC4.d.ts} +3 -3
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.d.ts +9 -10
- package/dist/hono/index.js +8 -8
- package/dist/{inbox-DavCzW7b.d.ts → inbox-yGfUVQr2.d.ts} +61 -6
- package/dist/{index-Dvpu22CJ.d.ts → index-1uV69AZq.d.ts} +1 -1
- package/dist/{index-ChLuLxy-.d.ts → index-Bc5t2QRU.d.ts} +14 -14
- package/dist/{index-BbDiBiKt.d.ts → index-Bm1ftdBA.d.ts} +4 -4
- package/dist/{index-C13UgV67.d.ts → index-C71uHfVj.d.ts} +5 -5
- package/dist/{index-BQlLxOj5.d.ts → index-CRwpDGxd.d.ts} +1 -1
- package/dist/{index-DXUiRyEk.d.ts → index-Cbwvf4yE.d.ts} +5 -5
- package/dist/{index-D9aV0Fvx.d.ts → index-ChvuVimY.d.ts} +6 -6
- package/dist/{index-M1izbwbN.d.ts → index-CvLTqmdq.d.ts} +1 -1
- package/dist/{index-BIAtapnD.d.ts → index-DAS_5OfK.d.ts} +5 -5
- package/dist/{index-D18su_r5.d.ts → index-DjJUamhw.d.ts} +10 -5
- package/dist/{index-ZQZMQF4l.d.ts → index-DrDCN45q.d.ts} +6 -6
- package/dist/{index-8w4OB5En.d.ts → index-F6lsRlsr.d.ts} +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/{instances-D9YrkoAy.js → instances-DKULdpWB.js} +291 -17
- package/dist/jwks-cache-CBKtICNV.js +114 -0
- package/dist/{jws-B8p0ppgh.js → jws-De9qjIPV.js} +1 -1
- package/dist/{kit-9pZP5iLU.js → kit-D5rRAKWJ.js} +2 -2
- package/dist/{kit-OgFOW9rX.d.ts → kit-lHFpu2_1.d.ts} +4 -4
- package/dist/{knowledge-DdZzUTQ-.js → knowledge-CJnZOaix.js} +67 -7
- package/dist/{knowledge-BBC2sfAY.d.ts → knowledge-DWXAxvkN.d.ts} +82 -11
- package/dist/lint/index.d.ts +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-C7V8kUaD.d.ts → list-query-BkbLV-Yc.d.ts} +3 -3
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{messaging-D5z2TR37.d.ts → messaging-Bfe4p9Pm.d.ts} +4 -4
- package/dist/{model-messages-BcrkjsPE.js → model-messages-CIHqP7Z3.js} +1 -1
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +331 -79
- package/dist/next/index.js +520 -105
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{operations-t_hlXkS4.d.ts → operations-BDjgCmT9.d.ts} +1 -1
- package/dist/{options-D4dxMGHF.js → options-Bgnm4pTD.js} +1 -0
- package/dist/{options-C9bp3SEA.js → options-CEwoGUk_.js} +3 -1
- package/dist/{options-yRwYr4up.js → options-CGQC7Wue.js} +4 -1
- package/dist/{options-C13-dVMH.js → options-D-jiqb0l.js} +2 -0
- package/dist/{options-CuPWezcV.js → options-RYbyaVhv.js} +3 -1
- package/dist/options-SOjQVgfS.js +37 -0
- package/dist/{options-JnPEVbBJ.js → options-ScQ6Hnxo.js} +2 -1
- package/dist/{options-CuaWhsQS.js → options-X61tvckX.js} +2 -1
- package/dist/orpc/index.d.ts +8 -8
- package/dist/orpc/index.js +6 -6
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-7zgh-7nw.d.ts → outbox-DikdzUKf.d.ts} +4 -4
- package/dist/{permissions-C8p6RlIZ.d.ts → permissions-BGx22GP3.d.ts} +1 -1
- package/dist/{pool-D-4HyhuW.d.ts → pool-BJAjQcrJ.d.ts} +3 -3
- package/dist/{ports-CmEXVqhg.js → ports-CkygVOeE.js} +2 -2
- package/dist/{ports-C-8uduFM.d.ts → ports-D63bA3p4.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-DZtM2nIS.d.ts → postgrest-Bjain6nf.d.ts} +1 -1
- package/dist/powersync/index.d.ts +6 -6
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-B_sSI9vg.js → preset-oc_liUHz.js} +2 -2
- package/dist/{project-DVlXQGEp.js → project-Cs0kz5OP.js} +5 -5
- package/dist/{provider-BI0KC4u5.d.ts → provider-CVlXXbda.d.ts} +1 -1
- package/dist/{push-token-D41lOoE8.d.ts → push-token-BsyX0KlT.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/{rate-limit-CRhlLFhP.js → rate-limit-BJ4EMdAy.js} +1 -1
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +3 -3
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +1 -1
- package/dist/react/server.d.ts +9 -9
- package/dist/react/server.js +2 -2
- package/dist/react/session.d.ts +2 -32
- package/dist/react/session.js +1 -37
- package/dist/{react-COIov1yC.js → react-DZ7AW2yf.js} +2 -2
- package/dist/react-router/index.d.ts +6 -6
- package/dist/react-router/index.js +5 -5
- package/dist/realtime/index.d.ts +6 -6
- package/dist/{record-form-DU2EoVsv.d.ts → record-form-C-gIxGXe.d.ts} +1 -1
- package/dist/{recordings-D69Va7gP.d.ts → recordings-Bw5LoocX.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refusal-CGi-0Q18.d.ts → refusal-CjUUBfhY.d.ts} +3 -3
- package/dist/{refusal-5c6UMpUP.js → refusal-rnbr6RZD.js} +2 -2
- package/dist/{refresh-B8t_KE3s.js → request-kind-tNDM5Z_o.js} +15 -31
- package/dist/{resolve-FW8oeXvh.js → resolve-CZV31iCm.js} +402 -392
- package/dist/{resolve--LfVoOMg.d.ts → resolve-XlMQRUeG.d.ts} +97 -36
- package/dist/{resolved-names-h-3UbKcw.js → resolved-names-sd6RuTju.js} +1 -1
- package/dist/{resource-BbWk4hoP.js → resource-COaS9_i8.js} +1 -1
- package/dist/{resource-DWllVW8k.d.ts → resource-CaYpB07K.d.ts} +1 -1
- package/dist/{resource-execute-DUBYKTYU.d.ts → resource-execute-B7-QaS6R.d.ts} +2 -2
- package/dist/{resource-types-RgaljPs0.d.ts → resource-types-CF3Uc6OW.d.ts} +4 -4
- package/dist/{resources-DYSx9NYM.js → resources-DhiK3yLO.js} +1 -1
- package/dist/{resources-Bki1J4jy.d.ts → resources-DnHSmJIM.d.ts} +2 -2
- package/dist/{respond-DLH4tD2d.js → respond-8A3EOo61.js} +1 -1
- package/dist/{respond-BYOV7KZp.d.ts → respond-D7kUatjc.d.ts} +15 -19
- package/dist/{sales-lines-DuNVoKHA.d.ts → sales-lines-wQHuL-pa.d.ts} +1 -1
- package/dist/{sandboxes-B2hBoBvJ.d.ts → sandboxes-BF9RxxCU.d.ts} +1 -1
- package/dist/{scores-FAORS4qU.d.ts → scores-Ce8MxQX9.d.ts} +5 -5
- package/dist/server/index.d.ts +58 -36
- package/dist/server/index.js +35 -41
- package/dist/{server-types-C2hlvhP4.d.ts → server-types-DpI82uNq.d.ts} +19 -17
- package/dist/session-BjPYE4dT.js +180 -0
- package/dist/session-JV1z0kxa.d.ts +77 -0
- package/dist/{session-B4VasaAA.d.ts → session-s-mUZ8RQ.d.ts} +11 -12
- package/dist/{session-status-D8CBxCqv.d.ts → session-status-CJjTuFtA.d.ts} +4 -3
- package/dist/{sign-in-CX1a5i2P.d.ts → sign-in-D5Bg7R47.d.ts} +16 -4
- package/dist/{sign-in-CxdoTEp5.js → sign-in-djgvab1X.js} +3 -3
- package/dist/{sign-in-BMm1xhKq.js → sign-in-k2lXELeC.js} +2 -2
- package/dist/{signatures-CBn7w4VR.js → signatures-DK01D2S7.js} +1 -1
- package/dist/{signers-6ih6i9aq.d.ts → signers-Dw9DBZjJ.d.ts} +4 -4
- package/dist/{signing-keys-De09WNJ3.d.ts → signing-keys-FglIQ6iL.d.ts} +2 -2
- package/dist/{signing-keys-BC5_hJN5.js → signing-keys-sGaXklwD.js} +1 -1
- package/dist/{snapshot-CVMSyTHH.js → snapshot-BOA7lkRg.js} +9 -17
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-C9nO-Mat.js → sql-CWYbu_6y.js} +11090 -2788
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-CuzAjsc8.d.ts → sso-B7w7h8RJ.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -6
- package/dist/ssr/index.js +3 -3
- 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/storage/index.d.ts +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/streams/index.d.ts +1 -1
- package/dist/{subject-readers-BlD8tALG.d.ts → subject-readers-D1Km_Q42.d.ts} +2 -2
- package/dist/{subjects-Bv2dPflD.d.ts → subjects-CVjAE7nz.d.ts} +3 -3
- package/dist/{support-DxYI6sDM.d.ts → support-Dj5V2WTs.d.ts} +4 -4
- package/dist/{support-view-DSmCett7.d.ts → support-view-DKZkZeM5.d.ts} +1 -1
- package/dist/svelte/index.d.ts +9 -9
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +7 -7
- package/dist/sveltekit/index.js +5 -5
- package/dist/{tags--k2fbPfO.d.ts → tags-BihwKkTT.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{tenant-gezshhcs.d.ts → tenant-DqnE50Ju.d.ts} +1 -1
- package/dist/testing/index.d.ts +28 -29
- package/dist/testing/index.js +6 -6
- package/dist/{timeline-Bq658xsi.d.ts → timeline-c6I3uxya.d.ts} +5 -5
- package/dist/{topic-BVq5RdsI.d.ts → topic-Dp7VGPd-.d.ts} +5 -5
- package/dist/{types-C8UyJOPJ.d.ts → types-6PMaLIyw.d.ts} +3 -3
- package/dist/{types-BBqP9H6w.d.ts → types-BXLiM6VM.d.ts} +4 -4
- package/dist/{types-Dh2OGEW5.d.ts → types-BdhE7I8Z.d.ts} +5 -5
- package/dist/{types-BkYEUWdz.d.ts → types-BzIYSSWK.d.ts} +16 -1
- package/dist/{types-DCoqai8o.d.ts → types-C7K8mu9B.d.ts} +45 -15
- package/dist/{types-TH3zlMiM.d.ts → types-D5uf0l4_.d.ts} +1 -1
- package/dist/{types-hTj5OuFo.d.ts → types-DLXTmZtm.d.ts} +2 -2
- package/dist/{types-d0JBRTAg.d.ts → types-DtiDatvu.d.ts} +128 -13
- package/dist/{undo-22ofP6Zp.d.ts → undo-CdKp5_2X.d.ts} +2 -2
- package/dist/{usage-CNCT6_3D.d.ts → usage-DZ8j5Tm_.d.ts} +4 -4
- package/dist/{vault-yGQD5Rdl.d.ts → vault-CbhvnoVC.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-sandbox/index.d.ts +2 -2
- package/dist/{verify-DY_j4GPZ.js → verify-96j8d5ps.js} +1 -1
- package/dist/{verify-BQu3eBNW.d.ts → verify-Cpc1upDA.d.ts} +2 -2
- package/dist/{view-BfEqjZJ_.js → view-Ch0Qtr36.js} +1 -1
- package/dist/{view-Cy2XxYp1.d.ts → view-eHgOOyRS.d.ts} +1 -1
- package/dist/vue/index.d.ts +10 -10
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-BOclyLFd.d.ts → watch-topic-CtJAkWT4.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +29 -5
- package/dist/workflow-sdk/builder/index.js +39 -12
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/index.js +2 -2
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-yIkECybp.d.ts → workflow-sdk-CUt0E4v6.d.ts} +3 -3
- package/dist/{workflow-sdk-BL3wzkdp.js → workflow-sdk-pB1jCLIL.js} +26 -1
- package/dist/{workflows-BljkWRxE.d.ts → workflows-BI4yKqFh.d.ts} +3 -3
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +131 -0
- package/schemas/doctor-report-v1.json +4 -0
- package/skills/better-supabase-auth/SKILL.md +45 -11
- package/dist/cli/add-BaB3y1lv.js +0 -1
- package/dist/cli/env-UN6PJFX6.js +0 -1
- package/dist/cli/powersync-J2Kms2NT.js +0 -1
- package/dist/cli/seed-ByLneY1H.js +0 -1
- package/dist/errors-D3-4c-XF.js +0 -102
- package/dist/http-BDC1IvBX.js +0 -27
- package/dist/jwks-cache-IZaiICAV.js +0 -48
- package/dist/options-Itq7QYoW.js +0 -20
- package/dist/refresh-BtbC2rZe.d.ts +0 -52
- package/dist/snapshot-BGsJw9xn.d.ts +0 -83
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { u as AiChatMessageStorage } from "./ai-chat-BZhfCHHr.js";
|
|
1
2
|
import { n as ExtraColumns, t as BlockOptionsSchema } from "./options-CRwTY_q2.js";
|
|
2
3
|
import { t as AssetsSqlOptions } from "./options-Bwrwb8do.js";
|
|
3
4
|
import { t as ContentSqlOptions } from "./options-Lh6uxepF.js";
|
|
@@ -76,7 +77,8 @@ interface BlockNameRegistry {
|
|
|
76
77
|
readonly tables: {
|
|
77
78
|
readonly "projects": "id" | "tenant" | "owner" | "name" | "instructions" | "model" | "pinned" | "archivedAt" | "createdAt" | "updatedAt";
|
|
78
79
|
readonly "chats": "id" | "tenant" | "owner" | "project" | "agent" | "title" | "model" | "visibility" | "pinned" | "archivedAt" | "temporary" | "expiresAt" | "leaf" | "activeStream" | "activeRun" | "lastMessageAt" | "createdAt" | "updatedAt" | "search";
|
|
79
|
-
readonly "
|
|
80
|
+
readonly "participants": "chat" | "user" | "role" | "addedBy" | "createdAt";
|
|
81
|
+
readonly "messages": "chat" | "id" | "parent" | "owner" | "author" | "role" | "parts" | "format" | "native" | "metadata" | "model" | "status" | "seq" | "createdAt" | "search";
|
|
80
82
|
readonly "runs": "id" | "chat" | "owner" | "message" | "stream" | "engine" | "externalRun" | "model" | "status" | "generation" | "usage" | "cost" | "error" | "startedAt" | "endedAt";
|
|
81
83
|
readonly "approvals": "id" | "chat" | "owner" | "run" | "message" | "tool" | "toolCall" | "input" | "decision" | "reason" | "signature" | "decidedBy" | "decidedAt" | "createdAt";
|
|
82
84
|
readonly "policies": "tenant" | "tool" | "policy" | "updatedAt";
|
|
@@ -90,7 +92,7 @@ interface BlockNameRegistry {
|
|
|
90
92
|
readonly "sandboxes": "id" | "tenant" | "user" | "chat" | "harness" | "provider" | "sandbox" | "container" | "status" | "metadata" | "idleSeconds" | "error" | "lastUsedAt" | "expiresAt" | "stoppedAt" | "createdAt" | "updatedAt";
|
|
91
93
|
readonly "harness": "chat" | "harness" | "owner" | "resume" | "continue" | "status" | "holder" | "lockedUntil" | "lastActiveAt" | "createdAt" | "updatedAt";
|
|
92
94
|
};
|
|
93
|
-
readonly functions: "ai_chat_can_read" | "ai_chat_notify" | "ai_message_path" | "ai_message_path_of" | "ai_message_siblings" | "ai_sandbox_for" | "ai_tool_approval_approvable" | "ai_tool_policies_for" | "allowed_ai_models" | "answer_ai_pending_input" | "append_ai_user_message" | "apply_ai_tool_approval" | "attach_ai_run" | "claim_ai_chat_stream" | "create_ai_chat" | "decide_ai_tool_approval" | "delete_ai_chat" | "delete_ai_project" | "finish_ai_sandbox_stop" | "get_ai_chat" | "get_ai_run" | "get_ai_tool_approvals" | "get_shared_ai_chat" | "idle_ai_sandboxes" | "list_ai_chat_shares" | "list_ai_chats" | "list_ai_moderation_events" | "list_ai_projects" | "list_ai_run_steps" | "list_ai_runs" | "list_ai_sandboxes" | "list_pending_ai_tool_approvals" | "load_ai_harness_session" | "lock_ai_harness_session" | "open_ai_pending_input" | "purge_ai_chats" | "rate_ai_message" | "record_ai_moderation_event" | "record_ai_run_step" | "record_ai_tool_approval" | "register_ai_sandbox" | "release_ai_chat_stream" | "request_ai_chat_stop" | "revoke_ai_chat_share" | "save_ai_assistant_message" | "save_ai_harness_session" | "save_ai_project" | "set_ai_run_cost" | "set_ai_tool_policy" | "share_ai_chat" | "switch_ai_branch" | "touch_ai_sandbox" | "unlock_ai_harness_session" | "update_ai_chat" | "upsert_ai_models";
|
|
95
|
+
readonly functions: "add_ai_chat_participant" | "ai_chat_can_read" | "ai_chat_notify" | "ai_message_path" | "ai_message_path_of" | "ai_message_siblings" | "ai_sandbox_for" | "ai_tool_approval_approvable" | "ai_tool_policies_for" | "allowed_ai_models" | "answer_ai_pending_input" | "append_ai_user_message" | "apply_ai_tool_approval" | "attach_ai_run" | "claim_ai_chat_stream" | "create_ai_chat" | "decide_ai_tool_approval" | "delete_ai_chat" | "delete_ai_project" | "finish_ai_sandbox_stop" | "get_ai_chat" | "get_ai_run" | "get_ai_tool_approvals" | "get_shared_ai_chat" | "idle_ai_sandboxes" | "list_ai_chat_participants" | "list_ai_chat_shares" | "list_ai_chats" | "list_ai_moderation_events" | "list_ai_projects" | "list_ai_run_steps" | "list_ai_runs" | "list_ai_sandboxes" | "list_pending_ai_tool_approvals" | "load_ai_harness_session" | "lock_ai_harness_session" | "open_ai_pending_input" | "purge_ai_chats" | "rate_ai_message" | "record_ai_moderation_event" | "record_ai_run_step" | "record_ai_tool_approval" | "register_ai_sandbox" | "release_ai_chat_stream" | "remove_ai_chat_participant" | "request_ai_chat_stop" | "revoke_ai_chat_share" | "save_ai_assistant_message" | "save_ai_harness_session" | "save_ai_project" | "set_ai_run_cost" | "set_ai_tool_policy" | "share_ai_chat" | "switch_ai_branch" | "touch_ai_sandbox" | "unlock_ai_harness_session" | "update_ai_chat" | "upsert_ai_models";
|
|
94
96
|
readonly actions: "read" | "create" | "share" | "moderate" | "admin";
|
|
95
97
|
readonly hooks: never;
|
|
96
98
|
readonly entities: {
|
|
@@ -167,14 +169,15 @@ interface BlockNameRegistry {
|
|
|
167
169
|
};
|
|
168
170
|
readonly "approvals": {
|
|
169
171
|
readonly tables: {
|
|
170
|
-
readonly "requests": "id" | "tenant" | "subjectType" | "subjectId" | "action" | "policy" | "step" | "status" | "requestedBy" | "reason" | "payload" | "expiresAt" | "remindedAt" | "decidedAt" | "createdAt";
|
|
172
|
+
readonly "requests": "id" | "tenant" | "subjectType" | "subjectId" | "action" | "policy" | "step" | "status" | "requestedBy" | "reason" | "payload" | "expiresAt" | "remindedAt" | "decidedAt" | "fingerprint" | "consumedAt" | "createdAt";
|
|
171
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";
|
|
172
175
|
};
|
|
173
|
-
readonly functions: "approval_eligible" | "approval_finalize" | "approval_notify" | "approval_policy" | "cancel_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" | "expire_approvals" | "get_approval" | "is_approved" | "list_approvals" | "open_approval" | "remind_approvals" | "request_approval";
|
|
174
177
|
readonly actions: "read" | "request" | "manage";
|
|
175
178
|
readonly hooks: "before_approval_request" | "after_approval_request" | "before_approval_decide" | "after_approval_decide";
|
|
176
179
|
readonly entities: {
|
|
177
|
-
readonly "approval": "id" | "tenant_id" | "subject_type" | "subject_id" | "action" | "policy" | "step" | "status" | "requested_by" | "reason" | "payload" | "expires_at" | "reminded_at" | "decided_at" | "created_at";
|
|
180
|
+
readonly "approval": "id" | "tenant_id" | "subject_type" | "subject_id" | "action" | "policy" | "step" | "status" | "requested_by" | "reason" | "payload" | "expires_at" | "reminded_at" | "decided_at" | "fingerprint" | "consumed_at" | "created_at";
|
|
178
181
|
};
|
|
179
182
|
readonly primary: "approval";
|
|
180
183
|
};
|
|
@@ -306,6 +309,7 @@ interface BlockNameRegistry {
|
|
|
306
309
|
readonly "calendars": "id" | "tenant" | "name" | "tz" | "color" | "ownerType" | "ownerId" | "createdAt" | "visibility" | "description" | "rank" | "isDefault";
|
|
307
310
|
readonly "events": "id" | "tenant" | "calendar" | "uid" | "title" | "description" | "location" | "startsAt" | "endsAt" | "allDay" | "tz" | "status" | "rrule" | "exdates" | "recurrence" | "originalStart" | "subjectType" | "subjectId" | "color" | "kind" | "transparency" | "autoDecline" | "createdBy" | "createdAt" | "updatedAt" | "visibility" | "owner" | "rdates";
|
|
308
311
|
readonly "attendees": "id" | "tenant" | "event" | "email" | "name" | "user" | "role" | "response" | "subjectType" | "subjectId" | "organizer" | "optional";
|
|
312
|
+
readonly "alarms": "id" | "tenant" | "event" | "user" | "method" | "offsetMinutes" | "related" | "at" | "repeat" | "repeatMinutes" | "description" | "summary" | "createdAt";
|
|
309
313
|
readonly "workingHours": "id" | "tenant" | "user" | "weekday" | "startsAt" | "endsAt" | "tz";
|
|
310
314
|
readonly "grants": "id" | "tenant" | "calendar" | "user" | "role" | "createdAt";
|
|
311
315
|
readonly "rules": "id" | "tenant" | "event" | "rrule" | "freq" | "interval" | "count" | "until" | "byDay" | "byMonthDay" | "byMonth" | "bySetPos";
|
|
@@ -325,7 +329,7 @@ interface BlockNameRegistry {
|
|
|
325
329
|
readonly "products": "id" | "tenant" | "slug" | "title" | "description" | "kind" | "status" | "createdAt" | "updatedAt" | "price" | "currency" | "trackInventory";
|
|
326
330
|
readonly "options": "id" | "tenant" | "product" | "name" | "rank";
|
|
327
331
|
readonly "optionValues": "id" | "tenant" | "option" | "value" | "rank";
|
|
328
|
-
readonly "variants": "id" | "tenant" | "product" | "sku" | "title" | "barcode" | "weight" | "trackInventory" | "allowBackorder" | "rank" | "createdAt" | "updatedAt" | "price";
|
|
332
|
+
readonly "variants": "id" | "tenant" | "product" | "sku" | "title" | "barcode" | "weight" | "trackInventory" | "allowBackorder" | "rank" | "createdAt" | "updatedAt" | "price" | "status";
|
|
329
333
|
readonly "variantValues": "tenant" | "variant" | "value";
|
|
330
334
|
readonly "priceLists": "id" | "tenant" | "name" | "customerGroup" | "createdAt";
|
|
331
335
|
readonly "prices": "id" | "tenant" | "variant" | "priceList" | "currency" | "amount" | "compareAt" | "validFrom" | "validUntil" | "createdAt" | "updatedAt";
|
|
@@ -340,12 +344,12 @@ interface BlockNameRegistry {
|
|
|
340
344
|
readonly "variantTranslations": "tenant" | "variant" | "locale" | "title" | "updatedAt";
|
|
341
345
|
readonly "media": "id" | "tenant" | "product" | "variant" | "attachment" | "position" | "alt" | "createdAt";
|
|
342
346
|
};
|
|
343
|
-
readonly functions: "add_to_collection" | "channel_price" | "channel_products" | "currency_minor_units" | "delete_catalog_channel" | "delete_category" | "delete_collection" | "delete_price" | "delete_price_list" | "delete_product" | "delete_product_option" | "delete_variant" | "move_category" | "product_text" | "publish_storefront" | "rank_variant" | "remove_from_collection" | "save_catalog_channel" | "save_category" | "save_collection" | "save_price_list" | "save_product" | "save_product_option" | "save_variant" | "set_channel_listing" | "set_price" | "set_product_categories" | "set_product_status" | "set_product_translation" | "set_variant_translation" | "storefront_products" | "storefront_tenants" | "variant_price";
|
|
344
|
-
readonly actions: "manage" | "read";
|
|
347
|
+
readonly functions: "add_to_collection" | "channel_price" | "channel_products" | "currency_minor_units" | "delete_catalog_channel" | "delete_category" | "delete_collection" | "delete_price" | "delete_price_list" | "delete_product" | "delete_product_option" | "delete_variant" | "move_category" | "product_text" | "publish_storefront" | "rank_variant" | "remove_from_collection" | "reorder_product_options" | "save_catalog_channel" | "save_category" | "save_collection" | "save_price_list" | "save_product" | "save_product_option" | "save_variant" | "set_channel_listing" | "set_price" | "set_product_categories" | "set_product_options" | "set_product_status" | "set_product_translation" | "set_variant_translation" | "storefront_products" | "storefront_tenants" | "variant_price";
|
|
348
|
+
readonly actions: "manage" | "read" | "create" | "update" | "delete";
|
|
345
349
|
readonly hooks: "before_product_save" | "after_product_save" | "before_variant_save" | "after_variant_save" | "before_price_set" | "after_price_set";
|
|
346
350
|
readonly entities: {
|
|
347
351
|
readonly "product": "id" | "tenant_id" | "slug" | "title" | "description" | "kind" | "status" | "created_at" | "updated_at" | "price" | "currency" | "track_inventory";
|
|
348
|
-
readonly "product_variant": "id" | "tenant_id" | "product_id" | "sku" | "title" | "barcode" | "weight_grams" | "track_inventory" | "allow_backorder" | "rank" | "created_at" | "updated_at" | "price";
|
|
352
|
+
readonly "product_variant": "id" | "tenant_id" | "product_id" | "sku" | "title" | "barcode" | "weight_grams" | "track_inventory" | "allow_backorder" | "rank" | "created_at" | "updated_at" | "price" | "status";
|
|
349
353
|
};
|
|
350
354
|
readonly primary: "product";
|
|
351
355
|
};
|
|
@@ -671,15 +675,15 @@ interface BlockNameRegistry {
|
|
|
671
675
|
readonly "enrollments": {
|
|
672
676
|
readonly tables: {
|
|
673
677
|
readonly "programs": "id" | "tenant" | "key" | "name" | "description" | "subjectTypes" | "steps" | "enabled" | "version" | "createdBy" | "createdAt" | "updatedAt";
|
|
674
|
-
readonly "enrollments": "id" | "tenant" | "program" | "programVersion" | "subjectType" | "subjectId" | "user" | "steps" | "completedSteps" | "status" | "enrolledBy" | "enrolledAt" | "completedAt" | "cancelledAt" | "updatedAt";
|
|
675
|
-
readonly "steps": "enrollment" | "tenant" | "step" | "completedBy" | "completedAt";
|
|
678
|
+
readonly "enrollments": "id" | "tenant" | "program" | "programVersion" | "subjectType" | "subjectId" | "user" | "steps" | "completedSteps" | "status" | "enrolledBy" | "enrolledAt" | "startsAt" | "endsAt" | "completedAt" | "cancelledAt" | "updatedAt";
|
|
679
|
+
readonly "steps": "enrollment" | "tenant" | "step" | "assigneeRole" | "assigneeUser" | "dueAt" | "completedBy" | "completedAt";
|
|
676
680
|
};
|
|
677
|
-
readonly functions: "cancel_enrollment" | "complete_enrollment_step" | "delete_enrollment_program" | "enroll" | "enrollment" | "enrollment_ensure" | "enrollment_json" | "enrollment_mark" | "enrollment_programs" | "enrollment_step" | "list_enrollments" | "reset_enrollment_step" | "save_enrollment_program";
|
|
681
|
+
readonly functions: "cancel_enrollment" | "complete_enrollment_step" | "delete_enrollment_program" | "enroll" | "enrollment" | "enrollment_ensure" | "enrollment_json" | "enrollment_mark" | "enrollment_programs" | "enrollment_schedule" | "enrollment_step" | "list_enrollments" | "open_enrollment_steps" | "reset_enrollment_step" | "save_enrollment_program" | "set_enrollment_dates";
|
|
678
682
|
readonly actions: "read" | "enroll" | "manage";
|
|
679
683
|
readonly hooks: never;
|
|
680
684
|
readonly entities: {
|
|
681
685
|
readonly "enrollment_program": "id" | "tenant_id" | "key" | "name" | "description" | "subject_types" | "steps" | "enabled" | "version" | "created_by" | "created_at" | "updated_at";
|
|
682
|
-
readonly "enrollment": "id" | "tenant_id" | "program" | "program_version" | "subject_type" | "subject_id" | "user_id" | "steps" | "completed_steps" | "status" | "enrolled_by" | "enrolled_at" | "completed_at" | "cancelled_at" | "updated_at";
|
|
686
|
+
readonly "enrollment": "id" | "tenant_id" | "program" | "program_version" | "subject_type" | "subject_id" | "user_id" | "steps" | "completed_steps" | "status" | "enrolled_by" | "enrolled_at" | "starts_at" | "ends_at" | "completed_at" | "cancelled_at" | "updated_at";
|
|
683
687
|
};
|
|
684
688
|
readonly primary: "enrollment_program";
|
|
685
689
|
};
|
|
@@ -696,9 +700,10 @@ interface BlockNameRegistry {
|
|
|
696
700
|
readonly "categories": "id" | "tenant" | "key" | "name" | "currency" | "limitAmount" | "receiptOver" | "archivedAt" | "createdAt" | "updatedAt";
|
|
697
701
|
readonly "reports": "id" | "tenant" | "user" | "title" | "currency" | "note" | "approval" | "submittedAt" | "approvedAt" | "approvalTransaction" | "reimbursedAt" | "reimbursement" | "cancelledAt" | "createdAt" | "updatedAt" | "rejectedAt" | "decidedBy" | "decisionNote";
|
|
698
702
|
readonly "lines": "id" | "tenant" | "report" | "category" | "spentOn" | "description" | "merchant" | "amount" | "createdAt" | "updatedAt";
|
|
703
|
+
readonly "expenses": "id" | "tenant" | "user" | "employee" | "category" | "spentOn" | "description" | "merchant" | "amount" | "currency" | "status" | "submittedAt" | "approvedAt" | "rejectedAt" | "decidedBy" | "decidedAt" | "decisionNote" | "reimbursedAt" | "reimbursedBy" | "reimbursement" | "createdBy" | "createdAt" | "updatedAt";
|
|
699
704
|
};
|
|
700
705
|
readonly functions: "add_expense_line" | "approve_expense_report" | "archive_expense_category" | "cancel_expense_report" | "check_expense_report" | "create_expense_report" | "expense_report_violations" | "get_expense_report" | "list_expense_categories" | "list_expense_reports" | "reimburse_expense_report" | "remove_expense_line" | "save_expense_category" | "submit_expense_report" | "update_expense_line";
|
|
701
|
-
readonly actions: "read" | "submit" | "approve" | "manage";
|
|
706
|
+
readonly actions: "read" | "submit" | "approve" | "manage" | "create" | "update" | "delete" | "reimburse" | "categories";
|
|
702
707
|
readonly hooks: never;
|
|
703
708
|
readonly entities: {
|
|
704
709
|
readonly "expense_report": "id" | "tenant_id" | "user_id" | "title" | "currency" | "note" | "approval_id" | "submitted_at" | "approved_at" | "approval_transaction_id" | "reimbursed_at" | "reimbursement_transaction_id" | "cancelled_at" | "created_at" | "updated_at" | "rejected_at" | "decided_by" | "decision_note";
|
|
@@ -879,8 +884,9 @@ interface BlockNameRegistry {
|
|
|
879
884
|
readonly "inbound": "id" | "tenant" | "adapter" | "externalId" | "inbox" | "headers" | "body" | "status" | "error" | "attempts" | "receivedAt" | "processedAt";
|
|
880
885
|
readonly "templates": "id" | "tenant" | "inbox" | "name" | "channel" | "language" | "body" | "variables" | "externalId" | "createdAt" | "updatedAt";
|
|
881
886
|
readonly "scheduled": "id" | "tenant" | "conversation" | "author" | "input" | "scheduledFor" | "createdAt" | "updatedAt";
|
|
887
|
+
readonly "drafts": "id" | "tenant" | "conversation" | "author" | "source" | "input" | "status" | "metadata" | "createdAt" | "updatedAt";
|
|
882
888
|
};
|
|
883
|
-
readonly functions: "assign_conversation" | "cancel_inbox_message" | "create_inbox" | "create_inbox_attachment" | "create_inbox_team" | "delete_message_template" | "edit_inbox_message" | "get_conversation" | "get_inbox_message" | "inbox_add_message" | "inbox_can_conversation" | "inbox_contact_ids" | "inbox_contact_read_at" | "inbox_conversation_allowed" | "inbox_conversation_broadcast" | "inbox_conversation_json" | "inbox_counts" | "inbox_delivery_broadcast" | "inbox_file_allowed" | "inbox_file_failed" | "inbox_message_broadcast" | "inbox_messages_json" | "inbox_note_readable" | "inbox_resolve_contact" | "list_conversation_events" | "list_inbox_conversations" | "list_inbox_messages" | "list_scheduled_inbox_messages" | "mark_conversation_read" | "pending_inbound_events" | "pending_inbox_files" | "publish_due_inbox_messages" | "purge_contact" | "purge_inbound_events" | "react_to_inbox_message" | "record_delivery" | "record_inbound" | "reschedule_inbox_message" | "schedule_inbox_message" | "send_inbox_message" | "set_bot_mode" | "set_conversation_status" | "set_delivery_status" | "set_inbound_event_status" | "set_inbox_member" | "set_inbox_team_member" | "start_conversation" | "store_inbound_event" | "update_inbox" | "upsert_contact" | "upsert_message_template" | "wake_snoozed_conversations";
|
|
889
|
+
readonly functions: "assign_conversation" | "cancel_inbox_message" | "create_inbox" | "create_inbox_attachment" | "create_inbox_team" | "delete_message_template" | "discard_inbox_draft" | "edit_inbox_message" | "get_conversation" | "get_inbox_message" | "inbox_add_message" | "inbox_can_conversation" | "inbox_contact_ids" | "inbox_contact_read_at" | "inbox_conversation_allowed" | "inbox_conversation_broadcast" | "inbox_conversation_json" | "inbox_counts" | "inbox_delivery_broadcast" | "inbox_file_allowed" | "inbox_file_failed" | "inbox_message_broadcast" | "inbox_messages_json" | "inbox_note_readable" | "inbox_resolve_contact" | "list_conversation_events" | "list_inbox_conversations" | "list_inbox_drafts" | "list_inbox_messages" | "list_scheduled_inbox_messages" | "mark_conversation_read" | "pending_inbound_events" | "pending_inbox_files" | "publish_due_inbox_messages" | "purge_contact" | "purge_inbound_events" | "react_to_inbox_message" | "record_delivery" | "record_inbound" | "reschedule_inbox_message" | "save_inbox_draft" | "schedule_inbox_message" | "send_inbox_draft" | "send_inbox_message" | "set_bot_mode" | "set_conversation_status" | "set_delivery_status" | "set_inbound_event_status" | "set_inbox_member" | "set_inbox_team_member" | "start_conversation" | "store_inbound_event" | "suggest_inbox_draft" | "update_inbox" | "upsert_contact" | "upsert_message_template" | "wake_snoozed_conversations";
|
|
884
890
|
readonly actions: "read" | "reply" | "assign" | "manage";
|
|
885
891
|
readonly hooks: never;
|
|
886
892
|
readonly entities: {
|
|
@@ -912,14 +918,20 @@ interface BlockNameRegistry {
|
|
|
912
918
|
readonly "inventory": {
|
|
913
919
|
readonly tables: {
|
|
914
920
|
readonly "locations": "id" | "tenant" | "code" | "name" | "kind" | "active" | "createdAt" | "updatedAt";
|
|
915
|
-
readonly "levels": "tenant" | "variant" | "location" | "onHand" | "reserved" | "incoming" | "available" | "reorderPoint" | "updatedAt";
|
|
921
|
+
readonly "levels": "tenant" | "variant" | "location" | "onHand" | "reserved" | "held" | "incoming" | "available" | "reorderPoint" | "updatedAt";
|
|
916
922
|
readonly "reservations": "id" | "tenant" | "variant" | "location" | "quantity" | "status" | "referenceType" | "referenceId" | "expiresAt" | "createdAt" | "updatedAt";
|
|
917
923
|
readonly "transfers": "id" | "tenant" | "from" | "to" | "status" | "note" | "createdAt" | "shippedAt" | "receivedAt";
|
|
918
|
-
readonly "transferLines": "tenant" | "transfer" | "variant" | "quantity";
|
|
924
|
+
readonly "transferLines": "tenant" | "transfer" | "variant" | "quantity" | "detail";
|
|
919
925
|
readonly "purchaseOrders": "id" | "tenant" | "location" | "supplierType" | "supplierId" | "status" | "currency" | "expectedAt" | "note" | "createdAt" | "updatedAt" | "placedAt";
|
|
920
926
|
readonly "purchaseOrderLines": "id" | "tenant" | "order" | "variant" | "quantity" | "received" | "unitCost";
|
|
921
|
-
|
|
922
|
-
|
|
927
|
+
readonly "items": "variant" | "tenant" | "unit" | "scale" | "tracking" | "expiry" | "costing" | "currency" | "averageCost" | "updatedAt";
|
|
928
|
+
readonly "bins": "id" | "tenant" | "location" | "code" | "name" | "hold" | "active" | "createdAt";
|
|
929
|
+
readonly "lots": "id" | "tenant" | "variant" | "code" | "expiresOn" | "createdAt";
|
|
930
|
+
readonly "serials": "id" | "tenant" | "variant" | "serial" | "lot" | "location" | "bin" | "status" | "movement" | "updatedAt";
|
|
931
|
+
readonly "buckets": "id" | "tenant" | "variant" | "location" | "bin" | "lot" | "onHand" | "updatedAt";
|
|
932
|
+
readonly "allocations": "id" | "tenant" | "variant" | "location" | "documentType" | "documentId" | "line" | "quantity" | "allocated" | "fulfilled" | "backordered" | "status" | "createdAt" | "updatedAt";
|
|
933
|
+
};
|
|
934
|
+
readonly functions: "adjust_stock" | "allocate_stock" | "cancel_purchase_order" | "cancel_transfer" | "commit_reservation" | "count_stock" | "create_transfer" | "delete_location" | "expire_lots" | "expire_reservations" | "expiring_lots" | "fill_backorders" | "fulfill_allocation" | "list_allocations" | "move_stock" | "place_purchase_order" | "receive_purchase_order" | "receive_transfer" | "release_allocations" | "release_reservation" | "reserve_stock" | "restore_allocation" | "save_bin" | "save_location" | "save_lot" | "save_purchase_order" | "set_location_active" | "set_reorder_point" | "set_stock_item" | "ship_transfer" | "stock_detail" | "stock_lot_for" | "stock_valuation";
|
|
923
935
|
readonly actions: "manage" | "read" | "reserve" | "purchase";
|
|
924
936
|
readonly hooks: "before_stock_adjust" | "after_stock_adjust" | "before_stock_reserve" | "after_stock_reserve";
|
|
925
937
|
readonly entities: {
|
|
@@ -941,15 +953,15 @@ interface BlockNameRegistry {
|
|
|
941
953
|
};
|
|
942
954
|
readonly "invoices": {
|
|
943
955
|
readonly tables: {
|
|
944
|
-
readonly "invoices": "id" | "tenant" | "kind" | "number" | "identifier" | "original" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "currency" | "status" | "termsDays" | "issuedOn" | "dueOn" | "paidTotal" | "creditedTotal" | "paidAt" | "voidedAt" | "voidReason" | "note" | "originType" | "originId" | "depositBps" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
|
|
956
|
+
readonly "invoices": "id" | "tenant" | "kind" | "number" | "identifier" | "original" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "currency" | "status" | "termsDays" | "issuedOn" | "dueOn" | "paidTotal" | "creditedTotal" | "paidAt" | "voidedAt" | "voidReason" | "writeOffReason" | "note" | "originType" | "originId" | "depositBps" | "pricesIncludeTax" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
|
|
945
957
|
readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt";
|
|
946
958
|
readonly "charges": "id" | "tenant" | "invoice" | "amount" | "currency" | "description" | "createdBy" | "createdAt";
|
|
947
959
|
};
|
|
948
|
-
readonly functions: "add_invoice_charge" | "create_invoice" | "credit_invoice" | "invoice_aging" | "issue_invoice" | "record_invoice_payment" | "set_invoice_lines" | "set_invoice_lines_recount" | "void_invoice" | "write_off_invoice";
|
|
949
|
-
readonly actions: "read" | "write" | "manage";
|
|
960
|
+
readonly functions: "add_invoice_charge" | "create_invoice" | "credit_invoice" | "invoice_aging" | "issue_invoice" | "record_invoice_payment" | "remove_invoice_charge" | "reverse_invoice_payment" | "set_invoice_lines" | "set_invoice_lines_recount" | "void_invoice" | "write_off_invoice";
|
|
961
|
+
readonly actions: "read" | "write" | "manage" | "create" | "update" | "issue" | "payment" | "credit" | "charge" | "void" | "writeOff" | "reverse";
|
|
950
962
|
readonly hooks: "before_invoice_issue" | "after_invoice_issue" | "before_invoice_payment" | "after_invoice_payment";
|
|
951
963
|
readonly entities: {
|
|
952
|
-
readonly "invoice": "id" | "tenant_id" | "kind" | "number" | "identifier" | "original_id" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "currency" | "status" | "terms_days" | "issued_on" | "due_on" | "paid_total" | "credited_total" | "paid_at" | "voided_at" | "void_reason" | "note" | "origin_type" | "origin_id" | "deposit_bps" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
|
|
964
|
+
readonly "invoice": "id" | "tenant_id" | "kind" | "number" | "identifier" | "original_id" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "currency" | "status" | "terms_days" | "issued_on" | "due_on" | "paid_total" | "credited_total" | "paid_at" | "voided_at" | "void_reason" | "write_off_reason" | "note" | "origin_type" | "origin_id" | "deposit_bps" | "prices_include_tax" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
|
|
953
965
|
};
|
|
954
966
|
readonly primary: "invoice";
|
|
955
967
|
};
|
|
@@ -963,14 +975,16 @@ interface BlockNameRegistry {
|
|
|
963
975
|
};
|
|
964
976
|
readonly "knowledge": {
|
|
965
977
|
readonly tables: {
|
|
966
|
-
readonly "documents": "id" | "tenant" | "owner" | "scope" | "scopeId" | "file" | "title" | "source" | "metadata" | "status" | "error" | "chunkCount" | "model" | "createdAt" | "updatedAt";
|
|
978
|
+
readonly "documents": "id" | "tenant" | "owner" | "scope" | "scopeId" | "file" | "title" | "source" | "metadata" | "status" | "error" | "chunkCount" | "model" | "collection" | "createdAt" | "updatedAt";
|
|
979
|
+
readonly "collections": "id" | "tenant" | "name" | "description" | "visibility" | "priority" | "createdBy" | "createdAt" | "updatedAt";
|
|
980
|
+
readonly "collectionGrants": "collection" | "user" | "team" | "createdAt";
|
|
967
981
|
readonly "chunks": "document" | "index" | "content" | "tokens" | "embedding" | "hash" | "metadata" | "tsv";
|
|
968
982
|
};
|
|
969
|
-
readonly functions: "create_knowledge_document" | "delete_knowledge_document" | "fail_knowledge_document" | "get_knowledge_document" | "knowledge_search" | "list_knowledge_documents" | "pending_knowledge_chunks" | "pending_knowledge_documents" | "reembed_knowledge" | "set_knowledge_embeddings" | "write_knowledge_chunks";
|
|
983
|
+
readonly functions: "create_knowledge_collection" | "create_knowledge_document" | "delete_knowledge_collection" | "delete_knowledge_document" | "fail_knowledge_document" | "get_knowledge_document" | "knowledge_collection_readable" | "knowledge_search" | "list_knowledge_collection_grants" | "list_knowledge_collections" | "list_knowledge_documents" | "pending_knowledge_chunks" | "pending_knowledge_documents" | "reembed_knowledge" | "set_knowledge_collection_grant" | "set_knowledge_embeddings" | "update_knowledge_collection" | "write_knowledge_chunks";
|
|
970
984
|
readonly actions: "read" | "write" | "manage";
|
|
971
985
|
readonly hooks: never;
|
|
972
986
|
readonly entities: {
|
|
973
|
-
readonly "document": "id" | "organization_id" | "owner_id" | "scope" | "scope_id" | "file_id" | "title" | "source" | "metadata" | "status" | "error" | "chunk_count" | "embedding_model" | "created_at" | "updated_at";
|
|
987
|
+
readonly "document": "id" | "organization_id" | "owner_id" | "scope" | "scope_id" | "file_id" | "title" | "source" | "metadata" | "status" | "error" | "chunk_count" | "embedding_model" | "collection_id" | "created_at" | "updated_at";
|
|
974
988
|
};
|
|
975
989
|
readonly primary: "document";
|
|
976
990
|
};
|
|
@@ -999,15 +1013,16 @@ interface BlockNameRegistry {
|
|
|
999
1013
|
};
|
|
1000
1014
|
readonly "leave": {
|
|
1001
1015
|
readonly tables: {
|
|
1002
|
-
readonly "types": "id" | "tenant" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryoverMax" | "color" | "archivedAt" | "createdAt" | "updatedAt";
|
|
1003
|
-
readonly "requests": "id" | "tenant" | "user" | "type" | "startsOn" | "endsOn" | "partial" | "amount" | "note" | "approval" | "approvedAt" | "cancelledAt" | "cancelledBy" | "createdAt" | "updatedAt" | "rejectedAt" | "decidedBy" | "decisionNote";
|
|
1016
|
+
readonly "types": "id" | "tenant" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryoverMax" | "color" | "autoApprove" | "confidential" | "archivedAt" | "createdAt" | "updatedAt";
|
|
1017
|
+
readonly "requests": "id" | "tenant" | "user" | "employee" | "type" | "startsOn" | "endsOn" | "partial" | "startPart" | "endPart" | "amount" | "note" | "approval" | "approvedAt" | "cancelledAt" | "cancelledBy" | "createdAt" | "updatedAt" | "rejectedAt" | "decidedBy" | "decisionNote";
|
|
1018
|
+
readonly "balances": "id" | "tenant" | "user" | "employee" | "type" | "kind" | "amount" | "effectiveOn" | "expiresOn" | "request" | "note" | "key" | "createdBy" | "createdAt";
|
|
1004
1019
|
};
|
|
1005
|
-
readonly functions: "accrue_leave" | "adjust_leave_balance" | "approve_leave_request" | "archive_leave_type" | "cancel_leave_request" | "close_leave_year" | "decide_leave_request" | "leave_available" | "leave_balances" | "leave_ledger_entries" | "leave_post" | "leave_posted" | "leave_working_days" | "list_leave_requests" | "list_leave_types" | "request_leave" | "save_leave_type";
|
|
1006
|
-
readonly actions: "request" | "read" | "approve" | "manage";
|
|
1020
|
+
readonly functions: "accrue_leave" | "adjust_leave_balance" | "approve_leave_request" | "archive_leave_type" | "cancel_leave_request" | "close_leave_year" | "decide_leave_request" | "leave_available" | "leave_balances" | "leave_is_mine" | "leave_ledger_entries" | "leave_post" | "leave_posted" | "leave_working_days" | "list_leave_requests" | "list_leave_types" | "request_leave" | "save_leave_type" | "split_leave_request" | "update_leave_request";
|
|
1021
|
+
readonly actions: "request" | "read" | "approve" | "manage" | "readConfidential";
|
|
1007
1022
|
readonly hooks: "before_leave_request" | "after_leave_request";
|
|
1008
1023
|
readonly entities: {
|
|
1009
|
-
readonly "request": "id" | "tenant_id" | "user_id" | "type_id" | "starts_on" | "ends_on" | "partial" | "amount" | "note" | "approval_id" | "approved_at" | "cancelled_at" | "cancelled_by" | "created_at" | "updated_at" | "rejected_at" | "decided_by" | "decision_note";
|
|
1010
|
-
readonly "type": "id" | "tenant_id" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryover_max" | "color" | "archived_at" | "created_at" | "updated_at";
|
|
1024
|
+
readonly "request": "id" | "tenant_id" | "user_id" | "employee_id" | "type_id" | "starts_on" | "ends_on" | "partial" | "start_part" | "end_part" | "amount" | "note" | "approval_id" | "approved_at" | "cancelled_at" | "cancelled_by" | "created_at" | "updated_at" | "rejected_at" | "decided_by" | "decision_note";
|
|
1025
|
+
readonly "type": "id" | "tenant_id" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryover_max" | "color" | "auto_approve" | "confidential" | "archived_at" | "created_at" | "updated_at";
|
|
1011
1026
|
};
|
|
1012
1027
|
readonly primary: "request";
|
|
1013
1028
|
};
|
|
@@ -1062,15 +1077,15 @@ interface BlockNameRegistry {
|
|
|
1062
1077
|
};
|
|
1063
1078
|
readonly "memory": {
|
|
1064
1079
|
readonly tables: {
|
|
1065
|
-
readonly "memories": "id" | "tenant" | "owner" | "scope" | "agent" | "chat" | "project" | "kind" | "path" | "content" | "version" | "embedding" | "model" | "sourceMessage" | "supersededBy" | "tsv" | "createdAt" | "updatedAt";
|
|
1080
|
+
readonly "memories": "id" | "tenant" | "owner" | "scope" | "agent" | "chat" | "project" | "kind" | "path" | "content" | "version" | "embedding" | "model" | "sourceMessage" | "supersededBy" | "subjectType" | "subjectId" | "category" | "confidence" | "expiresAt" | "deletedAt" | "useCount" | "lastUsedAt" | "tsv" | "createdAt" | "updatedAt";
|
|
1066
1081
|
readonly "messageEmbeddings": "chat" | "message" | "user" | "tenant" | "embedding" | "model" | "createdAt";
|
|
1067
1082
|
readonly "documents": "scopeKey" | "path" | "content" | "version" | "expiresAt" | "createdAt" | "updatedAt";
|
|
1068
1083
|
};
|
|
1069
|
-
readonly functions: "memory_create" | "memory_delete" | "memory_document_read" | "memory_document_write" | "memory_forget" | "memory_insert" | "memory_list" | "memory_rename" | "memory_save" | "memory_search" | "memory_str_replace" | "memory_view" | "pending_memory_embeddings" | "purge_memory_documents" | "recall_ai_messages" | "set_ai_message_embedding" | "set_memory_embedding" | "set_memory_embeddings";
|
|
1084
|
+
readonly functions: "memory_create" | "memory_delete" | "memory_document_read" | "memory_document_write" | "memory_forget" | "memory_insert" | "memory_list" | "memory_rename" | "memory_restore" | "memory_save" | "memory_search" | "memory_str_replace" | "memory_view" | "pending_memory_embeddings" | "purge_memories" | "purge_memory_documents" | "recall_ai_messages" | "set_ai_message_embedding" | "set_memory_embedding" | "set_memory_embeddings";
|
|
1070
1085
|
readonly actions: "read" | "manage";
|
|
1071
1086
|
readonly hooks: never;
|
|
1072
1087
|
readonly entities: {
|
|
1073
|
-
readonly "memory": "id" | "organization_id" | "owner_id" | "scope" | "agent_id" | "chat_id" | "project_id" | "kind" | "path" | "content" | "version" | "embedding" | "embedding_model" | "source_message_id" | "superseded_by" | "tsv" | "created_at" | "updated_at";
|
|
1088
|
+
readonly "memory": "id" | "organization_id" | "owner_id" | "scope" | "agent_id" | "chat_id" | "project_id" | "kind" | "path" | "content" | "version" | "embedding" | "embedding_model" | "source_message_id" | "superseded_by" | "subject_type" | "subject_id" | "category" | "confidence" | "expires_at" | "deleted_at" | "use_count" | "last_used_at" | "tsv" | "created_at" | "updated_at";
|
|
1074
1089
|
};
|
|
1075
1090
|
readonly primary: "memory";
|
|
1076
1091
|
};
|
|
@@ -1179,11 +1194,11 @@ interface BlockNameRegistry {
|
|
|
1179
1194
|
readonly "carts": "id" | "tenant" | "user" | "currency" | "priceList" | "status" | "email" | "shippingAddress" | "billingAddress" | "shippingRate" | "createdAt" | "updatedAt" | "convertedAt";
|
|
1180
1195
|
readonly "cartLines": "id" | "tenant" | "cart" | "variant" | "quantity" | "unitAmount" | "createdAt" | "updatedAt";
|
|
1181
1196
|
readonly "shippingRates": "id" | "tenant" | "name" | "countries" | "currency" | "kind" | "amount" | "perKg" | "freeOver" | "active" | "createdAt" | "updatedAt";
|
|
1182
|
-
readonly "orders": "id" | "tenant" | "number" | "sequence" | "cart" | "customer" | "email" | "status" | "currency" | "subtotal" | "discountTotal" | "shippingTotal" | "taxTotal" | "total" | "paidTotal" | "refundedTotal" | "taxInclusive" | "shippingAddress" | "billingAddress" | "shipping" | "promotions" | "tax" | "taxTransaction" | "invoiceNumber" | "invoiceSequence" | "invoicedAt" | "placedAt" | "paidAt" | "fulfilledAt" | "completedAt" | "cancelledAt" | "cancelReason" | "updatedAt";
|
|
1197
|
+
readonly "orders": "id" | "tenant" | "number" | "sequence" | "cart" | "customer" | "email" | "status" | "currency" | "subtotal" | "discountTotal" | "shippingTotal" | "taxTotal" | "total" | "paidTotal" | "refundedTotal" | "taxInclusive" | "shippingAddress" | "billingAddress" | "shipping" | "promotions" | "tax" | "taxTransaction" | "invoiceNumber" | "invoiceSequence" | "invoicedAt" | "placedAt" | "paidAt" | "fulfilledAt" | "completedAt" | "cancelledAt" | "cancelReason" | "originType" | "originId" | "updatedAt";
|
|
1183
1198
|
readonly "orderLines": "id" | "tenant" | "order" | "position" | "variant" | "product" | "sku" | "title" | "quantity" | "unitAmount" | "subtotal" | "discount" | "tax" | "total" | "requiresShipping" | "location" | "reservation" | "fulfilled" | "returned" | "backordered";
|
|
1184
1199
|
readonly "payments": "id" | "tenant" | "order" | "provider" | "reference" | "status" | "currency" | "amount" | "captured" | "refunded" | "createdAt" | "updatedAt";
|
|
1185
1200
|
readonly "fulfillments": "id" | "tenant" | "order" | "location" | "status" | "carrier" | "trackingNumber" | "trackingUrl" | "createdAt" | "shippedAt" | "deliveredAt";
|
|
1186
|
-
readonly "fulfillmentLines": "tenant" | "fulfillment" | "line" | "quantity";
|
|
1201
|
+
readonly "fulfillmentLines": "tenant" | "fulfillment" | "line" | "quantity" | "detail";
|
|
1187
1202
|
readonly "returns": "id" | "tenant" | "order" | "status" | "reason" | "requestedBy" | "createdAt" | "receivedAt";
|
|
1188
1203
|
readonly "returnLines": "tenant" | "return" | "line" | "quantity";
|
|
1189
1204
|
readonly "refunds": "id" | "tenant" | "order" | "payment" | "return" | "amount" | "currency" | "status" | "reason" | "providerReference" | "createdAt" | "completedAt";
|
|
@@ -1191,11 +1206,11 @@ interface BlockNameRegistry {
|
|
|
1191
1206
|
readonly "kitchenRoutes": "product" | "tenant" | "station";
|
|
1192
1207
|
readonly "preparations": "line" | "tenant" | "order" | "station" | "state" | "note" | "queuedAt" | "startedAt" | "readyAt" | "servedAt" | "updatedAt" | "updatedBy";
|
|
1193
1208
|
};
|
|
1194
|
-
readonly functions: "add_to_cart" | "cancel_fulfillment" | "cancel_order" | "cart_totals" | "complete_refund" | "create_cart" | "create_fulfillment" | "create_refund" | "delete_shipping_rate" | "deliver_fulfillment" | "expire_orders" | "get_order" | "merge_carts" | "order_cancel" | "order_json" | "order_transition" | "place_order" | "price_cart" | "receive_return" | "record_payment" | "reject_return" | "request_return" | "save_shipping_rate" | "set_cart_details" | "set_cart_line" | "set_cart_shipping_rate" | "set_order_tax_transaction" | "ship_fulfillment" | "shipping_options";
|
|
1209
|
+
readonly functions: "add_to_cart" | "cancel_fulfillment" | "cancel_order" | "cart_totals" | "complete_refund" | "create_cart" | "create_fulfillment" | "create_refund" | "delete_shipping_rate" | "deliver_fulfillment" | "expire_orders" | "get_order" | "merge_carts" | "order_cancel" | "order_from_document" | "order_from_lines" | "order_from_quote" | "order_json" | "order_transition" | "place_order" | "price_cart" | "receive_return" | "record_payment" | "reject_return" | "request_return" | "save_shipping_rate" | "set_cart_details" | "set_cart_line" | "set_cart_shipping_rate" | "set_order_tax_transaction" | "ship_fulfillment" | "shipping_options";
|
|
1195
1210
|
readonly actions: "manage" | "read" | "prepare";
|
|
1196
1211
|
readonly hooks: "before_order_place" | "after_order_place" | "before_fulfillment_create" | "after_fulfillment_create" | "before_refund_create" | "after_refund_create";
|
|
1197
1212
|
readonly entities: {
|
|
1198
|
-
readonly "order": "id" | "tenant_id" | "number" | "sequence" | "cart_id" | "customer_id" | "email" | "status" | "currency" | "subtotal" | "discount_total" | "shipping_total" | "tax_total" | "total" | "paid_total" | "refunded_total" | "tax_inclusive" | "shipping_address" | "billing_address" | "shipping" | "promotions" | "tax" | "tax_transaction" | "invoice_number" | "invoice_sequence" | "invoiced_at" | "placed_at" | "paid_at" | "fulfilled_at" | "completed_at" | "cancelled_at" | "cancel_reason" | "updated_at";
|
|
1213
|
+
readonly "order": "id" | "tenant_id" | "number" | "sequence" | "cart_id" | "customer_id" | "email" | "status" | "currency" | "subtotal" | "discount_total" | "shipping_total" | "tax_total" | "total" | "paid_total" | "refunded_total" | "tax_inclusive" | "shipping_address" | "billing_address" | "shipping" | "promotions" | "tax" | "tax_transaction" | "invoice_number" | "invoice_sequence" | "invoiced_at" | "placed_at" | "paid_at" | "fulfilled_at" | "completed_at" | "cancelled_at" | "cancel_reason" | "origin_type" | "origin_id" | "updated_at";
|
|
1199
1214
|
readonly "cart": "id" | "tenant_id" | "user_id" | "currency" | "price_list_id" | "status" | "email" | "shipping_address" | "billing_address" | "shipping_rate_id" | "created_at" | "updated_at" | "converted_at";
|
|
1200
1215
|
};
|
|
1201
1216
|
readonly primary: "order";
|
|
@@ -1336,14 +1351,16 @@ interface BlockNameRegistry {
|
|
|
1336
1351
|
};
|
|
1337
1352
|
readonly "quotes": {
|
|
1338
1353
|
readonly tables: {
|
|
1339
|
-
readonly "quotes": "id" | "tenant" | "number" | "identifier" | "revision" | "
|
|
1340
|
-
readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt";
|
|
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";
|
|
1356
|
+
readonly "versions": "id" | "tenant" | "quote" | "revision" | "snapshot" | "total" | "currency" | "publishedBy" | "publishedAt";
|
|
1357
|
+
readonly "taxLines": "id" | "tenant" | "parent" | "taxRateBps" | "taxCode" | "net" | "tax" | "gross" | "discount";
|
|
1341
1358
|
};
|
|
1342
|
-
readonly functions: "create_quote" | "decide_quote" | "expire_quotes" | "public_quote" | "respond_to_quote" | "revise_quote" | "send_quote" | "set_quote_lines" | "set_quote_lines_recount" | "update_quote";
|
|
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";
|
|
1343
1360
|
readonly actions: "read" | "write" | "manage";
|
|
1344
1361
|
readonly hooks: "before_quote_send" | "after_quote_send" | "before_quote_accept" | "after_quote_accept";
|
|
1345
1362
|
readonly entities: {
|
|
1346
|
-
readonly "quote": "id" | "tenant_id" | "number" | "identifier" | "revision" | "
|
|
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";
|
|
1347
1364
|
};
|
|
1348
1365
|
readonly primary: "quote";
|
|
1349
1366
|
};
|
|
@@ -1411,14 +1428,14 @@ interface BlockNameRegistry {
|
|
|
1411
1428
|
readonly "reminders": {
|
|
1412
1429
|
readonly tables: {
|
|
1413
1430
|
readonly "rules": "id" | "tenant" | "subjectType" | "subjectId" | "dtstart" | "tzid" | "rrule" | "frequency" | "intervalCount" | "weekDays" | "monthDay" | "monthWeekday" | "monthOrdinal";
|
|
1414
|
-
readonly "reminders": "id" | "tenant" | "subjectType" | "subjectId" | "user" | "method" | "offsetMinutes";
|
|
1431
|
+
readonly "reminders": "id" | "tenant" | "subjectType" | "subjectId" | "user" | "method" | "offsetMinutes" | "remindAt";
|
|
1415
1432
|
readonly "deliveries": "id" | "reminder" | "occurrenceAt" | "sentAt";
|
|
1416
1433
|
};
|
|
1417
1434
|
readonly functions: "delete_reminder" | "list_my_reminders" | "list_reminder_schedule" | "mark_reminder_sent" | "save_reminder";
|
|
1418
1435
|
readonly actions: "manage" | "read";
|
|
1419
1436
|
readonly hooks: never;
|
|
1420
1437
|
readonly entities: {
|
|
1421
|
-
readonly "reminder": "id" | "tenant_id" | "subject_type" | "subject_id" | "user_id" | "method" | "offset_minutes";
|
|
1438
|
+
readonly "reminder": "id" | "tenant_id" | "subject_type" | "subject_id" | "user_id" | "method" | "offset_minutes" | "remind_at";
|
|
1422
1439
|
};
|
|
1423
1440
|
readonly primary: "reminder";
|
|
1424
1441
|
};
|
|
@@ -1578,14 +1595,16 @@ interface BlockNameRegistry {
|
|
|
1578
1595
|
readonly "shipments": "id" | "tenant" | "reference" | "status" | "fromAddress" | "toAddress" | "fromLocation" | "subjectType" | "subjectId" | "carrier" | "service" | "trackingNumber" | "trackingUrl" | "labelId" | "labelUrl" | "labelFormat" | "labelCost" | "currency" | "labeledAt" | "deliveredAt" | "cancelledAt" | "createdBy" | "createdAt" | "updatedAt";
|
|
1579
1596
|
readonly "packages": "id" | "tenant" | "shipment" | "position" | "weight" | "length" | "width" | "height" | "reference";
|
|
1580
1597
|
readonly "trackingEvents": "id" | "tenant" | "shipment" | "externalId" | "status" | "occurredAt" | "description" | "location" | "source" | "createdAt";
|
|
1598
|
+
readonly "lines": "id" | "tenant" | "shipment" | "position" | "direction" | "variant" | "location" | "quantity" | "allocation" | "detail" | "disposition" | "movement" | "movedAt" | "createdAt";
|
|
1581
1599
|
};
|
|
1582
|
-
readonly functions: "cancel_shipment" | "create_shipment" | "get_shipment" | "ingest_tracking_events" | "list_shipments" | "list_tracking_events" | "record_tracking_events" | "set_shipment_label";
|
|
1600
|
+
readonly functions: "cancel_shipment" | "create_shipment" | "get_shipment" | "ingest_tracking_events" | "list_shipments" | "list_tracking_events" | "receive_shipment_return" | "record_tracking_events" | "set_shipment_label" | "set_shipment_lines";
|
|
1583
1601
|
readonly actions: "read" | "manage";
|
|
1584
1602
|
readonly hooks: never;
|
|
1585
1603
|
readonly entities: {
|
|
1586
1604
|
readonly "shipment": "id" | "tenant_id" | "reference" | "status" | "from_address" | "to_address" | "from_location_id" | "subject_type" | "subject_id" | "carrier" | "service" | "tracking_number" | "tracking_url" | "label_id" | "label_url" | "label_format" | "label_cost" | "currency" | "labeled_at" | "delivered_at" | "cancelled_at" | "created_by" | "created_at" | "updated_at";
|
|
1587
1605
|
readonly "shipment_package": "id" | "tenant_id" | "shipment_id" | "position" | "weight_grams" | "length_mm" | "width_mm" | "height_mm" | "reference";
|
|
1588
1606
|
readonly "shipment_tracking_event": "id" | "tenant_id" | "shipment_id" | "external_id" | "status" | "occurred_at" | "description" | "location" | "source" | "created_at";
|
|
1607
|
+
readonly "shipment_line": "id" | "tenant_id" | "shipment_id" | "position" | "direction" | "variant_id" | "location_id" | "quantity" | "allocation_id" | "detail" | "disposition" | "movement_id" | "moved_at" | "created_at";
|
|
1589
1608
|
};
|
|
1590
1609
|
readonly primary: "shipment";
|
|
1591
1610
|
};
|
|
@@ -1642,9 +1661,9 @@ interface BlockNameRegistry {
|
|
|
1642
1661
|
};
|
|
1643
1662
|
readonly "state-machine": {
|
|
1644
1663
|
readonly tables: {
|
|
1645
|
-
readonly "history": "id" | "tenant" | "subjectType" | "subjectId" | "fromStatus" | "toStatus" | "actor" | "reason" | "createdAt";
|
|
1664
|
+
readonly "history": "id" | "tenant" | "subjectType" | "subjectId" | "fromStatus" | "toStatus" | "actor" | "actorName" | "actorEmail" | "ip" | "userAgent" | "reason" | "createdAt";
|
|
1646
1665
|
readonly "stages": "id" | "tenant" | "subjectType" | "subjectId" | "label" | "outcome" | "display" | "clearedAt" | "createdAt";
|
|
1647
|
-
readonly "lifecycles": "id" | "tenant" | "subjectType" | "subjectId" | "version" | "flags" | "pausedAt" | "pausedUntil" | "pauseReason" | "pausedBy" | "createdAt" | "updatedAt";
|
|
1666
|
+
readonly "lifecycles": "id" | "tenant" | "subjectType" | "subjectId" | "version" | "flags" | "pausedAt" | "pausedUntil" | "pauseReason" | "pausedBy" | "workflowVersion" | "createdAt" | "updatedAt";
|
|
1648
1667
|
};
|
|
1649
1668
|
readonly functions: "list_status_history" | "list_status_stages" | "pause_lifecycle" | "resume_lifecycle" | "set_lifecycle_flag" | "status_state" | "transition";
|
|
1650
1669
|
readonly actions: never;
|
|
@@ -1718,16 +1737,18 @@ interface BlockNameRegistry {
|
|
|
1718
1737
|
};
|
|
1719
1738
|
readonly "templates": {
|
|
1720
1739
|
readonly tables: {
|
|
1721
|
-
readonly "templates": "id" | "tenant" | "scope" | "key" | "type" | "name" | "language" | "isDefault" | "settings" | "forkedFrom" | "forkedFromVersion" | "createdBy" | "createdAt" | "updatedAt";
|
|
1740
|
+
readonly "templates": "id" | "tenant" | "scope" | "brand" | "key" | "type" | "name" | "language" | "isDefault" | "settings" | "forkedFrom" | "forkedFromVersion" | "createdBy" | "createdAt" | "updatedAt";
|
|
1722
1741
|
readonly "versions": "id" | "template" | "version" | "body" | "hash" | "publishedAt" | "createdBy" | "createdAt";
|
|
1723
1742
|
readonly "applications": "id" | "template" | "version" | "tenant" | "subjectType" | "subjectId" | "appliedBy" | "appliedAt";
|
|
1724
1743
|
readonly "workflows": "id" | "template" | "definition" | "inputs" | "enabled" | "createdBy" | "createdAt";
|
|
1744
|
+
readonly "schedules": "id" | "template" | "tenant" | "input" | "enabled" | "createdBy" | "createdAt" | "updatedAt";
|
|
1745
|
+
readonly "runs": "schedule" | "tenant" | "occurrence" | "application" | "createdAt";
|
|
1725
1746
|
};
|
|
1726
1747
|
readonly functions: "fork_template" | "publish_template_version" | "record_template_application" | "remove_template" | "save_template" | "save_template_draft" | "set_default_template" | "sync_templates" | "template_applications_list" | "template_apply_target" | "template_get" | "template_versions_list" | "templates_list";
|
|
1727
1748
|
readonly actions: "read" | "apply" | "manage";
|
|
1728
1749
|
readonly hooks: "before_template_save" | "after_template_save" | "before_template_apply" | "after_template_apply";
|
|
1729
1750
|
readonly entities: {
|
|
1730
|
-
readonly "template": "id" | "tenant_id" | "scope" | "key" | "type" | "name" | "language" | "is_default" | "settings" | "forked_from" | "forked_from_version" | "created_by" | "created_at" | "updated_at";
|
|
1751
|
+
readonly "template": "id" | "tenant_id" | "scope" | "brand" | "key" | "type" | "name" | "language" | "is_default" | "settings" | "forked_from" | "forked_from_version" | "created_by" | "created_at" | "updated_at";
|
|
1731
1752
|
};
|
|
1732
1753
|
readonly primary: "template";
|
|
1733
1754
|
};
|
|
@@ -1873,7 +1894,7 @@ interface BlockNameRegistry {
|
|
|
1873
1894
|
};
|
|
1874
1895
|
readonly "workflow-editor": {
|
|
1875
1896
|
readonly tables: {
|
|
1876
|
-
readonly "definitions": "id" | "tenant" | "slug" | "name" | "description" | "subjectTypes" | "scope" | "forkedFrom" | "forkedFromVersion" | "restricted" | "createdBy" | "createdAt" | "updatedAt";
|
|
1897
|
+
readonly "definitions": "id" | "tenant" | "slug" | "name" | "description" | "subjectTypes" | "scope" | "forkedFrom" | "forkedFromVersion" | "restricted" | "purpose" | "isDefault" | "createdBy" | "createdAt" | "updatedAt";
|
|
1877
1898
|
readonly "optOuts": "tenant" | "definition" | "createdBy" | "createdAt";
|
|
1878
1899
|
readonly "grants": "id" | "definition" | "principalKind" | "principalId" | "action" | "createdBy" | "createdAt";
|
|
1879
1900
|
readonly "versions": "id" | "definition" | "version" | "graph" | "compiled" | "status" | "createdBy" | "createdAt" | "publishedAt" | "publishedBy" | "owner" | "permissions" | "inputSchema";
|
|
@@ -1881,15 +1902,16 @@ interface BlockNameRegistry {
|
|
|
1881
1902
|
readonly "webhookTokens": "tokenHash" | "trigger" | "createdAt";
|
|
1882
1903
|
readonly "credentials": "id" | "tenant" | "kind" | "name" | "ref" | "scopes" | "createdBy" | "createdAt";
|
|
1883
1904
|
readonly "steps": "name" | "title" | "description" | "inputSchema" | "outputSchema" | "credentialKind" | "operation" | "updatedAt";
|
|
1905
|
+
readonly "nodeKinds": "kind" | "title" | "description" | "branches" | "configSchema" | "updatedAt";
|
|
1884
1906
|
readonly "nodeRuns": "run" | "node" | "status" | "attempts" | "output" | "error" | "startedAt" | "endedAt";
|
|
1885
1907
|
readonly "alerts": "id" | "definition" | "onEvent" | "threshold" | "channel" | "createdBy" | "createdAt";
|
|
1886
1908
|
readonly "alertFires": "alert" | "run" | "firedAt";
|
|
1887
1909
|
};
|
|
1888
|
-
readonly functions: "check_workflow_alerts" | "fork_workflow_definition" | "publish_workflow_version" | "record_workflow_node_run" | "remove_workflow_alert" | "remove_workflow_credential" | "remove_workflow_definition" | "remove_workflow_trigger" | "rotate_workflow_webhook_token" | "save_workflow_alert" | "save_workflow_credential" | "save_workflow_definition" | "save_workflow_draft" | "save_workflow_trigger" | "set_workflow_definition_grant" | "set_workflow_opt_out" | "start_test_run" | "sync_workflow_steps" | "validate_workflow_graph" | "workflow_alerts_list" | "workflow_credential_get" | "workflow_credentials_list" | "workflow_definition_get" | "workflow_definition_grants_list" | "workflow_definitions_list" | "workflow_graph_permissions" | "workflow_node_runs_list" | "workflow_run_principal" | "workflow_runs_alert" | "workflow_start_target" | "workflow_steps_list" | "workflow_subject_start_target" | "workflow_triggers_list" | "workflow_version_get" | "workflow_versions_list" | "workflow_webhook_target";
|
|
1910
|
+
readonly functions: "check_workflow_alerts" | "fork_workflow_definition" | "publish_workflow_version" | "record_workflow_node_run" | "remove_workflow_alert" | "remove_workflow_credential" | "remove_workflow_definition" | "remove_workflow_trigger" | "resolve_workflow_definition" | "rotate_workflow_webhook_token" | "save_workflow_alert" | "save_workflow_credential" | "save_workflow_definition" | "save_workflow_draft" | "save_workflow_trigger" | "set_workflow_definition_grant" | "set_workflow_definition_purpose" | "set_workflow_opt_out" | "start_test_run" | "sync_workflow_node_kinds" | "sync_workflow_steps" | "validate_workflow_graph" | "workflow_alerts_list" | "workflow_credential_get" | "workflow_credentials_list" | "workflow_definition_get" | "workflow_definition_grants_list" | "workflow_definitions_list" | "workflow_graph_permissions" | "workflow_node_kinds_list" | "workflow_node_runs_list" | "workflow_run_principal" | "workflow_runs_alert" | "workflow_start_target" | "workflow_steps_list" | "workflow_subject_start_target" | "workflow_triggers_list" | "workflow_version_get" | "workflow_versions_list" | "workflow_webhook_target";
|
|
1889
1911
|
readonly actions: "read" | "run" | "edit" | "publish" | "admin";
|
|
1890
1912
|
readonly hooks: never;
|
|
1891
1913
|
readonly entities: {
|
|
1892
|
-
readonly "definition": "id" | "tenant_id" | "slug" | "name" | "description" | "subject_types" | "scope" | "forked_from" | "forked_from_version" | "restricted" | "created_by" | "created_at" | "updated_at";
|
|
1914
|
+
readonly "definition": "id" | "tenant_id" | "slug" | "name" | "description" | "subject_types" | "scope" | "forked_from" | "forked_from_version" | "restricted" | "purpose" | "is_default" | "created_by" | "created_at" | "updated_at";
|
|
1893
1915
|
};
|
|
1894
1916
|
readonly primary: "definition";
|
|
1895
1917
|
};
|
|
@@ -1978,7 +2000,25 @@ type AiChatSqlOptions = {
|
|
|
1978
2000
|
readonly meterUsage?: boolean;
|
|
1979
2001
|
readonly inputMeter?: string;
|
|
1980
2002
|
readonly outputMeter?: string;
|
|
2003
|
+
/** `false` makes the tenant optional: chats and projects outside a tenant. */
|
|
2004
|
+
readonly tenant?: boolean;
|
|
2005
|
+
readonly messages?: AiChatMessageStorage;
|
|
1981
2006
|
readonly extraColumns?: ExtraColumns;
|
|
2007
|
+
readonly projectExtraColumns?: ExtraColumns;
|
|
2008
|
+
readonly participantExtraColumns?: ExtraColumns;
|
|
2009
|
+
readonly messageExtraColumns?: ExtraColumns;
|
|
2010
|
+
readonly runExtraColumns?: ExtraColumns;
|
|
2011
|
+
readonly approvalExtraColumns?: ExtraColumns;
|
|
2012
|
+
readonly policyExtraColumns?: ExtraColumns;
|
|
2013
|
+
readonly inputExtraColumns?: ExtraColumns;
|
|
2014
|
+
readonly sourceExtraColumns?: ExtraColumns;
|
|
2015
|
+
readonly feedbackExtraColumns?: ExtraColumns;
|
|
2016
|
+
readonly shareExtraColumns?: ExtraColumns;
|
|
2017
|
+
readonly modelExtraColumns?: ExtraColumns;
|
|
2018
|
+
readonly moderationExtraColumns?: ExtraColumns;
|
|
2019
|
+
readonly stepExtraColumns?: ExtraColumns;
|
|
2020
|
+
readonly sandboxExtraColumns?: ExtraColumns;
|
|
2021
|
+
readonly harnessExtraColumns?: ExtraColumns;
|
|
1982
2022
|
};
|
|
1983
2023
|
/** `blocks.ai-files.options`. */
|
|
1984
2024
|
type AiFilesSqlOptions = {
|
|
@@ -2016,6 +2056,11 @@ type ApiKeysSqlOptions = {
|
|
|
2016
2056
|
/** `blocks.approvals.options`. */
|
|
2017
2057
|
type ApprovalsSqlOptions = {
|
|
2018
2058
|
readonly policies?: unknown;
|
|
2059
|
+
/**
|
|
2060
|
+
* Adds `approval_policies`, where each organization tightens the policies
|
|
2061
|
+
* above with its own steps, conditions and mode (ADR 0119).
|
|
2062
|
+
*/
|
|
2063
|
+
readonly tenantPolicies?: boolean;
|
|
2019
2064
|
readonly extraColumns?: ExtraColumns;
|
|
2020
2065
|
};
|
|
2021
2066
|
/** `blocks.attachments.options`. */
|
|
@@ -2187,6 +2232,14 @@ type CatalogSqlOptions = {
|
|
|
2187
2232
|
* categories, collection products) are whole-number positions.
|
|
2188
2233
|
*/
|
|
2189
2234
|
readonly rankType?: "text" | "integer";
|
|
2235
|
+
/**
|
|
2236
|
+
* A function of the app's, `(variant uuid) returns boolean`, true while
|
|
2237
|
+
* something still references the variant. Removing an option value then
|
|
2238
|
+
* archives such a variant (with a mapped `columns.variants.status`) instead
|
|
2239
|
+
* of deleting it.
|
|
2240
|
+
*/
|
|
2241
|
+
readonly variantInUse?: string;
|
|
2242
|
+
readonly maxVariants?: number;
|
|
2190
2243
|
};
|
|
2191
2244
|
/** `blocks.collections.options`. */
|
|
2192
2245
|
type CollectionsSqlOptions = {
|
|
@@ -2356,6 +2409,13 @@ type ExpensesSqlOptions = {
|
|
|
2356
2409
|
* until `decide_expense_report` approves or rejects it.
|
|
2357
2410
|
*/
|
|
2358
2411
|
readonly approvals?: boolean;
|
|
2412
|
+
readonly owner?: "user" | "employee";
|
|
2413
|
+
/**
|
|
2414
|
+
* Without reports: `createExpense` with `company: true` records an expense of
|
|
2415
|
+
* the organization itself, without a member or employee. Its owner column
|
|
2416
|
+
* must allow null.
|
|
2417
|
+
*/
|
|
2418
|
+
readonly companyExpenses?: boolean;
|
|
2359
2419
|
};
|
|
2360
2420
|
/**
|
|
2361
2421
|
* A custom context's source: the table and column that hold a tenant's value,
|
|
@@ -2470,6 +2530,7 @@ type InvoicesSqlOptions = {
|
|
|
2470
2530
|
* rate: the block never recounts or writes them and reads what they hold.
|
|
2471
2531
|
*/
|
|
2472
2532
|
readonly totals?: "block" | "app";
|
|
2533
|
+
readonly providerPaymentMethods?: readonly string[];
|
|
2473
2534
|
};
|
|
2474
2535
|
/** `blocks.knowledge.options`. */
|
|
2475
2536
|
type KnowledgeSqlOptions = {
|
|
@@ -2483,18 +2544,33 @@ type KnowledgeSqlOptions = {
|
|
|
2483
2544
|
type LeasesSqlOptions = {
|
|
2484
2545
|
readonly extraColumns?: ExtraColumns;
|
|
2485
2546
|
};
|
|
2547
|
+
/** `blocks.leave.options.feed`. */
|
|
2548
|
+
type LeaveFeedOptions = ShareLinkFeedOptions & {
|
|
2549
|
+
/** Each entry carries the employee's name. Needs the employees block. */
|
|
2550
|
+
readonly names?: boolean;
|
|
2551
|
+
/** Type keys whose name the feed leaves out, such as sick leave. */
|
|
2552
|
+
readonly hideTypes?: readonly string[];
|
|
2553
|
+
/**
|
|
2554
|
+
* A `leave_team_feed` share link (subject id: a team's id) shares the leave
|
|
2555
|
+
* of that team's members. Needs the teams block.
|
|
2556
|
+
*/
|
|
2557
|
+
readonly teams?: boolean;
|
|
2558
|
+
/** Each entry carries the request's extra columns. */
|
|
2559
|
+
readonly fields?: boolean;
|
|
2560
|
+
};
|
|
2486
2561
|
/** `blocks.leave.options`. */
|
|
2487
2562
|
type LeaveSqlOptions = {
|
|
2488
2563
|
readonly policy?: unknown;
|
|
2489
2564
|
readonly workingDays?: readonly string[];
|
|
2490
2565
|
readonly allowNegative?: boolean;
|
|
2491
2566
|
readonly extraColumns?: ExtraColumns;
|
|
2492
|
-
readonly feed?:
|
|
2567
|
+
readonly feed?: LeaveFeedOptions;
|
|
2493
2568
|
/**
|
|
2494
2569
|
* `false` runs leave without the approvals block: a request stays pending
|
|
2495
2570
|
* until `decide_leave_request` approves or rejects it.
|
|
2496
2571
|
*/
|
|
2497
2572
|
readonly approvals?: boolean;
|
|
2573
|
+
readonly owner?: "user" | "employee";
|
|
2498
2574
|
};
|
|
2499
2575
|
/** `blocks.memory.options`. */
|
|
2500
2576
|
type MemorySqlOptions = {
|
|
@@ -2767,6 +2843,16 @@ type ServiceAccountsSqlOptions = {
|
|
|
2767
2843
|
};
|
|
2768
2844
|
/** `blocks['sessions'].options`. */
|
|
2769
2845
|
type SessionsSqlOptions = {
|
|
2846
|
+
/**
|
|
2847
|
+
* Renders `better_supabase.user_authz_versions`, its bump trigger and the
|
|
2848
|
+
* `authz:<uid>` broadcast that `SessionProvider` listens to.
|
|
2849
|
+
*/
|
|
2850
|
+
readonly authzVersions?: boolean;
|
|
2851
|
+
/**
|
|
2852
|
+
* Wrapper name to `schema.function`; renders
|
|
2853
|
+
* `better_supabase.bootstrap_<name>`.
|
|
2854
|
+
*/
|
|
2855
|
+
readonly bootstrap?: Readonly<Record<string, string>>;
|
|
2770
2856
|
readonly exclude?: readonly string[];
|
|
2771
2857
|
readonly policies?: boolean;
|
|
2772
2858
|
};
|
|
@@ -2849,8 +2935,23 @@ type TeamsSqlOptions = {
|
|
|
2849
2935
|
/** Writes `restore_team`, which makes an archived team active again. */
|
|
2850
2936
|
readonly restore?: boolean;
|
|
2851
2937
|
};
|
|
2938
|
+
/**
|
|
2939
|
+
* Where a tenant's brand lives: the table and column that hold it, and the
|
|
2940
|
+
* column with the tenant id (`id` by default).
|
|
2941
|
+
*/
|
|
2942
|
+
interface TemplateBrandColumn {
|
|
2943
|
+
readonly table: string;
|
|
2944
|
+
readonly column: string;
|
|
2945
|
+
readonly tenant?: string;
|
|
2946
|
+
}
|
|
2852
2947
|
/** `blocks.templates.options`. */
|
|
2853
2948
|
type TemplatesSqlOptions = {
|
|
2949
|
+
/**
|
|
2950
|
+
* Turns on brand-scoped starters, e.g. `{ table: "public.organizations",
|
|
2951
|
+
* column: "brand" }`: a starter `sync` saves with a `brand` reaches every
|
|
2952
|
+
* tenant whose column holds that brand.
|
|
2953
|
+
*/
|
|
2954
|
+
readonly brand?: TemplateBrandColumn;
|
|
2854
2955
|
readonly extraColumns?: ExtraColumns;
|
|
2855
2956
|
};
|
|
2856
2957
|
/** `blocks.time-tracking.options`. */
|