better-supabase 0.53.0 → 0.55.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 (668) 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-CBXJce8J.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-CtwkMJDZ.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-BsDmauWB.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/{audit-actions-Dni5Y4wV.d.ts → audit-actions-DC-AtyWB.d.ts} +6 -0
  29. package/dist/auth/index.d.ts +8 -0
  30. package/dist/auth/index.js +1 -0
  31. package/dist/{authorization-UYejwQsk.d.ts → authorization-DK7YSiFV.d.ts} +1 -1
  32. package/dist/{authorization-hooks-BiMwxiZN.d.ts → authorization-hooks-DM_ijJsD.d.ts} +2 -2
  33. package/dist/{automations-CjKWYzIu.js → automations-Cu1KdCvL.js} +3 -1
  34. package/dist/{banking-reads-M3pbqqke.js → banking-reads-C41R4bEw.js} +1 -1
  35. package/dist/better-result/index.d.ts +3 -3
  36. package/dist/{bind-D4qLTlY4.d.ts → bind-DiGmjHzz.d.ts} +7 -7
  37. package/dist/{block-authors-C5z3tGVu.d.ts → block-authors-BkayxCWo.d.ts} +2 -0
  38. package/dist/{block-authors-BUczGqr5.js → block-authors-Dt8tG1o9.js} +2 -1
  39. package/dist/{block-env-BLBr90is.d.ts → block-env-BTKZBCL4.d.ts} +4 -4
  40. package/dist/{block-event-listener-CaR-FW5X.d.ts → block-event-listener-DannKfYZ.d.ts} +1 -1
  41. package/dist/{block-events-records-CMq4TElv.d.ts → block-events-records-BhqpDl-4.d.ts} +1 -1
  42. package/dist/{block-helpers-YOdaCxWE.d.ts → block-helpers-rTsuHt6v.d.ts} +1 -1
  43. package/dist/{block-hooks-xAMR6WdT.d.ts → block-hooks-FM9t7ol_.d.ts} +2 -2
  44. package/dist/{block-subjects-B8PmdWEd.d.ts → block-subjects-B6qEt8WO.d.ts} +1 -1
  45. package/dist/{block-subjects-Cvd-RaMY.js → block-subjects-BoJrJAgR.js} +7 -4
  46. package/dist/{block-tables-BkgafSZd.d.ts → block-tables-B6Jt0mWg.d.ts} +1 -1
  47. package/dist/{block-transport-DBteddOY.d.ts → block-transport-CP4wAHU-.d.ts} +2 -2
  48. package/dist/blocks/access-requests/index.d.ts +3 -3
  49. package/dist/blocks/accounting/index.d.ts +3 -3
  50. package/dist/blocks/acknowledgements/index.d.ts +2 -2
  51. package/dist/blocks/activities/index.d.ts +6 -6
  52. package/dist/blocks/advisories/index.d.ts +5 -5
  53. package/dist/blocks/agent-checkout/index.d.ts +7 -7
  54. package/dist/blocks/agents/index.d.ts +5 -5
  55. package/dist/blocks/ai-cache/index.d.ts +3 -3
  56. package/dist/blocks/ai-chat/index.d.ts +4 -4
  57. package/dist/blocks/ai-evals/index.d.ts +4 -4
  58. package/dist/blocks/ai-files/index.d.ts +3 -3
  59. package/dist/blocks/ai-guardrails/index.d.ts +4 -4
  60. package/dist/blocks/ai-keys/index.d.ts +4 -4
  61. package/dist/blocks/ai-schedules/index.d.ts +3 -3
  62. package/dist/blocks/announcements/index.d.ts +8 -8
  63. package/dist/blocks/api-keys/index.d.ts +3 -3
  64. package/dist/blocks/appraisals/index.d.ts +5 -5
  65. package/dist/blocks/approvals/index.d.ts +3 -3
  66. package/dist/blocks/assets/index.d.ts +4 -4
  67. package/dist/blocks/assignment/index.d.ts +3 -3
  68. package/dist/blocks/attachments/index.d.ts +11 -11
  69. package/dist/blocks/attachments/index.js +15 -5
  70. package/dist/blocks/audit/index.d.ts +121 -42
  71. package/dist/blocks/audit/index.js +183 -32
  72. package/dist/blocks/automations/index.d.ts +12 -12
  73. package/dist/blocks/banking/index.d.ts +3 -3
  74. package/dist/blocks/banking/index.js +1 -1
  75. package/dist/blocks/billable-time/index.d.ts +3 -3
  76. package/dist/blocks/billing/index.d.ts +6 -6
  77. package/dist/blocks/bookings/index.d.ts +3 -3
  78. package/dist/blocks/bulk/index.d.ts +4 -4
  79. package/dist/blocks/calendar/index.d.ts +3 -3
  80. package/dist/blocks/care/index.d.ts +30 -30
  81. package/dist/blocks/care/index.js +4 -4
  82. package/dist/blocks/care-plans/index.d.ts +6 -6
  83. package/dist/blocks/care-plans/index.js +2 -2
  84. package/dist/blocks/cases/index.d.ts +5 -5
  85. package/dist/blocks/catalog/index.d.ts +4 -4
  86. package/dist/blocks/channels/index.d.ts +7 -7
  87. package/dist/blocks/clinical-decision-support/index.d.ts +4 -4
  88. package/dist/blocks/cms/index.d.ts +7 -7
  89. package/dist/blocks/cms/index.js +2 -2
  90. package/dist/blocks/collaboration/index.d.ts +8 -8
  91. package/dist/blocks/collaboration/index.js +2 -2
  92. package/dist/blocks/collections/index.d.ts +6 -6
  93. package/dist/blocks/comments/index.d.ts +5 -5
  94. package/dist/blocks/comments/index.js +2 -2
  95. package/dist/blocks/commerce/index.d.ts +7 -7
  96. package/dist/blocks/commerce/index.js +2 -2
  97. package/dist/blocks/commissions/index.d.ts +5 -5
  98. package/dist/blocks/compliance/index.d.ts +5 -5
  99. package/dist/blocks/connectors/index.d.ts +4 -4
  100. package/dist/blocks/consents/index.d.ts +5 -5
  101. package/dist/blocks/contacts/index.d.ts +5 -5
  102. package/dist/blocks/content/index.d.ts +4 -4
  103. package/dist/blocks/contracts/index.d.ts +6 -6
  104. package/dist/blocks/courses/index.d.ts +5 -5
  105. package/dist/blocks/created-by/index.d.ts +3 -3
  106. package/dist/blocks/crm/index.d.ts +18 -18
  107. package/dist/blocks/crm/index.js +3 -3
  108. package/dist/blocks/custom-fields/index.d.ts +2 -2
  109. package/dist/blocks/dam/index.d.ts +6 -6
  110. package/dist/blocks/dam/index.js +2 -2
  111. package/dist/blocks/data-lifecycle/index.d.ts +3 -3
  112. package/dist/blocks/deadlines/index.d.ts +193 -0
  113. package/dist/blocks/deadlines/index.js +159 -0
  114. package/dist/blocks/deals/index.d.ts +3 -3
  115. package/dist/blocks/dispatch/index.d.ts +4 -4
  116. package/dist/blocks/document-templates/index.d.ts +23 -52
  117. package/dist/blocks/document-templates/index.js +17 -17
  118. package/dist/blocks/documents/index.d.ts +4 -4
  119. package/dist/blocks/domains/index.d.ts +6 -6
  120. package/dist/blocks/donations/index.d.ts +6 -6
  121. package/dist/blocks/drive/index.d.ts +6 -6
  122. package/dist/blocks/drive/index.js +3 -3
  123. package/dist/blocks/e-prescribing/index.d.ts +4 -4
  124. package/dist/blocks/employees/index.d.ts +3 -3
  125. package/dist/blocks/enrichment/index.d.ts +3 -3
  126. package/dist/blocks/enrollments/index.d.ts +4 -4
  127. package/dist/blocks/entitlements/index.d.ts +4 -4
  128. package/dist/blocks/events/index.d.ts +5 -5
  129. package/dist/blocks/expenses/index.d.ts +5 -5
  130. package/dist/blocks/field-history/index.d.ts +3 -3
  131. package/dist/blocks/filespace/index.d.ts +9 -9
  132. package/dist/blocks/filespace/index.js +3 -3
  133. package/dist/blocks/finance/index.d.ts +6 -6
  134. package/dist/blocks/finance/index.js +3 -3
  135. package/dist/blocks/flags/index.d.ts +5 -5
  136. package/dist/blocks/forecasts/index.d.ts +3 -3
  137. package/dist/blocks/forms/index.d.ts +4 -4
  138. package/dist/blocks/funding/index.d.ts +5 -5
  139. package/dist/blocks/goals/index.d.ts +3 -3
  140. package/dist/blocks/governance/index.d.ts +5 -5
  141. package/dist/blocks/guests/index.d.ts +3 -3
  142. package/dist/blocks/hiring/index.d.ts +3 -3
  143. package/dist/blocks/identities/index.d.ts +5 -5
  144. package/dist/blocks/imports/index.d.ts +6 -6
  145. package/dist/blocks/inbox/index.d.ts +10 -10
  146. package/dist/blocks/inbox/index.js +1 -1
  147. package/dist/blocks/incidents/index.d.ts +5 -5
  148. package/dist/blocks/index.d.ts +21 -19
  149. package/dist/blocks/index.js +1 -1
  150. package/dist/blocks/inspections/index.d.ts +6 -6
  151. package/dist/blocks/inventory/index.d.ts +3 -3
  152. package/dist/blocks/inventory/index.js +1 -1
  153. package/dist/blocks/invoices/index.d.ts +6 -6
  154. package/dist/blocks/invoices/index.js +1 -1
  155. package/dist/blocks/knowledge/index.d.ts +3 -3
  156. package/dist/blocks/lead-scoring/index.d.ts +4 -4
  157. package/dist/blocks/learning/index.d.ts +5 -5
  158. package/dist/blocks/leases/index.d.ts +6 -6
  159. package/dist/blocks/leave/index.d.ts +3 -3
  160. package/dist/blocks/ledger/index.d.ts +6 -6
  161. package/dist/blocks/legal-entities/index.d.ts +6 -6
  162. package/dist/blocks/lims/index.d.ts +6 -6
  163. package/dist/blocks/mail-sync/index.d.ts +5 -5
  164. package/dist/blocks/maintenance/index.d.ts +4 -4
  165. package/dist/blocks/manufacturing/index.d.ts +6 -6
  166. package/dist/blocks/medications/index.d.ts +4 -4
  167. package/dist/blocks/meetings/index.d.ts +5 -5
  168. package/dist/blocks/memberships/index.d.ts +3 -3
  169. package/dist/blocks/memory/index.d.ts +4 -4
  170. package/dist/blocks/messaging/index.d.ts +11 -11
  171. package/dist/blocks/messaging/index.js +1 -1
  172. package/dist/blocks/metrics/index.d.ts +6 -6
  173. package/dist/blocks/mfa/index.d.ts +2 -2
  174. package/dist/blocks/moderation/index.d.ts +7 -7
  175. package/dist/blocks/notifications/index.d.ts +10 -10
  176. package/dist/blocks/numbering/index.d.ts +1 -1
  177. package/dist/blocks/oauth-server/index.d.ts +5 -5
  178. package/dist/blocks/observations/index.d.ts +5 -5
  179. package/dist/blocks/onboarding/index.d.ts +3 -3
  180. package/dist/blocks/option-sets/index.d.ts +183 -0
  181. package/dist/blocks/option-sets/index.js +188 -0
  182. package/dist/blocks/orders/index.d.ts +4 -4
  183. package/dist/blocks/orders/index.js +1 -1
  184. package/dist/blocks/organizations/index.d.ts +4 -4
  185. package/dist/blocks/outbox/index.d.ts +4 -4
  186. package/dist/blocks/passes/index.d.ts +4 -4
  187. package/dist/blocks/payroll-export/index.d.ts +4 -4
  188. package/dist/blocks/payroll-export/index.js +1 -1
  189. package/dist/blocks/people/index.d.ts +8 -8
  190. package/dist/blocks/people/index.js +1 -1
  191. package/dist/blocks/periods/index.d.ts +5 -5
  192. package/dist/blocks/permissions/index.d.ts +7 -7
  193. package/dist/blocks/pipelines/index.d.ts +3 -3
  194. package/dist/blocks/pipelines/index.js +1 -1
  195. package/dist/blocks/posts/index.d.ts +6 -6
  196. package/dist/blocks/procurement/index.d.ts +6 -6
  197. package/dist/blocks/procurement/index.js +3 -3
  198. package/dist/blocks/profiles/index.d.ts +3 -3
  199. package/dist/blocks/profiles/index.js +1 -1
  200. package/dist/blocks/projects/index.d.ts +8 -8
  201. package/dist/blocks/projects/index.js +2 -2
  202. package/dist/blocks/promotions/index.d.ts +3 -3
  203. package/dist/blocks/prompts/index.d.ts +4 -4
  204. package/dist/blocks/push/index.d.ts +7 -7
  205. package/dist/blocks/qualifications/index.d.ts +4 -4
  206. package/dist/blocks/queue/index.d.ts +5 -5
  207. package/dist/blocks/quotes/index.d.ts +5 -5
  208. package/dist/blocks/quotes/index.js +2 -2
  209. package/dist/blocks/rank/index.d.ts +4 -4
  210. package/dist/blocks/reactions/index.d.ts +6 -6
  211. package/dist/blocks/recruiting/index.d.ts +5 -5
  212. package/dist/blocks/referrals/index.d.ts +5 -5
  213. package/dist/blocks/relations/index.d.ts +7 -7
  214. package/dist/blocks/reminders/index.d.ts +1 -1
  215. package/dist/blocks/reviews/index.d.ts +5 -5
  216. package/dist/blocks/rfqs/index.d.ts +4 -4
  217. package/dist/blocks/risks/index.d.ts +6 -6
  218. package/dist/blocks/saas/index.d.ts +14 -14
  219. package/dist/blocks/saas/index.js +1 -1
  220. package/dist/blocks/sales/index.d.ts +1 -1
  221. package/dist/blocks/sales/index.js +1 -1
  222. package/dist/blocks/saved-views/index.d.ts +6 -6
  223. package/dist/blocks/scheduling/index.d.ts +6 -6
  224. package/dist/blocks/scores/index.d.ts +6 -6
  225. package/dist/blocks/search/index.d.ts +5 -5
  226. package/dist/blocks/security-events/index.d.ts +7 -7
  227. package/dist/blocks/segments/index.d.ts +4 -4
  228. package/dist/blocks/sequences/index.d.ts +5 -5
  229. package/dist/blocks/service/index.d.ts +8 -8
  230. package/dist/blocks/service/index.js +1 -1
  231. package/dist/blocks/service-accounts/index.d.ts +5 -5
  232. package/dist/blocks/sessions/index.d.ts +4 -4
  233. package/dist/blocks/settings/index.d.ts +4 -4
  234. package/dist/blocks/share-links/index.d.ts +1 -1
  235. package/dist/blocks/shifts/index.d.ts +4 -4
  236. package/dist/blocks/shipments/index.d.ts +32 -8
  237. package/dist/blocks/shipments/index.js +23 -0
  238. package/dist/blocks/signatures/index.d.ts +3 -3
  239. package/dist/blocks/signing-keys/index.d.ts +3 -3
  240. package/dist/blocks/sla/index.d.ts +3 -3
  241. package/dist/blocks/sso/index.d.ts +6 -6
  242. package/dist/blocks/state-machine/index.d.ts +2 -2
  243. package/dist/blocks/subjects/index.d.ts +7 -7
  244. package/dist/blocks/support/index.d.ts +6 -6
  245. package/dist/blocks/support/index.js +2 -2
  246. package/dist/blocks/tags/index.d.ts +3 -3
  247. package/dist/blocks/tasks/index.d.ts +5 -5
  248. package/dist/blocks/tasks/index.js +1 -1
  249. package/dist/blocks/tax/index.d.ts +4 -4
  250. package/dist/blocks/tax/index.js +1 -1
  251. package/dist/blocks/teams/index.d.ts +1 -1
  252. package/dist/blocks/templates/index.d.ts +18 -8
  253. package/dist/blocks/templates/index.js +6 -1
  254. package/dist/blocks/tills/index.d.ts +5 -5
  255. package/dist/blocks/time-tracking/index.d.ts +3 -3
  256. package/dist/blocks/timeline/index.d.ts +2 -2
  257. package/dist/blocks/trash/index.d.ts +3 -3
  258. package/dist/blocks/undo/index.d.ts +4 -4
  259. package/dist/blocks/updated-at/index.d.ts +3 -3
  260. package/dist/blocks/usage/index.d.ts +4 -4
  261. package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
  262. package/dist/blocks/versions/index.d.ts +2 -2
  263. package/dist/blocks/versions/index.js +1 -1
  264. package/dist/blocks/waitlist/index.d.ts +5 -5
  265. package/dist/blocks/warehouse/index.d.ts +5 -5
  266. package/dist/blocks/webhooks/index.d.ts +13 -13
  267. package/dist/blocks/workflow-editor/index.d.ts +9 -9
  268. package/dist/blocks/workflows/index.d.ts +7 -7
  269. package/dist/{blocks-EFj0duwB.d.ts → blocks-2HFgUcqG.d.ts} +196 -32
  270. package/dist/{bookings-DetPC3Dw.d.ts → bookings-CBRjx_ZD.d.ts} +3 -3
  271. package/dist/{bucket-CUw0p3qM.d.ts → bucket-DJu58KBb.d.ts} +1 -1
  272. package/dist/{cache-tags-TT8h2zMg.d.ts → cache-tags-CGaOtjgV.d.ts} +2 -2
  273. package/dist/{care-plans-D5B4oqQC.d.ts → care-plans-pCvNs7-a.d.ts} +2 -2
  274. package/dist/{care-plans-sql-CNMF3H9k.js → care-plans-sql-CNs5Mpql.js} +1 -1
  275. package/dist/{carrier-DOAreMbT.d.ts → carrier-DaIG8Q4x.d.ts} +12 -0
  276. package/dist/chat-sdk/index.d.ts +6 -6
  277. package/dist/claims/index.d.ts +6 -6
  278. package/dist/cli/{add-C3yGPSQS.js → add-BnYh-Kpy.js} +12 -12
  279. package/dist/cli/add-D0TUMxXn.js +1 -0
  280. package/dist/cli/{add-DlucpPCL.js → add-LvxZ-JNB.js} +2 -2
  281. package/dist/cli/{app-table-files-CC5n8Si8.js → app-table-files-7M0I9LaE.js} +3 -3
  282. package/dist/cli/{app-tables-C-Rk_GnI.js → app-tables-BfWPWiOJ.js} +2 -2
  283. package/dist/cli/{backfill-DbqA8coR.js → backfill-i0Tx24Sa.js} +3 -3
  284. package/dist/cli/bin.js +1 -1
  285. package/dist/cli/{blocks-BBBpNbQD.js → blocks-C_7ioBdJ.js} +1 -1
  286. package/dist/cli/{blocks-BFlOktiM.js → blocks-X_eD_t_f.js} +1 -1
  287. package/dist/cli/{cache-BgNWPD9a.js → cache-D98rjB1C.js} +17 -4
  288. package/dist/cli/{codemod-B4DpCiqX.js → codemod-j1nCkgA5.js} +1 -1
  289. package/dist/cli/{config-FN5Cp861.js → config-DdkxiGjH.js} +7 -0
  290. package/dist/cli/{config-U32Vo0h6.js → config-DmjFp8jY.js} +1 -1
  291. package/dist/cli/{content-mapper-BaJhpTQA.js → content-mapper-UsLt4y0J.js} +2 -2
  292. package/dist/cli/{db-T8u160uM.js → db-B54TQ_iX.js} +2 -2
  293. package/dist/cli/{doctor-Dnq5J_p_.js → doctor-BYJM72wi.js} +34 -20
  294. package/dist/cli/{gen-Bf9cVgpR.js → gen-D47t5jj3.js} +14 -14
  295. package/dist/cli/index.d.ts +3 -1
  296. package/dist/cli/index.js +7 -7
  297. package/dist/cli/{init-_IFg5fe6.js → init-CAWeLXCs.js} +10 -10
  298. package/dist/cli/{live-pq1yvvsl.js → live-DNd8MMNk.js} +2 -2
  299. package/dist/cli/{mcp-YD0Ap6ok.js → mcp-BUs7M6fq.js} +2 -2
  300. package/dist/cli/{metadata-CfauXPW0.js → metadata-UwEYCntC.js} +3 -3
  301. package/dist/cli/{migrate-DWCu2Nny.js → migrate-D-GzXR4D.js} +1 -1
  302. package/dist/cli/{migration-safety-rjlsDMDU.js → migration-safety-Cg9jf2s-.js} +2 -2
  303. package/dist/cli/{migrations-BRCqeu8k.js → migrations-Bhcf7MHM.js} +2 -2
  304. package/dist/cli/{module-migration-BpptcXiB.js → module-migration-BJaOdOWy.js} +2 -2
  305. package/dist/cli/powersync-Bn-u0TGP.js +1 -0
  306. package/dist/cli/{powersync-DsbJBuTR.js → powersync-DQKdjG_K.js} +3 -3
  307. package/dist/cli/{print-A9UGTj_t.js → print-B1onZWRG.js} +2 -2
  308. package/dist/cli/{providers-MlTm8nMs.js → providers-M7s8btf1.js} +1 -1
  309. package/dist/cli/{prune-workflows-B6sqjrR0.js → prune-workflows-BiRF1YBZ.js} +3 -3
  310. package/dist/cli/{remove-BpY-E_l4.js → remove-BHyzqWNm.js} +6 -6
  311. package/dist/cli/{render-8qD7j0se.js → render-DDCy_0V_.js} +20 -10
  312. package/dist/cli/{run-DHRA46qf.js → run-Csm1-Uto.js} +35 -35
  313. package/dist/cli/{run-Dl1TZGsM.js → run-DDUBMkbN.js} +9 -9
  314. package/dist/cli/seed-BxjjQ3OO.js +1 -0
  315. package/dist/cli/{seed-BgpovbwF.js → seed-kCLEYSOH.js} +2 -2
  316. package/dist/cli/{shared-B77Q9x0E.js → shared-Cv22MEAO.js} +1 -1
  317. package/dist/cli/{snapshot-_roTbSZM.js → snapshot-9xnSt525.js} +71 -7
  318. package/dist/cli/{source-BseR3sy9.js → source-B_miugrh.js} +1 -1
  319. package/dist/cli/{source-args-DC8snM7e.js → source-args-C3_mMci3.js} +1 -1
  320. package/dist/cli/{spec-n6QRlBOJ.js → spec-BeAgQ-of.js} +1 -1
  321. package/dist/cli/{spec-Ct3i4drt.js → spec-dYLJbr9J.js} +2 -2
  322. package/dist/cli/{sql-layout-D_fJsw3B.js → sql-layout-3YU4941N.js} +2 -2
  323. package/dist/cli/{sync-DqBQi0QQ.js → sync-Bfwk4Ldc.js} +4 -4
  324. package/dist/cli/{upgrade-y3Iv4wl8.js → upgrade-BMrkzAcD.js} +5 -5
  325. package/dist/cli/{upgrade-MRqrFaO1.js → upgrade-DRvMFW2T.js} +2 -2
  326. package/dist/cli/{version-CiE6Pt0K.js → version-BXjNETWS.js} +1 -1
  327. package/dist/client/index.d.ts +6 -6
  328. package/dist/client/native/index.d.ts +5 -5
  329. package/dist/{clinical-decision-support-C18qtFj-.d.ts → clinical-decision-support-CMAg066a.d.ts} +3 -3
  330. package/dist/{cloud-event-SAA1PEvA.d.ts → cloud-event-Dj2V1lQw.d.ts} +1 -1
  331. package/dist/{compiler-70Fl9dnF.d.ts → compiler-BSHKt-d2.d.ts} +2 -2
  332. package/dist/{composite-CgxTMZTK.js → composite-C4oO4i6z.js} +1 -1
  333. package/dist/{composite-CvlcYj8Y.d.ts → composite-Ddap_a-U.d.ts} +7 -7
  334. package/dist/{composite-reads-CEI-IJ5A.d.ts → composite-reads-BJ1TQ3AK.d.ts} +2 -2
  335. package/dist/config/index.d.ts +5 -5
  336. package/dist/config/index.js +4 -4
  337. package/dist/{config-BWYT86yp.js → config-CsX2THwJ.js} +3 -3
  338. package/dist/{config-B1m2PpjB.js → config-Dgl6AxKE.js} +26 -1
  339. package/dist/{connectors-BY81_miN.d.ts → connectors-DbxxDqyA.d.ts} +4 -4
  340. package/dist/{consents-BWE1N4Sn.d.ts → consents-6PofNNAB.d.ts} +3 -3
  341. package/dist/{contacts-DYS4GDJ-.d.ts → contacts-CDA1nZxh.d.ts} +3 -3
  342. package/dist/{context-DcHcHc2b.d.ts → context-DSJpfeVv.d.ts} +67 -6
  343. package/dist/contract/index.d.ts +9 -9
  344. package/dist/{contributions-DPjEWWpE.js → contributions-olp7tVYC.js} +11 -0
  345. package/dist/{controller-BrTPi8Po.d.ts → controller-BVee4yX8.d.ts} +1 -1
  346. package/dist/{conversion-t1F0y--Y.d.ts → conversion-BPkWkVoa.d.ts} +1 -1
  347. package/dist/create/index.d.ts +4 -4
  348. package/dist/create/index.js +3 -3
  349. package/dist/create/lite/index.d.ts +4 -4
  350. package/dist/create/lite/index.js +2 -2
  351. package/dist/{create-blocks-CkhSm4iX.js → create-blocks-Af1utfuf.js} +20 -8
  352. package/dist/credentials/index.d.ts +4 -4
  353. package/dist/{data-engine-BcUcfW1q.d.ts → data-engine-0uVsKWaB.d.ts} +8 -4
  354. package/dist/{db-blocks-Dp-4qbYN.d.ts → db-blocks-CzhzWfvR.d.ts} +5 -5
  355. package/dist/deadlines-values-B7ArpVJU.js +127 -0
  356. package/dist/{define-block-B2um61Uj.d.ts → define-block-Cu67KCN1.d.ts} +48 -19
  357. package/dist/{document-templates-values-BnBuJB0m.js → document-templates-values-DpNB3q5K.js} +4 -1
  358. package/dist/{documents-C8OJO-L6.d.ts → documents-pW4DIqiC.d.ts} +3 -3
  359. package/dist/{drive-BSp7gloI.d.ts → drive-D008IDpI.d.ts} +5 -5
  360. package/dist/e-invoicing/index.d.ts +2 -2
  361. package/dist/{e-prescribing-09IQDtRG.d.ts → e-prescribing-W0tunICr.d.ts} +4 -4
  362. package/dist/edge/index.d.ts +9 -9
  363. package/dist/edge/index.js +3 -3
  364. package/dist/elysia/index.d.ts +1 -1
  365. package/dist/{embeddings-BXTzKGvc.d.ts → embeddings-DA6mQZKv.d.ts} +2 -2
  366. package/dist/{ended-U8XnT2Ta.d.ts → ended-C-w3KU-i.d.ts} +2 -2
  367. package/dist/{entitlements-DuNBTDsH.d.ts → entitlements-CRBZg5y2.d.ts} +2 -2
  368. package/dist/eve/index.d.ts +9 -9
  369. package/dist/{eve-BBH2T4UZ.d.ts → eve-CY8cwAtb.d.ts} +2 -2
  370. package/dist/events/index.d.ts +5 -5
  371. package/dist/{events-X-Dhu495.d.ts → events-DN9PAcjq.d.ts} +1 -1
  372. package/dist/{executor-Czf5tnue.d.ts → executor-CeZUCBC3.d.ts} +1 -1
  373. package/dist/{executor-RNhfR91D.d.ts → executor-CewY2EQK.d.ts} +4 -4
  374. package/dist/{executor-sziduCKN.d.ts → executor-CnU5r1HS.d.ts} +1 -1
  375. package/dist/expo/index.d.ts +6 -6
  376. package/dist/expo/index.js +2 -2
  377. package/dist/{extract-DvU_lPRQ.d.ts → extract-BU5w3k5s.d.ts} +5 -5
  378. package/dist/fhir/index.d.ts +5 -5
  379. package/dist/{field-errors-Mo8dzoyA.d.ts → field-errors-CjEgbjO9.d.ts} +10 -10
  380. package/dist/{fields-CUZVw9WB.d.ts → fields-Cy8HCOKW.d.ts} +1 -1
  381. package/dist/{filter-evaluate-BFBP_icy.d.ts → filter-evaluate-CgKvlbI7.d.ts} +1 -1
  382. package/dist/{filter-query-09B_jtdv.d.ts → filter-query-CJ3wcwqH.d.ts} +1 -1
  383. package/dist/{flags-3v6OMgdo.d.ts → flags-CRR5N4_s.d.ts} +2 -2
  384. package/dist/flags-sdk/index.d.ts +2 -2
  385. package/dist/{framework-BfP8NwDY.js → framework-B6jEuZLs.js} +1 -1
  386. package/dist/{framework-BoDTo47q.d.ts → framework-B9hr-1OW.d.ts} +8 -8
  387. package/dist/{funding-B5xV2Vuz.d.ts → funding-C2R7BTT_.d.ts} +4 -4
  388. package/dist/{gateway-iEOaTBsD.d.ts → gateway-Dwd08sBI.d.ts} +3 -3
  389. package/dist/h3/index.d.ts +1 -1
  390. package/dist/h3/v1/index.d.ts +1 -1
  391. package/dist/hono/index.d.ts +9 -9
  392. package/dist/hono/index.js +2 -2
  393. package/dist/{inbox-CkUbmD3t.d.ts → inbox-CnyAG7kj.d.ts} +5 -5
  394. package/dist/{index-bOWESOEm.d.ts → index--7HXH_H_.d.ts} +4 -4
  395. package/dist/{index-BFw-iTQT.d.ts → index-AmPcMT_X.d.ts} +3 -3
  396. package/dist/{index-BLRLF6iG.d.ts → index-BDn4Mqq0.d.ts} +6 -6
  397. package/dist/{index-DTqpt8XQ.d.ts → index-BOZ6AsMs.d.ts} +5 -5
  398. package/dist/{index-Xsu3egx_.d.ts → index-BR8ZkijS.d.ts} +8 -8
  399. package/dist/{index-CnQ27iFg.d.ts → index-BTl5A8Aj.d.ts} +5 -5
  400. package/dist/{index-C8-8-t1s.d.ts → index-BVJsz3pS.d.ts} +9 -9
  401. package/dist/{index-CaMHCzBp.d.ts → index-BeU2DRAI.d.ts} +2 -2
  402. package/dist/{index-BLpP1czF.d.ts → index-BleHtlJ6.d.ts} +7 -7
  403. package/dist/{index-B2zDRJMB.d.ts → index-BoCyVsCr.d.ts} +4 -4
  404. package/dist/{index-46Mwoxp8.d.ts → index-BvPirjfD.d.ts} +9 -9
  405. package/dist/{index-CT-3_fva.d.ts → index-CCmKc1hX.d.ts} +1 -1
  406. package/dist/{index-BGje-MeF.d.ts → index-CDEzb5bl.d.ts} +5 -5
  407. package/dist/{index-CNNGDSxy.d.ts → index-CKdNndE3.d.ts} +2 -2
  408. package/dist/{index-BPz1IGUB.d.ts → index-CaW37FHZ.d.ts} +5 -5
  409. package/dist/{index-Dndo_is2.d.ts → index-ChaJiMkI.d.ts} +5 -5
  410. package/dist/{index-PeaYXjhx.d.ts → index-D-3fZP5z.d.ts} +6 -6
  411. package/dist/{index-ISihFGu9.d.ts → index-D5nY5k-2.d.ts} +9 -9
  412. package/dist/{index-DaClvzRy.d.ts → index-D7zwaGAP.d.ts} +6 -6
  413. package/dist/{index-Zf3t4MuL.d.ts → index-DDDHYXtr.d.ts} +14 -14
  414. package/dist/{index-TNNEpcgG.d.ts → index-DJ1Uk4ff.d.ts} +6 -6
  415. package/dist/{index-kKkGf0_-.d.ts → index-DR4P3Lf9.d.ts} +5 -5
  416. package/dist/{index-C4QxQSYh.d.ts → index-DRsJvXo2.d.ts} +3 -3
  417. package/dist/{index-Bxu7m8vw.d.ts → index-DYzQ_PPW.d.ts} +6 -6
  418. package/dist/{index-YgUHItkp.d.ts → index-DZRsTCds.d.ts} +6 -6
  419. package/dist/{index-OHQg8Sdx.d.ts → index-DhS8Qkgj.d.ts} +5 -5
  420. package/dist/{index-C_Ilif3i.d.ts → index-DsA7MQwZ.d.ts} +3 -3
  421. package/dist/{index-s1IQy8sK.d.ts → index-DtMdKIJU.d.ts} +4 -4
  422. package/dist/{index-cPzs5TsD.d.ts → index-Dy-66Gne.d.ts} +1 -1
  423. package/dist/{index-DNdYTori.d.ts → index-Dyq6B4gZ.d.ts} +7 -7
  424. package/dist/{index-DLKMzlbR.d.ts → index-E_Q5L9PV.d.ts} +8 -8
  425. package/dist/{index-BpCBGOVF.d.ts → index-JzAR_Y7n.d.ts} +5 -5
  426. package/dist/{index-C3pOr989.d.ts → index-_RnZChF8.d.ts} +3 -3
  427. package/dist/{index-DfuF_8Ph.d.ts → index-_wr8wCe9.d.ts} +7 -7
  428. package/dist/{index-CV7Ibpek.d.ts → index-dMGEJLxl.d.ts} +3 -3
  429. package/dist/{index-BDEwjrNn.d.ts → index-ilxdL8pz.d.ts} +2 -2
  430. package/dist/{index-C2ilfaOF.d.ts → index-r3QZBY7z.d.ts} +5 -5
  431. package/dist/{index-Bdd-8C1P.d.ts → index-slG4UpF_.d.ts} +2 -2
  432. package/dist/{index-BMt0EVnl.d.ts → index-u8EXkOzJ.d.ts} +6 -6
  433. package/dist/{index-xA8WHuDE.d.ts → index-voglIa16.d.ts} +6 -6
  434. package/dist/index.d.ts +6 -6
  435. package/dist/{instances-CFXFHQMK.js → instances-BMjIO6Xu.js} +202 -10
  436. package/dist/{inventory-reads-BNDSYnuG.js → inventory-reads-DEw2Kbff.js} +2 -1
  437. package/dist/{invoices-D-j6pUMy.d.ts → invoices-DQB0pdnK.d.ts} +5 -5
  438. package/dist/{kit-CjmzrlVW.d.ts → kit-EFsCynmb.d.ts} +4 -4
  439. package/dist/{knowledge-CNG6Arug.d.ts → knowledge-vrO4Poa5.d.ts} +5 -5
  440. package/dist/lint/index.d.ts +1 -1
  441. package/dist/list/index.d.ts +3 -3
  442. package/dist/{list-query-CREBmVkm.d.ts → list-query-B4qI5eE8.d.ts} +3 -3
  443. package/dist/{manifest-D1-lCZro.d.ts → manifest-6PhMgCFi.d.ts} +6 -6
  444. package/dist/{manifest-C9Kn7gwK.d.ts → manifest-B17Sra5h.d.ts} +5 -5
  445. package/dist/{manifest-BwYOds2o.d.ts → manifest-B4CEdcH_.d.ts} +5 -5
  446. package/dist/{manifest-kbSJq3sR.js → manifest-BA4kiB8L.js} +1 -1
  447. package/dist/{manifest-09aHVu5Q.d.ts → manifest-BB3GjGa3.d.ts} +3 -3
  448. package/dist/{manifest-B3xj3-ew.d.ts → manifest-BE7UwezO.d.ts} +5 -5
  449. package/dist/{manifest-CiOcPFFy.d.ts → manifest-BMNwdO5D.d.ts} +5 -5
  450. package/dist/{manifest-Dy5_Rc0q.d.ts → manifest-BSvxbZH5.d.ts} +5 -5
  451. package/dist/{manifest-CmquAtQC.js → manifest-BV1YxozT.js} +1 -1
  452. package/dist/{manifest-CDK8R8Ze.d.ts → manifest-BVjhJ3Mj.d.ts} +6 -6
  453. package/dist/{manifest-Bc_2t9mY.d.ts → manifest-BXxSqnLS.d.ts} +4 -4
  454. package/dist/{manifest-dLThrKqV.d.ts → manifest-BYbt4y_O.d.ts} +5 -5
  455. package/dist/{manifest-jiaWr0x4.d.ts → manifest-BZL2TAB1.d.ts} +6 -6
  456. package/dist/{manifest-BRFen7mE.js → manifest-Bb8S2tcs.js} +1 -1
  457. package/dist/{manifest-a0YxYgo0.d.ts → manifest-BknZ4yQ-.d.ts} +4 -4
  458. package/dist/{manifest-C_ZDkBv4.d.ts → manifest-Bp0oZ3-W.d.ts} +4 -4
  459. package/dist/{manifest-DxPMUjhY.js → manifest-BvcIe5z_.js} +1 -1
  460. package/dist/{manifest-Dh3kIEzu.d.ts → manifest-Bz0EjE76.d.ts} +4 -4
  461. package/dist/{manifest-Dvhqz3qo.d.ts → manifest-BzsuqiQx.d.ts} +6 -6
  462. package/dist/{manifest-Dj7bGfoy.js → manifest-C-B9nV2m.js} +1 -1
  463. package/dist/{manifest-CaKVpJZM.d.ts → manifest-CBwrN4Nf.d.ts} +6 -6
  464. package/dist/{manifest-Bwv273Tb.d.ts → manifest-CELTce26.d.ts} +20 -8
  465. package/dist/{manifest-ETlyMx6o.d.ts → manifest-CGZQ9lU3.d.ts} +4 -4
  466. package/dist/{manifest-BUrKk2Ww.d.ts → manifest-CGcGylmw.d.ts} +2 -2
  467. package/dist/{manifest-C4CIOVkt.d.ts → manifest-CMNPpmWS.d.ts} +3 -3
  468. package/dist/{manifest-aJOA6D9w.d.ts → manifest-CMnLDDS3.d.ts} +18 -5
  469. package/dist/{manifest-JdAQqp5w.d.ts → manifest-CSHNTEJZ.d.ts} +8 -8
  470. package/dist/{manifest-D6ZukDGm.d.ts → manifest-CWj5SFuw.d.ts} +3 -3
  471. package/dist/{manifest-X24lr5XH.js → manifest-CXxHJ2NU.js} +1 -1
  472. package/dist/{manifest-DF49Pt6Q.d.ts → manifest-C_dVunWg.d.ts} +4 -4
  473. package/dist/{manifest-y2y5xPQC.d.ts → manifest-CaA-2HPK.d.ts} +7 -7
  474. package/dist/{manifest-Ccn2k0vb.d.ts → manifest-CbKgs5qA.d.ts} +4 -4
  475. package/dist/{manifest-XZV2sKgk.d.ts → manifest-CdD44xlg.d.ts} +4 -4
  476. package/dist/{manifest-CMnr9qpi.js → manifest-CeNAAHeR.js} +1 -1
  477. package/dist/{manifest-DBSs1jJ_.d.ts → manifest-CoFpa0dN.d.ts} +2 -2
  478. package/dist/{manifest-CnSZ16xc.js → manifest-CpL3pCc4.js} +1 -1
  479. package/dist/{manifest-H65OlXiB.js → manifest-CqJkmxrA.js} +1 -1
  480. package/dist/{manifest-BnFuyvL7.js → manifest-Cr9mpJDi.js} +4 -0
  481. package/dist/{manifest-CF-LsgEw.d.ts → manifest-D0FjVeay.d.ts} +3 -3
  482. package/dist/{manifest-CnkVWwAg.d.ts → manifest-D2Z_2z9-.d.ts} +4 -4
  483. package/dist/{manifest-0PeNUYcv.d.ts → manifest-D2d1wS7g.d.ts} +4 -4
  484. package/dist/{manifest-CNcJxi93.d.ts → manifest-D7mliM-d.d.ts} +4 -4
  485. package/dist/{manifest-D0KUPw4L.d.ts → manifest-D9P9Yhe3.d.ts} +5 -5
  486. package/dist/{manifest-DMTmTHBy.d.ts → manifest-DAXz8rxB.d.ts} +3 -3
  487. package/dist/{manifest-DpoO491p.d.ts → manifest-DG0oDOmq.d.ts} +4 -4
  488. package/dist/{manifest-CgCpK4Wm.d.ts → manifest-DGLrMEdB.d.ts} +7 -7
  489. package/dist/{manifest-COoFT2vY.d.ts → manifest-DGiswyG5.d.ts} +3 -3
  490. package/dist/{manifest-RAijfop2.d.ts → manifest-DIZ6chpf.d.ts} +4 -4
  491. package/dist/{manifest-c8mlNzOv.d.ts → manifest-DMvx2rWH.d.ts} +4 -4
  492. package/dist/{manifest-BdcBkznK.d.ts → manifest-DPqKZgWn.d.ts} +6 -6
  493. package/dist/{manifest-DyZcERh_.d.ts → manifest-DUlZ8qck.d.ts} +4 -4
  494. package/dist/{manifest-B5vPAt-u.d.ts → manifest-DYPVnKW_.d.ts} +8 -8
  495. package/dist/{manifest-Bg1swpdk.d.ts → manifest-D_VmA0aC.d.ts} +5 -5
  496. package/dist/{manifest-BYUIgwGb.d.ts → manifest-Dc8pNExY.d.ts} +4 -4
  497. package/dist/{manifest-B4HXWUh8.d.ts → manifest-Df1QDhiQ.d.ts} +8 -8
  498. package/dist/{manifest-BFXybbMn.d.ts → manifest-DhXoSaUC.d.ts} +3 -3
  499. package/dist/{manifest-Du_-0ruw.d.ts → manifest-DhpmWh55.d.ts} +5 -5
  500. package/dist/{manifest-CgP-MDb3.d.ts → manifest-Dk_7prKx.d.ts} +4 -4
  501. package/dist/{manifest-CW47rgqj.d.ts → manifest-Dl_bw4IU.d.ts} +6 -6
  502. package/dist/{manifest-jb384ocG.d.ts → manifest-DsuoLp-Y.d.ts} +3 -3
  503. package/dist/{manifest-B3YkuXKR.d.ts → manifest-DtEcJBdE.d.ts} +33 -7
  504. package/dist/{manifest-Cnb5QGMK.d.ts → manifest-DwCorUVJ.d.ts} +4 -4
  505. package/dist/{manifest-Lsz6rH3B.d.ts → manifest-DxPLHyKY.d.ts} +5 -5
  506. package/dist/{manifest-CazVMbdf.d.ts → manifest-Eazz96as.d.ts} +2 -2
  507. package/dist/{manifest-CScOn17C.js → manifest-F35IzwVM.js} +11 -3
  508. package/dist/{manifest-DEx8OSZK.js → manifest-IECPtdQj.js} +1 -1
  509. package/dist/{manifest-dlqXYOfB.d.ts → manifest-Pl5us_yz.d.ts} +6 -6
  510. package/dist/{manifest-pLJIrNwi.d.ts → manifest-X4analSK.d.ts} +3 -3
  511. package/dist/{manifest-BWh9leJI.js → manifest-_9ZFGQQm.js} +1 -1
  512. package/dist/{manifest-BLOufikB.d.ts → manifest-auanzyjB.d.ts} +3 -3
  513. package/dist/{manifest-CFFaunME.d.ts → manifest-gGFtQDJz.d.ts} +4 -4
  514. package/dist/{manifest-xAeOKTub.d.ts → manifest-lzwWCAYV.d.ts} +12 -12
  515. package/dist/{manifest-BUktyXMR.js → manifest-ok1ge1bM.js} +1 -1
  516. package/dist/{manifest-BpAI3Me7.js → manifest-u0q04U62.js} +2 -2
  517. package/dist/{manifest-BpiZFLbl.d.ts → manifest-uIIb_YLI.d.ts} +5 -5
  518. package/dist/{manifest-BSaRwzEH.js → manifest-vBvsSefP.js} +24 -6
  519. package/dist/{manifest-B3RgCccj.d.ts → manifest-xikzppm9.d.ts} +3 -3
  520. package/dist/{manifest-DQwFCQkG.d.ts → manifest-yKx0faak.d.ts} +4 -4
  521. package/dist/mapper/bin.js +6 -6
  522. package/dist/mcp/index.d.ts +3 -3
  523. package/dist/mcp/index.js +1 -1
  524. package/dist/mcp/sdk/index.d.ts +6 -6
  525. package/dist/mcp/sdk/index.js +1 -1
  526. package/dist/{mcp-Cu-bD9KQ.js → mcp-Br3FGtZ-.js} +1 -1
  527. package/dist/{medications-DSwF7lxp.d.ts → medications-0Uuwu3k2.d.ts} +4 -4
  528. package/dist/{messaging-BURLOg2p.d.ts → messaging-Co5bENPB.d.ts} +5 -5
  529. package/dist/nestjs/index.d.ts +2 -2
  530. package/dist/next/client/index.d.ts +1 -1
  531. package/dist/next/index.d.ts +27 -25
  532. package/dist/next/index.js +12 -8
  533. package/dist/node/index.d.ts +2 -2
  534. package/dist/{observations-CciBF6mG.d.ts → observations-ilWeRQ20.d.ts} +3 -3
  535. package/dist/{operations-_3oh-CEO.d.ts → operations-DKfYeS5z.d.ts} +1 -1
  536. package/dist/{options-CGQC7Wue.js → options-C1N8cOQU.js} +2 -1
  537. package/dist/{options-BxdqA2Ex.js → options-CDn2OgvY.js} +1 -0
  538. package/dist/{options-BTuDJ2RC.js → options-Cu6IqZ_n.js} +3 -1
  539. package/dist/options-DtDvpZu7.js +4 -0
  540. package/dist/{options-DwIoRvic.js → options-HwnZxyI3.js} +4 -1
  541. package/dist/{options-wBw_6uhd.js → options-Oo46IzNk.js} +2 -1
  542. package/dist/{orders-DBxCzU3w.d.ts → orders-CbJqNAF3.d.ts} +3 -3
  543. package/dist/{orders-reads-Yo9GGjdv.js → orders-reads-2ozdZx1l.js} +108 -13
  544. package/dist/orpc/index.d.ts +8 -8
  545. package/dist/orpc/index.js +1 -1
  546. package/dist/otel/index.d.ts +2 -2
  547. package/dist/otel/index.js +4 -4
  548. package/dist/{outbox-CThKZLSQ.d.ts → outbox-wJZ6Tc_H.d.ts} +4 -4
  549. package/dist/{parse-BRW-aTQQ.js → parse-CnAiiV-M.js} +1 -1
  550. package/dist/{payroll-export-CNji28TX.js → payroll-export-ChZY6W3w.js} +2 -2
  551. package/dist/{permissions-u_qqedin.d.ts → permissions-C5h1cU25.d.ts} +1 -1
  552. package/dist/{permissions-model-COgjsFbE.js → permissions-model-Dh9-Zzfy.js} +8 -0
  553. package/dist/{pool-DX5nqbLb.d.ts → pool-3kL7D5vJ.d.ts} +9 -3
  554. package/dist/{ports-DT5zRdYx.d.ts → ports-DvaVv_3b.d.ts} +1 -1
  555. package/dist/postgres/index.d.ts +4 -4
  556. package/dist/postgres/index.js +15 -1
  557. package/dist/{postgrest-DCLtVoK_.d.ts → postgrest-4vPs3cD4.d.ts} +1 -1
  558. package/dist/powersync/index.d.ts +9 -9
  559. package/dist/powersync/index.js +11 -3
  560. package/dist/preset/index.d.ts +4 -4
  561. package/dist/preset/index.js +3 -3
  562. package/dist/{preset--1OMwypM.js → preset-Cl3Q5ASC.js} +101 -3
  563. package/dist/{preview-BBA-VaEZ.d.ts → preview-Bwg7r1Lf.d.ts} +6 -6
  564. package/dist/{preview-Bd7ZBtf2.js → preview-CUiY7kzV.js} +2 -2
  565. package/dist/{project-BhE6_64F.js → project-At5wBJSS.js} +5 -5
  566. package/dist/{provider-AZZ755Eb.d.ts → provider-ChtwfkqL.d.ts} +1 -1
  567. package/dist/{push-token-hs6_Vt-I.d.ts → push-token-C6ZGE1g0.d.ts} +1 -1
  568. package/dist/query/index.d.ts +1 -1
  569. package/dist/rate-limit/index.d.ts +1 -1
  570. package/dist/{rate-limit-DzkFszLp.d.ts → rate-limit-5FLBVmTC.d.ts} +5 -5
  571. package/dist/react/index.d.ts +8 -8
  572. package/dist/react/index.js +1 -1
  573. package/dist/react/native/index.d.ts +1 -1
  574. package/dist/react/server.d.ts +8 -8
  575. package/dist/react/server.js +1 -1
  576. package/dist/react/session.d.ts +2 -2
  577. package/dist/{react-olMpD8et.js → react-C5uBAgPJ.js} +1 -1
  578. package/dist/react-router/index.d.ts +6 -6
  579. package/dist/react-router/index.js +2 -2
  580. package/dist/realtime/index.d.ts +6 -6
  581. package/dist/{record-form-Cze5j1OB.d.ts → record-form-DTncyqVH.d.ts} +1 -1
  582. package/dist/{recordings-CNNDKqGd.d.ts → recordings-1yDvOqM4.d.ts} +1 -1
  583. package/dist/records/index.d.ts +9 -9
  584. package/dist/{refusal-Dsn4WGbg.d.ts → refusal-nCMn-Fnw.d.ts} +3 -3
  585. package/dist/{resolve-NeMeUVtf.d.ts → resolve-B9Rn2M5c.d.ts} +1 -1
  586. package/dist/{resource-gebaumjo.d.ts → resource-BDVguZzJ.d.ts} +1 -1
  587. package/dist/{resource-execute-D2cJfrKu.d.ts → resource-execute-BVQQHOLb.d.ts} +2 -2
  588. package/dist/{resource-types-Cs1zWvrn.d.ts → resource-types-BmZx8q4a.d.ts} +4 -4
  589. package/dist/{resources-DyP9cP9i.d.ts → resources-Dz9pCv6I.d.ts} +2 -2
  590. package/dist/{respond--w7kF-Ym.d.ts → respond-OjgB7zlB.d.ts} +1 -1
  591. package/dist/{rows-D1WZwE8A.js → rows-C-eFWUrS.js} +1 -1
  592. package/dist/{sales-BCArDSEX.js → sales-BhOckhix.js} +4 -4
  593. package/dist/{sales-lines-C7kECFEA.d.ts → sales-lines-DZBLspUz.d.ts} +1 -1
  594. package/dist/{sandboxes-BD1M7bTW.d.ts → sandboxes-CjBtYDtC.d.ts} +1 -1
  595. package/dist/{scores-tCCJALNA.d.ts → scores-BZSIvM-v.d.ts} +5 -5
  596. package/dist/server/index.d.ts +27 -27
  597. package/dist/server/index.js +3 -3
  598. package/dist/{server-types-Bpxk5UWh.d.ts → server-types-Cf4eX4kr.d.ts} +32 -14
  599. package/dist/{session-DQ5huqEw.d.ts → session-CfOsLGD_.d.ts} +6 -6
  600. package/dist/{session-status-DDPrDS36.d.ts → session-status-ChvyVQgl.d.ts} +2 -2
  601. package/dist/{settings-eBr9PBev.d.ts → settings-BLvlPsne.d.ts} +2 -2
  602. package/dist/{sign-in-03gtm616.js → sign-in-qMkfifO1.js} +1 -1
  603. package/dist/{signers-BEYFvHJG.d.ts → signers-CPqWfc48.d.ts} +4 -4
  604. package/dist/{signing-keys-bI2l8FtF.d.ts → signing-keys-Vi7ieN7h.d.ts} +2 -2
  605. package/dist/solid/index.d.ts +10 -10
  606. package/dist/solid-start/index.d.ts +6 -6
  607. package/dist/solid-start/index.js +2 -2
  608. package/dist/spec/index.d.ts +2 -2
  609. package/dist/sql/index.d.ts +6 -6
  610. package/dist/sql/index.js +4 -4
  611. package/dist/{sql-BVUbNexh.js → sql-CdZdPqjA.js} +8226 -5159
  612. package/dist/sqlite/index.d.ts +3 -3
  613. package/dist/{sso-C1bO-vNS.d.ts → sso-C5o6-slp.d.ts} +3 -3
  614. package/dist/ssr/index.d.ts +4 -4
  615. package/dist/storage/index.d.ts +3 -3
  616. package/dist/streams/index.d.ts +1 -1
  617. package/dist/streams/resumable/index.d.ts +1 -1
  618. package/dist/{subject-readers-VaaoTxbd.d.ts → subject-readers-fKAdJQGu.d.ts} +2 -2
  619. package/dist/{subjects-BTUiakig.d.ts → subjects-C0_z3QUL.d.ts} +3 -3
  620. package/dist/{support-tDhEwXbu.d.ts → support-DYNFoAZ8.d.ts} +4 -4
  621. package/dist/{support-view-XeoLPB7S.d.ts → support-view-Dn_YTGV4.d.ts} +1 -1
  622. package/dist/svelte/index.d.ts +9 -9
  623. package/dist/sveltekit/index.d.ts +7 -7
  624. package/dist/sveltekit/index.js +2 -2
  625. package/dist/{tags-CBASI98_.d.ts → tags-BahXc6bW.d.ts} +1 -1
  626. package/dist/tanstack-db/index.d.ts +3 -3
  627. package/dist/tanstack-start/index.d.ts +6 -6
  628. package/dist/tanstack-start/index.js +2 -2
  629. package/dist/{tax-sql-0dqAt5nE.js → tax-sql-CbE1rhn-.js} +1 -1
  630. package/dist/{tenant-c_6qMyFI.d.ts → tenant-BTnwa5oZ.d.ts} +1 -1
  631. package/dist/testing/index.d.ts +34 -34
  632. package/dist/testing/index.js +1 -1
  633. package/dist/{timeline-DvZ7C5zf.d.ts → timeline-B7kBQ1gh.d.ts} +5 -5
  634. package/dist/{topic-fwPlelNI.d.ts → topic-hu0RP7CG.d.ts} +5 -5
  635. package/dist/{types-CmbztHZL.d.ts → types-BWuFVfGE.d.ts} +1 -1
  636. package/dist/{types-D5UNIbOQ.d.ts → types-BlBju7Wa.d.ts} +7 -0
  637. package/dist/{types-DLIYrsqE.d.ts → types-CJG0BntG.d.ts} +5 -5
  638. package/dist/{types-CmlZw_7N.d.ts → types-CTb0Uroz.d.ts} +5 -5
  639. package/dist/{types-2DVnlJqQ.d.ts → types-CqTqrrBK.d.ts} +7 -7
  640. package/dist/{types-Cwai2qe4.d.ts → types-DvglaQ_D.d.ts} +2 -2
  641. package/dist/{types-B1KabfWa.d.ts → types-M37hpCz_.d.ts} +3 -3
  642. package/dist/{types-BGbfmnVI.d.ts → types-hL1lelUA.d.ts} +4 -4
  643. package/dist/{undo-mU6lgk9c.d.ts → undo-CvwsPX4q.d.ts} +2 -2
  644. package/dist/{usage-Dz8KVrkx.d.ts → usage-D4Fho6t9.d.ts} +4 -4
  645. package/dist/{vault-CnTW3EtC.d.ts → vault-CgioaiiD.d.ts} +2 -2
  646. package/dist/vercel-connect/index.d.ts +1 -1
  647. package/dist/vercel-sandbox/index.d.ts +2 -2
  648. package/dist/{verify-CupKPoHW.d.ts → verify-ClbMJkEg.d.ts} +2 -2
  649. package/dist/{view-B44a2jfA.d.ts → view-CVXHgadI.d.ts} +1 -1
  650. package/dist/vue/index.d.ts +10 -10
  651. package/dist/{watch-topic-D4AzYs9E.d.ts → watch-topic-C_rGHxIA.d.ts} +1 -1
  652. package/dist/webmcp/index.d.ts +2 -2
  653. package/dist/webmcp/index.js +1 -1
  654. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  655. package/dist/workflow-sdk/index.d.ts +1 -1
  656. package/dist/workflow-sdk/world/index.d.ts +1 -1
  657. package/dist/workflow-sdk/world/index.js +1 -1
  658. package/dist/{workflow-sdk-C-rVKZTS.js → workflow-sdk-DIyX4ssm.js} +1 -1
  659. package/dist/{workflow-sdk-MxXG817H.d.ts → workflow-sdk-JVTwhzYJ.d.ts} +3 -3
  660. package/dist/{workflows-De-yy-cC.d.ts → workflows-DUgxuv2X.d.ts} +3 -3
  661. package/dist/yjs/index.d.ts +2 -2
  662. package/package.json +14 -1
  663. package/schemas/config-v1.json +108 -4
  664. package/schemas/snapshot-v2.json +6 -0
  665. package/skills/better-supabase-api/references/powersync.md +1 -0
  666. package/dist/cli/add-C4B2wdfz.js +0 -1
  667. package/dist/cli/powersync-BejxIowk.js +0 -1
  668. package/dist/cli/seed-CRD1tYPA.js +0 -1
