better-supabase 0.15.0 → 0.16.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 (328) hide show
  1. package/dist/{adapter-B0b6MXYS.js → adapter-Dyks1lX1.js} +1 -1
  2. package/dist/{agents-5n8DWRfP.d.ts → agents-CMIB3802.d.ts} +1 -1
  3. package/dist/{ai-cache-DyHohbFP.d.ts → ai-cache-2LGgaT7F.d.ts} +1 -1
  4. package/dist/{ai-chat-D1GuRnke.d.ts → ai-chat-BCaKsvLW.d.ts} +1 -1
  5. package/dist/{ai-schedules-CAquecT_.d.ts → ai-schedules-BmkARmQ9.d.ts} +2 -2
  6. package/dist/ai-sdk/agents/index.d.ts +4 -4
  7. package/dist/ai-sdk/batches/index.d.ts +1 -1
  8. package/dist/ai-sdk/cache/index.d.ts +1 -1
  9. package/dist/ai-sdk/chat/index.d.ts +1 -1
  10. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  11. package/dist/ai-sdk/index.d.ts +4 -4
  12. package/dist/ai-sdk/memory/index.d.ts +3 -3
  13. package/dist/ai-sdk/workflow/index.d.ts +3 -3
  14. package/dist/{api-DxAPqMrE.d.ts → api-hHwieEfz.d.ts} +1 -1
  15. package/dist/{app-tables-CF2DD-Mu.d.ts → app-tables-yMQ4ubyY.d.ts} +1 -1
  16. package/dist/{approvals-Crutd4-o.d.ts → approvals-Dh9dUXrN.d.ts} +1 -1
  17. package/dist/{assistant-CD_h8Vxx.d.ts → assistant-ndGdOBax.d.ts} +2 -2
  18. package/dist/astro/index.d.ts +4 -4
  19. package/dist/astro/index.js +2 -2
  20. package/dist/{auth-module-BEFESDC4.js → auth-module-BbmX-N4L.js} +12 -4
  21. package/dist/{authorization-hooks-Cs1vP_ej.d.ts → authorization-hooks-D_pwXlBs.d.ts} +4 -0
  22. package/dist/better-result/index.d.ts +2 -2
  23. package/dist/{bind-CrMBwrPN.d.ts → bind-JGCPGUJh.d.ts} +4 -4
  24. package/dist/{block-env-B_uEM2xz.d.ts → block-env-y65GF_px.d.ts} +4 -4
  25. package/dist/blocks/access-requests/index.d.ts +1 -1
  26. package/dist/blocks/activities/index.d.ts +2 -2
  27. package/dist/blocks/agents/index.d.ts +2 -2
  28. package/dist/blocks/ai-cache/index.d.ts +2 -2
  29. package/dist/blocks/ai-chat/index.d.ts +5 -5
  30. package/dist/blocks/ai-files/index.d.ts +1 -1
  31. package/dist/blocks/ai-keys/index.d.ts +1 -1
  32. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  33. package/dist/blocks/announcements/index.d.ts +4 -4
  34. package/dist/blocks/api-keys/index.d.ts +2 -2
  35. package/dist/blocks/approvals/index.d.ts +2 -2
  36. package/dist/blocks/assets/index.d.ts +1 -1
  37. package/dist/blocks/assignment/index.d.ts +1 -1
  38. package/dist/blocks/attachments/index.d.ts +2 -2
  39. package/dist/blocks/audit/index.d.ts +5 -5
  40. package/dist/blocks/automations/index.d.ts +4 -4
  41. package/dist/blocks/billable-time/index.d.ts +1 -1
  42. package/dist/blocks/billing/index.d.ts +3 -3
  43. package/dist/blocks/bookings/index.d.ts +3 -3
  44. package/dist/blocks/bulk/index.d.ts +1 -1
  45. package/dist/blocks/calendar/index.d.ts +2 -2
  46. package/dist/blocks/catalog/index.d.ts +1 -1
  47. package/dist/blocks/channels/index.d.ts +1 -1
  48. package/dist/blocks/collections/index.d.ts +1 -1
  49. package/dist/blocks/comments/index.d.ts +4 -4
  50. package/dist/blocks/compliance/index.d.ts +1 -1
  51. package/dist/blocks/connectors/index.d.ts +1 -1
  52. package/dist/blocks/contacts/index.d.ts +1 -1
  53. package/dist/blocks/content/index.d.ts +1 -1
  54. package/dist/blocks/contracts/index.d.ts +1 -1
  55. package/dist/blocks/courses/index.d.ts +1 -1
  56. package/dist/blocks/created-by/index.d.ts +1 -1
  57. package/dist/blocks/custom-fields/index.d.ts +1 -1
  58. package/dist/blocks/data-lifecycle/index.d.ts +2 -2
  59. package/dist/blocks/deals/index.d.ts +1 -1
  60. package/dist/blocks/dispatch/index.d.ts +1 -1
  61. package/dist/blocks/documents/index.d.ts +1 -1
  62. package/dist/blocks/domains/index.d.ts +1 -1
  63. package/dist/blocks/donations/index.d.ts +1 -1
  64. package/dist/blocks/drive/index.d.ts +2 -2
  65. package/dist/blocks/employees/index.d.ts +2 -2
  66. package/dist/blocks/enrichment/index.d.ts +1 -1
  67. package/dist/blocks/enrollments/index.d.ts +1 -1
  68. package/dist/blocks/entitlements/index.d.ts +3 -3
  69. package/dist/blocks/expenses/index.d.ts +1 -1
  70. package/dist/blocks/field-history/index.d.ts +1 -1
  71. package/dist/blocks/flags/index.d.ts +1 -1
  72. package/dist/blocks/forecasts/index.d.ts +1 -1
  73. package/dist/blocks/forms/index.d.ts +2 -2
  74. package/dist/blocks/goals/index.d.ts +1 -1
  75. package/dist/blocks/guests/index.d.ts +1 -1
  76. package/dist/blocks/hiring/index.d.ts +1 -1
  77. package/dist/blocks/identities/index.d.ts +2 -2
  78. package/dist/blocks/imports/index.d.ts +1 -1
  79. package/dist/blocks/inbox/index.d.ts +5 -5
  80. package/dist/blocks/incidents/index.d.ts +1 -1
  81. package/dist/blocks/index.d.ts +2 -2
  82. package/dist/blocks/inventory/index.d.ts +2 -2
  83. package/dist/blocks/invoices/index.d.ts +1 -1
  84. package/dist/blocks/knowledge/index.d.ts +2 -2
  85. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  86. package/dist/blocks/leases/index.d.ts +1 -1
  87. package/dist/blocks/leave/index.d.ts +1 -1
  88. package/dist/blocks/ledger/index.d.ts +1 -1
  89. package/dist/blocks/mail-sync/index.d.ts +1 -1
  90. package/dist/blocks/memberships/index.d.ts +1 -1
  91. package/dist/blocks/memory/index.d.ts +3 -3
  92. package/dist/blocks/messaging/index.d.ts +4 -4
  93. package/dist/blocks/metrics/index.d.ts +2 -2
  94. package/dist/blocks/mfa/index.d.ts +2 -2
  95. package/dist/blocks/moderation/index.d.ts +1 -1
  96. package/dist/blocks/notifications/index.d.ts +5 -5
  97. package/dist/blocks/numbering/index.d.ts +1 -1
  98. package/dist/blocks/oauth-server/index.d.ts +1 -1
  99. package/dist/blocks/onboarding/index.d.ts +2 -2
  100. package/dist/blocks/orders/index.d.ts +3 -3
  101. package/dist/blocks/organizations/index.d.ts +2 -2
  102. package/dist/blocks/outbox/index.d.ts +2 -2
  103. package/dist/blocks/passes/index.d.ts +2 -2
  104. package/dist/blocks/permissions/index.d.ts +3 -3
  105. package/dist/blocks/pipelines/index.d.ts +1 -1
  106. package/dist/blocks/posts/index.d.ts +1 -1
  107. package/dist/blocks/profiles/index.d.ts +1 -1
  108. package/dist/blocks/promotions/index.d.ts +1 -1
  109. package/dist/blocks/push/index.d.ts +2 -2
  110. package/dist/blocks/queue/index.d.ts +30 -3
  111. package/dist/blocks/queue/index.js +2 -2
  112. package/dist/blocks/quotes/index.d.ts +1 -1
  113. package/dist/blocks/rank/index.d.ts +2 -2
  114. package/dist/blocks/reactions/index.d.ts +4 -4
  115. package/dist/blocks/relations/index.d.ts +1 -1
  116. package/dist/blocks/reminders/index.d.ts +3 -3
  117. package/dist/blocks/reviews/index.d.ts +1 -1
  118. package/dist/blocks/saved-views/index.d.ts +3 -3
  119. package/dist/blocks/scores/index.d.ts +1 -1
  120. package/dist/blocks/search/index.d.ts +3 -3
  121. package/dist/blocks/security-events/index.d.ts +1 -1
  122. package/dist/blocks/segments/index.d.ts +1 -1
  123. package/dist/blocks/sequences/index.d.ts +1 -1
  124. package/dist/blocks/service-accounts/index.d.ts +1 -1
  125. package/dist/blocks/sessions/index.d.ts +2 -2
  126. package/dist/blocks/settings/index.d.ts +2 -2
  127. package/dist/blocks/share-links/index.d.ts +1 -1
  128. package/dist/blocks/shipments/index.d.ts +1 -1
  129. package/dist/blocks/signatures/index.d.ts +1 -1
  130. package/dist/blocks/signing-keys/index.d.ts +1 -1
  131. package/dist/blocks/sla/index.d.ts +1 -1
  132. package/dist/blocks/sso/index.d.ts +1 -1
  133. package/dist/blocks/state-machine/index.d.ts +1 -1
  134. package/dist/blocks/subjects/index.d.ts +2 -2
  135. package/dist/blocks/tags/index.d.ts +2 -2
  136. package/dist/blocks/tasks/index.d.ts +2 -2
  137. package/dist/blocks/teams/index.d.ts +1 -1
  138. package/dist/blocks/templates/index.d.ts +3 -3
  139. package/dist/blocks/time-tracking/index.d.ts +1 -1
  140. package/dist/blocks/timeline/index.d.ts +3 -3
  141. package/dist/blocks/trash/index.d.ts +1 -1
  142. package/dist/blocks/undo/index.d.ts +2 -2
  143. package/dist/blocks/updated-at/index.d.ts +1 -1
  144. package/dist/blocks/usage/index.d.ts +3 -3
  145. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  146. package/dist/blocks/versions/index.d.ts +1 -1
  147. package/dist/blocks/waitlist/index.d.ts +1 -1
  148. package/dist/blocks/webhooks/index.d.ts +4 -4
  149. package/dist/blocks/webhooks/index.js +1 -1
  150. package/dist/blocks/workflow-editor/index.d.ts +6 -6
  151. package/dist/blocks/workflow-editor/index.js +12 -1
  152. package/dist/blocks/workflows/index.d.ts +4 -4
  153. package/dist/{bookings-D4dvGXiR.d.ts → bookings-Dox2rced.d.ts} +1 -1
  154. package/dist/{bucket-CiNi8sIw.d.ts → bucket-vc-QRrva.d.ts} +40 -1
  155. package/dist/chat-sdk/index.d.ts +1 -1
  156. package/dist/cli/add-Bfb_ISrO.js +1 -0
  157. package/dist/cli/{add-BgsUjCan.js → add-D7TkPdco.js} +17 -12
  158. package/dist/cli/{add-DCI5JKjA.js → add-I8OW-qJH.js} +2 -2
  159. package/dist/cli/{backfill-nxPbcsns.js → backfill-DIz5DnlQ.js} +1 -1
  160. package/dist/cli/bin.js +1 -1
  161. package/dist/cli/{blocks-Cr4HGePW.js → blocks-Bp5RPoft.js} +1 -1
  162. package/dist/cli/{blocks-BZHI8mRC.js → blocks-xk-SE8gS.js} +1 -1
  163. package/dist/cli/{cache-CXgR_Ahi.js → cache-AznIssjI.js} +1 -1
  164. package/dist/cli/{codemod-DSN7iAdg.js → codemod-Aewxza6i.js} +95 -3
  165. package/dist/cli/{content-mapper-DNs7lTu7.js → content-mapper-DCrz6OIv.js} +2 -2
  166. package/dist/cli/{doctor-DDrEM6S1.js → doctor-DkOSLPEQ.js} +29 -14
  167. package/dist/cli/{gen-MtijJQ9r.js → gen-CFkYUnWq.js} +10 -10
  168. package/dist/cli/index.d.ts +1 -1
  169. package/dist/cli/index.js +6 -6
  170. package/dist/cli/{init-D-aDv9r5.js → init-CHj9ad4S.js} +5 -5
  171. package/dist/cli/legacy-prefix-DkTA3Rhx.js +141 -0
  172. package/dist/cli/{live-iEeH15ck.js → live-DGdLR41j.js} +2 -2
  173. package/dist/cli/{mcp-BAPyaQ62.js → mcp-BZno503V.js} +2 -2
  174. package/dist/cli/{metadata-DVx9Zgbj.js → metadata-BfgHMe4q.js} +3 -3
  175. package/dist/cli/{migration-safety-D7PhzFxm.js → migration-safety-BnnXPAro.js} +1 -1
  176. package/dist/cli/{module-migration-aPCckev6.js → module-migration-O_IxewFs.js} +5 -216
  177. package/dist/cli/{print-BeWO7OJY.js → print-DosQIFSy.js} +1 -1
  178. package/dist/cli/{remove-B46Dmd2M.js → remove-DK2G_KHm.js} +5 -4
  179. package/dist/cli/{render-ucJmUyuM.js → render-5y5a1QZr.js} +3 -3
  180. package/dist/cli/{run-CvYVAztY.js → run-Bs4OKdDI.js} +20 -7
  181. package/dist/cli/{run-DYhLBcFW.js → run-MRET30vh.js} +20 -20
  182. package/dist/cli/{shared-LZroULBe.js → shared-BLqbvY2x.js} +1 -1
  183. package/dist/cli/{snapshot-C8MVPyO8.js → snapshot-uTUlEzY2.js} +2 -2
  184. package/dist/cli/{source-DANaJJVc.js → source-D2gJHKwC.js} +1 -1
  185. package/dist/cli/{spec-DGVNMSSB.js → spec-Cm2einTO.js} +2 -2
  186. package/dist/cli/{spec-g8_G5K7o.js → spec-DUjOtciN.js} +1 -1
  187. package/dist/cli/sql-layout-lUWenjJw.js +247 -0
  188. package/dist/cli/{sync-btj01bcM.js → sync-CZMRB3aU.js} +2 -1
  189. package/dist/cli/{upgrade-B596d4t8.js → upgrade-BFEIMC7U.js} +4 -137
  190. package/dist/cli/{upgrade-Dw3TMQzn.js → upgrade-fVsJniXm.js} +2 -2
  191. package/dist/cli/{version-Du4CgONY.js → version-B2Dr6VmJ.js} +1 -1
  192. package/dist/client/index.d.ts +5 -5
  193. package/dist/client/index.js +1 -1
  194. package/dist/client/native/index.d.ts +5 -5
  195. package/dist/client/native/index.js +1 -1
  196. package/dist/{client-BAEbEA7t.js → client-C_mlji5R.js} +6 -5
  197. package/dist/{composite-BARuBEDE.js → composite-B3TIjId4.js} +1 -1
  198. package/dist/{composite-Dsxj7T5K.d.ts → composite-CfYyU3vs.d.ts} +4 -3
  199. package/dist/config/index.d.ts +1 -1
  200. package/dist/{context-CEuTKrkz.d.ts → context-8kb8m5uO.d.ts} +24 -2
  201. package/dist/{controller-BrP0gn47.d.ts → controller-BW-5Opig.d.ts} +1 -1
  202. package/dist/{conversion-BAbucuXq.d.ts → conversion-3iv2r7YC.d.ts} +1 -1
  203. package/dist/create/index.d.ts +2 -2
  204. package/dist/create/index.js +1 -1
  205. package/dist/{define-DFBnQyYg.d.ts → define-C5AcEkEJ.d.ts} +1 -1
  206. package/dist/{define-block-BVcLQ3DF.d.ts → define-block-C1RHXz7L.d.ts} +3 -3
  207. package/dist/delegation-C7eWP2r8.d.ts +14 -0
  208. package/dist/{delegation--93jRsVO.js → delegation-DGOIiT8k.js} +12 -5
  209. package/dist/edge/index.d.ts +5 -5
  210. package/dist/edge/index.js +3 -3
  211. package/dist/{embeddings-kFbRvuic.d.ts → embeddings-D_RsS6ow.d.ts} +1 -1
  212. package/dist/{entitlements-CJpYQXeE.d.ts → entitlements-sO977DO-.d.ts} +1 -1
  213. package/dist/{envelope-Bzu0JnY2.js → envelope-DEI2iX-d.js} +1 -1
  214. package/dist/eve/index.d.ts +2 -2
  215. package/dist/{eve-BFSwTu1z.d.ts → eve-B7jxYPCw.d.ts} +2 -2
  216. package/dist/{executor-CVIn6JHa.d.ts → executor-BcNWcD-4.d.ts} +2 -2
  217. package/dist/{executor-_2ekNofh.d.ts → executor-Bi056Cnj.d.ts} +1 -1
  218. package/dist/expo/index.d.ts +2 -2
  219. package/dist/expo/index.js +2 -2
  220. package/dist/{field-errors-fsbFktYF.d.ts → field-errors-Dt86dCKk.d.ts} +12 -12
  221. package/dist/{framework-BKyTeS-j.d.ts → framework-BGdZVyPL.d.ts} +3 -3
  222. package/dist/{framework-DDdkR7FX.js → framework-BozTXRzt.js} +1 -1
  223. package/dist/{gateway-TD1pRfTP.d.ts → gateway-DzI687yd.d.ts} +3 -3
  224. package/dist/hono/index.d.ts +4 -4
  225. package/dist/hono/index.js +2 -2
  226. package/dist/{index-C-qpk8EQ.d.ts → index-CENWq3zb.d.ts} +1 -1
  227. package/dist/{index-Do2ChN_y.d.ts → index-CQhPHHDF.d.ts} +20 -2
  228. package/dist/{index-B938YqY-.d.ts → index-CTu-3fJB.d.ts} +51 -3
  229. package/dist/{index-CguFm716.d.ts → index-Cc4mIQS8.d.ts} +32 -4
  230. package/dist/{index-DLq69k3F.d.ts → index-CcAmFNVi.d.ts} +2 -2
  231. package/dist/{index-BnH4Gomw.d.ts → index-Craf712U.d.ts} +44 -12
  232. package/dist/{index-BUuVq1co.d.ts → index-DZKCc2WM.d.ts} +3 -3
  233. package/dist/index.d.ts +2 -2
  234. package/dist/{knowledge-CtL-Vfgy.d.ts → knowledge-F1IhRI4Q.d.ts} +1 -1
  235. package/dist/list/index.d.ts +1 -1
  236. package/dist/{list-query-BDVutLFr.d.ts → list-query-DYhgRTd5.d.ts} +1 -1
  237. package/dist/mapper/bin.js +5 -5
  238. package/dist/mcp/index.d.ts +3 -3
  239. package/dist/mcp/index.js +1 -1
  240. package/dist/mcp/sdk/index.d.ts +2 -2
  241. package/dist/mcp/sdk/index.js +1 -1
  242. package/dist/next/client/index.d.ts +81 -1
  243. package/dist/next/client/index.js +178 -2
  244. package/dist/next/index.d.ts +15 -14
  245. package/dist/next/index.js +2 -2
  246. package/dist/orpc/index.d.ts +4 -4
  247. package/dist/orpc/index.js +1 -1
  248. package/dist/otel/index.js +4 -4
  249. package/dist/{outbox-HvGAJuBe.d.ts → outbox-HxjZTfF6.d.ts} +1 -1
  250. package/dist/{ports-DOhtuw3c.js → ports-CaVRXjxq.js} +1 -1
  251. package/dist/{ports-sx226JUL.d.ts → ports-mObLgH1z.d.ts} +1 -1
  252. package/dist/powersync/index.d.ts +2 -2
  253. package/dist/preset/index.d.ts +3 -3
  254. package/dist/{push-token-D3Vcf0Pf.d.ts → push-token-BSSvsWXZ.d.ts} +1 -1
  255. package/dist/query/index.d.ts +1 -1
  256. package/dist/{rate-limit-o44SYkVY.js → rate-limit-Dt9vAY4E.js} +53 -0
  257. package/dist/react/index.d.ts +6 -6
  258. package/dist/react/index.js +3 -3
  259. package/dist/react/native/index.d.ts +1 -1
  260. package/dist/react/native/index.js +1 -1
  261. package/dist/react/server.d.ts +12 -7
  262. package/dist/react/server.js +8 -3
  263. package/dist/react/session.d.ts +5 -0
  264. package/dist/react/session.js +9 -1
  265. package/dist/{react-BuDYI62C.js → react-CZUZYn9E.js} +41 -4
  266. package/dist/react-router/index.d.ts +3 -3
  267. package/dist/react-router/index.js +2 -2
  268. package/dist/realtime/index.d.ts +6 -6
  269. package/dist/realtime/index.js +2 -1
  270. package/dist/{record-form-BYs9xv_N.d.ts → record-form-D9ILuVtA.d.ts} +1 -1
  271. package/dist/records/index.d.ts +7 -7
  272. package/dist/relay-gKvKJ3xf.js +208 -0
  273. package/dist/{resource-execute-CzHuDsil.d.ts → resource-execute-Cpnob1Vj.d.ts} +1 -1
  274. package/dist/{resource-types-DnKiH4G2.d.ts → resource-types-pMeLs68X.d.ts} +1 -1
  275. package/dist/{resources-B9cQxhjw.d.ts → resources-7iq2-5_A.d.ts} +1 -1
  276. package/dist/server/index.d.ts +150 -11
  277. package/dist/server/index.js +400 -4
  278. package/dist/{server-types-CFtehAsr.d.ts → server-types-CK8mUIUT.d.ts} +5 -354
  279. package/dist/{session-CH0SKgIz.d.ts → session-DWmFv3vB.d.ts} +2 -1
  280. package/dist/session-status-qQLm7jzh.d.ts +82 -0
  281. package/dist/{sign-in-DNCdrk05.js → sign-in-B64114O4.js} +1 -1
  282. package/dist/{sign-in-BsIaNx2C.js → sign-in-CmPK1AgM.js} +20 -10
  283. package/dist/solid/index.d.ts +7 -7
  284. package/dist/solid/index.js +1 -1
  285. package/dist/solid-start/index.d.ts +3 -3
  286. package/dist/solid-start/index.js +2 -2
  287. package/dist/spec/index.d.ts +1 -1
  288. package/dist/sql/index.d.ts +4 -4
  289. package/dist/sql/index.js +2 -2
  290. package/dist/{sql-ClHIdgKS.js → sql-Dl3Alk43.js} +402 -13
  291. package/dist/sqlite/index.d.ts +1 -1
  292. package/dist/ssr/index.d.ts +1 -1
  293. package/dist/storage/index.d.ts +3 -3
  294. package/dist/storage/index.js +54 -1
  295. package/dist/{subject-readers-BNSzkqw_.d.ts → subject-readers-8GySC9Z8.d.ts} +1 -1
  296. package/dist/support-B4ZBVxt3.d.ts +357 -0
  297. package/dist/svelte/index.d.ts +7 -7
  298. package/dist/svelte/index.js +1 -1
  299. package/dist/sveltekit/index.d.ts +4 -4
  300. package/dist/sveltekit/index.js +2 -2
  301. package/dist/{tags-BjHflcHF.d.ts → tags-qvVk79pp.d.ts} +1 -1
  302. package/dist/tanstack-db/index.d.ts +1 -1
  303. package/dist/tanstack-start/index.d.ts +3 -3
  304. package/dist/tanstack-start/index.js +2 -2
  305. package/dist/{tenant-yYg0E2-n.d.ts → tenant-DOKIJI62.d.ts} +1 -1
  306. package/dist/testing/index.d.ts +13 -12
  307. package/dist/{timeline-CtG0sehj.d.ts → timeline-CvTuXYvn.d.ts} +3 -3
  308. package/dist/{topic-CJrQZQaa.d.ts → topic-CZXHhZye.d.ts} +3 -3
  309. package/dist/{types-CAQBmpDx.d.ts → types-A4yyKEsg.d.ts} +1 -1
  310. package/dist/{types-SFRomQF7.d.ts → types-Czq9Xtpa.d.ts} +1 -7
  311. package/dist/{types-BBQLbui9.d.ts → types-DsRfiQ0v.d.ts} +1 -1
  312. package/dist/{usage-D7QkrwzV.d.ts → usage-Dp45V42p.d.ts} +1 -1
  313. package/dist/{verify-CMou8dWZ.d.ts → verify-CjvNLY7N.d.ts} +1 -1
  314. package/dist/vue/index.d.ts +7 -7
  315. package/dist/vue/index.js +1 -1
  316. package/dist/{watch-topic-BcGfvZOE.d.ts → watch-topic-BAxoPKZx.d.ts} +1 -1
  317. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  318. package/dist/workflow-sdk/builder/index.js +1 -1
  319. package/dist/workflow-sdk/index.d.ts +1 -1
  320. package/dist/workflow-sdk/index.js +1 -1
  321. package/dist/{workflow-sdk-BFHu4sci.d.ts → workflow-sdk-B3Ss55Fy.d.ts} +1 -1
  322. package/dist/{workflow-sdk-BVlFEB5Q.js → workflow-sdk-Cf0LAOFF.js} +2 -2
  323. package/dist/yjs/index.d.ts +1 -1
  324. package/package.json +1 -1
  325. package/schemas/doctor-report-v1.json +1 -0
  326. package/skills/better-supabase-api/SKILL.md +3 -1
  327. package/skills/better-supabase-auth/SKILL.md +7 -0
  328. package/dist/cli/add-DWjlVwvP.js +0 -1
