better-supabase 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/dist/{agents-BwUHtvD6.d.ts → agents-BAiLeoR-.d.ts} +3 -3
  2. package/dist/{ai-cache-CPOP2PYz.d.ts → ai-cache-B94R1da7.d.ts} +3 -3
  3. package/dist/{ai-chat-BZhfCHHr.d.ts → ai-chat-rQ7Ftq9W.d.ts} +3 -3
  4. package/dist/{ai-schedules-ChJkI2jo.d.ts → ai-schedules-DIiPmFgn.d.ts} +4 -4
  5. package/dist/ai-sdk/agents/index.d.ts +6 -6
  6. package/dist/ai-sdk/batches/index.d.ts +3 -3
  7. package/dist/ai-sdk/cache/index.d.ts +1 -1
  8. package/dist/ai-sdk/chat/index.d.ts +2 -2
  9. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  10. package/dist/ai-sdk/files/index.d.ts +1 -1
  11. package/dist/ai-sdk/index.d.ts +5 -5
  12. package/dist/ai-sdk/mcp/index.d.ts +1 -1
  13. package/dist/ai-sdk/memory/index.d.ts +3 -3
  14. package/dist/ai-sdk/workflow/index.d.ts +3 -3
  15. package/dist/{api-keys-BncNDlWG.d.ts → api-keys-U3JQ8IlM.d.ts} +2 -2
  16. package/dist/{app-tables-jaQmdgAM.d.ts → app-tables-kHGNXFsd.d.ts} +1 -1
  17. package/dist/{approvals-CXW3yFWZ.d.ts → approvals-CTVaWq1O.d.ts} +74 -13
  18. package/dist/{approvals-D8gR1R8R.js → approvals-Qjn42OAZ.js} +35 -17
  19. package/dist/{assistant-5heV2GeR.d.ts → assistant-B1p5mYaM.d.ts} +2 -2
  20. package/dist/{authorization-Ul_ApMYW.d.ts → authorization-CS5Q1V7A.d.ts} +33 -7
  21. package/dist/{automations-D4QTP8nI.js → automations-CJhRmPmq.js} +3 -1
  22. package/dist/{bind-B2GlypM6.d.ts → bind-XrFxNm5r.d.ts} +4 -4
  23. package/dist/{block-env-Bcr-jEA1.d.ts → block-env-CHFHOjvz.d.ts} +4 -4
  24. package/dist/{block-helpers-BNtM1tqy.d.ts → block-helpers-Sj-efEhC.d.ts} +15 -1
  25. package/dist/{block-hooks-CtMsgLQr.d.ts → block-hooks-VW4knarE.d.ts} +1 -1
  26. package/dist/{block-subjects-BumEsEYb.js → block-subjects-Bz95_dqA.js} +1 -1
  27. package/dist/{block-tables-nkIjJ1ly.d.ts → block-tables-EXcmuOJT.d.ts} +1 -1
  28. package/dist/blocks/access-requests/index.d.ts +3 -3
  29. package/dist/blocks/activities/index.d.ts +6 -6
  30. package/dist/blocks/agents/index.d.ts +2 -2
  31. package/dist/blocks/ai-cache/index.d.ts +2 -2
  32. package/dist/blocks/ai-chat/index.d.ts +6 -6
  33. package/dist/blocks/ai-files/index.d.ts +2 -2
  34. package/dist/blocks/ai-keys/index.d.ts +2 -2
  35. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  36. package/dist/blocks/announcements/index.d.ts +6 -6
  37. package/dist/blocks/api-keys/index.d.ts +2 -2
  38. package/dist/blocks/approvals/index.d.ts +4 -3
  39. package/dist/blocks/approvals/index.js +3 -2
  40. package/dist/blocks/assets/index.d.ts +3 -3
  41. package/dist/blocks/assignment/index.d.ts +3 -3
  42. package/dist/blocks/attachments/index.d.ts +2 -2
  43. package/dist/blocks/audit/index.d.ts +6 -6
  44. package/dist/blocks/automations/index.d.ts +6 -6
  45. package/dist/blocks/billable-time/index.d.ts +3 -3
  46. package/dist/blocks/billing/index.d.ts +4 -4
  47. package/dist/blocks/bookings/index.d.ts +3 -3
  48. package/dist/blocks/bulk/index.d.ts +2 -2
  49. package/dist/blocks/calendar/index.d.ts +3 -3
  50. package/dist/blocks/catalog/index.d.ts +3 -3
  51. package/dist/blocks/channels/index.d.ts +3 -3
  52. package/dist/blocks/collections/index.d.ts +3 -3
  53. package/dist/blocks/comments/index.d.ts +8 -8
  54. package/dist/blocks/compliance/index.d.ts +3 -3
  55. package/dist/blocks/connectors/index.d.ts +2 -2
  56. package/dist/blocks/contacts/index.d.ts +3 -3
  57. package/dist/blocks/content/index.d.ts +3 -3
  58. package/dist/blocks/contracts/index.d.ts +3 -3
  59. package/dist/blocks/courses/index.d.ts +3 -3
  60. package/dist/blocks/created-by/index.d.ts +1 -1
  61. package/dist/blocks/custom-fields/index.d.ts +3 -3
  62. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  63. package/dist/blocks/deals/index.d.ts +3 -3
  64. package/dist/blocks/dispatch/index.d.ts +3 -3
  65. package/dist/blocks/documents/index.d.ts +2 -2
  66. package/dist/blocks/domains/index.d.ts +4 -4
  67. package/dist/blocks/donations/index.d.ts +3 -3
  68. package/dist/blocks/drive/index.d.ts +4 -4
  69. package/dist/blocks/employees/index.d.ts +4 -4
  70. package/dist/blocks/enrichment/index.d.ts +3 -3
  71. package/dist/blocks/enrollments/index.d.ts +3 -3
  72. package/dist/blocks/entitlements/index.d.ts +4 -4
  73. package/dist/blocks/expenses/index.d.ts +7 -3
  74. package/dist/blocks/expenses/index.js +4 -2
  75. package/dist/blocks/field-history/index.d.ts +3 -3
  76. package/dist/blocks/flags/index.d.ts +3 -3
  77. package/dist/blocks/forecasts/index.d.ts +3 -3
  78. package/dist/blocks/forms/index.d.ts +4 -4
  79. package/dist/blocks/goals/index.d.ts +3 -3
  80. package/dist/blocks/guests/index.d.ts +3 -3
  81. package/dist/blocks/hiring/index.d.ts +3 -3
  82. package/dist/blocks/identities/index.d.ts +3 -3
  83. package/dist/blocks/imports/index.d.ts +2 -2
  84. package/dist/blocks/inbox/index.d.ts +8 -8
  85. package/dist/blocks/incidents/index.d.ts +3 -3
  86. package/dist/blocks/index.d.ts +4 -4
  87. package/dist/blocks/inventory/index.d.ts +4 -4
  88. package/dist/blocks/invoices/index.d.ts +7 -3
  89. package/dist/blocks/invoices/index.js +4 -2
  90. package/dist/blocks/knowledge/index.d.ts +2 -2
  91. package/dist/blocks/lead-scoring/index.d.ts +4 -4
  92. package/dist/blocks/leases/index.d.ts +3 -3
  93. package/dist/blocks/leave/index.d.ts +5 -3
  94. package/dist/blocks/leave/index.js +2 -1
  95. package/dist/blocks/ledger/index.d.ts +3 -3
  96. package/dist/blocks/mail-sync/index.d.ts +2 -2
  97. package/dist/blocks/memberships/index.d.ts +1 -1
  98. package/dist/blocks/memory/index.d.ts +3 -3
  99. package/dist/blocks/messaging/index.d.ts +7 -7
  100. package/dist/blocks/metrics/index.d.ts +4 -4
  101. package/dist/blocks/mfa/index.d.ts +2 -2
  102. package/dist/blocks/moderation/index.d.ts +3 -3
  103. package/dist/blocks/notifications/index.d.ts +6 -6
  104. package/dist/blocks/numbering/index.d.ts +2 -2
  105. package/dist/blocks/oauth-server/index.d.ts +3 -3
  106. package/dist/blocks/onboarding/index.d.ts +4 -4
  107. package/dist/blocks/orders/index.d.ts +5 -5
  108. package/dist/blocks/organizations/index.d.ts +5 -5
  109. package/dist/blocks/outbox/index.d.ts +2 -2
  110. package/dist/blocks/passes/index.d.ts +5 -5
  111. package/dist/blocks/permissions/index.d.ts +5 -5
  112. package/dist/blocks/pipelines/index.d.ts +3 -3
  113. package/dist/blocks/posts/index.d.ts +3 -3
  114. package/dist/blocks/profiles/index.d.ts +3 -3
  115. package/dist/blocks/promotions/index.d.ts +3 -3
  116. package/dist/blocks/push/index.d.ts +4 -4
  117. package/dist/blocks/queue/index.d.ts +4 -4
  118. package/dist/blocks/quotes/index.d.ts +57 -12
  119. package/dist/blocks/quotes/index.js +35 -7
  120. package/dist/blocks/rank/index.d.ts +4 -4
  121. package/dist/blocks/reactions/index.d.ts +6 -6
  122. package/dist/blocks/relations/index.d.ts +4 -4
  123. package/dist/blocks/reminders/index.d.ts +4 -4
  124. package/dist/blocks/reviews/index.d.ts +3 -3
  125. package/dist/blocks/saved-views/index.d.ts +3 -3
  126. package/dist/blocks/scores/index.d.ts +3 -3
  127. package/dist/blocks/search/index.d.ts +5 -5
  128. package/dist/blocks/security-events/index.d.ts +4 -4
  129. package/dist/blocks/segments/index.d.ts +3 -3
  130. package/dist/blocks/sequences/index.d.ts +3 -3
  131. package/dist/blocks/service-accounts/index.d.ts +3 -3
  132. package/dist/blocks/sessions/index.d.ts +2 -2
  133. package/dist/blocks/settings/index.d.ts +4 -4
  134. package/dist/blocks/share-links/index.d.ts +3 -3
  135. package/dist/blocks/shipments/index.d.ts +3 -3
  136. package/dist/blocks/signatures/index.d.ts +3 -3
  137. package/dist/blocks/signing-keys/index.d.ts +2 -2
  138. package/dist/blocks/sla/index.d.ts +3 -3
  139. package/dist/blocks/sso/index.d.ts +4 -4
  140. package/dist/blocks/state-machine/index.d.ts +3 -14
  141. package/dist/blocks/subjects/index.d.ts +3 -3
  142. package/dist/blocks/tags/index.d.ts +4 -4
  143. package/dist/blocks/tasks/index.d.ts +5 -5
  144. package/dist/blocks/teams/index.d.ts +3 -3
  145. package/dist/blocks/templates/index.d.ts +6 -6
  146. package/dist/blocks/time-tracking/index.d.ts +3 -3
  147. package/dist/blocks/timeline/index.d.ts +3 -3
  148. package/dist/blocks/trash/index.d.ts +3 -3
  149. package/dist/blocks/undo/index.d.ts +3 -3
  150. package/dist/blocks/updated-at/index.d.ts +1 -1
  151. package/dist/blocks/usage/index.d.ts +3 -3
  152. package/dist/blocks/vercel-marketplace/index.d.ts +3 -3
  153. package/dist/blocks/versions/index.d.ts +3 -3
  154. package/dist/blocks/waitlist/index.d.ts +3 -3
  155. package/dist/blocks/webhooks/index.d.ts +5 -5
  156. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  157. package/dist/blocks/workflows/index.d.ts +5 -5
  158. package/dist/{bookings-Dj5cvXKv.d.ts → bookings-CHUzFwOI.d.ts} +3 -3
  159. package/dist/chat-sdk/index.d.ts +3 -3
  160. package/dist/claims/index.d.ts +4 -4
  161. package/dist/cli/{add-BVs8Ym-K.js → add-BGErz-yb.js} +10 -10
  162. package/dist/cli/add-CoP8iie6.js +1 -0
  163. package/dist/cli/{add-DP1ct-7e.js → add-DU5HAq6w.js} +2 -2
  164. package/dist/cli/{app-table-files-gjMyFqH4.js → app-table-files-Drzpekpt.js} +2 -2
  165. package/dist/cli/{app-tables-B26PHK75.js → app-tables-dZpH63--.js} +2 -2
  166. package/dist/cli/{backfill-CP_LpTK2.js → backfill-B-p-19g6.js} +1 -1
  167. package/dist/cli/bin.js +1 -1
  168. package/dist/cli/{blocks-CpBLp57s.js → blocks-Ews-FZZO.js} +1 -1
  169. package/dist/cli/{blocks-Ewp49Kbm.js → blocks-iUjNl5yJ.js} +1 -1
  170. package/dist/cli/{cache-BxxtUXVN.js → cache-JT4JhdmX.js} +1 -1
  171. package/dist/cli/{codemod-CGCxMEyD.js → codemod-KIxYiazj.js} +1 -1
  172. package/dist/cli/{content-mapper-DngBJv4r.js → content-mapper-DkXzxt6f.js} +2 -2
  173. package/dist/cli/{doctor-3dcMraMn.js → doctor-VWanOD74.js} +15 -15
  174. package/dist/cli/{gen-DrXxFwUU.js → gen-_lBdTgaR.js} +11 -11
  175. package/dist/cli/index.d.ts +1 -1
  176. package/dist/cli/index.js +6 -6
  177. package/dist/cli/{init-bVKQ4Onb.js → init-Cm6n4u_3.js} +8 -8
  178. package/dist/cli/{live-CHTbAqdS.js → live-D4iSuTmS.js} +2 -2
  179. package/dist/cli/{mcp-BbmhntrR.js → mcp-CHYX7utI.js} +2 -2
  180. package/dist/cli/{metadata-BS56R_eb.js → metadata-DLba0VjH.js} +3 -3
  181. package/dist/cli/{migrate-DV6a9-jI.js → migrate-nQhh0nEJ.js} +1 -1
  182. package/dist/cli/{migration-safety-Ce9IQwmJ.js → migration-safety-C2d3BSTf.js} +1 -1
  183. package/dist/cli/{migrations-CCCnMhmM.js → migrations-BOmMcme9.js} +2 -2
  184. package/dist/cli/{module-migration-C0cAzpNa.js → module-migration-DSDB473C.js} +2 -2
  185. package/dist/cli/{powersync-OIIpG-y_.js → powersync-CAHvPkkb.js} +3 -3
  186. package/dist/cli/powersync-nH-NLDjy.js +1 -0
  187. package/dist/cli/{print-BGF3d6O2.js → print-CahE8HYK.js} +2 -2
  188. package/dist/cli/{providers-fEzlYSLs.js → providers-CL5Z5Uj4.js} +1 -1
  189. package/dist/cli/{prune-workflows-Bx7J5T3a.js → prune-workflows-C9xO0fRU.js} +1 -1
  190. package/dist/cli/{remove-Ds4N6WvD.js → remove-DIy7gthm.js} +5 -5
  191. package/dist/cli/{render-BeZToAp-.js → render-CoCZr3Ru.js} +3 -3
  192. package/dist/cli/{run-iUmtksq5.js → run-BBj137Fn.js} +27 -27
  193. package/dist/cli/{run-DR0sTyNQ.js → run-CVw8hmLk.js} +9 -9
  194. package/dist/cli/{shared-BCWYvKeR.js → shared-BdKeo7xp.js} +1 -1
  195. package/dist/cli/{snapshot-CfgRxTQq.js → snapshot-P2ww2xCt.js} +2 -2
  196. package/dist/cli/{source-Ct3ZCy6p.js → source-BCs4oBl2.js} +1 -1
  197. package/dist/cli/{spec-1eEq2P4T.js → spec-oPbt9sbZ.js} +1 -1
  198. package/dist/cli/{spec-9vb-or-k.js → spec-uCpXPLoF.js} +2 -2
  199. package/dist/cli/{sql-layout-cYsnyjRf.js → sql-layout-Bsnge2oW.js} +2 -2
  200. package/dist/cli/{sync-XpcpINnx.js → sync-Cv7iBRhe.js} +4 -4
  201. package/dist/cli/{upgrade-A18FY5Iy.js → upgrade-C6jWNxkc.js} +2 -2
  202. package/dist/cli/{upgrade-DXhyb2jV.js → upgrade-DV7jTRdh.js} +5 -5
  203. package/dist/cli/{version-PcwPOm4G.js → version-Hza4Q2PB.js} +1 -1
  204. package/dist/client/index.d.ts +5 -5
  205. package/dist/client/native/index.d.ts +4 -4
  206. package/dist/config/index.d.ts +2 -2
  207. package/dist/config/index.js +4 -4
  208. package/dist/{config-BRGMUEE2.js → config-B7hnJFxh.js} +1 -1
  209. package/dist/{config-qqAfS_1_.js → config-DwXYtmwt.js} +3 -3
  210. package/dist/{connectors-DDsdz-cn.d.ts → connectors-OMJkoAP6.d.ts} +2 -2
  211. package/dist/{context-dHluCmud.d.ts → context-tFoygone.d.ts} +2 -2
  212. package/dist/contract/index.d.ts +4 -4
  213. package/dist/{controller-BQXgMwWN.d.ts → controller-phhsPHSz.d.ts} +1 -1
  214. package/dist/{conversion-CLBBITW5.d.ts → conversion-BShzA-u-.d.ts} +1 -1
  215. package/dist/create/index.d.ts +3 -3
  216. package/dist/create/index.js +3 -3
  217. package/dist/create/lite/index.d.ts +3 -3
  218. package/dist/create/lite/index.js +2 -2
  219. package/dist/{define-block-CDw9YGVh.d.ts → define-block-DBD7yhQg.d.ts} +5 -5
  220. package/dist/{documents-Btk0MhC0.d.ts → documents-CNVPrE_0.d.ts} +2 -2
  221. package/dist/{embeddings-CI6P_mtD.d.ts → embeddings-C2PBJ2Lx.d.ts} +1 -1
  222. package/dist/{entitlements-Jh_w-PgX.d.ts → entitlements-LfW6S2RW.d.ts} +1 -1
  223. package/dist/eve/index.d.ts +5 -5
  224. package/dist/eve/index.js +1 -1
  225. package/dist/{eve-DleYrhwj.d.ts → eve-CtQd4iaO.d.ts} +2 -2
  226. package/dist/{executor-uNDJBzT8.d.ts → executor-DL7cZ-3T.d.ts} +1 -1
  227. package/dist/{field-errors-DIDkgzFA.d.ts → field-errors-CMWRPBmF.d.ts} +6 -6
  228. package/dist/{flags-Cuew4tGx.d.ts → flags-BrXfCmGB.d.ts} +1 -1
  229. package/dist/flags-sdk/index.d.ts +1 -1
  230. package/dist/{gateway-B9k89AC4.d.ts → gateway-DJX-XUWl.d.ts} +3 -3
  231. package/dist/{inbox-yGfUVQr2.d.ts → inbox-DiQ8KhG8.d.ts} +4 -4
  232. package/dist/{index-DAS_5OfK.d.ts → index-1_-lg9Gc.d.ts} +1 -1
  233. package/dist/{index-BKz-E3Mv.d.ts → index-B-HuxATL.d.ts} +8 -8
  234. package/dist/{index-xmb6YGTg.d.ts → index-B21Pim3I.d.ts} +2 -2
  235. package/dist/{index-DhcLJAtX.d.ts → index-BXkPvYzd.d.ts} +1 -1
  236. package/dist/{index-IrJQqPeQ.d.ts → index-D-uiT4Qz.d.ts} +3 -3
  237. package/dist/{index-g_eFnFqo.d.ts → index-RZqQdq1G.d.ts} +2 -2
  238. package/dist/{index-y70eTezB.d.ts → index-X5igfnIi.d.ts} +2 -2
  239. package/dist/{index-CpZ4WDDJ.d.ts → index-fmrLdtVT.d.ts} +1 -1
  240. package/dist/{instances-DqEZrffE.js → instances-DJOknCJ0.js} +8 -1
  241. package/dist/{knowledge-DWXAxvkN.d.ts → knowledge-DtECa_QW.d.ts} +4 -4
  242. package/dist/mapper/bin.js +5 -5
  243. package/dist/mcp/index.d.ts +1 -1
  244. package/dist/{messaging-Bfe4p9Pm.d.ts → messaging-CpQIhkFi.d.ts} +2 -2
  245. package/dist/next/index.d.ts +7 -7
  246. package/dist/{operations-Sza7UQKP.d.ts → operations-Cm4mSrAX.d.ts} +1 -1
  247. package/dist/{options-Bgnm4pTD.js → options-CzxG2Phg.js} +3 -0
  248. package/dist/otel/index.js +4 -4
  249. package/dist/{outbox-DikdzUKf.d.ts → outbox-Cpxpzcue.d.ts} +2 -2
  250. package/dist/{permissions-COamTJYz.d.ts → permissions-r0Cxhxos.d.ts} +1 -1
  251. package/dist/{ports-1M1E_r2n.d.ts → ports-BJJJmfWK.d.ts} +1 -1
  252. package/dist/powersync/index.d.ts +2 -2
  253. package/dist/preset/index.d.ts +3 -3
  254. package/dist/preset/index.js +3 -3
  255. package/dist/{preset-Byz43PrL.js → preset-U47pzJMK.js} +2 -2
  256. package/dist/{project-Y2wW_nr_.js → project-Dng8tO8S.js} +5 -5
  257. package/dist/{push-token-DKImhAca.d.ts → push-token-CA31xmQr.d.ts} +1 -1
  258. package/dist/query/index.d.ts +1 -1
  259. package/dist/react/index.d.ts +5 -5
  260. package/dist/react/native/index.d.ts +1 -1
  261. package/dist/react/server.d.ts +5 -5
  262. package/dist/realtime/index.d.ts +3 -3
  263. package/dist/{record-form-C-gIxGXe.d.ts → record-form-C-1TPtMG.d.ts} +1 -1
  264. package/dist/{recordings-Bw5LoocX.d.ts → recordings-BVuri85k.d.ts} +1 -1
  265. package/dist/records/index.d.ts +8 -8
  266. package/dist/{sandboxes-BF9RxxCU.d.ts → sandboxes-DKgJZYUZ.d.ts} +1 -1
  267. package/dist/{scores-Ce8MxQX9.d.ts → scores-BXuSVczw.d.ts} +2 -2
  268. package/dist/server/index.d.ts +4 -4
  269. package/dist/{signers-Dw9DBZjJ.d.ts → signers-UANxMfH-.d.ts} +2 -2
  270. package/dist/{signing-keys-FglIQ6iL.d.ts → signing-keys-DhBSWFy_.d.ts} +2 -2
  271. package/dist/solid/index.d.ts +5 -5
  272. package/dist/sql/index.d.ts +5 -5
  273. package/dist/sql/index.js +3 -3
  274. package/dist/{sql-B1FA8jTx.js → sql-BudVz33a.js} +1113 -375
  275. package/dist/{sso-B7w7h8RJ.d.ts → sso-Frh3sbJ1.d.ts} +2 -2
  276. package/dist/ssr/index.d.ts +1 -1
  277. package/dist/{subjects-CVjAE7nz.d.ts → subjects-DNFE2rMl.d.ts} +2 -2
  278. package/dist/svelte/index.d.ts +5 -5
  279. package/dist/{tenant-DflHpV32.d.ts → tenant-C2vnB0wX.d.ts} +1 -1
  280. package/dist/testing/index.d.ts +13 -13
  281. package/dist/testing/index.js +1 -1
  282. package/dist/{timeline-c6I3uxya.d.ts → timeline-BB9fKT_r.d.ts} +2 -2
  283. package/dist/{topic-CekU96q7.d.ts → topic-CKN3kmoi.d.ts} +1 -1
  284. package/dist/{types-DtiDatvu.d.ts → types-D--4dv5K.d.ts} +3 -3
  285. package/dist/{types-B42S7qfO.d.ts → types-D8Tltfdq.d.ts} +2 -2
  286. package/dist/{types-BXLiM6VM.d.ts → types-DCzgSAlU.d.ts} +2 -2
  287. package/dist/{types-6PMaLIyw.d.ts → types-DU_nNO7U.d.ts} +2 -2
  288. package/dist/{types-BdhE7I8Z.d.ts → types-LLCyr-xs.d.ts} +2 -2
  289. package/dist/{types-D5uf0l4_.d.ts → types-kq8S5HVE.d.ts} +1 -1
  290. package/dist/{types-C7K8mu9B.d.ts → types-z31g0-5T.d.ts} +3 -3
  291. package/dist/{undo-CdKp5_2X.d.ts → undo-BCQMqIQN.d.ts} +1 -1
  292. package/dist/{usage-DZ8j5Tm_.d.ts → usage-CJDj5j15.d.ts} +3 -3
  293. package/dist/vercel-sandbox/index.d.ts +1 -1
  294. package/dist/vue/index.d.ts +5 -5
  295. package/dist/{watch-topic-DBw411Mq.d.ts → watch-topic-0dXuJMuE.d.ts} +1 -1
  296. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  297. package/dist/workflow-sdk/index.d.ts +1 -1
  298. package/dist/workflow-sdk/world/index.js +1 -1
  299. package/dist/{workflow-sdk-CUt0E4v6.d.ts → workflow-sdk-DzKQo265.d.ts} +2 -2
  300. package/dist/{workflow-sdk-6psRpDIo.js → workflow-sdk-vXuxBSrk.js} +20 -1
  301. package/dist/{workflows-BI4yKqFh.d.ts → workflows-D7HvWeNu.d.ts} +2 -2
  302. package/dist/yjs/index.d.ts +2 -2
  303. package/package.json +1 -1
  304. package/schemas/config-v1.json +22 -0
  305. package/dist/cli/add-DrwQvDYD.js +0 -1
  306. package/dist/cli/powersync-Cxd3a_v_.js +0 -1
