better-supabase 0.35.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 (532) hide show
  1. package/dist/{adapter-CWzyKepA.js → adapter-ddQ9Hzka.js} +126 -91
  2. package/dist/{agents-DXiOPB3V.d.ts → agents-BwUHtvD6.d.ts} +4 -4
  3. package/dist/{ai-cache-CLiAXCPH.d.ts → ai-cache-CPOP2PYz.d.ts} +4 -4
  4. package/dist/{ai-chat-DlcBdOhJ.d.ts → ai-chat-BZhfCHHr.d.ts} +106 -25
  5. package/dist/{ai-schedules-Drx2KRTn.d.ts → ai-schedules-ChJkI2jo.d.ts} +5 -5
  6. package/dist/ai-sdk/agents/index.d.ts +6 -6
  7. package/dist/ai-sdk/batches/index.d.ts +3 -3
  8. package/dist/ai-sdk/cache/index.d.ts +1 -1
  9. package/dist/ai-sdk/chat/index.d.ts +2 -2
  10. package/dist/ai-sdk/chat/index.js +3 -272
  11. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  12. package/dist/ai-sdk/files/index.d.ts +1 -1
  13. package/dist/ai-sdk/index.d.ts +5 -5
  14. package/dist/ai-sdk/index.js +2 -3
  15. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  16. package/dist/ai-sdk/memory/index.d.ts +3 -3
  17. package/dist/ai-sdk/workflow/index.d.ts +6 -5
  18. package/dist/ai-sdk/workflow/index.js +9 -9
  19. package/dist/{api-myq2e9t5.d.ts → api-CbY2qdzT.d.ts} +5 -5
  20. package/dist/{api-keys-DbIbkGxx.d.ts → api-keys-BncNDlWG.d.ts} +4 -4
  21. package/dist/{app-tables-X3yzJljM.d.ts → app-tables-BlhdqqHf.d.ts} +1 -1
  22. package/dist/{approvals-DZoGtNFv.d.ts → approvals-CXW3yFWZ.d.ts} +101 -7
  23. package/dist/{approvals-Da4uAANx.js → approvals-D8gR1R8R.js} +95 -11
  24. package/dist/{assistant-BEbRPjhn.d.ts → assistant-5heV2GeR.d.ts} +7 -3
  25. package/dist/assistant-BHZ6fqBR.js +300 -0
  26. package/dist/astro/index.d.ts +7 -7
  27. package/dist/astro/index.js +5 -5
  28. package/dist/{auth-module-CqXdm8qD.js → auth-module-DkqapRZJ.js} +1 -1
  29. package/dist/{authorization-D1P3VBOd.d.ts → authorization-C7yjZttV.d.ts} +155 -54
  30. package/dist/{authorization-hooks-CxwsRnfV.d.ts → authorization-hooks-CR8TVvqo.d.ts} +8 -2
  31. package/dist/authz-topic-D7fPUY4P.js +13 -0
  32. package/dist/{availability-CebEOfMN.d.ts → availability-CZlcrkqD.d.ts} +49 -8
  33. package/dist/{base64-CVyKHBBw.js → base64-CEBz6-Jj.js} +9 -2
  34. package/dist/better-result/index.d.ts +3 -3
  35. package/dist/{bind-Bvv-Zrdh.d.ts → bind-BspFMDdW.d.ts} +7 -7
  36. package/dist/{block-env-h_uPl2f_.d.ts → block-env-CLco8YUl.d.ts} +4 -4
  37. package/dist/{block-helpers-disoUWCp.d.ts → block-helpers-BNtM1tqy.d.ts} +1 -1
  38. package/dist/{block-hooks-DrA_d1dJ.d.ts → block-hooks-CtMsgLQr.d.ts} +2 -2
  39. package/dist/{block-subjects-Br2MQNFn.d.ts → block-subjects-Bkieh2Xk.d.ts} +1 -1
  40. package/dist/{block-tables-pj3eHfoP.d.ts → block-tables-DfomofFv.d.ts} +1 -1
  41. package/dist/{block-transport-BEtC_Kis.d.ts → block-transport-CDmOUuLZ.d.ts} +2 -2
  42. package/dist/blocks/access-requests/index.d.ts +5 -5
  43. package/dist/blocks/activities/index.d.ts +9 -9
  44. package/dist/blocks/agents/index.d.ts +4 -4
  45. package/dist/blocks/ai-cache/index.d.ts +3 -3
  46. package/dist/blocks/ai-chat/index.d.ts +8 -8
  47. package/dist/blocks/ai-chat/index.js +80 -20
  48. package/dist/blocks/ai-files/index.d.ts +3 -3
  49. package/dist/blocks/ai-keys/index.d.ts +4 -4
  50. package/dist/blocks/ai-schedules/index.d.ts +3 -3
  51. package/dist/blocks/announcements/index.d.ts +8 -8
  52. package/dist/blocks/api-keys/index.d.ts +3 -3
  53. package/dist/blocks/approvals/index.d.ts +16 -5
  54. package/dist/blocks/approvals/index.js +7 -4
  55. package/dist/blocks/assets/index.d.ts +6 -6
  56. package/dist/blocks/assignment/index.d.ts +7 -7
  57. package/dist/blocks/attachments/index.d.ts +4 -4
  58. package/dist/blocks/audit/index.d.ts +13 -13
  59. package/dist/blocks/audit/index.js +1 -1
  60. package/dist/blocks/automations/index.d.ts +12 -12
  61. package/dist/blocks/billable-time/index.d.ts +6 -6
  62. package/dist/blocks/billing/index.d.ts +9 -9
  63. package/dist/blocks/billing/index.js +1 -1
  64. package/dist/blocks/bookings/index.d.ts +6 -6
  65. package/dist/blocks/bulk/index.d.ts +4 -4
  66. package/dist/blocks/calendar/index.d.ts +46 -8
  67. package/dist/blocks/calendar/index.js +306 -47
  68. package/dist/blocks/catalog/index.d.ts +58 -17
  69. package/dist/blocks/catalog/index.js +65 -16
  70. package/dist/blocks/channels/index.d.ts +7 -7
  71. package/dist/blocks/collections/index.d.ts +6 -6
  72. package/dist/blocks/comments/index.d.ts +10 -10
  73. package/dist/blocks/compliance/index.d.ts +5 -5
  74. package/dist/blocks/connectors/index.d.ts +4 -4
  75. package/dist/blocks/contacts/index.d.ts +6 -6
  76. package/dist/blocks/content/index.d.ts +5 -5
  77. package/dist/blocks/contracts/index.d.ts +6 -6
  78. package/dist/blocks/courses/index.d.ts +5 -5
  79. package/dist/blocks/created-by/index.d.ts +2 -2
  80. package/dist/blocks/custom-fields/index.d.ts +6 -6
  81. package/dist/blocks/data-lifecycle/index.d.ts +8 -8
  82. package/dist/blocks/deals/index.d.ts +6 -6
  83. package/dist/blocks/dispatch/index.d.ts +6 -6
  84. package/dist/blocks/documents/index.d.ts +4 -4
  85. package/dist/blocks/documents/index.js +1 -1
  86. package/dist/blocks/domains/index.d.ts +6 -6
  87. package/dist/blocks/donations/index.d.ts +6 -6
  88. package/dist/blocks/drive/index.d.ts +6 -6
  89. package/dist/blocks/employees/index.d.ts +8 -8
  90. package/dist/blocks/enrichment/index.d.ts +6 -6
  91. package/dist/blocks/enrollments/index.d.ts +74 -9
  92. package/dist/blocks/enrollments/index.js +67 -3
  93. package/dist/blocks/entitlements/index.d.ts +6 -6
  94. package/dist/blocks/expenses/index.d.ts +93 -6
  95. package/dist/blocks/expenses/index.js +95 -4
  96. package/dist/blocks/field-history/index.d.ts +4 -4
  97. package/dist/blocks/flags/index.d.ts +5 -5
  98. package/dist/blocks/forecasts/index.d.ts +6 -6
  99. package/dist/blocks/forms/index.d.ts +6 -6
  100. package/dist/blocks/goals/index.d.ts +4 -4
  101. package/dist/blocks/guests/index.d.ts +6 -6
  102. package/dist/blocks/hiring/index.d.ts +6 -6
  103. package/dist/blocks/identities/index.d.ts +5 -5
  104. package/dist/blocks/imports/index.d.ts +5 -5
  105. package/dist/blocks/inbox/index.d.ts +11 -11
  106. package/dist/blocks/inbox/index.js +56 -1
  107. package/dist/blocks/incidents/index.d.ts +5 -5
  108. package/dist/blocks/index.d.ts +9 -9
  109. package/dist/blocks/inventory/index.d.ts +175 -14
  110. package/dist/blocks/inventory/index.js +206 -13
  111. package/dist/blocks/invoices/index.d.ts +26 -10
  112. package/dist/blocks/invoices/index.js +23 -7
  113. package/dist/blocks/knowledge/index.d.ts +4 -4
  114. package/dist/blocks/knowledge/index.js +1 -1
  115. package/dist/blocks/lead-scoring/index.d.ts +7 -7
  116. package/dist/blocks/leases/index.d.ts +6 -6
  117. package/dist/blocks/leave/index.d.ts +88 -15
  118. package/dist/blocks/leave/index.js +65 -14
  119. package/dist/blocks/ledger/index.d.ts +6 -6
  120. package/dist/blocks/mail-sync/index.d.ts +5 -5
  121. package/dist/blocks/memberships/index.d.ts +2 -2
  122. package/dist/blocks/memory/index.d.ts +5 -5
  123. package/dist/blocks/memory/index.js +30 -5
  124. package/dist/blocks/messaging/index.d.ts +11 -11
  125. package/dist/blocks/metrics/index.d.ts +6 -6
  126. package/dist/blocks/mfa/index.d.ts +2 -2
  127. package/dist/blocks/moderation/index.d.ts +6 -6
  128. package/dist/blocks/notifications/index.d.ts +11 -11
  129. package/dist/blocks/notifications/index.js +1 -1
  130. package/dist/blocks/numbering/index.d.ts +4 -4
  131. package/dist/blocks/oauth-server/index.d.ts +5 -5
  132. package/dist/blocks/oauth-server/index.js +1 -1
  133. package/dist/blocks/onboarding/index.d.ts +5 -5
  134. package/dist/blocks/orders/index.d.ts +84 -17
  135. package/dist/blocks/orders/index.js +63 -4
  136. package/dist/blocks/organizations/index.d.ts +8 -8
  137. package/dist/blocks/outbox/index.d.ts +4 -4
  138. package/dist/blocks/outbox/index.js +1 -1
  139. package/dist/blocks/passes/index.d.ts +8 -8
  140. package/dist/blocks/passes/index.js +2 -2
  141. package/dist/blocks/permissions/index.d.ts +7 -7
  142. package/dist/blocks/pipelines/index.d.ts +6 -6
  143. package/dist/blocks/posts/index.d.ts +5 -5
  144. package/dist/blocks/profiles/index.d.ts +4 -4
  145. package/dist/blocks/promotions/index.d.ts +6 -6
  146. package/dist/blocks/promotions/index.js +1 -1
  147. package/dist/blocks/push/index.d.ts +7 -7
  148. package/dist/blocks/queue/index.d.ts +6 -6
  149. package/dist/blocks/queue/index.js +2 -2
  150. package/dist/blocks/quotes/index.d.ts +119 -27
  151. package/dist/blocks/quotes/index.js +111 -17
  152. package/dist/blocks/rank/index.d.ts +4 -4
  153. package/dist/blocks/reactions/index.d.ts +9 -9
  154. package/dist/blocks/relations/index.d.ts +7 -7
  155. package/dist/blocks/reminders/index.d.ts +78 -11
  156. package/dist/blocks/reminders/index.js +118 -6
  157. package/dist/blocks/reviews/index.d.ts +5 -5
  158. package/dist/blocks/saved-views/index.d.ts +6 -6
  159. package/dist/blocks/scores/index.d.ts +5 -5
  160. package/dist/blocks/search/index.d.ts +7 -7
  161. package/dist/blocks/security-events/index.d.ts +7 -7
  162. package/dist/blocks/security-events/index.js +1 -1
  163. package/dist/blocks/segments/index.d.ts +7 -7
  164. package/dist/blocks/sequences/index.d.ts +6 -6
  165. package/dist/blocks/service-accounts/index.d.ts +5 -5
  166. package/dist/blocks/sessions/index.d.ts +2 -2
  167. package/dist/blocks/sessions/index.js +1 -1
  168. package/dist/blocks/settings/index.d.ts +6 -6
  169. package/dist/blocks/share-links/index.d.ts +5 -5
  170. package/dist/blocks/shipments/index.d.ts +77 -8
  171. package/dist/blocks/shipments/index.js +58 -5
  172. package/dist/blocks/signatures/index.d.ts +5 -5
  173. package/dist/blocks/signing-keys/index.d.ts +4 -4
  174. package/dist/blocks/signing-keys/index.js +2 -2
  175. package/dist/blocks/sla/index.d.ts +7 -7
  176. package/dist/blocks/sso/index.d.ts +6 -6
  177. package/dist/blocks/state-machine/index.d.ts +34 -7
  178. package/dist/blocks/state-machine/index.js +9 -2
  179. package/dist/blocks/subjects/index.d.ts +6 -6
  180. package/dist/blocks/tags/index.d.ts +6 -6
  181. package/dist/blocks/tasks/index.d.ts +9 -9
  182. package/dist/blocks/teams/index.d.ts +4 -4
  183. package/dist/blocks/templates/index.d.ts +125 -12
  184. package/dist/blocks/templates/index.js +157 -7
  185. package/dist/blocks/time-tracking/index.d.ts +7 -7
  186. package/dist/blocks/timeline/index.d.ts +13 -11
  187. package/dist/blocks/timeline/index.js +3 -1
  188. package/dist/blocks/trash/index.d.ts +6 -6
  189. package/dist/blocks/undo/index.d.ts +4 -4
  190. package/dist/blocks/updated-at/index.d.ts +2 -2
  191. package/dist/blocks/usage/index.d.ts +4 -4
  192. package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
  193. package/dist/blocks/vercel-marketplace/index.js +3 -3
  194. package/dist/blocks/versions/index.d.ts +6 -6
  195. package/dist/blocks/waitlist/index.d.ts +5 -5
  196. package/dist/blocks/waitlist/index.js +1 -1
  197. package/dist/blocks/webhooks/index.d.ts +13 -13
  198. package/dist/blocks/webhooks/index.js +5 -5
  199. package/dist/blocks/workflow-editor/index.d.ts +10 -10
  200. package/dist/blocks/workflow-editor/index.js +65 -2
  201. package/dist/blocks/workflows/index.d.ts +7 -7
  202. package/dist/{bookings-Br0VXzaf.d.ts → bookings-Dj5cvXKv.d.ts} +4 -4
  203. package/dist/{bucket-DvG66r5G.d.ts → bucket-CrsJNHzi.d.ts} +1 -1
  204. package/dist/{carrier-D2b_028L.d.ts → carrier-B2eytEjR.d.ts} +10 -1
  205. package/dist/chat-sdk/index.d.ts +6 -6
  206. package/dist/claims/index.d.ts +6 -6
  207. package/dist/claims/index.js +2 -2
  208. package/dist/cli/add-8zKWiO0X.js +1 -0
  209. package/dist/cli/{add-DzgsOE8V.js → add-Buuy7BSU.js} +2 -2
  210. package/dist/cli/{add-CYreXA68.js → add-DqfJVb1F.js} +16 -14
  211. package/dist/cli/{agent-59XWXsRi.js → agent-Tqq3MAqx.js} +26 -1
  212. package/dist/cli/{app-table-files-BnISa3uY.js → app-table-files-Ku-4tPUu.js} +2 -2
  213. package/dist/cli/app-tables-Dg0sh4dH.js +42 -0
  214. package/dist/cli/{backfill-BLLTSDSa.js → backfill-Dspz6kVJ.js} +3 -3
  215. package/dist/cli/bin.js +1 -1
  216. package/dist/cli/{blocks-CpRvI7x8.js → blocks-B8LAph-w.js} +1 -1
  217. package/dist/cli/{blocks-uzh1g_0v.js → blocks-CqVBlc4L.js} +2 -2
  218. package/dist/cli/{cache-BPWC7tGD.js → cache-BbuuCIRU.js} +1 -1
  219. package/dist/cli/{codemod-CbJVS_kG.js → codemod-DIAy8uXt.js} +139 -4
  220. package/dist/cli/{command-BpZ4AuhR.js → command-67WobzTC.js} +12 -0
  221. package/dist/cli/{completion-CwL7e93t.js → completion-C3nMZgUZ.js} +2 -2
  222. package/dist/cli/{completion-DHTT6rjI.js → completion-DSrus7H1.js} +1 -1
  223. package/dist/cli/{completion-B08Q0xB3.js → completion-Dm0S3ub0.js} +2 -2
  224. package/dist/cli/{config-D-Upz3jV.js → config-cbK-wiNs.js} +1 -1
  225. package/dist/cli/{content-mapper-Cjkm2Sg3.js → content-mapper-NXfJ5VkP.js} +2 -2
  226. package/dist/cli/{db-Diy1OebO.js → db-bK5eCLaE.js} +2 -2
  227. package/dist/cli/{doctor-D94FEJZs.js → doctor-CUOyLE0c.js} +386 -49
  228. package/dist/cli/env-AFfMXxWw.js +1 -0
  229. package/dist/cli/{env-BAJn6wCA.js → env-CCT-dMFm.js} +1 -1
  230. package/dist/cli/{gen-Cd0VNDjE.js → gen-s9canfdC.js} +14 -14
  231. package/dist/cli/index.d.ts +1 -1
  232. package/dist/cli/index.js +7 -7
  233. package/dist/cli/{init-Co1N9ZoA.js → init-Zs0Ca5on.js} +9 -9
  234. package/dist/cli/{keys-CxajkV_7.js → keys-Dj5sJNj7.js} +1 -1
  235. package/dist/cli/{live-NFNeZsP7.js → live-BaLsNove.js} +2 -2
  236. package/dist/cli/{mcp-WZ8t7NMz.js → mcp-ST7bVpJD.js} +4 -4
  237. package/dist/cli/{metadata-BzMkmrZR.js → metadata-aOvlCOOg.js} +3 -3
  238. package/dist/cli/{migrate-C9gyDAV7.js → migrate-ClBx3Ggx.js} +2 -2
  239. package/dist/cli/{migration-safety-BNi8PIiM.js → migration-safety-mjm1pghO.js} +1 -1
  240. package/dist/cli/{migrations-Ds0J_TmZ.js → migrations-tzItvwxT.js} +2 -2
  241. package/dist/cli/{module-migration-hFrlzQZ5.js → module-migration-D0Rjdvdx.js} +2 -2
  242. package/dist/cli/{moved-BAFPdJz_.js → moved-CY0yDtAr.js} +1 -1
  243. package/dist/cli/{parse-BueItuNJ.js → parse-yAC-NFMq.js} +1 -1
  244. package/dist/cli/{powersync-oFiwgsBi.js → powersync-DryX_DMG.js} +4 -4
  245. package/dist/cli/powersync-vvu2-72V.js +1 -0
  246. package/dist/cli/{print-BtreoJSm.js → print-fOUnKwA9.js} +2 -2
  247. package/dist/cli/{providers-Be2dgyuR.js → providers-BR1d_5jA.js} +1 -1
  248. package/dist/cli/{prune-workflows-BPxgRrqY.js → prune-workflows-CCjzNrxl.js} +3 -3
  249. package/dist/cli/{remove-B4ad996E.js → remove-B_0OIusa.js} +6 -6
  250. package/dist/cli/{render-C-Mfq-o3.js → render-BCJKDX3c.js} +18 -4
  251. package/dist/cli/{run-D2nuyyPo.js → run-4VUQTR-R.js} +12 -48
  252. package/dist/cli/{run-cLdnJHH0.js → run-BctvQX_g.js} +45 -43
  253. package/dist/cli/{run-dY9uOC3W.js → run-DX4X7xqV.js} +2 -2
  254. package/dist/cli/seed-CLlvrV8I.js +1 -0
  255. package/dist/cli/{seed-BpaqqyO8.js → seed-DSC6f0oh.js} +2 -2
  256. package/dist/cli/{shared-DCHxLAEL.js → shared-oY7PGamd.js} +1 -1
  257. package/dist/cli/{skills-jZThjL3B.js → skills-B5p6bDwe.js} +1 -1
  258. package/dist/cli/{snapshot-CloKPNxv.js → snapshot-CWtER9-4.js} +2 -2
  259. package/dist/cli/{source-Bwyp18Rj.js → source-D4uav_v9.js} +1 -1
  260. package/dist/cli/{spec-DsVq4_qV.js → spec-BPsyEzqH.js} +1 -1
  261. package/dist/cli/{spec-DAUF4ybu.js → spec-DTnBeaCD.js} +3 -3
  262. package/dist/cli/{sql-layout-CHpEL0oq.js → sql-layout-DbhEQqq0.js} +2 -2
  263. package/dist/cli/{stack-147NqctC.js → stack-CQXLe5j0.js} +3 -2
  264. package/dist/cli/{sync-DZu1r34s.js → sync-CazH5FX4.js} +4 -4
  265. package/dist/cli/{table-D9FbJS8h.js → table-BIQA9Hdt.js} +1 -1
  266. package/dist/cli/{upgrade-Bpvi70zm.js → upgrade-Cyx6ESpc.js} +5 -5
  267. package/dist/cli/{upgrade-A-BALvp3.js → upgrade-Dyb4-f0Q.js} +3 -3
  268. package/dist/cli/{version-B59mZJoy.js → version-D1ZKUFng.js} +1 -1
  269. package/dist/client/index.d.ts +6 -6
  270. package/dist/client/index.js +1 -1
  271. package/dist/client/native/index.d.ts +5 -5
  272. package/dist/client/native/index.js +2 -2
  273. package/dist/{client-Bky2z09B.js → client-DrejIxsu.js} +1 -1
  274. package/dist/{cloud-event-DXWmXrus.d.ts → cloud-event-BjgxkfJJ.d.ts} +1 -1
  275. package/dist/{codecs-B9v5Y5HH.js → codecs-D_pOvjvD.js} +1 -0
  276. package/dist/{codecs-B1VO2BGL.d.ts → codecs-DaP45ETv.d.ts} +1 -1
  277. package/dist/commerce/index.js +1 -1
  278. package/dist/{compiler-qlXlokKn.d.ts → compiler-BOW4yPcW.d.ts} +2 -2
  279. package/dist/{composite-D2JnIiHt.js → composite-BidYZWZY.js} +3 -3
  280. package/dist/{composite-CIxjVcL1.d.ts → composite-DPN4SFud.d.ts} +7 -7
  281. package/dist/config/index.d.ts +3 -3
  282. package/dist/config/index.js +4 -4
  283. package/dist/{config-DQP0IvDX.js → config-Dx3bEPlX.js} +1 -1
  284. package/dist/{config-BZWSFxkG.js → config-uSliwPS6.js} +3 -3
  285. package/dist/{connectors-Cf2LeAuZ.d.ts → connectors-DDsdz-cn.d.ts} +4 -4
  286. package/dist/{context-CderJRZf.d.ts → context-D6OZQdcT.d.ts} +3 -3
  287. package/dist/contract/index.d.ts +9 -9
  288. package/dist/{controller-DaWA9eWS.d.ts → controller-DhcSXkAC.d.ts} +1 -1
  289. package/dist/{conversion-C9rndpEI.d.ts → conversion-CLBBITW5.d.ts} +1 -1
  290. package/dist/create/index.d.ts +3 -3
  291. package/dist/create/index.js +3 -3
  292. package/dist/create/lite/index.d.ts +4 -4
  293. package/dist/create/lite/index.js +2 -2
  294. package/dist/credentials/index.d.ts +4 -4
  295. package/dist/credentials/index.js +1 -1
  296. package/dist/{cron-route-DSITg1yC.js → cron-route-uTsC2BD0.js} +1 -1
  297. package/dist/{data-engine-CMENsp3d.d.ts → data-engine-CX1oYDZl.d.ts} +1 -1
  298. package/dist/{define-ITQA71fw.d.ts → define-C_He1bQO.d.ts} +5 -5
  299. package/dist/{define-B6D55cO0.js → define-Duh2mMYk.js} +1 -1
  300. package/dist/{define-block-COmMkx2x.d.ts → define-block-CDw9YGVh.d.ts} +12 -12
  301. package/dist/{documents-DeZw83ue.d.ts → documents-Btk0MhC0.d.ts} +3 -3
  302. package/dist/edge/index.d.ts +9 -9
  303. package/dist/edge/index.js +7 -7
  304. package/dist/elysia/index.d.ts +1 -1
  305. package/dist/elysia/index.js +1 -1
  306. package/dist/{embeddings-rVR2AKVz.d.ts → embeddings-CI6P_mtD.d.ts} +1 -1
  307. package/dist/{ended-NC_ZesY4.d.ts → ended-BwpmNC5k.d.ts} +8 -3
  308. package/dist/{entitlements-BefkpQIz.d.ts → entitlements-Bi4y8w8e.d.ts} +2 -2
  309. package/dist/env/index.d.ts +1 -1
  310. package/dist/{messages-CRk1g6oe.js → errors-0Qid9fGz.js} +107 -3
  311. package/dist/eve/index.d.ts +9 -9
  312. package/dist/eve/index.js +3 -3
  313. package/dist/{eve-DIKjuPp5.d.ts → eve-DleYrhwj.d.ts} +2 -2
  314. package/dist/{event-calendar-DUtFyRrv.d.ts → event-calendar-DPMcqy7Q.d.ts} +1 -1
  315. package/dist/events/index.d.ts +3 -3
  316. package/dist/{events-DVt3Z9hw.d.ts → events-DddDlibJ.d.ts} +9 -1
  317. package/dist/{executor-CHnoKOxk.d.ts → executor-CxMHiDp_.d.ts} +4 -4
  318. package/dist/{executor-CFmee_nV.d.ts → executor-DoSNec_H.d.ts} +1 -1
  319. package/dist/{executor-BDMqPbVU.js → executor-RYiR4z47.js} +71 -37
  320. package/dist/{executor-DqNRrFxx.d.ts → executor-uNDJBzT8.d.ts} +16 -2
  321. package/dist/expo/index.d.ts +4 -4
  322. package/dist/expo/index.js +7 -7
  323. package/dist/{field-errors-D1meOs_H.d.ts → field-errors-CJ_i6HFg.d.ts} +10 -10
  324. package/dist/{fields-CAVk9dxX.d.ts → fields-CP46SPNE.d.ts} +1 -1
  325. package/dist/{filter-evaluate-Bz3Fzhz2.d.ts → filter-evaluate-Bkbb0nuQ.d.ts} +1 -1
  326. package/dist/{filter-query-DV-x8fio.d.ts → filter-query-Xj40B5KT.d.ts} +1 -1
  327. package/dist/{flags-6emyAXly.d.ts → flags-Cuew4tGx.d.ts} +2 -2
  328. package/dist/flags-sdk/index.d.ts +2 -2
  329. package/dist/{framework-BFlaPuvv.d.ts → framework-B6JAPr1i.d.ts} +8 -8
  330. package/dist/{framework-ChzJYkJW.js → framework-z3KTPRjk.js} +4 -4
  331. package/dist/{gateway-DaekJ_Me.d.ts → gateway-B9k89AC4.d.ts} +3 -3
  332. package/dist/h3/index.d.ts +1 -1
  333. package/dist/h3/index.js +1 -1
  334. package/dist/h3/v1/index.d.ts +1 -1
  335. package/dist/h3/v1/index.js +1 -1
  336. package/dist/hono/index.d.ts +9 -10
  337. package/dist/hono/index.js +8 -8
  338. package/dist/{inbox-DavCzW7b.d.ts → inbox-yGfUVQr2.d.ts} +61 -6
  339. package/dist/{index-Dvpu22CJ.d.ts → index-1uV69AZq.d.ts} +1 -1
  340. package/dist/{index-ChLuLxy-.d.ts → index-Bc5t2QRU.d.ts} +14 -14
  341. package/dist/{index-BbDiBiKt.d.ts → index-Bm1ftdBA.d.ts} +4 -4
  342. package/dist/{index-C13UgV67.d.ts → index-C71uHfVj.d.ts} +5 -5
  343. package/dist/{index-BQlLxOj5.d.ts → index-CRwpDGxd.d.ts} +1 -1
  344. package/dist/{index-DXUiRyEk.d.ts → index-Cbwvf4yE.d.ts} +5 -5
  345. package/dist/{index-D9aV0Fvx.d.ts → index-ChvuVimY.d.ts} +6 -6
  346. package/dist/{index-M1izbwbN.d.ts → index-CvLTqmdq.d.ts} +1 -1
  347. package/dist/{index-BIAtapnD.d.ts → index-DAS_5OfK.d.ts} +5 -5
  348. package/dist/{index-D18su_r5.d.ts → index-DjJUamhw.d.ts} +10 -5
  349. package/dist/{index-ZQZMQF4l.d.ts → index-DrDCN45q.d.ts} +6 -6
  350. package/dist/{index-8w4OB5En.d.ts → index-F6lsRlsr.d.ts} +1 -1
  351. package/dist/index.d.ts +7 -7
  352. package/dist/index.js +1 -1
  353. package/dist/{instances-D9YrkoAy.js → instances-DKULdpWB.js} +291 -17
  354. package/dist/jwks-cache-CBKtICNV.js +114 -0
  355. package/dist/{jws-B8p0ppgh.js → jws-De9qjIPV.js} +1 -1
  356. package/dist/{kit-9pZP5iLU.js → kit-D5rRAKWJ.js} +2 -2
  357. package/dist/{kit-OgFOW9rX.d.ts → kit-lHFpu2_1.d.ts} +4 -4
  358. package/dist/{knowledge-DdZzUTQ-.js → knowledge-CJnZOaix.js} +67 -7
  359. package/dist/{knowledge-BBC2sfAY.d.ts → knowledge-DWXAxvkN.d.ts} +82 -11
  360. package/dist/lint/index.d.ts +1 -1
  361. package/dist/list/index.d.ts +3 -3
  362. package/dist/{list-query-C7V8kUaD.d.ts → list-query-BkbLV-Yc.d.ts} +3 -3
  363. package/dist/mapper/bin.js +5 -5
  364. package/dist/mcp/index.d.ts +3 -3
  365. package/dist/mcp/index.js +5 -5
  366. package/dist/mcp/sdk/index.d.ts +6 -6
  367. package/dist/mcp/sdk/index.js +2 -2
  368. package/dist/{messaging-D5z2TR37.d.ts → messaging-Bfe4p9Pm.d.ts} +4 -4
  369. package/dist/{model-messages-BcrkjsPE.js → model-messages-CIHqP7Z3.js} +1 -1
  370. package/dist/nestjs/index.d.ts +2 -2
  371. package/dist/nestjs/index.js +1 -1
  372. package/dist/next/client/index.d.ts +1 -1
  373. package/dist/next/index.d.ts +331 -79
  374. package/dist/next/index.js +520 -105
  375. package/dist/node/index.d.ts +2 -2
  376. package/dist/node/index.js +1 -1
  377. package/dist/{operations-t_hlXkS4.d.ts → operations-BDjgCmT9.d.ts} +1 -1
  378. package/dist/{options-D4dxMGHF.js → options-Bgnm4pTD.js} +1 -0
  379. package/dist/{options-C9bp3SEA.js → options-CEwoGUk_.js} +3 -1
  380. package/dist/{options-yRwYr4up.js → options-CGQC7Wue.js} +4 -1
  381. package/dist/{options-C13-dVMH.js → options-D-jiqb0l.js} +2 -0
  382. package/dist/{options-CuPWezcV.js → options-RYbyaVhv.js} +3 -1
  383. package/dist/options-SOjQVgfS.js +37 -0
  384. package/dist/{options-JnPEVbBJ.js → options-ScQ6Hnxo.js} +2 -1
  385. package/dist/{options-CuaWhsQS.js → options-X61tvckX.js} +2 -1
  386. package/dist/orpc/index.d.ts +8 -8
  387. package/dist/orpc/index.js +6 -6
  388. package/dist/otel/index.d.ts +2 -2
  389. package/dist/otel/index.js +4 -4
  390. package/dist/{outbox-7zgh-7nw.d.ts → outbox-DikdzUKf.d.ts} +4 -4
  391. package/dist/{permissions-C8p6RlIZ.d.ts → permissions-BGx22GP3.d.ts} +1 -1
  392. package/dist/{pool-D-4HyhuW.d.ts → pool-BJAjQcrJ.d.ts} +3 -3
  393. package/dist/{ports-CmEXVqhg.js → ports-CkygVOeE.js} +2 -2
  394. package/dist/{ports-C-8uduFM.d.ts → ports-D63bA3p4.d.ts} +1 -1
  395. package/dist/postgres/index.d.ts +4 -4
  396. package/dist/{postgrest-DZtM2nIS.d.ts → postgrest-Bjain6nf.d.ts} +1 -1
  397. package/dist/powersync/index.d.ts +6 -6
  398. package/dist/preset/index.d.ts +3 -3
  399. package/dist/preset/index.js +3 -3
  400. package/dist/{preset-B_sSI9vg.js → preset-oc_liUHz.js} +2 -2
  401. package/dist/{project-DVlXQGEp.js → project-Cs0kz5OP.js} +5 -5
  402. package/dist/{provider-BI0KC4u5.d.ts → provider-CVlXXbda.d.ts} +1 -1
  403. package/dist/{push-token-D41lOoE8.d.ts → push-token-BsyX0KlT.d.ts} +1 -1
  404. package/dist/query/index.d.ts +1 -1
  405. package/dist/{rate-limit-CRhlLFhP.js → rate-limit-BJ4EMdAy.js} +1 -1
  406. package/dist/react/index.d.ts +9 -9
  407. package/dist/react/index.js +3 -3
  408. package/dist/react/native/index.d.ts +1 -1
  409. package/dist/react/native/index.js +1 -1
  410. package/dist/react/server.d.ts +9 -9
  411. package/dist/react/server.js +2 -2
  412. package/dist/react/session.d.ts +2 -32
  413. package/dist/react/session.js +1 -37
  414. package/dist/{react-COIov1yC.js → react-DZ7AW2yf.js} +2 -2
  415. package/dist/react-router/index.d.ts +6 -6
  416. package/dist/react-router/index.js +5 -5
  417. package/dist/realtime/index.d.ts +6 -6
  418. package/dist/{record-form-DU2EoVsv.d.ts → record-form-C-gIxGXe.d.ts} +1 -1
  419. package/dist/{recordings-D69Va7gP.d.ts → recordings-Bw5LoocX.d.ts} +1 -1
  420. package/dist/records/index.d.ts +9 -9
  421. package/dist/{refusal-CGi-0Q18.d.ts → refusal-CjUUBfhY.d.ts} +3 -3
  422. package/dist/{refusal-5c6UMpUP.js → refusal-rnbr6RZD.js} +2 -2
  423. package/dist/{refresh-B8t_KE3s.js → request-kind-tNDM5Z_o.js} +15 -31
  424. package/dist/{resolve-FW8oeXvh.js → resolve-CZV31iCm.js} +402 -392
  425. package/dist/{resolve--LfVoOMg.d.ts → resolve-XlMQRUeG.d.ts} +97 -36
  426. package/dist/{resolved-names-h-3UbKcw.js → resolved-names-sd6RuTju.js} +1 -1
  427. package/dist/{resource-BbWk4hoP.js → resource-COaS9_i8.js} +1 -1
  428. package/dist/{resource-DWllVW8k.d.ts → resource-CaYpB07K.d.ts} +1 -1
  429. package/dist/{resource-execute-DUBYKTYU.d.ts → resource-execute-B7-QaS6R.d.ts} +2 -2
  430. package/dist/{resource-types-RgaljPs0.d.ts → resource-types-CF3Uc6OW.d.ts} +4 -4
  431. package/dist/{resources-DYSx9NYM.js → resources-DhiK3yLO.js} +1 -1
  432. package/dist/{resources-Bki1J4jy.d.ts → resources-DnHSmJIM.d.ts} +2 -2
  433. package/dist/{respond-DLH4tD2d.js → respond-8A3EOo61.js} +1 -1
  434. package/dist/{respond-BYOV7KZp.d.ts → respond-D7kUatjc.d.ts} +15 -19
  435. package/dist/{sales-lines-DuNVoKHA.d.ts → sales-lines-wQHuL-pa.d.ts} +1 -1
  436. package/dist/{sandboxes-B2hBoBvJ.d.ts → sandboxes-BF9RxxCU.d.ts} +1 -1
  437. package/dist/{scores-FAORS4qU.d.ts → scores-Ce8MxQX9.d.ts} +5 -5
  438. package/dist/server/index.d.ts +58 -36
  439. package/dist/server/index.js +35 -41
  440. package/dist/{server-types-C2hlvhP4.d.ts → server-types-DpI82uNq.d.ts} +19 -17
  441. package/dist/session-BjPYE4dT.js +180 -0
  442. package/dist/session-JV1z0kxa.d.ts +77 -0
  443. package/dist/{session-B4VasaAA.d.ts → session-s-mUZ8RQ.d.ts} +11 -12
  444. package/dist/{session-status-D8CBxCqv.d.ts → session-status-CJjTuFtA.d.ts} +4 -3
  445. package/dist/{sign-in-CX1a5i2P.d.ts → sign-in-D5Bg7R47.d.ts} +16 -4
  446. package/dist/{sign-in-CxdoTEp5.js → sign-in-djgvab1X.js} +3 -3
  447. package/dist/{sign-in-BMm1xhKq.js → sign-in-k2lXELeC.js} +2 -2
  448. package/dist/{signatures-CBn7w4VR.js → signatures-DK01D2S7.js} +1 -1
  449. package/dist/{signers-6ih6i9aq.d.ts → signers-Dw9DBZjJ.d.ts} +4 -4
  450. package/dist/{signing-keys-De09WNJ3.d.ts → signing-keys-FglIQ6iL.d.ts} +2 -2
  451. package/dist/{signing-keys-BC5_hJN5.js → signing-keys-sGaXklwD.js} +1 -1
  452. package/dist/{snapshot-CVMSyTHH.js → snapshot-BOA7lkRg.js} +9 -17
  453. package/dist/solid/index.d.ts +10 -10
  454. package/dist/solid/index.js +1 -1
  455. package/dist/solid-start/index.d.ts +6 -6
  456. package/dist/solid-start/index.js +5 -5
  457. package/dist/spec/index.d.ts +2 -2
  458. package/dist/sql/index.d.ts +5 -5
  459. package/dist/sql/index.js +3 -3
  460. package/dist/{sql-C9nO-Mat.js → sql-CWYbu_6y.js} +11090 -2788
  461. package/dist/sqlite/index.d.ts +3 -3
  462. package/dist/{sso-CuzAjsc8.d.ts → sso-B7w7h8RJ.d.ts} +3 -3
  463. package/dist/ssr/index.d.ts +5 -6
  464. package/dist/ssr/index.js +3 -3
  465. package/dist/{statuses-BTrQ5H4S.js → statuses-Qqpzda35.js} +12 -1
  466. package/dist/stock-detail-BMqvwq1q.js +12 -0
  467. package/dist/stock-detail-BRIt7CjU.d.ts +19 -0
  468. package/dist/storage/index.d.ts +3 -3
  469. package/dist/storage/index.js +1 -1
  470. package/dist/streams/index.d.ts +1 -1
  471. package/dist/{subject-readers-BlD8tALG.d.ts → subject-readers-D1Km_Q42.d.ts} +2 -2
  472. package/dist/{subjects-Bv2dPflD.d.ts → subjects-CVjAE7nz.d.ts} +3 -3
  473. package/dist/{support-DxYI6sDM.d.ts → support-Dj5V2WTs.d.ts} +4 -4
  474. package/dist/{support-view-DSmCett7.d.ts → support-view-DKZkZeM5.d.ts} +1 -1
  475. package/dist/svelte/index.d.ts +9 -9
  476. package/dist/svelte/index.js +1 -1
  477. package/dist/sveltekit/index.d.ts +7 -7
  478. package/dist/sveltekit/index.js +5 -5
  479. package/dist/{tags--k2fbPfO.d.ts → tags-BihwKkTT.d.ts} +1 -1
  480. package/dist/tanstack-db/index.d.ts +3 -3
  481. package/dist/tanstack-start/index.d.ts +6 -6
  482. package/dist/tanstack-start/index.js +5 -5
  483. package/dist/{tenant-gezshhcs.d.ts → tenant-DqnE50Ju.d.ts} +1 -1
  484. package/dist/testing/index.d.ts +28 -29
  485. package/dist/testing/index.js +6 -6
  486. package/dist/{timeline-Bq658xsi.d.ts → timeline-c6I3uxya.d.ts} +5 -5
  487. package/dist/{topic-BVq5RdsI.d.ts → topic-Dp7VGPd-.d.ts} +5 -5
  488. package/dist/{types-C8UyJOPJ.d.ts → types-6PMaLIyw.d.ts} +3 -3
  489. package/dist/{types-BBqP9H6w.d.ts → types-BXLiM6VM.d.ts} +4 -4
  490. package/dist/{types-Dh2OGEW5.d.ts → types-BdhE7I8Z.d.ts} +5 -5
  491. package/dist/{types-BkYEUWdz.d.ts → types-BzIYSSWK.d.ts} +16 -1
  492. package/dist/{types-DCoqai8o.d.ts → types-C7K8mu9B.d.ts} +45 -15
  493. package/dist/{types-TH3zlMiM.d.ts → types-D5uf0l4_.d.ts} +1 -1
  494. package/dist/{types-hTj5OuFo.d.ts → types-DLXTmZtm.d.ts} +2 -2
  495. package/dist/{types-d0JBRTAg.d.ts → types-DtiDatvu.d.ts} +128 -13
  496. package/dist/{undo-22ofP6Zp.d.ts → undo-CdKp5_2X.d.ts} +2 -2
  497. package/dist/{usage-CNCT6_3D.d.ts → usage-DZ8j5Tm_.d.ts} +4 -4
  498. package/dist/{vault-yGQD5Rdl.d.ts → vault-CbhvnoVC.d.ts} +2 -2
  499. package/dist/vercel-connect/index.d.ts +1 -1
  500. package/dist/vercel-sandbox/index.d.ts +2 -2
  501. package/dist/{verify-DY_j4GPZ.js → verify-96j8d5ps.js} +1 -1
  502. package/dist/{verify-BQu3eBNW.d.ts → verify-Cpc1upDA.d.ts} +2 -2
  503. package/dist/{view-BfEqjZJ_.js → view-Ch0Qtr36.js} +1 -1
  504. package/dist/{view-Cy2XxYp1.d.ts → view-eHgOOyRS.d.ts} +1 -1
  505. package/dist/vue/index.d.ts +10 -10
  506. package/dist/vue/index.js +1 -1
  507. package/dist/{watch-topic-BOclyLFd.d.ts → watch-topic-CtJAkWT4.d.ts} +1 -1
  508. package/dist/workflow-sdk/builder/index.d.ts +29 -5
  509. package/dist/workflow-sdk/builder/index.js +39 -12
  510. package/dist/workflow-sdk/index.d.ts +1 -1
  511. package/dist/workflow-sdk/index.js +2 -2
  512. package/dist/workflow-sdk/world/index.d.ts +1 -1
  513. package/dist/workflow-sdk/world/index.js +1 -1
  514. package/dist/{workflow-sdk-yIkECybp.d.ts → workflow-sdk-CUt0E4v6.d.ts} +3 -3
  515. package/dist/{workflow-sdk-BL3wzkdp.js → workflow-sdk-pB1jCLIL.js} +26 -1
  516. package/dist/{workflows-BljkWRxE.d.ts → workflows-BI4yKqFh.d.ts} +3 -3
  517. package/dist/yjs/index.d.ts +2 -2
  518. package/dist/yjs/index.js +1 -1
  519. package/package.json +1 -1
  520. package/schemas/config-v1.json +131 -0
  521. package/schemas/doctor-report-v1.json +4 -0
  522. package/skills/better-supabase-auth/SKILL.md +45 -11
  523. package/dist/cli/add-BaB3y1lv.js +0 -1
  524. package/dist/cli/env-UN6PJFX6.js +0 -1
  525. package/dist/cli/powersync-J2Kms2NT.js +0 -1
  526. package/dist/cli/seed-ByLneY1H.js +0 -1
  527. package/dist/errors-D3-4c-XF.js +0 -102
  528. package/dist/http-BDC1IvBX.js +0 -27
  529. package/dist/jwks-cache-IZaiICAV.js +0 -48
  530. package/dist/options-Itq7QYoW.js +0 -20
  531. package/dist/refresh-BtbC2rZe.d.ts +0 -52
  532. package/dist/snapshot-BGsJw9xn.d.ts +0 -83
