better-supabase 0.36.0 → 0.37.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 (360) hide show
  1. package/dist/{ai-schedules-BZPmySUa.d.ts → ai-schedules-ChJkI2jo.d.ts} +1 -1
  2. package/dist/ai-sdk/agents/index.d.ts +2 -2
  3. package/dist/ai-sdk/batches/index.d.ts +1 -1
  4. package/dist/ai-sdk/index.d.ts +1 -1
  5. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  6. package/dist/{api-XEaCJbgv.d.ts → api-CbY2qdzT.d.ts} +3 -3
  7. package/dist/{api-keys-C82fMru4.d.ts → api-keys-BncNDlWG.d.ts} +1 -1
  8. package/dist/{app-tables-C0XVpQEJ.d.ts → app-tables-BlhdqqHf.d.ts} +1 -1
  9. package/dist/{approvals-DqCv7f-G.d.ts → approvals-CXW3yFWZ.d.ts} +1 -1
  10. package/dist/astro/index.d.ts +5 -5
  11. package/dist/{authorization-2Rv1AJQJ.d.ts → authorization-C7yjZttV.d.ts} +44 -18
  12. package/dist/{authorization-hooks-C0GfMvFm.d.ts → authorization-hooks-CR8TVvqo.d.ts} +1 -1
  13. package/dist/better-result/index.d.ts +2 -2
  14. package/dist/{bind-C2XvMlfg.d.ts → bind-BspFMDdW.d.ts} +4 -4
  15. package/dist/{block-env-BQrtLPyc.d.ts → block-env-CLco8YUl.d.ts} +4 -4
  16. package/dist/{block-tables-DPOgnT3y.d.ts → block-tables-DfomofFv.d.ts} +1 -1
  17. package/dist/blocks/access-requests/index.d.ts +2 -2
  18. package/dist/blocks/activities/index.d.ts +3 -3
  19. package/dist/blocks/agents/index.d.ts +2 -2
  20. package/dist/blocks/ai-cache/index.d.ts +1 -1
  21. package/dist/blocks/ai-chat/index.d.ts +5 -5
  22. package/dist/blocks/ai-files/index.d.ts +1 -1
  23. package/dist/blocks/ai-keys/index.d.ts +3 -3
  24. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  25. package/dist/blocks/announcements/index.d.ts +5 -5
  26. package/dist/blocks/api-keys/index.d.ts +2 -2
  27. package/dist/blocks/approvals/index.d.ts +3 -3
  28. package/dist/blocks/assets/index.d.ts +2 -2
  29. package/dist/blocks/assignment/index.d.ts +3 -3
  30. package/dist/blocks/attachments/index.d.ts +3 -3
  31. package/dist/blocks/audit/index.d.ts +7 -7
  32. package/dist/blocks/automations/index.d.ts +5 -5
  33. package/dist/blocks/billable-time/index.d.ts +2 -2
  34. package/dist/blocks/billing/index.d.ts +5 -5
  35. package/dist/blocks/bookings/index.d.ts +3 -3
  36. package/dist/blocks/bulk/index.d.ts +2 -2
  37. package/dist/blocks/calendar/index.d.ts +3 -3
  38. package/dist/blocks/catalog/index.d.ts +22 -3
  39. package/dist/blocks/catalog/index.js +31 -2
  40. package/dist/blocks/channels/index.d.ts +3 -3
  41. package/dist/blocks/collections/index.d.ts +3 -3
  42. package/dist/blocks/comments/index.d.ts +5 -5
  43. package/dist/blocks/compliance/index.d.ts +2 -2
  44. package/dist/blocks/connectors/index.d.ts +3 -3
  45. package/dist/blocks/contacts/index.d.ts +3 -3
  46. package/dist/blocks/content/index.d.ts +2 -2
  47. package/dist/blocks/contracts/index.d.ts +2 -2
  48. package/dist/blocks/courses/index.d.ts +2 -2
  49. package/dist/blocks/created-by/index.d.ts +1 -1
  50. package/dist/blocks/custom-fields/index.d.ts +2 -2
  51. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  52. package/dist/blocks/deals/index.d.ts +3 -3
  53. package/dist/blocks/dispatch/index.d.ts +2 -2
  54. package/dist/blocks/documents/index.d.ts +2 -2
  55. package/dist/blocks/domains/index.d.ts +2 -2
  56. package/dist/blocks/donations/index.d.ts +2 -2
  57. package/dist/blocks/drive/index.d.ts +3 -3
  58. package/dist/blocks/employees/index.d.ts +4 -4
  59. package/dist/blocks/enrichment/index.d.ts +3 -3
  60. package/dist/blocks/enrollments/index.d.ts +2 -2
  61. package/dist/blocks/entitlements/index.d.ts +3 -3
  62. package/dist/blocks/expenses/index.d.ts +2 -2
  63. package/dist/blocks/field-history/index.d.ts +1 -1
  64. package/dist/blocks/flags/index.d.ts +2 -2
  65. package/dist/blocks/forecasts/index.d.ts +3 -3
  66. package/dist/blocks/forms/index.d.ts +3 -3
  67. package/dist/blocks/goals/index.d.ts +1 -1
  68. package/dist/blocks/guests/index.d.ts +2 -2
  69. package/dist/blocks/hiring/index.d.ts +3 -3
  70. package/dist/blocks/identities/index.d.ts +2 -2
  71. package/dist/blocks/imports/index.d.ts +2 -2
  72. package/dist/blocks/inbox/index.d.ts +6 -6
  73. package/dist/blocks/incidents/index.d.ts +2 -2
  74. package/dist/blocks/index.d.ts +4 -4
  75. package/dist/blocks/inventory/index.d.ts +171 -10
  76. package/dist/blocks/inventory/index.js +206 -13
  77. package/dist/blocks/invoices/index.d.ts +3 -3
  78. package/dist/blocks/knowledge/index.d.ts +1 -1
  79. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  80. package/dist/blocks/leases/index.d.ts +2 -2
  81. package/dist/blocks/leave/index.d.ts +2 -2
  82. package/dist/blocks/ledger/index.d.ts +2 -2
  83. package/dist/blocks/mail-sync/index.d.ts +3 -3
  84. package/dist/blocks/memberships/index.d.ts +1 -1
  85. package/dist/blocks/memory/index.d.ts +1 -1
  86. package/dist/blocks/messaging/index.d.ts +7 -7
  87. package/dist/blocks/metrics/index.d.ts +2 -2
  88. package/dist/blocks/mfa/index.d.ts +2 -2
  89. package/dist/blocks/moderation/index.d.ts +2 -2
  90. package/dist/blocks/notifications/index.d.ts +7 -7
  91. package/dist/blocks/numbering/index.d.ts +2 -2
  92. package/dist/blocks/oauth-server/index.d.ts +2 -2
  93. package/dist/blocks/onboarding/index.d.ts +2 -2
  94. package/dist/blocks/orders/index.d.ts +80 -13
  95. package/dist/blocks/orders/index.js +63 -4
  96. package/dist/blocks/organizations/index.d.ts +4 -4
  97. package/dist/blocks/outbox/index.d.ts +2 -2
  98. package/dist/blocks/passes/index.d.ts +2 -2
  99. package/dist/blocks/permissions/index.d.ts +3 -3
  100. package/dist/blocks/pipelines/index.d.ts +3 -3
  101. package/dist/blocks/posts/index.d.ts +2 -2
  102. package/dist/blocks/profiles/index.d.ts +1 -1
  103. package/dist/blocks/promotions/index.d.ts +3 -3
  104. package/dist/blocks/promotions/index.js +1 -1
  105. package/dist/blocks/push/index.d.ts +3 -3
  106. package/dist/blocks/queue/index.d.ts +1 -1
  107. package/dist/blocks/quotes/index.d.ts +3 -3
  108. package/dist/blocks/rank/index.d.ts +1 -1
  109. package/dist/blocks/reactions/index.d.ts +5 -5
  110. package/dist/blocks/relations/index.d.ts +2 -2
  111. package/dist/blocks/reminders/index.d.ts +3 -3
  112. package/dist/blocks/reviews/index.d.ts +2 -2
  113. package/dist/blocks/saved-views/index.d.ts +4 -4
  114. package/dist/blocks/scores/index.d.ts +2 -2
  115. package/dist/blocks/search/index.d.ts +4 -4
  116. package/dist/blocks/security-events/index.d.ts +3 -3
  117. package/dist/blocks/segments/index.d.ts +3 -3
  118. package/dist/blocks/sequences/index.d.ts +2 -2
  119. package/dist/blocks/service-accounts/index.d.ts +2 -2
  120. package/dist/blocks/sessions/index.d.ts +2 -2
  121. package/dist/blocks/settings/index.d.ts +3 -3
  122. package/dist/blocks/share-links/index.d.ts +2 -2
  123. package/dist/blocks/shipments/index.d.ts +73 -4
  124. package/dist/blocks/shipments/index.js +57 -4
  125. package/dist/blocks/signatures/index.d.ts +2 -2
  126. package/dist/blocks/signing-keys/index.d.ts +2 -2
  127. package/dist/blocks/sla/index.d.ts +3 -3
  128. package/dist/blocks/sso/index.d.ts +3 -3
  129. package/dist/blocks/state-machine/index.d.ts +9 -2
  130. package/dist/blocks/state-machine/index.js +2 -0
  131. package/dist/blocks/subjects/index.d.ts +2 -2
  132. package/dist/blocks/tags/index.d.ts +3 -3
  133. package/dist/blocks/tasks/index.d.ts +5 -5
  134. package/dist/blocks/teams/index.d.ts +2 -2
  135. package/dist/blocks/templates/index.d.ts +122 -9
  136. package/dist/blocks/templates/index.js +157 -7
  137. package/dist/blocks/time-tracking/index.d.ts +3 -3
  138. package/dist/blocks/timeline/index.d.ts +9 -7
  139. package/dist/blocks/timeline/index.js +3 -1
  140. package/dist/blocks/trash/index.d.ts +2 -2
  141. package/dist/blocks/undo/index.d.ts +2 -2
  142. package/dist/blocks/updated-at/index.d.ts +1 -1
  143. package/dist/blocks/usage/index.d.ts +2 -2
  144. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  145. package/dist/blocks/versions/index.d.ts +2 -2
  146. package/dist/blocks/waitlist/index.d.ts +2 -2
  147. package/dist/blocks/webhooks/index.d.ts +6 -6
  148. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  149. package/dist/blocks/workflows/index.d.ts +5 -5
  150. package/dist/{carrier-D2b_028L.d.ts → carrier-B2eytEjR.d.ts} +10 -1
  151. package/dist/chat-sdk/index.d.ts +2 -2
  152. package/dist/claims/index.d.ts +5 -5
  153. package/dist/cli/add-8zKWiO0X.js +1 -0
  154. package/dist/cli/{add-D2CH8t_B.js → add-Buuy7BSU.js} +2 -2
  155. package/dist/cli/{add-Duf1-19E.js → add-DqfJVb1F.js} +11 -11
  156. package/dist/cli/{app-table-files-ha8X0rRE.js → app-table-files-Ku-4tPUu.js} +2 -2
  157. package/dist/cli/{app-tables-BIyQcsHH.js → app-tables-Dg0sh4dH.js} +2 -2
  158. package/dist/cli/{backfill-CLgA6-ll.js → backfill-Dspz6kVJ.js} +2 -2
  159. package/dist/cli/bin.js +1 -1
  160. package/dist/cli/{blocks-BVB1fMMj.js → blocks-B8LAph-w.js} +1 -1
  161. package/dist/cli/{blocks-9AeouX4h.js → blocks-CqVBlc4L.js} +2 -2
  162. package/dist/cli/{cache-aMk9vF1_.js → cache-BbuuCIRU.js} +1 -1
  163. package/dist/cli/{codemod-B5wrcnF2.js → codemod-DIAy8uXt.js} +88 -62
  164. package/dist/cli/{command-DM_x_yzZ.js → command-67WobzTC.js} +7 -1
  165. package/dist/cli/{completion-DbYb3N8e.js → completion-C3nMZgUZ.js} +2 -2
  166. package/dist/cli/{completion-CusuUJNn.js → completion-DSrus7H1.js} +1 -1
  167. package/dist/cli/{completion-Cx2UYd-y.js → completion-Dm0S3ub0.js} +2 -2
  168. package/dist/cli/{config-BeuImpav.js → config-cbK-wiNs.js} +1 -1
  169. package/dist/cli/{content-mapper-CEtdbshU.js → content-mapper-NXfJ5VkP.js} +2 -2
  170. package/dist/cli/{db-CeiQzhPq.js → db-bK5eCLaE.js} +1 -1
  171. package/dist/cli/{doctor-DaOUWfRN.js → doctor-CUOyLE0c.js} +16 -16
  172. package/dist/cli/env-AFfMXxWw.js +1 -0
  173. package/dist/cli/{env-DVV10l_r.js → env-CCT-dMFm.js} +1 -1
  174. package/dist/cli/{gen-BO-2NF-G.js → gen-s9canfdC.js} +14 -14
  175. package/dist/cli/index.d.ts +1 -1
  176. package/dist/cli/index.js +7 -7
  177. package/dist/cli/{init-Xit9Hnbb.js → init-Zs0Ca5on.js} +9 -9
  178. package/dist/cli/{keys-DJTN2Avl.js → keys-Dj5sJNj7.js} +1 -1
  179. package/dist/cli/{live-CuMpyRjF.js → live-BaLsNove.js} +2 -2
  180. package/dist/cli/{mcp-C7d4j5cq.js → mcp-ST7bVpJD.js} +3 -3
  181. package/dist/cli/{metadata-D2YvkY2D.js → metadata-aOvlCOOg.js} +3 -3
  182. package/dist/cli/{migrate-BCXxyTKt.js → migrate-ClBx3Ggx.js} +2 -2
  183. package/dist/cli/{migration-safety-DfwTOBQ4.js → migration-safety-mjm1pghO.js} +1 -1
  184. package/dist/cli/{migrations-nomh4TBo.js → migrations-tzItvwxT.js} +2 -2
  185. package/dist/cli/{module-migration--9T_T-zt.js → module-migration-D0Rjdvdx.js} +2 -2
  186. package/dist/cli/{moved-CT6i1csY.js → moved-CY0yDtAr.js} +1 -1
  187. package/dist/cli/{parse-qgJylE_A.js → parse-yAC-NFMq.js} +1 -1
  188. package/dist/cli/{powersync-DB9WZsIv.js → powersync-DryX_DMG.js} +4 -4
  189. package/dist/cli/powersync-vvu2-72V.js +1 -0
  190. package/dist/cli/{print-S6IF5rZm.js → print-fOUnKwA9.js} +2 -2
  191. package/dist/cli/{providers-BDTcal71.js → providers-BR1d_5jA.js} +1 -1
  192. package/dist/cli/{prune-workflows-Zr2DjByi.js → prune-workflows-CCjzNrxl.js} +2 -2
  193. package/dist/cli/{remove-CPX5Tg5s.js → remove-B_0OIusa.js} +6 -6
  194. package/dist/cli/{render-Bp7a7XQ9.js → render-BCJKDX3c.js} +3 -3
  195. package/dist/cli/{run-BclCFEyP.js → run-4VUQTR-R.js} +9 -9
  196. package/dist/cli/{run-kgG50x_Z.js → run-BctvQX_g.js} +44 -43
  197. package/dist/cli/{run-BlVaLnt_.js → run-DX4X7xqV.js} +2 -2
  198. package/dist/cli/seed-CLlvrV8I.js +1 -0
  199. package/dist/cli/{seed-Cn2R91cd.js → seed-DSC6f0oh.js} +1 -1
  200. package/dist/cli/{shared-D60W9NS-.js → shared-oY7PGamd.js} +1 -1
  201. package/dist/cli/{skills-DH-yPDny.js → skills-B5p6bDwe.js} +1 -1
  202. package/dist/cli/{snapshot-C3_eQUgY.js → snapshot-CWtER9-4.js} +2 -2
  203. package/dist/cli/{source-Bk6XwIAK.js → source-D4uav_v9.js} +1 -1
  204. package/dist/cli/{spec-BDTpcBns.js → spec-BPsyEzqH.js} +1 -1
  205. package/dist/cli/{spec-C8ydQwZC.js → spec-DTnBeaCD.js} +3 -3
  206. package/dist/cli/{sql-layout-DVQ20UMi.js → sql-layout-DbhEQqq0.js} +2 -2
  207. package/dist/cli/{stack-CmhSfY5V.js → stack-CQXLe5j0.js} +1 -1
  208. package/dist/cli/{sync-D-WO4Yvl.js → sync-CazH5FX4.js} +4 -4
  209. package/dist/cli/{table-k5OABwy3.js → table-BIQA9Hdt.js} +1 -1
  210. package/dist/cli/{upgrade-DGe5Pv6v.js → upgrade-Cyx6ESpc.js} +5 -5
  211. package/dist/cli/{upgrade-XdhMuHAu.js → upgrade-Dyb4-f0Q.js} +3 -3
  212. package/dist/cli/{version-DKfeme2I.js → version-D1ZKUFng.js} +1 -1
  213. package/dist/client/index.d.ts +5 -5
  214. package/dist/client/native/index.d.ts +4 -4
  215. package/dist/{cloud-event-BEmAUdl1.d.ts → cloud-event-BjgxkfJJ.d.ts} +1 -1
  216. package/dist/{codecs-B9v5Y5HH.js → codecs-D_pOvjvD.js} +1 -0
  217. package/dist/{codecs-B1VO2BGL.d.ts → codecs-DaP45ETv.d.ts} +1 -1
  218. package/dist/{composite-B-oAH16L.d.ts → composite-DPN4SFud.d.ts} +6 -6
  219. package/dist/config/index.d.ts +2 -2
  220. package/dist/config/index.js +4 -4
  221. package/dist/{config-BrRlSxhx.js → config-Dx3bEPlX.js} +1 -1
  222. package/dist/{config-BKxjItQ-.js → config-uSliwPS6.js} +3 -3
  223. package/dist/{connectors-CrLRW4Ol.d.ts → connectors-DDsdz-cn.d.ts} +1 -1
  224. package/dist/{context-yfOlyAqb.d.ts → context-D6OZQdcT.d.ts} +2 -2
  225. package/dist/contract/index.d.ts +8 -8
  226. package/dist/{controller-CAcLEndc.d.ts → controller-DhcSXkAC.d.ts} +1 -1
  227. package/dist/{conversion-s1NtB6S-.d.ts → conversion-CLBBITW5.d.ts} +1 -1
  228. package/dist/create/index.d.ts +3 -3
  229. package/dist/create/index.js +3 -3
  230. package/dist/create/lite/index.d.ts +3 -3
  231. package/dist/create/lite/index.js +2 -2
  232. package/dist/credentials/index.d.ts +3 -3
  233. package/dist/{define-BvkaC3Oh.d.ts → define-C_He1bQO.d.ts} +1 -1
  234. package/dist/{define-block-Ds3aLZwz.d.ts → define-block-CDw9YGVh.d.ts} +4 -4
  235. package/dist/edge/index.d.ts +8 -8
  236. package/dist/elysia/index.d.ts +1 -1
  237. package/dist/{ended-iq2wp8fc.d.ts → ended-BwpmNC5k.d.ts} +1 -1
  238. package/dist/{entitlements-Dhu-4vlH.d.ts → entitlements-Bi4y8w8e.d.ts} +2 -2
  239. package/dist/eve/index.d.ts +3 -3
  240. package/dist/events/index.d.ts +3 -3
  241. package/dist/{events-DCw3c6pj.d.ts → events-DddDlibJ.d.ts} +8 -0
  242. package/dist/{executor-H8ZLkeHj.d.ts → executor-CxMHiDp_.d.ts} +2 -2
  243. package/dist/{executor-B-o7QMPp.d.ts → executor-uNDJBzT8.d.ts} +1 -1
  244. package/dist/expo/index.d.ts +3 -3
  245. package/dist/{field-errors-DXZk9Qjt.d.ts → field-errors-CJ_i6HFg.d.ts} +7 -7
  246. package/dist/flags-sdk/index.d.ts +1 -1
  247. package/dist/{framework-Byr_j8G-.d.ts → framework-B6JAPr1i.d.ts} +7 -7
  248. package/dist/h3/index.d.ts +1 -1
  249. package/dist/h3/v1/index.d.ts +1 -1
  250. package/dist/hono/index.d.ts +8 -8
  251. package/dist/{index-Dv6lfL5p.d.ts → index-Bc5t2QRU.d.ts} +11 -11
  252. package/dist/{index-6H-8Ib1w.d.ts → index-Bm1ftdBA.d.ts} +3 -3
  253. package/dist/{index-lMApFSAd.d.ts → index-C71uHfVj.d.ts} +3 -3
  254. package/dist/{index-C78VPlXW.d.ts → index-CRwpDGxd.d.ts} +1 -1
  255. package/dist/{index-CnzGRpeH.d.ts → index-Cbwvf4yE.d.ts} +5 -5
  256. package/dist/{index-kkZwp5M1.d.ts → index-ChvuVimY.d.ts} +4 -4
  257. package/dist/{index-Ag-T51Jl.d.ts → index-CvLTqmdq.d.ts} +1 -1
  258. package/dist/{index-Dbd1E5Au.d.ts → index-DAS_5OfK.d.ts} +3 -3
  259. package/dist/{index-CY612vAg.d.ts → index-DjJUamhw.d.ts} +2 -2
  260. package/dist/{index-BUluRi0b.d.ts → index-DrDCN45q.d.ts} +5 -5
  261. package/dist/index.d.ts +2 -2
  262. package/dist/{instances-xQ2lupVE.js → instances-DKULdpWB.js} +73 -6
  263. package/dist/{kit-DCuO1ZhB.d.ts → kit-lHFpu2_1.d.ts} +3 -3
  264. package/dist/list/index.d.ts +1 -1
  265. package/dist/{list-query-D1h3Dmnk.d.ts → list-query-BkbLV-Yc.d.ts} +1 -1
  266. package/dist/mapper/bin.js +5 -5
  267. package/dist/mcp/index.d.ts +3 -3
  268. package/dist/mcp/sdk/index.d.ts +5 -5
  269. package/dist/nestjs/index.d.ts +2 -2
  270. package/dist/next/client/index.d.ts +1 -1
  271. package/dist/next/index.d.ts +22 -22
  272. package/dist/node/index.d.ts +2 -2
  273. package/dist/{operations-SWpzGC_K.d.ts → operations-BDjgCmT9.d.ts} +1 -1
  274. package/dist/{options-DqmTs2nv.js → options-CEwoGUk_.js} +2 -1
  275. package/dist/{options-yRwYr4up.js → options-CGQC7Wue.js} +4 -1
  276. package/dist/orpc/index.d.ts +7 -7
  277. package/dist/otel/index.d.ts +1 -1
  278. package/dist/otel/index.js +4 -4
  279. package/dist/{outbox-BFZS6Kvz.d.ts → outbox-DikdzUKf.d.ts} +2 -2
  280. package/dist/{permissions-2UlVQDzY.d.ts → permissions-BGx22GP3.d.ts} +1 -1
  281. package/dist/{pool-yO-LzZAd.d.ts → pool-BJAjQcrJ.d.ts} +1 -1
  282. package/dist/{ports-prqYrReN.d.ts → ports-D63bA3p4.d.ts} +1 -1
  283. package/dist/postgres/index.d.ts +1 -1
  284. package/dist/powersync/index.d.ts +3 -3
  285. package/dist/preset/index.d.ts +3 -3
  286. package/dist/preset/index.js +3 -3
  287. package/dist/{preset-BvHNleCo.js → preset-oc_liUHz.js} +2 -2
  288. package/dist/{project-CBvowdKY.js → project-Cs0kz5OP.js} +5 -5
  289. package/dist/{provider-bIAzxVMB.d.ts → provider-CVlXXbda.d.ts} +1 -1
  290. package/dist/{push-token-DtqJeg8w.d.ts → push-token-BsyX0KlT.d.ts} +1 -1
  291. package/dist/query/index.d.ts +1 -1
  292. package/dist/react/index.d.ts +8 -8
  293. package/dist/react/native/index.d.ts +1 -1
  294. package/dist/react/server.d.ts +9 -9
  295. package/dist/react/session.d.ts +1 -1
  296. package/dist/react-router/index.d.ts +5 -5
  297. package/dist/realtime/index.d.ts +4 -4
  298. package/dist/{record-form-BQA-lawE.d.ts → record-form-C-gIxGXe.d.ts} +1 -1
  299. package/dist/records/index.d.ts +7 -7
  300. package/dist/{refusal-BX1EvmpJ.d.ts → refusal-CjUUBfhY.d.ts} +2 -2
  301. package/dist/{resolve-BIpQRhvF.d.ts → resolve-XlMQRUeG.d.ts} +1 -1
  302. package/dist/{resolved-names-b6P2--jK.js → resolved-names-sd6RuTju.js} +1 -1
  303. package/dist/{resource-execute-A1NbR-sd.d.ts → resource-execute-B7-QaS6R.d.ts} +1 -1
  304. package/dist/{resource-types-CTcc37WL.d.ts → resource-types-CF3Uc6OW.d.ts} +2 -2
  305. package/dist/{resources-13ZFX1G6.d.ts → resources-DnHSmJIM.d.ts} +1 -1
  306. package/dist/{respond-CAxhkwAi.d.ts → respond-D7kUatjc.d.ts} +1 -1
  307. package/dist/server/index.d.ts +21 -21
  308. package/dist/{server-types-DEjva0MW.d.ts → server-types-DpI82uNq.d.ts} +8 -8
  309. package/dist/{session-CeYL3EPm.d.ts → session-JV1z0kxa.d.ts} +2 -2
  310. package/dist/{session-BA0YDmjt.d.ts → session-s-mUZ8RQ.d.ts} +5 -5
  311. package/dist/{session-status-Df6tuKY9.d.ts → session-status-CJjTuFtA.d.ts} +2 -2
  312. package/dist/{sign-in-4u4vLtXG.d.ts → sign-in-D5Bg7R47.d.ts} +1 -1
  313. package/dist/solid/index.d.ts +9 -9
  314. package/dist/solid-start/index.d.ts +5 -5
  315. package/dist/spec/index.d.ts +1 -1
  316. package/dist/sql/index.d.ts +5 -5
  317. package/dist/sql/index.js +3 -3
  318. package/dist/{sql-BChN3Hxv.js → sql-CWYbu_6y.js} +3853 -714
  319. package/dist/sqlite/index.d.ts +1 -1
  320. package/dist/ssr/index.d.ts +4 -4
  321. package/dist/{statuses-BTrQ5H4S.js → statuses-Qqpzda35.js} +12 -1
  322. package/dist/stock-detail-BMqvwq1q.js +12 -0
  323. package/dist/stock-detail-BRIt7CjU.d.ts +19 -0
  324. package/dist/{subject-readers-YL8H9G8X.d.ts → subject-readers-D1Km_Q42.d.ts} +1 -1
  325. package/dist/{support-BwtMgjVg.d.ts → support-Dj5V2WTs.d.ts} +4 -4
  326. package/dist/{support-view-GykHOIQ2.d.ts → support-view-DKZkZeM5.d.ts} +1 -1
  327. package/dist/svelte/index.d.ts +8 -8
  328. package/dist/sveltekit/index.d.ts +6 -6
  329. package/dist/{tags-CAfvzA1U.d.ts → tags-BihwKkTT.d.ts} +1 -1
  330. package/dist/tanstack-db/index.d.ts +1 -1
  331. package/dist/tanstack-start/index.d.ts +5 -5
  332. package/dist/{tenant-lBgoqg9T.d.ts → tenant-DqnE50Ju.d.ts} +1 -1
  333. package/dist/testing/index.d.ts +17 -17
  334. package/dist/testing/index.js +2 -2
  335. package/dist/{timeline-CrO48Qa6.d.ts → timeline-c6I3uxya.d.ts} +3 -3
  336. package/dist/{topic-x-mrN_Ff.d.ts → topic-Dp7VGPd-.d.ts} +3 -3
  337. package/dist/{types-auvHrNWC.d.ts → types-BXLiM6VM.d.ts} +1 -1
  338. package/dist/{types-CJqNGQKb.d.ts → types-DLXTmZtm.d.ts} +2 -2
  339. package/dist/{types-C9XfFGmA.d.ts → types-DtiDatvu.d.ts} +2 -2
  340. package/dist/{vault-DjbG4XQS.d.ts → vault-CbhvnoVC.d.ts} +1 -1
  341. package/dist/vercel-connect/index.d.ts +1 -1
  342. package/dist/vercel-sandbox/index.d.ts +1 -1
  343. package/dist/{verify-HOiu3lRR.d.ts → verify-Cpc1upDA.d.ts} +1 -1
  344. package/dist/{view-DdDY88SC.d.ts → view-eHgOOyRS.d.ts} +1 -1
  345. package/dist/vue/index.d.ts +9 -9
  346. package/dist/{watch-topic-D6bcqOrJ.d.ts → watch-topic-CtJAkWT4.d.ts} +1 -1
  347. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  348. package/dist/workflow-sdk/index.d.ts +1 -1
  349. package/dist/workflow-sdk/world/index.d.ts +1 -1
  350. package/dist/workflow-sdk/world/index.js +1 -1
  351. package/dist/{workflow-sdk-D3H10W5h.d.ts → workflow-sdk-CUt0E4v6.d.ts} +1 -1
  352. package/dist/{workflow-sdk-CBS8L2Ku.js → workflow-sdk-pB1jCLIL.js} +21 -1
  353. package/dist/yjs/index.d.ts +1 -1
  354. package/package.json +1 -1
  355. package/schemas/config-v1.json +5 -0
  356. package/skills/better-supabase-auth/SKILL.md +1 -1
  357. package/dist/cli/add-De73Ghlh.js +0 -1
  358. package/dist/cli/env-BfWbheiC.js +0 -1
  359. package/dist/cli/powersync-IBM_v_eJ.js +0 -1
  360. package/dist/cli/seed-DGGjReq4.js +0 -1
