better-supabase 0.54.0 → 0.56.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 (445) hide show
  1. package/dist/{agents-DcZk8HBB.d.ts → agents-DJChYmXn.d.ts} +2 -2
  2. package/dist/{ai-schedules-b-uWaxba.d.ts → ai-schedules-5fxfEOWM.d.ts} +1 -1
  3. package/dist/ai-sdk/agents/index.d.ts +1 -1
  4. package/dist/ai-sdk/workflow/index.d.ts +1 -1
  5. package/dist/{app-tables-B2xNMyLA.d.ts → app-tables-CWnf7wpo.d.ts} +1 -1
  6. package/dist/{audit-actions-Dni5Y4wV.d.ts → audit-actions-DC-AtyWB.d.ts} +6 -0
  7. package/dist/{authorization-Bk6cLL5f.d.ts → authorization-Hh9xUm0r.d.ts} +1 -1
  8. package/dist/{automations-CjKWYzIu.js → automations-Cu1KdCvL.js} +3 -1
  9. package/dist/{bind-DWElQa6I.d.ts → bind-CC5-eBT-.d.ts} +4 -4
  10. package/dist/{block-env-CQQUMPYZ.d.ts → block-env-CzT1OAiI.d.ts} +4 -4
  11. package/dist/{block-subjects-9KU6Q6-3.js → block-subjects-B9hb1LLk.js} +4 -3
  12. package/dist/{block-tables-JC1dMLaA.d.ts → block-tables-DOGtmm0m.d.ts} +1 -1
  13. package/dist/blocks/access-requests/index.d.ts +1 -1
  14. package/dist/blocks/accounting/index.d.ts +1 -1
  15. package/dist/blocks/acknowledgements/index.d.ts +1 -1
  16. package/dist/blocks/activities/index.d.ts +2 -2
  17. package/dist/blocks/advisories/index.d.ts +1 -1
  18. package/dist/blocks/agent-checkout/index.d.ts +1 -1
  19. package/dist/blocks/agents/index.d.ts +1 -1
  20. package/dist/blocks/ai-cache/index.d.ts +1 -1
  21. package/dist/blocks/ai-chat/index.d.ts +1 -1
  22. package/dist/blocks/ai-evals/index.d.ts +1 -1
  23. package/dist/blocks/ai-files/index.d.ts +1 -1
  24. package/dist/blocks/ai-guardrails/index.d.ts +1 -1
  25. package/dist/blocks/ai-keys/index.d.ts +1 -1
  26. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  27. package/dist/blocks/announcements/index.d.ts +4 -4
  28. package/dist/blocks/api-keys/index.d.ts +1 -1
  29. package/dist/blocks/appraisals/index.d.ts +1 -1
  30. package/dist/blocks/approvals/index.d.ts +1 -1
  31. package/dist/blocks/assets/index.d.ts +2 -2
  32. package/dist/blocks/assignment/index.d.ts +1 -1
  33. package/dist/blocks/attachments/index.d.ts +5 -5
  34. package/dist/blocks/audit/index.d.ts +2 -2
  35. package/dist/blocks/automations/index.d.ts +3 -3
  36. package/dist/blocks/banking/index.d.ts +1 -1
  37. package/dist/blocks/billable-time/index.d.ts +1 -1
  38. package/dist/blocks/billing/index.d.ts +2 -2
  39. package/dist/blocks/bookings/index.d.ts +2 -2
  40. package/dist/blocks/bulk/index.d.ts +1 -1
  41. package/dist/blocks/calendar/index.d.ts +3 -3
  42. package/dist/blocks/care/index.d.ts +27 -27
  43. package/dist/blocks/care-plans/index.d.ts +3 -3
  44. package/dist/blocks/cases/index.d.ts +3 -3
  45. package/dist/blocks/catalog/index.d.ts +2 -2
  46. package/dist/blocks/channels/index.d.ts +1 -1
  47. package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
  48. package/dist/blocks/cms/index.d.ts +5 -5
  49. package/dist/blocks/collaboration/index.d.ts +6 -6
  50. package/dist/blocks/collections/index.d.ts +1 -1
  51. package/dist/blocks/comments/index.d.ts +2 -2
  52. package/dist/blocks/commerce/index.d.ts +5 -5
  53. package/dist/blocks/commerce/index.js +2 -2
  54. package/dist/blocks/commissions/index.d.ts +1 -1
  55. package/dist/blocks/compliance/index.d.ts +1 -1
  56. package/dist/blocks/connectors/index.d.ts +1 -1
  57. package/dist/blocks/consents/index.d.ts +2 -2
  58. package/dist/blocks/contacts/index.d.ts +2 -2
  59. package/dist/blocks/content/index.d.ts +2 -2
  60. package/dist/blocks/contracts/index.d.ts +1 -1
  61. package/dist/blocks/courses/index.d.ts +3 -3
  62. package/dist/blocks/created-by/index.d.ts +2 -2
  63. package/dist/blocks/crm/index.d.ts +16 -16
  64. package/dist/blocks/crm/index.js +2 -2
  65. package/dist/blocks/custom-fields/index.d.ts +1 -1
  66. package/dist/blocks/dam/index.d.ts +2 -2
  67. package/dist/blocks/data-lifecycle/index.d.ts +2 -2
  68. package/dist/blocks/deadlines/index.d.ts +249 -43
  69. package/dist/blocks/deadlines/index.js +862 -20
  70. package/dist/blocks/deals/index.d.ts +1 -1
  71. package/dist/blocks/dispatch/index.d.ts +2 -2
  72. package/dist/blocks/document-templates/index.d.ts +2 -2
  73. package/dist/blocks/documents/index.d.ts +1 -1
  74. package/dist/blocks/domains/index.d.ts +1 -1
  75. package/dist/blocks/donations/index.d.ts +1 -1
  76. package/dist/blocks/drive/index.d.ts +5 -5
  77. package/dist/blocks/e-prescribing/index.d.ts +1 -1
  78. package/dist/blocks/employees/index.d.ts +1 -1
  79. package/dist/blocks/enrichment/index.d.ts +1 -1
  80. package/dist/blocks/enrollments/index.d.ts +2 -2
  81. package/dist/blocks/entitlements/index.d.ts +3 -3
  82. package/dist/blocks/events/index.d.ts +3 -3
  83. package/dist/blocks/expenses/index.d.ts +1 -1
  84. package/dist/blocks/field-history/index.d.ts +1 -1
  85. package/dist/blocks/filespace/index.d.ts +8 -8
  86. package/dist/blocks/finance/index.d.ts +5 -5
  87. package/dist/blocks/finance/index.js +1 -1
  88. package/dist/blocks/flags/index.d.ts +1 -1
  89. package/dist/blocks/forecasts/index.d.ts +1 -1
  90. package/dist/blocks/forms/index.d.ts +3 -3
  91. package/dist/blocks/funding/index.d.ts +2 -2
  92. package/dist/blocks/goals/index.d.ts +1 -1
  93. package/dist/blocks/governance/index.d.ts +4 -4
  94. package/dist/blocks/guests/index.d.ts +1 -1
  95. package/dist/blocks/hiring/index.d.ts +1 -1
  96. package/dist/blocks/identities/index.d.ts +1 -1
  97. package/dist/blocks/imports/index.d.ts +2 -2
  98. package/dist/blocks/inbox/index.d.ts +6 -6
  99. package/dist/blocks/incidents/index.d.ts +1 -1
  100. package/dist/blocks/index.d.ts +4 -4
  101. package/dist/blocks/inspections/index.d.ts +2 -2
  102. package/dist/blocks/inventory/index.d.ts +1 -1
  103. package/dist/blocks/inventory/index.js +1 -1
  104. package/dist/blocks/invoices/index.d.ts +1 -1
  105. package/dist/blocks/invoices/index.js +1 -1
  106. package/dist/blocks/knowledge/index.d.ts +1 -1
  107. package/dist/blocks/lead-scoring/index.d.ts +2 -2
  108. package/dist/blocks/learning/index.d.ts +3 -3
  109. package/dist/blocks/leases/index.d.ts +1 -1
  110. package/dist/blocks/leave/index.d.ts +1 -1
  111. package/dist/blocks/ledger/index.d.ts +1 -1
  112. package/dist/blocks/legal-entities/index.d.ts +2 -2
  113. package/dist/blocks/lims/index.d.ts +2 -2
  114. package/dist/blocks/mail-sync/index.d.ts +3 -3
  115. package/dist/blocks/maintenance/index.d.ts +2 -2
  116. package/dist/blocks/manufacturing/index.d.ts +2 -2
  117. package/dist/blocks/medications/index.d.ts +1 -1
  118. package/dist/blocks/meetings/index.d.ts +3 -3
  119. package/dist/blocks/memberships/index.d.ts +2 -2
  120. package/dist/blocks/memory/index.d.ts +1 -1
  121. package/dist/blocks/messaging/index.d.ts +5 -5
  122. package/dist/blocks/metrics/index.d.ts +1 -1
  123. package/dist/blocks/mfa/index.d.ts +2 -2
  124. package/dist/blocks/moderation/index.d.ts +2 -2
  125. package/dist/blocks/notifications/index.d.ts +5 -5
  126. package/dist/blocks/numbering/index.d.ts +1 -1
  127. package/dist/blocks/oauth-server/index.d.ts +1 -1
  128. package/dist/blocks/observations/index.d.ts +2 -2
  129. package/dist/blocks/onboarding/index.d.ts +2 -2
  130. package/dist/blocks/option-sets/index.d.ts +2 -2
  131. package/dist/blocks/orders/index.d.ts +1 -1
  132. package/dist/blocks/orders/index.js +1 -1
  133. package/dist/blocks/organizations/index.d.ts +2 -2
  134. package/dist/blocks/outbox/index.d.ts +1 -1
  135. package/dist/blocks/passes/index.d.ts +2 -2
  136. package/dist/blocks/payroll-export/index.d.ts +2 -2
  137. package/dist/blocks/payroll-export/index.js +1 -1
  138. package/dist/blocks/people/index.d.ts +7 -7
  139. package/dist/blocks/people/index.js +1 -1
  140. package/dist/blocks/periods/index.d.ts +1 -1
  141. package/dist/blocks/permissions/index.d.ts +3 -3
  142. package/dist/blocks/pipelines/index.d.ts +1 -1
  143. package/dist/blocks/posts/index.d.ts +2 -2
  144. package/dist/blocks/procurement/index.d.ts +5 -5
  145. package/dist/blocks/procurement/index.js +2 -2
  146. package/dist/blocks/profiles/index.d.ts +1 -1
  147. package/dist/blocks/projects/index.d.ts +7 -7
  148. package/dist/blocks/projects/index.js +2 -2
  149. package/dist/blocks/promotions/index.d.ts +1 -1
  150. package/dist/blocks/prompts/index.d.ts +1 -1
  151. package/dist/blocks/push/index.d.ts +2 -2
  152. package/dist/blocks/qualifications/index.d.ts +2 -2
  153. package/dist/blocks/queue/index.d.ts +2 -2
  154. package/dist/blocks/quotes/index.d.ts +1 -1
  155. package/dist/blocks/quotes/index.js +2 -2
  156. package/dist/blocks/rank/index.d.ts +1 -1
  157. package/dist/blocks/reactions/index.d.ts +4 -4
  158. package/dist/blocks/recruiting/index.d.ts +4 -4
  159. package/dist/blocks/referrals/index.d.ts +1 -1
  160. package/dist/blocks/relations/index.d.ts +1 -1
  161. package/dist/blocks/reminders/index.d.ts +1 -1
  162. package/dist/blocks/reviews/index.d.ts +1 -1
  163. package/dist/blocks/rfqs/index.d.ts +2 -2
  164. package/dist/blocks/risks/index.d.ts +2 -2
  165. package/dist/blocks/saas/index.d.ts +12 -12
  166. package/dist/blocks/sales/index.d.ts +1 -1
  167. package/dist/blocks/sales/index.js +1 -1
  168. package/dist/blocks/saved-views/index.d.ts +2 -2
  169. package/dist/blocks/scheduling/index.d.ts +4 -4
  170. package/dist/blocks/scores/index.d.ts +2 -2
  171. package/dist/blocks/search/index.d.ts +3 -3
  172. package/dist/blocks/security-events/index.d.ts +1 -1
  173. package/dist/blocks/segments/index.d.ts +2 -2
  174. package/dist/blocks/sequences/index.d.ts +3 -3
  175. package/dist/blocks/service/index.d.ts +7 -7
  176. package/dist/blocks/service/index.js +1 -1
  177. package/dist/blocks/service-accounts/index.d.ts +1 -1
  178. package/dist/blocks/sessions/index.d.ts +2 -2
  179. package/dist/blocks/settings/index.d.ts +2 -2
  180. package/dist/blocks/share-links/index.d.ts +1 -1
  181. package/dist/blocks/shifts/index.d.ts +2 -2
  182. package/dist/blocks/shipments/index.d.ts +2 -2
  183. package/dist/blocks/signatures/index.d.ts +2 -2
  184. package/dist/blocks/signing-keys/index.d.ts +1 -1
  185. package/dist/blocks/sla/index.d.ts +1 -1
  186. package/dist/blocks/sso/index.d.ts +1 -1
  187. package/dist/blocks/state-machine/index.d.ts +1 -1
  188. package/dist/blocks/subjects/index.d.ts +2 -2
  189. package/dist/blocks/support/index.d.ts +5 -5
  190. package/dist/blocks/support/index.js +1 -1
  191. package/dist/blocks/tags/index.d.ts +2 -2
  192. package/dist/blocks/tasks/index.d.ts +2 -2
  193. package/dist/blocks/tasks/index.js +1 -1
  194. package/dist/blocks/tax/index.d.ts +2 -2
  195. package/dist/blocks/teams/index.d.ts +1 -1
  196. package/dist/blocks/templates/index.d.ts +11 -1
  197. package/dist/blocks/templates/index.js +6 -1
  198. package/dist/blocks/tills/index.d.ts +1 -1
  199. package/dist/blocks/time-tracking/index.d.ts +2 -2
  200. package/dist/blocks/timeline/index.d.ts +1 -1
  201. package/dist/blocks/trash/index.d.ts +1 -1
  202. package/dist/blocks/undo/index.d.ts +2 -2
  203. package/dist/blocks/updated-at/index.d.ts +2 -2
  204. package/dist/blocks/usage/index.d.ts +2 -2
  205. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  206. package/dist/blocks/versions/index.d.ts +1 -1
  207. package/dist/blocks/waitlist/index.d.ts +1 -1
  208. package/dist/blocks/warehouse/index.d.ts +1 -1
  209. package/dist/blocks/webhooks/index.d.ts +1 -1
  210. package/dist/blocks/workflow-editor/index.d.ts +4 -4
  211. package/dist/blocks/workflows/index.d.ts +4 -4
  212. package/dist/{blocks-LZklPzC5.d.ts → blocks-DvWEz8mQ.d.ts} +56 -21
  213. package/dist/claims/index.d.ts +3 -3
  214. package/dist/cli/{add-BQZbFEAP.js → add--O_HFhs0.js} +2 -2
  215. package/dist/cli/add-CUAchifS.js +1 -0
  216. package/dist/cli/{add-DK38-F2F.js → add-DT2QsJB0.js} +12 -12
  217. package/dist/cli/{app-table-files-C5Sx2Qao.js → app-table-files-BjMDa_7_.js} +3 -3
  218. package/dist/cli/{app-tables-ChZE8Z_L.js → app-tables-D34g1ASz.js} +2 -2
  219. package/dist/cli/{backfill-COnv2tOL.js → backfill-DWD5chCd.js} +3 -3
  220. package/dist/cli/bin.js +1 -1
  221. package/dist/cli/{blocks-Dea_Z5Ps.js → blocks-BduQcXFb.js} +1 -1
  222. package/dist/cli/{blocks-Csu6lLqC.js → blocks-DKs7Qj8R.js} +1 -1
  223. package/dist/cli/{cache-C1nAFZNW.js → cache-EFwNdKib.js} +1 -1
  224. package/dist/cli/{codemod-DHULUpez.js → codemod-CuaWRwst.js} +1 -1
  225. package/dist/cli/{config-FN5Cp861.js → config-DdkxiGjH.js} +7 -0
  226. package/dist/cli/{config-U32Vo0h6.js → config-DmjFp8jY.js} +1 -1
  227. package/dist/cli/{content-mapper-QVJJto5U.js → content-mapper-BlOMmIM2.js} +2 -2
  228. package/dist/cli/{db-T8u160uM.js → db-B54TQ_iX.js} +2 -2
  229. package/dist/cli/{doctor-Du2zwLUG.js → doctor-JdxWuscJ.js} +17 -17
  230. package/dist/cli/{gen-CQ2ubqjB.js → gen-n6l6AMLo.js} +14 -14
  231. package/dist/cli/index.d.ts +1 -1
  232. package/dist/cli/index.js +7 -7
  233. package/dist/cli/{init-CTt0aQn1.js → init-BLMHN_2A.js} +10 -10
  234. package/dist/cli/{live-DMNuAml9.js → live-C4uCg3ME.js} +2 -2
  235. package/dist/cli/{mcp-C63ulwyU.js → mcp-CFLvzFKH.js} +2 -2
  236. package/dist/cli/{metadata-CylES-9Y.js → metadata-CRp8JQTE.js} +3 -3
  237. package/dist/cli/{migrate-BezKva56.js → migrate-BjDf0moD.js} +1 -1
  238. package/dist/cli/{migration-safety-DQtpMu-g.js → migration-safety-D-QnV2BW.js} +2 -2
  239. package/dist/cli/{migrations-DGJJ1rHt.js → migrations-8dDFF8SW.js} +2 -2
  240. package/dist/cli/{module-migration-CxbEDfSF.js → module-migration-DuwIX8MO.js} +2 -2
  241. package/dist/cli/powersync-ByqoHJwp.js +1 -0
  242. package/dist/cli/{powersync-FUYFuZSw.js → powersync-CHVlZIqs.js} +3 -3
  243. package/dist/cli/{print-DAwLAC-7.js → print-orgMiDzp.js} +2 -2
  244. package/dist/cli/{providers-hrxX3YKU.js → providers-DWZVnoDw.js} +1 -1
  245. package/dist/cli/{prune-workflows-DLhKu_UJ.js → prune-workflows-DelKs-zD.js} +3 -3
  246. package/dist/cli/{remove-DSC6Fvwo.js → remove-BH6Zwjhs.js} +6 -6
  247. package/dist/cli/{render-647qdnrX.js → render-DyWVslCM.js} +4 -4
  248. package/dist/cli/{run--qaDaqfL.js → run-BYX5n5rt.js} +9 -9
  249. package/dist/cli/{run-BcI6KXV3.js → run-GcSBgXCH.js} +35 -35
  250. package/dist/cli/seed-BxjjQ3OO.js +1 -0
  251. package/dist/cli/{seed-BgpovbwF.js → seed-kCLEYSOH.js} +2 -2
  252. package/dist/cli/{shared-D_DZ9MfG.js → shared-BoVOOrpJ.js} +1 -1
  253. package/dist/cli/{snapshot-B-1tPbV4.js → snapshot-BZGZ9pB-.js} +3 -3
  254. package/dist/cli/{source-BgFNrRcl.js → source-Buw7eODS.js} +1 -1
  255. package/dist/cli/{source-args-DC8snM7e.js → source-args-C3_mMci3.js} +1 -1
  256. package/dist/cli/{spec-CV0FdW18.js → spec-CUWMpL3f.js} +2 -2
  257. package/dist/cli/{spec-C88dtkj4.js → spec-CnRC9FcX.js} +1 -1
  258. package/dist/cli/{sql-layout-byUur5FC.js → sql-layout-BZ-NhhTI.js} +2 -2
  259. package/dist/cli/{sync-BtM7o-sI.js → sync-CFzA4xdr.js} +4 -4
  260. package/dist/cli/{upgrade-CKDeHkyy.js → upgrade-D1szGysi.js} +5 -5
  261. package/dist/cli/{upgrade-B_HEJvRX.js → upgrade-ukOP0GXf.js} +2 -2
  262. package/dist/cli/{version-DWDoiP5_.js → version-D1sJX6_6.js} +1 -1
  263. package/dist/client/index.d.ts +6 -6
  264. package/dist/client/native/index.d.ts +4 -4
  265. package/dist/config/index.d.ts +4 -4
  266. package/dist/config/index.js +4 -4
  267. package/dist/{config-LOwFAFpo.js → config-Bx3UYp8b.js} +3 -3
  268. package/dist/{config-ekflaCnS.js → config-CAjlOSQY.js} +1 -1
  269. package/dist/{context-iduX3Fsn.d.ts → context-BIBqUjVz.d.ts} +47 -4
  270. package/dist/contract/index.d.ts +3 -3
  271. package/dist/{contributions-DPjEWWpE.js → contributions-olp7tVYC.js} +11 -0
  272. package/dist/{controller-DFGNChQL.d.ts → controller-DBD6WWDa.d.ts} +1 -1
  273. package/dist/{conversion-DTBB0Zgt.d.ts → conversion-DLkof9_y.d.ts} +1 -1
  274. package/dist/create/index.d.ts +4 -4
  275. package/dist/create/index.js +3 -3
  276. package/dist/create/lite/index.d.ts +3 -3
  277. package/dist/create/lite/index.js +2 -2
  278. package/dist/{data-engine-BKO5EAzN.d.ts → data-engine-0uVsKWaB.d.ts} +7 -3
  279. package/dist/deadlines-values-vmaCCdGl.js +92 -0
  280. package/dist/{define-block-By-LUpM_.d.ts → define-block-zK3QnPyG.d.ts} +1 -1
  281. package/dist/{drive-CuNG4qB8.d.ts → drive-Keqe8dIg.d.ts} +1 -1
  282. package/dist/{entitlements-Go8BHqhr.d.ts → entitlements-QwMag409.d.ts} +1 -1
  283. package/dist/{extract-DQKHxiiq.d.ts → extract-CJWS6MMG.d.ts} +1 -1
  284. package/dist/{field-errors-B4SMTk2e.d.ts → field-errors-BlyD3if3.d.ts} +6 -6
  285. package/dist/{index-DQVQYEhP.d.ts → index-0AVn1Dcr.d.ts} +1 -1
  286. package/dist/{index-20EPlFXG.d.ts → index-9rajR8Ti.d.ts} +1 -1
  287. package/dist/{index-DlXgoerO.d.ts → index-B5rQ9MEl.d.ts} +1 -1
  288. package/dist/{index-DkNMN5uU.d.ts → index-B7_Mq8Qm.d.ts} +1 -1
  289. package/dist/{index-DkJtM-9e.d.ts → index-BGqvP9dE.d.ts} +9 -9
  290. package/dist/{index-szXZSILq.d.ts → index-BIClMq6S.d.ts} +7 -7
  291. package/dist/{index-YZ-_hzdR.d.ts → index-BOI3eLz0.d.ts} +1 -1
  292. package/dist/{index-B8axasMg.d.ts → index-BSdDLEA-.d.ts} +1 -1
  293. package/dist/{index-ROumUag2.d.ts → index-BTC40rxx.d.ts} +1 -1
  294. package/dist/{index-C1kImKZg.d.ts → index-BxdldeGx.d.ts} +1 -1
  295. package/dist/{index-DXoS8BnK.d.ts → index-C7tmYYB5.d.ts} +3 -3
  296. package/dist/{index-BoKvWo8t.d.ts → index-CJB2uCFk.d.ts} +1 -1
  297. package/dist/{index-DkNLdcX_.d.ts → index-COLMIEk0.d.ts} +1 -1
  298. package/dist/{index-BmKtYKwN.d.ts → index-CPRQdNHc.d.ts} +2 -2
  299. package/dist/{index-NqLuAXG3.d.ts → index-CSdjm0Kn.d.ts} +2 -2
  300. package/dist/{index-D4ke5U0m.d.ts → index-CT0OjCk1.d.ts} +1 -1
  301. package/dist/{index-D7FXhn2i.d.ts → index-CocISf2h.d.ts} +1 -1
  302. package/dist/{index-9zNFFq6E.d.ts → index-Cvd24Ybb.d.ts} +1 -1
  303. package/dist/{index-CTHuTJtf.d.ts → index-DASeimpy.d.ts} +1 -1
  304. package/dist/{index-Dg35ugqv.d.ts → index-DBqRH5cj.d.ts} +4 -4
  305. package/dist/{index-abVPYQE3.d.ts → index-DCeA3cFQ.d.ts} +1 -1
  306. package/dist/{index-bJVAgXxw.d.ts → index-DD3Ldome.d.ts} +2 -2
  307. package/dist/{index-DJyt9j86.d.ts → index-DEDIPDaW.d.ts} +2 -2
  308. package/dist/{index-D9Sb8Ju5.d.ts → index-DNitLhgU.d.ts} +3 -3
  309. package/dist/{index-BKWnyAWN.d.ts → index-D_OEwOaE.d.ts} +2 -2
  310. package/dist/{index-DzjugbCf.d.ts → index-D_g2loq-.d.ts} +2 -2
  311. package/dist/{index-DfJFbsVp.d.ts → index-DaTxv1aA.d.ts} +1 -1
  312. package/dist/{index-D337YzjX.d.ts → index-DcihkEQo.d.ts} +1 -1
  313. package/dist/{index-DeE-Xuv7.d.ts → index-Do6ZAvXT.d.ts} +1 -1
  314. package/dist/{index-DgRK-iM3.d.ts → index-DpwRuDBy.d.ts} +4 -4
  315. package/dist/{index-pRdO2XnG.d.ts → index-HANt6RDT.d.ts} +1 -1
  316. package/dist/{index-Bsd8P1iQ.d.ts → index-QpKsKUbn.d.ts} +2 -2
  317. package/dist/{index-DFdqVxv6.d.ts → index-WXVYfOHr.d.ts} +4 -4
  318. package/dist/{index-BkBNirhK.d.ts → index-XjhYgGhk.d.ts} +2 -2
  319. package/dist/{index-BvwlIGwY.d.ts → index-_rOaXPbx.d.ts} +1 -1
  320. package/dist/{index-BXRyr3ey.d.ts → index-n-7IwvYP.d.ts} +2 -2
  321. package/dist/{index-D-bMFoGs.d.ts → index-urOSlPMc.d.ts} +2 -2
  322. package/dist/{instances-DJxWRqXk.js → instances-z6DJn2Gr.js} +52 -8
  323. package/dist/{inventory-reads-BNDSYnuG.js → inventory-reads-DEw2Kbff.js} +2 -1
  324. package/dist/{manifest-DjAdsSs4.d.ts → manifest-B4SF4ieN.d.ts} +1 -1
  325. package/dist/{manifest-BeW5LlW1.d.ts → manifest-B9D-PHpo.d.ts} +1 -1
  326. package/dist/{manifest-H6lz9xQm.d.ts → manifest-BBIs-5xy.d.ts} +1 -1
  327. package/dist/{manifest-BfIYKrNe.d.ts → manifest-BE6JGlFP.d.ts} +1 -1
  328. package/dist/{manifest-BCOBkYvY.d.ts → manifest-BExilPWu.d.ts} +2 -2
  329. package/dist/{manifest-uL5fzXsx.d.ts → manifest-BNhdYakH.d.ts} +1 -1
  330. package/dist/{manifest-DZLr6Cbr.js → manifest-BV1YxozT.js} +1 -1
  331. package/dist/{manifest-DweZMH-F.d.ts → manifest-BVkjX2t-.d.ts} +1 -1
  332. package/dist/{manifest-RUmJ5H6p.d.ts → manifest-BVnfLMPU.d.ts} +2 -2
  333. package/dist/{manifest-BxuSAdYu.d.ts → manifest-BX7vyeYr.d.ts} +1 -1
  334. package/dist/{manifest-DBmuiJ91.d.ts → manifest-BYxKYFcH.d.ts} +1 -1
  335. package/dist/{manifest-BRFen7mE.js → manifest-Bb8S2tcs.js} +1 -1
  336. package/dist/{manifest-CfQ0nD_7.d.ts → manifest-Bcx4GSo0.d.ts} +1 -1
  337. package/dist/{manifest-fviCqeHj.d.ts → manifest-BeupHUUC.d.ts} +1 -1
  338. package/dist/{manifest-BAgvJODg.d.ts → manifest-BmI85ooO.d.ts} +1 -1
  339. package/dist/{manifest-Dh4AJeLl.d.ts → manifest-BoKnFQJK.d.ts} +1 -1
  340. package/dist/{manifest-DxPMUjhY.js → manifest-BvcIe5z_.js} +1 -1
  341. package/dist/{manifest-DWQaegX6.d.ts → manifest-BwwWlxof.d.ts} +1 -1
  342. package/dist/{manifest-BGD8cD6S.d.ts → manifest-Bx62hgMv.d.ts} +1 -1
  343. package/dist/{manifest-o-S9bj6i.d.ts → manifest-C1plIFth.d.ts} +1 -1
  344. package/dist/{manifest-upfKO7JJ.d.ts → manifest-C8-zVlM4.d.ts} +1 -1
  345. package/dist/{manifest-BCyCm0Z3.d.ts → manifest-CANbbLyM.d.ts} +1 -1
  346. package/dist/{manifest-DdxfAXvG.d.ts → manifest-CCQYjt7L.d.ts} +1 -1
  347. package/dist/{manifest-CAPSAozN.d.ts → manifest-CDIvE9Po.d.ts} +1 -1
  348. package/dist/{manifest-CDcaLpwB.d.ts → manifest-CJEzfFKP.d.ts} +1 -1
  349. package/dist/{manifest-BgVQ8xd3.d.ts → manifest-CLSlmLnn.d.ts} +1 -1
  350. package/dist/{manifest-KHudP5T5.d.ts → manifest-CV-9uzTU.d.ts} +1 -1
  351. package/dist/{manifest-Dc1eHEJV.d.ts → manifest-CYDtm5Yz.d.ts} +1 -1
  352. package/dist/{manifest-CcDqfRee.d.ts → manifest-Cb0BCYmS.d.ts} +1 -1
  353. package/dist/{manifest-BJs6pHI0.d.ts → manifest-Cc1r_IME.d.ts} +1 -1
  354. package/dist/{manifest-DGgFeLwd.d.ts → manifest-CeFiTTOx.d.ts} +1 -1
  355. package/dist/{manifest-CszjCxVJ.d.ts → manifest-Ch8G8wad.d.ts} +1 -1
  356. package/dist/{manifest-qs_U2rx3.d.ts → manifest-Ciu7htmT.d.ts} +1 -1
  357. package/dist/{manifest-H65OlXiB.js → manifest-CqJkmxrA.js} +1 -1
  358. package/dist/{manifest-xRlf8RQk.d.ts → manifest-CtvRTQoq.d.ts} +1 -1
  359. package/dist/{manifest-B24Ymu8p.d.ts → manifest-CxJtO760.d.ts} +1 -1
  360. package/dist/{manifest-BSkYvne3.d.ts → manifest-D2mvuqCe.d.ts} +1 -1
  361. package/dist/{manifest-B6EkxzC0.d.ts → manifest-D8o7ivPa.d.ts} +1 -1
  362. package/dist/{manifest-Cko_ySTe.d.ts → manifest-DAQAHnHf.d.ts} +1 -1
  363. package/dist/{manifest-2jLTjnVh.d.ts → manifest-DBUE3KbP.d.ts} +1 -1
  364. package/dist/{manifest-DCPKfwsh.d.ts → manifest-DElW3hfs.d.ts} +1 -1
  365. package/dist/{manifest-BrOXXz7k.d.ts → manifest-DFGW17h3.d.ts} +1 -1
  366. package/dist/{manifest-CL5QEu5B.d.ts → manifest-DGXOQgh3.d.ts} +1 -1
  367. package/dist/{manifest-BqBVKNjy.d.ts → manifest-DHV0zxVj.d.ts} +1 -1
  368. package/dist/{manifest-BHZEsuzC.d.ts → manifest-DKCc24tm.d.ts} +1 -1
  369. package/dist/{manifest-BxujRhsY.d.ts → manifest-DKk12W7u.d.ts} +1 -1
  370. package/dist/{manifest-BbC83cJB.d.ts → manifest-DOUGC7xP.d.ts} +1 -1
  371. package/dist/{manifest-BmLU5HtO.d.ts → manifest-DPQpIRCO.d.ts} +1 -1
  372. package/dist/{manifest-Csw2tVut.d.ts → manifest-DPXd-wZG.d.ts} +1 -1
  373. package/dist/{manifest-Ct6mHhg4.d.ts → manifest-D_tuEFvt.d.ts} +1 -1
  374. package/dist/{manifest-BtlEwVU4.d.ts → manifest-DbzB7NQP.d.ts} +1 -1
  375. package/dist/{manifest-Bg5Znp_u.d.ts → manifest-Dd0bmqd-.d.ts} +1 -1
  376. package/dist/{manifest-jSOZl7qT.d.ts → manifest-DebHyEiN.d.ts} +1 -1
  377. package/dist/{manifest-vG5iHhA5.d.ts → manifest-Doxj-elq.d.ts} +1 -1
  378. package/dist/{manifest-Oo7PegXK.d.ts → manifest-DujUV7Cu.d.ts} +1 -1
  379. package/dist/{manifest-DnGgZ9_F.d.ts → manifest-Duj_AN2H.d.ts} +1 -1
  380. package/dist/{manifest-CeoUoZDs.d.ts → manifest-DzN5YdbZ.d.ts} +1 -1
  381. package/dist/{manifest-Da1QZDY4.d.ts → manifest-P2Pzb1Jo.d.ts} +1 -1
  382. package/dist/{manifest-DPGJ2otk.d.ts → manifest-SEhx1LFs.d.ts} +1 -1
  383. package/dist/{manifest-DpF5bliV.d.ts → manifest-Se6qEw03.d.ts} +1 -1
  384. package/dist/{manifest-8JvRt8LB.d.ts → manifest-UHESrKBI.d.ts} +1 -1
  385. package/dist/{manifest-dXPq0ubY.d.ts → manifest-Ul7Uq35H.d.ts} +1 -1
  386. package/dist/{manifest-CH7g3uI3.d.ts → manifest-XpSrCsAV.d.ts} +1 -1
  387. package/dist/{manifest-2ZgzNTbP.d.ts → manifest-iRX3gQ3g.d.ts} +10 -1
  388. package/dist/{manifest-BUktyXMR.js → manifest-ok1ge1bM.js} +1 -1
  389. package/dist/{manifest-BHlKJbN2.d.ts → manifest-uRsVzPOJ.d.ts} +1 -1
  390. package/dist/{manifest-DevURQJj.js → manifest-vBvsSefP.js} +5 -1
  391. package/dist/{manifest-Bj5hfBA_.d.ts → manifest-x50nYF_4.d.ts} +1 -1
  392. package/dist/mapper/bin.js +6 -6
  393. package/dist/mcp/index.d.ts +1 -1
  394. package/dist/next/index.d.ts +7 -7
  395. package/dist/{operations-IzVAIMvs.d.ts → operations-Ce53BGJ0.d.ts} +1 -1
  396. package/dist/{options-CGQC7Wue.js → options-C1N8cOQU.js} +2 -1
  397. package/dist/{options-BTuDJ2RC.js → options-Cu6IqZ_n.js} +3 -1
  398. package/dist/{options-wBw_6uhd.js → options-Oo46IzNk.js} +2 -1
  399. package/dist/{orders-reads-Yo9GGjdv.js → orders-reads-2ozdZx1l.js} +108 -13
  400. package/dist/otel/index.js +4 -4
  401. package/dist/{payroll-export-T754eWz8.js → payroll-export-ChZY6W3w.js} +1 -1
  402. package/dist/{permissions-DxXor_NY.d.ts → permissions-Bi4WvjnM.d.ts} +1 -1
  403. package/dist/{ports-C5BEHQi6.d.ts → ports-TvLRuWgJ.d.ts} +1 -1
  404. package/dist/powersync/index.d.ts +3 -3
  405. package/dist/powersync/index.js +11 -3
  406. package/dist/preset/index.d.ts +4 -4
  407. package/dist/preset/index.js +3 -3
  408. package/dist/{preset-8Xh21Uyw.js → preset-CPUA9haY.js} +9 -3
  409. package/dist/{preview-B-mtB1ka.d.ts → preview-DvpfbcDY.d.ts} +2 -2
  410. package/dist/{project-C6JAWCnH.js → project-CkGGYXKd.js} +5 -5
  411. package/dist/{push-token-TWXWra8i.d.ts → push-token-GJUUE_6j.d.ts} +1 -1
  412. package/dist/query/index.d.ts +1 -1
  413. package/dist/react/index.d.ts +6 -6
  414. package/dist/react/native/index.d.ts +1 -1
  415. package/dist/react/server.d.ts +5 -5
  416. package/dist/realtime/index.d.ts +3 -3
  417. package/dist/{record-form-B9-7RhYz.d.ts → record-form-DhpdYw5e.d.ts} +1 -1
  418. package/dist/records/index.d.ts +7 -7
  419. package/dist/{sales-CLHrvNDm.js → sales-BhOckhix.js} +3 -3
  420. package/dist/server/index.d.ts +3 -3
  421. package/dist/solid/index.d.ts +5 -5
  422. package/dist/sql/index.d.ts +6 -6
  423. package/dist/sql/index.js +3 -3
  424. package/dist/{sql-Bam07JIf.js → sql-CFsIpR4t.js} +2515 -474
  425. package/dist/sqlite/index.d.ts +1 -1
  426. package/dist/ssr/index.d.ts +1 -1
  427. package/dist/svelte/index.d.ts +5 -5
  428. package/dist/tanstack-db/index.d.ts +1 -1
  429. package/dist/{tenant-BpJ2F2b_.d.ts → tenant-BTxVWIN6.d.ts} +1 -1
  430. package/dist/testing/index.d.ts +6 -6
  431. package/dist/testing/index.js +1 -1
  432. package/dist/{timeline-LHtdAJnM.d.ts → timeline-9r4mx0A2.d.ts} +2 -2
  433. package/dist/{topic-4KYLvvTB.d.ts → topic-_7QKu4b5.d.ts} +1 -1
  434. package/dist/{types-Dfa7b0KI.d.ts → types-C2qXUXjK.d.ts} +2 -2
  435. package/dist/vue/index.d.ts +5 -5
  436. package/dist/{watch-topic-C9DIO476.d.ts → watch-topic-Do0x41n3.d.ts} +1 -1
  437. package/dist/webmcp/index.d.ts +1 -1
  438. package/dist/yjs/index.d.ts +1 -1
  439. package/package.json +1 -1
  440. package/schemas/config-v1.json +64 -1
  441. package/skills/better-supabase-api/references/powersync.md +1 -0
  442. package/dist/cli/add-3L9NVEA3.js +0 -1
  443. package/dist/cli/powersync-COHj6FT8.js +0 -1
  444. package/dist/cli/seed-CRD1tYPA.js +0 -1
  445. package/dist/deadlines-values-B7ArpVJU.js +0 -127