@@ -1,4 +1,4 @@
1
1
  import { E as AccessPolicySql, T as AccessBucketPolicy, _t as BucketLifecycle, bt as VersioningStatus, vt as BucketLifecycleRule, yt as ObjectVersion } from "../types-DFdg_4yN.js";
2
- import { $ as TemplateValues, A as StorageBucketApi, B as StorageListV2Result, C as UploadOptions, D as TTL, E as parseSize, F as StorageFetchParameters, G as StorageSearchV2Options, H as StorageRemoveEntry, I as StorageFileOptions, J as StorageUrlOptions, K as StorageSignedUrlEntry, L as StorageListEntry, M as StorageDestinationOptions, N as StorageDownloadOptions, O as TtlPreset, P as StorageFailure, Q as TemplateParams, R as StorageListV2Folder, S as UploadBody, T as defineBucket, U as StorageResponse, V as StorageObjectInfo, W as StorageSearchOptions, X as StoragePath, Y as PathIn, Z as AppliedBucket, _ as StoredObject, a as BucketConnectOptions, b as TransferOptions, c as DownloadOptions, d as PathValues, f as PurgeCacheOptions, g as StorageAdminClient, h as Reservation, i as BucketConfig, j as StorageClient, k as StorageApi, l as ImageTransform, m as ReplaceResult, n as Bucket, o as BucketDrift, p as ReplaceOptions, q as StorageTransform, r as BucketClient, s as BucketPolicy, t as ActualBucket, u as ObjectTarget, v as SweepOptions, w as UrlOptions, x as TransformOptions, y as SweepResult, z as StorageListV2Object } from "../bucket-CiNi8sIw.js";
3
- import { A as StoredRef, C as AnyBucket, D as Buckets, E as BucketWithId, F as storageImageUrl, I as fromStorageError, M as StorageImageOptions, N as StorageImageSize, O as ConnectedRef, P as storageImageSrcSet, S as organizationLogoBucket, T as BucketMap, _ as IMAGE_TYPES, a as VectorHit, b as OrganizationLogoBucketOptions, c as VectorMetadata, d as defineVectorBucket, f as AnalyticsBucket, g as AvatarBucketOptions, h as defineAnalyticsBucket, i as VectorDistance, j as defineBuckets, k as ResolvedRef, l as VectorQueryOptions, m as AnalyticsCatalog, n as VectorBucketClient, o as VectorIndexClient, p as AnalyticsBucketClient, r as VectorBucketConfig, s as VectorIndexConfig, t as VectorBucket, u as VectorRecord, v as ImageBucketOptions, w as BucketIdOf, x as avatarBucket, y as ImageVariant } from "../index-Do2ChN_y.js";
4
- export { type AccessBucketPolicy, type AccessPolicySql, type ActualBucket, type AnalyticsBucket, type AnalyticsBucketClient, type AnalyticsCatalog, type AnyBucket, type AppliedBucket, type AvatarBucketOptions, type Bucket, type BucketClient, type BucketConfig, type BucketConnectOptions, type BucketDrift, type BucketIdOf, type BucketLifecycle, type BucketLifecycleRule, type BucketMap, type BucketPolicy, type BucketWithId, type Buckets, type ConnectedRef, type DownloadOptions, IMAGE_TYPES, type ImageBucketOptions, type ImageTransform, type ImageVariant, type ObjectTarget, type ObjectVersion, type OrganizationLogoBucketOptions, type PathIn, type PathValues, type PurgeCacheOptions, type ReplaceOptions, type ReplaceResult, type Reservation, type ResolvedRef, type StorageAdminClient, type StorageApi, type StorageBucketApi, type StorageClient, type StorageDestinationOptions, type StorageDownloadOptions, type StorageFailure, type StorageFetchParameters, type StorageFileOptions, type StorageImageOptions, type StorageImageSize, type StorageListEntry, type StorageListV2Folder, type StorageListV2Object, type StorageListV2Result, type StorageObjectInfo, type StoragePath, type StorageRemoveEntry, type StorageResponse, type StorageSearchOptions, type StorageSearchV2Options, type StorageSignedUrlEntry, type StorageTransform, type StorageUrlOptions, type StoredObject, type StoredRef, type SweepOptions, type SweepResult, TTL, type TemplateParams, type TemplateValues, type TransferOptions, type TransformOptions, type TtlPreset, type UploadBody, type UploadOptions, type UrlOptions, type VectorBucket, type VectorBucketClient, type VectorBucketConfig, type VectorDistance, type VectorHit, type VectorIndexClient, type VectorIndexConfig, type VectorMetadata, type VectorQueryOptions, type VectorRecord, type VersioningStatus, avatarBucket, defineAnalyticsBucket, defineBucket, defineBuckets, defineVectorBucket, fromStorageError, organizationLogoBucket, parseSize, storageImageSrcSet, storageImageUrl };
2
+ import { $ as AppliedBucket, A as TtlPreset, B as StorageListV2Folder, C as TransformOptions, D as defineBucket, E as UrlOptions, F as StorageDownloadOptions, G as StorageResponse, H as StorageListV2Result, I as StorageFailure, J as StorageSignedUrlEntry, K as StorageSearchOptions, L as StorageFetchParameters, M as StorageBucketApi, N as StorageClient, O as parseSize, P as StorageDestinationOptions, Q as StoragePath, R as StorageFileOptions, S as TransferOptions, T as UploadOptions, U as StorageObjectInfo, V as StorageListV2Object, W as StorageRemoveEntry, X as StorageUrlOptions, Y as StorageTransform, Z as PathIn, _ as ResumableReservation, a as BucketConnectOptions, b as SweepOptions, c as DownloadOptions, d as PathValues, et as TemplateParams, f as PurgeCacheOptions, g as ReserveResumableOptions, h as Reservation, i as BucketConfig, j as StorageApi, k as TTL, l as ImageTransform, m as ReplaceResult, n as Bucket, o as BucketDrift, p as ReplaceOptions, q as StorageSearchV2Options, r as BucketClient, s as BucketPolicy, t as ActualBucket, tt as TemplateValues, u as ObjectTarget, v as StorageAdminClient, w as UploadBody, x as SweepResult, y as StoredObject, z as StorageListEntry } from "../bucket-vc-QRrva.js";
3
+ import { A as ConnectedRef, C as avatarBucket, D as BucketMap, E as BucketIdOf, F as StorageImageSize, I as storageImageSrcSet, L as storageImageUrl, M as StoredRef, N as defineBuckets, O as BucketWithId, P as StorageImageOptions, R as fromStorageError, S as OrganizationLogoBucketOptions, T as AnyBucket, _ as defineAnalyticsBucket, a as VectorBucketConfig, b as ImageBucketOptions, c as VectorIndexClient, d as VectorQueryOptions, f as VectorRecord, g as AnalyticsCatalog, h as AnalyticsBucketClient, i as VectorBucketClient, j as ResolvedRef, k as Buckets, l as VectorIndexConfig, m as AnalyticsBucket, n as resumableEndpoint, o as VectorDistance, p as defineVectorBucket, r as VectorBucket, s as VectorHit, t as ResumableEndpointOptions, u as VectorMetadata, v as AvatarBucketOptions, w as organizationLogoBucket, x as ImageVariant, y as IMAGE_TYPES } from "../index-CQhPHHDF.js";
4
+ export { type AccessBucketPolicy, type AccessPolicySql, type ActualBucket, type AnalyticsBucket, type AnalyticsBucketClient, type AnalyticsCatalog, type AnyBucket, type AppliedBucket, type AvatarBucketOptions, type Bucket, type BucketClient, type BucketConfig, type BucketConnectOptions, type BucketDrift, type BucketIdOf, type BucketLifecycle, type BucketLifecycleRule, type BucketMap, type BucketPolicy, type BucketWithId, type Buckets, type ConnectedRef, type DownloadOptions, IMAGE_TYPES, type ImageBucketOptions, type ImageTransform, type ImageVariant, type ObjectTarget, type ObjectVersion, type OrganizationLogoBucketOptions, type PathIn, type PathValues, type PurgeCacheOptions, type ReplaceOptions, type ReplaceResult, type Reservation, type ReserveResumableOptions, type ResolvedRef, type ResumableEndpointOptions, type ResumableReservation, type StorageAdminClient, type StorageApi, type StorageBucketApi, type StorageClient, type StorageDestinationOptions, type StorageDownloadOptions, type StorageFailure, type StorageFetchParameters, type StorageFileOptions, type StorageImageOptions, type StorageImageSize, type StorageListEntry, type StorageListV2Folder, type StorageListV2Object, type StorageListV2Result, type StorageObjectInfo, type StoragePath, type StorageRemoveEntry, type StorageResponse, type StorageSearchOptions, type StorageSearchV2Options, type StorageSignedUrlEntry, type StorageTransform, type StorageUrlOptions, type StoredObject, type StoredRef, type SweepOptions, type SweepResult, TTL, type TemplateParams, type TemplateValues, type TransferOptions, type TransformOptions, type TtlPreset, type UploadBody, type UploadOptions, type UrlOptions, type VectorBucket, type VectorBucketClient, type VectorBucketConfig, type VectorDistance, type VectorHit, type VectorIndexClient, type VectorIndexConfig, type VectorMetadata, type VectorQueryOptions, type VectorRecord, type VersioningStatus, avatarBucket, defineAnalyticsBucket, defineBucket, defineBuckets, defineVectorBucket, fromStorageError, organizationLogoBucket, parseSize, resumableEndpoint, storageImageSrcSet, storageImageUrl };
@@ -4,6 +4,7 @@ import { c as optionalTemporal, n as isInstant } from "../temporal-DLZlWbOi.js";
4
4
  import { n as temporalMissing } from "../temporal-required-Dy0GGD8E.js";
