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
@@ -8,7 +8,7 @@ import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
8
8
  import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
9
9
  import { _ as JobHandler } from "./types-BdhE7I8Z.js";
10
10
  import { r as RunState } from "./run-state-D0Tbl-nM.js";
11
- import { I as Notifier } from "./define-block-Ds3aLZwz.js";
11
+ import { I as Notifier } from "./define-block-CDw9YGVh.js";
12
12
  /** A task run's state, in the words ai-chat and workflow runs share. */
13
13
  type AiTaskRunStatus = Extract<RunState, "queued" | "running" | "completed" | "failed">;
14
14
  interface AiTaskRun {
@@ -2,8 +2,8 @@ import { a as SessionActor, c as agentClaims, r as AgentActOptions } from "../..
2
2
  import { d as KnowledgeSearchOptions, o as KnowledgeHit, r as Knowledge } from "../../knowledge-DWXAxvkN.js";
3
3
  import { t as Agent } from "../../agents-BwUHtvD6.js";
4
4
  import { R as AiToolPolicy, t as AiChat, w as AiModerationStage, x as AiModerationAction } from "../../ai-chat-BZhfCHHr.js";
5
- import { r as AuthorizationOperation } from "../../authorization-2Rv1AJQJ.js";
6
- import { t as OperationTable } from "../../operations-SWpzGC_K.js";
5
+ import { r as AuthorizationOperation } from "../../authorization-C7yjZttV.js";
6
+ import { t as OperationTable } from "../../operations-BDjgCmT9.js";
7
7
  import { i as SearchToolOptions, r as ResultsFilter } from "../../embeddings-CI6P_mtD.js";
8
8
  import { n as GatewayOptions } from "../../gateway-options-Mut8jih_.js";
9
9
  import { LanguageModel, LanguageModelMiddleware, StopCondition, ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
@@ -1,7 +1,7 @@
1
1
  import { t as AsyncResult } from "../../result-DTOQRyGY.js";
2
2
  import { i as CursorPageOptions } from "../../block-helpers-BNtM1tqy.js";
3
3
  import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
4
- import { c as AiKeys, i as AiBatchItemInput, r as AiBatchItem, t as AiBatch } from "../../types-auvHrNWC.js";
4
+ import { c as AiKeys, i as AiBatchItemInput, r as AiBatchItem, t as AiBatch } from "../../types-BXLiM6VM.js";
5
5
  import { Experimental_BatchItemResult, Experimental_BatchProvider, Experimental_BatchReference, Experimental_BatchStatus, Experimental_ListBatchesOptions, Experimental_ListBatchesResult, Experimental_StartBatchOptions, Experimental_StartBatchResult } from "ai";
6
6
  /** The AI SDK batch calls, replaceable in tests. */
7
7
  interface BatchApi {
@@ -4,7 +4,7 @@ import { i as AiMessage } from "../message-Cc4bkdNw.js";
4
4
  import { _ as JobHandler } from "../types-BdhE7I8Z.js";
5
5
  import { i as AiSandboxes } from "../sandboxes-BF9RxxCU.js";
6
6
  import { n as GatewayOptions, r as gatewayOptions, t as GatewayContext } from "../gateway-options-Mut8jih_.js";
7
- import { c as AiKeys, p as ResolvedProviderKey } from "../types-auvHrNWC.js";
7
+ import { c as AiKeys, p as ResolvedProviderKey } from "../types-BXLiM6VM.js";
8
8
  import { a as Usage } from "../usage-DZ8j5Tm_.js";
9
9
  import { a as GatewayClient, c as UsageSource, d as modelInputOf, f as problem429, h as usageQuota, i as CostBackfillPayload, l as costBackfill, m as usageOf, n as AiUsageMeters, o as GatewayModelEntry, p as usageEntries, r as CostBackfillOptions, s as ModelCatalogRefreshOptions, t as AiUsage, u as modelCatalogRefresh } from "../gateway-B9k89AC4.js";
10
10
  import { i as fromModelMessages, n as ModelApproval, r as ModelSource, t as FromModelMessagesOptions } from "../model-messages-CGSUU450.js";
@@ -1,7 +1,7 @@
1
1
  import { b as DbError, t as AsyncResult } from "../../result-DTOQRyGY.js";
2
- import { i as CredentialRef, r as CredentialProvider } from "../../provider-bIAzxVMB.js";
3
- import { r as ConnectorServer, s as Connectors } from "../../connectors-CrLRW4Ol.js";
4
- import { n as VaultCredentials } from "../../vault-DjbG4XQS.js";
2
+ import { i as CredentialRef, r as CredentialProvider } from "../../provider-CVlXXbda.js";
3
+ import { r as ConnectorServer, s as Connectors } from "../../connectors-DDsdz-cn.js";
4
+ import { n as VaultCredentials } from "../../vault-CbhvnoVC.js";
5
5
  import { i as SupabaseMcpScope, n as SupabaseMcpModule, t as SupabaseMcpFeature } from "../../supabase-mcp-DY32eoax.js";
6
6
  import { ToolSet } from "ai";
7
7
  import { ElicitResult, ElicitationRequest, MCPClient, OAuthClientMetadata, OAuthClientProvider } from "@ai-sdk/mcp";
@@ -1,7 +1,7 @@
1
1
  import { Ct as AnyPlugin, d as MutationIntent, en as Authorizer, st as SchemaMeta } from "./types-BzIYSSWK.js";
2
- import { bt as EventMap } from "./events-DCw3c6pj.js";
3
- import { p as DbBlockSource } from "./define-BvkaC3Oh.js";
4
- import { n as CloudEventOptions } from "./cloud-event-BEmAUdl1.js";
2
+ import { bt as EventMap } from "./events-DddDlibJ.js";
3
+ import { p as DbBlockSource } from "./define-C_He1bQO.js";
4
+ import { n as CloudEventOptions } from "./cloud-event-BjgxkfJJ.js";
5
5
  import { t as RealtimeStatus } from "./realtime-status-D3oUx3o4.js";
6
6
  import { C as ModelWebhook, E as OperationSource, O as SecurityRequirement, S as ModelTag, a as JsonSchema, b as ModelServer, d as ModelInfo, f as ModelMessage, i as JsonObject, m as ModelOperation, n as DataApiOperation, p as ModelMessageTrait, r as HttpMethod, s as ModelChannel, t as ApiModel, v as ModelSecurityProfileRequirement, w as ModelWorkflow, y as ModelSecurityScheme } from "./model-Lxa_mOzB.js";
7
7
  import { a as ResourcePlan, o as StandardLike, r as ResourceDescription, t as ErrorResponse } from "./resource-CaYpB07K.js";
@@ -3,7 +3,7 @@ import { 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 { n as Logger } from "./logger-0LfhvwE4.js";
6
- import { n as AuthResolver } from "./resolve-BIpQRhvF.js";
6
+ import { n as AuthResolver } from "./resolve-XlMQRUeG.js";
7
7
  import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
8
8
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
9
9
  import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
@@ -1,4 +1,4 @@
1
- import { Tr as AppTableConfig } from "./context-yfOlyAqb.js";
1
+ import { Tr as AppTableConfig } from "./context-D6OZQdcT.js";
2
2
  /**
3
3
  * The columns every app table gets, which `columns` may not name: `id`,
4
4
  * `created_at`, `updated_at`, `user_id` and the tenant column
@@ -8,7 +8,7 @@ import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-help
8
8
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
9
9
  import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
10
10
  import { h as FilterQuery } from "./filter-query-Xj40B5KT.js";
11
- import { i as AuthorizationHooks, n as Approver } from "./authorization-hooks-C0GfMvFm.js";
11
+ import { i as AuthorizationHooks, n as Approver } from "./authorization-hooks-CR8TVvqo.js";
12
12
  interface ApprovalsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
13
13
  readonly transport: BlockTransport;
14
14
  /**
@@ -1,10 +1,10 @@
1
1
  import { O as AnyFunctions, Ut as AnyAuthorizer, k as AnyModels, rn as PermissionRef } from "../types-BzIYSSWK.js";
2
- import { t as BetterSupabase } from "../define-BvkaC3Oh.js";
2
+ import { t as BetterSupabase } from "../define-C_He1bQO.js";
3
3
  import { P as StorageImageOptions } from "../index-1uV69AZq.js";
4
- import { r as BetterServer } from "../server-types-DEjva0MW.js";
5
- import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-DCuO1ZhB.js";
6
- import { t as RefusalRedirects } from "../refusal-BX1EvmpJ.js";
7
- import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-Byr_j8G-.js";
4
+ import { r as BetterServer } from "../server-types-DpI82uNq.js";
5
+ import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-lHFpu2_1.js";
6
+ import { t as RefusalRedirects } from "../refusal-CjUUBfhY.js";
7
+ import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-B6JAPr1i.js";
8
8
  import { StandardSchemaV1 } from "@standard-schema/spec";
9
9
  /**
10
10
  * The part of Astro's `APIContext` (middleware, pages, endpoints, actions) the
@@ -344,7 +344,7 @@ interface BlockNameRegistry {
344
344
  readonly "variantTranslations": "tenant" | "variant" | "locale" | "title" | "updatedAt";
345
345
  readonly "media": "id" | "tenant" | "product" | "variant" | "attachment" | "position" | "alt" | "createdAt";
346
346
  };
347
- readonly functions: "add_to_collection" | "channel_price" | "channel_products" | "currency_minor_units" | "delete_catalog_channel" | "delete_category" | "delete_collection" | "delete_price" | "delete_price_list" | "delete_product" | "delete_product_option" | "delete_variant" | "move_category" | "product_text" | "publish_storefront" | "rank_variant" | "remove_from_collection" | "reorder_product_options" | "save_catalog_channel" | "save_category" | "save_collection" | "save_price_list" | "save_product" | "save_product_option" | "save_variant" | "set_channel_listing" | "set_price" | "set_product_categories" | "set_product_status" | "set_product_translation" | "set_variant_translation" | "storefront_products" | "storefront_tenants" | "variant_price";
347
+ readonly functions: "add_to_collection" | "channel_price" | "channel_products" | "currency_minor_units" | "delete_catalog_channel" | "delete_category" | "delete_collection" | "delete_price" | "delete_price_list" | "delete_product" | "delete_product_option" | "delete_variant" | "move_category" | "product_text" | "publish_storefront" | "rank_variant" | "remove_from_collection" | "reorder_product_options" | "save_catalog_channel" | "save_category" | "save_collection" | "save_price_list" | "save_product" | "save_product_option" | "save_variant" | "set_channel_listing" | "set_price" | "set_product_categories" | "set_product_options" | "set_product_status" | "set_product_translation" | "set_variant_translation" | "storefront_products" | "storefront_tenants" | "variant_price";
348
348
  readonly actions: "manage" | "read" | "create" | "update" | "delete";
349
349
  readonly hooks: "before_product_save" | "after_product_save" | "before_variant_save" | "after_variant_save" | "before_price_set" | "after_price_set";
350
350
  readonly entities: {
@@ -703,7 +703,7 @@ interface BlockNameRegistry {
703
703
  readonly "expenses": "id" | "tenant" | "user" | "employee" | "category" | "spentOn" | "description" | "merchant" | "amount" | "currency" | "status" | "submittedAt" | "approvedAt" | "rejectedAt" | "decidedBy" | "decidedAt" | "decisionNote" | "reimbursedAt" | "reimbursedBy" | "reimbursement" | "createdBy" | "createdAt" | "updatedAt";
704
704
  };
705
705
  readonly functions: "add_expense_line" | "approve_expense_report" | "archive_expense_category" | "cancel_expense_report" | "check_expense_report" | "create_expense_report" | "expense_report_violations" | "get_expense_report" | "list_expense_categories" | "list_expense_reports" | "reimburse_expense_report" | "remove_expense_line" | "save_expense_category" | "submit_expense_report" | "update_expense_line";
706
- readonly actions: "read" | "submit" | "approve" | "manage";
706
+ readonly actions: "read" | "submit" | "approve" | "manage" | "create" | "update" | "delete" | "reimburse" | "categories";
707
707
  readonly hooks: never;
708
708
  readonly entities: {
709
709
  readonly "expense_report": "id" | "tenant_id" | "user_id" | "title" | "currency" | "note" | "approval_id" | "submitted_at" | "approved_at" | "approval_transaction_id" | "reimbursed_at" | "reimbursement_transaction_id" | "cancelled_at" | "created_at" | "updated_at" | "rejected_at" | "decided_by" | "decision_note";
@@ -918,14 +918,20 @@ interface BlockNameRegistry {
918
918
  readonly "inventory": {
919
919
  readonly tables: {
920
920
  readonly "locations": "id" | "tenant" | "code" | "name" | "kind" | "active" | "createdAt" | "updatedAt";
921
- readonly "levels": "tenant" | "variant" | "location" | "onHand" | "reserved" | "incoming" | "available" | "reorderPoint" | "updatedAt";
921
+ readonly "levels": "tenant" | "variant" | "location" | "onHand" | "reserved" | "held" | "incoming" | "available" | "reorderPoint" | "updatedAt";
922
922
  readonly "reservations": "id" | "tenant" | "variant" | "location" | "quantity" | "status" | "referenceType" | "referenceId" | "expiresAt" | "createdAt" | "updatedAt";
923
923
  readonly "transfers": "id" | "tenant" | "from" | "to" | "status" | "note" | "createdAt" | "shippedAt" | "receivedAt";
924
- readonly "transferLines": "tenant" | "transfer" | "variant" | "quantity";
924
+ readonly "transferLines": "tenant" | "transfer" | "variant" | "quantity" | "detail";
925
925
  readonly "purchaseOrders": "id" | "tenant" | "location" | "supplierType" | "supplierId" | "status" | "currency" | "expectedAt" | "note" | "createdAt" | "updatedAt" | "placedAt";
926
926
  readonly "purchaseOrderLines": "id" | "tenant" | "order" | "variant" | "quantity" | "received" | "unitCost";
927
- };
928
- readonly functions: "adjust_stock" | "cancel_purchase_order" | "cancel_transfer" | "commit_reservation" | "count_stock" | "create_transfer" | "delete_location" | "expire_reservations" | "move_stock" | "place_purchase_order" | "receive_purchase_order" | "receive_transfer" | "release_reservation" | "reserve_stock" | "save_location" | "save_purchase_order" | "set_location_active" | "set_reorder_point" | "ship_transfer";
927
+ readonly "items": "variant" | "tenant" | "unit" | "scale" | "tracking" | "expiry" | "costing" | "currency" | "averageCost" | "updatedAt";
928
+ readonly "bins": "id" | "tenant" | "location" | "code" | "name" | "hold" | "active" | "createdAt";
929
+ readonly "lots": "id" | "tenant" | "variant" | "code" | "expiresOn" | "createdAt";
930
+ readonly "serials": "id" | "tenant" | "variant" | "serial" | "lot" | "location" | "bin" | "status" | "movement" | "updatedAt";
931
+ readonly "buckets": "id" | "tenant" | "variant" | "location" | "bin" | "lot" | "onHand" | "updatedAt";
932
+ readonly "allocations": "id" | "tenant" | "variant" | "location" | "documentType" | "documentId" | "line" | "quantity" | "allocated" | "fulfilled" | "backordered" | "status" | "createdAt" | "updatedAt";
933
+ };
934
+ readonly functions: "adjust_stock" | "allocate_stock" | "cancel_purchase_order" | "cancel_transfer" | "commit_reservation" | "count_stock" | "create_transfer" | "delete_location" | "expire_lots" | "expire_reservations" | "expiring_lots" | "fill_backorders" | "fulfill_allocation" | "list_allocations" | "move_stock" | "place_purchase_order" | "receive_purchase_order" | "receive_transfer" | "release_allocations" | "release_reservation" | "reserve_stock" | "restore_allocation" | "save_bin" | "save_location" | "save_lot" | "save_purchase_order" | "set_location_active" | "set_reorder_point" | "set_stock_item" | "ship_transfer" | "stock_detail" | "stock_lot_for" | "stock_valuation";
929
935
  readonly actions: "manage" | "read" | "reserve" | "purchase";
930
936
  readonly hooks: "before_stock_adjust" | "after_stock_adjust" | "before_stock_reserve" | "after_stock_reserve";
931
937
  readonly entities: {
@@ -952,7 +958,7 @@ interface BlockNameRegistry {
952
958
  readonly "charges": "id" | "tenant" | "invoice" | "amount" | "currency" | "description" | "createdBy" | "createdAt";
953
959
  };
954
960
  readonly functions: "add_invoice_charge" | "create_invoice" | "credit_invoice" | "invoice_aging" | "issue_invoice" | "record_invoice_payment" | "remove_invoice_charge" | "reverse_invoice_payment" | "set_invoice_lines" | "set_invoice_lines_recount" | "void_invoice" | "write_off_invoice";
955
- readonly actions: "read" | "write" | "manage";
961
+ readonly actions: "read" | "write" | "manage" | "create" | "update" | "issue" | "payment" | "credit" | "charge" | "void" | "writeOff" | "reverse";
956
962
  readonly hooks: "before_invoice_issue" | "after_invoice_issue" | "before_invoice_payment" | "after_invoice_payment";
957
963
  readonly entities: {
958
964
  readonly "invoice": "id" | "tenant_id" | "kind" | "number" | "identifier" | "original_id" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "currency" | "status" | "terms_days" | "issued_on" | "due_on" | "paid_total" | "credited_total" | "paid_at" | "voided_at" | "void_reason" | "write_off_reason" | "note" | "origin_type" | "origin_id" | "deposit_bps" | "prices_include_tax" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
@@ -1007,16 +1013,16 @@ interface BlockNameRegistry {
1007
1013
  };
1008
1014
  readonly "leave": {
1009
1015
  readonly tables: {
1010
- readonly "types": "id" | "tenant" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryoverMax" | "color" | "autoApprove" | "archivedAt" | "createdAt" | "updatedAt";
1016
+ readonly "types": "id" | "tenant" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryoverMax" | "color" | "autoApprove" | "confidential" | "archivedAt" | "createdAt" | "updatedAt";
1011
1017
  readonly "requests": "id" | "tenant" | "user" | "employee" | "type" | "startsOn" | "endsOn" | "partial" | "startPart" | "endPart" | "amount" | "note" | "approval" | "approvedAt" | "cancelledAt" | "cancelledBy" | "createdAt" | "updatedAt" | "rejectedAt" | "decidedBy" | "decisionNote";
1012
1018
  readonly "balances": "id" | "tenant" | "user" | "employee" | "type" | "kind" | "amount" | "effectiveOn" | "expiresOn" | "request" | "note" | "key" | "createdBy" | "createdAt";
1013
1019
  };
1014
1020
  readonly functions: "accrue_leave" | "adjust_leave_balance" | "approve_leave_request" | "archive_leave_type" | "cancel_leave_request" | "close_leave_year" | "decide_leave_request" | "leave_available" | "leave_balances" | "leave_is_mine" | "leave_ledger_entries" | "leave_post" | "leave_posted" | "leave_working_days" | "list_leave_requests" | "list_leave_types" | "request_leave" | "save_leave_type" | "split_leave_request" | "update_leave_request";
1015
- readonly actions: "request" | "read" | "approve" | "manage";
1021
+ readonly actions: "request" | "read" | "approve" | "manage" | "readConfidential";
1016
1022
  readonly hooks: "before_leave_request" | "after_leave_request";
1017
1023
  readonly entities: {
1018
1024
  readonly "request": "id" | "tenant_id" | "user_id" | "employee_id" | "type_id" | "starts_on" | "ends_on" | "partial" | "start_part" | "end_part" | "amount" | "note" | "approval_id" | "approved_at" | "cancelled_at" | "cancelled_by" | "created_at" | "updated_at" | "rejected_at" | "decided_by" | "decision_note";
1019
- readonly "type": "id" | "tenant_id" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryover_max" | "color" | "auto_approve" | "archived_at" | "created_at" | "updated_at";
1025
+ readonly "type": "id" | "tenant_id" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryover_max" | "color" | "auto_approve" | "confidential" | "archived_at" | "created_at" | "updated_at";
1020
1026
  };
1021
1027
  readonly primary: "request";
1022
1028
  };
@@ -1188,11 +1194,11 @@ interface BlockNameRegistry {
1188
1194
  readonly "carts": "id" | "tenant" | "user" | "currency" | "priceList" | "status" | "email" | "shippingAddress" | "billingAddress" | "shippingRate" | "createdAt" | "updatedAt" | "convertedAt";
1189
1195
  readonly "cartLines": "id" | "tenant" | "cart" | "variant" | "quantity" | "unitAmount" | "createdAt" | "updatedAt";
1190
1196
  readonly "shippingRates": "id" | "tenant" | "name" | "countries" | "currency" | "kind" | "amount" | "perKg" | "freeOver" | "active" | "createdAt" | "updatedAt";
1191
- readonly "orders": "id" | "tenant" | "number" | "sequence" | "cart" | "customer" | "email" | "status" | "currency" | "subtotal" | "discountTotal" | "shippingTotal" | "taxTotal" | "total" | "paidTotal" | "refundedTotal" | "taxInclusive" | "shippingAddress" | "billingAddress" | "shipping" | "promotions" | "tax" | "taxTransaction" | "invoiceNumber" | "invoiceSequence" | "invoicedAt" | "placedAt" | "paidAt" | "fulfilledAt" | "completedAt" | "cancelledAt" | "cancelReason" | "updatedAt";
1197
+ readonly "orders": "id" | "tenant" | "number" | "sequence" | "cart" | "customer" | "email" | "status" | "currency" | "subtotal" | "discountTotal" | "shippingTotal" | "taxTotal" | "total" | "paidTotal" | "refundedTotal" | "taxInclusive" | "shippingAddress" | "billingAddress" | "shipping" | "promotions" | "tax" | "taxTransaction" | "invoiceNumber" | "invoiceSequence" | "invoicedAt" | "placedAt" | "paidAt" | "fulfilledAt" | "completedAt" | "cancelledAt" | "cancelReason" | "originType" | "originId" | "updatedAt";
1192
1198
  readonly "orderLines": "id" | "tenant" | "order" | "position" | "variant" | "product" | "sku" | "title" | "quantity" | "unitAmount" | "subtotal" | "discount" | "tax" | "total" | "requiresShipping" | "location" | "reservation" | "fulfilled" | "returned" | "backordered";
1193
1199
  readonly "payments": "id" | "tenant" | "order" | "provider" | "reference" | "status" | "currency" | "amount" | "captured" | "refunded" | "createdAt" | "updatedAt";
1194
1200
  readonly "fulfillments": "id" | "tenant" | "order" | "location" | "status" | "carrier" | "trackingNumber" | "trackingUrl" | "createdAt" | "shippedAt" | "deliveredAt";
1195
- readonly "fulfillmentLines": "tenant" | "fulfillment" | "line" | "quantity";
1201
+ readonly "fulfillmentLines": "tenant" | "fulfillment" | "line" | "quantity" | "detail";
1196
1202
  readonly "returns": "id" | "tenant" | "order" | "status" | "reason" | "requestedBy" | "createdAt" | "receivedAt";
1197
1203
  readonly "returnLines": "tenant" | "return" | "line" | "quantity";
1198
1204
  readonly "refunds": "id" | "tenant" | "order" | "payment" | "return" | "amount" | "currency" | "status" | "reason" | "providerReference" | "createdAt" | "completedAt";
@@ -1200,11 +1206,11 @@ interface BlockNameRegistry {
1200
1206
  readonly "kitchenRoutes": "product" | "tenant" | "station";
1201
1207
  readonly "preparations": "line" | "tenant" | "order" | "station" | "state" | "note" | "queuedAt" | "startedAt" | "readyAt" | "servedAt" | "updatedAt" | "updatedBy";
1202
1208
  };
1203
- readonly functions: "add_to_cart" | "cancel_fulfillment" | "cancel_order" | "cart_totals" | "complete_refund" | "create_cart" | "create_fulfillment" | "create_refund" | "delete_shipping_rate" | "deliver_fulfillment" | "expire_orders" | "get_order" | "merge_carts" | "order_cancel" | "order_json" | "order_transition" | "place_order" | "price_cart" | "receive_return" | "record_payment" | "reject_return" | "request_return" | "save_shipping_rate" | "set_cart_details" | "set_cart_line" | "set_cart_shipping_rate" | "set_order_tax_transaction" | "ship_fulfillment" | "shipping_options";
1209
+ readonly functions: "add_to_cart" | "cancel_fulfillment" | "cancel_order" | "cart_totals" | "complete_refund" | "create_cart" | "create_fulfillment" | "create_refund" | "delete_shipping_rate" | "deliver_fulfillment" | "expire_orders" | "get_order" | "merge_carts" | "order_cancel" | "order_from_document" | "order_from_lines" | "order_from_quote" | "order_json" | "order_transition" | "place_order" | "price_cart" | "receive_return" | "record_payment" | "reject_return" | "request_return" | "save_shipping_rate" | "set_cart_details" | "set_cart_line" | "set_cart_shipping_rate" | "set_order_tax_transaction" | "ship_fulfillment" | "shipping_options";
1204
1210
  readonly actions: "manage" | "read" | "prepare";
1205
1211
  readonly hooks: "before_order_place" | "after_order_place" | "before_fulfillment_create" | "after_fulfillment_create" | "before_refund_create" | "after_refund_create";
1206
1212
  readonly entities: {
1207
- readonly "order": "id" | "tenant_id" | "number" | "sequence" | "cart_id" | "customer_id" | "email" | "status" | "currency" | "subtotal" | "discount_total" | "shipping_total" | "tax_total" | "total" | "paid_total" | "refunded_total" | "tax_inclusive" | "shipping_address" | "billing_address" | "shipping" | "promotions" | "tax" | "tax_transaction" | "invoice_number" | "invoice_sequence" | "invoiced_at" | "placed_at" | "paid_at" | "fulfilled_at" | "completed_at" | "cancelled_at" | "cancel_reason" | "updated_at";
1213
+ readonly "order": "id" | "tenant_id" | "number" | "sequence" | "cart_id" | "customer_id" | "email" | "status" | "currency" | "subtotal" | "discount_total" | "shipping_total" | "tax_total" | "total" | "paid_total" | "refunded_total" | "tax_inclusive" | "shipping_address" | "billing_address" | "shipping" | "promotions" | "tax" | "tax_transaction" | "invoice_number" | "invoice_sequence" | "invoiced_at" | "placed_at" | "paid_at" | "fulfilled_at" | "completed_at" | "cancelled_at" | "cancel_reason" | "origin_type" | "origin_id" | "updated_at";
1208
1214
  readonly "cart": "id" | "tenant_id" | "user_id" | "currency" | "price_list_id" | "status" | "email" | "shipping_address" | "billing_address" | "shipping_rate_id" | "created_at" | "updated_at" | "converted_at";
1209
1215
  };
1210
1216
  readonly primary: "order";
@@ -1589,14 +1595,16 @@ interface BlockNameRegistry {
1589
1595
  readonly "shipments": "id" | "tenant" | "reference" | "status" | "fromAddress" | "toAddress" | "fromLocation" | "subjectType" | "subjectId" | "carrier" | "service" | "trackingNumber" | "trackingUrl" | "labelId" | "labelUrl" | "labelFormat" | "labelCost" | "currency" | "labeledAt" | "deliveredAt" | "cancelledAt" | "createdBy" | "createdAt" | "updatedAt";
1590
1596
  readonly "packages": "id" | "tenant" | "shipment" | "position" | "weight" | "length" | "width" | "height" | "reference";
1591
1597
  readonly "trackingEvents": "id" | "tenant" | "shipment" | "externalId" | "status" | "occurredAt" | "description" | "location" | "source" | "createdAt";
1598
+ readonly "lines": "id" | "tenant" | "shipment" | "position" | "direction" | "variant" | "location" | "quantity" | "allocation" | "detail" | "disposition" | "movement" | "movedAt" | "createdAt";
1592
1599
  };
1593
- readonly functions: "cancel_shipment" | "create_shipment" | "get_shipment" | "ingest_tracking_events" | "list_shipments" | "list_tracking_events" | "record_tracking_events" | "set_shipment_label";
1600
+ readonly functions: "cancel_shipment" | "create_shipment" | "get_shipment" | "ingest_tracking_events" | "list_shipments" | "list_tracking_events" | "receive_shipment_return" | "record_tracking_events" | "set_shipment_label" | "set_shipment_lines";
1594
1601
  readonly actions: "read" | "manage";
1595
1602
  readonly hooks: never;
1596
1603
  readonly entities: {
1597
1604
  readonly "shipment": "id" | "tenant_id" | "reference" | "status" | "from_address" | "to_address" | "from_location_id" | "subject_type" | "subject_id" | "carrier" | "service" | "tracking_number" | "tracking_url" | "label_id" | "label_url" | "label_format" | "label_cost" | "currency" | "labeled_at" | "delivered_at" | "cancelled_at" | "created_by" | "created_at" | "updated_at";
1598
1605
  readonly "shipment_package": "id" | "tenant_id" | "shipment_id" | "position" | "weight_grams" | "length_mm" | "width_mm" | "height_mm" | "reference";
1599
1606
  readonly "shipment_tracking_event": "id" | "tenant_id" | "shipment_id" | "external_id" | "status" | "occurred_at" | "description" | "location" | "source" | "created_at";
1607
+ readonly "shipment_line": "id" | "tenant_id" | "shipment_id" | "position" | "direction" | "variant_id" | "location_id" | "quantity" | "allocation_id" | "detail" | "disposition" | "movement_id" | "moved_at" | "created_at";
1600
1608
  };
1601
1609
  readonly primary: "shipment";
1602
1610
  };
@@ -1655,7 +1663,7 @@ interface BlockNameRegistry {
1655
1663
  readonly tables: {
1656
1664
  readonly "history": "id" | "tenant" | "subjectType" | "subjectId" | "fromStatus" | "toStatus" | "actor" | "actorName" | "actorEmail" | "ip" | "userAgent" | "reason" | "createdAt";
1657
1665
  readonly "stages": "id" | "tenant" | "subjectType" | "subjectId" | "label" | "outcome" | "display" | "clearedAt" | "createdAt";
1658
- readonly "lifecycles": "id" | "tenant" | "subjectType" | "subjectId" | "version" | "flags" | "pausedAt" | "pausedUntil" | "pauseReason" | "pausedBy" | "createdAt" | "updatedAt";
1666
+ readonly "lifecycles": "id" | "tenant" | "subjectType" | "subjectId" | "version" | "flags" | "pausedAt" | "pausedUntil" | "pauseReason" | "pausedBy" | "workflowVersion" | "createdAt" | "updatedAt";
1659
1667
  };
1660
1668
  readonly functions: "list_status_history" | "list_status_stages" | "pause_lifecycle" | "resume_lifecycle" | "set_lifecycle_flag" | "status_state" | "transition";
1661
1669
  readonly actions: never;
@@ -1729,16 +1737,18 @@ interface BlockNameRegistry {
1729
1737
  };
1730
1738
  readonly "templates": {
1731
1739
  readonly tables: {
1732
- readonly "templates": "id" | "tenant" | "scope" | "key" | "type" | "name" | "language" | "isDefault" | "settings" | "forkedFrom" | "forkedFromVersion" | "createdBy" | "createdAt" | "updatedAt";
1740
+ readonly "templates": "id" | "tenant" | "scope" | "brand" | "key" | "type" | "name" | "language" | "isDefault" | "settings" | "forkedFrom" | "forkedFromVersion" | "createdBy" | "createdAt" | "updatedAt";
1733
1741
  readonly "versions": "id" | "template" | "version" | "body" | "hash" | "publishedAt" | "createdBy" | "createdAt";
1734
1742
  readonly "applications": "id" | "template" | "version" | "tenant" | "subjectType" | "subjectId" | "appliedBy" | "appliedAt";
1735
1743
  readonly "workflows": "id" | "template" | "definition" | "inputs" | "enabled" | "createdBy" | "createdAt";
1744
+ readonly "schedules": "id" | "template" | "tenant" | "input" | "enabled" | "createdBy" | "createdAt" | "updatedAt";
1745
+ readonly "runs": "schedule" | "tenant" | "occurrence" | "application" | "createdAt";
1736
1746
  };
1737
1747
  readonly functions: "fork_template" | "publish_template_version" | "record_template_application" | "remove_template" | "save_template" | "save_template_draft" | "set_default_template" | "sync_templates" | "template_applications_list" | "template_apply_target" | "template_get" | "template_versions_list" | "templates_list";
1738
1748
  readonly actions: "read" | "apply" | "manage";
1739
1749
  readonly hooks: "before_template_save" | "after_template_save" | "before_template_apply" | "after_template_apply";
1740
1750
  readonly entities: {
1741
- readonly "template": "id" | "tenant_id" | "scope" | "key" | "type" | "name" | "language" | "is_default" | "settings" | "forked_from" | "forked_from_version" | "created_by" | "created_at" | "updated_at";
1751
+ readonly "template": "id" | "tenant_id" | "scope" | "brand" | "key" | "type" | "name" | "language" | "is_default" | "settings" | "forked_from" | "forked_from_version" | "created_by" | "created_at" | "updated_at";
1742
1752
  };
1743
1753
  readonly primary: "template";
1744
1754
  };
@@ -2229,6 +2239,7 @@ type CatalogSqlOptions = {
2229
2239
  * of deleting it.
2230
2240
  */
2231
2241
  readonly variantInUse?: string;
2242
+ readonly maxVariants?: number;
2232
2243
  };
2233
2244
  /** `blocks.collections.options`. */
2234
2245
  type CollectionsSqlOptions = {
@@ -2924,8 +2935,23 @@ type TeamsSqlOptions = {
2924
2935
  /** Writes `restore_team`, which makes an archived team active again. */
2925
2936
  readonly restore?: boolean;
2926
2937
  };
2938
+ /**
2939
+ * Where a tenant's brand lives: the table and column that hold it, and the
2940
+ * column with the tenant id (`id` by default).
2941
+ */
2942
+ interface TemplateBrandColumn {
2943
+ readonly table: string;
2944
+ readonly column: string;
2945
+ readonly tenant?: string;
2946
+ }
2927
2947
  /** `blocks.templates.options`. */
2928
2948
  type TemplatesSqlOptions = {
2949
+ /**
2950
+ * Turns on brand-scoped starters, e.g. `{ table: "public.organizations",
2951
+ * column: "brand" }`: a starter `sync` saves with a `brand` reaches every
2952
+ * tenant whose column holds that brand.
2953
+ */
2954
+ readonly brand?: TemplateBrandColumn;
2929
2955
  readonly extraColumns?: ExtraColumns;
2930
2956
  };
2931
2957
  /** `blocks.time-tracking.options`. */
@@ -1,5 +1,5 @@
1
1
  import { It as RequestContext } from "./types-BzIYSSWK.js";
2
- import { r as AuthState } from "./resolve-BIpQRhvF.js";
2
+ import { r as AuthState } from "./resolve-XlMQRUeG.js";
3
3
  /**
4
4
  * An email address or chat user, as a bot or a mail webhook sees it. The value
5
5
  * is what the platform reports; it names no one until an identity link maps it
@@ -1,7 +1,7 @@
1
1
  import { b as DbError, n as BetterResultApi, t as AsyncResult } from "../result-DTOQRyGY.js";
2
2
  import { O as AnyFunctions, Q as PrimaryKeyValue, dt as TableKey, ft as TableMeta, gt as Update, k as AnyModels, q as Insert, wt as ApplyExtension } from "../types-BzIYSSWK.js";
3
- import { $ as SearchArgs, A as OffsetPageArgs, At as GetArgs, B as Returned, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, E as ManyResult, F as PageOf, G as UpsertArgs, H as RpcArgs, I as PlainName, J as WriteManyArgs, K as UpsertManyArgs, L as RawRpcOptions, M as OverloadArgs, N as OverloadReturns, O as NoArgName, Ot as CountArgs, P as OverloadedName, Pt as ListArgs, S as DeleteExt, T as ManyOutcome, U as RpcOptions, V as RowFilter, Vt as Payload, W as UpdateArgs, bt as AggregateArgs, et as SearchScore, j as OffsetRangeArgs, lt as ReadSetResult, mt as QuerySpec, nt as ReadSet, pt as InferResult, q as WriteArgs, tt as InferReadSetParams, v as CursorPageArgs, w as GetKey, x as DeleteArgs, y as Db } from "../define-BvkaC3Oh.js";
4
- import { a as ListExtra, d as ListQuery, i as ListDefinition, o as ListPage, s as ListPagination } from "../list-query-D1h3Dmnk.js";
3
+ import { $ as SearchArgs, A as OffsetPageArgs, At as GetArgs, B as Returned, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, E as ManyResult, F as PageOf, G as UpsertArgs, H as RpcArgs, I as PlainName, J as WriteManyArgs, K as UpsertManyArgs, L as RawRpcOptions, M as OverloadArgs, N as OverloadReturns, O as NoArgName, Ot as CountArgs, P as OverloadedName, Pt as ListArgs, S as DeleteExt, T as ManyOutcome, U as RpcOptions, V as RowFilter, Vt as Payload, W as UpdateArgs, bt as AggregateArgs, et as SearchScore, j as OffsetRangeArgs, lt as ReadSetResult, mt as QuerySpec, nt as ReadSet, pt as InferResult, q as WriteArgs, tt as InferReadSetParams, v as CursorPageArgs, w as GetKey, x as DeleteArgs, y as Db } from "../define-C_He1bQO.js";
4
+ import { a as ListExtra, d as ListQuery, i as ListDefinition, o as ListPage, s as ListPagination } from "../list-query-BkbLV-Yc.js";
5
5
  import { Result } from "better-result";
6
6
  /**
7
7
  * Better-result's `Result` namespace with the function each `DbError` goes
@@ -1,10 +1,10 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "./types-BzIYSSWK.js";
2
2
  import { o as BlockTenant } from "./block-helpers-BNtM1tqy.js";
3
- import { t as BetterSupabase, y as Db } from "./define-BvkaC3Oh.js";
3
+ import { t as BetterSupabase, y as Db } from "./define-C_He1bQO.js";
4
4
  import { n as DataEngine } from "./data-engine-CX1oYDZl.js";
5
- import { Dn as GeneratedBlocks } from "./define-block-Ds3aLZwz.js";
6
- import { rt as BetterQueries } from "./index-Dbd1E5Au.js";
7
- import { t as ClientPorts } from "./ports-prqYrReN.js";
5
+ import { Dn as GeneratedBlocks } from "./define-block-CDw9YGVh.js";
6
+ import { rt as BetterQueries } from "./index-DAS_5OfK.js";
7
+ import { t as ClientPorts } from "./ports-D63bA3p4.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  interface AuthUser {
10
10
  readonly id: string;
@@ -1,7 +1,7 @@
1
- import { Dn as GeneratedBlocks } from "./define-block-Ds3aLZwz.js";
2
- import { n as TopicPort } from "./watch-topic-D6bcqOrJ.js";
3
- import { t as ClientPorts } from "./ports-prqYrReN.js";
4
- import { t as AuthPort } from "./controller-CAcLEndc.js";
1
+ import { Dn as GeneratedBlocks } from "./define-block-CDw9YGVh.js";
2
+ import { n as TopicPort } from "./watch-topic-CtJAkWT4.js";
3
+ import { t as ClientPorts } from "./ports-D63bA3p4.js";
4
+ import { t as AuthPort } from "./controller-DhcSXkAC.js";
5
5
  import { SupabaseClient } from "@supabase/supabase-js";
6
6
  /**
7
7
  * What the block bindings hand their controllers: the provider's client,
@@ -1,4 +1,4 @@
1
- import { cn as ResolvedConfig } from "./context-yfOlyAqb.js";
1
+ import { cn as ResolvedConfig } from "./context-D6OZQdcT.js";
2
2
  /**
3
3
  * One block table as the config names it: unquoted schema and table, and each
4
4
  * logical column's written name, or `null` when an adopted table lacks it.
@@ -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 { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
- import { Ct as Events, f as AccessRequestEventData } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events, f as AccessRequestEventData } 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, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { n as BlockHooks } 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 AccessRequestsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**
@@ -2,15 +2,15 @@
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 { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
- import { Ct as Events } from "../../events-DCw3c6pj.js";
6
- import { b as EngagementEventData, x as EngagementRecordingEventData } from "../../index-CY612vAg.js";
5
+ import { Ct as Events } from "../../events-DddDlibJ.js";
6
+ import { b as EngagementEventData, x as EngagementRecordingEventData } from "../../index-DjJUamhw.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
8
  import { 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
11
  import { f as AiFiles } from "../../types-6PMaLIyw.js";
12
12
  import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
13
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
13
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
14
14
  import { a as EngagementRecording, c as NoteTakerInput, d as Transcript, f as TranscriptSegment, i as EngagementNotesInput, l as Transcriber, n as EngagementActionItem, o as EngagementRecordingStatus, p as TranscriptSegmentInput, r as EngagementNotes, s as NoteTaker, t as ENGAGEMENT_TRANSCRIBE_QUEUE, u as TranscriberInput } from "../../recordings-Bw5LoocX.js";
15
15
  /** A record an engagement is on. */
16
16
  interface EngagementSubject {
@@ -1,7 +1,7 @@
1
- import { Ct as Events, p as AgentEventData } from "../../events-DCw3c6pj.js";
1
+ import { Ct as Events, p as AgentEventData } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
3
  import { a as AgentSkill, c as AgentsOptions, i as AgentKnowledgeScope, l as NewAgent, n as AgentFields, o as AgentVisibility, r as AgentFilter, s as Agents, t as Agent, u as createAgents } from "../../agents-BwUHtvD6.js";
4
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
4
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
5
5
  /** The events of the `agents` block: type to data. */
6
6
  type AgentsEvents = {
7
7
  readonly "agent.saved": AgentEventData;
@@ -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 { a as AiCacheSetOptions, i as AiCacheOptions, n as AiCacheEntry, o as cacheKey, r as AiCacheKind, s as createAiCache, t as AiCache } from "../../ai-cache-CPOP2PYz.js";
3
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
3
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
4
4
  /** The `ai-cache` block's manifest (ADR 0029). */
5
5
  export declare const aiCacheBlock: BlockOf<"ai-cache", typeof createAiCache>;
6
6
  export { type AiCache, type AiCacheEntry, type AiCacheKind, type AiCacheOptions, type AiCacheSetOptions, type BlockTransport, cacheKey, createAiCache, dbTransport, rpcTransport, sqlTransport };
@@ -1,13 +1,13 @@
1
1
  import { b as DbError } from "../../result-DTOQRyGY.js";
2
- import { Ct as Events, g as AiToolEventData, m as AiChatEventData } from "../../events-DCw3c6pj.js";
2
+ import { Ct as Events, g as AiToolEventData, m as AiChatEventData } from "../../events-DddDlibJ.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
4
4
  import { a as AiMessagePart, c as AiReasoningPart, d as AiTextPart, f as AiToolApprovalPart, g as isAiMessage, h as aiMessageSchema, i as AiMessage, l as AiSourcePart, m as AiToolResultPart, n as AiDataPart, o as AiMessagePartType, p as AiToolCallPart, r as AiFilePart, s as AiMessageRole, t as AI_MESSAGE_SCHEMA_ID, u as AiStepPart } from "../../message-Cc4bkdNw.js";
5
5
  import { $ as createHarnessSessions, A as AiRunStatus, B as SharedAiChat, C as AiModerationInput, D as AiProject, E as AiPendingInputRequest, F as AiStreamClaim, G as AiPendingApproval, H as AiHarnessSessionPatch, I as AiToolApproval, J as AiRunState, K as AiRun, L as AiToolApprovalRequest, M as AiShareLink, N as AiStoredMessage, O as AiProjectInput, P as AiStoredMessageStatus, Q as AiRuns, R as AiToolPolicy, S as AiModerationEvent, T as AiPendingInput, U as AiHarnessSessions, V as AiHarnessSession, W as AiHarnessStatus, X as AiRunStepInput, Y as AiRunStep, Z as AiRunStepStatus, _ as AiFeedback, a as createAiChat, b as AiModelInput, c as AiAssistantMessageOptions, d as AiChatPage, f as AiChatPatch, g as AiChatVisibility, h as AiChatShare, i as aiChatTopic, j as AiSaveResult, k as AiRunRelease, l as AiChatInput, m as AiChatRecord, n as AiChatOptions, o as AiAppendResult, p as AiChatQuery, q as AiRunQuery, r as aiChatListTopic, s as AiApprovalDecision, t as AiChat, v as AiMessageSibling, w as AiModerationStage, x as AiModerationAction, y as AiModel, z as AiUserMessageTrigger } from "../../ai-chat-BZhfCHHr.js";
6
6
  import { a as NewAiSandbox, i as AiSandboxes, n as AiSandboxStatus, r as AiSandboxStopper, t as AiSandbox } from "../../sandboxes-BF9RxxCU.js";
7
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
8
- import { p as SubscriptionStatus } from "../../topic-x-mrN_Ff.js";
9
- import { n as TopicPort } from "../../watch-topic-D6bcqOrJ.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
7
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
8
+ import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
9
+ import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
11
11
  import { StandardSchemaV1 } from "@standard-schema/spec";
12
12
  /**
13
13
  * The `type` of each part in the canonical AI message (version 1); the SQL
@@ -2,7 +2,7 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
2
2
  import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
4
4
  import { _ as NewAiFile, a as AiDocumentWithContent, c as AiFileSource, d as AiFileUpload, f as AiFiles, g as NewAiDocument, h as AiSuggestion, i as AiDocumentVersion, l as AiFileStatus, m as AiProviderFile, n as AiDocumentEdit, o as AiFile, p as AiFilesOptions, r as AiDocumentKind, s as AiFileBucket, t as AiDocument, u as AiFileStorage, v as StoredAiFile } from "../../types-6PMaLIyw.js";
5
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
5
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
6
6
  /** The URL a message stores for a file: `supabase-storage://{bucket}/{path}`. */
7
7
  export declare function aiFileUrl(file: Pick<AiFile, "bucket" | "path">): string;
8
8
  /** The bucket and path of a `supabase-storage://` URL, or `undefined`. */
@@ -1,7 +1,7 @@
1
- import { Ct as Events, h as AiProviderKeyEventData } from "../../events-DCw3c6pj.js";
1
+ import { Ct as Events, h as AiProviderKeyEventData } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
- import { a as AiBatchItemStatus, c as AiKeys, d as AiProviderKeyInput, f as NewAiBatch, i as AiBatchItemInput, l as AiKeysOptions, n as AiBatchCounts, o as AiBatchPatch, p as ResolvedProviderKey, r as AiBatchItem, s as AiBatchStatus, t as AiBatch, u as AiProviderKey } from "../../types-auvHrNWC.js";
4
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
3
+ import { a as AiBatchItemStatus, c as AiKeys, d as AiProviderKeyInput, f as NewAiBatch, i as AiBatchItemInput, l as AiKeysOptions, n as AiBatchCounts, o as AiBatchPatch, p as ResolvedProviderKey, r as AiBatchItem, s as AiBatchStatus, t as AiBatch, u as AiProviderKey } from "../../types-BXLiM6VM.js";
4
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
5
5
  /** Per-tenant provider keys and provider batch jobs. */
6
6
  export declare function createAiKeys(options: AiKeysOptions): AiKeys;
7
7
  /** The events of the `ai-keys` block: type to data. */
@@ -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
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
3
- import { a as AiTaskOutcome, c as AiTaskRunner, i as AiTaskFields, l as NewAiTask, n as AiSchedulesOptions, o as AiTaskRun, r as AiTask, s as AiTaskRunStatus, t as AiSchedules, u as createAiSchedules } from "../../ai-schedules-BZPmySUa.js";
2
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
3
+ import { a as AiTaskOutcome, c as AiTaskRunner, i as AiTaskFields, l as NewAiTask, n as AiSchedulesOptions, o as AiTaskRun, r as AiTask, s as AiTaskRunStatus, t as AiSchedules, u as createAiSchedules } from "../../ai-schedules-ChJkI2jo.js";
4
4
  /** The `ai-schedules` block's manifest (ADR 0029). */
5
5
  export declare const aiSchedulesBlock: BlockOf<"ai-schedules", typeof createAiSchedules, Record<never, never>, {
6
6
  readonly notifier: "optional";
@@ -2,15 +2,15 @@
2
2
  import { T as ErrorMapper, b as DbError, 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
- import { Ct as Events, _ as AnnouncementEventData } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events, _ as AnnouncementEventData } 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, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
10
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
11
- import { p as SubscriptionStatus } from "../../topic-x-mrN_Ff.js";
12
- import { n as TopicPort } from "../../watch-topic-D6bcqOrJ.js";
13
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
10
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
+ import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
12
+ import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
13
+ import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
14
14
  type AnnouncementSeverity = "info" | "success" | "warning" | "critical";
15
15
  /**
16
16
  * Who sees it: everyone, members of some tenants, members with some roles, or
@@ -1,4 +1,4 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
2
- import { _ as createApiKeys, a as ApiKeyExtraClaims, c as ApiKeyState, d as CreateApiKeyInput, f as CreatedApiKey, g as apiKeyResolver, h as apiKeyClaims, i as ApiKeyExtraClaim, l as ApiKeys, m as apiKeyChecksum, n as ApiKeyCheck, o as ApiKeyReservedClaim, p as ParsedApiKey, r as ApiKeyClaimsOptions, s as ApiKeyResolverOptions, t as ApiKey, u as ApiKeysOptions, v as parseApiKey } from "../../api-keys-C82fMru4.js";
3
- import { a as ApiKeyDraft, c as ApiKeysControllerOptions, d as ApiKeyAuth, f as ApiKeyContributions, i as ApiKeyChange, l as ApiKeysSnapshot, m as withApiKey, n as ApiKeysEvents, o as ApiKeysActions, p as WithApiKeyOptions, r as apiKeysEvents, s as ApiKeysController, t as apiKeysBlock, u as createApiKeysController } from "../../index-CnzGRpeH.js";
2
+ import { _ as createApiKeys, a as ApiKeyExtraClaims, c as ApiKeyState, d as CreateApiKeyInput, f as CreatedApiKey, g as apiKeyResolver, h as apiKeyClaims, i as ApiKeyExtraClaim, l as ApiKeys, m as apiKeyChecksum, n as ApiKeyCheck, o as ApiKeyReservedClaim, p as ParsedApiKey, r as ApiKeyClaimsOptions, s as ApiKeyResolverOptions, t as ApiKey, u as ApiKeysOptions, v as parseApiKey } from "../../api-keys-BncNDlWG.js";
3
+ import { a as ApiKeyDraft, c as ApiKeysControllerOptions, d as ApiKeyAuth, f as ApiKeyContributions, i as ApiKeyChange, l as ApiKeysSnapshot, m as withApiKey, n as ApiKeysEvents, o as ApiKeysActions, p as WithApiKeyOptions, r as apiKeysEvents, s as ApiKeysController, t as apiKeysBlock, u as createApiKeysController } from "../../index-Cbwvf4yE.js";
4
4
  export { type ApiKey, type ApiKeyAuth, type ApiKeyChange, type ApiKeyCheck, type ApiKeyClaimsOptions, type ApiKeyContributions, type ApiKeyDraft, type ApiKeyExtraClaim, type ApiKeyExtraClaims, type ApiKeyReservedClaim, type ApiKeyResolverOptions, type ApiKeyState, type ApiKeys, type ApiKeysActions, type ApiKeysController, type ApiKeysControllerOptions, type ApiKeysEvents, type ApiKeysOptions, type ApiKeysSnapshot, type BlockTransport, type CreateApiKeyInput, type CreatedApiKey, type ParsedApiKey, type WithApiKeyOptions, apiKeyChecksum, apiKeyClaims, apiKeyResolver, apiKeysBlock, apiKeysEvents, createApiKeys, createApiKeysController, dbTransport, parseApiKey, rpcTransport, sqlTransport, withApiKey };
@@ -1,7 +1,7 @@
1
- import { A as CollaborationEventData, Ct as Events } from "../../events-DCw3c6pj.js";
1
+ import { A as CollaborationEventData, Ct as Events } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
4
- import { a as ApprovalPolicyInput, c as ApprovalRequestInput, d as ApprovalStep, f as ApprovalTenantPolicy, g as createApprovals, h as approvalFingerprint, i as ApprovalMode, l as ApprovalRequirement, m as ApprovalsOptions, n as ApprovalDecision, o as ApprovalRequest, p as Approvals, r as ApprovalListOptions, s as ApprovalRequestDetail, t as ApprovalApprovers, u as ApprovalStatus } from "../../approvals-DqCv7f-G.js";
3
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
4
+ import { a as ApprovalPolicyInput, c as ApprovalRequestInput, d as ApprovalStep, f as ApprovalTenantPolicy, g as createApprovals, h as approvalFingerprint, i as ApprovalMode, l as ApprovalRequirement, m as ApprovalsOptions, n as ApprovalDecision, o as ApprovalRequest, p as Approvals, r as ApprovalListOptions, s as ApprovalRequestDetail, t as ApprovalApprovers, u as ApprovalStatus } from "../../approvals-CXW3yFWZ.js";
5
5
  /** `approval_policy.saved` and `approval_policy.removed`. */
6
6
  interface ApprovalPolicyEventData {
7
7
  readonly organizationId: string;
@@ -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 AssetsSqlOptions } from "../../options-Bwrwb8do.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 AssetsOptions extends BlockTemporalOptions, BlockTenantOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**