better-supabase 0.40.0 → 0.42.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 (308) 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-DGgCgRwq.d.ts} +1 -1
  17. package/dist/{approvals-CXW3yFWZ.d.ts → approvals-CYbTzQ7v.d.ts} +112 -13
  18. package/dist/{approvals-D8gR1R8R.js → approvals-cyL5CmU7.js} +49 -19
  19. package/dist/{assistant-5heV2GeR.d.ts → assistant-B1p5mYaM.d.ts} +2 -2
  20. package/dist/{authorization-Ul_ApMYW.d.ts → authorization-CcvJbvr1.d.ts} +62 -8
  21. package/dist/{automations-D4QTP8nI.js → automations-CJhRmPmq.js} +3 -1
  22. package/dist/{bind-B2GlypM6.d.ts → bind-B71jMEGG.d.ts} +4 -4
  23. package/dist/{block-env-Bcr-jEA1.d.ts → block-env-DzYTC9d1.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-a_ECM9o0.js} +1 -1
  27. package/dist/{block-tables-nkIjJ1ly.d.ts → block-tables-B92SBFqM.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 +5 -3
  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 +21 -8
  89. package/dist/blocks/invoices/index.js +20 -10
  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 +3 -2
  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-BbhRYaFe.js +1 -0
  162. package/dist/cli/{add-BVs8Ym-K.js → add-NosuEQn1.js} +10 -10
  163. package/dist/cli/{add-DP1ct-7e.js → add-U0pyhIyx.js} +2 -2
  164. package/dist/cli/{app-table-files-gjMyFqH4.js → app-table-files-DUi898lB.js} +2 -2
  165. package/dist/cli/{app-tables-B26PHK75.js → app-tables-BINtREbx.js} +2 -2
  166. package/dist/cli/{backfill-CP_LpTK2.js → backfill-VfqI5GqN.js} +1 -1
  167. package/dist/cli/bin.js +1 -1
  168. package/dist/cli/{blocks-Ewp49Kbm.js → blocks-Bo2Lw2UO.js} +1 -1
  169. package/dist/cli/{blocks-CpBLp57s.js → blocks-DsEaPf6J.js} +1 -1
  170. package/dist/cli/{cache-BxxtUXVN.js → cache-CNJD8OdR.js} +1 -1
  171. package/dist/cli/{codemod-CGCxMEyD.js → codemod-BWa3Bte6.js} +1 -1
  172. package/dist/cli/{content-mapper-DngBJv4r.js → content-mapper-Dl50Ny6a.js} +2 -2
  173. package/dist/cli/{doctor-3dcMraMn.js → doctor-B9GtOGSa.js} +15 -15
  174. package/dist/cli/{gen-DrXxFwUU.js → gen-CIUD1sgB.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-wl5jk5vX.js} +8 -8
  178. package/dist/cli/{live-CHTbAqdS.js → live-B0f_X3rI.js} +2 -2
  179. package/dist/cli/{mcp-BbmhntrR.js → mcp-CZWaBkXY.js} +2 -2
  180. package/dist/cli/{metadata-BS56R_eb.js → metadata-Bi5eQP4w.js} +3 -3
  181. package/dist/cli/{migrate-DV6a9-jI.js → migrate-DMITLPEu.js} +1 -1
  182. package/dist/cli/{migration-safety-Ce9IQwmJ.js → migration-safety-2n8e8njJ.js} +1 -1
  183. package/dist/cli/{migrations-CCCnMhmM.js → migrations-C5k9hNOo.js} +2 -2
  184. package/dist/cli/{module-migration-C0cAzpNa.js → module-migration-BFchEhAJ.js} +2 -2
  185. package/dist/cli/{powersync-OIIpG-y_.js → powersync-DViexv6m.js} +3 -3
  186. package/dist/cli/powersync-i7KJcTtM.js +1 -0
  187. package/dist/cli/{print-BGF3d6O2.js → print-ChX1vQhO.js} +2 -2
  188. package/dist/cli/{providers-fEzlYSLs.js → providers-lwK2lplZ.js} +1 -1
  189. package/dist/cli/{prune-workflows-Bx7J5T3a.js → prune-workflows-DO3nRZFF.js} +1 -1
  190. package/dist/cli/{remove-Ds4N6WvD.js → remove-WB9dFyNn.js} +5 -5
  191. package/dist/cli/{render-BeZToAp-.js → render-B0MMWWZE.js} +3 -3
  192. package/dist/cli/{run-iUmtksq5.js → run-CMvwtBX9.js} +27 -27
  193. package/dist/cli/{run-DR0sTyNQ.js → run-CmJbNG2-.js} +9 -9
  194. package/dist/cli/{shared-BCWYvKeR.js → shared-BL5kcRdz.js} +1 -1
  195. package/dist/cli/{snapshot-CfgRxTQq.js → snapshot-CVB9Ri2a.js} +2 -2
  196. package/dist/cli/{source-Ct3ZCy6p.js → source-COGgsYiV.js} +1 -1
  197. package/dist/cli/{spec-1eEq2P4T.js → spec-002zD_9Z.js} +1 -1
  198. package/dist/cli/{spec-9vb-or-k.js → spec-CH6Qd2LE.js} +2 -2
  199. package/dist/cli/{sql-layout-cYsnyjRf.js → sql-layout-jZOzCj-S.js} +2 -2
  200. package/dist/cli/{sync-XpcpINnx.js → sync-I4x-1aVx.js} +4 -4
  201. package/dist/cli/{upgrade-A18FY5Iy.js → upgrade-BRp5AxAY.js} +2 -2
  202. package/dist/cli/{upgrade-DXhyb2jV.js → upgrade-C60BZggI.js} +5 -5
  203. package/dist/cli/{version-PcwPOm4G.js → version-CRCAxS2s.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-qqAfS_1_.js → config-2SwAe0Im.js} +3 -3
  209. package/dist/{config-BRGMUEE2.js → config-BND2PFGs.js} +1 -1
  210. package/dist/{connectors-DDsdz-cn.d.ts → connectors-OMJkoAP6.d.ts} +2 -2
  211. package/dist/{context-dHluCmud.d.ts → context-DXWyPNzr.d.ts} +4 -2
  212. package/dist/contract/index.d.ts +4 -4
  213. package/dist/{controller-BQXgMwWN.d.ts → controller-D3MPVovD.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-CljrSoWD.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-C4NOUBpu.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-DhcLJAtX.d.ts → index-Bjj-GNhd.d.ts} +1 -1
  234. package/dist/{index-y70eTezB.d.ts → index-BrGOE0c2.d.ts} +2 -2
  235. package/dist/{index-g_eFnFqo.d.ts → index-CUxdZYSi.d.ts} +2 -2
  236. package/dist/{index-xmb6YGTg.d.ts → index-D5qW2cRD.d.ts} +2 -2
  237. package/dist/{index-CpZ4WDDJ.d.ts → index-DWVDKVYA.d.ts} +1 -1
  238. package/dist/{index-IrJQqPeQ.d.ts → index-DhHtsi-q.d.ts} +3 -3
  239. package/dist/{index-BKz-E3Mv.d.ts → index-DmSDAFkF.d.ts} +8 -8
  240. package/dist/{instances-DqEZrffE.js → instances-DwrdFwKq.js} +10 -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-DFmuxaxW.d.ts} +1 -1
  247. package/dist/{options-zsLpIqBA.js → options-B1oSaIZ4.js} +2 -1
  248. package/dist/{options-CYZH9uxU.js → options-BXiUftgG.js} +3 -1
  249. package/dist/{options-Bgnm4pTD.js → options-DLJTiX29.js} +6 -1
  250. package/dist/otel/index.js +4 -4
  251. package/dist/{outbox-DikdzUKf.d.ts → outbox-Cpxpzcue.d.ts} +2 -2
  252. package/dist/{permissions-COamTJYz.d.ts → permissions-Bsd4mEEZ.d.ts} +1 -1
  253. package/dist/{ports-1M1E_r2n.d.ts → ports-BKdt_9Oe.d.ts} +1 -1
  254. package/dist/powersync/index.d.ts +2 -2
  255. package/dist/preset/index.d.ts +3 -3
  256. package/dist/preset/index.js +3 -3
  257. package/dist/{preset-Byz43PrL.js → preset-CenE7f1G.js} +2 -2
  258. package/dist/{project-Y2wW_nr_.js → project-Ceh2yTSv.js} +5 -5
  259. package/dist/{push-token-DKImhAca.d.ts → push-token-DRcEl9Ce.d.ts} +1 -1
  260. package/dist/query/index.d.ts +1 -1
  261. package/dist/react/index.d.ts +5 -5
  262. package/dist/react/native/index.d.ts +1 -1
  263. package/dist/react/server.d.ts +5 -5
  264. package/dist/realtime/index.d.ts +3 -3
  265. package/dist/{record-form-C-gIxGXe.d.ts → record-form-C-1TPtMG.d.ts} +1 -1
  266. package/dist/{recordings-Bw5LoocX.d.ts → recordings-BVuri85k.d.ts} +1 -1
  267. package/dist/records/index.d.ts +8 -8
  268. package/dist/{sandboxes-BF9RxxCU.d.ts → sandboxes-DKgJZYUZ.d.ts} +1 -1
  269. package/dist/{scores-Ce8MxQX9.d.ts → scores-BXuSVczw.d.ts} +2 -2
  270. package/dist/server/index.d.ts +4 -4
  271. package/dist/{signers-Dw9DBZjJ.d.ts → signers-UANxMfH-.d.ts} +2 -2
  272. package/dist/{signing-keys-FglIQ6iL.d.ts → signing-keys-DhBSWFy_.d.ts} +2 -2
  273. package/dist/solid/index.d.ts +5 -5
  274. package/dist/sql/index.d.ts +5 -5
  275. package/dist/sql/index.js +3 -3
  276. package/dist/{sql-B1FA8jTx.js → sql-BIniB45X.js} +1558 -502
  277. package/dist/{sso-B7w7h8RJ.d.ts → sso-Frh3sbJ1.d.ts} +2 -2
  278. package/dist/ssr/index.d.ts +1 -1
  279. package/dist/{subjects-CVjAE7nz.d.ts → subjects-DNFE2rMl.d.ts} +2 -2
  280. package/dist/svelte/index.d.ts +5 -5
  281. package/dist/{tenant-DflHpV32.d.ts → tenant--Hm8mlPy.d.ts} +1 -1
  282. package/dist/testing/index.d.ts +13 -13
  283. package/dist/testing/index.js +1 -1
  284. package/dist/{timeline-c6I3uxya.d.ts → timeline-BB9fKT_r.d.ts} +2 -2
  285. package/dist/{topic-CekU96q7.d.ts → topic-BYF-GTW9.d.ts} +1 -1
  286. package/dist/{types-B42S7qfO.d.ts → types-B8h0reJ4.d.ts} +2 -2
  287. package/dist/{types-DtiDatvu.d.ts → types-D--4dv5K.d.ts} +3 -3
  288. package/dist/{types-BXLiM6VM.d.ts → types-DCzgSAlU.d.ts} +2 -2
  289. package/dist/{types-6PMaLIyw.d.ts → types-DU_nNO7U.d.ts} +2 -2
  290. package/dist/{types-BdhE7I8Z.d.ts → types-LLCyr-xs.d.ts} +2 -2
  291. package/dist/{types-D5uf0l4_.d.ts → types-kq8S5HVE.d.ts} +1 -1
  292. package/dist/{types-C7K8mu9B.d.ts → types-z31g0-5T.d.ts} +3 -3
  293. package/dist/{undo-CdKp5_2X.d.ts → undo-BCQMqIQN.d.ts} +1 -1
  294. package/dist/{usage-DZ8j5Tm_.d.ts → usage-CJDj5j15.d.ts} +3 -3
  295. package/dist/vercel-sandbox/index.d.ts +1 -1
  296. package/dist/vue/index.d.ts +5 -5
  297. package/dist/{watch-topic-DBw411Mq.d.ts → watch-topic-tfTxgEGc.d.ts} +1 -1
  298. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  299. package/dist/workflow-sdk/index.d.ts +1 -1
  300. package/dist/workflow-sdk/world/index.js +1 -1
  301. package/dist/{workflow-sdk-6psRpDIo.js → workflow-sdk-Bps7tpOv.js} +26 -1
  302. package/dist/{workflow-sdk-CUt0E4v6.d.ts → workflow-sdk-DzKQo265.d.ts} +2 -2
  303. package/dist/{workflows-BI4yKqFh.d.ts → workflows-D7HvWeNu.d.ts} +2 -2
  304. package/dist/yjs/index.d.ts +2 -2
  305. package/package.json +1 -1
  306. package/schemas/config-v1.json +42 -1
  307. package/dist/cli/add-DrwQvDYD.js +0 -1
  308. package/dist/cli/powersync-Cxd3a_v_.js +0 -1