5
5
  import { a as ok, r as err, s as toDbError, t as AsyncResult } from "../result-ntFBW2p2.js";
6
6
  import { a as spansAllTenants } from "../plugin-AKwwe2gF.js";
7
+ import { n as decodeJwtPayload } from "../base64-B9Wlsdj7.js";
7
8
  import { a as tenantClaimPaths, o as tenantFrom, s as tenantPathsFor } from "../claims-Bp9My7XP.js";
8
9
  import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "../template-Drgg3v2J.js";
9
10
  import { r as accessCheck } from "../access-sql-B-MkVARa.js";
@@ -281,6 +282,38 @@ function parseFailure(status, text) {
281
282
  };
282
283
  }
283
284
  //#endregion
285
+ //#region src/storage/resumable.ts
286
+ /** Storage signs upload tokens for two hours. */
287
+ const UPLOAD_TOKEN_SECONDS = 7200;
288
+ const HOSTED = /^(?<ref>[a-z0-9-]+)\.supabase\.co$/i;
289
+ const SIGNED_UPLOAD = "/object/upload/sign/";
290
+ const STORAGE_PATH = "/storage/v1";
291
+ /**
292
+ * The TUS endpoint for a signed resumable upload,
293
+ * `<storage>/upload/resumable/sign`. `url` is the project URL (`SUPABASE_URL`),
294
+ * the Storage URL (`.../storage/v1`) or a signed upload URL from
295
+ * `createSignedUploadUrl`.
296
+ */
297
+ function resumableEndpoint(url, options = {}) {
298
+ const parsed = new URL(url);
299
+ const path = parsed.pathname;
300
+ const storage = path.indexOf(STORAGE_PATH);
301
+ const signed = path.indexOf(SIGNED_UPLOAD);
302
+ const base = storage === -1 ? signed === -1 ? `${path.replace(/\/+$/, "")}${STORAGE_PATH}` : path.slice(0, signed) : path.slice(0, storage + 11);
303
+ const hosted = HOSTED.exec(parsed.hostname);
304
+ if ((options.direct ?? true) && hosted?.groups?.["ref"] !== void 0) parsed.hostname = `${hosted.groups["ref"]}.storage.supabase.co`;
305
+ parsed.pathname = `${base}/upload/resumable/sign`;
306
+ parsed.search = "";
307
+ parsed.hash = "";
308
+ return parsed.toString();
309
+ }
310
+ /** When a signed upload token expires: its `exp`, else two hours from `now`. */
311
+ function uploadTokenExpiry(token, now) {
312
+ const exp = decodeJwtPayload(token)?.["exp"];
313
+ const seconds = typeof exp === "number" && Number.isFinite(exp) ? exp : Math.floor(now / 1e3) + UPLOAD_TOKEN_SECONDS;
314
+ return (/* @__PURE__ */ new Date(seconds * 1e3)).toISOString();
315
+ }
316
+ //#endregion
284
317
  //#region src/storage/storage-api.ts
