better-supabase 0.53.0 → 0.54.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 (640) hide show
  1. package/README.md +1 -1
  2. package/dist/{activities-B0ENjxY5.d.ts → activities-DPq0U9Nb.d.ts} +6 -6
  3. package/dist/{adapter-CJa5ys5O.js → adapter-D7GH81nF.js} +44 -0
  4. package/dist/{agents-D_EOJyJM.d.ts → agents-BOzK0MbI.d.ts} +4 -4
  5. package/dist/{agents-BrLBg0gC.d.ts → agents-DcZk8HBB.d.ts} +6 -6
  6. package/dist/{ai-cache-DkBo2zOv.d.ts → ai-cache-BvDaB1pY.d.ts} +4 -4
  7. package/dist/{ai-chat-B1tvHB75.d.ts → ai-chat-DiXgrAd3.d.ts} +4 -4
  8. package/dist/{ai-guardrails-DRstFl-d.d.ts → ai-guardrails-DEofLB_z.d.ts} +3 -3
  9. package/dist/{ai-schedules-Dfbcor59.d.ts → ai-schedules-b-uWaxba.d.ts} +5 -5
  10. package/dist/ai-sdk/agents/index.d.ts +2 -2
  11. package/dist/ai-sdk/batches/index.d.ts +3 -3
  12. package/dist/ai-sdk/cache/index.d.ts +1 -1
  13. package/dist/ai-sdk/chat/index.d.ts +2 -2
  14. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  15. package/dist/ai-sdk/files/index.d.ts +1 -1
  16. package/dist/ai-sdk/index.d.ts +8 -8
  17. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  18. package/dist/ai-sdk/memory/index.d.ts +3 -3
  19. package/dist/ai-sdk/workflow/index.d.ts +4 -4
  20. package/dist/{api-CGYctFBt.d.ts → api-8Q1VgGJT.d.ts} +5 -5
  21. package/dist/{api-keys-COJAXdGF.d.ts → api-keys-Dqif78kM.d.ts} +4 -4
  22. package/dist/{app-tables-CZLNOXeA.d.ts → app-tables-B2xNMyLA.d.ts} +1 -1
  23. package/dist/{approvals-Ds7pFvnl.d.ts → approvals-DnabEGo2.d.ts} +6 -6
  24. package/dist/{assistant-DLKGA2nm.d.ts → assistant-Du8hceVj.d.ts} +2 -2
  25. package/dist/astro/index.d.ts +7 -7
  26. package/dist/astro/index.js +2 -2
  27. package/dist/{attachments-Djs8uyat.js → attachments-sZnT13hL.js} +5 -1
  28. package/dist/auth/index.d.ts +8 -0
  29. package/dist/auth/index.js +1 -0
  30. package/dist/{authorization-UYejwQsk.d.ts → authorization-Bk6cLL5f.d.ts} +1 -1
  31. package/dist/{authorization-hooks-BiMwxiZN.d.ts → authorization-hooks-DM_ijJsD.d.ts} +2 -2
  32. package/dist/{banking-reads-M3pbqqke.js → banking-reads-C41R4bEw.js} +1 -1
  33. package/dist/better-result/index.d.ts +3 -3
  34. package/dist/{bind-D4qLTlY4.d.ts → bind-DWElQa6I.d.ts} +7 -7
  35. package/dist/{block-authors-C5z3tGVu.d.ts → block-authors-BkayxCWo.d.ts} +2 -0
  36. package/dist/{block-authors-BUczGqr5.js → block-authors-Dt8tG1o9.js} +2 -1
  37. package/dist/{block-env-BLBr90is.d.ts → block-env-CQQUMPYZ.d.ts} +4 -4
  38. package/dist/{block-event-listener-CaR-FW5X.d.ts → block-event-listener-DannKfYZ.d.ts} +1 -1
  39. package/dist/{block-events-records-CMq4TElv.d.ts → block-events-records-BhqpDl-4.d.ts} +1 -1
  40. package/dist/{block-helpers-YOdaCxWE.d.ts → block-helpers-rTsuHt6v.d.ts} +1 -1
  41. package/dist/{block-hooks-xAMR6WdT.d.ts → block-hooks-FM9t7ol_.d.ts} +2 -2
  42. package/dist/{block-subjects-Cvd-RaMY.js → block-subjects-9KU6Q6-3.js} +6 -4
  43. package/dist/{block-subjects-B8PmdWEd.d.ts → block-subjects-B6qEt8WO.d.ts} +1 -1
  44. package/dist/{block-tables-BkgafSZd.d.ts → block-tables-JC1dMLaA.d.ts} +1 -1
  45. package/dist/{block-transport-DBteddOY.d.ts → block-transport-CP4wAHU-.d.ts} +2 -2
  46. package/dist/blocks/access-requests/index.d.ts +3 -3
  47. package/dist/blocks/accounting/index.d.ts +3 -3
  48. package/dist/blocks/acknowledgements/index.d.ts +2 -2
  49. package/dist/blocks/activities/index.d.ts +6 -6
  50. package/dist/blocks/advisories/index.d.ts +5 -5
  51. package/dist/blocks/agent-checkout/index.d.ts +7 -7
  52. package/dist/blocks/agents/index.d.ts +5 -5
  53. package/dist/blocks/ai-cache/index.d.ts +3 -3
  54. package/dist/blocks/ai-chat/index.d.ts +4 -4
  55. package/dist/blocks/ai-evals/index.d.ts +4 -4
  56. package/dist/blocks/ai-files/index.d.ts +3 -3
  57. package/dist/blocks/ai-guardrails/index.d.ts +4 -4
  58. package/dist/blocks/ai-keys/index.d.ts +4 -4
  59. package/dist/blocks/ai-schedules/index.d.ts +3 -3
  60. package/dist/blocks/announcements/index.d.ts +8 -8
  61. package/dist/blocks/api-keys/index.d.ts +3 -3
  62. package/dist/blocks/appraisals/index.d.ts +5 -5
  63. package/dist/blocks/approvals/index.d.ts +3 -3
  64. package/dist/blocks/assets/index.d.ts +4 -4
  65. package/dist/blocks/assignment/index.d.ts +3 -3
  66. package/dist/blocks/attachments/index.d.ts +11 -11
  67. package/dist/blocks/attachments/index.js +15 -5
  68. package/dist/blocks/audit/index.d.ts +121 -42
  69. package/dist/blocks/audit/index.js +183 -32
  70. package/dist/blocks/automations/index.d.ts +12 -12
  71. package/dist/blocks/banking/index.d.ts +3 -3
  72. package/dist/blocks/banking/index.js +1 -1
  73. package/dist/blocks/billable-time/index.d.ts +3 -3
  74. package/dist/blocks/billing/index.d.ts +6 -6
  75. package/dist/blocks/bookings/index.d.ts +3 -3
  76. package/dist/blocks/bulk/index.d.ts +4 -4
  77. package/dist/blocks/calendar/index.d.ts +3 -3
  78. package/dist/blocks/care/index.d.ts +30 -30
  79. package/dist/blocks/care/index.js +4 -4
  80. package/dist/blocks/care-plans/index.d.ts +6 -6
  81. package/dist/blocks/care-plans/index.js +2 -2
  82. package/dist/blocks/cases/index.d.ts +5 -5
  83. package/dist/blocks/catalog/index.d.ts +4 -4
  84. package/dist/blocks/channels/index.d.ts +7 -7
  85. package/dist/blocks/clinical-decision-support/index.d.ts +4 -4
  86. package/dist/blocks/cms/index.d.ts +7 -7
  87. package/dist/blocks/cms/index.js +2 -2
  88. package/dist/blocks/collaboration/index.d.ts +8 -8
  89. package/dist/blocks/collaboration/index.js +2 -2
  90. package/dist/blocks/collections/index.d.ts +6 -6
  91. package/dist/blocks/comments/index.d.ts +5 -5
  92. package/dist/blocks/comments/index.js +2 -2
  93. package/dist/blocks/commerce/index.d.ts +7 -7
  94. package/dist/blocks/commissions/index.d.ts +5 -5
  95. package/dist/blocks/compliance/index.d.ts +5 -5
  96. package/dist/blocks/connectors/index.d.ts +4 -4
  97. package/dist/blocks/consents/index.d.ts +5 -5
  98. package/dist/blocks/contacts/index.d.ts +5 -5
  99. package/dist/blocks/content/index.d.ts +4 -4
  100. package/dist/blocks/contracts/index.d.ts +6 -6
  101. package/dist/blocks/courses/index.d.ts +5 -5
  102. package/dist/blocks/created-by/index.d.ts +3 -3
  103. package/dist/blocks/crm/index.d.ts +18 -18
  104. package/dist/blocks/crm/index.js +2 -2
  105. package/dist/blocks/custom-fields/index.d.ts +2 -2
  106. package/dist/blocks/dam/index.d.ts +6 -6
  107. package/dist/blocks/dam/index.js +2 -2
  108. package/dist/blocks/data-lifecycle/index.d.ts +3 -3
  109. package/dist/blocks/deadlines/index.d.ts +193 -0
  110. package/dist/blocks/deadlines/index.js +159 -0
  111. package/dist/blocks/deals/index.d.ts +3 -3
  112. package/dist/blocks/dispatch/index.d.ts +4 -4
  113. package/dist/blocks/document-templates/index.d.ts +23 -52
  114. package/dist/blocks/document-templates/index.js +17 -17
  115. package/dist/blocks/documents/index.d.ts +4 -4
  116. package/dist/blocks/domains/index.d.ts +6 -6
  117. package/dist/blocks/donations/index.d.ts +6 -6
  118. package/dist/blocks/drive/index.d.ts +6 -6
  119. package/dist/blocks/drive/index.js +3 -3
  120. package/dist/blocks/e-prescribing/index.d.ts +4 -4
  121. package/dist/blocks/employees/index.d.ts +3 -3
  122. package/dist/blocks/enrichment/index.d.ts +3 -3
  123. package/dist/blocks/enrollments/index.d.ts +4 -4
  124. package/dist/blocks/entitlements/index.d.ts +4 -4
  125. package/dist/blocks/events/index.d.ts +5 -5
  126. package/dist/blocks/expenses/index.d.ts +5 -5
  127. package/dist/blocks/field-history/index.d.ts +3 -3
  128. package/dist/blocks/filespace/index.d.ts +9 -9
  129. package/dist/blocks/filespace/index.js +3 -3
  130. package/dist/blocks/finance/index.d.ts +6 -6
  131. package/dist/blocks/finance/index.js +2 -2
  132. package/dist/blocks/flags/index.d.ts +5 -5
  133. package/dist/blocks/forecasts/index.d.ts +3 -3
  134. package/dist/blocks/forms/index.d.ts +4 -4
  135. package/dist/blocks/funding/index.d.ts +5 -5
  136. package/dist/blocks/goals/index.d.ts +3 -3
  137. package/dist/blocks/governance/index.d.ts +5 -5
  138. package/dist/blocks/guests/index.d.ts +3 -3
  139. package/dist/blocks/hiring/index.d.ts +3 -3
  140. package/dist/blocks/identities/index.d.ts +5 -5
  141. package/dist/blocks/imports/index.d.ts +6 -6
  142. package/dist/blocks/inbox/index.d.ts +10 -10
  143. package/dist/blocks/inbox/index.js +1 -1
  144. package/dist/blocks/incidents/index.d.ts +5 -5
  145. package/dist/blocks/index.d.ts +20 -18
  146. package/dist/blocks/index.js +1 -1
  147. package/dist/blocks/inspections/index.d.ts +6 -6
  148. package/dist/blocks/inventory/index.d.ts +3 -3
  149. package/dist/blocks/invoices/index.d.ts +6 -6
  150. package/dist/blocks/knowledge/index.d.ts +3 -3
  151. package/dist/blocks/lead-scoring/index.d.ts +4 -4
  152. package/dist/blocks/learning/index.d.ts +5 -5
  153. package/dist/blocks/leases/index.d.ts +6 -6
  154. package/dist/blocks/leave/index.d.ts +3 -3
  155. package/dist/blocks/ledger/index.d.ts +6 -6
  156. package/dist/blocks/legal-entities/index.d.ts +6 -6
  157. package/dist/blocks/lims/index.d.ts +6 -6
  158. package/dist/blocks/mail-sync/index.d.ts +5 -5
  159. package/dist/blocks/maintenance/index.d.ts +4 -4
  160. package/dist/blocks/manufacturing/index.d.ts +6 -6
  161. package/dist/blocks/medications/index.d.ts +4 -4
  162. package/dist/blocks/meetings/index.d.ts +5 -5
  163. package/dist/blocks/memberships/index.d.ts +3 -3
  164. package/dist/blocks/memory/index.d.ts +4 -4
  165. package/dist/blocks/messaging/index.d.ts +11 -11
  166. package/dist/blocks/messaging/index.js +1 -1
  167. package/dist/blocks/metrics/index.d.ts +6 -6
  168. package/dist/blocks/mfa/index.d.ts +2 -2
  169. package/dist/blocks/moderation/index.d.ts +7 -7
  170. package/dist/blocks/notifications/index.d.ts +10 -10
  171. package/dist/blocks/numbering/index.d.ts +1 -1
  172. package/dist/blocks/oauth-server/index.d.ts +5 -5
  173. package/dist/blocks/observations/index.d.ts +5 -5
  174. package/dist/blocks/onboarding/index.d.ts +3 -3
  175. package/dist/blocks/option-sets/index.d.ts +183 -0
  176. package/dist/blocks/option-sets/index.js +188 -0
  177. package/dist/blocks/orders/index.d.ts +4 -4
  178. package/dist/blocks/organizations/index.d.ts +4 -4
  179. package/dist/blocks/outbox/index.d.ts +4 -4
  180. package/dist/blocks/passes/index.d.ts +4 -4
  181. package/dist/blocks/payroll-export/index.d.ts +4 -4
  182. package/dist/blocks/payroll-export/index.js +1 -1
  183. package/dist/blocks/people/index.d.ts +8 -8
  184. package/dist/blocks/people/index.js +1 -1
  185. package/dist/blocks/periods/index.d.ts +5 -5
  186. package/dist/blocks/permissions/index.d.ts +7 -7
  187. package/dist/blocks/pipelines/index.d.ts +3 -3
  188. package/dist/blocks/pipelines/index.js +1 -1
  189. package/dist/blocks/posts/index.d.ts +6 -6
  190. package/dist/blocks/procurement/index.d.ts +6 -6
  191. package/dist/blocks/procurement/index.js +1 -1
  192. package/dist/blocks/profiles/index.d.ts +3 -3
  193. package/dist/blocks/profiles/index.js +1 -1
  194. package/dist/blocks/projects/index.d.ts +8 -8
  195. package/dist/blocks/projects/index.js +1 -1
  196. package/dist/blocks/promotions/index.d.ts +3 -3
  197. package/dist/blocks/prompts/index.d.ts +4 -4
  198. package/dist/blocks/push/index.d.ts +7 -7
  199. package/dist/blocks/qualifications/index.d.ts +4 -4
  200. package/dist/blocks/queue/index.d.ts +5 -5
  201. package/dist/blocks/quotes/index.d.ts +5 -5
  202. package/dist/blocks/rank/index.d.ts +4 -4
  203. package/dist/blocks/reactions/index.d.ts +6 -6
  204. package/dist/blocks/recruiting/index.d.ts +5 -5
  205. package/dist/blocks/referrals/index.d.ts +5 -5
  206. package/dist/blocks/relations/index.d.ts +7 -7
  207. package/dist/blocks/reminders/index.d.ts +1 -1
  208. package/dist/blocks/reviews/index.d.ts +5 -5
  209. package/dist/blocks/rfqs/index.d.ts +4 -4
  210. package/dist/blocks/risks/index.d.ts +6 -6
  211. package/dist/blocks/saas/index.d.ts +14 -14
  212. package/dist/blocks/saas/index.js +1 -1
  213. package/dist/blocks/sales/index.d.ts +1 -1
  214. package/dist/blocks/sales/index.js +1 -1
  215. package/dist/blocks/saved-views/index.d.ts +6 -6
  216. package/dist/blocks/scheduling/index.d.ts +6 -6
  217. package/dist/blocks/scores/index.d.ts +6 -6
  218. package/dist/blocks/search/index.d.ts +5 -5
  219. package/dist/blocks/security-events/index.d.ts +7 -7
  220. package/dist/blocks/segments/index.d.ts +4 -4
  221. package/dist/blocks/sequences/index.d.ts +5 -5
  222. package/dist/blocks/service/index.d.ts +8 -8
  223. package/dist/blocks/service-accounts/index.d.ts +5 -5
  224. package/dist/blocks/sessions/index.d.ts +4 -4
  225. package/dist/blocks/settings/index.d.ts +4 -4
  226. package/dist/blocks/share-links/index.d.ts +1 -1
  227. package/dist/blocks/shifts/index.d.ts +4 -4
  228. package/dist/blocks/shipments/index.d.ts +32 -8
  229. package/dist/blocks/shipments/index.js +23 -0
  230. package/dist/blocks/signatures/index.d.ts +3 -3
  231. package/dist/blocks/signing-keys/index.d.ts +3 -3
  232. package/dist/blocks/sla/index.d.ts +3 -3
  233. package/dist/blocks/sso/index.d.ts +6 -6
  234. package/dist/blocks/state-machine/index.d.ts +2 -2
  235. package/dist/blocks/subjects/index.d.ts +7 -7
  236. package/dist/blocks/support/index.d.ts +6 -6
  237. package/dist/blocks/support/index.js +2 -2
  238. package/dist/blocks/tags/index.d.ts +3 -3
  239. package/dist/blocks/tasks/index.d.ts +5 -5
  240. package/dist/blocks/tasks/index.js +1 -1
  241. package/dist/blocks/tax/index.d.ts +4 -4
  242. package/dist/blocks/tax/index.js +1 -1
  243. package/dist/blocks/teams/index.d.ts +1 -1
  244. package/dist/blocks/templates/index.d.ts +8 -8
  245. package/dist/blocks/tills/index.d.ts +5 -5
  246. package/dist/blocks/time-tracking/index.d.ts +3 -3
  247. package/dist/blocks/timeline/index.d.ts +2 -2
  248. package/dist/blocks/trash/index.d.ts +3 -3
  249. package/dist/blocks/undo/index.d.ts +4 -4
  250. package/dist/blocks/updated-at/index.d.ts +3 -3
  251. package/dist/blocks/usage/index.d.ts +4 -4
  252. package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
  253. package/dist/blocks/versions/index.d.ts +2 -2
  254. package/dist/blocks/versions/index.js +1 -1
  255. package/dist/blocks/waitlist/index.d.ts +5 -5
  256. package/dist/blocks/warehouse/index.d.ts +5 -5
  257. package/dist/blocks/webhooks/index.d.ts +13 -13
  258. package/dist/blocks/workflow-editor/index.d.ts +9 -9
  259. package/dist/blocks/workflows/index.d.ts +7 -7
  260. package/dist/{blocks-EFj0duwB.d.ts → blocks-LZklPzC5.d.ts} +145 -16
  261. package/dist/{bookings-DetPC3Dw.d.ts → bookings-CBRjx_ZD.d.ts} +3 -3
  262. package/dist/{bucket-CUw0p3qM.d.ts → bucket-DJu58KBb.d.ts} +1 -1
  263. package/dist/{cache-tags-TT8h2zMg.d.ts → cache-tags-CGaOtjgV.d.ts} +2 -2
  264. package/dist/{care-plans-D5B4oqQC.d.ts → care-plans-pCvNs7-a.d.ts} +2 -2
  265. package/dist/{care-plans-sql-CNMF3H9k.js → care-plans-sql-CNs5Mpql.js} +1 -1
  266. package/dist/{carrier-DOAreMbT.d.ts → carrier-DaIG8Q4x.d.ts} +12 -0
  267. package/dist/chat-sdk/index.d.ts +6 -6
  268. package/dist/claims/index.d.ts +6 -6
  269. package/dist/cli/add-3L9NVEA3.js +1 -0
  270. package/dist/cli/{add-DlucpPCL.js → add-BQZbFEAP.js} +2 -2
  271. package/dist/cli/{add-C3yGPSQS.js → add-DK38-F2F.js} +10 -10
  272. package/dist/cli/{app-table-files-CC5n8Si8.js → app-table-files-C5Sx2Qao.js} +2 -2
  273. package/dist/cli/{app-tables-C-Rk_GnI.js → app-tables-ChZE8Z_L.js} +2 -2
  274. package/dist/cli/{backfill-DbqA8coR.js → backfill-COnv2tOL.js} +1 -1
  275. package/dist/cli/bin.js +1 -1
  276. package/dist/cli/{blocks-BFlOktiM.js → blocks-Csu6lLqC.js} +1 -1
  277. package/dist/cli/{blocks-BBBpNbQD.js → blocks-Dea_Z5Ps.js} +1 -1
  278. package/dist/cli/{cache-BgNWPD9a.js → cache-C1nAFZNW.js} +17 -4
  279. package/dist/cli/{codemod-B4DpCiqX.js → codemod-DHULUpez.js} +1 -1
  280. package/dist/cli/{content-mapper-BaJhpTQA.js → content-mapper-QVJJto5U.js} +2 -2
  281. package/dist/cli/{doctor-Dnq5J_p_.js → doctor-Du2zwLUG.js} +32 -18
  282. package/dist/cli/{gen-Bf9cVgpR.js → gen-CQ2ubqjB.js} +11 -11
  283. package/dist/cli/index.d.ts +3 -1
  284. package/dist/cli/index.js +6 -6
  285. package/dist/cli/{init-_IFg5fe6.js → init-CTt0aQn1.js} +9 -9
  286. package/dist/cli/{live-pq1yvvsl.js → live-DMNuAml9.js} +2 -2
  287. package/dist/cli/{mcp-YD0Ap6ok.js → mcp-C63ulwyU.js} +2 -2
  288. package/dist/cli/{metadata-CfauXPW0.js → metadata-CylES-9Y.js} +3 -3
  289. package/dist/cli/{migrate-DWCu2Nny.js → migrate-BezKva56.js} +1 -1
  290. package/dist/cli/{migration-safety-rjlsDMDU.js → migration-safety-DQtpMu-g.js} +1 -1
  291. package/dist/cli/{migrations-BRCqeu8k.js → migrations-DGJJ1rHt.js} +2 -2
  292. package/dist/cli/{module-migration-BpptcXiB.js → module-migration-CxbEDfSF.js} +2 -2
  293. package/dist/cli/powersync-COHj6FT8.js +1 -0
  294. package/dist/cli/{powersync-DsbJBuTR.js → powersync-FUYFuZSw.js} +3 -3
  295. package/dist/cli/{print-A9UGTj_t.js → print-DAwLAC-7.js} +2 -2
  296. package/dist/cli/{providers-MlTm8nMs.js → providers-hrxX3YKU.js} +1 -1
  297. package/dist/cli/{prune-workflows-B6sqjrR0.js → prune-workflows-DLhKu_UJ.js} +1 -1
  298. package/dist/cli/{remove-BpY-E_l4.js → remove-DSC6Fvwo.js} +6 -6
  299. package/dist/cli/{render-8qD7j0se.js → render-647qdnrX.js} +19 -9
  300. package/dist/cli/{run-Dl1TZGsM.js → run--qaDaqfL.js} +9 -9
  301. package/dist/cli/{run-DHRA46qf.js → run-BcI6KXV3.js} +31 -31
  302. package/dist/cli/{shared-B77Q9x0E.js → shared-D_DZ9MfG.js} +1 -1
  303. package/dist/cli/{snapshot-_roTbSZM.js → snapshot-B-1tPbV4.js} +70 -6
  304. package/dist/cli/{source-BseR3sy9.js → source-BgFNrRcl.js} +1 -1
  305. package/dist/cli/{spec-n6QRlBOJ.js → spec-C88dtkj4.js} +1 -1
  306. package/dist/cli/{spec-Ct3i4drt.js → spec-CV0FdW18.js} +2 -2
  307. package/dist/cli/{sql-layout-D_fJsw3B.js → sql-layout-byUur5FC.js} +2 -2
  308. package/dist/cli/{sync-DqBQi0QQ.js → sync-BtM7o-sI.js} +4 -4
  309. package/dist/cli/{upgrade-MRqrFaO1.js → upgrade-B_HEJvRX.js} +2 -2
  310. package/dist/cli/{upgrade-y3Iv4wl8.js → upgrade-CKDeHkyy.js} +5 -5
  311. package/dist/cli/{version-CiE6Pt0K.js → version-DWDoiP5_.js} +1 -1
  312. package/dist/client/index.d.ts +6 -6
  313. package/dist/client/native/index.d.ts +5 -5
  314. package/dist/{clinical-decision-support-C18qtFj-.d.ts → clinical-decision-support-CMAg066a.d.ts} +3 -3
  315. package/dist/{cloud-event-SAA1PEvA.d.ts → cloud-event-Dj2V1lQw.d.ts} +1 -1
  316. package/dist/{compiler-70Fl9dnF.d.ts → compiler-BSHKt-d2.d.ts} +2 -2
  317. package/dist/{composite-CgxTMZTK.js → composite-C4oO4i6z.js} +1 -1
  318. package/dist/{composite-CvlcYj8Y.d.ts → composite-Ddap_a-U.d.ts} +7 -7
  319. package/dist/{composite-reads-CEI-IJ5A.d.ts → composite-reads-BJ1TQ3AK.d.ts} +2 -2
  320. package/dist/config/index.d.ts +5 -5
  321. package/dist/config/index.js +4 -4
  322. package/dist/{config-BWYT86yp.js → config-LOwFAFpo.js} +3 -3
  323. package/dist/{config-B1m2PpjB.js → config-ekflaCnS.js} +26 -1
  324. package/dist/{connectors-BY81_miN.d.ts → connectors-DbxxDqyA.d.ts} +4 -4
  325. package/dist/{consents-BWE1N4Sn.d.ts → consents-6PofNNAB.d.ts} +3 -3
  326. package/dist/{contacts-DYS4GDJ-.d.ts → contacts-CDA1nZxh.d.ts} +3 -3
  327. package/dist/{context-DcHcHc2b.d.ts → context-iduX3Fsn.d.ts} +23 -5
  328. package/dist/contract/index.d.ts +9 -9
  329. package/dist/{controller-BrTPi8Po.d.ts → controller-DFGNChQL.d.ts} +1 -1
  330. package/dist/{conversion-t1F0y--Y.d.ts → conversion-DTBB0Zgt.d.ts} +1 -1
  331. package/dist/create/index.d.ts +4 -4
  332. package/dist/create/index.js +3 -3
  333. package/dist/create/lite/index.d.ts +4 -4
  334. package/dist/create/lite/index.js +2 -2
  335. package/dist/{create-blocks-CkhSm4iX.js → create-blocks-Af1utfuf.js} +20 -8
  336. package/dist/credentials/index.d.ts +4 -4
  337. package/dist/{data-engine-BcUcfW1q.d.ts → data-engine-BKO5EAzN.d.ts} +1 -1
  338. package/dist/{db-blocks-Dp-4qbYN.d.ts → db-blocks-CzhzWfvR.d.ts} +5 -5
  339. package/dist/deadlines-values-B7ArpVJU.js +127 -0
  340. package/dist/{define-block-B2um61Uj.d.ts → define-block-By-LUpM_.d.ts} +48 -19
  341. package/dist/{document-templates-values-BnBuJB0m.js → document-templates-values-DpNB3q5K.js} +4 -1
  342. package/dist/{documents-C8OJO-L6.d.ts → documents-pW4DIqiC.d.ts} +3 -3
  343. package/dist/{drive-BSp7gloI.d.ts → drive-CuNG4qB8.d.ts} +5 -5
  344. package/dist/e-invoicing/index.d.ts +2 -2
  345. package/dist/{e-prescribing-09IQDtRG.d.ts → e-prescribing-W0tunICr.d.ts} +4 -4
  346. package/dist/edge/index.d.ts +9 -9
  347. package/dist/edge/index.js +3 -3
  348. package/dist/elysia/index.d.ts +1 -1
  349. package/dist/{embeddings-BXTzKGvc.d.ts → embeddings-DA6mQZKv.d.ts} +2 -2
  350. package/dist/{ended-U8XnT2Ta.d.ts → ended-C-w3KU-i.d.ts} +2 -2
  351. package/dist/{entitlements-DuNBTDsH.d.ts → entitlements-Go8BHqhr.d.ts} +2 -2
  352. package/dist/eve/index.d.ts +9 -9
  353. package/dist/{eve-BBH2T4UZ.d.ts → eve-CY8cwAtb.d.ts} +2 -2
  354. package/dist/events/index.d.ts +5 -5
  355. package/dist/{events-X-Dhu495.d.ts → events-DN9PAcjq.d.ts} +1 -1
  356. package/dist/{executor-Czf5tnue.d.ts → executor-CeZUCBC3.d.ts} +1 -1
  357. package/dist/{executor-RNhfR91D.d.ts → executor-CewY2EQK.d.ts} +4 -4
  358. package/dist/{executor-sziduCKN.d.ts → executor-CnU5r1HS.d.ts} +1 -1
  359. package/dist/expo/index.d.ts +6 -6
  360. package/dist/expo/index.js +2 -2
  361. package/dist/{extract-DvU_lPRQ.d.ts → extract-DQKHxiiq.d.ts} +5 -5
  362. package/dist/fhir/index.d.ts +5 -5
  363. package/dist/{field-errors-Mo8dzoyA.d.ts → field-errors-B4SMTk2e.d.ts} +10 -10
  364. package/dist/{fields-CUZVw9WB.d.ts → fields-Cy8HCOKW.d.ts} +1 -1
  365. package/dist/{filter-evaluate-BFBP_icy.d.ts → filter-evaluate-CgKvlbI7.d.ts} +1 -1
  366. package/dist/{filter-query-09B_jtdv.d.ts → filter-query-CJ3wcwqH.d.ts} +1 -1
  367. package/dist/{flags-3v6OMgdo.d.ts → flags-CRR5N4_s.d.ts} +2 -2
  368. package/dist/flags-sdk/index.d.ts +2 -2
  369. package/dist/{framework-BfP8NwDY.js → framework-B6jEuZLs.js} +1 -1
  370. package/dist/{framework-BoDTo47q.d.ts → framework-B9hr-1OW.d.ts} +8 -8
  371. package/dist/{funding-B5xV2Vuz.d.ts → funding-C2R7BTT_.d.ts} +4 -4
  372. package/dist/{gateway-iEOaTBsD.d.ts → gateway-Dwd08sBI.d.ts} +3 -3
  373. package/dist/h3/index.d.ts +1 -1
  374. package/dist/h3/v1/index.d.ts +1 -1
  375. package/dist/hono/index.d.ts +9 -9
  376. package/dist/hono/index.js +2 -2
  377. package/dist/{inbox-CkUbmD3t.d.ts → inbox-CnyAG7kj.d.ts} +5 -5
  378. package/dist/{index-CV7Ibpek.d.ts → index-20EPlFXG.d.ts} +3 -3
  379. package/dist/{index-PeaYXjhx.d.ts → index-9zNFFq6E.d.ts} +6 -6
  380. package/dist/{index-BPz1IGUB.d.ts → index-B8axasMg.d.ts} +5 -5
  381. package/dist/{index-kKkGf0_-.d.ts → index-BKWnyAWN.d.ts} +5 -5
  382. package/dist/{index-DNdYTori.d.ts → index-BXRyr3ey.d.ts} +7 -7
  383. package/dist/{index-Xsu3egx_.d.ts → index-BkBNirhK.d.ts} +8 -8
  384. package/dist/{index-C8-8-t1s.d.ts → index-BmKtYKwN.d.ts} +9 -9
  385. package/dist/{index-Bxu7m8vw.d.ts → index-BoKvWo8t.d.ts} +6 -6
  386. package/dist/{index-Bdd-8C1P.d.ts → index-Bsd8P1iQ.d.ts} +2 -2
  387. package/dist/{index-BFw-iTQT.d.ts → index-BvwlIGwY.d.ts} +3 -3
  388. package/dist/{index-BMt0EVnl.d.ts → index-C1kImKZg.d.ts} +6 -6
  389. package/dist/{index-CT-3_fva.d.ts → index-CCmKc1hX.d.ts} +1 -1
  390. package/dist/{index-CaMHCzBp.d.ts → index-CTHuTJtf.d.ts} +2 -2
  391. package/dist/{index-CNNGDSxy.d.ts → index-D-bMFoGs.d.ts} +2 -2
  392. package/dist/{index-DLKMzlbR.d.ts → index-D337YzjX.d.ts} +8 -8
  393. package/dist/{index-C3pOr989.d.ts → index-D4ke5U0m.d.ts} +3 -3
  394. package/dist/{index-DaClvzRy.d.ts → index-D7FXhn2i.d.ts} +6 -6
  395. package/dist/{index-OHQg8Sdx.d.ts → index-D9Sb8Ju5.d.ts} +5 -5
  396. package/dist/{index-TNNEpcgG.d.ts → index-DFdqVxv6.d.ts} +6 -6
  397. package/dist/{index-Dndo_is2.d.ts → index-DJyt9j86.d.ts} +5 -5
  398. package/dist/{index-BDEwjrNn.d.ts → index-DQVQYEhP.d.ts} +2 -2
  399. package/dist/{index-C4QxQSYh.d.ts → index-DRsJvXo2.d.ts} +3 -3
  400. package/dist/{index-BpCBGOVF.d.ts → index-DXoS8BnK.d.ts} +5 -5
  401. package/dist/{index-DTqpt8XQ.d.ts → index-DeE-Xuv7.d.ts} +5 -5
  402. package/dist/{index-BLRLF6iG.d.ts → index-DfJFbsVp.d.ts} +6 -6
  403. package/dist/{index-xA8WHuDE.d.ts → index-Dg35ugqv.d.ts} +6 -6
  404. package/dist/{index-46Mwoxp8.d.ts → index-DgRK-iM3.d.ts} +9 -9
  405. package/dist/{index-Zf3t4MuL.d.ts → index-DkJtM-9e.d.ts} +14 -14
  406. package/dist/{index-DfuF_8Ph.d.ts → index-DkNLdcX_.d.ts} +7 -7
  407. package/dist/{index-BLpP1czF.d.ts → index-DkNMN5uU.d.ts} +7 -7
  408. package/dist/{index-C2ilfaOF.d.ts → index-DlXgoerO.d.ts} +5 -5
  409. package/dist/{index-cPzs5TsD.d.ts → index-Dy-66Gne.d.ts} +1 -1
  410. package/dist/{index-CnQ27iFg.d.ts → index-DzjugbCf.d.ts} +5 -5
  411. package/dist/{index-bOWESOEm.d.ts → index-NqLuAXG3.d.ts} +4 -4
  412. package/dist/{index-B2zDRJMB.d.ts → index-ROumUag2.d.ts} +4 -4
  413. package/dist/{index-C_Ilif3i.d.ts → index-YZ-_hzdR.d.ts} +3 -3
  414. package/dist/{index-YgUHItkp.d.ts → index-abVPYQE3.d.ts} +6 -6
  415. package/dist/{index-s1IQy8sK.d.ts → index-bJVAgXxw.d.ts} +4 -4
  416. package/dist/{index-BGje-MeF.d.ts → index-pRdO2XnG.d.ts} +5 -5
  417. package/dist/{index-ISihFGu9.d.ts → index-szXZSILq.d.ts} +9 -9
  418. package/dist/index.d.ts +6 -6
  419. package/dist/{instances-CFXFHQMK.js → instances-DJxWRqXk.js} +170 -3
  420. package/dist/{invoices-D-j6pUMy.d.ts → invoices-DQB0pdnK.d.ts} +5 -5
  421. package/dist/{kit-CjmzrlVW.d.ts → kit-EFsCynmb.d.ts} +4 -4
  422. package/dist/{knowledge-CNG6Arug.d.ts → knowledge-vrO4Poa5.d.ts} +5 -5
  423. package/dist/lint/index.d.ts +1 -1
  424. package/dist/list/index.d.ts +3 -3
  425. package/dist/{list-query-CREBmVkm.d.ts → list-query-B4qI5eE8.d.ts} +3 -3
  426. package/dist/{manifest-B3YkuXKR.d.ts → manifest-2ZgzNTbP.d.ts} +24 -7
  427. package/dist/{manifest-BLOufikB.d.ts → manifest-2jLTjnVh.d.ts} +3 -3
  428. package/dist/{manifest-D1-lCZro.d.ts → manifest-8JvRt8LB.d.ts} +6 -6
  429. package/dist/{manifest-C_ZDkBv4.d.ts → manifest-B24Ymu8p.d.ts} +4 -4
  430. package/dist/{manifest-C9Kn7gwK.d.ts → manifest-B6EkxzC0.d.ts} +5 -5
  431. package/dist/{manifest-kbSJq3sR.js → manifest-BA4kiB8L.js} +1 -1
  432. package/dist/{manifest-BFXybbMn.d.ts → manifest-BAgvJODg.d.ts} +3 -3
  433. package/dist/{manifest-xAeOKTub.d.ts → manifest-BCOBkYvY.d.ts} +11 -11
  434. package/dist/{manifest-09aHVu5Q.d.ts → manifest-BCyCm0Z3.d.ts} +3 -3
  435. package/dist/{manifest-DBSs1jJ_.d.ts → manifest-BGD8cD6S.d.ts} +2 -2
  436. package/dist/{manifest-DQwFCQkG.d.ts → manifest-BHZEsuzC.d.ts} +4 -4
  437. package/dist/{manifest-CF-LsgEw.d.ts → manifest-BHlKJbN2.d.ts} +3 -3
  438. package/dist/{manifest-CDK8R8Ze.d.ts → manifest-BJs6pHI0.d.ts} +6 -6
  439. package/dist/{manifest-CazVMbdf.d.ts → manifest-BSkYvne3.d.ts} +2 -2
  440. package/dist/{manifest-Dvhqz3qo.d.ts → manifest-BbC83cJB.d.ts} +6 -6
  441. package/dist/{manifest-jb384ocG.d.ts → manifest-BeW5LlW1.d.ts} +3 -3
  442. package/dist/{manifest-XZV2sKgk.d.ts → manifest-BfIYKrNe.d.ts} +4 -4
  443. package/dist/{manifest-DMTmTHBy.d.ts → manifest-Bg5Znp_u.d.ts} +3 -3
  444. package/dist/{manifest-DpoO491p.d.ts → manifest-BgVQ8xd3.d.ts} +4 -4
  445. package/dist/{manifest-CnkVWwAg.d.ts → manifest-Bj5hfBA_.d.ts} +4 -4
  446. package/dist/{manifest-DyZcERh_.d.ts → manifest-BmLU5HtO.d.ts} +4 -4
  447. package/dist/{manifest-Bwv273Tb.d.ts → manifest-BqBVKNjy.d.ts} +20 -8
  448. package/dist/{manifest-Dy5_Rc0q.d.ts → manifest-BrOXXz7k.d.ts} +5 -5
  449. package/dist/{manifest-BdcBkznK.d.ts → manifest-BtlEwVU4.d.ts} +6 -6
  450. package/dist/{manifest-CgP-MDb3.d.ts → manifest-BxuSAdYu.d.ts} +4 -4
  451. package/dist/{manifest-COoFT2vY.d.ts → manifest-BxujRhsY.d.ts} +3 -3
  452. package/dist/{manifest-Dj7bGfoy.js → manifest-C-B9nV2m.js} +1 -1
  453. package/dist/{manifest-BYUIgwGb.d.ts → manifest-CAPSAozN.d.ts} +4 -4
  454. package/dist/{manifest-B3RgCccj.d.ts → manifest-CDcaLpwB.d.ts} +3 -3
  455. package/dist/{manifest-dlqXYOfB.d.ts → manifest-CH7g3uI3.d.ts} +6 -6
  456. package/dist/{manifest-CNcJxi93.d.ts → manifest-CL5QEu5B.d.ts} +4 -4
  457. package/dist/{manifest-X24lr5XH.js → manifest-CXxHJ2NU.js} +1 -1
  458. package/dist/{manifest-dLThrKqV.d.ts → manifest-CcDqfRee.d.ts} +5 -5
  459. package/dist/{manifest-CMnr9qpi.js → manifest-CeNAAHeR.js} +1 -1
  460. package/dist/{manifest-CFFaunME.d.ts → manifest-CeoUoZDs.d.ts} +4 -4
  461. package/dist/{manifest-Lsz6rH3B.d.ts → manifest-CfQ0nD_7.d.ts} +5 -5
  462. package/dist/{manifest-DF49Pt6Q.d.ts → manifest-Cko_ySTe.d.ts} +4 -4
  463. package/dist/{manifest-CnSZ16xc.js → manifest-CpL3pCc4.js} +1 -1
  464. package/dist/{manifest-BnFuyvL7.js → manifest-Cr9mpJDi.js} +4 -0
  465. package/dist/{manifest-CgCpK4Wm.d.ts → manifest-Csw2tVut.d.ts} +7 -7
  466. package/dist/{manifest-JdAQqp5w.d.ts → manifest-CszjCxVJ.d.ts} +8 -8
  467. package/dist/{manifest-BpiZFLbl.d.ts → manifest-Ct6mHhg4.d.ts} +5 -5
  468. package/dist/{manifest-D0KUPw4L.d.ts → manifest-DBmuiJ91.d.ts} +5 -5
  469. package/dist/{manifest-BwYOds2o.d.ts → manifest-DCPKfwsh.d.ts} +5 -5
  470. package/dist/{manifest-CiOcPFFy.d.ts → manifest-DGgFeLwd.d.ts} +5 -5
  471. package/dist/{manifest-Ccn2k0vb.d.ts → manifest-DPGJ2otk.d.ts} +4 -4
  472. package/dist/{manifest-Dh3kIEzu.d.ts → manifest-DWQaegX6.d.ts} +4 -4
  473. package/dist/{manifest-CmquAtQC.js → manifest-DZLr6Cbr.js} +1 -1
  474. package/dist/{manifest-RAijfop2.d.ts → manifest-Da1QZDY4.d.ts} +4 -4
  475. package/dist/{manifest-CaKVpJZM.d.ts → manifest-Dc1eHEJV.d.ts} +6 -6
  476. package/dist/{manifest-Cnb5QGMK.d.ts → manifest-DdxfAXvG.d.ts} +4 -4
  477. package/dist/{manifest-BSaRwzEH.js → manifest-DevURQJj.js} +19 -5
  478. package/dist/{manifest-Bc_2t9mY.d.ts → manifest-Dh4AJeLl.d.ts} +4 -4
  479. package/dist/{manifest-B5vPAt-u.d.ts → manifest-DjAdsSs4.d.ts} +8 -8
  480. package/dist/{manifest-CW47rgqj.d.ts → manifest-DnGgZ9_F.d.ts} +6 -6
  481. package/dist/{manifest-BUrKk2Ww.d.ts → manifest-DpF5bliV.d.ts} +2 -2
  482. package/dist/{manifest-Du_-0ruw.d.ts → manifest-DweZMH-F.d.ts} +5 -5
  483. package/dist/{manifest-CScOn17C.js → manifest-F35IzwVM.js} +11 -3
  484. package/dist/{manifest-B3xj3-ew.d.ts → manifest-H6lz9xQm.d.ts} +5 -5
  485. package/dist/{manifest-DEx8OSZK.js → manifest-IECPtdQj.js} +1 -1
  486. package/dist/{manifest-jiaWr0x4.d.ts → manifest-KHudP5T5.d.ts} +6 -6
  487. package/dist/{manifest-Bg1swpdk.d.ts → manifest-Oo7PegXK.d.ts} +5 -5
  488. package/dist/{manifest-C4CIOVkt.d.ts → manifest-RUmJ5H6p.d.ts} +3 -3
  489. package/dist/{manifest-BWh9leJI.js → manifest-_9ZFGQQm.js} +1 -1
  490. package/dist/{manifest-B4HXWUh8.d.ts → manifest-dXPq0ubY.d.ts} +8 -8
  491. package/dist/{manifest-a0YxYgo0.d.ts → manifest-fviCqeHj.d.ts} +4 -4
  492. package/dist/{manifest-ETlyMx6o.d.ts → manifest-jSOZl7qT.d.ts} +4 -4
  493. package/dist/{manifest-0PeNUYcv.d.ts → manifest-o-S9bj6i.d.ts} +4 -4
  494. package/dist/{manifest-D6ZukDGm.d.ts → manifest-qs_U2rx3.d.ts} +3 -3
  495. package/dist/{manifest-BpAI3Me7.js → manifest-u0q04U62.js} +2 -2
  496. package/dist/{manifest-y2y5xPQC.d.ts → manifest-uL5fzXsx.d.ts} +7 -7
  497. package/dist/{manifest-pLJIrNwi.d.ts → manifest-upfKO7JJ.d.ts} +3 -3
  498. package/dist/{manifest-aJOA6D9w.d.ts → manifest-vG5iHhA5.d.ts} +18 -5
  499. package/dist/{manifest-c8mlNzOv.d.ts → manifest-xRlf8RQk.d.ts} +4 -4
  500. package/dist/mapper/bin.js +5 -5
  501. package/dist/mcp/index.d.ts +3 -3
  502. package/dist/mcp/index.js +1 -1
  503. package/dist/mcp/sdk/index.d.ts +6 -6
  504. package/dist/mcp/sdk/index.js +1 -1
  505. package/dist/{mcp-Cu-bD9KQ.js → mcp-Br3FGtZ-.js} +1 -1
  506. package/dist/{medications-DSwF7lxp.d.ts → medications-0Uuwu3k2.d.ts} +4 -4
  507. package/dist/{messaging-BURLOg2p.d.ts → messaging-Co5bENPB.d.ts} +5 -5
  508. package/dist/nestjs/index.d.ts +2 -2
  509. package/dist/next/client/index.d.ts +1 -1
  510. package/dist/next/index.d.ts +27 -25
  511. package/dist/next/index.js +12 -8
  512. package/dist/node/index.d.ts +2 -2
  513. package/dist/{observations-CciBF6mG.d.ts → observations-ilWeRQ20.d.ts} +3 -3
  514. package/dist/{operations-_3oh-CEO.d.ts → operations-IzVAIMvs.d.ts} +1 -1
  515. package/dist/{options-BxdqA2Ex.js → options-CDn2OgvY.js} +1 -0
  516. package/dist/options-DtDvpZu7.js +4 -0
  517. package/dist/{options-DwIoRvic.js → options-HwnZxyI3.js} +4 -1
  518. package/dist/{orders-DBxCzU3w.d.ts → orders-CbJqNAF3.d.ts} +3 -3
  519. package/dist/orpc/index.d.ts +8 -8
  520. package/dist/orpc/index.js +1 -1
  521. package/dist/otel/index.d.ts +2 -2
  522. package/dist/otel/index.js +4 -4
  523. package/dist/{outbox-CThKZLSQ.d.ts → outbox-wJZ6Tc_H.d.ts} +4 -4
  524. package/dist/{parse-BRW-aTQQ.js → parse-CnAiiV-M.js} +1 -1
  525. package/dist/{payroll-export-CNji28TX.js → payroll-export-T754eWz8.js} +1 -1
  526. package/dist/{permissions-u_qqedin.d.ts → permissions-DxXor_NY.d.ts} +1 -1
  527. package/dist/{permissions-model-COgjsFbE.js → permissions-model-Dh9-Zzfy.js} +8 -0
  528. package/dist/{pool-DX5nqbLb.d.ts → pool-3kL7D5vJ.d.ts} +9 -3
  529. package/dist/{ports-DT5zRdYx.d.ts → ports-C5BEHQi6.d.ts} +1 -1
  530. package/dist/postgres/index.d.ts +4 -4
  531. package/dist/postgres/index.js +15 -1
  532. package/dist/{postgrest-DCLtVoK_.d.ts → postgrest-4vPs3cD4.d.ts} +1 -1
  533. package/dist/powersync/index.d.ts +9 -9
  534. package/dist/preset/index.d.ts +4 -4
  535. package/dist/preset/index.js +3 -3
  536. package/dist/{preset--1OMwypM.js → preset-8Xh21Uyw.js} +95 -3
  537. package/dist/{preview-BBA-VaEZ.d.ts → preview-B-mtB1ka.d.ts} +6 -6
  538. package/dist/{preview-Bd7ZBtf2.js → preview-CUiY7kzV.js} +2 -2
  539. package/dist/{project-BhE6_64F.js → project-C6JAWCnH.js} +5 -5
  540. package/dist/{provider-AZZ755Eb.d.ts → provider-ChtwfkqL.d.ts} +1 -1
  541. package/dist/{push-token-hs6_Vt-I.d.ts → push-token-TWXWra8i.d.ts} +1 -1
  542. package/dist/query/index.d.ts +1 -1
  543. package/dist/rate-limit/index.d.ts +1 -1
  544. package/dist/{rate-limit-DzkFszLp.d.ts → rate-limit-5FLBVmTC.d.ts} +5 -5
  545. package/dist/react/index.d.ts +8 -8
  546. package/dist/react/index.js +1 -1
  547. package/dist/react/native/index.d.ts +1 -1
  548. package/dist/react/server.d.ts +8 -8
  549. package/dist/react/server.js +1 -1
  550. package/dist/react/session.d.ts +2 -2
  551. package/dist/{react-olMpD8et.js → react-C5uBAgPJ.js} +1 -1
  552. package/dist/react-router/index.d.ts +6 -6
  553. package/dist/react-router/index.js +2 -2
  554. package/dist/realtime/index.d.ts +6 -6
  555. package/dist/{record-form-Cze5j1OB.d.ts → record-form-B9-7RhYz.d.ts} +1 -1
  556. package/dist/{recordings-CNNDKqGd.d.ts → recordings-1yDvOqM4.d.ts} +1 -1
  557. package/dist/records/index.d.ts +9 -9
  558. package/dist/{refusal-Dsn4WGbg.d.ts → refusal-nCMn-Fnw.d.ts} +3 -3
  559. package/dist/{resolve-NeMeUVtf.d.ts → resolve-B9Rn2M5c.d.ts} +1 -1
  560. package/dist/{resource-gebaumjo.d.ts → resource-BDVguZzJ.d.ts} +1 -1
  561. package/dist/{resource-execute-D2cJfrKu.d.ts → resource-execute-BVQQHOLb.d.ts} +2 -2
  562. package/dist/{resource-types-Cs1zWvrn.d.ts → resource-types-BmZx8q4a.d.ts} +4 -4
  563. package/dist/{resources-DyP9cP9i.d.ts → resources-Dz9pCv6I.d.ts} +2 -2
  564. package/dist/{respond--w7kF-Ym.d.ts → respond-OjgB7zlB.d.ts} +1 -1
  565. package/dist/{rows-D1WZwE8A.js → rows-C-eFWUrS.js} +1 -1
  566. package/dist/{sales-BCArDSEX.js → sales-CLHrvNDm.js} +1 -1
  567. package/dist/{sales-lines-C7kECFEA.d.ts → sales-lines-DZBLspUz.d.ts} +1 -1
  568. package/dist/{sandboxes-BD1M7bTW.d.ts → sandboxes-CjBtYDtC.d.ts} +1 -1
  569. package/dist/{scores-tCCJALNA.d.ts → scores-BZSIvM-v.d.ts} +5 -5
  570. package/dist/server/index.d.ts +27 -27
  571. package/dist/server/index.js +3 -3
  572. package/dist/{server-types-Bpxk5UWh.d.ts → server-types-Cf4eX4kr.d.ts} +32 -14
  573. package/dist/{session-DQ5huqEw.d.ts → session-CfOsLGD_.d.ts} +6 -6
  574. package/dist/{session-status-DDPrDS36.d.ts → session-status-ChvyVQgl.d.ts} +2 -2
  575. package/dist/{settings-eBr9PBev.d.ts → settings-BLvlPsne.d.ts} +2 -2
  576. package/dist/{sign-in-03gtm616.js → sign-in-qMkfifO1.js} +1 -1
  577. package/dist/{signers-BEYFvHJG.d.ts → signers-CPqWfc48.d.ts} +4 -4
  578. package/dist/{signing-keys-bI2l8FtF.d.ts → signing-keys-Vi7ieN7h.d.ts} +2 -2
  579. package/dist/solid/index.d.ts +10 -10
  580. package/dist/solid-start/index.d.ts +6 -6
  581. package/dist/solid-start/index.js +2 -2
  582. package/dist/spec/index.d.ts +2 -2
  583. package/dist/sql/index.d.ts +5 -5
  584. package/dist/sql/index.js +3 -3
  585. package/dist/{sql-BVUbNexh.js → sql-Bam07JIf.js} +7277 -5001
  586. package/dist/sqlite/index.d.ts +3 -3
  587. package/dist/{sso-C1bO-vNS.d.ts → sso-C5o6-slp.d.ts} +3 -3
  588. package/dist/ssr/index.d.ts +4 -4
  589. package/dist/storage/index.d.ts +3 -3
  590. package/dist/streams/index.d.ts +1 -1
  591. package/dist/streams/resumable/index.d.ts +1 -1
  592. package/dist/{subject-readers-VaaoTxbd.d.ts → subject-readers-fKAdJQGu.d.ts} +2 -2
  593. package/dist/{subjects-BTUiakig.d.ts → subjects-C0_z3QUL.d.ts} +3 -3
  594. package/dist/{support-tDhEwXbu.d.ts → support-DYNFoAZ8.d.ts} +4 -4
  595. package/dist/{support-view-XeoLPB7S.d.ts → support-view-Dn_YTGV4.d.ts} +1 -1
  596. package/dist/svelte/index.d.ts +9 -9
  597. package/dist/sveltekit/index.d.ts +7 -7
  598. package/dist/sveltekit/index.js +2 -2
  599. package/dist/{tags-CBASI98_.d.ts → tags-BahXc6bW.d.ts} +1 -1
  600. package/dist/tanstack-db/index.d.ts +3 -3
  601. package/dist/tanstack-start/index.d.ts +6 -6
  602. package/dist/tanstack-start/index.js +2 -2
  603. package/dist/{tax-sql-0dqAt5nE.js → tax-sql-CbE1rhn-.js} +1 -1
  604. package/dist/{tenant-c_6qMyFI.d.ts → tenant-BpJ2F2b_.d.ts} +1 -1
  605. package/dist/testing/index.d.ts +34 -34
  606. package/dist/testing/index.js +1 -1
  607. package/dist/{timeline-DvZ7C5zf.d.ts → timeline-LHtdAJnM.d.ts} +5 -5
  608. package/dist/{topic-fwPlelNI.d.ts → topic-4KYLvvTB.d.ts} +5 -5
  609. package/dist/{types-CmbztHZL.d.ts → types-BWuFVfGE.d.ts} +1 -1
  610. package/dist/{types-D5UNIbOQ.d.ts → types-BlBju7Wa.d.ts} +7 -0
  611. package/dist/{types-DLIYrsqE.d.ts → types-CJG0BntG.d.ts} +5 -5
  612. package/dist/{types-CmlZw_7N.d.ts → types-CTb0Uroz.d.ts} +5 -5
  613. package/dist/{types-2DVnlJqQ.d.ts → types-CqTqrrBK.d.ts} +7 -7
  614. package/dist/{types-Cwai2qe4.d.ts → types-Dfa7b0KI.d.ts} +2 -2
  615. package/dist/{types-B1KabfWa.d.ts → types-M37hpCz_.d.ts} +3 -3
  616. package/dist/{types-BGbfmnVI.d.ts → types-hL1lelUA.d.ts} +4 -4
  617. package/dist/{undo-mU6lgk9c.d.ts → undo-CvwsPX4q.d.ts} +2 -2
  618. package/dist/{usage-Dz8KVrkx.d.ts → usage-D4Fho6t9.d.ts} +4 -4
  619. package/dist/{vault-CnTW3EtC.d.ts → vault-CgioaiiD.d.ts} +2 -2
  620. package/dist/vercel-connect/index.d.ts +1 -1
  621. package/dist/vercel-sandbox/index.d.ts +2 -2
  622. package/dist/{verify-CupKPoHW.d.ts → verify-ClbMJkEg.d.ts} +2 -2
  623. package/dist/{view-B44a2jfA.d.ts → view-CVXHgadI.d.ts} +1 -1
  624. package/dist/vue/index.d.ts +10 -10
  625. package/dist/{watch-topic-D4AzYs9E.d.ts → watch-topic-C9DIO476.d.ts} +1 -1
  626. package/dist/webmcp/index.d.ts +2 -2
  627. package/dist/webmcp/index.js +1 -1
  628. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  629. package/dist/workflow-sdk/index.d.ts +1 -1
  630. package/dist/workflow-sdk/world/index.d.ts +1 -1
  631. package/dist/workflow-sdk/world/index.js +1 -1
  632. package/dist/{workflow-sdk-C-rVKZTS.js → workflow-sdk-DIyX4ssm.js} +1 -1
  633. package/dist/{workflow-sdk-MxXG817H.d.ts → workflow-sdk-JVTwhzYJ.d.ts} +3 -3
  634. package/dist/{workflows-De-yy-cC.d.ts → workflows-DUgxuv2X.d.ts} +3 -3
  635. package/dist/yjs/index.d.ts +2 -2
  636. package/package.json +14 -1
  637. package/schemas/config-v1.json +44 -3
  638. package/schemas/snapshot-v2.json +6 -0
  639. package/dist/cli/add-C4B2wdfz.js +0 -1
  640. package/dist/cli/powersync-BejxIowk.js +0 -1