@@ -3,14 +3,14 @@ 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 { n as passesSqlOptions, t as PassesSqlOptions } from "../../options-B5A3UmKY.js";
10
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
11
- import { n as Booking } from "../../bookings-Dj5cvXKv.js";
10
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
11
+ import { n as Booking } from "../../bookings-CHUzFwOI.js";
12
12
  import { n as Jwks } from "../../jws-CxgTsbgG.js";
13
- import { o as Signer } from "../../signing-keys-FglIQ6iL.js";
13
+ import { o as Signer } from "../../signing-keys-DhBSWFy_.js";
14
14
  /** The `typ` header of a pass token: `vnd.pass+jwt`. */
15
15
  export declare const PASS_TOKEN_TYPE: string;
16
16
  type PassStatus = "active" | "revoked";
@@ -1,12 +1,12 @@
1
1
  import { b as DbError, t as AsyncResult } from "../../result-DTOQRyGY.js";
2
2
  import { Xt as AuthorizationRequest, en as Authorizer } from "../../types-BzIYSSWK.js";
3
3
  import { n as Logger } from "../../logger-0LfhvwE4.js";
4
- import { n as BlockOptions, o as BlockTenant } from "../../block-helpers-BNtM1tqy.js";
4
+ import { n as BlockOptions, s as BlockTenant } from "../../block-helpers-Sj-efEhC.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, 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";
8
- import { B as PermissionFlags, H as can, U as permissionFlags, V as PermissionSet, W as permissionMatches } from "../../index-DAS_5OfK.js";
9
- import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
6
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
7
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
8
+ import { B as PermissionFlags, H as can, U as permissionFlags, V as PermissionSet, W as permissionMatches } from "../../index-1_-lg9Gc.js";
9
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
10
10
  interface PermissionsOptions extends BlockOptions {
11
11
  /** `withBlockHooks` hooks around the client's methods. */
12
12
  readonly hooks?: BlockHooks<Permissions>;
@@ -5,10 +5,10 @@ import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { Ct as Events } from "../../events-DddDlibJ.js";
6
6
  import { M as PipelineStageEventData, j as PipelineEventData } 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 { c as BlockOf } from "../../define-block-CDw9YGVh.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 { 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
  /** The fixed outcome every stage category maps to. */
@@ -4,11 +4,11 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { Ct as Events } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
- import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
7
+ import { 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 { n as postsSqlOptions, t as PostsSqlOptions } from "../../options-uUGi0Phf.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
  declare const BOARD_KINDS: readonly ["forum", "feedback"];
13
13
  declare const POST_STATUSES: readonly ["open", "under_review", "planned", "in_progress", "done", "closed"];
14
14
  declare const MODERATION: readonly ["visible", "pending", "hidden", "removed"];
@@ -2,10 +2,10 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
2
2
  import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
3
3
  import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
- import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
5
+ import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
6
6
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
7
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
8
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
7
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
8
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
9
9
  interface ProfilesOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
10
10
  readonly transport: BlockTransport;
11
11
  /**
@@ -4,10 +4,10 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { i as RowFields, 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 { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
7
+ import { 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";
10
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
10
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
11
11
  import { n as Money } from "../../money-BgpAd7d3.js";
12
12
  import { g as PROMOTION_KINDS } from "../../codecs-DaP45ETv.js";
13
13
  type PromotionKind = (typeof PROMOTION_KINDS)[number];
@@ -5,12 +5,12 @@ import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { It as RequestContext } from "../../types-BzIYSSWK.js";
6
6
  import { Ct as Events, Q as PushDeviceEventData, o as EventHub } from "../../events-DddDlibJ.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, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
11
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
11
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
12
12
  import { n as NotificationMessage, t as NotificationChannel } from "../../channel-B_kufDZy.js";
13
- import { t as ExpoNotificationsLike } from "../../push-token-DKImhAca.js";
13
+ import { t as ExpoNotificationsLike } from "../../push-token-DRcEl9Ce.js";
14
14
  type PushPlatform = "ios" | "android" | "web";
15
15
  type PushProvider = "expo" | "fcm" | "apns" | "webpush";
16
16
  /**
@@ -3,13 +3,13 @@ import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from ".
3
3
  import { t as StandardSchemaV1$1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
- import { n as BlockOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
6
+ import { n as BlockOptions, 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";
10
- import { A as ScheduleInfo, B as QueueStats, C as QueueSchemas, D as ScheduleDefinition, E as RunSchedulesOptions, F as QueueMessageBody, H as pgmqPublicBackend, I as QueueMessageRow, L as QueueProvider, M as WorkOptions, N as DeadJobRow, O as ScheduleDefinitions, P as DueSchedule, R as QueuePurgeArgs, S as QueueOptions, T as RunJobOptions, U as sqlQueueProvider, V as TransportQueueProviderOptions, W as transportQueueProvider, _ as JobHandler, a as DrainResult, b as PurgeJobsOptions, c as EnqueueOnceOptions, d as EnsureSchedulesOptions, f as EnsureSchedulesResult, g as JobDelivery, h as JobContext, i as DrainOptions, j as ScheduleOptions, k as ScheduleFilter, l as EnqueueOnceResult, m as Job, n as DeadJob, o as DrainRouteOptions, p as FailOptions, r as DrainMonitor, s as DrainRouteResult, t as ClaimOptions, u as EnqueueOptions, v as ListDeadOptions, w as RetryDeadOptions, x as Queue, y as PayloadOut, z as QueueRpcClient } from "../../types-BdhE7I8Z.js";
9
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
10
+ import { A as ScheduleInfo, B as QueueStats, C as QueueSchemas, D as ScheduleDefinition, E as RunSchedulesOptions, F as QueueMessageBody, H as pgmqPublicBackend, I as QueueMessageRow, L as QueueProvider, M as WorkOptions, N as DeadJobRow, O as ScheduleDefinitions, P as DueSchedule, R as QueuePurgeArgs, S as QueueOptions, T as RunJobOptions, U as sqlQueueProvider, V as TransportQueueProviderOptions, W as transportQueueProvider, _ as JobHandler, a as DrainResult, b as PurgeJobsOptions, c as EnqueueOnceOptions, d as EnsureSchedulesOptions, f as EnsureSchedulesResult, g as JobDelivery, h as JobContext, i as DrainOptions, j as ScheduleOptions, k as ScheduleFilter, l as EnqueueOnceResult, m as Job, n as DeadJob, o as DrainRouteOptions, p as FailOptions, r as DrainMonitor, s as DrainRouteResult, t as ClaimOptions, u as EnqueueOptions, v as ListDeadOptions, w as RetryDeadOptions, x as Queue, y as PayloadOut, z as QueueRpcClient } from "../../types-LLCyr-xs.js";
11
11
  import { a as ProblemFormat, t as BlockProblemOptions } from "../../problem-NGBjN-TO.js";
12
- import { Xt as BlockSchedule, c as BlockOf } from "../../define-block-CDw9YGVh.js";
12
+ import { Xt as BlockSchedule, c as BlockOf } from "../../define-block-DBD7yhQg.js";
13
13
  import { StandardSchemaV1 } from "@standard-schema/spec";
14
14
  /**
15
15
  * Throws a `TypeError` unless `expression` is a schedule `nextCronRun`
@@ -6,10 +6,10 @@ import { et as RecordRef } from "../../types-BzIYSSWK.js";
6
6
  import { Ct as Events } from "../../events-DddDlibJ.js";
7
7
  import { N as QuoteEventData } from "../../index-DjJUamhw.js";
8
8
  import { n as Logger } from "../../logger-0LfhvwE4.js";
9
- import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
9
+ import { a as TransitionActor, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
10
10
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
11
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
12
- import { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
12
+ import { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-DBD7yhQg.js";
13
13
  import { n as Money } from "../../money-BgpAd7d3.js";
14
14
  import { i as Totals, n as Line, r as LineInput, t as CatalogLineInput } from "../../sales-lines-wQHuL-pa.js";
15
15
  type QuoteStatus = "draft" | "sent" | "viewed" | "accepted" | "rejected" | "changes_requested" | "expired" | "withdrawn";
@@ -23,6 +23,13 @@ interface QuoteLine extends Line {
23
23
  /** An optional line counts only while `selected`. */
24
24
  readonly optional: boolean;
25
25
  readonly selected: boolean;
26
+ /** The periods a subscription line runs; its amount counts each. */
27
+ readonly periods?: number;
28
+ /**
29
+ * The line's id in the latest published version (`options.versionLines`); a
30
+ * decision's `selected` may name it.
31
+ */
32
+ readonly versionLineId?: string;
26
33
  }
27
34
  /** The totals of one tax rate (and tax code), after the document discount. */
28
35
  interface QuoteTaxLine {
@@ -44,7 +51,15 @@ interface QuotePricing {
44
51
  readonly discountAmount: Money;
45
52
  /** The deposit asked on acceptance, in basis points of the total. */
46
53
  readonly depositBps?: number;
47
- /** `depositBps` of the total, in minor units of the quote's currency. */
54
+ /** A fixed deposit instead of `depositBps`, at most the total. */
55
+ readonly depositAmount?: Money;
56
+ /**
57
+ * The customer pays the deposit before accepting: their own answer is refused
58
+ * with `QUOTE_DEPOSIT_REQUIRED`, and the app records the acceptance with
59
+ * `decide` once it is paid.
60
+ */
61
+ readonly depositRequired: boolean;
62
+ /** The deposit, in minor units of the quote's currency. */
48
63
  readonly depositDue: Money;
49
64
  }
50
65
  /** A quote. `F` types the extra columns the `fields` schema describes. */
@@ -78,6 +93,11 @@ interface Quote<F extends object = Record<never, never>> {
78
93
  /** The customer's IP address and user agent, when they answered. */
79
94
  readonly decidedIp?: string;
80
95
  readonly decidedUserAgent?: string;
96
+ /**
97
+ * With `options.workingCopy`, whether staff changed the quote since it was
98
+ * last published.
99
+ */
100
+ readonly unpublishedChanges?: boolean;
81
101
  readonly pricing: QuotePricing;
82
102
  readonly lines: readonly QuoteLine[];
83
103
  readonly taxLines: readonly QuoteTaxLine[];
@@ -102,6 +122,10 @@ interface QuoteInput<F extends object = Record<never, never>> {
102
122
  /** In the quote's currency. */
103
123
  readonly discountAmount?: Money;
104
124
  readonly depositBps?: number | null;
125
+ /** A fixed deposit in the quote's currency, instead of `depositBps`. */
126
+ readonly depositAmount?: Money | null;
127
+ /** The customer pays the deposit before accepting. */
128
+ readonly depositRequired?: boolean;
105
129
  /**
106
130
  * Values for the app's extra columns (`options.extraColumns`); left out keeps
107
131
  * the stored ones.
@@ -126,10 +150,11 @@ interface QuoteAnswer {
126
150
  readonly name: string;
127
151
  readonly note?: string;
128
152
  /**
129
- * On acceptance, the positions of the optional lines the customer takes; the
130
- * others drop out of the totals. Left out keeps the current choice.
153
+ * On acceptance, the positions of the optional lines the customer takes, or
154
+ * their `versionLineId`s; the others drop out of the totals. Left out keeps
155
+ * the current choice.
131
156
  */
132
- readonly selected?: readonly number[];
157
+ readonly selected?: readonly (number | string)[];
133
158
  }
134
159
  /** What a customer's answer did. */
135
160
  interface QuoteResponse {
@@ -161,7 +186,13 @@ type QuoteLineInput = (LineInput | CatalogLineInput) & {
161
186
  readonly optional?: boolean;
162
187
  /** Defaults to `true` for a required line and `false` for an optional one. */
163
188
  readonly selected?: boolean;
189
+ /** The periods a subscription line runs; default 1. */
190
+ readonly periods?: number;
164
191
  };
192
+ /** Who acted, for the state machine's history. */
193
+ interface QuoteActorOptions {
194
+ readonly actor?: TransitionActor;
195
+ }
165
196
  interface Quotes<F extends object = Record<never, never>> {
166
197
  create(organizationId: string, input: QuoteInput<F> & {
167
198
  readonly title: string;
@@ -170,21 +201,34 @@ interface Quotes<F extends object = Record<never, never>> {
170
201
  update(quoteId: string, input: QuoteInput<F>): AsyncResult<Quote<F>>;
171
202
  setLines(quoteId: string, lines: readonly QuoteLineInput[]): AsyncResult<Totals>;
172
203
  /** Sends it: resolves to the quote and the link token, returned only now. */
173
- send(quoteId: string): AsyncResult<{
204
+ send(quoteId: string, options?: QuoteActorOptions): AsyncResult<{
174
205
  readonly quote: Quote<F>;
175
206
  readonly token: string;
176
207
  }>;
177
- /** Records the customer's answer taken another way, with their name. */
208
+ /**
209
+ * With `options.workingCopy`, publishes the working copy of a quote that
210
+ * already has a link as its next revision, on the same link.
211
+ */
212
+ publish(quoteId: string, options?: QuoteActorOptions): AsyncResult<Quote<F>>;
213
+ /**
214
+ * Records the customer's answer taken another way, with their name. With
215
+ * `actor`, the app's own portal took it: the customer's details are kept with
216
+ * the answer, and a quote past its date expires instead.
217
+ */
178
218
  decide(quoteId: string, decision: QuoteDecision, options?: {
179
219
  readonly note?: string;
180
220
  readonly by?: string;
181
- readonly selected?: readonly number[];
221
+ readonly selected?: readonly (number | string)[];
222
+ readonly actor?: TransitionActor;
182
223
  }): AsyncResult<Quote<F>>;
183
224
  /**
184
225
  * Back to draft for changes, as the next revision. The sent revision stays
185
- * published in `versions`; an accepted quote can't be revised.
226
+ * published in `versions`; an accepted quote can't be revised. With
227
+ * `options.workingCopy` the link stays.
186
228
  */
187
- revise(quoteId: string): AsyncResult<Quote<F>>;
229
+ revise(quoteId: string, options?: QuoteActorOptions): AsyncResult<Quote<F>>;
230
+ /** Takes back a sent quote the customer hasn't accepted. */
231
+ withdraw(quoteId: string, options?: QuoteActorOptions): AsyncResult<Quote<F>>;
188
232
  /** The revisions sent so far, oldest first. */
189
233
  versions(quoteId: string): AsyncResult<readonly QuoteVersionSummary[]>;
190
234
  /** The quote as it was sent at `revision`. */
@@ -238,6 +282,7 @@ type QuotesEvents = {
238
282
  readonly "quote.changes_requested": QuoteEventData;
239
283
  readonly "quote.expired": QuoteEventData;
240
284
  readonly "quote.revised": QuoteEventData;
285
+ readonly "quote.withdrawn": QuoteEventData;
241
286
  };
242
287
  /** The `quotes` block's event types, for its manifest and `onBlockEvent`. */
243
288
  export declare const quotesEvents: Events<QuotesEvents>;
@@ -1,6 +1,6 @@
1
1
  import { n as isRecord } from "../../guards-CsRa6v57.js";
2
2
  import { t as AsyncResult } from "../../result-8xza7w5W.js";
3
- import { n as QUOTE_TO_ORDER, r as quotesSqlOptions, t as QUOTES_AUTOMATIONS } from "../../automations-D4QTP8nI.js";
3
+ import { n as QUOTE_TO_ORDER, r as quotesSqlOptions, t as QUOTES_AUTOMATIONS } from "../../automations-CJhRmPmq.js";
4
4
  import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
5
5
  import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, a as bigintOf, d as enumOrThrow, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
6
6
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
@@ -51,7 +51,10 @@ const KNOWN = /* @__PURE__ */ new Set([
51
51
  "discount_bps",
52
52
  "discount_amount",
53
53
  "deposit_bps",
54
+ "deposit_amount",
55
+ "deposit_required",
54
56
  "deposit_due",
57
+ "unpublished_changes",
55
58
  "created_by",
56
59
  "created_at",
57
60
  "updated_at",
@@ -75,7 +78,9 @@ function quoteLineOf(value, currency) {
75
78
  position: Number(row["position"] ?? 0),
76
79
  section: optionalText(row["section"]),
77
80
  optional,
78
- selected: typeof row["selected"] === "boolean" ? row["selected"] : !optional
81
+ selected: typeof row["selected"] === "boolean" ? row["selected"] : !optional,
82
+ periods: typeof row["periods"] === "number" && row["periods"] !== 1 ? row["periods"] : void 0,
83
+ versionLineId: optionalText(row["versionLineId"])
79
84
  });
80
85
  }
81
86
  function taxLineOf(value, currency) {
@@ -94,11 +99,14 @@ function taxLineOf(value, currency) {
94
99
  function pricingOf(row, currency, camel) {
95
100
  const key = (snake, camelKey) => camel ? row[camelKey] : row[snake];
96
101
  const depositBps = key("deposit_bps", "depositBps");
102
+ const depositAmount = key("deposit_amount", "depositAmount");
97
103
  return compact({
98
104
  pricesIncludeTax: key("prices_include_tax", "pricesIncludeTax") === true,
99
105
  discountBps: Number(key("discount_bps", "discountBps") ?? 0),
100
106
  discountAmount: moneyOf(key("discount_amount", "discountAmount") ?? "0", currency, "quote discountAmount"),
101
107
  depositBps: depositBps === null || depositBps === void 0 ? void 0 : Number(depositBps),
108
+ depositAmount: depositAmount === null || depositAmount === void 0 ? void 0 : moneyOf(depositAmount, currency, "quote depositAmount"),
109
+ depositRequired: key("deposit_required", "depositRequired") === true,
102
110
  depositDue: moneyOf(key("deposit_due", "depositDue") ?? "0", currency, "quote depositDue")
103
111
  });
104
112
  }
@@ -146,6 +154,7 @@ function quoteOf(value) {
146
154
  decidedUserId: optionalText(row["decided_user_id"]),
147
155
  decidedIp: optionalText(row["decided_ip"]),
148
156
  decidedUserAgent: optionalText(row["decided_user_agent"]),
157
+ unpublishedChanges: typeof row["unpublished_changes"] === "boolean" ? row["unpublished_changes"] : void 0,
149
158
  pricing: pricingOf(row, currency, false),
150
159
  lines: recordsOf(row["lines"], "quote lines").map((line) => quoteLineOf(line, currency)),
151
160
  taxLines: recordsOf(row["taxLines"] ?? [], "quote tax lines").map((line) => taxLineOf(line, currency)),
@@ -174,6 +183,8 @@ function publicOf(value) {
174
183
  taxLines: recordsOf(row["taxLines"] ?? [], "quote tax lines").map((line) => taxLineOf(line, currency))
175
184
  });
176
185
  }
186
+ /** The `actor` argument of a call, when one is given. */
187
+ const actorArg = (options) => options.actor === void 0 ? {} : { actor: options.actor };
177
188
  /**
178
189
  * The quotes block: quotes with lines, sections and optional lines, document
179
190
  * discounts and tax-inclusive prices, published versions, a public link and a
@@ -185,10 +196,11 @@ function createQuotes(options) {
185
196
  const fields = blockFields(options.fields, "quote fields");
186
197
  const quote = (fn, args, then) => call(fn, args, then).andThen((row) => readFields(fields, row));
187
198
  const attrsOf = (input, checked) => {
188
- const { fields: _fields, discountAmount, ...rest } = input;
199
+ const { fields: _fields, discountAmount, depositAmount, ...rest } = input;
189
200
  return {
190
201
  ...attrsArg(rest),
191
202
  ...discountAmount === void 0 ? {} : { discountAmount: amountText(discountAmount) },
203
+ ...depositAmount === void 0 ? {} : { depositAmount: depositAmount === null ? null : amountText(depositAmount) },
192
204
  ...checked === void 0 ? {} : { fields: checked }
193
205
  };
194
206
  };
@@ -219,21 +231,36 @@ function createQuotes(options) {
219
231
  lines: lines.map(lineArg)
220
232
  }, (value) => totalsOf(recordOf(value, "set_quote_lines"), true)) : AsyncResult.err(invalid);
221
233
  },
222
- send: (quoteId) => call("send_quote", { quote: quoteId }, (value) => ({
234
+ send: (quoteId, sendOptions = {}) => call("send_quote", {
235
+ quote: quoteId,
236
+ ...actorArg(sendOptions)
237
+ }, (value) => ({
223
238
  quote: quoteOf(value),
224
239
  token: textOf(recordOf(value, "send_quote")["token"])
225
240
  })).andThen((sent) => readFields(fields, sent.quote).map((parsed) => ({
226
241
  quote: parsed,
227
242
  token: sent.token
228
243
  }))),
244
+ publish: (quoteId, publishOptions = {}) => quote("send_quote", {
245
+ quote: quoteId,
246
+ ...actorArg(publishOptions)
247
+ }, quoteOf),
229
248
  decide: (quoteId, decision, decide = {}) => quote("decide_quote", {
230
249
  quote: quoteId,
231
250
  decision,
232
251
  note: decide.note ?? null,
233
252
  by: decide.by ?? null,
234
- selected: decide.selected ?? null
253
+ selected: decide.selected ?? null,
254
+ ...actorArg(decide)
255
+ }, quoteOf),
256
+ revise: (quoteId, reviseOptions = {}) => quote("revise_quote", {
257
+ quote: quoteId,
258
+ ...actorArg(reviseOptions)
259
+ }, quoteOf),
260
+ withdraw: (quoteId, withdrawOptions = {}) => quote("withdraw_quote", {
261
+ quote: quoteId,
262
+ ...actorArg(withdrawOptions)
235
263
  }, quoteOf),
236
- revise: (quoteId) => quote("revise_quote", { quote: quoteId }, quoteOf),
237
264
  versions: (quoteId) => call("quote_versions", { quote: quoteId }, (value) => recordsOf(value, "quote versions").map(versionSummaryOf)),
238
265
  version: (quoteId, revision) => call("quote_version", {
239
266
  quote: quoteId,
@@ -283,7 +310,8 @@ const quotesEvents = defineEvents({
283
310
  "quote.rejected": event(),
284
311
  "quote.changes_requested": event(),
285
312
  "quote.expired": event(),
286
- "quote.revised": event()
313
+ "quote.revised": event(),
314
+ "quote.withdrawn": event()
287
315
  });
288
316
  // src/blocks/quotes/manifest.ts
289
317
  /** The `quotes` block's manifest (ADR 0029). */
@@ -1,9 +1,9 @@
1
1
  import { t as AsyncResult } from "../../result-DTOQRyGY.js";
2
2
  import { n as Logger } from "../../logger-0LfhvwE4.js";
3
- import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
4
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
5
- import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
6
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
3
+ import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
4
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
5
+ import { _ as JobHandler } from "../../types-LLCyr-xs.js";
6
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
7
7
  import { n as rankBetweenResult, t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
8
8
  /** The queue `move()` enqueues on when a key grows past 24 digits. */
9
9
  export declare const RANK_REBALANCE_QUEUE = "rank.rebalance";
@@ -3,13 +3,13 @@ import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-D
3
3
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
4
4
  import { A as CollaborationEventData, 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, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
9
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
- import { p as SubscriptionStatus } from "../../topic-CekU96q7.js";
11
- import { n as TopicPort } from "../../watch-topic-DBw411Mq.js";
12
- import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
8
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
9
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
10
+ import { p as SubscriptionStatus } from "../../topic-BYF-GTW9.js";
11
+ import { n as TopicPort } from "../../watch-topic-tfTxgEGc.js";
12
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
13
13
  interface ReactionsOptions extends BlockTemporalOptions, BlockTenantOptions {
14
14
  readonly transport: BlockTransport;
15
15
  /**
@@ -5,11 +5,11 @@ import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
6
6
  import { Ct as Events, et as SaasSubjectEventData } from "../../events-DddDlibJ.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
- import { a as BlockTenantOptions } from "../../block-helpers-BNtM1tqy.js";
8
+ import { o as BlockTenantOptions } from "../../block-helpers-Sj-efEhC.js";
9
9
  import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
11
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
12
- import { a as UndoToken } from "../../undo-CdKp5_2X.js";
10
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
11
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
12
+ import { a as UndoToken } from "../../undo-BCQMqIQN.js";
13
13
  interface LinkInput<F extends object = Record<never, never>> {
14
14
  /**
15
15
  * A kind, or its inverse name (`blocked_by` stores `blocks` from the other
@@ -5,11 +5,11 @@ import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
6
6
  import { Ct as Events, et as SaasSubjectEventData } from "../../events-DddDlibJ.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
- import { a as BlockTenantOptions } from "../../block-helpers-BNtM1tqy.js";
8
+ import { o as BlockTenantOptions } from "../../block-helpers-Sj-efEhC.js";
9
9
  import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
11
- import { _ as JobHandler, c as EnqueueOnceOptions, l as EnqueueOnceResult } from "../../types-BdhE7I8Z.js";
12
- import { I as Notifier, c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
11
+ import { _ as JobHandler, c as EnqueueOnceOptions, l as EnqueueOnceResult } from "../../types-LLCyr-xs.js";
12
+ import { I as Notifier, c as BlockOf } from "../../define-block-DBD7yhQg.js";
13
13
  import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CR8TVvqo.js";
14
14
  interface ExpandInput {
15
15
  readonly dtstart: Temporal.ZonedDateTime;
@@ -4,10 +4,10 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { Ct as Events } 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, 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";
10
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
10
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
11
11
  interface ReviewsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**
@@ -4,10 +4,10 @@ import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
4
4
  import { $ as SaasEventData, Ct as Events } from "../../events-DddDlibJ.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
6
  import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
7
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
8
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
7
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
8
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
9
9
  import { p as ListQueryInput } from "../../list-query-BkbLV-Yc.js";
10
- import { n as Controller } from "../../controller-BQXgMwWN.js";
10
+ import { n as Controller } from "../../controller-D3MPVovD.js";
11
11
  import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
12
12
  export declare const SAVED_VIEW_KINDS: readonly ["table", "board", "calendar", "timeline", "gantt"];
13
13
  type SavedViewKind = (typeof SAVED_VIEW_KINDS)[number];
@@ -1,9 +1,9 @@
1
1
  import { Ct as Events } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
3
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
4
4
  import { t as ScoresSqlOptions } from "../../options-DNZ9r_Vo.js";
5
- import { c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
6
- import { a as ScoreMetric, c as ScoreModelInput, d as Scores, f as ScoresOptions, i as ScoreBreakdown, l as ScoreModelVersion, n as Score, o as ScoreModel, p as createScores, r as ScoreBand, s as ScoreModelDetail, t as ComputedScore, u as ScoreRule } from "../../scores-Ce8MxQX9.js";
5
+ import { c as BlockOf, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
6
+ import { a as ScoreMetric, c as ScoreModelInput, d as Scores, f as ScoresOptions, i as ScoreBreakdown, l as ScoreModelVersion, n as Score, o as ScoreModel, p as createScores, r as ScoreBand, s as ScoreModelDetail, t as ComputedScore, u as ScoreRule } from "../../scores-BXuSVczw.js";
7
7
  /** `score_model.saved` and `score_model.deleted`. */
8
8
  interface ScoreModelEventData {
9
9
  readonly organizationId: string;
@@ -1,13 +1,13 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { b as DbError, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { n as Logger } from "../../logger-0LfhvwE4.js";
4
- import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
4
+ import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, 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
  import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
9
- import { i as KeyboardPort } from "../../ports-1M1E_r2n.js";
10
- import { n as Controller } from "../../controller-BQXgMwWN.js";
9
+ import { i as KeyboardPort } from "../../ports-BKdt_9Oe.js";
10
+ import { n as Controller } from "../../controller-D3MPVovD.js";
11
11
  interface SearchOptions extends Pick<BlockOptions, "transport" | "service" | "schema" | "mappers"> {
12
12
  /** `withBlockHooks` hooks around the methods. */
13
13
  readonly hooks?: BlockHooks<Search>;
@@ -2,13 +2,13 @@
2
2
  import { t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { Ct as Events } from "../../events-DddDlibJ.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
- import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
5
+ import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
6
6
  import { s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
7
- import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
7
+ import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
8
8
  import { n as VaultCredentials } from "../../vault-CbhvnoVC.js";
9
- import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
+ import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
10
10
  import { n as Jwks } from "../../jws-CxgTsbgG.js";
11
- import { o as Signer } from "../../signing-keys-FglIQ6iL.js";
11
+ import { o as Signer } from "../../signing-keys-DhBSWFy_.js";
12
12
  /** The `typ` header of a Security Event Token (RFC 8417 §2.3). */
13
13
  export declare const SET_TYP = "secevent+jwt";
14
14
  /** The media type a pushed SET is sent with (RFC 8935 §2). */
@@ -3,12 +3,12 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { Ct as Events } from "../../events-DddDlibJ.js";
4
4
  import { F as SegmentEventData, I as SegmentMemberEventData } 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 { n as segmentsSqlOptions, t as SegmentsSqlOptions } from "../../options-BLQePOPy.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
  /** A saved filter over one subject type, with its materialized members. */
13
13
  interface Segment {
14
14
  readonly id: string;
@@ -3,11 +3,11 @@ import { 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 { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
6
+ import { n as BlockOptions } 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 { n as sequencesSqlOptions, t as SequencesSqlOptions } from "../../options-D6tpMRvp.js";
10
- import { F as BlockPorts, Sn as EntitySchema, V as MailSendDraft, c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
+ import { F as BlockPorts, Sn as EntitySchema, V as MailSendDraft, c as BlockOf } from "../../define-block-DBD7yhQg.js";
11
11
  declare const SEQUENCE_STATUSES: readonly ["draft", "active", "paused", "archived"];
12
12
  declare const RUN_STATUSES: readonly ["active", "paused", "completed", "exited"];
13
13
  declare const EXIT_REASONS: readonly ["replied", "manual", "failed", "archived"];