@@ -1,9 +1,9 @@
1
- /// <reference lib="esnext.temporal" />
2
- import { A as ExportAuditLogOptions, C as AuditCsvColumn, D as AuditListDefinition, E as AuditFacet, F as purgeAuditLog, I as setAuditRetention, L as toOcsf, M as PurgeAuditLogOptions, N as auditListQuery, O as AuditRetentionSource, P as exportAuditLog, S as auditSink, T as AuditEntry, _ as AuditRecord, a as AuditCursor, b as AuditSinkOptions, c as AuditExportBucket, d as AuditListOptions, f as AuditLog, g as AuditPageEntry, h as AuditPage, i as AuditColumns, j as OcsfProduct, k as AuditSort, l as AuditExportOptions, m as AuditNamedPage, n as AuditEvents, o as AuditDetails, p as AuditLogOptions, r as auditEvents, s as AuditEventInput, t as auditBlock, u as AuditExportToStorageOptions, v as AuditReverted, w as AuditCsvOptions, x as auditEventOf, y as createAudit } from "../../manifest-xAeOKTub.js";
3
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
1
+ import { A as ExportAuditLogOptions, C as AuditCsvColumn, D as AuditListDefinition, E as AuditFacet, F as purgeAuditLog, I as setAuditRetention, L as toOcsf, M as PurgeAuditLogOptions, N as auditListQuery, O as AuditRetentionSource, P as exportAuditLog, S as auditSink, T as AuditEntry, _ as AuditRecord, a as AuditCursor, b as AuditSinkOptions, c as AuditExportBucket, d as AuditListOptions, f as AuditLog, g as AuditPageEntry, h as AuditPage, i as AuditColumns, j as OcsfProduct, k as AuditSort, l as AuditExportOptions, m as AuditNamedPage, n as AuditEvents, o as AuditDetails, p as AuditLogOptions, r as auditEvents, s as AuditEventInput, t as auditBlock, u as AuditExportToStorageOptions, v as AuditReverted, w as AuditCsvOptions, x as auditEventOf, y as createAudit } from "../../manifest-lzwWCAYV.js";
2
+ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
4
3
  import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-CMqlHv82.js";