@@ -1,5 +1,5 @@
1
- import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-CloKPNxv.js";
2
- import { a as toCatalog } from "./source-Bwyp18Rj.js";
1
+ import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-CWtER9-4.js";
2
+ import { a as toCatalog } from "./source-D4uav_v9.js";
3
3
  import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { dirname, join, relative, resolve, sep } from "node:path";
@@ -1,4 +1,4 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { r as supabaseCli } from "./exec-CXBufciC.js";
3
3
  import { a as readSharedMemory, i as reportStacks, n as listStacks, r as prunePlan, t as branchName } from "./stacks-C5YL6Un9.js";
4
4
  // src/cli/commands/stack.ts
@@ -103,7 +103,8 @@ async function runStackPrune(root, args, env, requireConsent = () => {}, deps =
103
103
  const result = await deps.supabase([
104
104
  "stack",
105
105
  verb,
106
- ...group.flatMap((action) => ["--stack-id", action.stack.id])
106
+ ...group.flatMap((action) => ["--stack-id", action.stack.id]),
107
+ ...verb === "destroy" ? ["--yes"] : []
107
108
  ], root, env);
108
109
  if (result.code !== 0) return {
109
110
  code: 1,
@@ -2,10 +2,10 @@ import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { t as display } from "./io-CQzy8PEZ.js";
3
3
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, o as findSupabaseRoot, p as sqlWorkflow, t as PGDELTA_TABLE } from "./supabase-toml-B6-eEV5p.js";
4
4
  import { d as fileDiff, i as changeLines, l as keepHandEdit, o as handEditedError, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
5
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CHpEL0oq.js";
6
- import { r as layoutFor } from "./providers-Be2dgyuR.js";
7
- import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-Ds0J_TmZ.js";
8
- import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-hFrlzQZ5.js";
5
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DbhEQqq0.js";
6
+ import { r as layoutFor } from "./providers-BR1d_5jA.js";
7
+ import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-tzItvwxT.js";
8
+ import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-D0Rjdvdx.js";
9
9
  import { t as loadTopics } from "./topics-Cdg0V7Tt.js";
10
10
  import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
11
11
  import { dirname, join, resolve } from "node:path";
@@ -1,4 +1,4 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
3
  import { n as CliError } from "./errors-DcJ_PayO.js";
4
4
  import { t as display } from "./io-CQzy8PEZ.js";
@@ -1,10 +1,10 @@
1
1
  import { t as display } from "./io-CQzy8PEZ.js";
2
2
  import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
3
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CHpEL0oq.js";
4
- import { r as layoutFor } from "./providers-Be2dgyuR.js";
5
- import { r as migrationStamp } from "./migrations-Ds0J_TmZ.js";
6
- import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-hFrlzQZ5.js";
7
- import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-DZu1r34s.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DbhEQqq0.js";
4
+ import { r as layoutFor } from "./providers-BR1d_5jA.js";
5
+ import { r as migrationStamp } from "./migrations-tzItvwxT.js";
6
+ import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-D0Rjdvdx.js";
7
+ import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-CazH5FX4.js";
8
8
  import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-D8Jfku6I.js";
9
9
  import { resolve } from "node:path";
10
10
  import { readFile } from "node:fs/promises";
@@ -1,8 +1,8 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
- import { t as syncModules } from "./sync-DZu1r34s.js";
3
+ import { t as syncModules } from "./sync-CazH5FX4.js";
4
4
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
5
- import { t as upgrade } from "./upgrade-Bpvi70zm.js";
5
+ import { t as upgrade } from "./upgrade-Cyx6ESpc.js";
6
6
  // src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
8
8
  check: {
@@ -1,3 +1,3 @@
1
1
  // src/cli/version.ts
2
- const VERSION = "0.35.0";
2
+ const VERSION = "0.37.0";
3
3
  export { VERSION as t };
@@ -1,8 +1,8 @@
1
- import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-CMENsp3d.js";
2
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-BOclyLFd.js";
3
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-C-8uduFM.js";
4
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-Bvv-Zrdh.js";
5
- import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-DaWA9eWS.js";
1
+ import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-CX1oYDZl.js";
2
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-CtJAkWT4.js";
3
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-D63bA3p4.js";
4
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-BspFMDdW.js";
5
+ import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-DhcSXkAC.js";
6
6
  import { n as FunctionContract } from "../function-contract-DgDBYbXu.js";
7
- import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-D9aV0Fvx.js";
7
+ import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-ChvuVimY.js";
8
8
  export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
@@ -2,7 +2,7 @@ import { n as dbError } from "../errors-B7tCfCvX.js";
2
2
  import { a as ok, r as err, t as AsyncResult } from "../result-8xza7w5W.js";
3
3
  import { i as isProblem, r as fromProblem } from "../problem-C0SVHhd3.js";
4
4
  import { EnvValidationError, parseEnv } from "../env/index.js";
5
- import { n as storageUpload, r as bindClient, t as memoryStorage } from "../ports-CmEXVqhg.js";
5
+ import { n as storageUpload, r as bindClient, t as memoryStorage } from "../ports-CkygVOeE.js";
6
6
  import { a as memoryEngine, n as liveEngine } from "../data-engine-BbqQwso_.js";
7
7
  import { n as whileSignedIn, t as defineController } from "../controller-BJmh7gFm.js";
8
8
  import { createBrowserClient } from "@supabase/ssr";
@@ -1,9 +1,9 @@
1
1
  import { t as AsyncResult } from "../../result-DTOQRyGY.js";
2
- import { T as UploadOptions, w as UploadBody } from "../../bucket-DvG66r5G.js";
3
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-BOclyLFd.js";
4
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-C-8uduFM.js";
5
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-Bvv-Zrdh.js";
6
- import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-D41lOoE8.js";
2
+ import { T as UploadOptions, w as UploadBody } from "../../bucket-CrsJNHzi.js";
3
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-CtJAkWT4.js";
4
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-D63bA3p4.js";
5
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-BspFMDdW.js";
6
+ import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-BsyX0KlT.js";
7
7
  import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-DRjtI1Ky.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  /** The part of React Native's `AppState` that `autoRefreshOnForeground` uses. */
@@ -1,7 +1,7 @@
1
1
  import { n as dbError } from "../../errors-B7tCfCvX.js";
2
2
  import { r as err, s as toDbError, t as AsyncResult } from "../../result-8xza7w5W.js";
3
- import { i as toBase64, r as fromBase64 } from "../../base64-CVyKHBBw.js";
4
- import { n as storageUpload, r as bindClient, t as memoryStorage } from "../../ports-CmEXVqhg.js";
3
+ import { a as toBase64, i as fromBase64 } from "../../base64-CEBz6-Jj.js";
4
+ import { n as storageUpload, r as bindClient, t as memoryStorage } from "../../ports-CkygVOeE.js";
5
5
  import { n as linkParams, r as signInWithOAuthBrowser, t as handleAuthDeepLink } from "../../auth-link-BmJsQG4a.js";
6
6
  import { t as expoPushToken } from "../../push-token-CO28k46S.js";
7
7
  // src/client/native/auto-refresh.ts
@@ -1,5 +1,5 @@
1
1
  import { n as dbError } from "./errors-B7tCfCvX.js";
2
- import { a as specKey, i as sessionUserId, r as claimedTenant, t as authModuleOf } from "./auth-module-CqXdm8qD.js";
2
+ import { a as specKey, i as sessionUserId, r as claimedTenant, t as authModuleOf } from "./auth-module-DkqapRZJ.js";
3
3
  import { r as invalidateTables } from "./user-change-Ngy8z1fZ.js";
4
4
  import { n as liveQuery, t as liveCount } from "./live-BVi3q4bX.js";
5
5
  // src/bindings/client.ts
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { D as BlockEventPattern, T as BlockEvent, o as EventHub } from "./events-DVt3Z9hw.js";
2
+ import { D as BlockEventPattern, T as BlockEvent, o as EventHub } from "./events-DddDlibJ.js";
3
3
  /** A CloudEvents 1.0 event. Extension attributes are lowercase alphanumerics. */
4
4
  interface CloudEvent<T = unknown> {
5
5
  readonly specversion: "1.0";
@@ -6,6 +6,7 @@ import { i as moneyOf, t as amountText } from "./money-codec-SKPm8FPw.js";
6
6
  // src/blocks/orders/codecs.ts
7
7
  const ORDER_STATUSES = [
8
8
  "pending_payment",
9
+ "confirmed",
9
10
  "paid",
10
11
  "fulfilled",
11
12
  "completed",
@@ -3,7 +3,7 @@ import { i as RowFields } from "./block-fields-Puv5m5D3.js";
3
3
  import { n as Money } from "./money-BgpAd7d3.js";
4
4
  import { n as Payment } from "./payments-BBGSGRQ7.js";
5
5
  import { p as TaxTransaction, u as TaxQuote } from "./tax-BD9dN1rx.js";
6
- declare const ORDER_STATUSES: readonly ["pending_payment", "paid", "fulfilled", "completed", "cancelled", "refunded"];
6
+ declare const ORDER_STATUSES: readonly ["pending_payment", "confirmed", "paid", "fulfilled", "completed", "cancelled", "refunded"];
7
7
  type OrderStatus = (typeof ORDER_STATUSES)[number];
8
8
  declare const FULFILLMENT_STATUSES: readonly ["pending", "shipped", "delivered", "cancelled"];
9
9
  type FulfillmentStatus = (typeof FULFILLMENT_STATUSES)[number];
@@ -3,7 +3,7 @@ import { c as optionalTemporal } from "../temporal-DKTdGK9i.js";
3
3
  import { t as temporal } from "../temporal-required-w_2u4EDp.js";
4
4
  import { a as ok, r as err, s as toDbError, t as AsyncResult } from "../result-8xza7w5W.js";
5
5
  import { t as ISO_4217_MINOR_UNITS } from "../iso4217-oKsif_hW.js";
6
- import { s as verifyStripeWebhook } from "../verify-DY_j4GPZ.js";
6
+ import { s as verifyStripeWebhook } from "../verify-96j8d5ps.js";
7
7
  import { _ as roundHalfEven, a as compareMoney, b as toDecimal, c as isMoney, d as money, f as moneyFromJson, g as parseMoney, h as negateMoney, i as applyRate, l as isRate, m as multiplyMoney, n as addMoney, o as formatMoney, p as moneyToJson, r as allocateMoney, s as isCurrency, t as CurrencyMismatchError, u as minorUnits, v as subtractMoney, y as sumMoney } from "../money-DH--bbYr.js";
8
8
  import { n as paymentProviderOf, t as invalidPaymentAmount } from "../payments-B4JchZuJ.js";
9
9
  import { t as lazyStripe } from "../stripe-DKRwRWew.js";
@@ -1,5 +1,5 @@
1
- import { m as Operation } from "./types-BkYEUWdz.js";
2
- import { a as PostgrestPlan } from "./postgrest-DZtM2nIS.js";
1
+ import { m as Operation } from "./types-BzIYSSWK.js";
2
+ import { a as PostgrestPlan } from "./postgrest-Bjain6nf.js";
3
3
  /**
4
4
  * Turns an IR operation into something a backend runs. An `Executor` for a new
5
5
  * backend usually pairs with a `Compiler` for it.
@@ -1,7 +1,7 @@
1
1
  import { o as problemResponse } from "./problem-C0SVHhd3.js";
2
- import { _ as withSupport, b as withServerContext, g as withTenant, s as createServer, x as serverCore, y as withSession } from "./adapter-CWzyKepA.js";
3
- import { d as withPrimaryPin } from "./refresh-B8t_KE3s.js";
4
- import { i as guard, n as defaultExpose } from "./respond-DLH4tD2d.js";
2
+ import { _ as withSupport, b as withServerContext, g as withTenant, s as createServer, x as serverCore, y as withSession } from "./adapter-ddQ9Hzka.js";
3
+ import { u as withPrimaryPin } from "./request-kind-tNDM5Z_o.js";
4
+ import { i as guard, n as defaultExpose } from "./respond-8A3EOo61.js";
5
5
  import { a as withAuthMode, i as withAuth, o as withJwtClaims, s as withUserClaims } from "./claims-DouHL7ZL.js";
6
6
  import { defineComposite, defineMiddleware } from "@supabase/middleware";
7
7
  // src/server/entries/db.ts
@@ -1,10 +1,10 @@
1
- import { O as AnyFunctions, k as AnyModels } from "./types-BkYEUWdz.js";
2
- import { r as AuthState } from "./resolve--LfVoOMg.js";
3
- import { t as BetterSupabase, y as Db } from "./define-ITQA71fw.js";
4
- import { l as ServerOptions, o as ServerContext, r as BetterServer, x as ReplicaState } from "./server-types-C2hlvhP4.js";
5
- import { t as ActiveSupport } from "./support-DxYI6sDM.js";
6
- import { n as SessionEntryConfig } from "./session-B4VasaAA.js";
7
- import { r as GuardOptions } from "./respond-BYOV7KZp.js";
1
+ import { O as AnyFunctions, k as AnyModels } from "./types-BzIYSSWK.js";
2
+ import { r as AuthState } from "./resolve-XlMQRUeG.js";
3
+ import { t as BetterSupabase, y as Db } from "./define-C_He1bQO.js";
4
+ import { l as ServerOptions, o as ServerContext, r as BetterServer, x as ReplicaState } from "./server-types-DpI82uNq.js";
5
+ import { t as ActiveSupport } from "./support-Dj5V2WTs.js";
6
+ import { n as SessionEntryConfig } from "./session-s-mUZ8RQ.js";
7
+ import { r as GuardOptions } from "./respond-D7kUatjc.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  import { Entry, SingleKeyEntry } from "@supabase/middleware";
10
10
  import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
@@ -1,6 +1,6 @@
1
- import { M as Casing } from "../types-BkYEUWdz.js";
2
- import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-D1P3VBOd.js";
3
- import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as SqlInput, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as TenantConfig, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-CderJRZf.js";
1
+ import { N as Casing } from "../types-BzIYSSWK.js";
2
+ import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-C7yjZttV.js";
3
+ import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as SqlInput, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as TenantConfig, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-D6OZQdcT.js";
4
4
  import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-BGwLJ3IB.js";
5
5
  import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-DVukMbRa.js";
6
6
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-h-3UbKcw.js";
2
- import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-DQP0IvDX.js";
1
+ import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-sd6RuTju.js";
2
+ import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-Dx3bEPlX.js";
3
3
  import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-CqTr_N1n.js";
4
- import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-D9YrkoAy.js";
4
+ import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-DKULdpWB.js";
5
5
  import { r as FIELD_FORMATS } from "../field-formats-Cap-V7UP.js";
6
- import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-BZWSFxkG.js";
6
+ import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-uSliwPS6.js";
7
7
  import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-D9eVL_xi.js";
8
8
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,5 +1,5 @@
1
1
  import { t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
2
- import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-D9YrkoAy.js";
2
+ import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-DKULdpWB.js";
3
3
  // src/config/names.ts
4
4
  /** The steps `better-supabase gen` runs, in the order it runs them. */
5
5
  const GEN_TASKS = [
@@ -1,8 +1,8 @@
1
- import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-h-3UbKcw.js";
2
- import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-DQP0IvDX.js";
1
+ import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-sd6RuTju.js";
2
+ import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-Dx3bEPlX.js";
3
3
  import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
4
4
  import { o as tenantNames } from "./entity-naming-BES3pkQI.js";
5
- import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-D9YrkoAy.js";
5
+ import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-DKULdpWB.js";
6
6
  import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-D9eVL_xi.js";
7
7
  // src/config/authorization.ts
8
8
  /**
@@ -3,10 +3,10 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { t as StandardSchemaV1 } from "./standard-DRX6Ch1j.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "./block-fields-Puv5m5D3.js";
5
5
  import { n as Logger } from "./logger-0LfhvwE4.js";
6
- import { i as CredentialRef, r as CredentialProvider } from "./provider-BI0KC4u5.js";
7
- import { r as BlockTemporalOptions } from "./block-helpers-disoUWCp.js";
8
- import { t as BlockTransport } from "./block-transport-BEtC_Kis.js";
9
- import { n as BlockHooks } from "./block-hooks-DrA_d1dJ.js";
6
+ import { i as CredentialRef, r as CredentialProvider } from "./provider-CVlXXbda.js";
7
+ import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
8
+ import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
9
+ import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
10
10
  type ConnectorTransport = "http" | "sse";
11
11
  /**
12
12
  * `none`, OAuth per user (a grant each), or a header from the server's
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { M as Casing, P as ClaimsMeta, T as AccessBucketPolicy, _t as BucketLifecycle, j as BucketPolicyName, ot as SchemaMeta } from "./types-BkYEUWdz.js";
3
- import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-D1P3VBOd.js";
4
- import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-COmMkx2x.js";
2
+ import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-BzIYSSWK.js";
3
+ import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-C7yjZttV.js";
4
+ import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-CDw9YGVh.js";
5
5
  import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
6
6
  import { i as SubjectsConfig } from "./subjects-BGwLJ3IB.js";
7
7
  import { i as FIELD_FORMAT_NAMES, s as FieldFormatName } from "./field-formats-DVukMbRa.js";
@@ -1,12 +1,12 @@
1
- import { $t as Authorizer, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationContext, Ht as AnyAuthorizer, Jt as AuthorizationPurpose, Kt as AuthorizationIntent, Qt as AuthorizationSubject, T as AccessBucketPolicy, Ut as AuthorizationCallKind, Wt as AuthorizationChange, Xt as AuthorizationResource, Yt as AuthorizationRequest, Zt as AuthorizationResourceSource, en as AuthorizerRuntime, nn as PermissionRef, qt as AuthorizationOutcome, rn as RequestMemo, tn as AuthzVersionCache } from "../types-BkYEUWdz.js";
2
- import { r as CredentialProvider } from "../provider-BI0KC4u5.js";
3
- import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-D1P3VBOd.js";
4
- import { i as SessionSnapshot } from "../snapshot-BGsJw9xn.js";
5
- import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-CxwsRnfV.js";
6
- import { n as ApprovalOptions } from "../server-types-C2hlvhP4.js";
7
- import { s as ApiKeyResolverOptions } from "../api-keys-DbIbkGxx.js";
8
- import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-ZQZMQF4l.js";
9
- import { n as BlockTables, t as BlockTable } from "../block-tables-pj3eHfoP.js";
1
+ import { $t as AuthorizationSubject, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationChange, Jt as AuthorizationOutcome, Kt as AuthorizationContext, Qt as AuthorizationResourceSource, T as AccessBucketPolicy, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, en as Authorizer, in as RequestMemo, nn as AuthzVersionCache, qt as AuthorizationIntent, rn as PermissionRef, tn as AuthorizerRuntime } from "../types-BzIYSSWK.js";
2
+ import { m as SessionSnapshot } from "../resolve-XlMQRUeG.js";
3
+ import { r as CredentialProvider } from "../provider-CVlXXbda.js";
4
+ import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-C7yjZttV.js";
5
+ import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-CR8TVvqo.js";
6
+ import { n as ApprovalOptions } from "../server-types-DpI82uNq.js";
7
+ import { s as ApiKeyResolverOptions } from "../api-keys-BncNDlWG.js";
8
+ import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-DrDCN45q.js";
9
+ import { n as BlockTables, t as BlockTable } from "../block-tables-DfomofFv.js";
10
10
  /**
11
11
  * The types an authorization library implements or reads, in one entry with no
12
12
  * runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-Bvv-Zrdh.js";
1
+ import { a as ClientAuth } from "./bind-BspFMDdW.js";
2
2
  /**
3
3
  * A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
4
4
  * follow the external-store contract, so React's `useSyncExternalStore`, a Vue
@@ -1,5 +1,5 @@
1
1
  import { f as Result } from "./result-DTOQRyGY.js";
2
- import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-COmMkx2x.js";
2
+ import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-CDw9YGVh.js";
3
3
  import { StandardSchemaV1 } from "@standard-schema/spec";
4
4
  /** A record a conversion reads from or creates: its subject type and id. */
5
5
  interface ConversionRef {
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-CderJRZf.js";
3
- import { E as CreateDesign, b as DesignChange } from "../index-BQlLxOj5.js";
4
- import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-hTj5OuFo.js";
2
+ import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-D6OZQdcT.js";
3
+ import { E as CreateDesign, b as DesignChange } from "../index-CRwpDGxd.js";
4
+ import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-DLXTmZtm.js";
5
5
  import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
6
6
  /** What `checkDesign` returns. */
7
7
  export type DesignCheck = {
@@ -1,6 +1,6 @@
1
- import { k as APP_ON_DELETE_ACTIONS } from "../instances-D9YrkoAy.js";
2
- import { m as diffDesigns } from "../preset-B_sSI9vg.js";
3
- import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-DVlXQGEp.js";
1
+ import { k as APP_ON_DELETE_ACTIONS } from "../instances-DKULdpWB.js";
2
+ import { m as diffDesigns } from "../preset-oc_liUHz.js";
3
+ import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-Cs0kz5OP.js";
4
4
  // src/create/column-kinds.ts
5
5
  /** The groups of the column type picker, in the order it shows them. */
6
6
  const KIND_GROUPS = [
@@ -1,7 +1,7 @@
1
- import { ot as SchemaMeta } from "../../types-BkYEUWdz.js";
2
- import { Tt as PresetInput } from "../../context-CderJRZf.js";
3
- import { E as CreateDesign } from "../../index-BQlLxOj5.js";
4
- import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-hTj5OuFo.js";
1
+ import { st as SchemaMeta } from "../../types-BzIYSSWK.js";
2
+ import { Tt as PresetInput } from "../../context-D6OZQdcT.js";
3
+ import { E as CreateDesign } from "../../index-CRwpDGxd.js";
4
+ import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-DLXTmZtm.js";
5
5
  import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
6
6
  /**
7
7
  * The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
@@ -1,5 +1,5 @@
1
- import { y as appDefaultError } from "../../instances-D9YrkoAy.js";
2
- import { n as loadProject } from "../../project-DVlXQGEp.js";
1
+ import { y as appDefaultError } from "../../instances-DKULdpWB.js";
2
+ import { n as loadProject } from "../../project-Cs0kz5OP.js";
3
3
  import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
4
4
  import { t as defineApi } from "../../api-wwix_K5c.js";
5
5
  // src/create/lite/apply.ts
@@ -1,8 +1,8 @@
1
1
  import { t as AsyncResult } from "../result-DTOQRyGY.js";
2
- import { Ct as Events, P as CredentialEventData } from "../events-DVt3Z9hw.js";
3
- import { a as CredentialSubject, c as SetCredentialOptions, d as credentialRefInTenant, f as foreignCredentialRef, i as CredentialRef, l as StartAuthorizationOptions, m as tenantCredentialRef, n as CredentialCapabilities, o as CredentialToken, p as subjectFor, r as CredentialProvider, s as GetTokenOptions, t as CompleteAuthorizationOptions, u as StartAuthorizationResult } from "../provider-BI0KC4u5.js";
4
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-BEtC_Kis.js";
5
- import { a as vaultCredentials, i as VaultInboundScheme, n as VaultCredentials, r as VaultCredentialsOptions, t as VaultCredentialRef } from "../vault-yGQD5Rdl.js";
2
+ import { Ct as Events, P as CredentialEventData } from "../events-DddDlibJ.js";
3
+ import { a as CredentialSubject, c as SetCredentialOptions, d as credentialRefInTenant, f as foreignCredentialRef, i as CredentialRef, l as StartAuthorizationOptions, m as tenantCredentialRef, n as CredentialCapabilities, o as CredentialToken, p as subjectFor, r as CredentialProvider, s as GetTokenOptions, t as CompleteAuthorizationOptions, u as StartAuthorizationResult } from "../provider-CVlXXbda.js";
4
+ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-CDmOUuLZ.js";
5
+ import { a as vaultCredentials, i as VaultInboundScheme, n as VaultCredentials, r as VaultCredentialsOptions, t as VaultCredentialRef } from "../vault-CbhvnoVC.js";
6
6
  /**
7
7
  * One provider over several: each call goes to the provider whose `name` is the
8
8
  * ref's `provider`. A ref no provider handles fails with `invalid_input`
@@ -4,7 +4,7 @@ import { n as event, t as defineEvents } from "../event-map-DxfsFgQT.js";
4
4
  import { U as rpcTransport, V as dbTransport, W as sqlTransport, o as blockCall } from "../block-helpers-I7UzjNEf.js";
5
5
  import { a as tenantCredentialRef, i as subjectFor, n as credentialRefInTenant, r as foreignCredentialRef } from "../provider-B6qpleR9.js";
6
6
  import { n as hmacHex, r as timingSafeEqual } from "../hmac-DNcfpmI9.js";
7
- import { o as verifySharedSecret, s as verifyWebhook } from "../signatures-CBn7w4VR.js";
7
+ import { o as verifySharedSecret, s as verifyWebhook } from "../signatures-DK01D2S7.js";
8
8
  import { n as revokeIfConfigured, t as credentialRouter } from "../compose-BRBlPSEY.js";
9
9
  // src/credentials/vault.ts
10
10
  const MAX_CACHED = 256;
@@ -1,6 +1,6 @@
1
1
  import { n as dbError } from "./errors-B7tCfCvX.js";
2
2
  import { a as methodNotAllowed, o as problemResponse } from "./problem-C0SVHhd3.js";
3
- import { o as verifySharedSecret } from "./signatures-CBn7w4VR.js";
3
+ import { o as verifySharedSecret } from "./signatures-DK01D2S7.js";
4
4
  // src/core/cron-route.ts
5
5
  /**
6
6
  * A `GET` or `POST` handler for a cron caller such as Vercel Cron. It throws
@@ -1,5 +1,5 @@
1
1
  import { b as DbError, f as Result, x as DbErrorKind } from "./result-DTOQRyGY.js";
2
- import { Bt as Executor } from "./types-BkYEUWdz.js";
2
+ import { Vt as Executor } from "./types-BzIYSSWK.js";
3
3
  /** A queued local change: PowerSync's `CrudEntry`. */
4
4
  interface CrudEntryLike {
5
5
  /** `PUT`, `PATCH` or `DELETE` (PowerSync's `UpdateType`). */
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, b as DbError, p as ThrowMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { t as StandardSchemaV1 } from "./standard-DRX6Ch1j.js";
4
- import { Bt as Executor, Ct as ApplyExtension, Ft as RequestContext, It as WithExtension, K as Insert, O as AnyFunctions, St as AnyPlugin, Tt as ExtensionOf, Z as PrimaryKeyValue, a as CountMode, at as Schema, dt as TableMeta, ht as Update, it as Row, k as AnyModels, m as Operation, mt as UniqueWhere, nt as Relations, ot as SchemaMeta, pt as UniqueKeyName, st as Simplify, tt as RelationTypes, ut as TableKey } from "./types-BkYEUWdz.js";
5
- import { a as EventHandler, c as MutationNotice, d as RpcNotice, o as EventHub, s as EventName } from "./events-DVt3Z9hw.js";
4
+ import { Ct as AnyPlugin, Et as ExtensionOf, It as RequestContext, Lt as WithExtension, O as AnyFunctions, Q as PrimaryKeyValue, Vt as Executor, a as CountMode, at as Row, ct as Simplify, dt as TableKey, ft as TableMeta, gt as Update, ht as UniqueWhere, k as AnyModels, m as Operation, mt as UniqueKeyName, nt as RelationTypes, ot as Schema, q as Insert, rt as Relations, st as SchemaMeta, wt as ApplyExtension } from "./types-BzIYSSWK.js";
5
+ import { a as EventHandler, c as MutationNotice, d as RpcNotice, o as EventHub, s as EventName } from "./events-DddDlibJ.js";
6
6
  import { n as Logger } from "./logger-0LfhvwE4.js";
7
- import { j as StorageApi, n as Bucket, r as BucketClient } from "./bucket-DvG66r5G.js";
8
- import { h as FilterQuery } from "./filter-query-DV-x8fio.js";
9
- import { a as PostgrestPlan, i as PostgrestCompileOptions } from "./postgrest-DZtM2nIS.js";
7
+ import { j as StorageApi, n as Bucket, r as BucketClient } from "./bucket-CrsJNHzi.js";
8
+ import { h as FilterQuery } from "./filter-query-Xj40B5KT.js";
9
+ import { a as PostgrestPlan, i as PostgrestCompileOptions } from "./postgrest-Bjain6nf.js";
10
10
  import { SupabaseClient } from "@supabase/supabase-js";
11
11
  /**
12
12
  * What a mutation changed: a table, the primary keys of its rows and the
@@ -19,7 +19,7 @@ import { t as simplify } from "./simplify-BzThKn5b.js";
19
19
  import { a as invalidTuning, i as deadline, n as postgrestExecutor, o as tuningOf, r as NO_TUNING } from "./postgrest-executor-lf8Mt4J0.js";
20
20
  import { n as isQuerySpec, r as specTables, t as createSpecs } from "./spec-6Vr7sc0Z.js";
21
21
  import { n as checkParams, o as isReadSet, r as containsPlaceholder, t as bindParams } from "./read-set-DEDoIHMM.js";
22
- import { a as toBase64Url, t as base64ToText } from "./base64-CVyKHBBw.js";
22
+ import { o as toBase64Url, t as base64ToText } from "./base64-CEBz6-Jj.js";
23
23
  import { n as validate } from "./standard-BD2aOUsf.js";
24
24
  import { n as StatsRecorder, r as recordStats } from "./stats-BTJgRMEp.js";
25
25
  // src/core/batch.ts
@@ -2,22 +2,22 @@
2
2
  import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { t as StandardSchemaV1$1 } from "./standard-DRX6Ch1j.js";
4
4
  import { r as FieldsOf } from "./block-fields-Puv5m5D3.js";
5
- import { $ as RecordRef } from "./types-BkYEUWdz.js";
6
- import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching, o as EventHub, wt as MergedEventMap, xt as EventMapOf } from "./events-DVt3Z9hw.js";
5
+ import { et as RecordRef } from "./types-BzIYSSWK.js";
6
+ import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching, o as EventHub, wt as MergedEventMap, xt as EventMapOf } from "./events-DddDlibJ.js";
7
7
  import { n as Logger } from "./logger-0LfhvwE4.js";
8
- import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-BI0KC4u5.js";
9
- import { a as BlockTenantOptions, n as BlockOptions, r as BlockTemporalOptions } from "./block-helpers-disoUWCp.js";
10
- import { r as DbTransportSource, t as BlockTransport } from "./block-transport-BEtC_Kis.js";
11
- import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-DrA_d1dJ.js";
12
- import { f as AiFiles, y as UploadClaimStorage } from "./types-C8UyJOPJ.js";
13
- import { _ as JobHandler } from "./types-Dh2OGEW5.js";
8
+ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-CVlXXbda.js";
9
+ import { a as BlockTenantOptions, n as BlockOptions, r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
10
+ import { r as DbTransportSource, t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
11
+ import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
12
+ import { f as AiFiles, y as UploadClaimStorage } from "./types-6PMaLIyw.js";
13
+ import { _ as JobHandler } from "./types-BdhE7I8Z.js";
14
14
  import { t as BlockOptionsSchema } from "./options-CRwTY_q2.js";
15
15
  import { t as Author } from "./block-authors-C5z3tGVu.js";
16
- import { d as BlockInstanceSurface } from "./define-ITQA71fw.js";
17
- import { A as TtlPreset, C as TransformOptions, j as StorageApi, l as ImageTransform } from "./bucket-DvG66r5G.js";
16
+ import { d as BlockInstanceSurface } from "./define-C_He1bQO.js";
17
+ import { A as TtlPreset, C as TransformOptions, j as StorageApi, l as ImageTransform } from "./bucket-CrsJNHzi.js";
18
18
  import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec } from "./table-schema-CwXg7oBz.js";
19
- import { i as EventSink } from "./cloud-event-DXWmXrus.js";
20
- import { g as Workflows } from "./workflows-BljkWRxE.js";
19
+ import { i as EventSink } from "./cloud-event-BjgxkfJJ.js";
20
+ import { g as Workflows } from "./workflows-BI4yKqFh.js";
21
21
  import { StandardSchemaV1 } from "@standard-schema/spec";
22
22
  /** A noun in its singular and plural snake_case forms, e.g. `work_item`. */
23
23
  interface EntityNoun {
@@ -1,9 +1,9 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { n as Logger } from "./logger-0LfhvwE4.js";
4
- import { r as BlockTemporalOptions } from "./block-helpers-disoUWCp.js";
5
- import { t as BlockTransport } from "./block-transport-BEtC_Kis.js";
6
- import { n as BlockHooks } from "./block-hooks-DrA_d1dJ.js";
4
+ import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
5
+ import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
6
+ import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
7
7
  interface DocumentsOptions extends BlockTemporalOptions {
8
8
  readonly transport: BlockTransport;
9
9
  /**