285
318
  /** The `StorageApi` of a client, or the client itself. */
286
319
  function storageApiOf(client) {
@@ -673,6 +706,26 @@ function connectBucket(bucket, client, resolveTarget, connectOptions, guard) {
673
706
  signedUrl: data.signedUrl
674
707
  }));
675
708
  }),
709
+ reserveResumable: (target, options) => AsyncResult.from(async () => {
710
+ const path = resolve(target);
711
+ const upsert = options?.upsert ?? false;
712
+ return run(() => api().createSignedUploadUrl(path, upsert ? { upsert } : void 0)).map((data) => ({
713
+ path: data.path,
714
+ token: data.token,
715
+ signedUrl: data.signedUrl,
716
+ bucket: bucket.id,
717
+ tusEndpoint: resumableEndpoint(data.signedUrl, options?.direct === void 0 ? {} : { direct: options.direct }),
718
+ expiresAt: uploadTokenExpiry(data.token, options?.now?.() ?? Date.now()),
719
+ headers: {
720
+ "x-signature": data.token,
721
+ "x-upsert": upsert ? "true" : "false"
722
+ },
723
+ metadata: {
724
+ bucketName: bucket.id,
725
+ objectName: data.path
726
+ }
727
+ }));
728
+ }),
676
729
  uploadReserved: (reservation, body, options) => AsyncResult.from(async () => {
677
730
  options?.signal?.throwIfAborted();
678
731
  const path = resolve(reservation.path);
@@ -1412,4 +1465,4 @@ function connectVectorBucket(config, client) {
1412
1465
  };
1413
1466
  }
1414
1467
  //#endregion
1415
- export { IMAGE_TYPES, TTL, avatarBucket, defineAnalyticsBucket, defineBucket, defineBuckets, defineVectorBucket, fromStorageError, organizationLogoBucket, parseSize, storageImageSrcSet, storageImageUrl };
1468
+ export { IMAGE_TYPES, TTL, avatarBucket, defineAnalyticsBucket, defineBucket, defineBuckets, defineVectorBucket, fromStorageError, organizationLogoBucket, parseSize, resumableEndpoint, storageImageSrcSet, storageImageUrl };
@@ -1,5 +1,5 @@
1
1
  import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
2
- import { g as SubscriberPolicy } from "./authorization-hooks-Cs1vP_ej.js";
2
+ import { g as SubscriberPolicy } from "./authorization-hooks-D_pwXlBs.js";
3
3
  //#region src/core/subject-readers.d.ts
4
4
  interface SubjectReadersOptions {
5
5
  /** The schema of the `subjects` module. Default `better_supabase`. */
@@ -0,0 +1,357 @@
1
+ /// <reference lib="esnext.temporal" />
2
+ import { t as AsyncResult } from "./result-DZeA5KS6.js";
3
+ import { o as EventHub } from "./events-vcqenSYU.js";
4
+ import { r as AuthState } from "./resolve-CXX6DHv3.js";
5
+ import { a as ProblemFormat } from "./problem-DNwN8iGz.js";
6
+ import { _ as SupportAuthorize, i as AuthorizationHooks } from "./authorization-hooks-D_pwXlBs.js";
7
+ import { t as BetterPostgres } from "./pool-CrtT4dg-.js";
8
+ import { StandardSchemaV1 } from "@standard-schema/spec";
9
+ //#region src/auth/support.d.ts
10
+ type SupportEndedBy = "admin" | "expired" | "revoked";
11
+ /** A support session: a platform admin viewing the app as `targetUserId`. */
12
+ interface SupportSession {
13
+ readonly id: string;
14
+ readonly adminId: string;
15
+ readonly targetUserId: string;
16
+ readonly reason: string;
17
+ /** Writes fail while it is true (`begin read only`). */
18
+ readonly readOnly: boolean;
19
+ readonly tenant?: string;
20
+ readonly startedAt: Temporal.Instant;
21
+ readonly expiresAt: Temporal.Instant;
22
+ readonly endedAt?: Temporal.Instant;
23
+ readonly endedBy?: SupportEndedBy;
24
+ /** App data, such as a ticket id. */
25
+ readonly metadata: Readonly<Record<string, unknown>>;
26
+ }
27
+ interface SupportStartInput {
28
+ readonly adminId: string;
29
+ /**
30
+ * The admin's verified claims. The SQL store runs `start_support_session`
31
+ * with them, so `is_platform()` checks the admin in the database too.
32
+ */
33
+ readonly adminClaims: Readonly<Record<string, unknown>>;
34
+ readonly targetUserId: string;
35
+ readonly reason: string;
36
+ readonly ttlSeconds: number;
37
+ readonly readOnly: boolean;
38
+ readonly tenant?: string;
39
+ readonly metadata: Readonly<Record<string, unknown>>;
40
+ /** The approved request this start uses, when the server found one. */
41
+ readonly requestId?: string;
42
+ }
43
+ /**
44
+ * A request for a support session that waits for a second admin. A start uses
45
+ * an approved request once; `approvedBy` is never `adminId`.
46
+ */
47
+ interface SupportRequest {
48
+ readonly id: string;
49
+ readonly adminId: string;
50
+ readonly targetUserId: string;
51
+ readonly reason: string;
52
+ readonly readOnly: boolean;
53
+ readonly tenant?: string;
54
+ readonly metadata: Readonly<Record<string, unknown>>;
55
+ readonly requestedAt: Temporal.Instant;
56
+ /** An unapproved or unused request is closed after this. */
57
+ readonly expiresAt: Temporal.Instant;
58
+ readonly approvedBy?: string;
59
+ readonly approvedAt?: Temporal.Instant;
60
+ /** The session the approval started. */
61
+ readonly sessionId?: string;
62
+ }
63
+ interface SupportRequestInput {
64
+ readonly adminId: string;
65
+ /** The admin's verified claims; the SQL store asks as the admin with them. */
66
+ readonly adminClaims: Readonly<Record<string, unknown>>;
67
+ readonly targetUserId: string;
68
+ readonly reason: string;
69
+ readonly readOnly: boolean;
70
+ readonly tenant?: string;
71
+ readonly metadata: Readonly<Record<string, unknown>>;
72
+ /**
73
+ * An approver the server's authorization hook already decided, never the
74
+ * admin. The SQL store then records the request approved, over the admin
75
+ * connection.
76
+ */
77
+ readonly approvedBy?: string;
78
+ }
79
+ /**
80
+ * Who approves a request: with `claims` the store runs as them and decides
81
+ * eligibility itself.
82
+ */
83
+ interface SupportApprover {
84
+ readonly id: string;
85
+ readonly claims?: SupportCallerClaims;
86
+ }
87
+ /** What `approvedRequest` looks up. */
88
+ interface SupportApprovalQuery {
89
+ readonly adminId: string;
90
+ readonly targetUserId: string;
91
+ readonly tenant?: string;
92
+ readonly readOnly: boolean;
93
+ }
94
+ /** A caller's verified claims, which the store runs a call with. */
95
+ type SupportCallerClaims = Readonly<Record<string, unknown>>;
96
+ interface SupportListFilter {
97
+ readonly adminId?: string;
98
+ readonly targetUserId?: string;
99
+ /** `true`: running sessions only; `false`: ended or expired ones only. */
100
+ readonly active?: boolean;
101
+ /** Defaults to 50. */
102
+ readonly limit?: number;
103
+ }
104
+ /**
105
+ * Where support sessions live. `sqlSupportStore` uses the `impersonation` SQL
106
+ * module; implement this for another store and check it with
107
+ * `testSupportSessionStore` from `better-supabase/testing`.
108
+ */
109
+ interface SupportSessionStore {
110
+ readonly apiVersion: 1;
111
+ readonly name: string;
112
+ /**
113
+ * Starts a session and ends the admin's previous one. Rejects when the store
114
+ * refuses.
115
+ */
116
+ start(input: SupportStartInput): Promise<SupportSession>;
117
+ /**
118
+ * The admin's session while it is running; `undefined` once ended or expired.
119
+ * With the admin's `claims`, the store also checks that the admin may still
120
+ * start sessions.
121
+ */
122
+ get(sessionId: string, adminId: string, claims?: SupportCallerClaims): Promise<SupportSession | undefined>;
123
+ /**
124
+ * `false` when it was not running. With `claims`, it runs as that caller: the
125
+ * session's admin, or staff with the revoke permission.
126
+ */
127
+ end(sessionId: string, endedBy: SupportEndedBy, claims?: SupportCallerClaims): Promise<boolean>;
128
+ /** With `claims`, only what that caller may view. */
129
+ list(filter?: SupportListFilter, claims?: SupportCallerClaims): Promise<readonly SupportSession[]>;
130
+ /** The claims `targetUserId` would get, when the store can build them. */
131
+ claims?(targetUserId: string): Promise<Readonly<Record<string, unknown>>>;
132
+ /**
133
+ * Ends every running session past its expiry with `endedBy: "expired"` and
134
+ * returns them. Optional; `support.expire()` fails without it.
135
+ */
136
+ expire?(): Promise<readonly SupportSession[]>;
137
+ /**
138
+ * The store with `namespace` for its time values, unless it was given one
139
+ * itself. Optional; `createServer` calls it with the definition's
140
+ * `temporal`.
141
+ */
142
+ withTemporal?(namespace: typeof Temporal): SupportSessionStore;
143
+ /**
144
+ * Records a request for a session that waits for a second admin. Optional;
145
+ * without it and the two methods below, starts that need an approval are
146
+ * refused.
147
+ */
148
+ request?(input: SupportRequestInput): Promise<SupportRequest>;
149
+ /** A request by id, or `undefined`. */
150
+ getRequest?(requestId: string): Promise<SupportRequest | undefined>;
151
+ /** Approves a request. Rejects when the approver is the requester. */
152
+ approve?(requestId: string, approver: SupportApprover): Promise<SupportRequest>;
153
+ /** The approved, unused, unexpired request a start would use, or `undefined`. */
154
+ approvedRequest?(query: SupportApprovalQuery): Promise<SupportRequest | undefined>;
155
+ }
156
+ interface SqlSupportStoreOptions {
157
+ /** `blocks.impersonation.schema`. Defaults to `better_supabase`. */
158
+ readonly schema?: string;
159
+ /**
160
+ * The Temporal namespace for the sessions' time values, for runtimes without
161
+ * a global one. Defaults to the one `createServer` passes from the
162
+ * definition, then the provided or global Temporal.
163
+ */
164
+ readonly temporal?: typeof Temporal;
165
+ }
166
+ /**
167
+ * Support sessions in the `impersonation` SQL module. `start` runs as the
168
+ * admin, so the module's `is_platform()` gate applies; the reads run on the
169
+ * admin connection.
170
+ */
171
+ declare function sqlSupportStore(postgres: Pick<BetterPostgres, "admin" | "asUser">, options?: SqlSupportStoreOptions): SupportSessionStore;
172
+ /**
173
+ * The claims a support session runs with: the target's, plus `act` naming the
174
+ * admin, the reason and the session (the audit module records all three),
175
+ * marked `kind: "support"` so `actorOf` never reads it as an OAuth client.
176
+ * `role` falls back to `authenticated`; the admin's claims never leak in.
177
+ */
178
+ declare function supportClaims(session: Pick<SupportSession, "id" | "adminId" | "targetUserId" | "reason" | "readOnly">, target: Readonly<Record<string, unknown>>): Record<string, unknown>;
179
+ //#endregion
180
+ //#region src/auth/support-cookie.d.ts
181
+ /** The cookie that carries the support session id. */
182
+ declare const SUPPORT_COOKIE = "bsb-support";
183
+ interface SupportCookieOptions {
184
+ /** Defaults to `bsb-support`. */
185
+ readonly name?: string;
186
+ /** Defaults to `/`. */
187
+ readonly path?: string;
188
+ /** Defaults to true; set false for plain-HTTP local development. */
189
+ readonly secure?: boolean;
190
+ }
191
+ /**
192
+ * `Set-Cookie` for a session: HttpOnly, SameSite=Lax, gone when the session
193
+ * expires.
194
+ */
195
+ declare function supportCookie(session: Pick<SupportSession, "id" | "expiresAt">, options?: SupportCookieOptions, now?: number): string;
196
+ /** `Set-Cookie` that removes the support cookie. */
197
+ declare function clearSupportCookie(options?: SupportCookieOptions): string;
198
+ /** The support session id in a `Cookie` header, or `undefined`. */
199
+ declare function supportCookieValue(cookieHeader: string | null, name?: string): string | undefined;
200
+ //#endregion
201
+ //#region src/server/support.d.ts
202
+ interface SupportPolicy {
203
+ /** Seconds a session lasts. Defaults to 1800 (30 minutes). */
204
+ readonly ttl?: number;
205
+ /** The longest `ttl` a start may ask for. Defaults to 14400 (4 hours). */
206
+ readonly maxTtl?: number;
207
+ /** Defaults to true. */
208
+ readonly requireReason?: boolean;
209
+ /**
210
+ * `always` (the default): every session is read-only. `default`: read-only
211
+ * unless the start passes `readOnly: false`.
212
+ */
213
+ readonly readOnly?: "always" | "default";
214
+ /**
215
+ * `distinct` (the default): a start needs a request that another admin
216
+ * approved (`support.request`, then `support.approve`), or an `authorize`
217
+ * decision of `{ approvedBy }` naming someone else. `none`: no second admin.
218
+ * Set `blocks.impersonation.options.approval` to the same value, because the
219
+ * SQL store checks it again.
220
+ */
221
+ readonly approval?: "distinct" | "none";
222
+ }
223
+ interface SupportOptions {
224
+ readonly store: SupportSessionStore;
225
+ /**
226
+ * Whether `admin` may view the app as the target. Without it, the
227
+ * authorization hooks' `support.authorize` decides, and without those every
228
+ * start is refused (`SUPPORT_FORBIDDEN`). A throw or rejection counts as a
229
+ * deny. `true` still needs a second admin under `policy.approval:
230
+ * 'distinct'`; `{ approvedBy }` names that admin.
231
+ *
232
+ * `'store'` hands the decision to the store alone: the SQL store checks
233
+ * `is_platform(blocks['impersonation'].permissions.start)` and nothing else,
234
+ * so use it only when that permission is the whole rule.
235
+ */
236
+ readonly authorize?: SupportAuthorize | "store";
237
+ /**
238
+ * The claims the target gets. Defaults to `store.claims` (the SQL store runs
239
+ * your custom access token hook), then `{ role: 'authenticated' }`.
240
+ */
241
+ readonly claims?: (targetUserId: string) => Readonly<Record<string, unknown>> | Promise<Readonly<Record<string, unknown>>>;
242
+ readonly policy?: SupportPolicy;
243
+ readonly cookie?: SupportCookieOptions;
244
+ /**
245
+ * Where a request names its support session, for apps that keep it in a
246
+ * header or their own request store instead of the `bsb-support` cookie.
247
+ * Defaults to reading the cookie.
248
+ */
249
+ readonly sessionId?: (request: Request) => string | undefined;
250
+ }
251
+ interface SupportStartRequest {
252
+ readonly targetUserId: string;
253
+ readonly reason?: string;
254
+ /** Seconds; defaults to `policy.ttl`. */
255
+ readonly ttl?: number;
256
+ /** Honoured only with `policy.readOnly: 'default'`. */
257
+ readonly readOnly?: boolean;
258
+ readonly tenant?: string;
259
+ readonly metadata?: Readonly<Record<string, unknown>>;
260
+ }
261
+ /** Options for `support.expireRoute`. */
262
+ interface SupportExpireRouteOptions {
263
+ /** The bearer token the cron caller sends, such as `process.env.CRON_SECRET`. */
264
+ readonly secret: string | undefined;
265
+ /** Rewrites the Problem Details bodies of the route's errors. */
266
+ readonly problem?: ProblemFormat;
267
+ }
268
+ /** A running support session, as the request that carries its cookie sees it. */
269
+ interface ActiveSupport {
270
+ readonly session: SupportSession;
271
+ /** The admin behind the session, from their own verified token. */
272
+ readonly admin: {
273
+ readonly id: string;
274
+ readonly email?: string;
275
+ };
276
+ /** The target's claims plus `act`, which repositories run with. */
277
+ readonly claims: Readonly<Record<string, unknown>>;
278
+ }
279
+ /** `bsb.support`: start, stop and inspect support sessions. */
280
+ interface SupportApi {
281
+ /**
282
+ * Starts a session for a signed-in admin and returns it with the `Set-Cookie`
283
+ * value that switches the admin's next requests to the target.
284
+ */
285
+ start(admin: AuthState, request: SupportStartRequest): AsyncResult<{
286
+ readonly session: SupportSession;
287
+ readonly cookie: string;
288
+ }>;
289
+ /**
290
+ * Asks for a session that a second admin approves with `approve`; the policy
291
+ * checks of `start` apply. `ttl` is not stored: `start` passes it.
292
+ */
293
+ request(admin: AuthState, request: SupportStartRequest): AsyncResult<SupportRequest>;
294
+ /**
295
+ * Approves a request as `approver`, who is never the admin who asked. With
296
+ * the hooks' `approverOf`, it decides who may approve; otherwise the store
297
+ * does (the SQL store: the provider's `isApprover`, else the start
298
+ * permission).
299
+ */
300
+ approve(approver: AuthState, requestId: string): AsyncResult<SupportRequest>;
301
+ /**
302
+ * Ends the admin's own session and returns the `Set-Cookie` that clears the
303
+ * cookie.
304
+ */
305
+ stop(admin: AuthState, sessionId: string): AsyncResult<{
306
+ readonly ended: boolean;
307
+ readonly cookie: string;
308
+ }>;
309
+ /**
310
+ * Ends a session as `caller`: the SQL store allows the session's admin and
311
+ * staff with the revoke permission.
312
+ */
313
+ revoke(caller: AuthState, sessionId: string): AsyncResult<boolean>;
314
+ /** The running session the request names (`sessionIdOf`) for `auth`, if any. */
315
+ current(request: Request, auth: AuthState): Promise<ActiveSupport | undefined>;
316
+ /**
317
+ * The running session `sessionId` for the admin in `auth`, if any. Use it
318
+ * when the app keeps the session id in its own request context; pass the
319
+ * result to `contextFor(auth, { support })` or `dbFor(auth, context, {
320
+ * support })`.
321
+ */
322
+ resolve(sessionId: string, auth: AuthState): Promise<ActiveSupport | undefined>;
323
+ /** The sessions `caller` may view (the SQL store checks the view permission). */
324
+ list(caller: AuthState, filter?: SupportListFilter): AsyncResult<readonly SupportSession[]>;
325
+ /**
326
+ * Ends every session past its expiry through the store and emits
327
+ * `support.ended` with `endedBy: "expired"` for each; the SQL store runs over
328
+ * `postgres.admin`. Returns the sessions it ended.
329
+ */
330
+ expire(): AsyncResult<readonly SupportSession[]>;
331
+ /**
332
+ * A `GET` or `POST` handler for a cron caller that runs `expire()` and
333
+ * answers `{ expired }`, the number of sessions it ended.
334
+ */
335
+ expireRoute(options: SupportExpireRouteOptions): (request: Request) => Promise<Response>;
336
+ /** The support session id a request names: `options.sessionId`, or the cookie. */
337
+ sessionIdOf(request: Request): string | undefined;
338
+ /** `Set-Cookie` that clears the support cookie. */
339
+ clearCookie(): string;
340
+ }
341
+ /** `ServerOptions.support`, from `supportSessions(options)`. */
342
+ interface SupportSessions {
343
+ readonly options: SupportOptions;
344
+ /**
345
+ * Builds `bsb.support`; `createServer` calls it once, with the definition's
346
+ * `temporal`, which goes on to the store's `withTemporal`, and the server's
347
+ * authorization hooks.
348
+ */
349
+ readonly create: (events: EventHub, claimsSchema: StandardSchemaV1 | undefined, temporal?: typeof Temporal, authorization?: AuthorizationHooks) => SupportApi;
350
+ }
351
+ /**
352
+ * Support sessions for `createServer(betterSupabase, { support })`. Apps that
353
+ * never import it don't bundle the support code.
354
+ */
355
+ declare function supportSessions(options: SupportOptions): SupportSessions;
356
+ //#endregion
357
+ export { SupportSessionStore as C, supportClaims as E, SupportSession as S, sqlSupportStore as T, SupportCallerClaims as _, SupportPolicy as a, SupportRequest as b, supportSessions as c, clearSupportCookie as d, supportCookie as f, SupportApprover as g, SupportApprovalQuery as h, SupportOptions as i, SUPPORT_COOKIE as l, SqlSupportStoreOptions as m, SupportApi as n, SupportSessions as o, supportCookieValue as p, SupportExpireRouteOptions as r, SupportStartRequest as s, ActiveSupport as t, SupportCookieOptions as u, SupportEndedBy as v, SupportStartInput as w, SupportRequestInput as x, SupportListFilter as y };
@@ -1,13 +1,13 @@
1
1
  import { b as DbError } from "../result-DZeA5KS6.js";
2
2
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-vcqenSYU.js";
3
- import { pt as QuerySpec } from "../define-DFBnQyYg.js";
4
- import { $ as TemplateValues } from "../bucket-CiNi8sIw.js";
5
- import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-CJrQZQaa.js";
6
- import { t as AuthSnapshot } from "../bind-CrMBwrPN.js";
3
+ import { pt as QuerySpec } from "../define-C5AcEkEJ.js";
4
+ import { tt as TemplateValues } from "../bucket-vc-QRrva.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-CZXHhZye.js";
6
+ import { t as AuthSnapshot } from "../bind-JGCPGUJh.js";
7
7
  import { t as AuthSession } from "../view-DyFdMCqg.js";
8
- import { n as Controller } from "../controller-BrP0gn47.js";
9
- import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-fsbFktYF.js";
10
- import { n as BlockOptions } from "../block-env-B_uEM2xz.js";
8
+ import { n as Controller } from "../controller-BW-5Opig.js";
9
+ import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-Dt86dCKk.js";
10
+ import { n as BlockOptions } from "../block-env-y65GF_px.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
@@ -1,5 +1,5 @@
1
1
  import { t as clearOnUserChange } from "../user-change-DgWC6RRC.js";
2
- import { a as createActionRunner, c as liveKey, d as shownCount, f as startBroadcast, i as countSource, l as notJoined, m as startLiveQuery, n as assertInvalidateClient, o as joinPresence, p as startLiveCount, r as callerOf, s as keyed, t as NO_COUNT, u as plainCaller } from "../client-BAEbEA7t.js";
2
+ import { a as createActionRunner, c as liveKey, d as shownCount, f as startBroadcast, i as countSource, l as notJoined, m as startLiveQuery, n as assertInvalidateClient, o as joinPresence, p as startLiveCount, r as callerOf, s as keyed, t as NO_COUNT, u as plainCaller } from "../client-C_mlji5R.js";
3
3
  import { c as listenToBlockEvents, d as fieldErrorsOf, i as dataTarget, l as blockEnv, n as createDataOne, o as createBlockMutation, s as createBlockQuery, t as createDataList, u as withEnv } from "../data-hooks-tgF1Ct0F.js";
4
4
  import { getContext, onDestroy, onMount, setContext } from "svelte";
5
5
  import { createSubscriber } from "svelte/reactivity";
@@ -1,12 +1,12 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
2
2
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
3
- import { t as BetterSupabase } from "../define-DFBnQyYg.js";
4
- import { n as BetterServer } from "../server-types-CFtehAsr.js";
3
+ import { t as BetterSupabase } from "../define-C5AcEkEJ.js";
4
+ import { n as BetterServer } from "../server-types-CK8mUIUT.js";
5
5
  import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-DOwKpSkA.js";
6
6
  import { t as RefusalRedirects } from "../refusal-CSntB_x8.js";
7
- import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-BKyTeS-j.js";
7
+ import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-BGdZVyPL.js";
8
8
  import { t as Validated } from "../shared-CRRfQAKG.js";
9
- import { i as tagFor } from "../tags-BjHflcHF.js";
9
+ import { i as tagFor } from "../tags-qvVk79pp.js";
10
10
  import { AnyEntry, Contributions } from "@supabase/middleware";
11
11
  import { StandardSchemaV1 } from "@standard-schema/spec";
12
12
  //#region src/bridges/sveltekit.d.ts
@@ -1,12 +1,12 @@
1
1
  import { t as DbException } from "../db-exception-Lngc1W49.js";
2
2
  import { r as dbErrorOf } from "../errors-BVFgt8BZ.js";
3
3
  import { c as toProblem } from "../problem-Bf0cJ7tk.js";
4
- import { c as extendServer, o as withFlush, s as createServer } from "../adapter-B0b6MXYS.js";
4
+ import { c as extendServer, o as withFlush, s as createServer } from "../adapter-Dyks1lX1.js";
5
5
  import { t as defaultExpose } from "../respond-C3CcOZlA.js";
6
6
  import { r as tagFor } from "../tags-CIZTqtlY.js";
7
7
  import { i as requireCaller, o as runAction } from "../kit-5l-o8RxL.js";
8
8
  import { n as bufferInPlace, t as around } from "../shared-Bf-I13Ht.js";
9
- import { a as platformWaitUntil, i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-DDdkR7FX.js";
9
+ import { a as platformWaitUntil, i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-BozTXRzt.js";
10
10
  import { i as refusalTarget } from "../refusal-ByBZcm0V.js";
11
11
  //#region src/bridges/sveltekit.ts
12
12
  /**
@@ -1,4 +1,4 @@
1
- import { Qt as CacheTarget, Zt as CacheAdapter } from "./define-DFBnQyYg.js";
1
+ import { Qt as CacheTarget, Zt as CacheAdapter } from "./define-C5AcEkEJ.js";
2
2
  //#region src/core/tags.d.ts
3
3
  interface TagOptions {
4
4
  /** The tenant the read is scoped to; `"*"` is every tenant's reads. */
@@ -1,5 +1,5 @@
1
1
  import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
2
- import { t as BetterSupabase, v as Db } from "../define-DFBnQyYg.js";
2
+ import { t as BetterSupabase, v as Db } from "../define-C5AcEkEJ.js";
3
3
  import { n as DataEngine } from "../data-engine-BWoz9lED.js";
4
4
  import { t as BetterQueryMeta } from "../invalidate-DMp4eqfF.js";
5
5
  import { QueryClient, SkipToken } from "@tanstack/query-core";
@@ -1,10 +1,10 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
2
2
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
3
- import { t as BetterSupabase } from "../define-DFBnQyYg.js";
4
- import { n as BetterServer } from "../server-types-CFtehAsr.js";
3
+ import { t as BetterSupabase } from "../define-C5AcEkEJ.js";
4
+ import { n as BetterServer } from "../server-types-CK8mUIUT.js";
5
5
  import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-DOwKpSkA.js";
6
6
  import { t as RefusalRedirects } from "../refusal-CSntB_x8.js";
7
- import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-BKyTeS-j.js";
7
+ import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-BGdZVyPL.js";
8
8
  import { t as Validated } from "../shared-CRRfQAKG.js";
9
9
  import { AnyEntry, Contributions } from "@supabase/middleware";
10
10
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,8 +1,8 @@
1
- import { c as extendServer, o as withFlush, s as createServer } from "../adapter-B0b6MXYS.js";
1
+ import { c as extendServer, o as withFlush, s as createServer } from "../adapter-Dyks1lX1.js";
2
2
  import { t as defaultExpose } from "../respond-C3CcOZlA.js";
3
3
  import { i as requireCaller, o as runAction } from "../kit-5l-o8RxL.js";
4
4
  import { n as bufferInPlace, t as around } from "../shared-Bf-I13Ht.js";
5
- import { i as localsOf, r as frameworkEntry } from "../framework-DDdkR7FX.js";
5
+ import { i as localsOf, r as frameworkEntry } from "../framework-BozTXRzt.js";
6
6
  import { r as refusalResponse } from "../refusal-ByBZcm0V.js";
7
7
  //#region src/bridges/tanstack-start.ts
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "./bind-CrMBwrPN.js";
1
+ import { t as AuthSnapshot } from "./bind-JGCPGUJh.js";
2
2
  import { t as AuthSession } from "./view-DyFdMCqg.js";
3
3
  //#region src/auth/tenant.d.ts
4
4
  /**
@@ -7,35 +7,36 @@ import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } f
7
7
  import { n as SqlClient } from "../executor-hGjrop3A.js";
8
8
  import { a as BlockTransportMiddleware } from "../block-hooks-DZN2w69m.js";
9
9
  import { a as SessionActor, o as SessionDelegation } from "../actor-CoveJgya.js";
10
- import { P as QueueProvider } from "../types-SFRomQF7.js";
11
- import { n as Embedder } from "../knowledge-CtL-Vfgy.js";
10
+ import { P as QueueProvider } from "../types-Czq9Xtpa.js";
11
+ import { n as Embedder } from "../knowledge-F1IhRI4Q.js";
12
12
  import { a as AuthorizationProvider } from "../authorization-HZdJCaVm.js";
13
13
  import { o as StreamStore } from "../store-CpheI-lN.js";
14
14
  import { o as Authorizer } from "../authorizer-B6X09otb.js";
15
- import { J as DbStats, Zt as CacheAdapter, t as BetterSupabase, v as Db } from "../define-DFBnQyYg.js";
16
- import { X as StoragePath } from "../bucket-CiNi8sIw.js";
17
- import { B as SupportSessionStore, a as ServerContext, c as ServerOptions } from "../server-types-CFtehAsr.js";
15
+ import { J as DbStats, Zt as CacheAdapter, t as BetterSupabase, v as Db } from "../define-C5AcEkEJ.js";
16
+ import { Q as StoragePath } from "../bucket-vc-QRrva.js";
17
+ import { a as ServerContext, c as ServerOptions } from "../server-types-CK8mUIUT.js";
18
18
  import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
19
- import { tn as AnyRecordBinding } from "../define-block-BVcLQ3DF.js";
19
+ import { tn as AnyRecordBinding } from "../define-block-C1RHXz7L.js";
20
20
  import { n as Money } from "../money-BNRdJQzA.js";
21
21
  import { i as EventSink, t as CloudEvent } from "../cloud-event-CzZTJkXv.js";
22
- import { i as AuthorizationHooks } from "../authorization-hooks-Cs1vP_ej.js";
22
+ import { i as AuthorizationHooks } from "../authorization-hooks-D_pwXlBs.js";
23
23
  import { s as SqlClaims, t as BetterPostgres } from "../pool-CrtT4dg-.js";
24
+ import { C as SupportSessionStore } from "../support-B4ZBVxt3.js";
24
25
  import { r as GuardOptions } from "../respond-Dn1_YhC1.js";
25
26
  import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-BBSJt_YV.js";
26
- import { n as Controller } from "../controller-BrP0gn47.js";
27
- import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-CAquecT_.js";
28
- import { At as Generator, Rt as GeneratorInput, Vt as GeneratorModel, Zt as ResolvedConfig } from "../context-CEuTKrkz.js";
27
+ import { n as Controller } from "../controller-BW-5Opig.js";
28
+ import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-BmkARmQ9.js";
29
+ import { Ht as GeneratorModel, Qt as ResolvedConfig, jt as Generator, zt as GeneratorInput } from "../context-8kb8m5uO.js";
29
30
  import { r as WebhookInput } from "../signatures-Dkx9OE8j.js";
30
31
  import { n as Payment, o as PaymentProvider } from "../payments-BYcN34Fp.js";
31
32
  import { t as NotificationChannel } from "../channel-BjvGO39m.js";
32
33
  import { a as DeliveryTransport } from "../delivery-n6lZGuGx.js";
33
34
  import { l as TaxProvider, r as TaxAddress } from "../tax-DPShHual.js";
34
35
  import { p as ShippingProvider, s as ShipmentAddress } from "../carrier-KzeYXVrW.js";
35
- import { L as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-BBQLbui9.js";
36
+ import { L as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-DsRfiQ0v.js";
36
37
  import { O as IncomingDestination, f as WebhookSecretStore, o as WebhookSigner, v as WebhookTransport } from "../signers-BAEzvTJ0.js";
37
38
  import { t as ApiModel } from "../model-hwpvole9.js";
38
- import { t as EveDocumentBackend } from "../eve-BFSwTu1z.js";
39
+ import { t as EveDocumentBackend } from "../eve-B7jxYPCw.js";
39
40
  import { l as VersionOf, t as AnyDocumentFormat } from "../format-u-65igKI.js";
40
41
  import { SupabaseClient } from "@supabase/supabase-js";
41
42
  import { Message, StateAdapter } from "chat";