@@ -1,6 +1,6 @@
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-RAijfop2.js";
2
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
3
- import { Ft as RepositoryExtension, Nt as Plugin, Ot as HasFlag, Q as PrimaryKeyValue } from "../../types-D5UNIbOQ.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-Da1QZDY4.js";
2
+ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
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";
5
5
  interface TrashFindArgs {
6
6
  /** Include soft-deleted rows of the queried table. */
@@ -1,7 +1,7 @@
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-mU6lgk9c.js";
2
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
3
- import { n as Controller } from "../../controller-BrTPi8Po.js";
4
- import { c as BlockOf } from "../../define-block-B2um61Uj.js";
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
+ 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";
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
- import { Nt as Plugin } from "../../types-D5UNIbOQ.js";
3
- import { r as Block } from "../../define-block-B2um61Uj.js";
4
- import { w as UpdatedAtSqlOptions } from "../../blocks-EFj0duwB.js";
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";
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
- 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-Dz8KVrkx.js";
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
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
4
- import { c as BlockOf } from "../../define-block-B2um61Uj.js";
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";
5
5
  import { b as DbError } from "../../result-CMqlHv82.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-BrTPi8Po.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-DFGNChQL.js";
7
7
  /** The `usage` block's manifest (ADR 0029). */
8
8
  export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
9
9
  interface UsageMeterControllerOptions {
@@ -1,13 +1,13 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { n as BlockHooks } from "../../block-hooks-xAMR6WdT.js";
3
- import { s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
2
+ import { n as BlockHooks } from "../../block-hooks-FM9t7ol_.js";
3
+ import { s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
4
4
  import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-CMqlHv82.js";
5
5
  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
- import { r as BlockTemporalOptions } from "../../block-helpers-YOdaCxWE.js";
9
- import { c as BlockOf } from "../../define-block-B2um61Uj.js";
10
- import { Dt as Events } from "../../events-X-Dhu495.js";
8
+ import { r as BlockTemporalOptions } from "../../block-helpers-rTsuHt6v.js";
9
+ import { c as BlockOf } from "../../define-block-By-LUpM_.js";
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";
13
13
  export declare const VERCEL_ENVIRONMENTS: readonly VercelEnvironment[];
@@ -1,4 +1,4 @@
1
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.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-aJOA6D9w.js";
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";
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 };
@@ -1,3 +1,3 @@
1
- import { a as createPatch, c as versionsBinding, i as applyPatch, l as versionsEvents, n as createVersions, o as jsonEqual, r as JsonPatchError, s as versionInput, t as versionsBlock } from "../../manifest-BnFuyvL7.js";
1
+ import { a as createPatch, c as versionsBinding, i as applyPatch, l as versionsEvents, n as createVersions, o as jsonEqual, r as JsonPatchError, s as versionInput, t as versionsBlock } from "../../manifest-Cr9mpJDi.js";
2
2
  import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-BR1V7DN1.js";
3
3
  export { JsonPatchError, applyPatch, createPatch, createVersions, dbTransport, jsonEqual, rpcTransport, sqlTransport, versionInput, versionsBinding, versionsBlock, versionsEvents };
@@ -1,14 +1,14 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Cq2MlJJD.js";
3
- import { n as BlockHooks } from "../../block-hooks-xAMR6WdT.js";
4
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
3
+ import { n as BlockHooks } from "../../block-hooks-FM9t7ol_.js";
4
+ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
6
  import { t as AsyncResult } from "../../result-CMqlHv82.js";
7
7
  import { t as StandardSchemaV1 } from "../../standard-CiOWpeZL.js";
8
- import { n as BlockOptions } from "../../block-helpers-YOdaCxWE.js";
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-B2um61Uj.js";
11
- import { $ as OrganizationEventData, Dt as Events, q as InviteCodeEventData, vt as WaitlistEventData } from "../../events-X-Dhu495.js";
10
+ import { c as BlockOf } from "../../define-block-By-LUpM_.js";
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. */
14
14
  interface WaitlistEntry<F extends object = Record<never, never>> {
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-xAMR6WdT.js";
2
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-FM9t7ol_.js";
3
3
  import { n as Logger } from "../../logger-0LfhvwE4.js";
4
4
  import { c as RoutePoint, n as OptimizedStops, s as RouteOptimizer } from "../../route-optimizer-DQSfFWqd.js";
5
- import { n as BlockOptions } from "../../block-helpers-YOdaCxWE.js";
5
+ import { n as BlockOptions } from "../../block-helpers-rTsuHt6v.js";
6
6
  import { t as AsyncResult } from "../../result-CMqlHv82.js";
7
- import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
8
- import { G as EntitySchema, c as BlockOf } from "../../define-block-B2um61Uj.js";
9
- import { Dt as Events } from "../../events-X-Dhu495.js";
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";
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"];
12
12
  /** Where one pick list stands. */
@@ -1,20 +1,20 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-CupKPoHW.js";
3
- import { A as IncomingVerify, C as isPublicAddress, D as IncomingDelivery, E as CreatedIncomingWebhook, F as UpdateIncomingWebhookInput, I as UpdatedIncomingWebhook, M as IncomingWebhooks, N as IncomingWebhooksOptions, O as IncomingDestination, P as RotatedIncomingSecret, S as ResolveHost, T as CreateIncomingWebhookInput, _ as WebhookResponse, a as WebhookSignInput, b as AllowUrl, c as standardWebhooks, d as RotateSecretOptions, f as WebhookSecretStore, g as WebhookRequest, h as WebhookPolicyError, i as StandardWebhooksOptions, j as IncomingWebhook, k as IncomingDestinationResult, l as standardWebhooksAsymmetric, m as FetchTransportOptions, n as HmacSignerOptions, o as WebhookSigner, p as sqlSecretStore, r as RawSigner, s as hmacSigner, t as AsymmetricWebhooksOptions, u as webhookPublicKey, v as WebhookTransport, w as publicUrl, x as PublicUrlOptions, y as fetchTransport } from "../../signers-BEYFvHJG.js";
4
- import { n as SqlClient } from "../../executor-sziduCKN.js";
5
- import { C as QueueSchemas, _ as JobHandler, x as Queue } from "../../types-CmlZw_7N.js";
6
- import { n as BlockHooks } from "../../block-hooks-xAMR6WdT.js";
7
- import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
8
- import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-BiMwxiZN.js";
2
+ import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-ClbMJkEg.js";
3
+ import { A as IncomingVerify, C as isPublicAddress, D as IncomingDelivery, E as CreatedIncomingWebhook, F as UpdateIncomingWebhookInput, I as UpdatedIncomingWebhook, M as IncomingWebhooks, N as IncomingWebhooksOptions, O as IncomingDestination, P as RotatedIncomingSecret, S as ResolveHost, T as CreateIncomingWebhookInput, _ as WebhookResponse, a as WebhookSignInput, b as AllowUrl, c as standardWebhooks, d as RotateSecretOptions, f as WebhookSecretStore, g as WebhookRequest, h as WebhookPolicyError, i as StandardWebhooksOptions, j as IncomingWebhook, k as IncomingDestinationResult, l as standardWebhooksAsymmetric, m as FetchTransportOptions, n as HmacSignerOptions, o as WebhookSigner, p as sqlSecretStore, r as RawSigner, s as hmacSigner, t as AsymmetricWebhooksOptions, u as webhookPublicKey, v as WebhookTransport, w as publicUrl, x as PublicUrlOptions, y as fetchTransport } from "../../signers-CPqWfc48.js";
4
+ import { n as SqlClient } from "../../executor-CnU5r1HS.js";
5
+ import { C as QueueSchemas, _ as JobHandler, x as Queue } from "../../types-CTb0Uroz.js";
6
+ import { n as BlockHooks } from "../../block-hooks-FM9t7ol_.js";
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 SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-DM_ijJsD.js";
9
9
  import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-CMqlHv82.js";
10
- import { Dt as Events, G as IncomingWebhookEventData, o as EventHub, yt as WebhookEventData } from "../../events-X-Dhu495.js";
11
- import { It as RequestContext } from "../../types-D5UNIbOQ.js";
10
+ import { Dt as Events, G as IncomingWebhookEventData, o as EventHub, yt as WebhookEventData } from "../../events-DN9PAcjq.js";
11
+ import { It as RequestContext } from "../../types-BlBju7Wa.js";
12
12
  import { t as BlockProblemOptions } from "../../problem-BkuOcWRv.js";
13
- import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../../provider-AZZ755Eb.js";
14
- import { i as EventSink, t as CloudEvent } from "../../cloud-event-SAA1PEvA.js";
13
+ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../../provider-ChtwfkqL.js";
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
- import { r as BlockTemporalOptions } from "../../block-helpers-YOdaCxWE.js";
17
- import { c as BlockOf } from "../../define-block-B2um61Uj.js";
16
+ import { r as BlockTemporalOptions } from "../../block-helpers-rTsuHt6v.js";
17
+ import { c as BlockOf } from "../../define-block-By-LUpM_.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;
@@ -1,15 +1,15 @@
1
1
  import { r as FieldsOf } from "../../block-fields-Cq2MlJJD.js";
2
2
  import { t as StandardSchemaV1 } from "../../standard-CiOWpeZL.js";
3
- import { $ as diffGraphs, A as WorkflowTriggerKind, B as WorkflowBuiltinNodeKind, C as WorkflowGrantPrincipal, D as WorkflowResolved, E as WorkflowPurpose, F as WorkflowNodeKindRow, G as WorkflowGraph, H as WorkflowConditionOperator, I as defineNodeKind, J as WorkflowGraphNode, K as WorkflowGraphDiff, L as GraphScope, M as WorkflowVersionOwner, N as WorkflowVersionStatus, O as WorkflowStepInfo, P as WorkflowNodeKindDefinition, Q as approved, R as ValidateGraphOptions, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as WorkflowFilterCondition, V as WorkflowCondition, W as WorkflowFilterField, X as WorkflowNodeKind, Y as WorkflowNodeCondition, Z as WorkflowNodeKindInfo, _ as WorkflowCredential, a as CredentialInput, at as topologicalOrder, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, et as durationMs, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, it as matchesFilter, j as WorkflowVersion, k as WorkflowTrigger, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, nt as filterConditionOf, o as DefinitionInput, ot as validateGraph, p as TriggerInput, q as WorkflowGraphEdge, r as BuilderStartCall, rt as isBuiltinNodeKind, s as GrantInput, t as AlertInput, tt as evaluateCondition, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WORKFLOW_BUILTIN_NODE_KINDS } from "../../types-2DVnlJqQ.js";
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-Czf5tnue.js";
5
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
3
+ import { $ as diffGraphs, A as WorkflowTriggerKind, B as WorkflowBuiltinNodeKind, C as WorkflowGrantPrincipal, D as WorkflowResolved, E as WorkflowPurpose, F as WorkflowNodeKindRow, G as WorkflowGraph, H as WorkflowConditionOperator, I as defineNodeKind, J as WorkflowGraphNode, K as WorkflowGraphDiff, L as GraphScope, M as WorkflowVersionOwner, N as WorkflowVersionStatus, O as WorkflowStepInfo, P as WorkflowNodeKindDefinition, Q as approved, R as ValidateGraphOptions, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as WorkflowFilterCondition, V as WorkflowCondition, W as WorkflowFilterField, X as WorkflowNodeKind, Y as WorkflowNodeCondition, Z as WorkflowNodeKindInfo, _ as WorkflowCredential, a as CredentialInput, at as topologicalOrder, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, et as durationMs, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, it as matchesFilter, j as WorkflowVersion, k as WorkflowTrigger, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, nt as filterConditionOf, o as DefinitionInput, ot as validateGraph, p as TriggerInput, q as WorkflowGraphEdge, r as BuilderStartCall, rt as isBuiltinNodeKind, s as GrantInput, t as AlertInput, tt as evaluateCondition, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WORKFLOW_BUILTIN_NODE_KINDS } from "../../types-CqTqrrBK.js";
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
+ 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-fwPlelNI.js";
8
- import { n as TopicPort } from "../../watch-topic-D4AzYs9E.js";
9
- import { n as Controller, t as AuthPort } from "../../controller-BrTPi8Po.js";
10
- import { g as Workflows, n as WorkflowRun } from "../../workflows-De-yy-cC.js";
11
- import { c as BlockOf } from "../../define-block-B2um61Uj.js";
12
- import { Dt as Events, bt as WorkflowEventData } from "../../events-X-Dhu495.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";
10
+ import { g as Workflows, n as WorkflowRun } from "../../workflows-DUgxuv2X.js";
11
+ import { c as BlockOf } from "../../define-block-By-LUpM_.js";
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,
15
15
  * step library, node runs and alerts. The engine plugs in through `compile` and
@@ -1,11 +1,11 @@
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-De-yy-cC.js";
2
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
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
+ 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-fwPlelNI.js";
5
- import { n as TopicPort } from "../../watch-topic-D4AzYs9E.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-BrTPi8Po.js";
7
- import { c as BlockOf } from "../../define-block-B2um61Uj.js";
8
- import { Dt as Events, xt as WorkflowRunEventData } from "../../events-X-Dhu495.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";
8
+ import { Dt as Events, xt as WorkflowRunEventData } from "../../events-DN9PAcjq.js";
9
9
  interface WorkflowRunsControllerOptions {
10
10
  readonly client: {
11
11
  readonly runs: Pick<Workflows["runs"], "list">;
@@ -1,5 +1,5 @@
1
1
  import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
2
- import { d as AiChatMessageStorage } from "./ai-chat-B1tvHB75.js";
2
+ import { d as AiChatMessageStorage } from "./ai-chat-DiXgrAd3.js";
3
3
  /** The names each module's `blocks.<name>` config keys accept. */
4
4
  interface BlockNameRegistry {
5
5
  readonly "access-requests": {
@@ -349,9 +349,9 @@ interface BlockNameRegistry {
349
349
  };
350
350
  readonly "attachments": {
351
351
  readonly tables: {
352
- readonly "attachments": "id" | "tenant" | "subjectType" | "subjectId" | "bucket" | "path" | "name" | "mimeType" | "size" | "status" | "detail" | "uploadedBy" | "createdAt" | "uploadedAt" | "scannedAt" | "metadata" | "version" | "width" | "height" | "pages" | "documentType" | "source" | "externalId" | "storage" | "sourcePath";
352
+ readonly "attachments": "id" | "tenant" | "subjectType" | "subjectId" | "bucket" | "path" | "name" | "mimeType" | "size" | "status" | "detail" | "uploadedBy" | "createdAt" | "uploadedAt" | "scannedAt" | "sha256" | "hashVerifiedAt" | "metadata" | "version" | "width" | "height" | "pages" | "documentType" | "source" | "externalId" | "storage" | "sourcePath";
353
353
  readonly "documentTypes": "id" | "tenant" | "key" | "name" | "fields" | "createdAt" | "updatedAt";
354
- readonly "versions": "id" | "tenant" | "attachment" | "version" | "bucket" | "path" | "name" | "mimeType" | "size" | "width" | "height" | "pages" | "status" | "detail" | "uploadedBy" | "uploadedAt" | "scannedAt" | "archivedAt";
354
+ readonly "versions": "id" | "tenant" | "attachment" | "version" | "bucket" | "path" | "name" | "mimeType" | "size" | "width" | "height" | "pages" | "status" | "detail" | "uploadedBy" | "uploadedAt" | "scannedAt" | "sha256" | "hashVerifiedAt" | "archivedAt";
355
355
  readonly "scans": "bucket" | "path" | "status" | "detail" | "createdAt" | "scannedAt";
356
356
  readonly "cleanup": "bucket" | "path" | "queuedBy" | "queuedAt" | "attempts";
357
357
  };
@@ -359,7 +359,7 @@ interface BlockNameRegistry {
359
359
  readonly actions: "read" | "upload" | "manage";
360
360
  readonly hooks: never;
361
361
  readonly entities: {
362
- readonly "attachment": "id" | "organization_id" | "subject_type" | "subject_id" | "bucket" | "object_path" | "name" | "mime_type" | "size" | "status" | "scan_detail" | "uploaded_by" | "created_at" | "uploaded_at" | "scanned_at" | "metadata" | "version" | "width" | "height" | "pages" | "document_type_id" | "source" | "external_id" | "storage_status" | "source_path";
362
+ readonly "attachment": "id" | "organization_id" | "subject_type" | "subject_id" | "bucket" | "object_path" | "name" | "mime_type" | "size" | "status" | "scan_detail" | "uploaded_by" | "created_at" | "uploaded_at" | "scanned_at" | "sha256" | "hash_verified_at" | "metadata" | "version" | "width" | "height" | "pages" | "document_type_id" | "source" | "external_id" | "storage_status" | "source_path";
363
363
  };
364
364
  readonly primary: "attachment";
365
365
  readonly formerKeys: never;
@@ -846,6 +846,21 @@ interface BlockNameRegistry {
846
846
  readonly primary: never;
847
847
  readonly formerKeys: never;
848
848
  };
849
+ readonly "deadlines": {
850
+ readonly tables: {
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";
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";
856
+ readonly actions: "read" | "write" | "manage";
857
+ readonly hooks: never;
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";
860
+ };
861
+ readonly primary: "deadline";
862
+ readonly formerKeys: never;
863
+ };
849
864
  readonly "deals": {
850
865
  readonly tables: {
851
866
  readonly "deals": "id" | "tenant" | "number" | "identifier" | "name" | "companyType" | "companyId" | "motion" | "priority" | "owner" | "product" | "seats" | "amount" | "existingAmount" | "currency" | "valuePeriod" | "amountSource" | "pipeline" | "stage" | "stageEnteredAt" | "outcome" | "probability" | "forecast" | "openedOn" | "closeOn" | "slippedFrom" | "pushCount" | "closedAt" | "nextStep" | "nextAt" | "nextKind" | "flags" | "source" | "note" | "lostReason" | "locked" | "rank" | "archivedAt" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
@@ -1776,6 +1791,20 @@ interface BlockNameRegistry {
1776
1791
  readonly primary: never;
1777
1792
  readonly formerKeys: never;
1778
1793
  };
1794
+ readonly "option-sets": {
1795
+ readonly tables: {
1796
+ readonly "sets": "id" | "tenant" | "subjectType" | "field" | "scope" | "key" | "name" | "isDefault" | "archivedAt" | "createdAt" | "updatedAt";
1797
+ readonly "items": "id" | "tenant" | "set" | "key" | "systemKey" | "label" | "color" | "icon" | "rank" | "level" | "description" | "archivedAt" | "createdAt" | "updatedAt";
1798
+ };
1799
+ readonly functions: "archive_option_set_item" | "default_option_set" | "ensure_option_set" | "list_option_sets" | "rank_option_set_item" | "save_option_set" | "save_option_set_item";
1800
+ readonly actions: "read" | "manage";
1801
+ readonly hooks: never;
1802
+ readonly entities: {
1803
+ readonly "optionSet": "id" | "tenant_id" | "subject_type" | "field" | "scope_id" | "key" | "name" | "is_default" | "archived_at" | "created_at" | "updated_at";
1804
+ };
1805
+ readonly primary: "optionSet";
1806
+ readonly formerKeys: never;
1807
+ };
1779
1808
  readonly "orders": {
1780
1809
  readonly tables: {
1781
1810
  readonly "carts": "id" | "tenant" | "user" | "currency" | "priceList" | "status" | "email" | "shippingAddress" | "billingAddress" | "shippingRate" | "createdAt" | "updatedAt" | "convertedAt";
@@ -1897,7 +1926,7 @@ interface BlockNameRegistry {
1897
1926
  readonly "pipelines": {
1898
1927
  readonly tables: {
1899
1928
  readonly "pipelines": "id" | "tenant" | "subjectType" | "scope" | "key" | "name" | "rank" | "isDefault" | "archivedAt" | "createdAt" | "updatedAt";
1900
- readonly "stages": "id" | "tenant" | "pipeline" | "key" | "systemKey" | "name" | "color" | "rank" | "category" | "outcome" | "probability" | "rottingAfterDays" | "wipLimit" | "archivedAt" | "createdAt" | "updatedAt";
1929
+ readonly "stages": "id" | "tenant" | "pipeline" | "key" | "systemKey" | "name" | "color" | "icon" | "rank" | "category" | "outcome" | "probability" | "rottingAfterDays" | "wipLimit" | "archivedAt" | "createdAt" | "updatedAt";
1901
1930
  readonly "transitions": "tenant" | "pipeline" | "from" | "to";
1902
1931
  readonly "history": "id" | "tenant" | "subjectType" | "subjectId" | "pipeline" | "fromStage" | "toStage" | "stageName" | "category" | "outcome" | "amount" | "currency" | "actor" | "enteredAt" | "exitedAt";
1903
1932
  };
@@ -2361,17 +2390,17 @@ interface BlockNameRegistry {
2361
2390
  };
2362
2391
  readonly "shipments": {
2363
2392
  readonly tables: {
2364
- readonly "shipments": "id" | "tenant" | "reference" | "status" | "fromAddress" | "toAddress" | "fromLocation" | "subjectType" | "subjectId" | "carrier" | "service" | "trackingNumber" | "trackingUrl" | "labelId" | "labelUrl" | "labelFormat" | "labelCost" | "currency" | "labeledAt" | "deliveredAt" | "cancelledAt" | "createdBy" | "createdAt" | "updatedAt";
2393
+ readonly "shipments": "id" | "tenant" | "reference" | "status" | "fromAddress" | "toAddress" | "fromLocation" | "subjectType" | "subjectId" | "carrier" | "service" | "trackingNumber" | "trackingUrl" | "labelId" | "labelUrl" | "labelFormat" | "labelCost" | "currency" | "labeledAt" | "deliveredAt" | "cancelledAt" | "createdBy" | "createdAt" | "updatedAt" | "deliveredTo" | "proofReference" | "proofAttachment" | "proofRecordedAt";
2365
2394
  readonly "packages": "id" | "tenant" | "shipment" | "position" | "weight" | "length" | "width" | "height" | "reference";
2366
2395
  readonly "trackingEvents": "id" | "tenant" | "shipment" | "externalId" | "status" | "occurredAt" | "description" | "location" | "source" | "createdAt";
2367
2396
  readonly "lines": "id" | "tenant" | "shipment" | "position" | "direction" | "variant" | "location" | "quantity" | "allocation" | "detail" | "disposition" | "movement" | "movedAt" | "createdAt";
2368
2397
  readonly "intrastatLines": "id" | "tenant" | "period" | "flow" | "source" | "shipmentLine" | "receiptLine" | "variant" | "tradeCode" | "country" | "netMass" | "quantity" | "value" | "currency" | "createdAt" | "updatedAt";
2369
2398
  };
2370
- readonly functions: "cancel_shipment" | "create_shipment" | "get_shipment" | "ingest_tracking_events" | "list_shipments" | "list_tracking_events" | "receive_shipment_return" | "record_tracking_events" | "set_shipment_label" | "set_shipment_lines";
2399
+ readonly functions: "cancel_shipment" | "create_shipment" | "get_shipment" | "ingest_tracking_events" | "list_shipments" | "list_tracking_events" | "receive_shipment_return" | "record_delivery_proof" | "record_tracking_events" | "set_shipment_label" | "set_shipment_lines" | "shipment_events_append_only";
2371
2400
  readonly actions: "read" | "manage";
2372
2401
  readonly hooks: never;
2373
2402
  readonly entities: {
2374
- readonly "shipment": "id" | "tenant_id" | "reference" | "status" | "from_address" | "to_address" | "from_location_id" | "subject_type" | "subject_id" | "carrier" | "service" | "tracking_number" | "tracking_url" | "label_id" | "label_url" | "label_format" | "label_cost" | "currency" | "labeled_at" | "delivered_at" | "cancelled_at" | "created_by" | "created_at" | "updated_at";
2403
+ readonly "shipment": "id" | "tenant_id" | "reference" | "status" | "from_address" | "to_address" | "from_location_id" | "subject_type" | "subject_id" | "carrier" | "service" | "tracking_number" | "tracking_url" | "label_id" | "label_url" | "label_format" | "label_cost" | "currency" | "labeled_at" | "delivered_at" | "cancelled_at" | "created_by" | "created_at" | "updated_at" | "delivered_to" | "proof_reference" | "proof_attachment_id" | "proof_recorded_at";
2375
2404
  readonly "shipment_package": "id" | "tenant_id" | "shipment_id" | "position" | "weight_grams" | "length_mm" | "width_mm" | "height_mm" | "reference";
2376
2405
  readonly "shipment_tracking_event": "id" | "tenant_id" | "shipment_id" | "external_id" | "status" | "occurred_at" | "description" | "location" | "source" | "created_at";
2377
2406
  readonly "shipment_line": "id" | "tenant_id" | "shipment_id" | "position" | "direction" | "variant_id" | "location_id" | "quantity" | "allocation_id" | "detail" | "disposition" | "movement_id" | "moved_at" | "created_at";
@@ -2494,7 +2523,7 @@ interface BlockNameRegistry {
2494
2523
  readonly "projects": "id" | "tenant" | "key" | "name" | "owner" | "status" | "startOn" | "targetOn" | "budgetAmount" | "budgetCurrency" | "budgetHours" | "archivedAt" | "createdAt" | "updatedAt";
2495
2524
  readonly "iterations": "id" | "tenant" | "team" | "name" | "startsOn" | "endsOn" | "createdAt";
2496
2525
  };
2497
- readonly functions: "archive_task" | "create_task" | "delete_task" | "delete_task_checklist_item" | "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" | "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";
2498
2527
  readonly actions: "read" | "write" | "manage" | "create" | "delete";
2499
2528
  readonly hooks: "before_task_create" | "after_task_create" | "before_task_update" | "after_task_update";
2500
2529
  readonly entities: {
@@ -2669,13 +2698,13 @@ interface BlockNameRegistry {
2669
2698
  };
2670
2699
  readonly "versions": {
2671
2700
  readonly tables: {
2672
- readonly "versions": "id" | "tenant" | "subjectType" | "subjectId" | "number" | "label" | "content" | "storagePath" | "contentHash" | "source" | "frozen" | "createdBy" | "createdAt";
2701
+ readonly "versions": "id" | "tenant" | "subjectType" | "subjectId" | "number" | "label" | "content" | "storagePath" | "contentHash" | "fileHash" | "hashVersion" | "source" | "frozen" | "createdBy" | "createdAt";
2673
2702
  };
2674
2703
  readonly functions: "delete_version" | "get_version" | "label_version" | "list_versions" | "restore_version" | "snapshot_version" | "version_insert" | "versions_capture";
2675
2704
  readonly actions: "read" | "create" | "restore" | "manage";
2676
2705
  readonly hooks: "before_version_snapshot" | "after_version_snapshot" | "before_version_restore" | "after_version_restore";
2677
2706
  readonly entities: {
2678
- readonly "version": "id" | "tenant_id" | "subject_type" | "subject_id" | "number" | "label" | "content" | "storage_path" | "content_hash" | "source" | "frozen" | "created_by" | "created_at";
2707
+ readonly "version": "id" | "tenant_id" | "subject_type" | "subject_id" | "number" | "label" | "content" | "storage_path" | "content_hash" | "file_hash" | "hash_version" | "source" | "frozen" | "created_by" | "created_at";
2679
2708
  };
2680
2709
  readonly primary: "version";
2681
2710
  readonly formerKeys: never;
@@ -3136,7 +3165,7 @@ type AuditSqlOptions = {
3136
3165
  /**
3137
3166
  * Tables left out of audit coverage: `{ table, reason }` where `table` is a
3138
3167
  * glob such as `public.*_archive`. A bare glob string still works, but doctor
3139
- * reports it (BS315) and it becomes a failure in the next minor.
3168
+ * reports it as a BS315 error.
3140
3169
  */
3141
3170
  readonly exempt?: readonly (string | AuditExemption)[];
3142
3171
  readonly impersonators?: string;
@@ -3756,6 +3785,66 @@ type DispatchSqlOptions = {
3756
3785
  readonly defaultDuration?: string;
3757
3786
  };
3758
3787
  declare const dispatchSqlOptions: BlockOptionsSchema<DispatchSqlOptions>;
3788
+ /** The documents a template can be written for. */
3789
+ declare const DOCUMENT_TYPES: readonly ["invoice", "credit_note", "quote", "order", "dunning_letter", "delivery_note", "statement"];
3790
+ type DocumentType = (typeof DOCUMENT_TYPES)[number];
3791
+ /** A built-in type, or one the app defines in `options.documentTypes`. */
3792
+ type DocumentTypeName = DocumentType | (string & Record<never, never>);
3793
+ /**
3794
+ * The version of the variable contract. Adding an optional variable keeps it;
3795
+ * removing or retyping one needs the next version (architecture rule 10).
3796
+ */
3797
+ declare const DOCUMENT_CONTRACT_VERSION = 1;
3798
+ /** The filters a placeholder can apply: `{{ totals.total | money }}`. */
3799
+ declare const DOCUMENT_FILTERS: readonly ["money", "date"];
3800
+ /** The hint codes of a template that fails validation, first to last. */
3801
+ declare const DOCUMENT_TEMPLATE_ISSUES: readonly ["DOCUMENT_TEMPLATE_SYNTAX", "DOCUMENT_TEMPLATE_UNKNOWN_VARIABLE", "DOCUMENT_TEMPLATE_UNKNOWN_FILTER"];
3802
+ type DocumentTemplateIssueCode = (typeof DOCUMENT_TEMPLATE_ISSUES)[number];
3803
+ /** What a variable holds. `money` is a bigint in minor units, as text. */
3804
+ type DocumentVariableType = "string" | "number" | "boolean" | "money" | "date" | "object" | "list";
3805
+ interface DocumentVariable {
3806
+ /** A dotted path; a list item's field is `list[].field`. */
3807
+ readonly path: string;
3808
+ readonly type: DocumentVariableType;
3809
+ readonly description: string;
3810
+ }
3811
+ /** The variables of each document type, contract version 1. */
3812
+ declare const DOCUMENT_VARIABLES: Readonly<Record<DocumentType, readonly DocumentVariable[]>>;
3813
+ /**
3814
+ * The contract of one type as JSON, the shape `document_template_contract`
3815
+ * returns.
3816
+ */
3817
+ declare function documentContract(type: DocumentType): {
3818
+ readonly version: number;
3819
+ readonly documentType: DocumentType;
3820
+ readonly variables: readonly DocumentVariable[];
3821
+ };
3822
+ /** One variable an app-defined document type offers to its templates. */
3823
+ type AppDocumentVariable = {
3824
+ /** A dotted path; a list item's field is `list[].field`. */
3825
+ readonly path: string;
3826
+ readonly type: DocumentVariableType;
3827
+ readonly description?: string;
3828
+ };
3829
+ /**
3830
+ * A document type the app defines. `variables` is its contract, and `function`
3831
+ * is the app's `schema.name(tenant, document_id)` that returns the variable
3832
+ * payload as jsonb, read through row level security like the built-in
3833
+ * builders.
3834
+ */
3835
+ type AppDocumentType = {
3836
+ readonly function: string;
3837
+ readonly variables: readonly AppDocumentVariable[];
3838
+ };
3839
+ /** `blocks.document-templates.options`. */
3840
+ type DocumentTemplatesSqlOptions = {
3841
+ /**
3842
+ * Document types of the app, keyed by name (lower case letters, digits and
3843
+ * `_`). They sit next to the built-in types: templates, text blocks,
3844
+ * snapshots, `render_document` and `freeze_document` take them.
3845
+ */
3846
+ readonly documentTypes?: Readonly<Record<string, AppDocumentType>>;
3847
+ };
3759
3848
  /** `blocks.documents.options`. */
3760
3849
  type DocumentsSqlOptions = {
3761
3850
  readonly topic?: string;
@@ -4556,6 +4645,24 @@ type ObservationsSqlOptions = {
4556
4645
  type OnboardingSqlOptions = {
4557
4646
  readonly checklists?: unknown;
4558
4647
  };
4648
+ /**
4649
+ * Where a tenant's brand lives: the table and column that hold it, and the
4650
+ * column with the tenant id (`id` by default).
4651
+ */
4652
+ interface OptionSetBrandColumn {
4653
+ readonly table: string;
4654
+ readonly column: string;
4655
+ readonly tenant?: string;
4656
+ }
4657
+ /** `blocks.option-sets.options`. */
4658
+ type OptionSetsSqlOptions = {
4659
+ /**
4660
+ * Turns on per-brand item templates, e.g. `{ table: "public.organizations",
4661
+ * column: "brand" }`: a field's `brands.<brand>` template seeds the sets of
4662
+ * every tenant whose column holds that brand.
4663
+ */
4664
+ readonly brand?: OptionSetBrandColumn;
4665
+ };
4559
4666
  /** `blocks.orders.options`. */
4560
4667
  type OrdersSqlOptions = {
4561
4668
  readonly paymentWindowMinutes?: number;
@@ -4680,6 +4787,15 @@ type PermissionsSqlOptions = {
4680
4787
  /** `blocks.pipelines.options`. */
4681
4788
  type PipelinesSqlOptions = {
4682
4789
  readonly extraColumns?: ExtraColumns;
4790
+ /**
4791
+ * The table and column that hold an organization's brand; a binding's
4792
+ * `brands` then starts an organization of that brand with its own stages.
4793
+ */
4794
+ readonly brand?: {
4795
+ readonly table: string;
4796
+ readonly column: string;
4797
+ readonly tenant?: string;
4798
+ };
4683
4799
  };
4684
4800
  /** `blocks.posts.options`. */
4685
4801
  type PostsSqlOptions = {
@@ -4695,6 +4811,8 @@ type PostsSqlOptions = {
4695
4811
  declare const postsSqlOptions: BlockOptionsSchema<PostsSqlOptions>;
4696
4812
  /** `blocks.profiles.options`. */
4697
4813
  type ProfilesSqlOptions = {
4814
+ /** Which avatar column authors read: `url` (default) or `path`. */
4815
+ readonly avatarSource?: "path" | "url";
4698
4816
  readonly columnGrants?: boolean;
4699
4817
  readonly extraColumns?: ExtraColumns;
4700
4818
  readonly metadata?: unknown;
@@ -4942,15 +5060,24 @@ type SessionsSqlOptions = {
4942
5060
  * function whose jsonb result the authorizer reads (`accessFor` seeds it, so
4943
5061
  * the check skips its own subject query). Without it, an entry takes the
4944
5062
  * authorization provider's `functions.subject`; `subject: false` opts out.
4945
- * String entries take the provider's too. Renders
4946
- * `better_supabase.bootstrap_<name>`.
5063
+ * String entries take the provider's too. `{ function, tables?, subject? }`
5064
+ * is the string form with options. Every object form takes `tables`, the
5065
+ * tables the payload reads (model keys): `bsb.bootstrap({ rpc })` tags its
5066
+ * cache entry with them, and without `tables` `gen` derives them from the
5067
+ * function body. Renders `better_supabase.bootstrap_<name>`.
4947
5068
  */
4948
5069
  readonly bootstrap?: Readonly<Record<string, string | {
5070
+ readonly function: string;
5071
+ readonly tables?: readonly string[];
5072
+ readonly subject?: string | false;
5073
+ } | {
4949
5074
  readonly readSet: string;
5075
+ readonly tables?: readonly string[];
4950
5076
  readonly subject?: string | false;
4951
5077
  } | {
4952
5078
  readonly readSets: readonly string[];
4953
5079
  readonly shell?: string;
5080
+ readonly tables?: readonly string[];
4954
5081
  readonly subject?: string | false;
4955
5082
  }>>;
4956
5083
  readonly exclude?: readonly string[];
@@ -5279,7 +5406,7 @@ interface BlockOptionsRegistry {
5279
5406
  readonly automations: AutomationsSqlOptions;
5280
5407
  readonly banking: BankingSqlOptions;
5281
5408
  readonly tax: Record<never, never>;
5282
- readonly "document-templates": None;
5409
+ readonly "document-templates": DocumentTemplatesSqlOptions;
5283
5410
  readonly "payroll-export": PayrollExportSqlOptions;
5284
5411
  readonly "billable-time": None;
5285
5412
  readonly billing: BillingSqlOptions;
@@ -5342,6 +5469,7 @@ interface BlockOptionsRegistry {
5342
5469
  readonly rfqs: Record<never, never>;
5343
5470
  readonly tills: Record<never, never>;
5344
5471
  readonly periods: Record<never, never>;
5472
+ readonly deadlines: Record<never, never>;
5345
5473
  readonly "agent-checkout": Record<never, never>;
5346
5474
  readonly "clinical-decision-support": Record<never, never>;
5347
5475
  readonly "e-prescribing": Record<never, never>;
@@ -5375,6 +5503,7 @@ interface BlockOptionsRegistry {
5375
5503
  readonly passes: PassesSqlOptions;
5376
5504
  readonly permissions: PermissionsSqlOptions;
5377
5505
  readonly pgtap: None;
5506
+ readonly "option-sets": OptionSetsSqlOptions;
5378
5507
  readonly pipelines: PipelinesSqlOptions;
5379
5508
  readonly posts: PostsSqlOptions;
5380
5509
  readonly content: ContentSqlOptions;
@@ -5816,4 +5945,4 @@ interface ResolvedBlock {
5816
5945
  };
5817
5946
  }
5818
5947
  declare function resolveBlock(config?: BlockConfig): ResolvedBlock;
5819
- export { mailSyncSqlOptions as $, SegmentsSqlOptions as A, BlockOptionsSchema as At, passesSqlOptions as B, optionsJsonSchema as Bt, BlockOptionsRegistry as C, SubjectPermission as Ct, shipmentsSqlOptions as D, CarePlansSqlOptions as Dt, ShipmentsSqlOptions as E, SubjectsConfig as Et, RiskMatrixBand as F, OptionKind as Ft, RoleThroughOption as G, ModerationSqlOptions as H, BlockNameRegistry as Ht, RiskMatrixLevel as I, OptionSpec as It, MeetingsSqlOptions as J, SameTenantEntry as K, PostsSqlOptions as L, OptionSpecs as Lt, ScoresSqlOptions as M, NO_OPTIONS as Mt, RisksSqlOptions as N, OptionBuilders as Nt, SequencesSqlOptions as O, carePlansSqlOptions as Ot, risksSqlOptions as P, OptionInput as Pt, MailSyncSqlOptions as Q, postsSqlOptions as R, blockOptions as Rt, BLOCK_OPTION_SCHEMAS as S, SubjectConfig as St, SignaturesSqlOptions as T, SubjectTeam as Tt, MessagingSqlOptions as U, PlatformRolesOption as V, TablesOf as Vt, MembershipsSqlOptions as W, ManufacturingSqlOptions as X, meetingsSqlOptions as Y, manufacturingSqlOptions as Z, OwnTablePolicies as _, contentSqlOptions as _t, BlockConfigOf as a, leadScoringSqlOptions as at, resolveBlock as b, casesSqlOptions as bt, BlockScope as c, ImportsSqlOptions as ct, DisabledRow as d, DispatchSqlOptions as dt, LimsSqlOptions as et, EntitiesConfig as f, dispatchSqlOptions as ft, NamedInstance as g, ContentSqlOptions as gt, InstanceOn as h, coursesSqlOptions as ht, BlockConfig as i, LeadScoringSqlOptions as it, segmentsSqlOptions as j, ExtraColumns as jt, sequencesSqlOptions as k, AssetsSqlOptions as kt, BlocksConfig as l, importsSqlOptions as lt, InstanceKeys as m, CoursesSqlOptions as mt, ActiveTenantSource as n, LegalEntitiesSqlOptions as nt, BlockMode as o, InspectionsSqlOptions as ot, EntityConfig as p, CreatedBySqlOptions as pt, SameTenantOption as q, AnyBlocksConfig as r, legalEntitiesSqlOptions as rt, BlockName as s, inspectionsSqlOptions as st, AccessBlockConfig as t, limsSqlOptions as tt, DEFAULT_ACTIVE_TENANT as u, EnrollmentsSqlOptions as ut, ResolvedBlock as v, CommentsSqlOptions as vt, UpdatedAtSqlOptions as w, SubjectSearch as wt, tenantNameOf as x, RelationKindOptions as xt, TenantScopeConfig as y, CasesSqlOptions as yt, PassesSqlOptions as z, option as zt };
5948
+ export { mailSyncSqlOptions as $, option as $t, SegmentsSqlOptions as A, ContentSqlOptions as At, passesSqlOptions as B, SubjectsConfig as Bt, BlockOptionsRegistry as C, DocumentVariableType as Ct, shipmentsSqlOptions as D, CreatedBySqlOptions as Dt, ShipmentsSqlOptions as E, dispatchSqlOptions as Et, RiskMatrixBand as F, RelationKindOptions as Ft, RoleThroughOption as G, ExtraColumns as Gt, ModerationSqlOptions as H, carePlansSqlOptions as Ht, RiskMatrixLevel as I, SubjectConfig as It, MeetingsSqlOptions as J, OptionInput as Jt, SameTenantEntry as K, NO_OPTIONS as Kt, PostsSqlOptions as L, SubjectPermission as Lt, ScoresSqlOptions as M, CommentsSqlOptions as Mt, RisksSqlOptions as N, CasesSqlOptions as Nt, SequencesSqlOptions as O, CoursesSqlOptions as Ot, risksSqlOptions as P, casesSqlOptions as Pt, MailSyncSqlOptions as Q, blockOptions as Qt, postsSqlOptions as R, SubjectSearch as Rt, BLOCK_OPTION_SCHEMAS as S, DocumentVariable as St, SignaturesSqlOptions as T, DispatchSqlOptions as Tt, MessagingSqlOptions as U, AssetsSqlOptions as Ut, PlatformRolesOption as V, CarePlansSqlOptions as Vt, MembershipsSqlOptions as W, BlockOptionsSchema as Wt, ManufacturingSqlOptions as X, OptionSpec as Xt, meetingsSqlOptions as Y, OptionKind as Yt, manufacturingSqlOptions as Z, OptionSpecs as Zt, OwnTablePolicies as _, DOCUMENT_TYPES as _t, BlockConfigOf as a, leadScoringSqlOptions as at, resolveBlock as b, DocumentType as bt, BlockScope as c, ImportsSqlOptions as ct, DisabledRow as d, AppDocumentType as dt, optionsJsonSchema as en, LimsSqlOptions as et, EntitiesConfig as f, AppDocumentVariable as ft, NamedInstance as g, DOCUMENT_TEMPLATE_ISSUES as gt, InstanceOn as h, DOCUMENT_FILTERS as ht, BlockConfig as i, LeadScoringSqlOptions as it, segmentsSqlOptions as j, contentSqlOptions as jt, sequencesSqlOptions as k, coursesSqlOptions as kt, BlocksConfig as l, importsSqlOptions as lt, InstanceKeys as m, DOCUMENT_CONTRACT_VERSION as mt, ActiveTenantSource as n, BlockNameRegistry as nn, LegalEntitiesSqlOptions as nt, BlockMode as o, InspectionsSqlOptions as ot, EntityConfig as p, DocumentTemplatesSqlOptions as pt, SameTenantOption as q, OptionBuilders as qt, AnyBlocksConfig as r, legalEntitiesSqlOptions as rt, BlockName as s, inspectionsSqlOptions as st, AccessBlockConfig as t, TablesOf as tn, limsSqlOptions as tt, DEFAULT_ACTIVE_TENANT as u, EnrollmentsSqlOptions as ut, ResolvedBlock as v, DOCUMENT_VARIABLES as vt, UpdatedAtSqlOptions as w, documentContract as wt, tenantNameOf as x, DocumentTypeName as xt, TenantScopeConfig as y, DocumentTemplateIssueCode as yt, PassesSqlOptions as z, SubjectTeam as zt };
@@ -1,11 +1,11 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { r as FieldsOf } from "./block-fields-Cq2MlJJD.js";
3
- import { n as BlockOptions } from "./block-helpers-YOdaCxWE.js";
4
- import { n as BlockHooks } from "./block-hooks-xAMR6WdT.js";
3
+ import { n as BlockOptions } from "./block-helpers-rTsuHt6v.js";
4
+ import { n as BlockHooks } from "./block-hooks-FM9t7ol_.js";
5
5
  import { n as Logger } from "./logger-0LfhvwE4.js";
6
6
  import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
7
7
  import { o as WeeklyHours } from "./availability-ezSvbaRp.js";
8
- import { _ as JobHandler } from "./types-CmlZw_7N.js";
8
+ import { _ as JobHandler } from "./types-CTb0Uroz.js";
9
9
  import { t as AsyncResult } from "./result-CMqlHv82.js";
10
10
  /** An ISO weekday: 1 is Monday, 7 is Sunday. */
11
11
  type BookingWeekday = 1 | 2 | 3 | 4 | 5 | 6 | 7;
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { b as DbError, f as Result, t as AsyncResult } from "./result-CMqlHv82.js";
3
- import { It as RequestContext, M as BucketPolicyName, T as AccessBucketPolicy, bt as ObjectVersion, vt as BucketLifecycle, xt as VersioningStatus } from "./types-D5UNIbOQ.js";
3
+ import { It as RequestContext, M as BucketPolicyName, T as AccessBucketPolicy, bt as ObjectVersion, vt as BucketLifecycle, xt as VersioningStatus } from "./types-BlBju7Wa.js";
4
4
  import { SupabaseClient } from "@supabase/supabase-js";
5
5
  /**
6
6
  * Placeholder names in a `{name}` template; a rest placeholder `{...name}` is
@@ -1,6 +1,6 @@
1
1
  import { f as Result } from "./result-CMqlHv82.js";
2
- import { E as StoredSession } from "./resolve-NeMeUVtf.js";
3
- import { t as TagOptions } from "./tags-CBASI98_.js";
2
+ import { E as StoredSession } from "./resolve-B9Rn2M5c.js";
3
+ import { t as TagOptions } from "./tags-BahXc6bW.js";
4
4
  /**
5
5
  * `next` when it is a same-origin path (`/dashboard?tab=1`), else `fallback`.
6
6
  * Use it on any `?next=` or `redirectTo` value a request carries, so the value