@@ -1,4 +1,4 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
2
- import { _ as timeTrackingEvents, a as TimeEntryListOptions, c as TimeTrackingOptions, d as TimesheetDetail, f as TimesheetListOptions, g as TimeTrackingEvents, h as createTimeTracking, i as TimeEntryFields, l as Timesheet, m as TimesheetTotals, n as LogTimeInput, o as TimeEntryPatch, p as TimesheetStatus, r as TimeEntry, s as TimeTracking, t as timeTrackingBlock, u as TimesheetDecisionOptions } from "../../manifest-BbC83cJB.js";
3
- import { a as WeeklyGridRow, c as TimeTrackingMetrics, d as timeTrackingMetrics, i as WeeklyGridOptions, l as TimeTrackingMetricsOptions, n as WeeklyGridDay, o as toWeeklyGrid, r as WeeklyGridEntry, s as TIME_TRACKING_METRIC_EVENTS, t as WeeklyGrid, u as timeEntryMetricTime } from "../../index-20EPlFXG.js";
2
+ import { _ as timeTrackingEvents, a as TimeEntryListOptions, c as TimeTrackingOptions, d as TimesheetDetail, f as TimesheetListOptions, g as TimeTrackingEvents, h as createTimeTracking, i as TimeEntryFields, l as Timesheet, m as TimesheetTotals, n as LogTimeInput, o as TimeEntryPatch, p as TimesheetStatus, r as TimeEntry, s as TimeTracking, t as timeTrackingBlock, u as TimesheetDecisionOptions } from "../../manifest-DOUGC7xP.js";
3
+ import { a as WeeklyGridRow, c as TimeTrackingMetrics, d as timeTrackingMetrics, i as WeeklyGridOptions, l as TimeTrackingMetricsOptions, n as WeeklyGridDay, o as toWeeklyGrid, r as WeeklyGridEntry, s as TIME_TRACKING_METRIC_EVENTS, t as WeeklyGrid, u as timeEntryMetricTime } from "../../index-9rajR8Ti.js";
4
4
  export { type BlockTransport, type LogTimeInput, TIME_TRACKING_METRIC_EVENTS, type TimeEntry, type TimeEntryFields, type TimeEntryListOptions, type TimeEntryPatch, type TimeTracking, type TimeTrackingEvents, type TimeTrackingMetrics, type TimeTrackingMetricsOptions, type TimeTrackingOptions, type Timesheet, type TimesheetDecisionOptions, type TimesheetDetail, type TimesheetListOptions, type TimesheetStatus, type TimesheetTotals, type WeeklyGrid, type WeeklyGridDay, type WeeklyGridEntry, type WeeklyGridOptions, type WeeklyGridRow, createTimeTracking, dbTransport, rpcTransport, sqlTransport, timeEntryMetricTime, timeTrackingBlock, timeTrackingEvents, timeTrackingMetrics, toWeeklyGrid };