@@ -1,4 +1,4 @@
1
- import { u as AiChatMessageStorage } from "./ai-chat-BZhfCHHr.js";
1
+ import { u as AiChatMessageStorage } from "./ai-chat-rQ7Ftq9W.js";
2
2
  import { n as ExtraColumns, t as BlockOptionsSchema } from "./options-CRwTY_q2.js";
3
3
  import { t as AssetsSqlOptions } from "./options-Bwrwb8do.js";
4
4
  import { t as ContentSqlOptions } from "./options-Lh6uxepF.js";
@@ -171,9 +171,9 @@ interface BlockNameRegistry {
171
171
  readonly tables: {
172
172
  readonly "requests": "id" | "tenant" | "subjectType" | "subjectId" | "action" | "policy" | "step" | "status" | "requestedBy" | "reason" | "payload" | "expiresAt" | "remindedAt" | "decidedAt" | "fingerprint" | "consumedAt" | "createdAt";
173
173
  readonly "decisions": "id" | "request" | "tenant" | "step" | "approver" | "decision" | "delegateTo" | "comment" | "createdAt";
174
- readonly "policies": "id" | "tenant" | "subjectType" | "action" | "name" | "conditions" | "mode" | "steps" | "selfApproval" | "expiresIn" | "enabled" | "createdBy" | "createdAt" | "updatedAt";
174
+ readonly "policies": "id" | "tenant" | "subjectType" | "action" | "name" | "conditions" | "mode" | "steps" | "selfApproval" | "expiresIn" | "enabled" | "createdBy" | "createdAt" | "updatedAt" | "effect";
175
175
  };
176
- readonly functions: "approval_effective_policy" | "approval_eligible" | "approval_finalize" | "approval_notify" | "approval_policy" | "approval_requirement" | "cancel_approval" | "consume_approval" | "decide_approval" | "delegate_approval" | "expire_approvals" | "get_approval" | "is_approved" | "list_approvals" | "open_approval" | "remind_approvals" | "request_approval";
176
+ readonly functions: "approval_effective_policy" | "approval_eligible" | "approval_finalize" | "approval_notify" | "approval_policy" | "approval_requirement" | "cancel_approval" | "consume_approval" | "decide_approval" | "delegate_approval" | "escalate_approvals" | "expire_approvals" | "get_approval" | "is_approved" | "list_approvals" | "open_approval" | "remind_approvals" | "request_approval";
177
177
  readonly actions: "read" | "request" | "manage";
178
178
  readonly hooks: "before_approval_request" | "after_approval_request" | "before_approval_decide" | "after_approval_decide";
179
179
  readonly entities: {
@@ -1351,16 +1351,17 @@ interface BlockNameRegistry {
1351
1351
  };
1352
1352
  readonly "quotes": {
1353
1353
  readonly tables: {
1354
- readonly "quotes": "id" | "tenant" | "number" | "identifier" | "revision" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "owner" | "currency" | "status" | "validUntil" | "terms" | "note" | "originType" | "originId" | "tokenHash" | "sentAt" | "viewedAt" | "decidedAt" | "decidedBy" | "decisionNote" | "decidedUser" | "decidedIp" | "decidedUserAgent" | "pricesIncludeTax" | "discountBps" | "discountAmount" | "depositBps" | "depositDue" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
1355
- readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt" | "section" | "optional" | "selected";
1354
+ readonly "quotes": "id" | "tenant" | "number" | "identifier" | "revision" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "owner" | "currency" | "status" | "validUntil" | "terms" | "note" | "originType" | "originId" | "tokenHash" | "sentAt" | "viewedAt" | "decidedAt" | "decidedBy" | "decisionNote" | "decidedUser" | "decidedIp" | "decidedUserAgent" | "pricesIncludeTax" | "discountBps" | "discountAmount" | "depositBps" | "depositAmount" | "depositRequired" | "depositDue" | "unpublishedChanges" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
1355
+ readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt" | "section" | "optional" | "selected" | "periods";
1356
1356
  readonly "versions": "id" | "tenant" | "quote" | "revision" | "snapshot" | "total" | "currency" | "publishedBy" | "publishedAt";
1357
+ readonly "versionLines": "id" | "tenant" | "version" | "position" | "description" | "quantity" | "unitAmount" | "periods" | "discountBps" | "taxRateBps" | "taxCode" | "section" | "optional" | "selected" | "productType" | "productId";
1357
1358
  readonly "taxLines": "id" | "tenant" | "parent" | "taxRateBps" | "taxCode" | "net" | "tax" | "gross" | "discount";
1358
1359
  };
1359
- readonly functions: "create_quote" | "decide_quote" | "expire_quotes" | "portal_quote" | "public_quote" | "quote_version" | "quote_versions" | "respond_to_portal_quote" | "respond_to_quote" | "revise_quote" | "send_quote" | "set_quote_lines" | "set_quote_lines_recount" | "update_quote";
1360
+ readonly functions: "create_quote" | "decide_quote" | "expire_quotes" | "portal_quote" | "public_quote" | "quote_version" | "quote_versions" | "respond_to_portal_quote" | "respond_to_quote" | "revise_quote" | "send_quote" | "set_quote_lines" | "set_quote_lines_recount" | "update_quote" | "withdraw_quote";
1360
1361
  readonly actions: "read" | "write" | "manage";
1361
1362
  readonly hooks: "before_quote_send" | "after_quote_send" | "before_quote_accept" | "after_quote_accept";
1362
1363
  readonly entities: {
1363
- readonly "quote": "id" | "tenant_id" | "number" | "identifier" | "revision" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "owner_user_id" | "currency" | "status" | "valid_until" | "terms" | "note" | "origin_type" | "origin_id" | "token_hash" | "sent_at" | "viewed_at" | "decided_at" | "decided_by" | "decision_note" | "decided_user_id" | "decided_ip" | "decided_user_agent" | "prices_include_tax" | "discount_bps" | "discount_amount" | "deposit_bps" | "deposit_due" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
1364
+ readonly "quote": "id" | "tenant_id" | "number" | "identifier" | "revision" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "owner_user_id" | "currency" | "status" | "valid_until" | "terms" | "note" | "origin_type" | "origin_id" | "token_hash" | "sent_at" | "viewed_at" | "decided_at" | "decided_by" | "decision_note" | "decided_user_id" | "decided_ip" | "decided_user_agent" | "prices_include_tax" | "discount_bps" | "discount_amount" | "deposit_bps" | "deposit_amount" | "deposit_required" | "deposit_due" | "unpublished_changes" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
1364
1365
  };
1365
1366
  readonly primary: "quote";
1366
1367
  };
@@ -2061,6 +2062,20 @@ type ApprovalsSqlOptions = {
2061
2062
  * above with its own steps, conditions and mode (ADR 0119).
2062
2063
  */
2063
2064
  readonly tenantPolicies?: boolean;
2065
+ /**
2066
+ * Rows of `approval_policies` without an organization are platform policies:
2067
+ * platform staff edit them at runtime, they apply to every organization and
2068
+ * stand in for a missing config floor. Needs `tenantPolicies`.
2069
+ */
2070
+ readonly platformPolicies?: boolean;
2071
+ /**
2072
+ * `"rules"` matches tenant policy conditions through the automations block's
2073
+ * rule fields; `"payload"` matches them against the request payload without
2074
+ * automations.
2075
+ */
2076
+ readonly conditions?: "rules" | "payload";
2077
+ /** Subject types whose requests may have no organization. */
2078
+ readonly tenantless?: readonly string[];
2064
2079
  readonly extraColumns?: ExtraColumns;
2065
2080
  };
2066
2081
  /** `blocks.attachments.options`. */
@@ -2836,6 +2851,17 @@ type QuotesSqlOptions = {
2836
2851
  * and to basis points. Default `"bps"`.
2837
2852
  */
2838
2853
  readonly lineRates?: "bps" | "percent";
2854
+ /**
2855
+ * Staff edit a sent quote while the customer keeps seeing its last published
2856
+ * version; sending it again publishes the next revision on the same link, and
2857
+ * an acceptance restores the version the customer saw.
2858
+ */
2859
+ readonly workingCopy?: boolean;
2860
+ /**
2861
+ * Each published version keeps its lines as rows with their own ids in
2862
+ * `quote_version_lines`, so other records can point at them.
2863
+ */
2864
+ readonly versionLines?: boolean;
2839
2865
  };
2840
2866
  /** `blocks.reactions.options`. */
2841
2867
  type ReactionsSqlOptions = {
@@ -7,7 +7,9 @@ const quotesSqlOptions = blockOptions({
7
7
  validDays: option.number({ default: 30 }),
8
8
  extraColumns: option.extraColumns(),
9
9
  lineExtraColumns: option.extraColumns(),
10
- lineRates: option.string({ default: "bps" })
10
+ lineRates: option.string({ default: "bps" }),
11
+ workingCopy: option.boolean({ default: false }),
12
+ versionLines: option.boolean({ default: false })
11
13
  });
12
14
  // src/blocks/quotes/automations.ts
13
15
  /**
@@ -1,10 +1,10 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "./types-BzIYSSWK.js";
2
- import { o as BlockTenant } from "./block-helpers-BNtM1tqy.js";
2
+ import { s as BlockTenant } from "./block-helpers-Sj-efEhC.js";
3
3
  import { t as BetterSupabase, y as Db } from "./define-C_He1bQO.js";
4
4
  import { n as DataEngine } from "./data-engine-CX1oYDZl.js";
5
- import { Dn as GeneratedBlocks } from "./define-block-CDw9YGVh.js";
6
- import { rt as BetterQueries } from "./index-DAS_5OfK.js";
7
- import { t as ClientPorts } from "./ports-1M1E_r2n.js";
5
+ import { Dn as GeneratedBlocks } from "./define-block-DBD7yhQg.js";
6
+ import { rt as BetterQueries } from "./index-1_-lg9Gc.js";
7
+ import { t as ClientPorts } from "./ports-BJJJmfWK.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  interface AuthUser {
10
10
  readonly id: string;
@@ -1,7 +1,7 @@
1
- import { Dn as GeneratedBlocks } from "./define-block-CDw9YGVh.js";
2
- import { n as TopicPort } from "./watch-topic-DBw411Mq.js";
3
- import { t as ClientPorts } from "./ports-1M1E_r2n.js";
4
- import { t as AuthPort } from "./controller-BQXgMwWN.js";
1
+ import { Dn as GeneratedBlocks } from "./define-block-DBD7yhQg.js";
2
+ import { n as TopicPort } from "./watch-topic-0dXuJMuE.js";
3
+ import { t as ClientPorts } from "./ports-BJJJmfWK.js";
4
+ import { t as AuthPort } from "./controller-phhsPHSz.js";
5
5
  import { SupabaseClient } from "@supabase/supabase-js";
6
6
  /**
7
7
  * What the block bindings hand their controllers: the provider's client,
@@ -53,4 +53,18 @@ interface CursorPageOptions<Cursor> {
53
53
  readonly limit?: number;
54
54
  readonly cursor?: Cursor;
55
55
  }
56
- export { BlockTenantOptions as a, CursorPageOptions as i, BlockOptions as n, BlockTenant as o, BlockTemporalOptions as r, BlockCall as t };
56
+ /**
57
+ * Who made a change, for the state machine's history row: a portal visitor who
58
+ * isn't an auth user, the request's IP address and user agent, or the user the
59
+ * service role acts for.
60
+ */
61
+ interface TransitionActor {
62
+ /** The user the service role acts for; a signed-in caller is kept instead. */
63
+ readonly id?: string;
64
+ readonly name?: string;
65
+ readonly email?: string;
66
+ /** An IPv4 or IPv6 address; anything else is refused. */
67
+ readonly ip?: string;
68
+ readonly userAgent?: string;
69
+ }
70
+ export { TransitionActor as a, CursorPageOptions as i, BlockOptions as n, BlockTenantOptions as o, BlockTemporalOptions as r, BlockTenant as s, BlockCall as t };
@@ -1,6 +1,6 @@
1
1
  import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "./result-DTOQRyGY.js";
2
2
  import { n as Logger } from "./logger-0LfhvwE4.js";
3
- import { t as BlockCall } from "./block-helpers-BNtM1tqy.js";
3
+ import { t as BlockCall } from "./block-helpers-Sj-efEhC.js";
4
4
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
5
5
  /** A block method: anything that returns an `AsyncResult`. */
6
6
  type BlockMethod = (...args: never[]) => AsyncResult<unknown>;
@@ -1,5 +1,5 @@
1
1
  import { a as entityNoun, i as entityNames, n as checkEntityName, s as tenantRename, t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
2
- import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG } from "./instances-DqEZrffE.js";
2
+ import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG } from "./instances-DJOknCJ0.js";
3
3
  // src/config/defaults.ts
4
4
  /**
5
5
  * Every default `resolveConfig` fills in. Other modules (the SQL module
@@ -1,4 +1,4 @@
1
- import { cn as ResolvedConfig } from "./context-dHluCmud.js";
1
+ import { cn as ResolvedConfig } from "./context-tFoygone.js";
2
2
  /**
3
3
  * One block table as the config names it: unquoted schema and table, and each
4
4
  * logical column's written name, or `null` when an adopted table lacks it.
@@ -4,10 +4,10 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { Ct as Events, f as AccessRequestEventData } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
- import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
7
+ import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
8
8
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
10
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
10
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
11
11
  interface AccessRequestsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**
@@ -5,13 +5,13 @@ import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { Ct as Events } from "../../events-DddDlibJ.js";
6
6
  import { b as EngagementEventData, x as EngagementRecordingEventData } from "../../index-DjJUamhw.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
- import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
8
+ import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
9
9
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
11
- import { f as AiFiles } from "../../types-6PMaLIyw.js";
12
- import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
13
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
14
- import { a as EngagementRecording, c as NoteTakerInput, d as Transcript, f as TranscriptSegment, i as EngagementNotesInput, l as Transcriber, n as EngagementActionItem, o as EngagementRecordingStatus, p as TranscriptSegmentInput, r as EngagementNotes, s as NoteTaker, t as ENGAGEMENT_TRANSCRIBE_QUEUE, u as TranscriberInput } from "../../recordings-Bw5LoocX.js";
10
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
11
+ import { f as AiFiles } from "../../types-DU_nNO7U.js";
12
+ import { _ as JobHandler } from "../../types-LLCyr-xs.js";
13
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DBD7yhQg.js";
14
+ import { a as EngagementRecording, c as NoteTakerInput, d as Transcript, f as TranscriptSegment, i as EngagementNotesInput, l as Transcriber, n as EngagementActionItem, o as EngagementRecordingStatus, p as TranscriptSegmentInput, r as EngagementNotes, s as NoteTaker, t as ENGAGEMENT_TRANSCRIBE_QUEUE, u as TranscriberInput } from "../../recordings-BVuri85k.js";
15
15
  /** A record an engagement is on. */
16
16
  interface EngagementSubject {
17
17
  readonly type: string;
@@ -1,7 +1,7 @@
1
1
  import { Ct as Events, p as AgentEventData } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
- import { a as AgentSkill, c as AgentsOptions, i as AgentKnowledgeScope, l as NewAgent, n as AgentFields, o as AgentVisibility, r as AgentFilter, s as Agents, t as Agent, u as createAgents } from "../../agents-BwUHtvD6.js";
4
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
3
+ import { a as AgentSkill, c as AgentsOptions, i as AgentKnowledgeScope, l as NewAgent, n as AgentFields, o as AgentVisibility, r as AgentFilter, s as Agents, t as Agent, u as createAgents } from "../../agents-BAiLeoR-.js";
4
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
5
5
  /** The events of the `agents` block: type to data. */
6
6
  type AgentsEvents = {
7
7
  readonly "agent.saved": AgentEventData;
@@ -1,6 +1,6 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
2
- import { a as AiCacheSetOptions, i as AiCacheOptions, n as AiCacheEntry, o as cacheKey, r as AiCacheKind, s as createAiCache, t as AiCache } from "../../ai-cache-CPOP2PYz.js";
3
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
2
+ import { a as AiCacheSetOptions, i as AiCacheOptions, n as AiCacheEntry, o as cacheKey, r as AiCacheKind, s as createAiCache, t as AiCache } from "../../ai-cache-B94R1da7.js";
3
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
4
4
  /** The `ai-cache` block's manifest (ADR 0029). */
5
5
  export declare const aiCacheBlock: BlockOf<"ai-cache", typeof createAiCache>;
6
6
  export { type AiCache, type AiCacheEntry, type AiCacheKind, type AiCacheOptions, type AiCacheSetOptions, type BlockTransport, cacheKey, createAiCache, dbTransport, rpcTransport, sqlTransport };
@@ -2,12 +2,12 @@ import { b as DbError } from "../../result-DTOQRyGY.js";
2
2
  import { Ct as Events, g as AiToolEventData, m as AiChatEventData } from "../../events-DddDlibJ.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
4
4
  import { a as AiMessagePart, c as AiReasoningPart, d as AiTextPart, f as AiToolApprovalPart, g as isAiMessage, h as aiMessageSchema, i as AiMessage, l as AiSourcePart, m as AiToolResultPart, n as AiDataPart, o as AiMessagePartType, p as AiToolCallPart, r as AiFilePart, s as AiMessageRole, t as AI_MESSAGE_SCHEMA_ID, u as AiStepPart } from "../../message-Cc4bkdNw.js";
5
- import { $ as createHarnessSessions, A as AiRunStatus, B as SharedAiChat, C as AiModerationInput, D as AiProject, E as AiPendingInputRequest, F as AiStreamClaim, G as AiPendingApproval, H as AiHarnessSessionPatch, I as AiToolApproval, J as AiRunState, K as AiRun, L as AiToolApprovalRequest, M as AiShareLink, N as AiStoredMessage, O as AiProjectInput, P as AiStoredMessageStatus, Q as AiRuns, R as AiToolPolicy, S as AiModerationEvent, T as AiPendingInput, U as AiHarnessSessions, V as AiHarnessSession, W as AiHarnessStatus, X as AiRunStepInput, Y as AiRunStep, Z as AiRunStepStatus, _ as AiFeedback, a as createAiChat, b as AiModelInput, c as AiAssistantMessageOptions, d as AiChatPage, f as AiChatPatch, g as AiChatVisibility, h as AiChatShare, i as aiChatTopic, j as AiSaveResult, k as AiRunRelease, l as AiChatInput, m as AiChatRecord, n as AiChatOptions, o as AiAppendResult, p as AiChatQuery, q as AiRunQuery, r as aiChatListTopic, s as AiApprovalDecision, t as AiChat, v as AiMessageSibling, w as AiModerationStage, x as AiModerationAction, y as AiModel, z as AiUserMessageTrigger } from "../../ai-chat-BZhfCHHr.js";
6
- import { a as NewAiSandbox, i as AiSandboxes, n as AiSandboxStatus, r as AiSandboxStopper, t as AiSandbox } from "../../sandboxes-BF9RxxCU.js";
7
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
8
- import { p as SubscriptionStatus } from "../../topic-CekU96q7.js";
9
- import { n as TopicPort } from "../../watch-topic-DBw411Mq.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
5
+ import { $ as createHarnessSessions, A as AiRunStatus, B as SharedAiChat, C as AiModerationInput, D as AiProject, E as AiPendingInputRequest, F as AiStreamClaim, G as AiPendingApproval, H as AiHarnessSessionPatch, I as AiToolApproval, J as AiRunState, K as AiRun, L as AiToolApprovalRequest, M as AiShareLink, N as AiStoredMessage, O as AiProjectInput, P as AiStoredMessageStatus, Q as AiRuns, R as AiToolPolicy, S as AiModerationEvent, T as AiPendingInput, U as AiHarnessSessions, V as AiHarnessSession, W as AiHarnessStatus, X as AiRunStepInput, Y as AiRunStep, Z as AiRunStepStatus, _ as AiFeedback, a as createAiChat, b as AiModelInput, c as AiAssistantMessageOptions, d as AiChatPage, f as AiChatPatch, g as AiChatVisibility, h as AiChatShare, i as aiChatTopic, j as AiSaveResult, k as AiRunRelease, l as AiChatInput, m as AiChatRecord, n as AiChatOptions, o as AiAppendResult, p as AiChatQuery, q as AiRunQuery, r as aiChatListTopic, s as AiApprovalDecision, t as AiChat, v as AiMessageSibling, w as AiModerationStage, x as AiModerationAction, y as AiModel, z as AiUserMessageTrigger } from "../../ai-chat-rQ7Ftq9W.js";
6
+ import { a as NewAiSandbox, i as AiSandboxes, n as AiSandboxStatus, r as AiSandboxStopper, t as AiSandbox } from "../../sandboxes-DKgJZYUZ.js";
7
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
8
+ import { p as SubscriptionStatus } from "../../topic-CKN3kmoi.js";
9
+ import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
11
11
  import { StandardSchemaV1 } from "@standard-schema/spec";
12
12
  /**
13
13
  * The `type` of each part in the canonical AI message (version 1); the SQL
@@ -1,8 +1,8 @@
1
1
  import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
2
2
  import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
4
- import { _ as NewAiFile, a as AiDocumentWithContent, c as AiFileSource, d as AiFileUpload, f as AiFiles, g as NewAiDocument, h as AiSuggestion, i as AiDocumentVersion, l as AiFileStatus, m as AiProviderFile, n as AiDocumentEdit, o as AiFile, p as AiFilesOptions, r as AiDocumentKind, s as AiFileBucket, t as AiDocument, u as AiFileStorage, v as StoredAiFile } from "../../types-6PMaLIyw.js";
5
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
4
+ import { _ as NewAiFile, a as AiDocumentWithContent, c as AiFileSource, d as AiFileUpload, f as AiFiles, g as NewAiDocument, h as AiSuggestion, i as AiDocumentVersion, l as AiFileStatus, m as AiProviderFile, n as AiDocumentEdit, o as AiFile, p as AiFilesOptions, r as AiDocumentKind, s as AiFileBucket, t as AiDocument, u as AiFileStorage, v as StoredAiFile } from "../../types-DU_nNO7U.js";
5
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
6
6
  /** The URL a message stores for a file: `supabase-storage://{bucket}/{path}`. */
7
7
  export declare function aiFileUrl(file: Pick<AiFile, "bucket" | "path">): string;
8
8
  /** The bucket and path of a `supabase-storage://` URL, or `undefined`. */
@@ -1,7 +1,7 @@
1
1
  import { Ct as Events, h as AiProviderKeyEventData } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
- import { a as AiBatchItemStatus, c as AiKeys, d as AiProviderKeyInput, f as NewAiBatch, i as AiBatchItemInput, l as AiKeysOptions, n as AiBatchCounts, o as AiBatchPatch, p as ResolvedProviderKey, r as AiBatchItem, s as AiBatchStatus, t as AiBatch, u as AiProviderKey } from "../../types-BXLiM6VM.js";
4
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
3
+ import { a as AiBatchItemStatus, c as AiKeys, d as AiProviderKeyInput, f as NewAiBatch, i as AiBatchItemInput, l as AiKeysOptions, n as AiBatchCounts, o as AiBatchPatch, p as ResolvedProviderKey, r as AiBatchItem, s as AiBatchStatus, t as AiBatch, u as AiProviderKey } from "../../types-DCzgSAlU.js";
4
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
5
5
  /** Per-tenant provider keys and provider batch jobs. */
6
6
  export declare function createAiKeys(options: AiKeysOptions): AiKeys;
7
7
  /** The events of the `ai-keys` block: type to data. */
@@ -1,6 +1,6 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
2
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
3
- import { a as AiTaskOutcome, c as AiTaskRunner, i as AiTaskFields, l as NewAiTask, n as AiSchedulesOptions, o as AiTaskRun, r as AiTask, s as AiTaskRunStatus, t as AiSchedules, u as createAiSchedules } from "../../ai-schedules-ChJkI2jo.js";
2
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
3
+ import { a as AiTaskOutcome, c as AiTaskRunner, i as AiTaskFields, l as NewAiTask, n as AiSchedulesOptions, o as AiTaskRun, r as AiTask, s as AiTaskRunStatus, t as AiSchedules, u as createAiSchedules } from "../../ai-schedules-DIiPmFgn.js";
4
4
  /** The `ai-schedules` block's manifest (ADR 0029). */
5
5
  export declare const aiSchedulesBlock: BlockOf<"ai-schedules", typeof createAiSchedules, Record<never, never>, {
6
6
  readonly notifier: "optional";
@@ -4,13 +4,13 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { Ct as Events, _ as AnnouncementEventData } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
- import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
7
+ import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
8
8
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
10
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
- import { p as SubscriptionStatus } from "../../topic-CekU96q7.js";
12
- import { n as TopicPort } from "../../watch-topic-DBw411Mq.js";
13
- import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
9
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
10
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
11
+ import { p as SubscriptionStatus } from "../../topic-CKN3kmoi.js";
12
+ import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
13
+ import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
14
14
  type AnnouncementSeverity = "info" | "success" | "warning" | "critical";
15
15
  /**
16
16
  * Who sees it: everyone, members of some tenants, members with some roles, or
@@ -1,4 +1,4 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
2
- import { _ as createApiKeys, a as ApiKeyExtraClaims, c as ApiKeyState, d as CreateApiKeyInput, f as CreatedApiKey, g as apiKeyResolver, h as apiKeyClaims, i as ApiKeyExtraClaim, l as ApiKeys, m as apiKeyChecksum, n as ApiKeyCheck, o as ApiKeyReservedClaim, p as ParsedApiKey, r as ApiKeyClaimsOptions, s as ApiKeyResolverOptions, t as ApiKey, u as ApiKeysOptions, v as parseApiKey } from "../../api-keys-BncNDlWG.js";
3
- import { a as ApiKeyDraft, c as ApiKeysControllerOptions, d as ApiKeyAuth, f as ApiKeyContributions, i as ApiKeyChange, l as ApiKeysSnapshot, m as withApiKey, n as ApiKeysEvents, o as ApiKeysActions, p as WithApiKeyOptions, r as apiKeysEvents, s as ApiKeysController, t as apiKeysBlock, u as createApiKeysController } from "../../index-IrJQqPeQ.js";
2
+ import { _ as createApiKeys, a as ApiKeyExtraClaims, c as ApiKeyState, d as CreateApiKeyInput, f as CreatedApiKey, g as apiKeyResolver, h as apiKeyClaims, i as ApiKeyExtraClaim, l as ApiKeys, m as apiKeyChecksum, n as ApiKeyCheck, o as ApiKeyReservedClaim, p as ParsedApiKey, r as ApiKeyClaimsOptions, s as ApiKeyResolverOptions, t as ApiKey, u as ApiKeysOptions, v as parseApiKey } from "../../api-keys-U3JQ8IlM.js";
3
+ import { a as ApiKeyDraft, c as ApiKeysControllerOptions, d as ApiKeyAuth, f as ApiKeyContributions, i as ApiKeyChange, l as ApiKeysSnapshot, m as withApiKey, n as ApiKeysEvents, o as ApiKeysActions, p as WithApiKeyOptions, r as apiKeysEvents, s as ApiKeysController, t as apiKeysBlock, u as createApiKeysController } from "../../index-D-uiT4Qz.js";
4
4
  export { type ApiKey, type ApiKeyAuth, type ApiKeyChange, type ApiKeyCheck, type ApiKeyClaimsOptions, type ApiKeyContributions, type ApiKeyDraft, type ApiKeyExtraClaim, type ApiKeyExtraClaims, type ApiKeyReservedClaim, type ApiKeyResolverOptions, type ApiKeyState, type ApiKeys, type ApiKeysActions, type ApiKeysController, type ApiKeysControllerOptions, type ApiKeysEvents, type ApiKeysOptions, type ApiKeysSnapshot, type BlockTransport, type CreateApiKeyInput, type CreatedApiKey, type ParsedApiKey, type WithApiKeyOptions, apiKeyChecksum, apiKeyClaims, apiKeyResolver, apiKeysBlock, apiKeysEvents, createApiKeys, createApiKeysController, dbTransport, parseApiKey, rpcTransport, sqlTransport, withApiKey };
@@ -1,7 +1,7 @@
1
1
  import { A as CollaborationEventData, Ct as Events } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
4
- import { a as ApprovalPolicyInput, c as ApprovalRequestInput, d as ApprovalStep, f as ApprovalTenantPolicy, g as createApprovals, h as approvalFingerprint, i as ApprovalMode, l as ApprovalRequirement, m as ApprovalsOptions, n as ApprovalDecision, o as ApprovalRequest, p as Approvals, r as ApprovalListOptions, s as ApprovalRequestDetail, t as ApprovalApprovers, u as ApprovalStatus } from "../../approvals-CXW3yFWZ.js";
3
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
4
+ import { _ as approvalFingerprint, a as ApprovalMode, c as ApprovalRequestDetail, d as ApprovalStatus, f as ApprovalStep, g as ApprovalsOptions, h as Approvals, i as ApprovalListOptions, l as ApprovalRequestInput, m as ApprovalTenantPolicy, n as ApprovalDecideOptions, o as ApprovalPolicyInput, p as ApprovalStepInput, r as ApprovalDecision, s as ApprovalRequest, t as ApprovalApprovers, u as ApprovalRequirement, v as createApprovals } from "../../approvals-CTVaWq1O.js";
5
5
  /** `approval_policy.saved` and `approval_policy.removed`. */
6
6
  interface ApprovalPolicyEventData {
7
7
  readonly organizationId: string;
@@ -19,6 +19,7 @@ type ApprovalsEvents = {
19
19
  readonly "approval.expired": CollaborationEventData;
20
20
  readonly "approval.delegated": CollaborationEventData;
21
21
  readonly "approval.consumed": CollaborationEventData;
22
+ readonly "approval.escalated": CollaborationEventData;
22
23
  readonly "approval_policy.saved": ApprovalPolicyEventData;
23
24
  readonly "approval_policy.removed": ApprovalPolicyEventData;
24
25
  };
@@ -26,4 +27,4 @@ type ApprovalsEvents = {
26
27
  export declare const approvalsEvents: Events<ApprovalsEvents>;
27
28
  /** The `approvals` block's manifest (ADR 0029). */
28
29
  export declare const approvalsBlock: BlockOf<"approvals", typeof createApprovals, ApprovalsEvents>;
29
- export { type ApprovalApprovers, type ApprovalDecision, type ApprovalListOptions, type ApprovalMode, type ApprovalPolicyInput, type ApprovalRequest, type ApprovalRequestDetail, type ApprovalRequestInput, type ApprovalRequirement, type ApprovalStatus, type ApprovalStep, type ApprovalTenantPolicy, type Approvals, type ApprovalsEvents, type ApprovalsOptions, type BlockTransport, approvalFingerprint, createApprovals, dbTransport, rpcTransport, sqlTransport };
30
+ export { type ApprovalApprovers, type ApprovalDecideOptions, type ApprovalDecision, type ApprovalListOptions, type ApprovalMode, type ApprovalPolicyInput, type ApprovalRequest, type ApprovalRequestDetail, type ApprovalRequestInput, type ApprovalRequirement, type ApprovalStatus, type ApprovalStep, type ApprovalStepInput, type ApprovalTenantPolicy, type Approvals, type ApprovalsEvents, type ApprovalsOptions, type BlockTransport, approvalFingerprint, createApprovals, dbTransport, rpcTransport, sqlTransport };
@@ -1,8 +1,8 @@
1
- import { t as approvalsSqlOptions } from "../../options-Bgnm4pTD.js";
1
+ import { t as approvalsSqlOptions } from "../../options-CzxG2Phg.js";
2
2
  import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
3
3
  import { U as rpcTransport, V as dbTransport, W as sqlTransport } from "../../block-helpers-I7UzjNEf.js";
4
4
  import { n as defineBlock } from "../../define-block-22Jv4U_-.js";
5
- import { n as createApprovals, t as approvalFingerprint } from "../../approvals-D8gR1R8R.js";
5
+ import { n as createApprovals, t as approvalFingerprint } from "../../approvals-Qjn42OAZ.js";
6
6
  // src/blocks/approvals/events.ts
7
7
  /** The `approvals` block's event types, for its manifest and `onBlockEvent`. */
8
8
  const approvalsEvents = defineEvents({
@@ -13,6 +13,7 @@ const approvalsEvents = defineEvents({
13
13
  "approval.expired": event(),
14
14
  "approval.delegated": event(),
15
15
  "approval.consumed": event(),
16
+ "approval.escalated": event(),
16
17
  "approval_policy.saved": event(),
17
18
  "approval_policy.removed": event()
18
19
  });
@@ -3,11 +3,11 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
4
4
  import { Ct as Events } from "../../events-DddDlibJ.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
- import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
6
+ import { o as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
8
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
9
9
  import { t as AssetsSqlOptions } from "../../options-Bwrwb8do.js";
10
- import { c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
10
+ import { c as BlockOf, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
11
11
  interface AssetsOptions extends BlockTemporalOptions, BlockTenantOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**
@@ -3,11 +3,11 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { Ct as Events } from "../../events-DddDlibJ.js";
4
4
  import { p as AssignmentEventData } from "../../index-DjJUamhw.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
- import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
6
+ import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
8
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
9
9
  import { h as FilterQuery } from "../../filter-query-Xj40B5KT.js";
10
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DBD7yhQg.js";
11
11
  /** How a queue picks the next owner. */
12
12
  type AssignmentStrategy = "round_robin" | "weighted";
13
13
  /** A member in a queue's rotation. */
@@ -2,8 +2,8 @@ import { b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRy
2
2
  import { Ct as Events, ot as StorageObjectEventData, y as AttachmentEventData } from "../../events-DddDlibJ.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
4
4
  import { t as Author } from "../../block-authors-C5z3tGVu.js";
5
- import { At as NewAttachment, Ct as AttachmentScannerOptions, Dt as AttachmentVersion, Et as AttachmentUpload, Ft as ScannedObject, It as attachmentVersionOf, Lt as createAttachmentScanner, Mt as ObjectScanner, Nt as ObjectScannerOptions, Ot as Attachments, Pt as ScanVerdict, Rt as createAttachments, Sn as EntitySchema, St as AttachmentScanner, Tt as AttachmentStorage, _t as AttachmentDownload, bt as AttachmentReplacement, c as BlockOf, gt as AttachmentBucket, ht as Attachment, jt as ObjectScanJob, kt as AttachmentsOptions, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding, vt as AttachmentImageUrlOptions, wt as AttachmentStatus, xt as AttachmentScanJob, yt as AttachmentImages, zt as createObjectScanner } from "../../define-block-CDw9YGVh.js";
6
- import { n as Controller } from "../../controller-BQXgMwWN.js";
5
+ import { At as NewAttachment, Ct as AttachmentScannerOptions, Dt as AttachmentVersion, Et as AttachmentUpload, Ft as ScannedObject, It as attachmentVersionOf, Lt as createAttachmentScanner, Mt as ObjectScanner, Nt as ObjectScannerOptions, Ot as Attachments, Pt as ScanVerdict, Rt as createAttachments, Sn as EntitySchema, St as AttachmentScanner, Tt as AttachmentStorage, _t as AttachmentDownload, bt as AttachmentReplacement, c as BlockOf, gt as AttachmentBucket, ht as Attachment, jt as ObjectScanJob, kt as AttachmentsOptions, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding, vt as AttachmentImageUrlOptions, wt as AttachmentStatus, xt as AttachmentScanJob, yt as AttachmentImages, zt as createObjectScanner } from "../../define-block-DBD7yhQg.js";
6
+ import { n as Controller } from "../../controller-phhsPHSz.js";
7
7
  /** A pending write to a record's files, for `useOptimistic`. */
8
8
  type AttachmentsOptimisticAction = {
9
9
  readonly type: "add";
@@ -3,17 +3,17 @@ import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from ".
3
3
  import { O as AnyFunctions, dt as TableKey, k as AnyModels } from "../../types-BzIYSSWK.js";
4
4
  import { Ct as Events, b as AuditRevealEventData } from "../../events-DddDlibJ.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
- import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
6
+ import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
7
7
  import { n as SqlClient } from "../../executor-DoSNec_H.js";
8
8
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
9
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
10
10
  import { Yt as WhereInput, t as BetterSupabase } from "../../define-C_He1bQO.js";
11
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
12
12
  import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
13
13
  import { i as ListDefinition } from "../../list-query-BkbLV-Yc.js";
14
- import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
15
- import { a as UndoToken } from "../../undo-CdKp5_2X.js";
16
- import { n as AuditCategory } from "../../context-dHluCmud.js";
14
+ import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
15
+ import { a as UndoToken } from "../../undo-BCQMqIQN.js";
16
+ import { n as AuditCategory } from "../../context-tFoygone.js";
17
17
  interface PurgeAuditLogOptions extends BlockTemporalOptions {
18
18
  /**
19
19
  * How long entries are kept when `retention` has no answer. Defaults to `1
@@ -3,16 +3,16 @@ import { D as ValidationIssue, T as ErrorMapper, b as DbError, f as Result, t as
3
3
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
4
4
  import { Ct as Events } from "../../events-DddDlibJ.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
- import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
6
+ import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
8
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
9
9
  import { _ as FilterRule, d as FilterLimits, f as FilterNode, h as FilterQuery, i as FilterCombinator, m as FilterOperatorSpec, r as FilterClock } from "../../filter-query-Xj40B5KT.js";
10
- import { $t as createActionRegistry, Bt as Action, Gt as ActionInfo, Ht as ActionContext, Jt as ActionRegistry, Kt as ActionOrigin, L as NotifierInput, Qt as actionKey, Ut as ActionDescriptor, Vt as ActionCall, Wt as ActionHandler, Yt as ActionSpec, Zt as DefaultAutomation, c as BlockOf, en as defineAction, qt as ActionRef } from "../../define-block-CDw9YGVh.js";
11
- import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
12
- import { c as ApprovalRequestInput } from "../../approvals-CXW3yFWZ.js";
10
+ import { $t as createActionRegistry, Bt as Action, Gt as ActionInfo, Ht as ActionContext, Jt as ActionRegistry, Kt as ActionOrigin, L as NotifierInput, Qt as actionKey, Ut as ActionDescriptor, Vt as ActionCall, Wt as ActionHandler, Yt as ActionSpec, Zt as DefaultAutomation, c as BlockOf, en as defineAction, qt as ActionRef } from "../../define-block-DBD7yhQg.js";
11
+ import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
12
+ import { l as ApprovalRequestInput } from "../../approvals-CTVaWq1O.js";
13
13
  import { n as FilterRecordField, t as FilterEvaluation } from "../../filter-evaluate-Bkbb0nuQ.js";
14
14
  import { a as checkRuleConditions, c as ruleFilterFields, i as RuleFieldDefinition, n as RuleField, o as defineRuleFields, r as RuleFieldCatalog, s as ruleFilterFieldInfo, t as RULE_LIMITS } from "../../fields-CP46SPNE.js";
15
- import { a as ConversionRelations, i as ConversionRef, n as ConversionContext, o as ConversionSpec, r as ConversionOutcome, s as defineConversionAction, t as ConversionClients } from "../../conversion-CLBBITW5.js";
15
+ import { a as ConversionRelations, i as ConversionRef, n as ConversionContext, o as ConversionSpec, r as ConversionOutcome, s as defineConversionAction, t as ConversionClients } from "../../conversion-BShzA-u-.js";
16
16
  /** What a rule runs when it matches: an action reference (ADR 0046). */
17
17
  type RuleAction = ActionRef;
18
18
  interface Rule {
@@ -3,10 +3,10 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
4
4
  import { Ct as Events } from "../../events-DddDlibJ.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
- import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
6
+ import { o as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
9
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
8
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
9
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
10
10
  import { n as Money } from "../../money-BgpAd7d3.js";
11
11
  /** How `unbilled` and `invoice` turn entries into lines. */
12
12
  type BillableTimeGrouping = "subject" | "member" | "entry";
@@ -2,14 +2,14 @@
2
2
  import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { C as BillingEventData, Ct as Events, O as BlockEventType, o as EventHub } from "../../events-DddDlibJ.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
- import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
5
+ import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
6
6
  import { n as SqlClient } from "../../executor-DoSNec_H.js";
7
7
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
8
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
9
9
  import { n as StripeSource, r as StripeTaxId, t as StripeClient } from "../../stripe-Bl-sjnl6.js";
10
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
11
11
  import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
12
- import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
12
+ import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
13
13
  import { d as stripeInboxVerify, f as verifyStripeWebhook, u as signStripeWebhook } from "../../verify-Cpc1upDA.js";
14
14
  /** The events of the `billing` block: type to data. */
15
15
  type BillingEvents = {
@@ -1,9 +1,9 @@
1
1
  import { b as DbError } from "../../result-DTOQRyGY.js";
2
2
  import { Ct as Events, tt as SchedulingEventData } from "../../events-DddDlibJ.js";
3
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
4
- import { n as Controller } from "../../controller-BQXgMwWN.js";
3
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
4
+ import { n as Controller } from "../../controller-phhsPHSz.js";
5
5
  import { o as WeeklyHours } from "../../availability-CZlcrkqD.js";
6
- import { C as bookingSeriesOf, S as BookingWeekday, T as parseRecurrence, _ as BookedSeries, a as BookingExceptionInput, b as BookingSeriesScope, c as BookingResourceInput, d as BookingStatus, f as Bookings, g as createBookings, h as PublicBookingService, i as BookingDuration, l as BookingServiceInput, m as PlacedBooking, n as Booking, o as BookingExpirePayload, p as BookingsOptions, r as BookingCustomer, s as BookingRange, t as BOOKING_EXPIRE_QUEUE, u as BookingSlot, v as BookingRecurrence, w as formatRecurrence, x as BookingSeriesStatus, y as BookingSeries } from "../../bookings-Dj5cvXKv.js";
6
+ import { C as bookingSeriesOf, S as BookingWeekday, T as parseRecurrence, _ as BookedSeries, a as BookingExceptionInput, b as BookingSeriesScope, c as BookingResourceInput, d as BookingStatus, f as Bookings, g as createBookings, h as PublicBookingService, i as BookingDuration, l as BookingServiceInput, m as PlacedBooking, n as Booking, o as BookingExpirePayload, p as BookingsOptions, r as BookingCustomer, s as BookingRange, t as BOOKING_EXPIRE_QUEUE, u as BookingSlot, v as BookingRecurrence, w as formatRecurrence, x as BookingSeriesStatus, y as BookingSeries } from "../../bookings-CHUzFwOI.js";
7
7
  import { t as EventCalendarEvent } from "../../event-calendar-DPMcqy7Q.js";
8
8
  import { t as VisibleRange } from "../../range-BN3kpJAE.js";
9
9
  /** A booking row as `hold_booking`, `list_bookings` and the others return it. */
@@ -3,8 +3,8 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { $ as SaasEventData, Ct as Events } from "../../events-DddDlibJ.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
5
  import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
6
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
7
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
6
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
7
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
8
8
  /** The actions every install knows, when the block that owns each is installed. */
9
9
  type BuiltInBulkAction = "tags.set" | "stateMachine.transition" | "relations.link" | "trash.trash" | "collections.add" | "appTables.set";
10
10
  /** Arguments per built-in action; an app's own actions take any object. */
@@ -5,9 +5,9 @@ import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { Ct as Events, tt as SchedulingEventData } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
9
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
- import { n as Controller } from "../../controller-BQXgMwWN.js";
8
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
9
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DBD7yhQg.js";
10
+ import { n as Controller } from "../../controller-phhsPHSz.js";
11
11
  import { A as CalendarAlarmAction, C as IcsEvent, D as parseIcs, E as ToIcsOptions, O as toIcs, S as CalendarEventStatus, T as ParsedIcs, _ as expandOccurrences, a as FreeBusy, b as AttendeeRole, c as WorkingHoursInput, d as workingHoursOf, f as CalendarEvent, g as SplitRules, h as OccurrenceRange, i as CommonFreeTimeOptions, j as CalendarReminder, k as CalendarAlarm, l as commonFreeTime, m as OccurrenceOptions, n as CalendarEventKind, o as WeeklyHours, p as CalendarOccurrence, r as CalendarTransparency, s as WorkingHours, t as BusyRange, u as freeBusyOf, v as splitRule, w as IcsSource, x as CalendarAttendee, y as AttendeeResponse } from "../../availability-CZlcrkqD.js";
12
12
  import { a as fromEventCalendarUpdate, c as toEventCalendarResources, i as OccurrenceMove, n as EventCalendarOptions, o as seriesOf, r as EventCalendarResource, s as toEventCalendarEvents, t as EventCalendarEvent } from "../../event-calendar-DPMcqy7Q.js";
13
13
  import { t as VisibleRange } from "../../range-BN3kpJAE.js";
@@ -4,11 +4,11 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { Ct as Events, j as CommerceEventData } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
- import { i as CursorPageOptions, n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
7
+ import { i as CursorPageOptions, n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
9
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
10
10
  import { h as FilterQuery } from "../../filter-query-Xj40B5KT.js";
11
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DBD7yhQg.js";
12
12
  import { n as Money } from "../../money-BgpAd7d3.js";
13
13
  import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
14
14
  /**