5
- import { n as Controller, t as AuthPort } from "../../controller-BrTPi8Po.js";
6
- import { r as BlockTemporalOptions } from "../../block-helpers-YOdaCxWE.js";
4
+ import { n as Controller, t as AuthPort } from "../../controller-BVee4yX8.js";
5
+ import { n as Jwks } from "../../jws-CxgTsbgG.js";
6
+ import { r as BlockTemporalOptions } from "../../block-helpers-rTsuHt6v.js";
7
7
  /** What an audit table filters by; an empty value matches every entry. */
8
8
  interface AuditFilters {
9
9
  /** One actor's entries, by user id. */
@@ -49,71 +49,150 @@ type AuditLogController = Controller<AuditLogSnapshot, AuditLogActions>;
49
49
  */
50
50
  export declare function createAuditLogController(options: AuditLogControllerOptions): AuditLogController;
51
51
  /**
52
- * Why `verify` stopped: the row changed, a link or an entry is missing, or a
52
+ * Why `verify` stopped: the row changed, a link or a row is missing, or a
53
53
  * signed head disagrees.
54
54
  */
55
- type AuditChainBreak = "hash" | "link" | "gap" | "checkpoint";
56
- type AuditChainVerdict = {
55
+ type ChainBreak = "hash" | "link" | "gap" | "checkpoint";
56
+ type ChainVerdict = {
57
57
  readonly valid: true;
58
58
  readonly checked: number;
59
- /** The last entry's position, absent for an empty range. */
59
+ /** The last row's position, absent for an empty chain. */
60
60
  readonly seq: number | undefined;
61
- /**
62
- * The last entry's hash (hex), to compare with a checkpoint kept
63
- * elsewhere.
64
- */
61
+ /** The last row's hash (hex), to compare with a checkpoint kept elsewhere. */
65
62
  readonly hash: string | undefined;
66
63
  } | {
67
64
  readonly valid: false;
68
65
  readonly checked: number;
69
66
  readonly seq: number;
70
- /** The first broken entry, absent when the range ends early (`gap`). */
71
- readonly brokenAt: string | undefined;
72
- readonly reason: AuditChainBreak;
67
+ readonly reason: ChainBreak;
73
68
  };
74
- /** A tenant's latest entry that no checkpoint covers. */
75
- interface AuditChainHead {
76
- readonly organizationId: string | undefined;
69
+ /** What signs a checkpoint: the signing-keys block's `Signer` fits. */
70
+ interface ChainSigner {
71
+ signJwt(claims: Readonly<Record<string, unknown>>): AsyncResult<string>;
72
+ }
73
+ /** A tenant's latest row of a chained table that no checkpoint covers. */
74
+ interface ChainHead {
75
+ readonly tenant: string | undefined;
77
76
  readonly seq: number;
78
77
  readonly hash: string;
79
- readonly entryId: string;
80
78
  }
81
- interface AuditCheckpoint extends AuditChainHead {
79
+ interface ChainCheckpoint extends ChainHead {
82
80
  readonly id: string;
83
81
  readonly keyId: string;
84
- /** The compact JWS over `sub`, `seq`, `hash`, `entry` and `iat`. */
82
+ /** The compact JWS over `sub`, `table`, `seq`, `hash` and `iat`. */
85
83
  readonly signature: string;
86
- readonly createdAt: Temporal.Instant;
87
84
  }
88
- /** What signs a checkpoint: the signing-keys block's `Signer` fits. */
89
- interface AuditCheckpointSigner {
90
- signJwt(claims: Readonly<Record<string, unknown>>): AsyncResult<string>;
85
+ /** One row of a proof, with the text its hash covers. */
86
+ interface ChainProofEntry {
87
+ readonly seq: number;
88
+ readonly prevHash: string | undefined;
89
+ readonly rowHash: string;
90
+ readonly entry: Readonly<Record<string, unknown>>;
91
+ /** The row without its hashes and null columns, as hashed. */
92
+ readonly hashed: string;
93
+ }
94
+ /** Everything an auditor needs to check one row offline. */
95
+ interface ChainProof {
96
+ readonly table: string;
97
+ readonly tenant: string | undefined;
98
+ readonly entries: readonly ChainProofEntry[];
99
+ readonly checkpoint: {
100
+ readonly seq: number;
101
+ readonly hash: string;
102
+ readonly keyId: string;
103
+ readonly signature: string;
104
+ } | undefined;
91
105
  }
92
- interface AuditChainOptions extends BlockTemporalOptions {
106
+ interface ChainOptions extends BlockTemporalOptions {
93
107
  /** A service-role transport: the functions are granted to `service_role` only. */
94
108
  readonly transport: BlockTransport;
109
+ /** The chained table, `schema.name`. */
110
+ readonly table: string;
111
+ /** The tenant column the chain is split by; none for one chain. */
112
+ readonly tenantColumn?: string;
95
113
  /** Required for `checkpoint()`. */
96
- readonly signer?: AuditCheckpointSigner;
97
- /** The `iss` claim of each checkpoint. */
114
+ readonly signer?: ChainSigner;
98
115
  readonly issuer?: string;
99
116
  readonly schema?: string;
100
117
  readonly mappers?: readonly ErrorMapper[];
101
118
  }
102
- interface AuditChain {
103
- /** Checks a tenant's entries (none: those without a tenant) in chain order. */
119
+ interface Chain {
104
120
  verify(range?: {
105
- readonly organizationId?: string;
106
- readonly from?: Temporal.Instant;
107
- readonly to?: Temporal.Instant;
108
- }): AsyncResult<AuditChainVerdict>;
109
- heads(): AsyncResult<readonly AuditChainHead[]>;
121
+ readonly tenant?: string;
122
+ }): AsyncResult<ChainVerdict>;
123
+ heads(): AsyncResult<readonly ChainHead[]>;
110
124
  /** Signs and records every head; run it on a schedule. */
111
- checkpoint(): AsyncResult<readonly AuditCheckpoint[]>;
125
+ checkpoint(): AsyncResult<readonly ChainCheckpoint[]>;
112
126
  checkpoints(options?: {
113
- readonly organizationId?: string;
127
+ readonly tenant?: string;
114
128
  readonly limit?: number;
115
- }): AsyncResult<readonly AuditCheckpoint[]>;
129
+ }): AsyncResult<readonly ChainCheckpoint[]>;
130
+ /** The proof for the row at `seq`, to give to `verifyChainProof`. */
131
+ proof(input: {
132
+ seq: number;
133
+ tenant?: string;
134
+ }): AsyncResult<ChainProof>;
135
+ }
136
+ /** The hash chain of any table tagged `chain`, as the service role. */
137
+ export declare function createChain(options: ChainOptions): Chain;
138
+ /** Why `verifyChainProof` refused a proof. */
139
+ type ChainProofFailure = ChainBreak | "empty" | "signature" | "unsigned";
140
+ type ChainProofVerdict = {
141
+ readonly valid: true;
142
+ readonly signed: boolean;
143
+ readonly checked: number;
144
+ } | {
145
+ readonly valid: false;
146
+ readonly reason: ChainProofFailure;
147
+ readonly seq?: number;
148
+ };
149
+ /**
150
+ * Checks a proof without a database: each row's hash against the row text and
151
+ * the one before it, the links, and the checkpoint's signature against `jwks`.
152
+ * Runs on WebCrypto only, so an auditor can run it anywhere. `requireSigned`
153
+ * refuses a proof the chain head isn't signed for.
154
+ */
155
+ export declare function verifyChainProof(proof: ChainProof, jwks: Jwks, options?: {
156
+ readonly requireSigned?: boolean;
157
+ }): Promise<ChainProofVerdict>;
158
+ /** The record an evidence bundle is about. */
159
+ interface EvidenceSubject {
160
+ readonly type: string;
161
+ readonly id: string;
162
+ }
163
+ interface EvidenceParts {
164
+ readonly subject: EvidenceSubject;
165
+ /** One proof per chained row that belongs to the record. */
166
+ readonly proofs: readonly ChainProof[];
167
+ /**
168
+ * Other sections as plain JSON: audit entries, signature verification
169
+ * results, version and attachment hashes, the shipment timeline.
170
+ */
171
+ readonly sections?: Readonly<Record<string, unknown>>;
172
+ readonly generatedAt: string;
116
173
  }
117
- /** The audit hash chain (`blocks.audit.options.chain`), as the service role. */
118
- export declare function createAuditChain(options: AuditChainOptions): AuditChain;
119
- export { type AuditChain, type AuditChainBreak, type AuditChainHead, type AuditChainOptions, type AuditChainVerdict, type AuditCheckpoint, type AuditCheckpointSigner, type AuditColumns, type AuditCsvColumn, type AuditCsvOptions, type AuditCursor, type AuditDetails, type AuditEntry, type AuditEventInput, type AuditEvents, type AuditExportBucket, type AuditExportOptions, type AuditExportToStorageOptions, type AuditFacet, type AuditFilters, type AuditListDefinition, type AuditListOptions, type AuditLog, type AuditLogActions, type AuditLogController, type AuditLogControllerOptions, type AuditLogOptions, type AuditLogSnapshot, type AuditNamedPage, type AuditPage, type AuditPageEntry, type AuditRecord, type AuditRetentionSource, type AuditReverted, type AuditSinkOptions, type AuditSort, type BlockTransport, type ExportAuditLogOptions, type OcsfProduct, type PurgeAuditLogOptions, auditBlock, auditEventOf, auditEvents, auditListQuery, auditSink, createAudit, dbTransport, exportAuditLog, purgeAuditLog, rpcTransport, setAuditRetention, sqlTransport, toOcsf };
174
+ /** One JSON document for a record, with a hash over its content. */
175
+ interface EvidenceBundle extends EvidenceParts {
176
+ readonly format: "better-supabase/evidence@1";
177
+ /** SHA-256 (hex) of the bundle without this field, as JSON. */
178
+ readonly sha256: string;
179
+ }
180
+ /**
181
+ * Seals `parts` with a content hash. Write the result to storage under a legal
182
+ * hold.
183
+ */
184
+ export declare function evidenceBundle(parts: EvidenceParts): Promise<EvidenceBundle>;
185
+ type EvidenceVerdict = {
186
+ readonly valid: true;
187
+ readonly proofs: number;
188
+ } | {
189
+ readonly valid: false;
190
+ readonly reason: "bundle" | "proof";
191
+ readonly proof?: number;
192
+ readonly detail?: ChainProofVerdict;
193
+ };
194
+ /** Checks the content hash and every proof against `jwks`, offline. */
195
+ export declare function verifyEvidenceBundle(bundle: EvidenceBundle, jwks: Jwks, options?: {
196
+ readonly requireSigned?: boolean;
197
+ }): Promise<EvidenceVerdict>;
198
+ export { type AuditColumns, type AuditCsvColumn, type AuditCsvOptions, type AuditCursor, type AuditDetails, type AuditEntry, type AuditEventInput, type AuditEvents, type AuditExportBucket, type AuditExportOptions, type AuditExportToStorageOptions, type AuditFacet, type AuditFilters, type AuditListDefinition, type AuditListOptions, type AuditLog, type AuditLogActions, type AuditLogController, type AuditLogControllerOptions, type AuditLogOptions, type AuditLogSnapshot, type AuditNamedPage, type AuditPage, type AuditPageEntry, type AuditRecord, type AuditRetentionSource, type AuditReverted, type AuditSinkOptions, type AuditSort, type BlockTransport, type Chain, type ChainBreak, type ChainCheckpoint, type ChainHead, type ChainOptions, type ChainProof, type ChainProofEntry, type ChainProofFailure, type ChainProofVerdict, type ChainSigner, type ChainVerdict, type EvidenceBundle, type EvidenceParts, type EvidenceSubject, type EvidenceVerdict, type ExportAuditLogOptions, type OcsfProduct, type PurgeAuditLogOptions, auditBlock, auditEventOf, auditEvents, auditListQuery, auditSink, createAudit, dbTransport, exportAuditLog, purgeAuditLog, rpcTransport, setAuditRetention, sqlTransport, toOcsf };
@@ -1,10 +1,11 @@
1
1
  import { a as auditSink, c as purgeAuditLog, i as auditEventOf, l as setAuditRetention, n as auditEvents, o as auditListQuery, r as createAudit, s as exportAuditLog, t as auditBlock, u as toOcsf } from "../../manifest-yLshQDXw.js";
2
- import { B as textOf, H as toInstant, K as rpcTransport, N as recordsOf, T as optionalText, W as dbTransport, j as recordOf, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-BR1V7DN1.js";
2
+ import { B as textOf, K as rpcTransport, N as recordsOf, T as optionalText, W as dbTransport, j as recordOf, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-BR1V7DN1.js";
3
3
  import { n as whileSignedIn, t as defineController } from "../../controller-BJmh7gFm.js";
4
- import { t as base64ToText } from "../../base64-CEBz6-Jj.js";
5
4
  import { n as dbError } from "../../errors-CXPerGIl.js";
5
+ import { u as verifyCompact } from "../../jws-D5t4Ylus.js";
6
6
  import { t as AsyncResult } from "../../result-DrBaeIVt.js";
7
7
  import { s as nowInstant } from "../../temporal-DKTdGK9i.js";
8
+ import { t as sha256Hex } from "../../sha256-DodJVpxz.js";
8
9
  // src/blocks/audit/client.ts
9
10
  function listOptions(organizationId, filters, limit, cursor) {
10
11
  const { actorId, eventType, search } = filters;
@@ -78,28 +79,26 @@ function createAuditLogController(options) {
78
79
  };
79
80
  });
80
81
  }
81
- // src/blocks/audit/chain.ts
82
+ // src/blocks/audit/table-chain.ts
82
83
  function headOf(value) {
83
- const row = recordOf(value, "audit_chain_heads");
84
+ const row = recordOf(value, "chain_heads");
84
85
  return {
85
- organizationId: optionalText(row["tenant"]),
86
+ tenant: optionalText(row["tenant"]),
86
87
  seq: Number(row["seq"]),
87
- hash: textOf(row["hash"]),
88
- entryId: textOf(row["entryId"])
88
+ hash: textOf(row["hash"])
89
89
  };
90
90
  }
91
91
  function checkpointOf(value) {
92
- const row = recordOf(value, "audit_checkpoints");
92
+ const row = recordOf(value, "chain_checkpoints");
93
93
  return {
94
94
  ...headOf(row),
95
95
  id: textOf(row["id"]),
96
96
  keyId: textOf(row["keyId"]),
97
- signature: textOf(row["signature"]),
98
- createdAt: toInstant(textOf(row["createdAt"]))
97
+ signature: textOf(row["signature"])
99
98
  };
100
99
  }
101
100
  function verdictOf(value) {
102
- const row = recordOf(value, "verify_audit_chain");
101
+ const row = recordOf(value, "verify_chain");
103
102
  const seq = row["seq"] === null ? void 0 : Number(row["seq"]);
104
103
  if (row["valid"] === true) return {
105
104
  valid: true,
@@ -112,51 +111,203 @@ function verdictOf(value) {
112
111
  valid: false,
113
112
  checked: Number(row["checked"]),
114
113
  seq: seq ?? 0,
115
- brokenAt: optionalText(row["brokenAt"]),
116
114
  reason
117
115
  };
118
116
  }
119
- /** The `kid` of a compact JWS header, or an empty string. */
117
+ function proofOf(value) {
118
+ const row = recordOf(value, "chain_proof");
119
+ const checkpoint = row["checkpoint"];
120
+ return {
121
+ table: textOf(row["table"]),
122
+ tenant: optionalText(row["tenant"]),
123
+ entries: recordsOf(row["entries"], "chain_proof entries").map((each) => ({
124
+ seq: Number(each["seq"]),
125
+ prevHash: optionalText(each["prevHash"]),
126
+ rowHash: textOf(each["rowHash"]),
127
+ entry: recordOf(each["entry"], "chain_proof entry"),
128
+ hashed: textOf(each["hashed"])
129
+ })),
130
+ checkpoint: checkpoint === null || checkpoint === void 0 ? void 0 : (() => {
131
+ const found = recordOf(checkpoint, "chain_proof checkpoint");
132
+ return {
133
+ seq: Number(found["seq"]),
134
+ hash: textOf(found["hash"]),
135
+ keyId: textOf(found["keyId"]),
136
+ signature: textOf(found["signature"])
137
+ };
138
+ })()
139
+ };
140
+ }
120
141
  function keyIdOf(token) {
121
- const header = JSON.parse(base64ToText(token.split(".")[0] ?? ""));
122
- const kid = typeof header === "object" && header !== null && "kid" in header ? header.kid : void 0;
123
- return typeof kid === "string" ? kid : "";
142
+ const header = token.split(".")[0] ?? "";
143
+ try {
144
+ const parsed = JSON.parse(new TextDecoder().decode(Uint8Array.from(atob(header.replaceAll("-", "+").replaceAll("_", "/")), (character) => character.codePointAt(0) ?? 0)));
145
+ return typeof parsed === "object" && parsed !== null && "kid" in parsed && typeof parsed.kid === "string" ? parsed.kid : "";
146
+ } catch {
147
+ return "";
148
+ }
124
149
  }
125
- /** The audit hash chain (`blocks.audit.options.chain`), as the service role. */
126
- function createAuditChain(options) {
150
+ /** The hash chain of any table tagged `chain`, as the service role. */
151
+ function createChain(options) {
127
152
  applyTemporal(options);
128
153
  const call = blockCall(options.transport, options.schema, options.mappers);
129
- const heads = () => call("audit_chain_heads", {}, (value) => recordsOf(value, "audit_chain_heads").map(headOf));
154
+ const base = {
155
+ target: options.table,
156
+ tenant_column: options.tenantColumn
157
+ };
158
+ const heads = () => call("chain_heads", base, (value) => (Array.isArray(value) ? value : []).map(headOf));
130
159
  const sign = (head, signer) => signer.signJwt({
131
160
  ...options.issuer === void 0 ? {} : { iss: options.issuer },
132
- sub: head.organizationId ?? "",
161
+ sub: head.tenant ?? "",
162
+ table: options.table,
133
163
  seq: head.seq,
134
164
  hash: head.hash,
135
- entry: head.entryId,
136
165
  iat: Math.floor(nowInstant().epochMilliseconds / 1e3)
137
- }).andThen((signature) => call("record_audit_checkpoint", {
138
- tenant: head.organizationId,
166
+ }).andThen((signature) => call("record_chain_checkpoint", {
167
+ ...base,
168
+ tenant: head.tenant,
139
169
  seq: head.seq,
140
170
  hash: head.hash,
141
171
  key_id: keyIdOf(signature),
142
172
  signature
143
173
  }, checkpointOf));
144
174
  return {
145
- verify: (range = {}) => call("verify_audit_chain", {
146
- tenant: range.organizationId,
147
- from_at: range.from?.toString(),
148
- to_at: range.to?.toString()
175
+ verify: (range = {}) => call("verify_chain", {
176
+ ...base,
177
+ tenant: range.tenant
149
178
  }, verdictOf),
150
179
  heads,
151
180
  checkpoint: () => {
152
181
  const { signer } = options;
153
- if (!signer) return AsyncResult.err(dbError("invalid_request", "checkpoint() needs a signer", { hint: "AUDIT_CHAIN_SIGNER" }));
182
+ if (!signer) return AsyncResult.err(dbError("invalid_request", "checkpoint() needs a signer", { hint: "CHAIN_SIGNER" }));
154
183
  return heads().andThen((list) => list.reduce((done, head) => done.andThen((made) => sign(head, signer).map((checkpoint) => [...made, checkpoint])), AsyncResult.ok([])));
155
184
  },
156
- checkpoints: (request = {}) => call("list_audit_checkpoints", {
157
- tenant: request.organizationId,
185
+ checkpoints: (request = {}) => call("list_chain_checkpoints", {
186
+ target: options.table,
187
+ tenant: request.tenant,
158
188
  max_rows: request.limit ?? 100
159
- }, (value) => recordsOf(value, "list_audit_checkpoints").map(checkpointOf))
189
+ }, (value) => (Array.isArray(value) ? value : []).map(checkpointOf)),
190
+ proof: ({ seq, tenant }) => call("chain_proof", {
191
+ ...base,
192
+ tenant,
193
+ seq
194
+ }, proofOf)
195
+ };
196
+ }
197
+ const encoder = new TextEncoder();
198
+ function hexOf(bytes) {
199
+ return [...new Uint8Array(bytes)].map((byte) => byte.toString(16).padStart(2, "0")).join("");
200
+ }
201
+ function bytesOf(hex) {
202
+ if (hex === void 0 || hex === "") return /* @__PURE__ */ new Uint8Array();
203
+ return Uint8Array.from(hex.match(/../gu) ?? [], (pair) => Number.parseInt(pair, 16));
204
+ }
205
+ /**
206
+ * Checks a proof without a database: each row's hash against the row text and
207
+ * the one before it, the links, and the checkpoint's signature against `jwks`.
208
+ * Runs on WebCrypto only, so an auditor can run it anywhere. `requireSigned`
209
+ * refuses a proof the chain head isn't signed for.
210
+ */
211
+ async function verifyChainProof(proof, jwks, options = {}) {
212
+ const [first] = proof.entries;
213
+ if (first === void 0) return {
214
+ valid: false,
215
+ reason: "empty"
216
+ };
217
+ let previous;
218
+ for (const entry of proof.entries) {
219
+ if (previous !== void 0 && entry.seq !== previous.seq + 1) return {
220
+ valid: false,
221
+ reason: "gap",
222
+ seq: entry.seq
223
+ };
224
+ if (previous !== void 0 && entry.prevHash !== previous.rowHash) return {
225
+ valid: false,
226
+ reason: "link",
227
+ seq: entry.seq
228
+ };
229
+ const material = new Uint8Array([...bytesOf(entry.prevHash), ...encoder.encode(entry.hashed)]);
230
+ if (hexOf(await crypto.subtle.digest("SHA-256", material)) !== entry.rowHash) return {
231
+ valid: false,
232
+ reason: "hash",
233
+ seq: entry.seq
234
+ };
235
+ previous = entry;
236
+ }
237
+ const { checkpoint } = proof;
238
+ if (checkpoint === void 0) return options.requireSigned ? {
239
+ valid: false,
240
+ reason: "unsigned"
241
+ } : {
242
+ valid: true,
243
+ signed: false,
244
+ checked: proof.entries.length
245
+ };
246
+ if (previous?.seq !== checkpoint.seq || previous.rowHash !== checkpoint.hash) return {
247
+ valid: false,
248
+ reason: "checkpoint",
249
+ seq: checkpoint.seq
250
+ };
251
+ try {
252
+ const { payload } = await verifyCompact(checkpoint.signature, jwks);
253
+ if (payload["hash"] !== checkpoint.hash || payload["seq"] !== checkpoint.seq) return {
254
+ valid: false,
255
+ reason: "signature",
256
+ seq: checkpoint.seq
257
+ };
258
+ } catch {
259
+ return {
260
+ valid: false,
261
+ reason: "signature",
262
+ seq: checkpoint.seq
263
+ };
264
+ }
265
+ return {
266
+ valid: true,
267
+ signed: true,
268
+ checked: proof.entries.length
269
+ };
270
+ }
271
+ // src/blocks/audit/evidence.ts
272
+ function body(parts) {
273
+ return JSON.stringify({
274
+ format: "better-supabase/evidence@1",
275
+ subject: parts.subject,
276
+ proofs: parts.proofs,
277
+ sections: parts.sections ?? {},
278
+ generatedAt: parts.generatedAt
279
+ });
280
+ }
281
+ /**
282
+ * Seals `parts` with a content hash. Write the result to storage under a legal
283
+ * hold.
284
+ */
285
+ async function evidenceBundle(parts) {
286
+ return {
287
+ format: "better-supabase/evidence@1",
288
+ ...parts,
289
+ sections: parts.sections ?? {},
290
+ sha256: await sha256Hex(body(parts))
291
+ };
292
+ }
293
+ /** Checks the content hash and every proof against `jwks`, offline. */
294
+ async function verifyEvidenceBundle(bundle, jwks, options = {}) {
295
+ if (await sha256Hex(body(bundle)) !== bundle.sha256) return {
296
+ valid: false,
297
+ reason: "bundle"
298
+ };
299
+ for (const [index, proof] of bundle.proofs.entries()) {
300
+ const verdict = await verifyChainProof(proof, jwks, options);
301
+ if (!verdict.valid) return {
302
+ valid: false,
303
+ reason: "proof",
304
+ proof: index,
305
+ detail: verdict
306
+ };
307
+ }
308
+ return {
309
+ valid: true,
310
+ proofs: bundle.proofs.length
160
311
  };
161
312
  }
162
- export { auditBlock, auditEventOf, auditEvents, auditListQuery, auditSink, createAudit, createAuditChain, createAuditLogController, dbTransport, exportAuditLog, purgeAuditLog, rpcTransport, setAuditRetention, sqlTransport, toOcsf };
313
+ export { auditBlock, auditEventOf, auditEvents, auditListQuery, auditSink, createAudit, createAuditLogController, createChain, dbTransport, evidenceBundle, exportAuditLog, purgeAuditLog, rpcTransport, setAuditRetention, sqlTransport, toOcsf, verifyChainProof, verifyEvidenceBundle };
@@ -1,18 +1,18 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Si as defineAction, _i as ActionSpec, bi as actionKey, c as BlockOf, ci as ActionCall, di as ActionFactory, fi as ActionHandler, ft as NotifierInput, gi as ActionRegistry, hi as ActionRef, li as ActionContext, mi as ActionOrigin, pi as ActionInfo, si as Action, ui as ActionDescriptor, xi as createActionRegistry, yi as DefaultAutomation } from "../../define-block-B2um61Uj.js";
3
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-xAMR6WdT.js";
4
- import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
2
+ import { Ci as createActionRegistry, Si as actionKey, _i as ActionRef, c as BlockOf, di as ActionContext, fi as ActionDescriptor, gi as ActionOrigin, hi as ActionInfo, li as Action, mi as ActionHandler, pi as ActionFactory, pt as NotifierInput, ui as ActionCall, vi as ActionRegistry, wi as defineAction, xi as DefaultAutomation, yi as ActionSpec } from "../../define-block-Cu67KCN1.js";
3
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-FM9t7ol_.js";
4
+ import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
5
5
  import { D as ValidationIssue, T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-CMqlHv82.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
- import { n as FilterRecordField, t as FilterEvaluation } from "../../filter-evaluate-BFBP_icy.js";
8
- import { _ as FilterRule, d as FilterLimits, f as FilterNode, h as FilterQuery, i as FilterCombinator, m as FilterOperatorSpec, r as FilterClock } from "../../filter-query-09B_jtdv.js";
9
- import { r as BlockTemporalOptions } from "../../block-helpers-YOdaCxWE.js";
10
- import { a as checkRuleConditions, c as ruleFilterFields, i as RuleFieldDefinition, n as RuleField, o as defineRuleFields, r as RuleFieldCatalog, s as ruleFilterFieldInfo, t as RULE_LIMITS } from "../../fields-CUZVw9WB.js";
11
- import { n as Controller, t as AuthPort } from "../../controller-BrTPi8Po.js";
12
- import { et as RecordRef } from "../../types-D5UNIbOQ.js";
13
- import { u as ApprovalRequestInput } from "../../approvals-Ds7pFvnl.js";
14
- import { a as ConversionRelations, c as narrowClients, i as ConversionRef, n as ConversionContext, o as ConversionSpec, r as ConversionOutcome, s as defineConversionAction, t as ConversionClients } from "../../conversion-t1F0y--Y.js";
15
- import { Dt as Events } from "../../events-X-Dhu495.js";
7
+ import { n as FilterRecordField, t as FilterEvaluation } from "../../filter-evaluate-CgKvlbI7.js";
8
+ import { _ as FilterRule, d as FilterLimits, f as FilterNode, h as FilterQuery, i as FilterCombinator, m as FilterOperatorSpec, r as FilterClock } from "../../filter-query-CJ3wcwqH.js";
9
+ import { r as BlockTemporalOptions } from "../../block-helpers-rTsuHt6v.js";
10
+ import { a as checkRuleConditions, c as ruleFilterFields, i as RuleFieldDefinition, n as RuleField, o as defineRuleFields, r as RuleFieldCatalog, s as ruleFilterFieldInfo, t as RULE_LIMITS } from "../../fields-Cy8HCOKW.js";
11
+ import { n as Controller, t as AuthPort } from "../../controller-BVee4yX8.js";
12
+ import { et as RecordRef } from "../../types-BlBju7Wa.js";
13
+ import { u as ApprovalRequestInput } from "../../approvals-DnabEGo2.js";
14
+ import { a as ConversionRelations, c as narrowClients, i as ConversionRef, n as ConversionContext, o as ConversionSpec, r as ConversionOutcome, s as defineConversionAction, t as ConversionClients } from "../../conversion-BPkWkVoa.js";
15
+ import { Dt as Events } from "../../events-DN9PAcjq.js";
16
16
  /** What a rule runs when it matches: an action reference (ADR 0046). */
17
17
  type RuleAction = ActionRef;
18
18
  interface Rule {
@@ -1,4 +1,4 @@
1
- import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
2
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-xAMR6WdT.js";
3
- import { $ as BankFeed, A as BankRule, B as PaymentBatch, C as BankMatch, D as BankMatchTarget, E as BankMatchSuggestion, F as BankTransaction, G as PaymentBatchStatus, H as PaymentBatchInput, I as BankTransactionListOptions, J as BankReads, K as SepaExportOptions, L as BankTransactionStatus, M as BankRuleRun, N as BankStatement, O as BankReconciliation, P as BankStatementImport, Q as BankReconciliationBoard, R as Banking, S as BankFeedSync, T as BankMatchReason, U as PaymentBatchItem, V as PaymentBatchCreditor, W as PaymentBatchItemStatus, X as BankBoardStatus, Y as BankBoardLine, Z as BankBoardSuggestion, _ as BankTransactionMatchedEventData, a as referencePayload, at as BankTransactionInput, b as BankAccount, c as sepaCreditTransferXml, ct as ParsedBankTransaction, d as bankAccountInputSchema, et as BankFeedAccount, f as bankMatchInputSchema, g as BankTransactionEventData, h as BankStatementImportedEventData, i as isIban, it as BankStatementInput, j as BankRuleInput, k as BankReviewItem, l as parseMt940, m as bankingBlock, n as berlinGroupFeed, nt as BankDate, o as SepaCreditTransfer, ot as ParsedBankAccount, p as bankRuleInputSchema, q as createBanking, r as creditorReference, rt as BankStatementFormat, s as SepaCreditTransferFile, st as ParsedBankStatement, t as BerlinGroupFeedOptions, tt as bankFeedOf, u as parseCamt053, v as BankingEvents, w as BankMatchInput, x as BankAccountInput, y as bankingEvents, z as BankingOptions } from "../../index-BGje-MeF.js";
1
+ import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
2
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-FM9t7ol_.js";
3
+ import { $ as BankFeed, A as BankRule, B as PaymentBatch, C as BankMatch, D as BankMatchTarget, E as BankMatchSuggestion, F as BankTransaction, G as PaymentBatchStatus, H as PaymentBatchInput, I as BankTransactionListOptions, J as BankReads, K as SepaExportOptions, L as BankTransactionStatus, M as BankRuleRun, N as BankStatement, O as BankReconciliation, P as BankStatementImport, Q as BankReconciliationBoard, R as Banking, S as BankFeedSync, T as BankMatchReason, U as PaymentBatchItem, V as PaymentBatchCreditor, W as PaymentBatchItemStatus, X as BankBoardStatus, Y as BankBoardLine, Z as BankBoardSuggestion, _ as BankTransactionMatchedEventData, a as referencePayload, at as BankTransactionInput, b as BankAccount, c as sepaCreditTransferXml, ct as ParsedBankTransaction, d as bankAccountInputSchema, et as BankFeedAccount, f as bankMatchInputSchema, g as BankTransactionEventData, h as BankStatementImportedEventData, i as isIban, it as BankStatementInput, j as BankRuleInput, k as BankReviewItem, l as parseMt940, m as bankingBlock, n as berlinGroupFeed, nt as BankDate, o as SepaCreditTransfer, ot as ParsedBankAccount, p as bankRuleInputSchema, q as createBanking, r as creditorReference, rt as BankStatementFormat, s as SepaCreditTransferFile, st as ParsedBankStatement, t as BerlinGroupFeedOptions, tt as bankFeedOf, u as parseCamt053, v as BankingEvents, w as BankMatchInput, x as BankAccountInput, y as bankingEvents, z as BankingOptions } from "../../index-CDEzb5bl.js";
4
4
  export { type BankAccount, type BankAccountInput, type BankBoardLine, type BankBoardStatus, type BankBoardSuggestion, type BankDate, type BankFeed, type BankFeedAccount, type BankFeedSync, type BankMatch, type BankMatchInput, type BankMatchReason, type BankMatchSuggestion, type BankMatchTarget, type BankReads, type BankReconciliation, type BankReconciliationBoard, type BankReviewItem, type BankRule, type BankRuleInput, type BankRuleRun, type BankStatement, type BankStatementFormat, type BankStatementImport, type BankStatementImportedEventData, type BankStatementInput, type BankTransaction, type BankTransactionEventData, type BankTransactionInput, type BankTransactionListOptions, type BankTransactionMatchedEventData, type BankTransactionStatus, type Banking, type BankingEvents, type BankingOptions, type BerlinGroupFeedOptions, type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type ParsedBankAccount, type ParsedBankStatement, type ParsedBankTransaction, type PaymentBatch, type PaymentBatchCreditor, type PaymentBatchInput, type PaymentBatchItem, type PaymentBatchItemStatus, type PaymentBatchStatus, type RpcClient, type SepaCreditTransfer, type SepaCreditTransferFile, type SepaExportOptions, bankAccountInputSchema, bankFeedOf, bankMatchInputSchema, bankRuleInputSchema, bankingBlock, bankingEvents, berlinGroupFeed, createBanking, creditorReference, dbTransport, extendBlock, isIban, parseCamt053, parseMt940, referencePayload, rpcTransport, sepaCreditTransferXml, sqlTransport, withBlockHooks, wrapTransport };
@@ -1,4 +1,4 @@
1
- import { a as bankingEvents, c as bankFeedOf, i as bankRuleInputSchema, n as bankAccountInputSchema, o as createBanking, r as bankMatchInputSchema, s as sepaCreditTransferXml, t as bankingBlock } from "../../manifest-DEx8OSZK.js";
1
+ import { a as bankingEvents, c as bankFeedOf, i as bankRuleInputSchema, n as bankAccountInputSchema, o as createBanking, r as bankMatchInputSchema, s as sepaCreditTransferXml, t as bankingBlock } from "../../manifest-IECPtdQj.js";
2
2
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-Bd5bRM9B.js";
3
3
  import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-BR1V7DN1.js";
4
4
  import { g as parseMoney, h as negateMoney } from "../../money-hWAOR9jq.js";
@@ -1,4 +1,4 @@
1
- import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
2
- import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-xAMR6WdT.js";
3
- import { C as TimeRateListOptions, D as createBillableTime, E as WipValuation, O as ProjectCostTotals, S as TimeRateInput, T as UnbilledTime, _ as BillableTimeScope, a as TimeRateSectionInput, b as TimeInvoice, c as timeRateSectionInputSchema, d as billableTimeEvents, f as BillableTime, g as BillableTimeQuery, h as BillableTimeOptions, i as TimeInvoiceSectionInput, k as ProjectCosts, l as BillableTimeEvents, m as BillableTimeLine, n as BillableTimeWrites, o as timeInvoiceSectionInputSchema, p as BillableTimeGrouping, r as billableTimeBinding, s as timeRateInputSchema, t as billableTimeBlock, u as TimeInvoicedEventData, v as InvoiceFromTimeInput, w as TimeRateLookup, x as TimeRate, y as InvoicedTimeEntry } from "../../index-BLRLF6iG.js";
1
+ import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
2
+ import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-FM9t7ol_.js";
3
+ import { C as TimeRateListOptions, D as createBillableTime, E as WipValuation, O as ProjectCostTotals, S as TimeRateInput, T as UnbilledTime, _ as BillableTimeScope, a as TimeRateSectionInput, b as TimeInvoice, c as timeRateSectionInputSchema, d as billableTimeEvents, f as BillableTime, g as BillableTimeQuery, h as BillableTimeOptions, i as TimeInvoiceSectionInput, k as ProjectCosts, l as BillableTimeEvents, m as BillableTimeLine, n as BillableTimeWrites, o as timeInvoiceSectionInputSchema, p as BillableTimeGrouping, r as billableTimeBinding, s as timeRateInputSchema, t as billableTimeBlock, u as TimeInvoicedEventData, v as InvoiceFromTimeInput, w as TimeRateLookup, x as TimeRate, y as InvoicedTimeEntry } from "../../index-BDn4Mqq0.js";
4
4
  export { type BillableTime, type BillableTimeEvents, type BillableTimeGrouping, type BillableTimeLine, type BillableTimeOptions, type BillableTimeQuery, type BillableTimeScope, type BillableTimeWrites, type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type InvoiceFromTimeInput, type InvoicedTimeEntry, type ProjectCostTotals, type ProjectCosts, type RpcClient, type TimeInvoice, type TimeInvoiceSectionInput, type TimeInvoicedEventData, type TimeRate, type TimeRateInput, type TimeRateListOptions, type TimeRateLookup, type TimeRateSectionInput, type UnbilledTime, type WipValuation, billableTimeBinding, billableTimeBlock, billableTimeEvents, createBillableTime, dbTransport, extendBlock, rpcTransport, sqlTransport, timeInvoiceSectionInputSchema, timeRateInputSchema, timeRateSectionInputSchema, withBlockHooks, wrapTransport };
@@ -1,11 +1,11 @@
1
- import { C as billingEvents, S as BillingEvents, _ as StripeRow, a as BillingCustomerUpdate, b as BillingReads, c as CheckoutItem, d as CustomerDetails, f as PlanChange, g as StripeEventOutcome, h as StripeEvent, i as BillingCustomer, l as CheckoutOptions, m as SeatSync, n as createBilling, o as BillingOptions, p as PlatformListOptions, r as Billing, s as BillingStatus, t as billingBlock, u as CustomerAccountOptions, v as SubscriptionItem, x as BillingOverview, y as TenantStripeRow } from "../../manifest-CgCpK4Wm.js";
2
- import { C as BillingEventData } from "../../events-X-Dhu495.js";
1
+ import { C as billingEvents, S as BillingEvents, _ as StripeRow, a as BillingCustomerUpdate, b as BillingReads, c as CheckoutItem, d as CustomerDetails, f as PlanChange, g as StripeEventOutcome, h as StripeEvent, i as BillingCustomer, l as CheckoutOptions, m as SeatSync, n as createBilling, o as BillingOptions, p as PlatformListOptions, r as Billing, s as BillingStatus, t as billingBlock, u as CustomerAccountOptions, v as SubscriptionItem, x as BillingOverview, y as TenantStripeRow } from "../../manifest-DGLrMEdB.js";
2
+ import { C as BillingEventData } from "../../events-DN9PAcjq.js";
3
3
  import { n as StripeSource, r as StripeTaxId, t as StripeClient } from "../../stripe-Bl-sjnl6.js";
4
- import { d as stripeInboxVerify, f as verifyStripeWebhook, u as signStripeWebhook } from "../../verify-CupKPoHW.js";
5
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
4
+ import { d as stripeInboxVerify, f as verifyStripeWebhook, u as signStripeWebhook } from "../../verify-ClbMJkEg.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, f as Result, t as AsyncResult } from "../../result-CMqlHv82.js";
7
- import { n as Controller, t as AuthPort } from "../../controller-BrTPi8Po.js";
8
- import { n as BlockOptions } from "../../block-helpers-YOdaCxWE.js";
7
+ import { n as Controller, t as AuthPort } from "../../controller-BVee4yX8.js";
8
+ import { n as BlockOptions } from "../../block-helpers-rTsuHt6v.js";
9
9
  /**
10
10
  * A plan the picker lists: a key from the app's plan catalog, plus whatever the
11
11
  * app shows.
@@ -1,5 +1,5 @@
1
1
  import { o as WeeklyHours } from "../../availability-ezSvbaRp.js";
2
- import { C as bookingSeriesOf, S as BookingWeekday, T as parseRecurrence, _ as BookedSeries, a as BookingExceptionInput, b as BookingSeriesScope, c as BookingResourceInput, d as BookingStatus, f as Bookings, g as createBookings, h as PublicBookingService, i as BookingDuration, l as BookingServiceInput, m as PlacedBooking, n as Booking, o as BookingExpirePayload, p as BookingsOptions, r as BookingCustomer, s as BookingRange, t as BOOKING_EXPIRE_QUEUE, u as BookingSlot, v as BookingRecurrence, w as formatRecurrence, x as BookingSeriesStatus, y as BookingSeries } from "../../bookings-DetPC3Dw.js";
3
- import { a as createAvailableSlotsController, c as toEventCalendarBookings, i as AvailableSlotsSnapshot, l as bookingOf, n as AvailableSlotsController, o as BookingEventOptions, r as AvailableSlotsOptions, s as slotsByDay, t as AvailableSlotsActions } from "../../index-BDEwjrNn.js";
4
- import { n as BookingsEvents, r as bookingsEvents, t as bookingsBlock } from "../../manifest-CF-LsgEw.js";
2
+ import { C as bookingSeriesOf, S as BookingWeekday, T as parseRecurrence, _ as BookedSeries, a as BookingExceptionInput, b as BookingSeriesScope, c as BookingResourceInput, d as BookingStatus, f as Bookings, g as createBookings, h as PublicBookingService, i as BookingDuration, l as BookingServiceInput, m as PlacedBooking, n as Booking, o as BookingExpirePayload, p as BookingsOptions, r as BookingCustomer, s as BookingRange, t as BOOKING_EXPIRE_QUEUE, u as BookingSlot, v as BookingRecurrence, w as formatRecurrence, x as BookingSeriesStatus, y as BookingSeries } from "../../bookings-CBRjx_ZD.js";
3
+ import { a as createAvailableSlotsController, c as toEventCalendarBookings, i as AvailableSlotsSnapshot, l as bookingOf, n as AvailableSlotsController, o as BookingEventOptions, r as AvailableSlotsOptions, s as slotsByDay, t as AvailableSlotsActions } from "../../index-ilxdL8pz.js";
4
+ import { n as BookingsEvents, r as bookingsEvents, t as bookingsBlock } from "../../manifest-D0FjVeay.js";
5
5
  export { type AvailableSlotsActions, type AvailableSlotsController, type AvailableSlotsOptions, type AvailableSlotsSnapshot, BOOKING_EXPIRE_QUEUE, type BookedSeries, type Booking, type BookingCustomer, type BookingDuration, type BookingEventOptions, type BookingExceptionInput, type BookingExpirePayload, type BookingRange, type BookingRecurrence, type BookingResourceInput, type BookingSeries, type BookingSeriesScope, type BookingSeriesStatus, type BookingServiceInput, type BookingSlot, type BookingStatus, type BookingWeekday, type Bookings, type BookingsEvents, type BookingsOptions, type PlacedBooking, type PublicBookingService, type WeeklyHours, bookingOf, bookingSeriesOf, bookingsBlock, bookingsEvents, createAvailableSlotsController, createBookings, formatRecurrence, parseRecurrence, slotsByDay, toEventCalendarBookings };
@@ -1,10 +1,10 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { n as BlockHooks } from "../../block-hooks-xAMR6WdT.js";
3
- import { t as BlockTransport } from "../../block-transport-DBteddOY.js";
2
+ import { n as BlockHooks } from "../../block-hooks-FM9t7ol_.js";
3
+ import { t as BlockTransport } from "../../block-transport-CP4wAHU-.js";
4
4
  import { T as ErrorMapper, t as AsyncResult } from "../../result-CMqlHv82.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
- import { c as BlockOf } from "../../define-block-B2um61Uj.js";
7
- import { Dt as Events, tt as SaasEventData } from "../../events-X-Dhu495.js";
6
+ import { c as BlockOf } from "../../define-block-Cu67KCN1.js";
7
+ import { Dt as Events, tt as SaasEventData } from "../../events-DN9PAcjq.js";
8
8
  /** The actions every install knows, when the block that owns each is installed. */
9
9
  type BuiltInBulkAction = "tags.set" | "stateMachine.transition" | "relations.link" | "trash.trash" | "collections.add" | "appTables.set";
10
10
  /** Arguments per built-in action; an app's own actions take any object. */
@@ -1,10 +1,10 @@
1
- import { _ as CalendarVisibility, a as CalendarAttendeeInput, b as createCalendar, c as CalendarFeedData, d as CalendarImport, f as CalendarInfo, g as CalendarUserFeedData, h as CalendarSaveOptions, i as Calendar, l as CalendarGrant, m as CalendarOptions, n as CalendarEvents, o as CalendarAttributes, p as CalendarOccurrenceRef, r as calendarEvents, s as CalendarEventInput, t as calendarBlock, u as CalendarGrantRole, v as SavedCalendarEvent, y as calendarEventOf } from "../../manifest-XZV2sKgk.js";
1
+ import { _ as CalendarVisibility, a as CalendarAttendeeInput, b as createCalendar, c as CalendarFeedData, d as CalendarImport, f as CalendarInfo, g as CalendarUserFeedData, h as CalendarSaveOptions, i as Calendar, l as CalendarGrant, m as CalendarOptions, n as CalendarEvents, o as CalendarAttributes, p as CalendarOccurrenceRef, r as calendarEvents, s as CalendarEventInput, t as calendarBlock, u as CalendarGrantRole, v as SavedCalendarEvent, y as calendarEventOf } from "../../manifest-CdD44xlg.js";
2
2
  import { A as CalendarAlarmAction, C as IcsEvent, D as parseIcs, E as ToIcsOptions, M as CalendarReminder, O as toIcs, S as CalendarEventStatus, T as ParsedIcs, _ as expandOccurrences, a as FreeBusy, b as AttendeeRole, c as WorkingHoursInput, d as workingHoursOf, f as CalendarEvent, g as SplitRules, h as OccurrenceRange, i as CommonFreeTimeOptions, j as CalendarDefaultAlarm, k as CalendarAlarm, l as commonFreeTime, m as OccurrenceOptions, n as CalendarEventKind, o as WeeklyHours, p as CalendarOccurrence, r as CalendarTransparency, s as WorkingHours, t as BusyRange, u as freeBusyOf, v as splitRule, w as IcsSource, x as CalendarAttendee, y as AttendeeResponse } from "../../availability-ezSvbaRp.js";
3
3
  import { a as fromEventCalendarUpdate, c as toEventCalendarResources, i as OccurrenceMove, n as EventCalendarOptions, o as seriesOf, r as EventCalendarResource, s as toEventCalendarEvents, t as EventCalendarEvent } from "../../event-calendar-aJSOUoNM.js";
4
4
  import { b as DbError } from "../../result-CMqlHv82.js";
5
- import { n as Controller } from "../../controller-BrTPi8Po.js";
5
+ import { n as Controller } from "../../controller-BVee4yX8.js";
6
6
  import { t as VisibleRange } from "../../range-BN3kpJAE.js";
7
- import { G as EntitySchema } from "../../define-block-B2um61Uj.js";
7
+ import { G as EntitySchema } from "../../define-block-Cu67KCN1.js";
8
8
  interface CalendarControllerOptions extends EventCalendarOptions {
9
9
  readonly client: Pick<Calendar, "occurrences" | "editOccurrence" | "editFollowing" | "cancelOccurrence">;
10
10
  readonly calendarIds: readonly string[];