@@ -1,3 +1,3 @@
1
- import { a as ActivityListOptions, c as ActivitySource, d as activityListQuery, f as activitySink, i as ActivityFacet, l as Timeline, n as ActivityDescription, o as ActivitySinkOptions, p as createTimeline, r as ActivityEntry, s as ActivitySort, t as timelineBlock, u as TimelineOptions } from "../../manifest-CszjCxVJ.js";
1
+ import { a as ActivityListOptions, c as ActivitySource, d as activityListQuery, f as activitySink, i as ActivityFacet, l as Timeline, n as ActivityDescription, o as ActivitySinkOptions, p as createTimeline, r as ActivityEntry, s as ActivitySort, t as timelineBlock, u as TimelineOptions } from "../../manifest-Ch8G8wad.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
3
3
  export { type ActivityDescription, type ActivityEntry, type ActivityFacet, type ActivityListOptions, type ActivitySinkOptions, type ActivitySort, type ActivitySource, type BlockTransport, type Timeline, type TimelineOptions, activityListQuery, activitySink, createTimeline, dbTransport, rpcTransport, sqlTransport, timelineBlock };
@@ -1,4 +1,4 @@
1
- import { a as TrashListOptions, c as TrashEvents, i as TrashItem, l as trashEvents, n as Trash, o as TrashOptions, r as TrashBatch, s as createTrash, t as trashBlock } from "../../manifest-Da1QZDY4.js";
1
+ import { a as TrashListOptions, c as TrashEvents, i as TrashItem, l as trashEvents, n as Trash, o as TrashOptions, r as TrashBatch, s as createTrash, t as trashBlock } from "../../manifest-P2Pzb1Jo.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
3
3
  import { Ft as RepositoryExtension, Nt as Plugin, Ot as HasFlag, Q as PrimaryKeyValue } from "../../types-BlBju7Wa.js";