@@ -3,10 +3,193 @@ import { n as isRecord } from "../../guards-CsRa6v57.js";
3
3
  import { a as ok, t as AsyncResult } from "../../result-8xza7w5W.js";
4
4
  import { t as inventorySqlOptions } from "../../options-D4LuPM8a.js";
5
5
  import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
6
- import { L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
6
+ import { A as recordsOf, I as stringsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
7
7
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
8
8
  import { n as blockFields } from "../../block-fields-Bjcv6_zc.js";
9
9
  import { n as defineBlock } from "../../define-block-22Jv4U_-.js";
10
+ import { d as money } from "../../money-DH--bbYr.js";
11
+ import { t as detailArg } from "../../stock-detail-BMqvwq1q.js";
12
+ // src/blocks/inventory/tracking.ts
13
+ /** How a variant's stock is tracked. */
14
+ const TRACKING_MODES = [
15
+ "none",
16
+ "lot",
17
+ "serial"
18
+ ];
19
+ /** How a variant's stock is valued. */
20
+ const COSTING_METHODS = ["none", "average"];
21
+ const ALLOCATION_STATUSES = [
22
+ "open",
23
+ "fulfilled",
24
+ "released"
25
+ ];
26
+ const nullable = (value) => optionalText(value) ?? null;
27
+ function itemOf(value) {
28
+ const row = recordOf(value, "set_stock_item");
29
+ return {
30
+ variantId: textOf(row["variantId"]),
31
+ unit: textOf(row["unit"]),
32
+ scale: Number(row["scale"]),
33
+ tracking: enumOrThrow(row["tracking"], TRACKING_MODES, "tracking"),
34
+ tracksExpiry: row["tracksExpiry"] === true,
35
+ costing: enumOrThrow(row["costing"], COSTING_METHODS, "costing"),
36
+ currency: nullable(row["currency"]),
37
+ averageCost: nullable(row["averageCost"])
38
+ };
39
+ }
40
+ function bucketOf(value) {
41
+ const row = recordOf(value, "stock_detail");
42
+ return {
43
+ binId: nullable(row["binId"]),
44
+ binCode: nullable(row["binCode"]),
45
+ hold: row["hold"] === true,
46
+ lotId: nullable(row["lotId"]),
47
+ lotCode: nullable(row["lotCode"]),
48
+ expiresOn: nullable(row["expiresOn"]),
49
+ onHand: Number(row["onHand"])
50
+ };
51
+ }
52
+ function expiringOf(value) {
53
+ const row = recordOf(value, "expiring_lots");
54
+ return {
55
+ lotId: textOf(row["lotId"]),
56
+ code: textOf(row["code"]),
57
+ variantId: textOf(row["variantId"]),
58
+ locationId: textOf(row["locationId"]),
59
+ binId: nullable(row["binId"]),
60
+ expiresOn: textOf(row["expiresOn"]),
61
+ onHand: Number(row["onHand"])
62
+ };
63
+ }
64
+ /** One allocation row. */
65
+ function allocationOf(value) {
66
+ const row = recordOf(value, "allocation");
67
+ const movementId = optionalText(row["movementId"]);
68
+ return {
69
+ id: textOf(row["id"]),
70
+ variantId: textOf(row["variantId"]),
71
+ locationId: textOf(row["locationId"]),
72
+ documentType: textOf(row["documentType"]),
73
+ documentId: textOf(row["documentId"]),
74
+ lineId: textOf(row["lineId"]),
75
+ quantity: Number(row["quantity"]),
76
+ allocated: Number(row["allocated"]),
77
+ fulfilled: Number(row["fulfilled"]),
78
+ backordered: Number(row["backordered"]),
79
+ status: enumOrThrow(row["status"], ALLOCATION_STATUSES, "allocation status"),
80
+ createdAt: requiredInstant(row["createdAt"], "createdAt"),
81
+ ...movementId === void 0 ? {} : { movementId }
82
+ };
83
+ }
84
+ function valuationOf(value) {
85
+ const row = recordOf(value, "stock_valuation");
86
+ const currency = nullable(row["currency"]);
87
+ return {
88
+ variantId: textOf(row["variantId"]),
89
+ costing: enumOrThrow(row["costing"], COSTING_METHODS, "costing"),
90
+ averageCost: nullable(row["averageCost"]),
91
+ onHand: Number(row["onHand"]),
92
+ value: currency === null ? null : money(BigInt(textOf(row["value"])), currency)
93
+ };
94
+ }
95
+ /** The tracking methods of the inventory client. */
96
+ function inventoryTracking(call) {
97
+ return {
98
+ setStockItem: (variantId, input) => call("set_stock_item", {
99
+ variant: variantId,
100
+ unit: input.unit ?? null,
101
+ scale: input.scale ?? null,
102
+ tracking: input.tracking ?? null,
103
+ tracks_expiry: input.tracksExpiry ?? null,
104
+ costing: input.costing ?? null,
105
+ currency: input.currency ?? null
106
+ }, itemOf),
107
+ saveBin: (locationId, input) => call("save_bin", {
108
+ location: locationId,
109
+ bin: input.id ?? null,
110
+ code: input.code,
111
+ name: input.name ?? null,
112
+ hold: input.hold ?? null,
113
+ active: input.active ?? null
114
+ }, (value) => {
115
+ const row = recordOf(value, "save_bin");
116
+ return {
117
+ id: textOf(row["id"]),
118
+ code: textOf(row["code"]),
119
+ hold: row["hold"] === true,
120
+ active: row["active"] === true
121
+ };
122
+ }),
123
+ saveLot: (variantId, code, expiresOn) => call("save_lot", {
124
+ variant: variantId,
125
+ code,
126
+ expires_on: expiresOn ?? null
127
+ }, (value) => {
128
+ const row = recordOf(value, "save_lot");
129
+ return {
130
+ id: textOf(row["id"]),
131
+ code: textOf(row["code"]),
132
+ expiresOn: nullable(row["expiresOn"])
133
+ };
134
+ }),
135
+ stockDetail: (variantId, locationId) => call("stock_detail", {
136
+ variant: variantId,
137
+ location: locationId
138
+ }, (value) => {
139
+ const row = recordOf(value, "stock_detail");
140
+ return {
141
+ variantId: textOf(row["variantId"]),
142
+ locationId: textOf(row["locationId"]),
143
+ onHand: Number(row["onHand"]),
144
+ reserved: Number(row["reserved"]),
145
+ held: Number(row["held"]),
146
+ available: Number(row["available"]),
147
+ unbinned: Number(row["unbinned"]),
148
+ buckets: recordsOf(row["buckets"], "stock_detail").map(bucketOf),
149
+ serials: stringsOf(row["serials"])
150
+ };
151
+ }),
152
+ expiringLots: (organizationId, before) => call("expiring_lots", {
153
+ tenant: organizationId,
154
+ before
155
+ }, (value) => recordsOf(value, "expiring_lots").map(expiringOf)),
156
+ expireLots: (organizationId, asOf) => call("expire_lots", {
157
+ tenant: organizationId,
158
+ as_of: asOf ?? null
159
+ }, Number),
160
+ stockValuation: (variantId) => call("stock_valuation", { variant: variantId }, valuationOf),
161
+ allocate: (organizationId, input) => call("allocate_stock", {
162
+ tenant: organizationId,
163
+ variant: input.variantId,
164
+ location: input.locationId,
165
+ quantity: input.quantity,
166
+ document_type: input.documentType,
167
+ document_id: input.documentId,
168
+ line_id: input.lineId,
169
+ backorder: input.backorder ?? true
170
+ }, allocationOf),
171
+ fulfillAllocation: (allocationId, quantity, detail) => call("fulfill_allocation", {
172
+ allocation: allocationId,
173
+ quantity,
174
+ detail: detailArg(detail)
175
+ }, allocationOf),
176
+ restoreAllocation: (allocationId, quantity, detail) => call("restore_allocation", {
177
+ allocation: allocationId,
178
+ quantity,
179
+ detail: detailArg(detail)
180
+ }, allocationOf),
181
+ releaseAllocations: (organizationId, documentType, documentId) => call("release_allocations", {
182
+ tenant: organizationId,
183
+ document_type: documentType,
184
+ document_id: documentId
185
+ }, Number),
186
+ listAllocations: (organizationId, documentType, documentId) => call("list_allocations", {
187
+ tenant: organizationId,
188
+ document_type: documentType,
189
+ document_id: documentId
190
+ }, (value) => recordsOf(value, "list_allocations").map(allocationOf))
191
+ };
192
+ }
10
193
  // src/blocks/inventory/inventory.ts
11
194
  const LOCATION_KINDS = [
12
195
  "warehouse",
@@ -22,7 +205,8 @@ const ADJUST_REASONS = [
22
205
  "damage",
23
206
  "loss",
24
207
  "return",
25
- "receipt"
208
+ "receipt",
209
+ "scrap"
26
210
  ];
27
211
  const PURCHASE_ORDER_STATUSES = [
28
212
  "draft",
@@ -70,7 +254,7 @@ function createInventory(options) {
70
254
  const call = blockCall(options.transport, options.schema, options.mappers);
71
255
  const service = blockCall(options.service ?? options.transport, options.schema, options.mappers);
72
256
  const expireReservations = (maxRows) => service("expire_reservations", { max_rows: maxRows ?? null }, Number);
73
- return withBlockHooks({
257
+ const inventory = {
74
258
  saveLocation: (organizationId, input) => AsyncResult.from(() => input.fields === void 0 ? Promise.resolve(ok(void 0)) : fields.write({ ...input.fields })).andThen((valid) => call("save_location", {
75
259
  tenant: organizationId,
76
260
  location: input.id ?? null,
@@ -98,18 +282,21 @@ function createInventory(options) {
98
282
  active
99
283
  }, isTrue),
100
284
  deleteLocation: (locationId) => call("delete_location", { location: locationId }, isTrue),
101
- adjustStock: (variantId, locationId, quantity, reason, note) => call("adjust_stock", {
285
+ ...inventoryTracking(call),
286
+ adjustStock: (variantId, locationId, quantity, reason, note, detail) => call("adjust_stock", {
102
287
  variant: variantId,
103
288
  location: locationId,
104
289
  quantity,
105
290
  reason,
106
- note: note ?? null
291
+ note: note ?? null,
292
+ detail: detailArg(detail)
107
293
  }, stockChangeOf),
108
- countStock: (variantId, locationId, counted, note) => call("count_stock", {
294
+ countStock: (variantId, locationId, counted, note, detail) => call("count_stock", {
109
295
  variant: variantId,
110
296
  location: locationId,
111
297
  counted,
112
- note: note ?? null
298
+ note: note ?? null,
299
+ detail: detailArg(detail)
113
300
  }, (value) => {
114
301
  const row = recordOf(value, "count_stock");
115
302
  return {
@@ -147,7 +334,8 @@ function createInventory(options) {
147
334
  to_location: input.toLocationId,
148
335
  lines: input.lines.map((line) => ({
149
336
  variantId: line.variantId,
150
- quantity: line.quantity
337
+ quantity: line.quantity,
338
+ detail: detailArg(line.detail)
151
339
  })),
152
340
  note: input.note ?? null
153
341
  }, idOf("create_transfer")),
@@ -172,9 +360,10 @@ function createInventory(options) {
172
360
  placePurchaseOrder: (purchaseOrderId) => call("place_purchase_order", { purchase_order: purchaseOrderId }, isTrue),
173
361
  receivePurchaseOrder: (purchaseOrderId, lines) => call("receive_purchase_order", {
174
362
  purchase_order: purchaseOrderId,
175
- lines: lines.map((line) => ({
176
- lineId: line.lineId,
177
- quantity: line.quantity
363
+ lines: lines.map(({ lineId, quantity, ...detail }) => ({
364
+ lineId,
365
+ quantity,
366
+ ...detailArg(detail)
178
367
  }))
179
368
  }, (value) => {
180
369
  const row = recordOf(value, "receive_purchase_order");
@@ -187,7 +376,8 @@ function createInventory(options) {
187
376
  job: async (payload) => {
188
377
  await expireReservations(maxRowsOf(payload)).orThrow();
189
378
  }
190
- }, options.hooks, {
379
+ };
380
+ return withBlockHooks(inventory, options.hooks, {
191
381
  block: "inventory",
192
382
  ...options.logger ? { logger: options.logger } : {}
193
383
  });
@@ -200,6 +390,9 @@ const inventoryEvents = defineEvents({
200
390
  "reservation.created": event(),
201
391
  "reservation.committed": event(),
202
392
  "reservation.released": event(),
393
+ "allocation.created": event(),
394
+ "allocation.filled": event(),
395
+ "allocation.released": event(),
203
396
  "transfer.shipped": event(),
204
397
  "transfer.received": event(),
205
398
  "transfer.cancelled": event(),
@@ -218,4 +411,4 @@ const inventoryBlock = defineBlock({
218
411
  category: "commerce",
219
412
  recipes: ["inventory-table"]
220
413
  });
221
- export { ADJUST_REASONS, LOCATION_KINDS, PURCHASE_ORDER_STATUSES, createInventory, dbTransport, extendBlock, inventoryBlock, inventoryEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
414
+ export { ADJUST_REASONS, ALLOCATION_STATUSES, COSTING_METHODS, LOCATION_KINDS, PURCHASE_ORDER_STATUSES, TRACKING_MODES, createInventory, dbTransport, extendBlock, inventoryBlock, inventoryEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -3,13 +3,13 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
6
- import { Ct as Events } from "../../events-DCw3c6pj.js";
7
- import { w as InvoiceEventData } from "../../index-CY612vAg.js";
6
+ import { Ct as Events } from "../../events-DddDlibJ.js";
7
+ import { w as InvoiceEventData } from "../../index-DjJUamhw.js";
8
8
  import { n as Logger } from "../../logger-0LfhvwE4.js";
9
9
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
10
10
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
11
11
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
12
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
12
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
13
13
  import { n as Money } from "../../money-BgpAd7d3.js";
14
14
  import { i as Totals, n as Line, r as LineInput } from "../../sales-lines-wQHuL-pa.js";
15
15
  type InvoiceStatus = "draft" | "issued" | "partially_paid" | "paid" | "void" | "uncollectible";
@@ -1,6 +1,6 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
2
2
  import { _ as KnowledgeCollectionGrant, a as KnowledgeDocument, b as KnowledgeVisibility, c as KnowledgeOptions, d as KnowledgeSearchOptions, f as KnowledgeStatus, g as KnowledgeCollection, h as createKnowledge, i as KnowledgeChunk, l as KnowledgeQuery, m as chunk, n as Embedder, o as KnowledgeHit, p as NewKnowledgeDocument, r as Knowledge, s as KnowledgeHooks, t as ChunkOptions, u as KnowledgeScope, v as KnowledgeCollections, x as NewKnowledgeCollection, y as KnowledgeGrantee } from "../../knowledge-DWXAxvkN.js";
3
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
3
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
4
4
  /** The `knowledge` block's manifest (ADR 0029). */
5
5
  export declare const knowledgeBlock: BlockOf<"knowledge", typeof createKnowledge, Record<never, never>, {
6
6
  readonly files: "optional";
@@ -5,7 +5,7 @@ import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
5
5
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
6
6
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
7
7
  import { n as leadScoringSqlOptions, t as LeadScoringSqlOptions } from "../../options-DCZPW5gR.js";
8
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
8
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
9
  import { r as RuleFieldCatalog } from "../../fields-CP46SPNE.js";
10
10
  import { t as ComputedScore } from "../../scores-Ce8MxQX9.js";
11
11
  interface LeadScoring {
@@ -3,12 +3,12 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
6
- import { Ct as Events } from "../../events-DCw3c6pj.js";
6
+ import { Ct as Events } from "../../events-DddDlibJ.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
8
  import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
9
9
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
10
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
11
- import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
11
+ import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
12
12
  import { n as Money } from "../../money-BgpAd7d3.js";
13
13
  type LeaseStatus = "draft" | "active" | "ended" | "terminated";
14
14
  type RentFrequency = "weekly" | "monthly" | "quarterly" | "yearly";
@@ -2,12 +2,12 @@
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
- import { Ct as Events } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
10
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
10
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
11
  interface LeaveOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
4
- import { Ct as Events } from "../../events-DCw3c6pj.js";
4
+ import { Ct as Events } from "../../events-DddDlibJ.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
6
  import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
8
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
9
- import { c as BlockOf, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
9
+ import { c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
10
10
  import { n as Money } from "../../money-BgpAd7d3.js";
11
11
  interface LedgerOptions extends BlockTemporalOptions, BlockTenantOptions {
12
12
  readonly transport: BlockTransport;
@@ -1,9 +1,9 @@
1
- import { Ct as Events } from "../../events-DCw3c6pj.js";
2
- import { D as MailMessageEventData, E as MailAccountEventData, O as MailTrackingEventData } from "../../index-CY612vAg.js";
1
+ import { Ct as Events } from "../../events-DddDlibJ.js";
2
+ import { D as MailMessageEventData, E as MailAccountEventData, O as MailTrackingEventData } from "../../index-DjJUamhw.js";
3
3
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
4
4
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
5
5
  import { n as mailSyncSqlOptions, t as MailSyncSqlOptions } from "../../options-C5fKQ3EJ.js";
6
- import { $ as MailDraft, B as MailMessage, G as MailSyncReport, H as MailSubject, J as MailThreadDetail, K as MailTemplateStats, Q as MailAddress, Sn as EntitySchema, U as MailSync, V as MailSendDraft, W as MailSyncOptions, X as messageArg, Y as createMailSync, Z as HttpMailOptions, at as MailSendInput, c as BlockOf, ct as gmailMail, dt as newMessageId, et as MailListInput, ft as outlookMail, it as MailReplyTarget, lt as gmailMessage, mt as parseAddresses, nt as MailProvider, ot as MailSent, pt as outlookMessage, q as MailThread, rt as MailProviderMessage, st as buildMime, tt as MailPage, ut as mailProviderOf, z as MailAccount } from "../../define-block-Ds3aLZwz.js";
6
+ import { $ as MailDraft, B as MailMessage, G as MailSyncReport, H as MailSubject, J as MailThreadDetail, K as MailTemplateStats, Q as MailAddress, Sn as EntitySchema, U as MailSync, V as MailSendDraft, W as MailSyncOptions, X as messageArg, Y as createMailSync, Z as HttpMailOptions, at as MailSendInput, c as BlockOf, ct as gmailMail, dt as newMessageId, et as MailListInput, ft as outlookMail, it as MailReplyTarget, lt as gmailMessage, mt as parseAddresses, nt as MailProvider, ot as MailSent, pt as outlookMessage, q as MailThread, rt as MailProviderMessage, st as buildMime, tt as MailPage, ut as mailProviderOf, z as MailAccount } from "../../define-block-CDw9YGVh.js";
7
7
  /** The events of the `mail-sync` block: type to data. */
8
8
  type MailSyncEvents = {
9
9
  readonly "mail_account.connected": MailAccountEventData;
@@ -1,6 +1,6 @@
1
1
  import { Ft as RepositoryExtension, It as RequestContext, Nt as Plugin, Ot as HasFlag, st as SchemaMeta } from "../../types-BzIYSSWK.js";
2
2
  import { i as SameTenantOption, n as RoleThroughOption, r as SameTenantEntry, t as MembershipsSqlOptions } from "../../options-I1ZHfDP0.js";
3
- import { r as Block } from "../../define-block-Ds3aLZwz.js";
3
+ import { r as Block } from "../../define-block-CDw9YGVh.js";
4
4
  /**
5
5
  * Dotted paths to the string claims of `C` (up to three levels), e.g.
6
6
  * `'tenant_id' | 'app_metadata.tenant_id'`. Any string without a claims type.
@@ -1,7 +1,7 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
2
2
  import { n as Embedder } from "../../knowledge-DWXAxvkN.js";
3
3
  import { a as MemoryHooks, c as MemoryOptions, d as MemoryScope, f as MemoryView, i as MemoryHit, l as MemoryRecord, n as MemoryCommand, o as MemoryKind, p as RecalledMessage, r as MemoryDocument, s as MemoryNamespace, t as Memory, u as MemorySaveOptions } from "../../types-C7K8mu9B.js";
4
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
4
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
5
5
  /** Core memory files, archival facts and recall over earlier chats. */
6
6
  export declare function createMemory(options: MemoryOptions): Memory;
7
7
  /** The `memory` block's manifest (ADR 0029). */
@@ -1,17 +1,17 @@
1
1
  import { b as DbError, f as Result } from "../../result-DTOQRyGY.js";
2
2
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
3
- import { Ct as Events } from "../../events-DCw3c6pj.js";
4
- import { _ as ConversationEventData, k as MessageEventData } from "../../index-CY612vAg.js";
3
+ import { Ct as Events } from "../../events-DddDlibJ.js";
4
+ import { _ as ConversationEventData, k as MessageEventData } from "../../index-DjJUamhw.js";
5
5
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
6
6
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
7
- import { P as MessagingSqlOptions } from "../../authorization-2Rv1AJQJ.js";
7
+ import { P as MessagingSqlOptions } from "../../authorization-C7yjZttV.js";
8
8
  import { a as isFileAnchor, i as fileAnchor, n as FileAnchor, o as conversationTopic, r as FileAnchorAt, t as AnchorRegion } from "../../anchors-sCLvYj-8.js";
9
9
  import { _ as NotifyLevel, a as FollowTarget, b as UnreadCount, c as MessageEdit, d as MessageKind, f as MessageListOptions, g as NewMessage, h as MessagingOptions, i as ConversationSummary, l as MessageEdition, m as Messaging, n as ConversationAccess, o as Message, p as MessageReaction, r as ConversationKind, s as MessageCursor, t as Conversation, u as MessageFile, v as OpenConversation, x as createMessaging, y as RecordMention } from "../../messaging-Bfe4p9Pm.js";
10
10
  import { a as ThreadSummary, i as ThreadSummarizer, n as SummaryMessage, o as ThreadSummaryInput, r as SummaryTarget, s as ThreadSummaryOutput, t as SummarizeOptions } from "../../summaries-CUemsYwV.js";
11
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
12
- import { p as SubscriptionStatus } from "../../topic-x-mrN_Ff.js";
13
- import { n as TopicPort } from "../../watch-topic-D6bcqOrJ.js";
14
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
11
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
12
+ import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
13
+ import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
14
+ import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
15
15
  type MentionScope = "channel" | "here";
16
16
  interface ParsedMentions {
17
17
  /** Mentioned user ids, lowercase, in order and without repeats. */
@@ -5,8 +5,8 @@ import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
6
6
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
7
7
  import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
8
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
9
- import { i as EventSink, t as CloudEvent } from "../../cloud-event-BEmAUdl1.js";
8
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
+ import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
10
10
  import { a as MetricWhereValue, c as metricsOf, i as MetricMeasure, n as MetricDefinition, o as checkMetric, r as MetricGrain, s as defineMetric, t as METRIC_GRAINS } from "../../metric-definition-2KQYeUZ1.js";
11
11
  interface MetricsSinkOptions {
12
12
  /**
@@ -1,7 +1,7 @@
1
1
  import { b as DbError, f as Result } from "../../result-DTOQRyGY.js";
2
2
  import { t as Aal } from "../../mfa-CM5r904M.js";
3
- import { r as Block } from "../../define-block-Ds3aLZwz.js";
4
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
3
+ import { r as Block } from "../../define-block-CDw9YGVh.js";
4
+ import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
5
5
  import { t as AuthReply } from "../../auth-reply-BMPJQssh.js";
6
6
  /** A factor as `auth.mfa.listFactors()` returns it. */
7
7
  interface RawMfaFactor {
@@ -1,13 +1,13 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
4
- import { Ct as Events } from "../../events-DCw3c6pj.js";
4
+ import { Ct as Events } from "../../events-DddDlibJ.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
6
  import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
8
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
9
9
  import { t as ModerationSqlOptions } from "../../options-B6m9gYRH.js";
10
- import { c as BlockOf, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
10
+ import { c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
11
11
  interface ModerationOptions extends BlockTemporalOptions, BlockTenantOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**
@@ -2,17 +2,17 @@
2
2
  import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
4
4
  import { It as RequestContext } from "../../types-BzIYSSWK.js";
5
- import { Ct as Events, J as NotificationEventData, o as EventHub, q as NotificationDeliveryEventData, st as SubjectEventData } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events, J as NotificationEventData, o as EventHub, q as NotificationDeliveryEventData, st as SubjectEventData } from "../../events-DddDlibJ.js";
6
6
  import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
8
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
9
9
  import { t as BlockProblemOptions } from "../../problem-NGBjN-TO.js";
10
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
11
- import { i as EventSink, t as CloudEvent } from "../../cloud-event-BEmAUdl1.js";
12
- import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-C0GfMvFm.js";
13
- import { p as SubscriptionStatus } from "../../topic-x-mrN_Ff.js";
14
- import { n as TopicPort } from "../../watch-topic-D6bcqOrJ.js";
15
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
10
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
+ import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
12
+ import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CR8TVvqo.js";
13
+ import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
14
+ import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
15
+ import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
16
16
  import { n as VerifyOptions } from "../../signatures-jPr9JXyw.js";
17
17
  import { a as NotificationItem, i as NotificationAction, n as NotificationMessage, o as NotificationSubject, r as NotificationSendResult, s as RenderedText, t as NotificationChannel } from "../../channel-B_kufDZy.js";
18
18
  import { a as DeliveryTransport, c as UnsubscribeTarget, i as DeliverySendOptions, l as mailHeaders, n as DeliveryMessages, o as EmailMessage, r as DeliveryReceipt, s as MailCategory, t as DeliveryChannel } from "../../delivery-CWcbh87x.js";
@@ -1,9 +1,9 @@
1
1
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
2
- import { $ as SaasEventData, Ct as Events } from "../../events-DCw3c6pj.js";
2
+ import { $ as SaasEventData, Ct as Events } from "../../events-DddDlibJ.js";
3
3
  import { n as Logger } from "../../logger-0LfhvwE4.js";
4
4
  import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
5
5
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
6
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
6
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
7
7
  interface NumberingOptions {
8
8
  readonly transport: BlockTransport;
9
9
  readonly schema?: string;
@@ -1,11 +1,11 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { t as AsyncResult } from "../../result-DTOQRyGY.js";
3
- import { Ct as Events } from "../../events-DCw3c6pj.js";
3
+ import { Ct as Events } from "../../events-DddDlibJ.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
5
  import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
6
6
  import { s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
7
7
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
8
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
8
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
9
  declare const AUTH_METHODS: readonly ["none", "client_secret_basic", "client_secret_post"];
10
10
  declare const GRANT_TYPES: readonly ["authorization_code", "refresh_token", "client_credentials", "urn:ietf:params:oauth:grant-type:device_code"];
11
11
  /** How a client authenticates at the token endpoint (RFC 7591 section 2). */
@@ -4,8 +4,8 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
4
4
  import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
6
6
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
7
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
7
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
9
9
  type ChecklistScope = "user" | "organization";
10
10
  /** One step. `events` completes it when the outbox records one of those types. */
11
11
  interface ChecklistStep<Id extends string = string> {