4
4
  import { t as AsyncResult } from "../../result-CMqlHv82.js";
@@ -1,7 +1,7 @@
1
1
  import { a as UndoToken, c as undoToken, i as UndoOptions, n as Undo, o as createUndo, r as UndoCall, s as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-CvwsPX4q.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
3
- import { n as Controller } from "../../controller-DFGNChQL.js";
4
- import { c as BlockOf } from "../../define-block-By-LUpM_.js";
3
+ import { n as Controller } from "../../controller-DBD6WWDa.js";
4
+ import { c as BlockOf } from "../../define-block-zK3QnPyG.js";
5
5
  interface UndoEntry {
6
6
  readonly id: number;
7
7
  /** What the toast or menu shows, e.g. "Moved 3 tasks". */
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { Nt as Plugin } from "../../types-BlBju7Wa.js";
3
- import { r as Block } from "../../define-block-By-LUpM_.js";
4
- import { w as UpdatedAtSqlOptions } from "../../blocks-LZklPzC5.js";
3
+ import { r as Block } from "../../define-block-zK3QnPyG.js";
4
+ import { w as UpdatedAtSqlOptions } from "../../blocks-DvWEz8mQ.js";
5
5
  /**
6
6
  * The `updated-at` block's repository extension. Stamps the columns generated
7
7
  * as `Flags.timestamps`: `createdAt` on insert, `updatedAt` on insert and
@@ -1,9 +1,9 @@
1
1
  import { _ as createUsage, a as Usage, c as UsageBreakdownEntry, d as UsageHistoryOptions, f as UsageMeterInfo, g as UsageStatus, h as UsageRecorded, i as ReportUsageResult, l as UsageEntry, m as UsagePeriod, n as RecordUsageOptions, o as UsageBatchRecorded, p as UsageOptions, r as ReportUsageOptions, s as UsageBilled, t as PurgeUsageOptions, u as UsageHistoryEntry, v as reportUsageToStripe } from "../../usage-D4Fho6t9.js";
2
2
  import { n as StripeSource, t as StripeClient } from "../../stripe-Bl-sjnl6.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
4
- import { c as BlockOf } from "../../define-block-By-LUpM_.js";
4
+ import { c as BlockOf } from "../../define-block-zK3QnPyG.js";
5
5
  import { b as DbError } from "../../result-CMqlHv82.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-DFGNChQL.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-DBD6WWDa.js";
7
7
  /** The `usage` block's manifest (ADR 0029). */
8
8
  export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
9
9
  interface UsageMeterControllerOptions {
@@ -6,7 +6,7 @@ import { n as Jwks } from "../../jws-CxgTsbgG.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { a as ProblemFormat, t as BlockProblemOptions } from "../../problem-BkuOcWRv.js";
8
8
  import { r as BlockTemporalOptions } from "../../block-helpers-rTsuHt6v.js";
9
- import { c as BlockOf } from "../../define-block-By-LUpM_.js";
9
+ import { c as BlockOf } from "../../define-block-zK3QnPyG.js";
10
10
  import { Dt as Events } from "../../events-DN9PAcjq.js";
11
11
  /** The Vercel environments a resource's secrets reach. */
12
12
  type VercelEnvironment = "production" | "preview" | "development";
@@ -1,4 +1,4 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
2
- import { S as versionsEvents, _ as JsonValue, a as versionsBinding, b as jsonEqual, c as SnapshotResult, d as VersionSource, f as Versions, g as JsonPatchOperation, h as JsonPatchError, i as versionInput, l as Version, m as createVersions, n as VersionInput, o as RestoreResult, p as VersionsOptions, r as VersionsWrites, s as SnapshotInput, t as versionsBlock, u as VersionListOptions, v as applyPatch, x as VersionsEvents, y as createPatch } from "../../manifest-vG5iHhA5.js";
2
+ import { S as versionsEvents, _ as JsonValue, a as versionsBinding, b as jsonEqual, c as SnapshotResult, d as VersionSource, f as Versions, g as JsonPatchOperation, h as JsonPatchError, i as versionInput, l as Version, m as createVersions, n as VersionInput, o as RestoreResult, p as VersionsOptions, r as VersionsWrites, s as SnapshotInput, t as versionsBlock, u as VersionListOptions, v as applyPatch, x as VersionsEvents, y as createPatch } from "../../manifest-Doxj-elq.js";
3
3
  import "../../index-CaxrMD1A.js";
4
4
  export { type BlockTransport, JsonPatchError, type JsonPatchOperation, type JsonValue, type RestoreResult, type SnapshotInput, type SnapshotResult, type Version, type VersionInput, type VersionListOptions, type VersionSource, type Versions, type VersionsEvents, type VersionsOptions, type VersionsWrites, applyPatch, createPatch, createVersions, dbTransport, jsonEqual, rpcTransport, sqlTransport, versionInput, versionsBinding, versionsBlock, versionsEvents };
@@ -7,7 +7,7 @@ import { t as AsyncResult } from "../../result-CMqlHv82.js";
7
7
  import { t as StandardSchemaV1 } from "../../standard-CiOWpeZL.js";
8
8
  import { n as BlockOptions } from "../../block-helpers-rTsuHt6v.js";
9
9
  import { n as VerifyOptions } from "../../signatures-l_OUbLtA.js";
10
- import { c as BlockOf } from "../../define-block-By-LUpM_.js";
10
+ import { c as BlockOf } from "../../define-block-zK3QnPyG.js";
11
11
  import { $ as OrganizationEventData, Dt as Events, q as InviteCodeEventData, vt as WaitlistEventData } from "../../events-DN9PAcjq.js";
12
12
  type WaitlistStatus = "waiting" | "approved" | "rejected" | "joined";
13
13
  /** An entry. `F` types the extra columns the `fields` schema describes. */
@@ -5,7 +5,7 @@ import { c as RoutePoint, n as OptimizedStops, s as RouteOptimizer } from "../..
5
5
  import { n as BlockOptions } from "../../block-helpers-rTsuHt6v.js";
6
6
  import { t as AsyncResult } from "../../result-CMqlHv82.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
8
- import { G as EntitySchema, c as BlockOf } from "../../define-block-By-LUpM_.js";
8
+ import { G as EntitySchema, c as BlockOf } from "../../define-block-zK3QnPyG.js";
9
9
  import { Dt as Events } from "../../events-DN9PAcjq.js";
10
10
  /** Where a pick wave stands. */
11
11
  declare const PICK_WAVE_STATUSES: readonly ["draft", "released", "completed", "cancelled"];
@@ -14,7 +14,7 @@ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } fro
14
14
  import { i as EventSink, t as CloudEvent } from "../../cloud-event-Dj2V1lQw.js";
15
15
  import { a as verifySharedSecret, i as signWebhook, n as VerifyOptions, o as verifyWebhook, r as WebhookInput, t as VerifiedWebhook } from "../../signatures-l_OUbLtA.js";
16
16
  import { r as BlockTemporalOptions } from "../../block-helpers-rTsuHt6v.js";
17
- import { c as BlockOf } from "../../define-block-By-LUpM_.js";
17
+ import { c as BlockOf } from "../../define-block-zK3QnPyG.js";
18
18
  import { StandardSchemaV1 } from "@standard-schema/spec";
19
19
  /** Constant-time string comparison. */
20
20
  export declare function timingSafeEqual(a: string, b: string): boolean;
@@ -4,11 +4,11 @@ import { $ as diffGraphs, A as WorkflowTriggerKind, B as WorkflowBuiltinNodeKind
4
4
  import { a as GraphStepCall, c as graphRunFields, i as GraphRuntime, l as startNodeOf, n as GraphNodeCall, o as GraphSubject, r as GraphRunFields, s as executeGraph, t as GraphApprovalCall } from "../../executor-CeZUCBC3.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
6
6
  import { b as DbError } from "../../result-CMqlHv82.js";
7
- import { p as SubscriptionStatus } from "../../topic-4KYLvvTB.js";
8
- import { n as TopicPort } from "../../watch-topic-C9DIO476.js";
9
- import { n as Controller, t as AuthPort } from "../../controller-DFGNChQL.js";
7
+ import { p as SubscriptionStatus } from "../../topic-_7QKu4b5.js";
8
+ import { n as TopicPort } from "../../watch-topic-Do0x41n3.js";
9
+ import { n as Controller, t as AuthPort } from "../../controller-DBD6WWDa.js";
10
10
  import { g as Workflows, n as WorkflowRun } from "../../workflows-DUgxuv2X.js";
11
- import { c as BlockOf } from "../../define-block-By-LUpM_.js";
11
+ import { c as BlockOf } from "../../define-block-zK3QnPyG.js";
12
12
  import { Dt as Events, bt as WorkflowEventData } from "../../events-DN9PAcjq.js";
13
13
  /**
14
14
  * The `workflow-editor` module's definitions, versions, triggers, credentials,
@@ -1,10 +1,10 @@
1
1
  import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-DUgxuv2X.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
3
3
  import { b as DbError } from "../../result-CMqlHv82.js";
4
- import { p as SubscriptionStatus } from "../../topic-4KYLvvTB.js";
5
- import { n as TopicPort } from "../../watch-topic-C9DIO476.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-DFGNChQL.js";
7
- import { c as BlockOf } from "../../define-block-By-LUpM_.js";
4
+ import { p as SubscriptionStatus } from "../../topic-_7QKu4b5.js";
5
+ import { n as TopicPort } from "../../watch-topic-Do0x41n3.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-DBD6WWDa.js";
7
+ import { c as BlockOf } from "../../define-block-zK3QnPyG.js";
8
8
  import { Dt as Events, xt as WorkflowRunEventData } from "../../events-DN9PAcjq.js";
9
9
  interface WorkflowRunsControllerOptions {
10
10
  readonly client: {
@@ -849,14 +849,14 @@ interface BlockNameRegistry {
849
849
  readonly "deadlines": {
850
850
  readonly tables: {
851
851
  readonly "ruleSets": "id" | "jurisdiction" | "kind" | "title" | "createdAt";
852
- readonly "ruleVersions": "id" | "ruleSet" | "version" | "status" | "rules" | "contentHash" | "effectiveFrom" | "approvedBy" | "approvedAt" | "approvalId" | "createdAt";
853
- readonly "deadlines": "id" | "tenant" | "subjectType" | "subjectId" | "jurisdiction" | "kind" | "ruleKey" | "ruleVersion" | "facts" | "result" | "dueOn" | "missing" | "citation" | "state" | "satisfiedAt" | "satisfiedBy" | "satisfiedAction" | "computedAt" | "createdAt";
852
+ readonly "ruleVersions": "id" | "ruleSet" | "version" | "status" | "rules" | "groups" | "counting" | "meta" | "contentHash" | "effectiveFrom" | "approvedBy" | "approvedAt" | "approvalId" | "createdAt";
853
+ readonly "deadlines": "id" | "tenant" | "subjectType" | "subjectId" | "jurisdiction" | "kind" | "groupKey" | "ruleKey" | "period" | "ruleVersion" | "facts" | "result" | "dueOn" | "provisional" | "missing" | "exception" | "review" | "basis" | "deadline" | "citation" | "asOf" | "state" | "satisfiedAt" | "satisfiedBy" | "satisfiedAction" | "computedAt" | "createdAt";
854
854
  };
855
- readonly functions: "approve_rule_version" | "compute_deadline" | "deadline_fact_trigger" | "deadline_recompute" | "deadline_version_frozen" | "evaluate_deadline_rule" | "list_deadlines" | "recompute_deadlines" | "rule_version_at" | "satisfy_deadline" | "save_rule_version" | "validate_deadline_rules";
855
+ readonly functions: "approve_rule_version" | "compute_deadlines" | "deadline_add" | "deadline_business_day" | "deadline_candidate" | "deadline_cascade" | "deadline_citation_bad" | "deadline_codes" | "deadline_condition_bad" | "deadline_count_issues" | "deadline_date" | "deadline_fact_trigger" | "deadline_group" | "deadline_holidays_of" | "deadline_is_holiday" | "deadline_judge" | "deadline_meta_bad" | "deadline_outcome" | "deadline_periods" | "deadline_recompute" | "deadline_roll" | "deadline_rule_from_v1" | "deadline_select_rule" | "deadline_sorted" | "deadline_store" | "deadline_version_frozen" | "deadline_whole" | "evaluate_deadlines" | "list_deadlines" | "recompute_deadlines" | "rule_version_at" | "satisfy_deadline" | "save_rule_version" | "validate_deadline_rules" | "version_content_hash";
856
856
  readonly actions: "read" | "write" | "manage";
857
857
  readonly hooks: never;
858
858
  readonly entities: {
859
- readonly "deadline": "id" | "tenant_id" | "subject_type" | "subject_id" | "jurisdiction" | "kind" | "rule_key" | "rule_version_id" | "facts" | "result" | "due_on" | "missing" | "citation" | "state" | "satisfied_at" | "satisfied_by" | "satisfied_action" | "computed_at" | "created_at";
859
+ readonly "deadline": "id" | "tenant_id" | "subject_type" | "subject_id" | "jurisdiction" | "kind" | "group_key" | "rule_key" | "period" | "rule_version_id" | "facts" | "result" | "due_on" | "provisional" | "missing" | "exception" | "review" | "basis" | "deadline" | "citation" | "as_of" | "state" | "satisfied_at" | "satisfied_by" | "satisfied_action" | "computed_at" | "created_at";
860
860
  };
861
861
  readonly primary: "deadline";
862
862
  readonly formerKeys: never;
@@ -1348,7 +1348,7 @@ interface BlockNameRegistry {
1348
1348
  readonly "reservations": "id" | "tenant" | "variant" | "location" | "quantity" | "status" | "referenceType" | "referenceId" | "expiresAt" | "createdAt" | "updatedAt";
1349
1349
  readonly "transfers": "id" | "tenant" | "from" | "to" | "status" | "note" | "createdAt" | "shippedAt" | "receivedAt";
1350
1350
  readonly "transferLines": "tenant" | "transfer" | "variant" | "quantity" | "detail";
1351
- readonly "purchaseOrders": "id" | "tenant" | "location" | "supplierType" | "supplierId" | "status" | "currency" | "expectedAt" | "note" | "createdAt" | "updatedAt" | "placedAt" | "shipTo" | "originType" | "originId";
1351
+ readonly "purchaseOrders": "id" | "tenant" | "location" | "supplierType" | "supplierId" | "status" | "currency" | "expectedAt" | "note" | "createdAt" | "updatedAt" | "placedAt" | "shipTo" | "originType" | "originId" | "template" | "sourceTemplate";
1352
1352
  readonly "purchaseOrderLines": "id" | "tenant" | "order" | "variant" | "quantity" | "received" | "unitCost";
1353
1353
  readonly "requisitions": "id" | "tenant" | "location" | "supplierType" | "supplierId" | "currency" | "status" | "reason" | "requestedBy" | "decidedBy" | "decidedAt" | "approval" | "purchaseOrder" | "createdAt" | "updatedAt";
1354
1354
  readonly "requisitionLines": "id" | "tenant" | "requisition" | "variant" | "quantity" | "unitCost";
@@ -1368,7 +1368,7 @@ interface BlockNameRegistry {
1368
1368
  readonly hooks: "before_stock_adjust" | "after_stock_adjust" | "before_stock_reserve" | "after_stock_reserve";
1369
1369
  readonly entities: {
1370
1370
  readonly "inventory_location": "id" | "tenant_id" | "code" | "name" | "kind" | "active" | "address" | "created_at" | "updated_at";
1371
- readonly "purchase_order": "id" | "tenant_id" | "location_id" | "supplier_type" | "supplier_id" | "status" | "currency" | "expected_at" | "note" | "created_at" | "updated_at" | "placed_at" | "ship_to" | "origin_type" | "origin_id";
1371
+ readonly "purchase_order": "id" | "tenant_id" | "location_id" | "supplier_type" | "supplier_id" | "status" | "currency" | "expected_at" | "note" | "created_at" | "updated_at" | "placed_at" | "ship_to" | "origin_type" | "origin_id" | "template_id" | "source_template_id";
1372
1372
  readonly "purchase_requisition": "id" | "tenant_id" | "location_id" | "supplier_type" | "supplier_id" | "currency" | "status" | "reason" | "requested_by" | "decided_by" | "decided_at" | "approval_id" | "purchase_order_id" | "created_at" | "updated_at";
1373
1373
  readonly "inventory_receipt": "id" | "tenant_id" | "purchase_order_id" | "location_id" | "inspection_id" | "received_by" | "received_at";
1374
1374
  };
@@ -1389,7 +1389,7 @@ interface BlockNameRegistry {
1389
1389
  };
1390
1390
  readonly "invoices": {
1391
1391
  readonly tables: {
1392
- readonly "invoices": "id" | "tenant" | "kind" | "number" | "identifier" | "original" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "currency" | "status" | "termsDays" | "issuedOn" | "dueOn" | "paidTotal" | "creditedTotal" | "paidAt" | "voidedAt" | "voidReason" | "writeOffReason" | "note" | "originType" | "originId" | "depositBps" | "depositAmount" | "discountBps" | "discountAmount" | "pricesIncludeTax" | "archivedAt" | "direction" | "supplierReference" | "purchaseOrder" | "dimensions" | "dunningLevel" | "dunningAt" | "dunningPausedUntil" | "buyer" | "paymentTermsId" | "discountDueOn" | "discountAmountEarly" | "collectionStatus" | "collectionAgencyId" | "collectionHandedAt" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
1392
+ readonly "invoices": "id" | "tenant" | "kind" | "number" | "identifier" | "original" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "currency" | "status" | "termsDays" | "issuedOn" | "dueOn" | "paidTotal" | "creditedTotal" | "paidAt" | "voidedAt" | "voidReason" | "writeOffReason" | "note" | "originType" | "originId" | "depositBps" | "depositAmount" | "discountBps" | "discountAmount" | "pricesIncludeTax" | "archivedAt" | "direction" | "supplierReference" | "purchaseOrder" | "dimensions" | "dunningLevel" | "dunningAt" | "dunningPausedUntil" | "buyer" | "paymentTermsId" | "discountDueOn" | "discountAmountEarly" | "collectionStatus" | "collectionAgencyId" | "collectionHandedAt" | "template" | "sourceTemplate" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
1393
1393
  readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt" | "taxCodeId" | "unitCost" | "discountAmount" | "costSource" | "locationId" | "binId" | "billingParty" | "billingPartyId" | "billingAccountId" | "dimensions";
1394
1394
  readonly "charges": "id" | "tenant" | "invoice" | "amount" | "currency" | "description" | "createdBy" | "createdAt";
1395
1395
  readonly "dunningLevels": "id" | "tenant" | "level" | "daysAfterDue" | "templateKey" | "textKey" | "fee" | "final" | "createdAt" | "updatedAt";
@@ -1403,11 +1403,11 @@ interface BlockNameRegistry {
1403
1403
  readonly "eEndpoints": "id" | "tenant" | "partyKind" | "partyId" | "scheme" | "endpoint" | "createdAt" | "updatedAt";
1404
1404
  readonly "eDeliveries": "id" | "tenant" | "invoice" | "direction" | "format" | "channel" | "messageId" | "state" | "reason" | "documentHash" | "createdAt" | "updatedAt";
1405
1405
  };
1406
- readonly functions: "add_invoice_charge" | "allocate_payment" | "apply_party_credit" | "approve_purchase_invoice" | "create_invoice" | "credit_invoice" | "delete_invoice" | "document_totals_by_billing_party" | "find_e_endpoint_party" | "hand_over_to_collection" | "import_credit_note" | "import_invoice" | "import_invoice_document" | "import_open_item" | "invoice_aging" | "invoice_approval_state" | "invoice_e_endpoints" | "invoice_match_result" | "invoice_updated_at" | "issue_invoice" | "list_e_invoice_deliveries" | "list_invoice_allocations" | "list_invoice_approval_levels" | "list_invoice_dunning_history" | "list_invoice_dunning_levels" | "list_invoice_dunning_run_items" | "list_invoice_dunning_runs" | "list_invoice_payments" | "list_party_credits" | "open_item_ageing" | "open_items_for_party" | "pause_invoice_dunning" | "purchase_bill_match" | "purchase_invoice_approval_status" | "recompute_invoice_totals" | "record_e_invoice_delivery" | "record_invoice_payment" | "record_party_payment" | "remove_invoice_charge" | "reverse_invoice_payment" | "run_invoice_dunning" | "set_e_invoice_delivery_state" | "set_invoice_approval_levels" | "set_invoice_dunning_levels" | "set_invoice_e_endpoint" | "set_invoice_lines" | "set_invoice_lines_recount" | "unallocate_payment" | "update_invoice" | "void_invoice" | "write_off_invoice";
1406
+ readonly functions: "add_invoice_charge" | "allocate_payment" | "apply_party_credit" | "approve_purchase_invoice" | "clone_invoice" | "create_invoice" | "credit_invoice" | "delete_invoice" | "document_totals_by_billing_party" | "find_e_endpoint_party" | "hand_over_to_collection" | "import_credit_note" | "import_invoice" | "import_invoice_document" | "import_open_item" | "invoice_aging" | "invoice_approval_state" | "invoice_e_endpoints" | "invoice_match_result" | "invoice_updated_at" | "issue_invoice" | "list_e_invoice_deliveries" | "list_invoice_allocations" | "list_invoice_approval_levels" | "list_invoice_dunning_history" | "list_invoice_dunning_levels" | "list_invoice_dunning_run_items" | "list_invoice_dunning_runs" | "list_invoice_payments" | "list_party_credits" | "open_item_ageing" | "open_items_for_party" | "pause_invoice_dunning" | "purchase_bill_match" | "purchase_invoice_approval_status" | "recompute_invoice_totals" | "record_e_invoice_delivery" | "record_invoice_payment" | "record_party_payment" | "remove_invoice_charge" | "reverse_invoice_payment" | "run_invoice_dunning" | "set_e_invoice_delivery_state" | "set_invoice_approval_levels" | "set_invoice_dunning_levels" | "set_invoice_e_endpoint" | "set_invoice_lines" | "set_invoice_lines_recount" | "unallocate_payment" | "update_invoice" | "void_invoice" | "write_off_invoice";
1407
1407
  readonly actions: "read" | "write" | "manage" | "purchase" | "overrideMatch" | "collect" | "approve" | "send" | "create" | "update" | "issue" | "payment" | "credit" | "charge" | "void" | "writeOff" | "reverse" | "delete";
1408
- readonly hooks: "before_invoice_issue" | "after_invoice_issue" | "before_invoice_payment" | "after_invoice_payment";
1408
+ readonly hooks: "before_invoice_issue" | "after_invoice_issue" | "before_invoice_payment" | "after_invoice_payment" | "before_invoice_clone" | "after_invoice_clone";
1409
1409
  readonly entities: {
1410
- readonly "invoice": "id" | "tenant_id" | "kind" | "number" | "identifier" | "original_id" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "currency" | "status" | "terms_days" | "issued_on" | "due_on" | "paid_total" | "credited_total" | "paid_at" | "voided_at" | "void_reason" | "write_off_reason" | "note" | "origin_type" | "origin_id" | "deposit_bps" | "deposit_amount" | "discount_bps" | "discount_amount" | "prices_include_tax" | "archived_at" | "direction" | "supplier_reference" | "purchase_order_id" | "dimensions" | "dunning_level" | "dunning_at" | "dunning_paused_until" | "buyer" | "payment_terms_id" | "discount_due_on" | "discount_amount_early" | "collection_status" | "collection_agency_id" | "collection_handed_at" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
1410
+ readonly "invoice": "id" | "tenant_id" | "kind" | "number" | "identifier" | "original_id" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "currency" | "status" | "terms_days" | "issued_on" | "due_on" | "paid_total" | "credited_total" | "paid_at" | "voided_at" | "void_reason" | "write_off_reason" | "note" | "origin_type" | "origin_id" | "deposit_bps" | "deposit_amount" | "discount_bps" | "discount_amount" | "prices_include_tax" | "archived_at" | "direction" | "supplier_reference" | "purchase_order_id" | "dimensions" | "dunning_level" | "dunning_at" | "dunning_paused_until" | "buyer" | "payment_terms_id" | "discount_due_on" | "discount_amount_early" | "collection_status" | "collection_agency_id" | "collection_handed_at" | "template_id" | "source_template_id" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
1411
1411
  };
1412
1412
  readonly primary: "invoice";
1413
1413
  readonly formerKeys: never;
@@ -1810,7 +1810,7 @@ interface BlockNameRegistry {
1810
1810
  readonly "carts": "id" | "tenant" | "user" | "currency" | "priceList" | "status" | "email" | "shippingAddress" | "billingAddress" | "shippingRate" | "createdAt" | "updatedAt" | "convertedAt";
1811
1811
  readonly "cartLines": "id" | "tenant" | "cart" | "variant" | "quantity" | "unitAmount" | "createdAt" | "updatedAt";
1812
1812
  readonly "shippingRates": "id" | "tenant" | "name" | "countries" | "currency" | "kind" | "amount" | "perKg" | "freeOver" | "active" | "createdAt" | "updatedAt";
1813
- readonly "orders": "id" | "tenant" | "number" | "sequence" | "cart" | "customer" | "email" | "status" | "currency" | "subtotal" | "discountTotal" | "shippingTotal" | "taxTotal" | "total" | "paidTotal" | "refundedTotal" | "taxInclusive" | "shippingAddress" | "billingAddress" | "shipping" | "promotions" | "tax" | "taxTransaction" | "invoiceNumber" | "invoiceSequence" | "invoicedAt" | "placedAt" | "paidAt" | "fulfilledAt" | "completedAt" | "cancelledAt" | "cancelReason" | "originType" | "originId" | "buyer" | "variantOf" | "variantLabel" | "isSelected" | "updatedAt";
1813
+ readonly "orders": "id" | "tenant" | "number" | "sequence" | "template" | "sourceTemplate" | "cart" | "customer" | "email" | "status" | "currency" | "subtotal" | "discountTotal" | "shippingTotal" | "taxTotal" | "total" | "paidTotal" | "refundedTotal" | "taxInclusive" | "shippingAddress" | "billingAddress" | "shipping" | "promotions" | "tax" | "taxTransaction" | "invoiceNumber" | "invoiceSequence" | "invoicedAt" | "placedAt" | "paidAt" | "fulfilledAt" | "completedAt" | "cancelledAt" | "cancelReason" | "originType" | "originId" | "buyer" | "variantOf" | "variantLabel" | "isSelected" | "updatedAt";
1814
1814
  readonly "orderLines": "id" | "tenant" | "order" | "position" | "variant" | "product" | "sku" | "title" | "quantity" | "unitAmount" | "subtotal" | "discount" | "tax" | "total" | "requiresShipping" | "location" | "reservation" | "fulfilled" | "returned" | "backordered" | "taxCodeId" | "unitCost" | "costSource" | "binId" | "billingParty" | "billingPartyId" | "billingAccountId";
1815
1815
  readonly "payments": "id" | "tenant" | "order" | "provider" | "reference" | "status" | "currency" | "amount" | "captured" | "refunded" | "createdAt" | "updatedAt";
1816
1816
  readonly "fulfillments": "id" | "tenant" | "order" | "location" | "status" | "carrier" | "trackingNumber" | "trackingUrl" | "createdAt" | "shippedAt" | "deliveredAt";
@@ -1826,7 +1826,7 @@ interface BlockNameRegistry {
1826
1826
  readonly actions: "manage" | "read" | "prepare" | "overrideCredit";
1827
1827
  readonly hooks: "before_order_place" | "after_order_place" | "before_fulfillment_create" | "after_fulfillment_create" | "before_refund_create" | "after_refund_create";
1828
1828
  readonly entities: {
1829
- readonly "order": "id" | "tenant_id" | "number" | "sequence" | "cart_id" | "customer_id" | "email" | "status" | "currency" | "subtotal" | "discount_total" | "shipping_total" | "tax_total" | "total" | "paid_total" | "refunded_total" | "tax_inclusive" | "shipping_address" | "billing_address" | "shipping" | "promotions" | "tax" | "tax_transaction" | "invoice_number" | "invoice_sequence" | "invoiced_at" | "placed_at" | "paid_at" | "fulfilled_at" | "completed_at" | "cancelled_at" | "cancel_reason" | "origin_type" | "origin_id" | "buyer" | "variant_of" | "variant_label" | "is_selected" | "updated_at";
1829
+ readonly "order": "id" | "tenant_id" | "number" | "sequence" | "template_id" | "source_template_id" | "cart_id" | "customer_id" | "email" | "status" | "currency" | "subtotal" | "discount_total" | "shipping_total" | "tax_total" | "total" | "paid_total" | "refunded_total" | "tax_inclusive" | "shipping_address" | "billing_address" | "shipping" | "promotions" | "tax" | "tax_transaction" | "invoice_number" | "invoice_sequence" | "invoiced_at" | "placed_at" | "paid_at" | "fulfilled_at" | "completed_at" | "cancelled_at" | "cancel_reason" | "origin_type" | "origin_id" | "buyer" | "variant_of" | "variant_label" | "is_selected" | "updated_at";
1830
1830
  readonly "cart": "id" | "tenant_id" | "user_id" | "currency" | "price_list_id" | "status" | "email" | "shipping_address" | "billing_address" | "shipping_rate_id" | "created_at" | "updated_at" | "converted_at";
1831
1831
  };
1832
1832
  readonly primary: "order";
@@ -2037,17 +2037,17 @@ interface BlockNameRegistry {
2037
2037
  };
2038
2038
  readonly "quotes": {
2039
2039
  readonly tables: {
2040
- 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" | "buyer" | "variantOf" | "variantLabel" | "isSelected" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
2040
+ 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" | "buyer" | "variantOf" | "variantLabel" | "isSelected" | "template" | "sourceTemplate" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
2041
2041
  readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt" | "section" | "optional" | "selected" | "periods" | "taxCodeId" | "unitCost" | "discountAmount" | "costSource" | "locationId" | "binId" | "billingParty" | "billingPartyId" | "billingAccountId";
2042
2042
  readonly "versions": "id" | "tenant" | "quote" | "revision" | "snapshot" | "total" | "currency" | "publishedBy" | "publishedAt";
2043
2043
  readonly "versionLines": "id" | "tenant" | "version" | "position" | "description" | "quantity" | "unitAmount" | "periods" | "discountBps" | "taxRateBps" | "taxCode" | "section" | "optional" | "selected" | "productType" | "productId";
2044
2044
  readonly "taxLines": "id" | "tenant" | "parent" | "taxRateBps" | "taxCode" | "net" | "tax" | "gross" | "discount";
2045
2045
  };
2046
- readonly functions: "create_quote" | "create_quote_variant" | "decide_quote" | "expire_quotes" | "import_quote" | "list_quote_variants" | "portal_quote" | "public_quote" | "quote_totals_by_billing_party" | "quote_updated_at" | "quote_version" | "quote_versions" | "respond_to_portal_quote" | "respond_to_quote" | "revise_quote" | "select_quote_variant" | "send_quote" | "set_quote_lines" | "set_quote_lines_recount" | "update_quote" | "withdraw_quote";
2046
+ readonly functions: "clone_quote" | "create_quote" | "create_quote_variant" | "decide_quote" | "expire_quotes" | "import_quote" | "list_quote_variants" | "portal_quote" | "public_quote" | "quote_totals_by_billing_party" | "quote_updated_at" | "quote_version" | "quote_versions" | "respond_to_portal_quote" | "respond_to_quote" | "revise_quote" | "select_quote_variant" | "send_quote" | "set_quote_lines" | "set_quote_lines_recount" | "update_quote" | "withdraw_quote";
2047
2047
  readonly actions: "read" | "write" | "manage";
2048
- readonly hooks: "before_quote_send" | "after_quote_send" | "before_quote_accept" | "after_quote_accept";
2048
+ readonly hooks: "before_quote_send" | "after_quote_send" | "before_quote_accept" | "after_quote_accept" | "before_quote_clone" | "after_quote_clone";
2049
2049
  readonly entities: {
2050
- 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" | "buyer" | "variant_of" | "variant_label" | "is_selected" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
2050
+ 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" | "buyer" | "variant_of" | "variant_label" | "is_selected" | "template_id" | "source_template_id" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
2051
2051
  };
2052
2052
  readonly primary: "quote";
2053
2053
  readonly formerKeys: never;
@@ -2517,17 +2517,17 @@ interface BlockNameRegistry {
2517
2517
  };
2518
2518
  readonly "tasks": {
2519
2519
  readonly tables: {
2520
- readonly "items": "id" | "tenant" | "number" | "identifier" | "title" | "body" | "parent" | "team" | "project" | "iteration" | "priority" | "estimate" | "progress" | "startAt" | "endAt" | "dueAt" | "pipeline" | "stage" | "stageEnteredAt" | "state" | "closeReason" | "closedAt" | "locked" | "rank" | "archivedAt" | "recursFrom" | "createdBy" | "createdAt" | "updatedAt";
2520
+ readonly "items": "id" | "tenant" | "number" | "identifier" | "title" | "body" | "parent" | "team" | "project" | "iteration" | "priority" | "estimate" | "progress" | "startAt" | "endAt" | "dueAt" | "pipeline" | "stage" | "stageEnteredAt" | "state" | "closeReason" | "closedAt" | "locked" | "rank" | "archivedAt" | "template" | "sourceTemplate" | "recursFrom" | "createdBy" | "createdAt" | "updatedAt";
2521
2521
  readonly "checklist": "id" | "tenant" | "item" | "title" | "done" | "doneAt" | "doneBy" | "rank" | "createdBy" | "createdAt";
2522
2522
  readonly "assignees": "tenant" | "item" | "user" | "createdAt";
2523
2523
  readonly "projects": "id" | "tenant" | "key" | "name" | "owner" | "status" | "startOn" | "targetOn" | "budgetAmount" | "budgetCurrency" | "budgetHours" | "archivedAt" | "createdAt" | "updatedAt";
2524
2524
  readonly "iterations": "id" | "tenant" | "team" | "name" | "startsOn" | "endsOn" | "createdAt";
2525
2525
  };
2526
- readonly functions: "archive_task" | "archive_tasks" | "create_task" | "delete_task" | "delete_task_checklist_item" | "delete_tasks" | "get_task" | "list_task_checklist" | "list_tasks" | "save_iteration" | "save_project" | "save_task_checklist_item" | "set_task_assignees" | "task_tree" | "update_tasks";
2526
+ readonly functions: "archive_task" | "archive_tasks" | "clone_task" | "create_task" | "delete_task" | "delete_task_checklist_item" | "delete_tasks" | "get_task" | "list_task_checklist" | "list_tasks" | "save_iteration" | "save_project" | "save_task_checklist_item" | "set_task_assignees" | "task_tree" | "update_tasks";
2527
2527
  readonly actions: "read" | "write" | "manage" | "create" | "delete";
2528
- readonly hooks: "before_task_create" | "after_task_create" | "before_task_update" | "after_task_update";
2528
+ readonly hooks: "before_task_create" | "after_task_create" | "before_task_update" | "after_task_update" | "before_task_clone" | "after_task_clone";
2529
2529
  readonly entities: {
2530
- readonly "task": "id" | "tenant_id" | "number" | "identifier" | "title" | "body" | "parent_id" | "team_id" | "project_id" | "iteration_id" | "priority" | "estimate" | "progress" | "start_at" | "end_at" | "due_at" | "pipeline_id" | "stage_id" | "stage_entered_at" | "state" | "close_reason" | "closed_at" | "locked" | "rank" | "archived_at" | "recurs_from" | "created_by" | "created_at" | "updated_at";
2530
+ readonly "task": "id" | "tenant_id" | "number" | "identifier" | "title" | "body" | "parent_id" | "team_id" | "project_id" | "iteration_id" | "priority" | "estimate" | "progress" | "start_at" | "end_at" | "due_at" | "pipeline_id" | "stage_id" | "stage_entered_at" | "state" | "close_reason" | "closed_at" | "locked" | "rank" | "archived_at" | "template_id" | "source_template_id" | "recurs_from" | "created_by" | "created_at" | "updated_at";
2531
2531
  readonly "project": "id" | "tenant_id" | "key" | "name" | "owner_user_id" | "status" | "start_on" | "target_on" | "budget_amount" | "budget_currency" | "budget_hours" | "archived_at" | "created_at" | "updated_at";
2532
2532
  readonly "iteration": "id" | "tenant_id" | "team_id" | "name" | "starts_on" | "ends_on" | "created_at";
2533
2533
  readonly "checklist_item": "id" | "tenant_id" | "task_id" | "title" | "done" | "done_at" | "done_by" | "rank" | "created_by" | "created_at";
@@ -2577,7 +2577,7 @@ interface BlockNameRegistry {
2577
2577
  readonly "schedules": "id" | "template" | "tenant" | "input" | "enabled" | "createdBy" | "createdAt" | "updatedAt";
2578
2578
  readonly "runs": "schedule" | "tenant" | "occurrence" | "application" | "createdAt";
2579
2579
  };
2580
- readonly functions: "fork_template" | "publish_template_version" | "record_template_application" | "remove_template" | "save_template" | "save_template_draft" | "set_default_template" | "sync_templates" | "template_applications_list" | "template_apply_target" | "template_get" | "template_versions_list" | "templates_list";
2580
+ readonly functions: "clone_row" | "fork_template" | "publish_template_version" | "record_template_application" | "remove_template" | "save_template" | "save_template_draft" | "set_default_template" | "sync_templates" | "template_applications_list" | "template_apply_target" | "template_get" | "template_row_guard" | "template_table" | "template_versions_list" | "templates_list";
2581
2581
  readonly actions: "read" | "apply" | "manage";
2582
2582
  readonly hooks: "before_template_save" | "after_template_save" | "before_template_apply" | "after_template_apply";
2583
2583
  readonly entities: {
@@ -3400,6 +3400,18 @@ interface SubjectConfig {
3400
3400
  * column.
3401
3401
  */
3402
3402
  readonly deletedAt?: string;
3403
+ /**
3404
+ * The column that marks a template row. While it is set, numbering, search,
3405
+ * pipelines, the state machine and domain events skip the row. An object also
3406
+ * names the child tables a clone copies. ADR 0244.
3407
+ */
3408
+ readonly template?: string | {
3409
+ readonly column: string;
3410
+ readonly children?: readonly {
3411
+ readonly table: string;
3412
+ readonly column: string;
3413
+ }[];
3414
+ };
3403
3415
  /**
3404
3416
  * The column holding a legal hold's end time. The trash block keeps a batch
3405
3417
  * with a held subject in the trash instead of purging it.
@@ -4198,6 +4210,8 @@ type InventorySqlOptions = {
4198
4210
  * .kinds`): each goods receipt opens an inspection of that kind.
4199
4211
  */
4200
4212
  readonly receiptInspection?: string;
4213
+ /** Purchase orders can be template rows. ADR 0244. */
4214
+ readonly templates?: boolean;
4201
4215
  };
4202
4216
  /** `blocks.invoices.options`. */
4203
4217
  type InvoicesSqlOptions = {
@@ -4281,6 +4295,10 @@ type InvoicesSqlOptions = {
4281
4295
  * `false`.
4282
4296
  */
4283
4297
  readonly searchColumn?: boolean;
4298
+ /** Template rows skip events and cannot be issued. ADR 0244. */
4299
+ readonly templates?: boolean;
4300
+ /** A live invoice still needs a customer when template rows are on. */
4301
+ readonly requireParty?: boolean;
4284
4302
  };
4285
4303
  /** `blocks.knowledge.options`. */
4286
4304
  type KnowledgeSqlOptions = {
@@ -4676,6 +4694,8 @@ type OrdersSqlOptions = {
4676
4694
  * Default `false`, so lines price as before.
4677
4695
  */
4678
4696
  readonly discountMatrix?: boolean;
4697
+ /** Template rows take no number, no stock allocation and no order.placed. ADR 0244. */
4698
+ readonly templates?: boolean;
4679
4699
  };
4680
4700
  /** `blocks.organizations.options`. */
4681
4701
  type OrganizationsSqlOptions = {
@@ -4929,6 +4949,10 @@ type QuotesSqlOptions = {
4929
4949
  * Default `false`, so lines price as before.
4930
4950
  */
4931
4951
  readonly discountMatrix?: boolean;
4952
+ /** Template rows skip numbering, search, state changes and events. ADR 0244. */
4953
+ readonly templates?: boolean;
4954
+ /** A live quote still needs a customer when template rows are on. */
4955
+ readonly requireParty?: boolean;
4932
4956
  };
4933
4957
  /** `blocks.reactions.options`. */
4934
4958
  type ReactionsSqlOptions = {
@@ -5218,6 +5242,12 @@ type TasksSqlOptions = {
5218
5242
  * `false`.
5219
5243
  */
5220
5244
  readonly searchColumn?: boolean;
5245
+ /**
5246
+ * Rows with `template_id` set are templates: they take no number, no search
5247
+ * document, no pipeline history and no domain events. Needs the templates
5248
+ * block. ADR 0244.
5249
+ */
5250
+ readonly templates?: boolean;
5221
5251
  };
5222
5252
  /** `blocks.teams.options`. */
5223
5253
  type TeamsSqlOptions = {
@@ -5250,6 +5280,11 @@ type TemplatesSqlOptions = {
5250
5280
  */
5251
5281
  readonly brand?: TemplateBrandColumn;
5252
5282
  readonly extraColumns?: ExtraColumns;
5283
+ /**
5284
+ * Template types this app registers. A block can contribute its own. An empty
5285
+ * registry keeps free-form types. ADR 0244.
5286
+ */
5287
+ readonly types?: Readonly<Record<string, unknown>>;
5253
5288
  };
5254
5289
  /** `blocks.time-tracking.options`. */
5255
5290
  type TimeTrackingSqlOptions = {
@@ -2,7 +2,7 @@ import { g as isSessionSnapshot, m as SessionSnapshot } from "../resolve-B9Rn2M5
2
2
  import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
3
3
  import { K as permissionCapOf } from "../types-CTb0Uroz.js";
4
4
  import { a as isUserSession, i as isApiKeySession, n as AuthSession, r as UserSession, t as ApiKeySession } from "../view-CVXHgadI.js";
5
- import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-Go8BHqhr.js";
6
- import { t as tenantOf } from "../tenant-BpJ2F2b_.js";
7
- import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-DxXor_NY.js";
5
+ import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-QwMag409.js";
6
+ import { t as tenantOf } from "../tenant-BTxVWIN6.js";
7
+ import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-Bi4WvjnM.js";
8
8
  export { AUTHZ_VERSION_CLAIM, type ApiKeySession, type AuthSession, type ClaimsRecord, type ClaimsSource, type EntitlementClaimOptions, FEATURES_CLAIM, MEMBERSHIPS_CLAIM, type MembershipClaim, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, type PermissionsOfOptions, type SessionSnapshot, type UserSession, decodeEntitlementClaim, isApiKeySession, isSessionSnapshot, isTruncated, isUserSession, permissionCapOf, permissionsOf, tenantOf };
@@ -2,8 +2,8 @@ import { o as providerLabel } from "./authorization-DAYgx04b.js";
2
2
  import { n as CliError } from "./errors-DcJ_PayO.js";
3
3
  import { r as applyPlan } from "./files-DQayErI8.js";
4
4
  import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-C6sQ1MqT.js";
5
- import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-hrxX3YKU.js";
6
- import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-BtM7o-sI.js";
5
+ import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-DWZVnoDw.js";
6
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-CFzA4xdr.js";
7
7
  import { basename, dirname } from "node:path";
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-DT2QsJB0.js";
@@ -2,22 +2,22 @@ import { a as parseNames, n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-CLvgELKk.js";
3
3
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
4
4
  import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
5
- import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-DQtpMu-g.js";
6
- import { t as VERSION } from "./version-DWDoiP5_.js";
5
+ import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-D-QnV2BW.js";
6
+ import { t as VERSION } from "./version-D1sJX6_6.js";
7
7
  import { n as installCommand, t as detectProject } from "./detect-ad_V_zja.js";
8
- import { t as addModules } from "./add-BQZbFEAP.js";
8
+ import { t as addModules } from "./add--O_HFhs0.js";
9
9
  import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-C6sQ1MqT.js";
10
- import { n as dataMigration } from "./migrations-DGJJ1rHt.js";
11
- import { n as adoptionContext } from "./app-tables-ChZE8Z_L.js";
12
- import { a as toCatalog } from "./source-BgFNrRcl.js";
10
+ import { n as dataMigration } from "./migrations-8dDFF8SW.js";
11
+ import { n as adoptionContext } from "./app-tables-D34g1ASz.js";
12
+ import { a as toCatalog } from "./source-Buw7eODS.js";
13
13
  import { i as plain } from "./style-B5-nByxb.js";
14
- import { t as loadSnapshot } from "./snapshot-B-1tPbV4.js";
15
- import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-FN5Cp861.js";
16
- import { t as appTablePlan } from "./app-table-files-C5Sx2Qao.js";
14
+ import { t as loadSnapshot } from "./snapshot-BZGZ9pB-.js";
15
+ import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-DdkxiGjH.js";
16
+ import { t as appTablePlan } from "./app-table-files-BjMDa_7_.js";
17
17
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
18
- import { t as syncModules } from "./sync-BtM7o-sI.js";
19
- import { t as blockNames } from "./blocks-Csu6lLqC.js";
20
- import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-DC8snM7e.js";
18
+ import { t as syncModules } from "./sync-CFzA4xdr.js";
19
+ import { t as blockNames } from "./blocks-DKs7Qj8R.js";
20
+ import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-C3_mMci3.js";
21
21
  import { existsSync } from "node:fs";
22
22
  import { dirname, join, posix, resolve } from "node:path";
23
23
  import { readFile } from "node:fs/promises";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
3
- import { r as literal } from "./live-DMNuAml9.js";
4
- import { r as layoutFor } from "./providers-hrxX3YKU.js";
5
- import { h as subjectTagArgs } from "./config-FN5Cp861.js";
3
+ import { r as literal } from "./live-C4uCg3ME.js";
4
+ import { r as layoutFor } from "./providers-DWZVnoDw.js";
5
+ import { h as subjectTagArgs } from "./config-DdkxiGjH.js";
6
6
  import { join, resolve, sep } from "node:path";
7
7
  import { APP_TABLES_MODULE, renderBlocks, setTableFeature } from "better-supabase/sql";
8
8
  import { FIELD_FORMATS } from "better-supabase/config";
@@ -1,6 +1,6 @@
1
1
  import { t as accessProviderMode } from "./authorization-DAYgx04b.js";
2
- import { s as writtenByBlocks } from "./sql-layout-byUur5FC.js";
3
- import { s as qualified, t as catalogOf } from "./shared-D_DZ9MfG.js";
2
+ import { s as writtenByBlocks } from "./sql-layout-BZ-NhhTI.js";
3
+ import { s as qualified, t as catalogOf } from "./shared-BoVOOrpJ.js";
4
4
  import { declaredTables, resolveBlocks } from "better-supabase/sql";
5
5
  // src/cli/doctor/app-tables.ts
6
6
  /**
@@ -1,10 +1,10 @@
1
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-FN5Cp861.js";
1
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DdkxiGjH.js";
2
2
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
3
3
  import { m as commandMeta, r as defineCliCommand } from "./command-CLvgELKk.js";
4
4
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
5
5
  import { t as connect } from "./db-B8zfxjl2.js";
6
- import { n as ident } from "./live-DMNuAml9.js";
7
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-DC8snM7e.js";
6
+ import { n as ident } from "./live-C4uCg3ME.js";
7
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-C3_mMci3.js";
8
8
  // src/cli/commands/backfill.ts
9
9
  const DEFAULT_BATCH = 1e3;
10
10
  const ARGS = {
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-BcI6KXV3.js";
2
+ import { i as run } from "./run-GcSBgXCH.js";
3
3
  import { t as colorEnabled } from "./style-B5-nByxb.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-Csu6lLqC.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-DKs7Qj8R.js";
@@ -1,7 +1,7 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-CLvgELKk.js";
2
2
  import { n as CliError } from "./errors-DcJ_PayO.js";
3
3
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
4
- import { n as listModules, t as printModule } from "./print-DAwLAC-7.js";
4
+ import { n as listModules, t as printModule } from "./print-orgMiDzp.js";
5
5
  import { t as decodePresetInput } from "./preset-BQnjDCSR.js";
6
6
  import { SQL_MODULES, renamedBlock } from "better-supabase/sql";
7
7
  import { BLOCK_CATEGORIES } from "better-supabase/blocks";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-DWDoiP5_.js";
1
+ import { t as VERSION } from "./version-D1sJX6_6.js";
2
2
  import { dirname, resolve } from "node:path";
3
3
  import { createHash } from "node:crypto";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-C6sQ1MqT.js";
2
- import { i as schemasDirOf, n as migrationsDir, s as writtenByBlocks } from "./sql-layout-byUur5FC.js";
2
+ import { i as schemasDirOf, n as migrationsDir, s as writtenByBlocks } from "./sql-layout-BZ-NhhTI.js";
3
3
  import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-D8Jfku6I.js";
4
4
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
5
5
  import { a as rewriteObjectInputCalls, c as PLUGIN_IMPORT_RENAMES, f as SUBPATH_RENAMES_0_15, o as BLOCK_EXPORT_RENAMES, p as renameSubpaths, r as arrayEntries, t as PROMISE_ALL, u as REVIEW_0_15 } from "./round-trips-rnu6_HKg.js";
@@ -1753,6 +1753,13 @@ const FLAT = {
1753
1753
  cascade: optional(boolean()),
1754
1754
  history: optional(array(string())),
1755
1755
  deletedAt: optional(string()),
1756
+ template: optional(union([string(), strictObject({
1757
+ column: string(),
1758
+ children: optional(array(strictObject({
1759
+ table: string(),
1760
+ column: string()
1761
+ })))
1762
+ })])),
1756
1763
  held: optional(string()),
1757
1764
  readAccess: optional(picklist(["tenant", "record"])),
1758
1765
  team: optional(strictObject({ actions: strings })),
@@ -1 +1 @@
1
- export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-FN5Cp861.js";
1
+ export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-DdkxiGjH.js";