better-supabase 0.62.0 → 0.63.1

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 (454) hide show
  1. package/dist/{activities-BMQuBkrQ.d.ts → activities-DFL2uhTK.d.ts} +1 -1
  2. package/dist/{agents-NaSREeo_.d.ts → agents-Bceu5a4z.d.ts} +1 -1
  3. package/dist/{agents-CRTcqx6K.d.ts → agents-C8BwEXD0.d.ts} +6 -6
  4. package/dist/{ai-cache-CKOJ9cLZ.d.ts → ai-cache-Dnj5iteF.d.ts} +1 -1
  5. package/dist/{ai-chat-C8FEgeTd.d.ts → ai-chat-CVmnJZcP.d.ts} +1 -1
  6. package/dist/{ai-schedules-DdoefSrp.d.ts → ai-schedules-j51dDzm3.d.ts} +2 -2
  7. package/dist/ai-sdk/agents/index.d.ts +2 -2
  8. package/dist/ai-sdk/batches/index.d.ts +1 -1
  9. package/dist/ai-sdk/cache/index.d.ts +1 -1
  10. package/dist/ai-sdk/chat/index.d.ts +2 -2
  11. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  12. package/dist/ai-sdk/index.d.ts +5 -5
  13. package/dist/ai-sdk/memory/index.d.ts +3 -3
  14. package/dist/ai-sdk/workflow/index.d.ts +4 -4
  15. package/dist/{api-C5GmF1ZU.js → api-C506eYSc.js} +1 -1
  16. package/dist/{app-tables-C0w_j1sJ.d.ts → app-tables-Br5Khxij.d.ts} +1 -1
  17. package/dist/{assistant-BQAjAXDe.d.ts → assistant-JXmSCGyW.d.ts} +2 -2
  18. package/dist/{authorization-DKxttkik.d.ts → authorization-k0Y3L701.d.ts} +1 -1
  19. package/dist/{bind-DiQyvXnj.d.ts → bind-CuRPlZYY.d.ts} +3 -3
  20. package/dist/{block-env-aG5V88tR.d.ts → block-env-hdFBj6FQ.d.ts} +4 -4
  21. package/dist/{block-tables-lpnW9xMs.d.ts → block-tables-1XNfpOPP.d.ts} +1 -1
  22. package/dist/blocks/access-requests/index.d.ts +1 -1
  23. package/dist/blocks/accounting/index.d.ts +1 -1
  24. package/dist/blocks/acknowledgements/index.d.ts +1 -1
  25. package/dist/blocks/activities/index.d.ts +3 -3
  26. package/dist/blocks/advisories/index.d.ts +1 -1
  27. package/dist/blocks/agent-checkout/index.d.ts +2 -2
  28. package/dist/blocks/agents/index.d.ts +3 -3
  29. package/dist/blocks/ai-cache/index.d.ts +2 -2
  30. package/dist/blocks/ai-chat/index.d.ts +3 -3
  31. package/dist/blocks/ai-evals/index.d.ts +1 -1
  32. package/dist/blocks/ai-files/index.d.ts +1 -1
  33. package/dist/blocks/ai-guardrails/index.d.ts +1 -1
  34. package/dist/blocks/ai-keys/index.d.ts +1 -1
  35. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  36. package/dist/blocks/announcements/index.d.ts +4 -4
  37. package/dist/blocks/api-keys/index.d.ts +1 -1
  38. package/dist/blocks/appraisals/index.d.ts +1 -1
  39. package/dist/blocks/approvals/index.d.ts +1 -1
  40. package/dist/blocks/assets/index.d.ts +2 -2
  41. package/dist/blocks/assignment/index.d.ts +1 -1
  42. package/dist/blocks/attachments/index.d.ts +6 -6
  43. package/dist/blocks/audit/index.d.ts +2 -2
  44. package/dist/blocks/automations/index.d.ts +3 -3
  45. package/dist/blocks/banking/index.d.ts +1 -1
  46. package/dist/blocks/billable-time/index.d.ts +1 -1
  47. package/dist/blocks/billing/index.d.ts +2 -2
  48. package/dist/blocks/bookings/index.d.ts +3 -3
  49. package/dist/blocks/bulk-actions/index.d.ts +2 -2
  50. package/dist/blocks/calendar/index.d.ts +3 -3
  51. package/dist/blocks/care/index.d.ts +27 -27
  52. package/dist/blocks/care-plans/index.d.ts +3 -3
  53. package/dist/blocks/cases/index.d.ts +3 -3
  54. package/dist/blocks/catalog/index.d.ts +2 -2
  55. package/dist/blocks/channels/index.d.ts +1 -1
  56. package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
  57. package/dist/blocks/cms/index.d.ts +5 -5
  58. package/dist/blocks/collaboration/index.d.ts +6 -6
  59. package/dist/blocks/collections/index.d.ts +1 -1
  60. package/dist/blocks/comments/index.d.ts +2 -2
  61. package/dist/blocks/commerce/index.d.ts +6 -6
  62. package/dist/blocks/commissions/index.d.ts +1 -1
  63. package/dist/blocks/compliance/index.d.ts +1 -1
  64. package/dist/blocks/connectors/index.d.ts +1 -1
  65. package/dist/blocks/consents/index.d.ts +2 -2
  66. package/dist/blocks/contacts/index.d.ts +2 -2
  67. package/dist/blocks/content/index.d.ts +2 -2
  68. package/dist/blocks/contracts/index.d.ts +1 -1
  69. package/dist/blocks/courses/index.d.ts +2 -2
  70. package/dist/blocks/created-by/index.d.ts +2 -2
  71. package/dist/blocks/crm/index.d.ts +16 -16
  72. package/dist/blocks/crm/index.js +1 -1
  73. package/dist/blocks/custom-fields/index.d.ts +1 -1
  74. package/dist/blocks/dam/index.d.ts +2 -2
  75. package/dist/blocks/data-lifecycle/index.d.ts +2 -2
  76. package/dist/blocks/deadlines/index.d.ts +1 -1
  77. package/dist/blocks/deals/index.d.ts +1 -1
  78. package/dist/blocks/dispatch/index.d.ts +2 -2
  79. package/dist/blocks/document-templates/index.d.ts +2 -2
  80. package/dist/blocks/documents/index.d.ts +1 -1
  81. package/dist/blocks/domains/index.d.ts +1 -1
  82. package/dist/blocks/donations/index.d.ts +1 -1
  83. package/dist/blocks/drive/index.d.ts +5 -5
  84. package/dist/blocks/e-prescribing/index.d.ts +1 -1
  85. package/dist/blocks/employees/index.d.ts +1 -1
  86. package/dist/blocks/enrichment/index.d.ts +1 -1
  87. package/dist/blocks/enrollments/index.d.ts +2 -2
  88. package/dist/blocks/entitlements/index.d.ts +3 -3
  89. package/dist/blocks/events/index.d.ts +4 -4
  90. package/dist/blocks/expenses/index.d.ts +1 -1
  91. package/dist/blocks/field-history/index.d.ts +1 -1
  92. package/dist/blocks/filespace/index.d.ts +8 -8
  93. package/dist/blocks/finance/index.d.ts +5 -5
  94. package/dist/blocks/flags/index.d.ts +1 -1
  95. package/dist/blocks/forecasts/index.d.ts +1 -1
  96. package/dist/blocks/forms/index.d.ts +3 -3
  97. package/dist/blocks/funding/index.d.ts +2 -2
  98. package/dist/blocks/goals/index.d.ts +1 -1
  99. package/dist/blocks/governance/index.d.ts +4 -4
  100. package/dist/blocks/guests/index.d.ts +1 -1
  101. package/dist/blocks/hiring/index.d.ts +1 -1
  102. package/dist/blocks/identities/index.d.ts +1 -1
  103. package/dist/blocks/imports/index.d.ts +2 -2
  104. package/dist/blocks/inbox/index.d.ts +6 -6
  105. package/dist/blocks/incidents/index.d.ts +1 -1
  106. package/dist/blocks/index.d.ts +3 -3
  107. package/dist/blocks/inspections/index.d.ts +2 -2
  108. package/dist/blocks/inventory/index.d.ts +1 -1
  109. package/dist/blocks/invoices/index.d.ts +1 -1
  110. package/dist/blocks/knowledge/index.d.ts +2 -2
  111. package/dist/blocks/lead-scoring/index.d.ts +2 -2
  112. package/dist/blocks/learning/index.d.ts +3 -3
  113. package/dist/blocks/leases/index.d.ts +1 -1
  114. package/dist/blocks/leave/index.d.ts +1 -1
  115. package/dist/blocks/ledger/index.d.ts +1 -1
  116. package/dist/blocks/legal-entities/index.d.ts +2 -2
  117. package/dist/blocks/lims/index.d.ts +2 -2
  118. package/dist/blocks/mail-sync/index.d.ts +3 -3
  119. package/dist/blocks/maintenance/index.d.ts +2 -2
  120. package/dist/blocks/manufacturing/index.d.ts +2 -2
  121. package/dist/blocks/medications/index.d.ts +1 -1
  122. package/dist/blocks/meetings/index.d.ts +3 -3
  123. package/dist/blocks/memberships/index.d.ts +2 -2
  124. package/dist/blocks/memory/index.d.ts +3 -3
  125. package/dist/blocks/messaging/index.d.ts +5 -5
  126. package/dist/blocks/metrics/index.d.ts +2 -2
  127. package/dist/blocks/mfa/index.d.ts +2 -2
  128. package/dist/blocks/moderation/index.d.ts +2 -2
  129. package/dist/blocks/notifications/index.d.ts +6 -6
  130. package/dist/blocks/notifications/index.js +1 -1
  131. package/dist/blocks/numbering/index.d.ts +1 -1
  132. package/dist/blocks/oauth-server/index.d.ts +1 -1
  133. package/dist/blocks/observations/index.d.ts +2 -2
  134. package/dist/blocks/onboarding/index.d.ts +2 -2
  135. package/dist/blocks/option-sets/index.d.ts +2 -2
  136. package/dist/blocks/orders/index.d.ts +2 -2
  137. package/dist/blocks/organizations/index.d.ts +2 -2
  138. package/dist/blocks/outbox/index.d.ts +1 -1
  139. package/dist/blocks/passes/index.d.ts +2 -2
  140. package/dist/blocks/payroll-export/index.d.ts +2 -2
  141. package/dist/blocks/people/index.d.ts +7 -7
  142. package/dist/blocks/periods/index.d.ts +1 -1
  143. package/dist/blocks/permissions/index.d.ts +3 -3
  144. package/dist/blocks/pipelines/index.d.ts +2 -2
  145. package/dist/blocks/posts/index.d.ts +2 -2
  146. package/dist/blocks/procurement/index.d.ts +5 -5
  147. package/dist/blocks/profiles/index.d.ts +1 -1
  148. package/dist/blocks/projects/index.d.ts +7 -7
  149. package/dist/blocks/promotions/index.d.ts +1 -1
  150. package/dist/blocks/prompts/index.d.ts +1 -1
  151. package/dist/blocks/push/index.d.ts +2 -2
  152. package/dist/blocks/qualifications/index.d.ts +2 -2
  153. package/dist/blocks/queue/index.d.ts +3 -3
  154. package/dist/blocks/queue/index.js +1 -1
  155. package/dist/blocks/quotes/index.d.ts +1 -1
  156. package/dist/blocks/rank/index.d.ts +2 -2
  157. package/dist/blocks/reactions/index.d.ts +4 -4
  158. package/dist/blocks/recruiting/index.d.ts +4 -4
  159. package/dist/blocks/referrals/index.d.ts +1 -1
  160. package/dist/blocks/relations/index.d.ts +1 -1
  161. package/dist/blocks/reminders/index.d.ts +1 -1
  162. package/dist/blocks/reviews/index.d.ts +1 -1
  163. package/dist/blocks/rfqs/index.d.ts +2 -2
  164. package/dist/blocks/risks/index.d.ts +2 -2
  165. package/dist/blocks/saas/index.d.ts +12 -12
  166. package/dist/blocks/saas/index.js +1 -1
  167. package/dist/blocks/sales/index.d.ts +1 -1
  168. package/dist/blocks/saved-views/index.d.ts +2 -2
  169. package/dist/blocks/scheduling/index.d.ts +5 -5
  170. package/dist/blocks/scores/index.d.ts +2 -2
  171. package/dist/blocks/search/index.d.ts +3 -3
  172. package/dist/blocks/security-events/index.d.ts +1 -1
  173. package/dist/blocks/segments/index.d.ts +2 -2
  174. package/dist/blocks/sequences/index.d.ts +3 -3
  175. package/dist/blocks/service/index.d.ts +7 -7
  176. package/dist/blocks/service-accounts/index.d.ts +1 -1
  177. package/dist/blocks/sessions/index.d.ts +2 -2
  178. package/dist/blocks/settings/index.d.ts +2 -2
  179. package/dist/blocks/share-links/index.d.ts +1 -1
  180. package/dist/blocks/shifts/index.d.ts +2 -2
  181. package/dist/blocks/shipments/index.d.ts +1 -1
  182. package/dist/blocks/signatures/index.d.ts +2 -2
  183. package/dist/blocks/signing-keys/index.d.ts +1 -1
  184. package/dist/blocks/sla/index.d.ts +1 -1
  185. package/dist/blocks/sso/index.d.ts +1 -1
  186. package/dist/blocks/state-machine/index.d.ts +1 -1
  187. package/dist/blocks/subjects/index.d.ts +2 -2
  188. package/dist/blocks/support/index.d.ts +5 -5
  189. package/dist/blocks/tags/index.d.ts +2 -2
  190. package/dist/blocks/tasks/index.d.ts +2 -2
  191. package/dist/blocks/tax/index.d.ts +2 -2
  192. package/dist/blocks/teams/index.d.ts +1 -1
  193. package/dist/blocks/templates/index.d.ts +2 -2
  194. package/dist/blocks/tills/index.d.ts +1 -1
  195. package/dist/blocks/time-entries/index.d.ts +2 -2
  196. package/dist/blocks/timeline/index.d.ts +1 -1
  197. package/dist/blocks/trash/index.d.ts +1 -1
  198. package/dist/blocks/undo/index.d.ts +2 -2
  199. package/dist/blocks/updated-at/index.d.ts +2 -2
  200. package/dist/blocks/usage/index.d.ts +3 -3
  201. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  202. package/dist/blocks/versions/index.d.ts +1 -1
  203. package/dist/blocks/waitlist/index.d.ts +1 -1
  204. package/dist/blocks/warehouse/index.d.ts +1 -1
  205. package/dist/blocks/warranty/index.d.ts +1 -1
  206. package/dist/blocks/webhooks/index.d.ts +2 -2
  207. package/dist/blocks/workflow-editor/index.d.ts +4 -4
  208. package/dist/blocks/workflows/index.d.ts +4 -4
  209. package/dist/{blocks-BaVwMDrs.d.ts → blocks-C2F_SycJ.d.ts} +4 -4
  210. package/dist/{bookings-6dC83XE6.d.ts → bookings-DIQGDex_.d.ts} +1 -1
  211. package/dist/{build-C0BLapAI.js → build-DUasKASQ.js} +1 -1
  212. package/dist/claims/index.d.ts +5 -5
  213. package/dist/{claims-source-yTqGqUDc.d.ts → claims-source-fUk4pR24.d.ts} +1 -1
  214. package/dist/cli/{add-DLYO-lcP.js → add-B5Ras98V.js} +2 -2
  215. package/dist/cli/{add-DH4qqKNb.js → add-BymOCZ8D.js} +9 -9
  216. package/dist/cli/add-CEqHL96B.js +1 -0
  217. package/dist/cli/{app-table-files--ulI7C3Z.js → app-table-files-DAt5YA7_.js} +3 -3
  218. package/dist/cli/{app-tables-CQVNZglP.js → app-tables-CTZeU4F2.js} +2 -2
  219. package/dist/cli/{backfill-Byn-Pe2a.js → backfill-mm77568B.js} +1 -1
  220. package/dist/cli/bin.js +1 -1
  221. package/dist/cli/{blocks-BATYI3l9.js → blocks-BHUYzWRT.js} +1 -1
  222. package/dist/cli/{blocks-D7DYKEOZ.js → blocks-D2Vir61A.js} +1 -1
  223. package/dist/cli/{cache-D6iHVy6b.js → cache-DKdjMfP9.js} +1 -1
  224. package/dist/cli/{codemod-PLqZ1YGz.js → codemod-Dne7b20w.js} +4 -4
  225. package/dist/cli/{codemod-naming-BgEIRJLM.js → codemod-naming-ByeMo_ll.js} +1 -1
  226. package/dist/cli/{column-renames-B1bMtdIF.js → column-renames-FlO8U6SA.js} +2 -2
  227. package/dist/cli/{content-mapper-BGus1ryq.js → content-mapper-VUqqAubX.js} +1 -1
  228. package/dist/cli/{dev-Bd6RJwLg.js → dev-CI10aUMK.js} +3 -3
  229. package/dist/cli/{doctor-DW_QzhsK.js → doctor-DwEBENcA.js} +32 -24
  230. package/dist/cli/{emit-DGhalWTA.js → emit-Ds-4pNsQ.js} +2 -2
  231. package/dist/cli/{gen-BjMSXpcG.js → gen-Dqnmr3yO.js} +3 -3
  232. package/dist/cli/{gen-tasks-D3kLr5we.js → gen-tasks-CaqMHY4E.js} +9 -9
  233. package/dist/cli/index.d.ts +1 -1
  234. package/dist/cli/index.js +7 -7
  235. package/dist/cli/{init-DeGm-42D.js → init-Dsi-1Q9D.js} +8 -8
  236. package/dist/cli/{live-CJ3gBXTW.js → live-gVsjEaEB.js} +2 -2
  237. package/dist/cli/{mcp-C7bG8fs9.js → mcp-DsTQAIyD.js} +2 -2
  238. package/dist/cli/{memo-backend-BbAaoaCp.js → memo-backend-DvchDMYn.js} +1 -1
  239. package/dist/cli/{metadata-Da7lPV1G.js → metadata-Dm63aecV.js} +4 -4
  240. package/dist/cli/{migrate-adO6TGQx.js → migrate-auWUrtTl.js} +1 -1
  241. package/dist/cli/{migration-safety-TjFxbPdK.js → migration-safety-QkRu7ef8.js} +1 -1
  242. package/dist/cli/{module-migration-BOwCFfuw.js → module-migration-Ddk92fRs.js} +1 -1
  243. package/dist/cli/{partition-Bi76oVvt.js → partition-BuX62VyM.js} +1 -1
  244. package/dist/cli/powersync-BEebY0Uf.js +1 -0
  245. package/dist/cli/{powersync-01LIe9WO.js → powersync-Cex4H5my.js} +3 -3
  246. package/dist/cli/{print-CoDV1AZr.js → print-D4XpS5Qp.js} +2 -2
  247. package/dist/cli/{providers-B3VKJOGS.js → providers-D7U-7DDW.js} +1 -1
  248. package/dist/cli/{prune-workflows-Ck7bPjbs.js → prune-workflows-CKW78AsP.js} +1 -1
  249. package/dist/cli/{remove-B0mcKNLX.js → remove-t4JoqycQ.js} +6 -6
  250. package/dist/cli/{render-g0u-8VRx.js → render-CIdg7VKj.js} +4 -4
  251. package/dist/cli/{render-cache-Dkkervpu.js → render-cache-Zjt3OgD_.js} +1 -1
  252. package/dist/cli/{run-DcjkMeLQ.js → run-BIT66ThJ.js} +30 -30
  253. package/dist/cli/{run-DKHipy0c.js → run-C-zh0kxb.js} +7 -7
  254. package/dist/cli/{shared-BL_SZdUw.js → shared-D5_5NsEI.js} +1 -1
  255. package/dist/cli/{source-BBn7ypvg.js → source-50A8IPu1.js} +1 -1
  256. package/dist/cli/{spec-COv0ojkG.js → spec-CiZPOLx8.js} +2 -2
  257. package/dist/cli/{spec-DH55djVx.js → spec-DvCBeVz2.js} +1 -1
  258. package/dist/cli/{sql-layout-ClqJfxAp.js → sql-layout-n5vgZ671.js} +2 -2
  259. package/dist/cli/{squash-Cit4Liiw.js → squash-PNv_rd5n.js} +1 -1
  260. package/dist/cli/{sync-Ba5EvTIT.js → sync-DNSR4TUL.js} +4 -4
  261. package/dist/cli/{upgrade-DI4ZTrXV.js → upgrade-B5LgLXX4.js} +5 -5
  262. package/dist/cli/{upgrade-BIuxR2Z-.js → upgrade-b477KsEI.js} +5 -5
  263. package/dist/cli/{version-D_miCSxz.js → version-CyIR9dhg.js} +1 -1
  264. package/dist/client/index.d.ts +5 -5
  265. package/dist/client/native/index.d.ts +4 -4
  266. package/dist/config/index.d.ts +4 -4
  267. package/dist/{context-C-msUG_m.d.ts → context-DtyeoCvj.d.ts} +3 -3
  268. package/dist/contract/index.d.ts +3 -3
  269. package/dist/{controller-DMoPjq2t.d.ts → controller-D6ZUjfhv.d.ts} +1 -1
  270. package/dist/{conversion-Cckh_HHY.d.ts → conversion-BiAEs9ja.d.ts} +1 -1
  271. package/dist/create/index.d.ts +4 -4
  272. package/dist/create/index.js +1 -1
  273. package/dist/create/lite/index.d.ts +3 -3
  274. package/dist/create/lite/index.js +2 -2
  275. package/dist/{define-block-ClbL68WH.d.ts → define-block-DpnCxELV.d.ts} +1 -1
  276. package/dist/{drive-DXU2QoV_.d.ts → drive-_xuMA2xw.d.ts} +1 -1
  277. package/dist/{embeddings-BriQ4hQ1.d.ts → embeddings-BhTNerJ8.d.ts} +2 -2
  278. package/dist/{entitlements-DKNLoLw3.d.ts → entitlements-Djh4bBdj.d.ts} +2 -2
  279. package/dist/eve/index.d.ts +3 -3
  280. package/dist/{eve-D-hvUFYE.d.ts → eve-DCA-YKQZ.d.ts} +2 -2
  281. package/dist/{extract-CzjhSs6g.d.ts → extract-DZznUgzb.d.ts} +3 -3
  282. package/dist/{extras-Ctnag4x3.d.ts → extras-Cb1ZUvNK.d.ts} +1 -1
  283. package/dist/{field-errors-D0vkq05i.d.ts → field-errors-DSEpFDCa.d.ts} +5 -5
  284. package/dist/{gateway-eFh5pEIu.d.ts → gateway-oivw0R3W.d.ts} +3 -3
  285. package/dist/generators/factories/index.d.ts +1 -1
  286. package/dist/generators/factories/index.js +1 -1
  287. package/dist/generators/index.d.ts +2 -2
  288. package/dist/generators/json-schema/index.d.ts +2 -2
  289. package/dist/generators/json-schema/index.js +1 -1
  290. package/dist/generators/nuqs/index.d.ts +1 -1
  291. package/dist/generators/nuqs/index.js +1 -1
  292. package/dist/generators/standard-schema/index.d.ts +1 -1
  293. package/dist/generators/standard-schema/index.js +1 -1
  294. package/dist/generators/valibot/index.d.ts +1 -1
  295. package/dist/generators/valibot/index.js +1 -1
  296. package/dist/generators/zod/index.d.ts +1 -1
  297. package/dist/generators/zod/index.js +1 -1
  298. package/dist/{index-bDmQ69hy.d.ts → index-1aGCqU0F.d.ts} +1 -1
  299. package/dist/{index-Bz-T_58c.d.ts → index-B2NJNoRd.d.ts} +8 -8
  300. package/dist/{index-B9kqCDKK.d.ts → index-BAccIXQt.d.ts} +2 -2
  301. package/dist/{index-C0rHOTr-.d.ts → index-BDq77p1R.d.ts} +2 -2
  302. package/dist/{index-BG1eY1KO.d.ts → index-BEVvxkvW.d.ts} +2 -2
  303. package/dist/{index-CfYIKxmO.d.ts → index-BIOLHETk.d.ts} +1 -1
  304. package/dist/{index-DwC5RgXo.d.ts → index-BKD8Lkn9.d.ts} +7 -7
  305. package/dist/{index-DewyE3_q.d.ts → index-BREewNqU.d.ts} +1 -1
  306. package/dist/{index-k-3GAYGO.d.ts → index-BeJMACah.d.ts} +2 -2
  307. package/dist/{index-JCe4Kgvs.d.ts → index-BiX0gNGQ.d.ts} +2 -2
  308. package/dist/{index-b_QoL2Xl.d.ts → index-Bt5jJrzR.d.ts} +1 -1
  309. package/dist/{index-C1rKo4z7.d.ts → index-Bx9qRuof.d.ts} +1 -1
  310. package/dist/{index-BO4gZI8-.d.ts → index-C-h2MrvD.d.ts} +1 -1
  311. package/dist/{index-DeJHUkru.d.ts → index-C8H6hpAP.d.ts} +2 -2
  312. package/dist/{index-CN9tlkaZ.d.ts → index-CaE6XZnq.d.ts} +3 -3
  313. package/dist/{index-BTgHDNoK.d.ts → index-CbKxPo6t.d.ts} +2 -2
  314. package/dist/{index-Cy-294dJ.d.ts → index-CjmtqiRE.d.ts} +1 -1
  315. package/dist/{index-M6PP_nv1.d.ts → index-CmHvVWGd.d.ts} +1 -1
  316. package/dist/{index-BNbcydCQ.d.ts → index-CygaT0GH.d.ts} +1 -1
  317. package/dist/{index-DMaROBj_.d.ts → index-D-LxyjmH.d.ts} +3 -3
  318. package/dist/{index-C-vdLX8y.d.ts → index-D9fhYtnp.d.ts} +2 -2
  319. package/dist/{index-CO_JEQpa.d.ts → index-DAYCCmVC.d.ts} +1 -1
  320. package/dist/{index-C7AEdCOx.d.ts → index-DEHVn5Ma.d.ts} +2 -2
  321. package/dist/{index-6L3fO1VW.d.ts → index-DIwhnfIi.d.ts} +2 -2
  322. package/dist/{index-xNtO4Cbv.d.ts → index-DUDYFfnG.d.ts} +1 -1
  323. package/dist/{index-OPLT30am.d.ts → index-DVmqH-jI.d.ts} +3 -3
  324. package/dist/{index-DLPEBVA3.d.ts → index-Dga-eftL.d.ts} +5 -5
  325. package/dist/{index-CaBdEfvB.d.ts → index-DitpSLYH.d.ts} +2 -2
  326. package/dist/{index-BwbFX9kz.d.ts → index-Dsb6-otF.d.ts} +1 -1
  327. package/dist/{index-tHzSmAVM.d.ts → index-DtGyj0RU.d.ts} +4 -4
  328. package/dist/{index-L9nFXemf.d.ts → index-RGXgZmyg.d.ts} +2 -2
  329. package/dist/{index-DHwwaa5c.d.ts → index-S6WKucTU.d.ts} +1 -1
  330. package/dist/{index-BIk7uOsB.d.ts → index-TkkZfmGg.d.ts} +1 -1
  331. package/dist/{index-BoidURQg.d.ts → index-_IFPpPG9.d.ts} +1 -1
  332. package/dist/{index-DPHg8c59.d.ts → index-bFOgwrCN.d.ts} +1 -1
  333. package/dist/{index-DTBxclC4.d.ts → index-jJ7Q-AYO.d.ts} +2 -2
  334. package/dist/{index-FfVEwPC7.d.ts → index-vOUlkC2o.d.ts} +1 -1
  335. package/dist/{json-schema-C8deWP59.js → json-schema-Cb5ORIIa.js} +1 -1
  336. package/dist/{knowledge-C7RZqwQu.d.ts → knowledge-CSWQouuC.d.ts} +1 -1
  337. package/dist/{manifest-BZNn8jSV.d.ts → manifest-4K_pRDrE.d.ts} +1 -1
  338. package/dist/{manifest-Dqths6WM.d.ts → manifest-4ZM88myP.d.ts} +1 -1
  339. package/dist/{manifest-BTdv7qf4.d.ts → manifest-4zuq-I0U.d.ts} +1 -1
  340. package/dist/{manifest-D5TAMdzY.d.ts → manifest-B-5cqXlx.d.ts} +1 -1
  341. package/dist/{manifest-CpqWpt8p.d.ts → manifest-B11QNHpO.d.ts} +1 -1
  342. package/dist/{manifest-DZwGgT_z.d.ts → manifest-B1R3o592.d.ts} +1 -1
  343. package/dist/{manifest-C71ANbeV.d.ts → manifest-B1bfLbzz.d.ts} +1 -1
  344. package/dist/{manifest-CsJCoSyK.d.ts → manifest-B5y82qsH.d.ts} +2 -2
  345. package/dist/{manifest-DdE8MnRN.d.ts → manifest-B9FkI5Za.d.ts} +1 -1
  346. package/dist/{manifest-DJuZGlHR.d.ts → manifest-BBQmMfq7.d.ts} +1 -1
  347. package/dist/{manifest-Bk8cjM0l.d.ts → manifest-BFc_Zpzf.d.ts} +1 -1
  348. package/dist/{manifest-C2PHEJ5z.d.ts → manifest-BGBYLCP-.d.ts} +1 -1
  349. package/dist/{manifest-DJIIa2Em.d.ts → manifest-BLVRM4WX.d.ts} +1 -1
  350. package/dist/{manifest-Cg8WeAdC.d.ts → manifest-BLkOEccx.d.ts} +1 -1
  351. package/dist/{manifest-CBlNPtFA.d.ts → manifest-BND77-ps.d.ts} +2 -2
  352. package/dist/{manifest-CFH-eOXg.d.ts → manifest-BQYkGxek.d.ts} +1 -1
  353. package/dist/{manifest-Cqt64tuH.d.ts → manifest-BTZI-Jq1.d.ts} +2 -2
  354. package/dist/{manifest-8h7Bi6Pu.d.ts → manifest-BYHJvkqX.d.ts} +1 -1
  355. package/dist/{manifest-DplQt5I6.d.ts → manifest-B__S-85Q.d.ts} +1 -1
  356. package/dist/{manifest-DLHnAPNS.d.ts → manifest-Bgc-jWOV.d.ts} +1 -1
  357. package/dist/{manifest-DbZYZpku.d.ts → manifest-BsuYq-pZ.d.ts} +1 -1
  358. package/dist/{manifest-CFsi-Ht5.d.ts → manifest-ByfZrxkk.d.ts} +1 -1
  359. package/dist/{manifest-YGFH2TL_.d.ts → manifest-C0-rnYge.d.ts} +1 -1
  360. package/dist/{manifest-BPriFiTU.d.ts → manifest-C02JeWGr.d.ts} +1 -1
  361. package/dist/{manifest-BAoLDoxK.d.ts → manifest-C3-OpYr0.d.ts} +1 -1
  362. package/dist/{manifest-DNx5sz8h.d.ts → manifest-C3qUn0ka.d.ts} +1 -1
  363. package/dist/{manifest-CLdp5_oL.d.ts → manifest-C46GM61W.d.ts} +1 -1
  364. package/dist/{manifest-C6ITivwS.d.ts → manifest-C9Cs9rtL.d.ts} +1 -1
  365. package/dist/{manifest-B5Tf88Uq.d.ts → manifest-CE4rGv9r.d.ts} +1 -1
  366. package/dist/{manifest-CJvaMP9x.d.ts → manifest-CGnYiIs8.d.ts} +1 -1
  367. package/dist/{manifest-CY_k3qjM.d.ts → manifest-CKbJBLaW.d.ts} +1 -1
  368. package/dist/{manifest-BLOaDsUW.d.ts → manifest-CQ1Xpja6.d.ts} +1 -1
  369. package/dist/{manifest-C0Wdg3J2.d.ts → manifest-CRe-o25G.d.ts} +2 -2
  370. package/dist/{manifest-BrGySkFX.d.ts → manifest-Ca6Rm4u6.d.ts} +1 -1
  371. package/dist/{manifest-DSA0yeuM.d.ts → manifest-Cf8__tMA.d.ts} +17 -4
  372. package/dist/{manifest-BHMX17A8.d.ts → manifest-CrO5Gwed.d.ts} +1 -1
  373. package/dist/{manifest-sOy_ZKWF.d.ts → manifest-CzErrA0R.d.ts} +1 -1
  374. package/dist/{manifest-cYotBkfZ.d.ts → manifest-D-IfkyQg.d.ts} +1 -1
  375. package/dist/{manifest-BO1W_e-B.d.ts → manifest-DCIvxvg9.d.ts} +1 -1
  376. package/dist/{manifest-b3PqBQa0.d.ts → manifest-DEf81vUp.d.ts} +1 -1
  377. package/dist/{manifest-C5l5bb08.d.ts → manifest-DF6MWZld.d.ts} +1 -1
  378. package/dist/{manifest-C2rmE8qa.d.ts → manifest-DFRP7LFo.d.ts} +1 -1
  379. package/dist/{manifest-CiMGJyOC.d.ts → manifest-DH1wX47F.d.ts} +1 -1
  380. package/dist/{manifest-CEXnXtGH.d.ts → manifest-DIsc4u7U.d.ts} +1 -1
  381. package/dist/{manifest-BBcaI1P8.js → manifest-DVuGZaJS.js} +20 -6
  382. package/dist/{manifest-BzO-6IJr.d.ts → manifest-DWS1Hszm.d.ts} +1 -1
  383. package/dist/{manifest-ChaCvq6y.d.ts → manifest-DYMvHTJ4.d.ts} +1 -1
  384. package/dist/{manifest-DSvRcUhd.d.ts → manifest-D_RJDjHz.d.ts} +2 -2
  385. package/dist/{manifest-DsxLVrmD.d.ts → manifest-D_u0Uhd9.d.ts} +1 -1
  386. package/dist/{manifest-BF-mU2bV.d.ts → manifest-DgVrJNgv.d.ts} +1 -1
  387. package/dist/{manifest-CK3rwqU_.d.ts → manifest-DiJKbgrM.d.ts} +1 -1
  388. package/dist/{manifest-D17W6_c7.d.ts → manifest-DpW-TJwu.d.ts} +1 -1
  389. package/dist/{manifest-CAnCtcFS.d.ts → manifest-DySuHx51.d.ts} +2 -2
  390. package/dist/{manifest-CrVJZ86G.d.ts → manifest-IWiafJCj.d.ts} +1 -1
  391. package/dist/{manifest-BTw7TOwu.d.ts → manifest-MIOw1h6u.d.ts} +1 -1
  392. package/dist/{manifest-DuBsaflS.d.ts → manifest-Qa7Oz8op.d.ts} +3 -3
  393. package/dist/{manifest-myniqe46.d.ts → manifest-YV2wB81I.d.ts} +1 -1
  394. package/dist/{manifest-CzDKrwRf.js → manifest-_xHwNjlQ.js} +13 -9
  395. package/dist/{manifest-BG1VIYZT.d.ts → manifest-iwcDpOkG.d.ts} +1 -1
  396. package/dist/{manifest-D_wapvtH.d.ts → manifest-nsV6ZrZ7.d.ts} +1 -1
  397. package/dist/{manifest-D1w2lSll.d.ts → manifest-rB3i09ej.d.ts} +1 -1
  398. package/dist/{manifest-Doi_y4XH.d.ts → manifest-rk3V9E0p.d.ts} +1 -1
  399. package/dist/{manifest-D-kHfhG5.d.ts → manifest-uAf9hw_t.d.ts} +1 -1
  400. package/dist/{manifest-Pny9-_9a.d.ts → manifest-z_JoPdSA.d.ts} +2 -2
  401. package/dist/mapper/bin.js +5 -5
  402. package/dist/mcp/index.d.ts +1 -1
  403. package/dist/mcp/index.js +1 -1
  404. package/dist/{mcp-CZgh_ubo.js → mcp-DkcsgPP9.js} +1 -1
  405. package/dist/next/index.d.ts +5 -5
  406. package/dist/next/proxy/index.d.ts +2 -2
  407. package/dist/{operations-DAHER9Co.d.ts → operations-C4vxakMi.d.ts} +1 -1
  408. package/dist/{orders-BCR5H9Tz.d.ts → orders-DtiIfGI_.d.ts} +1 -1
  409. package/dist/otel/index.js +5 -5
  410. package/dist/{permissions-Ddma4Div.d.ts → permissions-CP5Cwz8h.d.ts} +1 -1
  411. package/dist/{ports-DPp4Fq_P.d.ts → ports-B1QMhbn5.d.ts} +1 -1
  412. package/dist/powersync/index.d.ts +3 -3
  413. package/dist/preset/index.d.ts +4 -4
  414. package/dist/{preview-nlRIsJni.d.ts → preview-ByZwgNq9.d.ts} +3 -3
  415. package/dist/{project-Bw5sWuoO.js → project-DYyr_iyu.js} +1 -1
  416. package/dist/{push-token-Dwlj0LIL.d.ts → push-token-BAcQAeb8.d.ts} +1 -1
  417. package/dist/query/index.d.ts +1 -1
  418. package/dist/rate-limit/index.d.ts +1 -1
  419. package/dist/{rate-limit-Ddv4xmsH.d.ts → rate-limit-TxSt-_59.d.ts} +1 -1
  420. package/dist/react/index.d.ts +5 -5
  421. package/dist/react/native/index.d.ts +1 -1
  422. package/dist/react/server.d.ts +5 -5
  423. package/dist/realtime/index.d.ts +3 -3
  424. package/dist/{record-form-3eD-nwYk.d.ts → record-form-53Hzv9d9.d.ts} +1 -1
  425. package/dist/records/index.d.ts +7 -7
  426. package/dist/{sandboxes-BjvFi1Wh.d.ts → sandboxes-BJy3k0km.d.ts} +1 -1
  427. package/dist/server/index.d.ts +5 -5
  428. package/dist/{sign-in-Dtd2Bqgm.d.ts → sign-in-DbXRH5zh.d.ts} +4 -4
  429. package/dist/solid/index.d.ts +5 -5
  430. package/dist/spec/index.js +2 -2
  431. package/dist/sql/index.d.ts +5 -5
  432. package/dist/sql/index.js +1 -1
  433. package/dist/{sql-DLuqUuGO.js → sql-DPpcMNUF.js} +345 -122
  434. package/dist/ssr/index.d.ts +1 -1
  435. package/dist/svelte/index.d.ts +5 -5
  436. package/dist/{tenant-DLvOWwEG.d.ts → tenant-tAtS31r8.d.ts} +1 -1
  437. package/dist/testing/index.d.ts +9 -9
  438. package/dist/testing/index.js +1 -1
  439. package/dist/{timeline-ChkpN8Bw.d.ts → timeline-BoKhn-Ei.d.ts} +2 -2
  440. package/dist/{topic-Dw4CI2so.d.ts → topic-BdTuoZRL.d.ts} +1 -1
  441. package/dist/{types-Cikitezb.d.ts → types-BderwMCG.d.ts} +1 -1
  442. package/dist/{types-_hw_fdQp.d.ts → types-D4wgpab9.d.ts} +2 -2
  443. package/dist/{types-CID74uQG.d.ts → types-DerSPnBG.d.ts} +3 -1
  444. package/dist/{usage-CrTrlxoi.d.ts → usage-BMaJFesv.d.ts} +1 -1
  445. package/dist/vercel-sandbox/index.d.ts +1 -1
  446. package/dist/{version-CrTSdSoJ.js → version-BH2jtOjn.js} +1 -1
  447. package/dist/vue/index.d.ts +5 -5
  448. package/dist/{watch-topic-CPyTKYDb.d.ts → watch-topic-BjkFSiGe.d.ts} +1 -1
  449. package/dist/webmcp/index.d.ts +1 -1
  450. package/dist/webmcp/index.js +1 -1
  451. package/dist/yjs/index.d.ts +1 -1
  452. package/package.json +1 -1
  453. package/dist/cli/add-8PulB0kB.js +0 -1
  454. package/dist/cli/powersync-BIncCNre.js +0 -1
@@ -4,11 +4,11 @@ import { $ as diffGraphs, A as WorkflowTriggerKind, B as WorkflowBuiltinNodeKind
4
4
  import { a as GraphStepCall, c as graphRunFields, i as GraphRuntime, l as startNodeOf, n as GraphNodeCall, o as GraphSubject, r as GraphRunFields, s as executeGraph, t as GraphApprovalCall } from "../../executor-BLv4T8kT.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-Bqne7_GN.js";
6
6
  import { b as DbError } from "../../result-aun_QZHn.js";
7
- import { p as SubscriptionStatus } from "../../topic-Dw4CI2so.js";
8
- import { n as TopicPort } from "../../watch-topic-CPyTKYDb.js";
9
- import { n as Controller, t as AuthPort } from "../../controller-DMoPjq2t.js";
7
+ import { p as SubscriptionStatus } from "../../topic-BdTuoZRL.js";
8
+ import { n as TopicPort } from "../../watch-topic-BjkFSiGe.js";
9
+ import { n as Controller, t as AuthPort } from "../../controller-D6ZUjfhv.js";
10
10
  import { g as Workflows, n as WorkflowRun } from "../../workflows-CUcK8Axx.js";
11
- import { c as BlockOf } from "../../define-block-ClbL68WH.js";
11
+ import { c as BlockOf } from "../../define-block-DpnCxELV.js";
12
12
  import { Et as Events, yt as WorkflowEventData } from "../../events-zz8DwtZi.js";
13
13
  /**
14
14
  * The `workflow-editor` module's definitions, versions, triggers, credentials,
@@ -1,10 +1,10 @@
1
1
  import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-CUcK8Axx.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-Bqne7_GN.js";
3
3
  import { b as DbError } from "../../result-aun_QZHn.js";
4
- import { p as SubscriptionStatus } from "../../topic-Dw4CI2so.js";
5
- import { n as TopicPort } from "../../watch-topic-CPyTKYDb.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-DMoPjq2t.js";
7
- import { c as BlockOf } from "../../define-block-ClbL68WH.js";
4
+ import { p as SubscriptionStatus } from "../../topic-BdTuoZRL.js";
5
+ import { n as TopicPort } from "../../watch-topic-BjkFSiGe.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-D6ZUjfhv.js";
7
+ import { c as BlockOf } from "../../define-block-DpnCxELV.js";
8
8
  import { Et as Events, bt as WorkflowRunEventData } from "../../events-zz8DwtZi.js";
9
9
  interface WorkflowRunsControllerOptions {
10
10
  readonly client: {
@@ -1,4 +1,4 @@
1
- import { d as AiChatMessageStorage } from "./ai-chat-C8FEgeTd.js";
1
+ import { d as AiChatMessageStorage } from "./ai-chat-CVmnJZcP.js";
2
2
  import { t as StandardSchemaV1 } from "./standard-Vmy7ALDX.js";
3
3
  /** The names each module's `blocks.<name>` config keys accept. */
4
4
  interface BlockNameRegistry {
@@ -1750,7 +1750,7 @@ interface BlockNameRegistry {
1750
1750
  readonly "consumers": "name" | "cursorXid" | "cursor" | "types" | "leaseOwner" | "leaseUntil" | "attempts" | "lastError" | "retryAt" | "updatedAt";
1751
1751
  readonly "deadLetters": "consumer" | "position" | "eventId" | "type" | "event" | "attempts" | "error" | "deadAt";
1752
1752
  };
1753
- readonly functions: "emit_event" | "outbox_ack" | "outbox_claim" | "outbox_dead_letters" | "outbox_fail" | "outbox_history" | "outbox_register" | "outbox_row_event" | "outbox_unregister" | "purge_outbox" | "track_events";
1753
+ readonly functions: "emit_event" | "outbox_ack" | "outbox_claim" | "outbox_dead_letters" | "outbox_fail" | "outbox_has_work" | "outbox_history" | "outbox_register" | "outbox_row_event" | "outbox_unregister" | "purge_outbox" | "track_events";
1754
1754
  readonly actions: never;
1755
1755
  readonly hooks: never;
1756
1756
  readonly entities: {};
@@ -1914,7 +1914,7 @@ interface BlockNameRegistry {
1914
1914
  readonly tables: {
1915
1915
  readonly "messages": "id" | "queue" | "message" | "attempts" | "enqueuedAt" | "visibleAt" | "archivedAt" | "dead" | "dedupeKey" | "maxAttempts";
1916
1916
  readonly "leases": "scope" | "key" | "holder" | "state" | "expiresAt";
1917
- readonly "schedules": "jobName" | "schedule" | "timezone" | "queue" | "payload" | "nextRun" | "lastRun" | "lockedUntil" | "createdAt" | "tenant" | "firstAfter";
1917
+ readonly "schedules": "jobName" | "schedule" | "timezone" | "queue" | "payload" | "nextRun" | "lastRun" | "lockedUntil" | "createdAt" | "tenant" | "firstAfter" | "probe";
1918
1918
  };
1919
1919
  readonly functions: never;
1920
1920
  readonly actions: never;
@@ -2625,7 +2625,7 @@ interface BlockNameRegistry {
2625
2625
  readonly "secrets": "id" | "endpoint" | "tenant" | "secret" | "vaultId" | "expiresAt" | "createdAt";
2626
2626
  readonly "deliveries": "id" | "tenant" | "endpoint" | "event" | "run" | "type" | "subject" | "payload" | "status" | "attempt" | "availableAt" | "leasedUntil" | "responseStatus" | "responseBody" | "durationMs" | "lastError" | "processedAt" | "createdAt" | "updatedAt";
2627
2627
  };
2628
- readonly functions: "claim_webhook_deliveries" | "complete_webhook_delivery" | "create_webhook_endpoint" | "delete_webhook_endpoint" | "dispatch_webhook" | "drop_webhook_vault_secret" | "list_webhook_endpoints" | "publish_webhook_event" | "publish_webhook_events" | "purge_webhook_deliveries" | "redeliver_webhook" | "reset_webhook_endpoint" | "rotate_webhook_secret" | "update_webhook_endpoint" | "webhook_secrets";
2628
+ readonly functions: "claim_webhook_deliveries" | "complete_webhook_delivery" | "create_webhook_endpoint" | "delete_webhook_endpoint" | "dispatch_webhook" | "drop_webhook_vault_secret" | "list_webhook_endpoints" | "publish_webhook_event" | "publish_webhook_events" | "purge_webhook_deliveries" | "redeliver_webhook" | "reset_webhook_endpoint" | "rotate_webhook_secret" | "update_webhook_endpoint" | "webhook_deliveries_has_work" | "webhook_secrets";
2629
2629
  readonly actions: "manage" | "read";
2630
2630
  readonly hooks: "after_webhook_delivery";
2631
2631
  readonly entities: {
@@ -5,7 +5,7 @@ import { n as BlockHooks } from "./block-hooks-b7-RUIxS.js";
5
5
  import { n as Logger } from "./logger-0LfhvwE4.js";
6
6
  import { t as StandardSchemaV1 } from "./standard-Vmy7ALDX.js";
7
7
  import { o as WeeklyHours } from "./availability-ezSvbaRp.js";
8
- import { _ as JobHandler } from "./types-CID74uQG.js";
8
+ import { _ as JobHandler } from "./types-DerSPnBG.js";
9
9
  import { t as AsyncResult } from "./result-aun_QZHn.js";
10
10
  /** An ISO weekday: 1 is Monday, 7 is Sunday. */
11
11
  type BookingWeekday = 1 | 2 | 3 | 4 | 5 | 6 | 7;
@@ -1,7 +1,7 @@
1
1
  import { r as isPlainObject } from "./clone-H_gCsL29.js";
2
2
  import { t as instanceProperty } from "./instance-property-BlH7QSDl.js";
3
3
  import { s as problemType, t as PROBLEM_CONTENT_TYPE } from "./problem-BwplIuhI.js";
4
- import { n as toJsonSchema } from "./json-schema-C8deWP59.js";
4
+ import { n as toJsonSchema } from "./json-schema-Cb5ORIIa.js";
5
5
  import { n as pageQuery, r as pageSchema } from "./resource-schemas-Bq0g2RCQ.js";
6
6
  import { r as planResource } from "./resource-DQ4kIBpa.js";
7
7
  import { n as isRecord } from "./guards-CsRa6v57.js";
@@ -1,9 +1,9 @@
1
1
  import { g as SessionSnapshot, v as isSessionSnapshot } from "../resolve-Pn7KvQ23.js";
2
2
  import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
3
- import { K as permissionCapOf } from "../types-CID74uQG.js";
3
+ import { K as permissionCapOf } from "../types-DerSPnBG.js";
4
4
  import { a as isUserSession, i as isApiKeySession, n as AuthSession, r as UserSession, t as ApiKeySession } from "../view-DwTCw_jZ.js";
5
- import { n as ClaimsSource, t as ClaimsRecord } from "../claims-source-yTqGqUDc.js";
6
- import { t as tenantOf } from "../tenant-DLvOWwEG.js";
7
- import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-Ddma4Div.js";
8
- import { i as decodeEntitlementClaim, r as MembershipClaim, t as EntitlementClaimOptions } from "../entitlements-DKNLoLw3.js";
5
+ import { n as ClaimsSource, t as ClaimsRecord } from "../claims-source-fUk4pR24.js";
6
+ import { t as tenantOf } from "../tenant-tAtS31r8.js";
7
+ import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-CP5Cwz8h.js";
8
+ import { i as decodeEntitlementClaim, r as MembershipClaim, t as EntitlementClaimOptions } from "../entitlements-Djh4bBdj.js";
9
9
  export { AUTHZ_VERSION_CLAIM, type ApiKeySession, type AuthSession, type ClaimsRecord, type ClaimsSource, type EntitlementClaimOptions, FEATURES_CLAIM, MEMBERSHIPS_CLAIM, type MembershipClaim, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, type PermissionsOfOptions, type SessionSnapshot, type UserSession, decodeEntitlementClaim, isApiKeySession, isSessionSnapshot, isTruncated, isUserSession, permissionCapOf, permissionsOf, tenantOf };
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "./bind-DiQyvXnj.js";
1
+ import { t as AuthSnapshot } from "./bind-CuRPlZYY.js";
2
2
  import { n as AuthSession } from "./view-DwTCw_jZ.js";
3
3
  /** Verified claims, read by name. */
4
4
  type ClaimsRecord = Readonly<Record<string, unknown>>;
@@ -3,8 +3,8 @@ import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { r as applyPlan } from "./files-NnXnawki.js";
4
4
  import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
5
5
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
6
- import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-B3VKJOGS.js";
7
- import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-Ba5EvTIT.js";
6
+ import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-D7U-7DDW.js";
7
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-DNSR4TUL.js";
8
8
  import { basename, dirname } from "node:path";
9
9
  import { readFile } from "node:fs/promises";
10
10
  import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
@@ -2,18 +2,18 @@ import { c as parseNames, n as CliError } from "./errors-B7i-VGxk.js";
2
2
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
3
3
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
4
4
  import { r as readIfExists, t as display } from "./io-CngfGyMA.js";
5
- import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-TjFxbPdK.js";
6
- import { t as VERSION } from "./version-D_miCSxz.js";
5
+ import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-QkRu7ef8.js";
6
+ import { t as VERSION } from "./version-CyIR9dhg.js";
7
7
  import { n as installCommand, t as detectProject } from "./detect-CHR-SAmE.js";
8
- import { a as addBlocksToWiring, d as setBlockInConfig, f as setBlockInJson, g as setPresetInJson, h as setPresetInConfig, i as addBlocksToJson, m as setPathInJson, p as setPathInConfig, r as addBlocksToConfig, t as addModules } from "./add-DLYO-lcP.js";
9
- import { o as dataMigration, t as syncModules } from "./sync-Ba5EvTIT.js";
10
- import { n as adoptionContext } from "./app-tables-CQVNZglP.js";
11
- import { a as toCatalog } from "./source-BBn7ypvg.js";
8
+ import { a as addBlocksToWiring, d as setBlockInConfig, f as setBlockInJson, g as setPresetInJson, h as setPresetInConfig, i as addBlocksToJson, m as setPathInJson, p as setPathInConfig, r as addBlocksToConfig, t as addModules } from "./add-B5Ras98V.js";
9
+ import { o as dataMigration, t as syncModules } from "./sync-DNSR4TUL.js";
10
+ import { n as adoptionContext } from "./app-tables-CTZeU4F2.js";
11
+ import { a as toCatalog } from "./source-50A8IPu1.js";
12
12
  import { i as plain } from "./style-B5-nByxb.js";
13
- import { d as loadSnapshot } from "./sql-layout-ClqJfxAp.js";
13
+ import { d as loadSnapshot } from "./sql-layout-n5vgZ671.js";
14
14
  import { a as findConfig, h as INTEGRATIONS, s as loadConfig } from "./config-By5EbpdJ.js";
15
- import { t as appTablePlan } from "./app-table-files--ulI7C3Z.js";
16
- import { t as blockNames } from "./blocks-D7DYKEOZ.js";
15
+ import { t as appTablePlan } from "./app-table-files-DAt5YA7_.js";
16
+ import { t as blockNames } from "./blocks-D2Vir61A.js";
17
17
  import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CvgOHwlj.js";
18
18
  import { existsSync } from "node:fs";
19
19
  import { dirname, join, posix, resolve } from "node:path";
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-BymOCZ8D.js";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError } from "./errors-B7i-VGxk.js";
2
2
  import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
3
- import { r as literal } from "./live-CJ3gBXTW.js";
4
- import { r as layoutFor } from "./providers-B3VKJOGS.js";
5
- import { n as renderBlocksCached } from "./render-cache-Dkkervpu.js";
3
+ import { r as literal } from "./live-gVsjEaEB.js";
4
+ import { r as layoutFor } from "./providers-D7U-7DDW.js";
5
+ import { n as renderBlocksCached } from "./render-cache-Zjt3OgD_.js";
6
6
  import { f as subjectTagArgs } from "./config-By5EbpdJ.js";
7
7
  import { join, resolve, sep } from "node:path";
8
8
  import { APP_TABLES_MODULE, setTableFeature } from "better-supabase/sql";
@@ -1,6 +1,6 @@
1
1
  import { t as accessProviderMode } from "./authorization-CNWhpdKb.js";
2
- import { u as writtenByBlocks } from "./sql-layout-ClqJfxAp.js";
3
- import { c as qualified, t as catalogOf } from "./shared-BL_SZdUw.js";
2
+ import { u as writtenByBlocks } from "./sql-layout-n5vgZ671.js";
3
+ import { c as qualified, t as catalogOf } from "./shared-D5_5NsEI.js";
4
4
  import { declaredTables, resolveBlocks } from "better-supabase/sql";
5
5
  // src/cli/doctor/app-tables.ts
6
6
  /**
@@ -3,7 +3,7 @@ import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js"
3
3
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
4
4
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
5
5
  import { t as connect } from "./db-B_xr3ZvK.js";
6
- import { n as ident } from "./live-CJ3gBXTW.js";
6
+ import { n as ident } from "./live-gVsjEaEB.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CvgOHwlj.js";
8
8
  // src/cli/commands/backfill.ts
9
9
  const DEFAULT_BATCH = 1e3;
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-DcjkMeLQ.js";
2
+ import { i as run } from "./run-BIT66ThJ.js";
3
3
  import { t as colorEnabled } from "./style-B5-nByxb.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-D7DYKEOZ.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-D2Vir61A.js";
@@ -1,7 +1,7 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { t as SQL_ARGS } from "./args-CS_64_tg.js";
4
- import { n as listModules, t as printModule } from "./print-CoDV1AZr.js";
4
+ import { n as listModules, t as printModule } from "./print-D4XpS5Qp.js";
5
5
  import { t as decodePresetInput } from "./preset-CWfLlmTO.js";
6
6
  import { SQL_MODULES } from "better-supabase/sql";
7
7
  import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
@@ -1,5 +1,5 @@
1
1
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
2
- import { t as VERSION } from "./version-D_miCSxz.js";
2
+ import { t as VERSION } from "./version-CyIR9dhg.js";
3
3
  import { dirname, resolve } from "node:path";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
5
5
  import { createHash } from "node:crypto";
@@ -1,10 +1,10 @@
1
1
  import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
2
- import { i as pinReview, n as namingCodemod, o as configCodemod, r as columnPins, t as NAMING_RENAMES } from "./codemod-naming-BgEIRJLM.js";
2
+ import { i as pinReview, n as namingCodemod, o as configCodemod, r as columnPins, t as NAMING_RENAMES } from "./codemod-naming-ByeMo_ll.js";
3
3
  import { n as CliError } from "./errors-B7i-VGxk.js";
4
- import { r as layoutFor } from "./providers-B3VKJOGS.js";
5
- import { c as snapshotColumnTypes, i as migrationsDir, o as ownLayout, u as writtenByBlocks } from "./sql-layout-ClqJfxAp.js";
4
+ import { r as layoutFor } from "./providers-D7U-7DDW.js";
5
+ import { c as snapshotColumnTypes, i as migrationsDir, o as ownLayout, u as writtenByBlocks } from "./sql-layout-n5vgZ671.js";
6
6
  import { r as arrayEntries, t as PROMISE_ALL } from "./round-trips-BHfeIu6I.js";
7
- import { l as schemaModulePath } from "./emit-DGhalWTA.js";
7
+ import { l as schemaModulePath } from "./emit-Ds-4pNsQ.js";
8
8
  import { n as databaseUrl, s as loadConfig } from "./config-By5EbpdJ.js";
9
9
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
10
10
  import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
@@ -1,5 +1,5 @@
1
1
  import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
2
- import { o as ownLayout } from "./sql-layout-ClqJfxAp.js";
2
+ import { o as ownLayout } from "./sql-layout-n5vgZ671.js";
3
3
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
4
4
  import { LEGACY_OPTION, SQL_MODULES, bsbPolicyName, moduleContext, readPolicies, redundantNulls } from "better-supabase/sql";
5
5
  // src/cli/codemod-config.ts
@@ -1,5 +1,5 @@
1
- import { t as NAMING_RENAMES } from "./codemod-naming-BgEIRJLM.js";
2
- import { u as writtenByBlocks } from "./sql-layout-ClqJfxAp.js";
1
+ import { t as NAMING_RENAMES } from "./codemod-naming-ByeMo_ll.js";
2
+ import { u as writtenByBlocks } from "./sql-layout-n5vgZ671.js";
3
3
  import { SQL_MODULES } from "better-supabase/sql";
4
4
  // src/cli/doctor/column-renames.ts
5
5
  const ADD_COLUMN = /\balter\s+table\s+(?:if\s+exists\s+)?(?:only\s+)?((?:"?[\w$]+"?\s*\.\s*)?"?[\w$]+"?)\s+add\s+column\s+if\s+not\s+exists\s+("?[\w$]+"?)/gi;
@@ -1,7 +1,7 @@
1
1
  import { t as i } from "./jsonc-Dyww6wHM.js";
2
2
  import { r as readIfExists } from "./io-CngfGyMA.js";
3
3
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
4
- import { H as installedVersion } from "./sql-layout-ClqJfxAp.js";
4
+ import { H as installedVersion } from "./sql-layout-n5vgZ671.js";
5
5
  import { resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
7
7
  // src/cli/content-mapper.ts
@@ -1,9 +1,9 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { m as GEN_TASKS } from "./config-By5EbpdJ.js";
4
- import { c as stampFiles, l as watchLoop, o as fileWaker, s as parseInterval } from "./spec-COv0ojkG.js";
5
- import { a as stepInputs, i as selectTasks, n as runTasks, r as parseTasks, t as poll } from "./gen-tasks-D3kLr5we.js";
6
- import { g as snapshotFile, p as openSource } from "./sql-layout-ClqJfxAp.js";
4
+ import { c as stampFiles, l as watchLoop, o as fileWaker, s as parseInterval } from "./spec-CiZPOLx8.js";
5
+ import { a as stepInputs, i as selectTasks, n as runTasks, r as parseTasks, t as poll } from "./gen-tasks-CaqMHY4E.js";
6
+ import { g as snapshotFile, p as openSource } from "./sql-layout-n5vgZ671.js";
7
7
  import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CvgOHwlj.js";
8
8
  import { dirname, resolve } from "node:path";
9
9
  import { readdir } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  import { d as subjectFromTag, l as stdinDatabaseUrl, n as databaseUrl, u as withTableTags } from "./config-By5EbpdJ.js";
2
- import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-BGus1ryq.js";
2
+ import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-VUqqAubX.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
4
4
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
5
5
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
@@ -7,35 +7,35 @@ import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-NnXna
7
7
  import { a as sameText, t as display } from "./io-CngfGyMA.js";
8
8
  import { t as connect } from "./db-B_xr3ZvK.js";
9
9
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
10
- import { C as dataFiles, D as sourceFiles, E as seedFiles, H as installedVersion, O as sqlFiles, S as ENV_FILES, T as readText, U as peerVersions, W as satisfies, _ as liteDriverOf, a as moduleLayoutFor, d as loadSnapshot, f as managementTarget, g as snapshotFile, i as migrationsDir, j as MetadataRejectedError, p as openSource, r as blockDeclaredTables, u as writtenByBlocks, v as isSqliteLiteDriver, w as functionFiles } from "./sql-layout-ClqJfxAp.js";
11
- import { i as request } from "./source-BBn7ypvg.js";
10
+ import { C as dataFiles, D as sourceFiles, E as seedFiles, H as installedVersion, O as sqlFiles, S as ENV_FILES, T as readText, U as peerVersions, W as satisfies, _ as liteDriverOf, a as moduleLayoutFor, d as loadSnapshot, f as managementTarget, g as snapshotFile, i as migrationsDir, j as MetadataRejectedError, p as openSource, r as blockDeclaredTables, u as writtenByBlocks, v as isSqliteLiteDriver, w as functionFiles } from "./sql-layout-n5vgZ671.js";
11
+ import { i as request } from "./source-50A8IPu1.js";
12
12
  import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
13
13
  import { r as supabaseCli } from "./exec-DBgtTCHK.js";
14
14
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
15
- import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$7, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-DKHipy0c.js";
16
- import { r as renderFiles } from "./render-g0u-8VRx.js";
17
- import { l as schemaModulePath, m as configFor, p as notNullTag } from "./emit-DGhalWTA.js";
15
+ import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$7, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-C-zh0kxb.js";
16
+ import { r as renderFiles } from "./render-CIdg7VKj.js";
17
+ import { l as schemaModulePath, m as configFor, p as notNullTag } from "./emit-Ds-4pNsQ.js";
18
18
  import { t as orphanedBlockFiles } from "./orphans-ByB0gKOp.js";
19
- import { a as renameArguments, s as tenantEntries, t as NAMING_RENAMES } from "./codemod-naming-BgEIRJLM.js";
19
+ import { a as renameArguments, s as tenantEntries, t as NAMING_RENAMES } from "./codemod-naming-ByeMo_ll.js";
20
20
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
21
- import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-CQVNZglP.js";
22
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-BOwCFfuw.js";
23
- import { n as renderBlocksCached } from "./render-cache-Dkkervpu.js";
24
- import { a as lineOf, c as qualified, i as exposedSchemas, l as tableObject, n as deniesAll, o as permissionCatalogKeys, r as exposed, s as policyObject, t as catalogOf, u as workflowOf } from "./shared-BL_SZdUw.js";
25
- import { n as staleRenameKeys, t as shadowedBlockColumns } from "./column-renames-B1bMtdIF.js";
26
- import { a as reservedRoles, i as statementsView, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-CJ3gBXTW.js";
21
+ import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-CTZeU4F2.js";
22
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-Ddk92fRs.js";
23
+ import { n as renderBlocksCached } from "./render-cache-Zjt3OgD_.js";
24
+ import { a as lineOf, c as qualified, i as exposedSchemas, l as tableObject, n as deniesAll, o as permissionCatalogKeys, r as exposed, s as policyObject, t as catalogOf, u as workflowOf } from "./shared-D5_5NsEI.js";
25
+ import { n as staleRenameKeys, t as shadowedBlockColumns } from "./column-renames-FlO8U6SA.js";
26
+ import { a as reservedRoles, i as statementsView, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-gVsjEaEB.js";
27
27
  import { t as projectionsOf } from "./projection-DlVB5YL-.js";
28
28
  import { s as providerLabel } from "./authorization-CNWhpdKb.js";
29
- import { t as VERSION$1 } from "./version-D_miCSxz.js";
29
+ import { t as VERSION$1 } from "./version-CyIR9dhg.js";
30
30
  import { t as PROCESS_ENV } from "./env-CQ831uY0.js";
31
31
  import { a as stackEnvValues, i as redactValue, o as staleVariables, t as PREFIX_NAMES } from "./stack-env-CtkfVXsR.js";
32
32
  import { n as readStackStatus } from "./stack-status-rNPCacin.js";
33
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-TjFxbPdK.js";
33
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-QkRu7ef8.js";
34
34
  import { a as OPEN, c as functionsIn, i as CLOSE, l as statementEnd, n as ROUND_TRIP_RULES, o as closeOf, s as codeOnly, u as targetKeys } from "./round-trips-BHfeIu6I.js";
35
35
  import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-3e1LT1bn.js";
36
36
  import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-Eu6d45F8.js";
37
37
  import { i as plain$2 } from "./style-B5-nByxb.js";
38
- import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-Da7lPV1G.js";
38
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-Dm63aecV.js";
39
39
  import { t as compiledReadSets } from "./read-sets-77o7SxpK.js";
40
40
  import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-CvgOHwlj.js";
41
41
  import { existsSync } from "node:fs";
@@ -5871,10 +5871,15 @@ const appSqlTexts = (context) => sqlTexts(context).filter((file) => !file.path.i
5871
5871
  * Whether a policy expression calls `schema.name` outside a `(select ...)`, the
5872
5872
  * form Postgres prints for an InitPlan.
5873
5873
  */
5874
- function callsPerRow(expression, name, columns) {
5874
+ function callsPerRow(expression, name, table, columns, fallbackAllowed = false) {
5875
5875
  const call = new RegExp(String.raw`(?<![\w.])(?<!select\s+)(?:"?\w+"?\.)?"?${escape$3(name)}"?\s*\(`, "gi");
5876
- return [...expression.matchAll(call)].some((match) => !/\b(?:from|join)\s+$/i.test(expression.slice(0, match.index)) || readsRow(argumentsAt(expression, match.index + match[0].length), columns));
5876
+ return [...expression.matchAll(call)].some((match) => {
5877
+ const before = expression.slice(0, match.index);
5878
+ if (fallbackAllowed && AFTER_SET.test(before)) return false;
5879
+ return !/(?:\b(?:from|join)\s+(?:\(\s*)*(?:lateral\s+)?|,\s*lateral\s+)$/i.test(before) || readsRow(argumentsAt(expression, match.index + match[0].length), table, columns);
5880
+ });
5877
5881
  }
5882
+ const AFTER_SET = /\bin\s*\(\s*select\b[^()]*(?:\([^()]*\)[^()]*)*\)\s*\)*\s*or\s*$/i;
5878
5883
  function argumentsAt(expression, start) {
5879
5884
  let depth = 1;
5880
5885
  let quoted = false;
@@ -5889,7 +5894,7 @@ function argumentsAt(expression, start) {
5889
5894
  }
5890
5895
  return text;
5891
5896
  }
5892
- const readsRow = (args, columns) => args.replaceAll(/::\s*"?\w+"?/g, "").split(/\W+/).some((word) => columns.has(word.toLowerCase()));
5897
+ const readsRow = (args, table, columns) => args.replaceAll(/::\s*"?\w+"?/g, "").replaceAll(/"?(\w+)"?\s*\.\s*"?\w+"?/g, (qualified, owner) => owner.toLowerCase() === table.toLowerCase() ? qualified : "").split(/\W+/).some((word) => columns.has(word.toLowerCase()));
5893
5898
  /** The body of the first `create function` of `name` among the SQL files. */
5894
5899
  function functionSource(files, name) {
5895
5900
  const pattern = new RegExp(String.raw`^create\s+(?:or\s+replace\s+)?function\s+(?:"?\w+"?\.)?"?${escape$3(name)}"?\s*\(`, "i");
@@ -5967,8 +5972,8 @@ const SCALE_RULES = [
5967
5972
  {
5968
5973
  code: "BS386",
5969
5974
  severity: "warning",
5970
- title: "A policy calls a volatile or PL/pgSQL function per row",
5971
- description: "A policy that calls a volatile function, or one written in PL/pgSQL, outside `(select ...)` runs it once for every row the statement reads, and a volatile function can't be hoisted or folded. A 100,000 row list then costs 100,000 calls. Wrap the call in `(select fn(...))` so Postgres evaluates it once per statement, or replace a per-row check with a set helper such as `tenant_id in (select tenant_ids_with('key'))`. A helper that is called inside `(select ...)` is accepted even when it is volatile, and so is a set helper in the `from` of a subquery whose arguments read no column of the row, such as `id in (select t.id from thread_ids('key') as t(id))`, because Postgres calls it once and rescans its result. Policies named `bsb_*` belong to a block module and are left to `upgrade`.",
5975
+ title: "A policy calls a volatile, PL/pgSQL or non-inlinable function per row",
5976
+ description: "A policy that calls a volatile function, or one written in PL/pgSQL, outside `(select ...)` runs it once for every row the statement reads, and a volatile function can't be hoisted or folded. A 100,000 row list then costs 100,000 calls. Wrap the call in `(select fn(...))` so Postgres evaluates it once per statement, or replace a per-row check with a set helper such as `tenant_id in (select tenant_ids_with('key'))`. A helper that is called inside `(select ...)` is accepted even when it is volatile, and so is a set helper in the `from` of a subquery whose arguments read no column of the row, such as `id in (select t.id from thread_ids('key') as t(id))`, because Postgres calls it once and rescans its result. In a select policy a function that is `security definer` or has a `set` clause counts too, even when it is a stable SQL function, because Postgres never inlines it, so `can_note(notes, 'read')` runs once per row. Such a call is accepted as the `or` fallback after a set check, as in `id in (select note_ids('read')) or can_note(notes, 'read')`, because it then runs only for rows outside the set, such as a row the statement itself inserted. Policies named `bsb_*` belong to a block module and are left to `upgrade`.",
5972
5977
  check(context) {
5973
5978
  const catalog = catalogOf(context);
5974
5979
  const functions = context.snapshot.extras.functions ?? [];
@@ -5980,7 +5985,10 @@ const SCALE_RULES = [
5980
5985
  const schema = called.slice(0, called.indexOf("."));
5981
5986
  const name = lastPart(called);
5982
5987
  if (SYSTEM_SCHEMAS.has(schema)) return [];
5983
- if (!functions.filter((candidate) => candidate.schema === schema && candidate.name === name).some((candidate) => candidate.volatility === "volatile" || candidate.language === "plpgsql") || !expressions.some((text) => callsPerRow(text, name, columns))) return [];
5988
+ const overloads = functions.filter((candidate) => candidate.schema === schema && candidate.name === name);
5989
+ const heavy = overloads.some((candidate) => candidate.volatility === "volatile" || candidate.language === "plpgsql");
5990
+ const opaque = (policy.command === "select" || policy.command === "all") && overloads.some((candidate) => candidate.securityDefiner || Object.keys(candidate.settings).length > 0);
5991
+ if (!(heavy && expressions.some((text) => callsPerRow(text, name, table.name, columns)) || opaque && expressions.some((text) => callsPerRow(text, name, table.name, columns, true)))) return [];
5984
5992
  return [{
5985
5993
  message: `${qualified(table)}: the policy ${policy.name} calls ${called}() once per row. Write (select ${called}(...)) so it runs once per statement, or use a set helper.`,
5986
5994
  target: `${qualified(table)}:${policy.name}`,
@@ -6393,7 +6401,7 @@ const SCHEMA_DESIGN_RULES = [
6393
6401
  check: (context) => {
6394
6402
  const tables = exposed(context).filter((table) => table.kind === "table");
6395
6403
  const policyText = (table) => withoutStrings(table.policies.map((policy) => `${policy.using ?? ""} ${policy.check ?? ""}`).join(" "));
6396
- const functions = context.snapshot.generator.functions.filter((fn) => context.config.schemas.includes(fn.schema) && fn.definition).map((fn) => withoutStrings(fn.definition)).join("\n");
6404
+ const functions = context.snapshot.generator.functions.filter((fn) => context.config.schemas.includes(fn.schema) && fn.definition).map((fn) => withoutStrings(fn.definition));
6397
6405
  const filtered = /* @__PURE__ */ new Set();
6398
6406
  for (const file of context.sources) for (const match of file.text.matchAll(CLIENT_CONTAINS)) filtered.add(match[1]);
6399
6407
  return tables.flatMap((table) => {
@@ -6402,7 +6410,7 @@ const SCHEMA_DESIGN_RULES = [
6402
6410
  if (!column.isArray && column.udt !== "jsonb") return false;
6403
6411
  if (table.indexes.some((index) => index.columns[0] === column.name && (index.method === void 0 || index.method === "gin"))) return false;
6404
6412
  const used = new RegExp(`"?${escape$7(column.name)}"?\\s*${CONTAINS}|${CONTAINS}\\s*[\\w."]*\\b${escape$7(column.name)}\\b`);
6405
- return filtered.has(column.name) || used.test(own) || functions.includes(table.name) && used.test(functions);
6413
+ return filtered.has(column.name) || used.test(own) || functions.some((text) => text.includes(table.name) && used.test(text));
6406
6414
  }).map((column) => ({
6407
6415
  message: `${qualified(table)}.${column.name} is filtered by containment but has no GIN index, so each query scans the table. Run \`create index on ${qualified(table)} using gin (${column.name}${column.udt === "jsonb" ? " jsonb_path_ops" : ""});\`${column.udt === "jsonb" ? " (`jsonb_path_ops` supports `@>` only; drop it for `?`)" : ""}.`,
6408
6416
  target: `${qualified(table)}.${column.name}`,
@@ -2,8 +2,8 @@ import { t as byCodePoint } from "./compare-yl4sSwVn.js";
2
2
  import { r as claimMarkerOverrides } from "./authorization-CNWhpdKb.js";
3
3
  import { n as CliError } from "./errors-B7i-VGxk.js";
4
4
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
5
- import { a as toCatalog } from "./source-BBn7ypvg.js";
6
- import { F as restrictSchemas, R as tsTypeOf, b as bootstrapTables } from "./sql-layout-ClqJfxAp.js";
5
+ import { a as toCatalog } from "./source-50A8IPu1.js";
6
+ import { F as restrictSchemas, R as tsTypeOf, b as bootstrapTables } from "./sql-layout-n5vgZ671.js";
7
7
  import { resolveBlock, resolveProviderSql } from "better-supabase/sql";
8
8
  import { DEFAULT_CLAIMS, tenantClaimPaths } from "better-supabase/config";
9
9
  import { toCamel } from "better-supabase";
@@ -1,10 +1,10 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
- import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-Da7lPV1G.js";
3
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-Dm63aecV.js";
4
4
  import { m as GEN_TASKS } from "./config-By5EbpdJ.js";
5
- import { i as selectTasks, n as runTasks, r as parseTasks } from "./gen-tasks-D3kLr5we.js";
5
+ import { i as selectTasks, n as runTasks, r as parseTasks } from "./gen-tasks-CaqMHY4E.js";
6
6
  import { c as insideRoot, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
7
- import { F as restrictSchemas, I as serializeGenerator, d as loadSnapshot, h as serializeSnapshot } from "./sql-layout-ClqJfxAp.js";
7
+ import { F as restrictSchemas, I as serializeGenerator, d as loadSnapshot, h as serializeSnapshot } from "./sql-layout-n5vgZ671.js";
8
8
  import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CvgOHwlj.js";
9
9
  // src/cli/commands/save-snapshot.ts
10
10
  /** The flags `gen --save-snapshot` reads. */
@@ -1,17 +1,17 @@
1
1
  import { c as parseNames, i as failedResult, n as CliError } from "./errors-B7i-VGxk.js";
2
- import { n as runGen } from "./run-DKHipy0c.js";
3
- import { l as catalogFingerprint } from "./cache-D6iHVy6b.js";
2
+ import { n as runGen } from "./run-C-zh0kxb.js";
3
+ import { l as catalogFingerprint } from "./cache-DKdjMfP9.js";
4
4
  import { i as plain } from "./style-B5-nByxb.js";
5
5
  import { g as isGenTask, m as GEN_TASKS } from "./config-By5EbpdJ.js";
6
6
  import { i as runEnv } from "./env-DtJNOdyD.js";
7
- import { n as runPowerSync } from "./powersync-01LIe9WO.js";
7
+ import { n as runPowerSync } from "./powersync-Cex4H5my.js";
8
8
  import { t as runSeed } from "./seed-BufZFJ_Q.js";
9
- import { r as specOptionsFromConfig, t as runSpec } from "./spec-COv0ojkG.js";
10
- import { t as addModules } from "./add-DLYO-lcP.js";
11
- import { n as listModules, t as printModule } from "./print-CoDV1AZr.js";
12
- import { o as dataMigration, t as syncModules } from "./sync-Ba5EvTIT.js";
13
- import { t as upgrade } from "./upgrade-DI4ZTrXV.js";
14
- import { d as loadSnapshot } from "./sql-layout-ClqJfxAp.js";
9
+ import { r as specOptionsFromConfig, t as runSpec } from "./spec-CiZPOLx8.js";
10
+ import { t as addModules } from "./add-B5Ras98V.js";
11
+ import { n as listModules, t as printModule } from "./print-D4XpS5Qp.js";
12
+ import { o as dataMigration, t as syncModules } from "./sync-DNSR4TUL.js";
13
+ import { t as upgrade } from "./upgrade-B5LgLXX4.js";
14
+ import { d as loadSnapshot } from "./sql-layout-n5vgZ671.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { resolve } from "node:path";
17
17
  // src/cli/commands/sql.ts
@@ -864,5 +864,5 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
864
864
  export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
865
865
  readonly legacyTables?: boolean;
866
866
  }): Promise<ResolvedConfig>;
867
- export declare const VERSION = "0.62.0";
867
+ export declare const VERSION = "0.63.1";
868
868
  export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CliValues, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
package/dist/cli/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { i as run, n as createCli, r as help, t as commandNames } from "./run-DcjkMeLQ.js";
1
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-BIT66ThJ.js";
2
2
  import { a as list, r as defineCliCommand } from "./command-fqvJ0TdG.js";
3
3
  import { n as CliError, t as CLI_ERRORS_URL } from "./errors-B7i-VGxk.js";
4
- import { a as emitBlockConfig, c as emitClientBlocks, o as emitBlockConfigModule, r as renderFiles, s as emitBlockReads } from "./render-g0u-8VRx.js";
5
- import { n as runGen } from "./run-DKHipy0c.js";
6
- import { d as loadSnapshot, h as serializeSnapshot, m as parseSnapshot, y as introspect } from "./sql-layout-ClqJfxAp.js";
7
- import { a as emitModule, d as buildModel, t as GENERATED_HEADER } from "./emit-DGhalWTA.js";
8
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-BBn7ypvg.js";
4
+ import { a as emitBlockConfig, c as emitClientBlocks, o as emitBlockConfigModule, r as renderFiles, s as emitBlockReads } from "./render-CIdg7VKj.js";
5
+ import { n as runGen } from "./run-C-zh0kxb.js";
6
+ import { d as loadSnapshot, h as serializeSnapshot, m as parseSnapshot, y as introspect } from "./sql-layout-n5vgZ671.js";
7
+ import { a as emitModule, d as buildModel, t as GENERATED_HEADER } from "./emit-Ds-4pNsQ.js";
8
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-50A8IPu1.js";
9
9
  import { s as loadConfig } from "./config-By5EbpdJ.js";
10
- import { t as VERSION } from "./version-D_miCSxz.js";
10
+ import { t as VERSION } from "./version-CyIR9dhg.js";
11
11
  // src/cli/introspect/from-catalog.ts
12
12
  /**
13
13
  * Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and
@@ -1,17 +1,17 @@
1
1
  import { a as findConfig, s as loadConfig } from "./config-By5EbpdJ.js";
2
- import { r as contentMapperFiles } from "./content-mapper-BGus1ryq.js";
3
- import { C as withConventions, S as promptConventions, _ as CONVENTION_ARGS, a as writeDesign, b as defaultConventions, c as createUrlParam, d as integrationFiles, f as overwrite, g as templatePlan, h as templateContextFor, i as blocksWiringPath, l as CANCELLED, m as parseIntegrations, o as readPresetInput, p as packagesFor, r as blockConfigImport, s as AUTHZ_NOTE, u as chooseIntegrations, v as CONVENTION_COMPLETIONS, x as hasConventionFlags, y as conventionFlags } from "./add-DH4qqKNb.js";
2
+ import { r as contentMapperFiles } from "./content-mapper-VUqqAubX.js";
3
+ import { C as withConventions, S as promptConventions, _ as CONVENTION_ARGS, a as writeDesign, b as defaultConventions, c as createUrlParam, d as integrationFiles, f as overwrite, g as templatePlan, h as templateContextFor, i as blocksWiringPath, l as CANCELLED, m as parseIntegrations, o as readPresetInput, p as packagesFor, r as blockConfigImport, s as AUTHZ_NOTE, u as chooseIntegrations, v as CONVENTION_COMPLETIONS, x as hasConventionFlags, y as conventionFlags } from "./add-BymOCZ8D.js";
4
4
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
5
5
  import { n as CliError } from "./errors-B7i-VGxk.js";
6
6
  import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
7
7
  import { r as readIfExists } from "./io-CngfGyMA.js";
8
- import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-TjFxbPdK.js";
9
- import { c as enablePgDelta, t as syncModules } from "./sync-Ba5EvTIT.js";
10
- import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-ClqJfxAp.js";
11
- import { a as toCatalog } from "./source-BBn7ypvg.js";
12
- import { c as TYPEGEN_VERSION } from "./cache-D6iHVy6b.js";
8
+ import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-QkRu7ef8.js";
9
+ import { c as enablePgDelta, t as syncModules } from "./sync-DNSR4TUL.js";
10
+ import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-n5vgZ671.js";
11
+ import { a as toCatalog } from "./source-50A8IPu1.js";
12
+ import { c as TYPEGEN_VERSION } from "./cache-DKdjMfP9.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-CHR-SAmE.js";
14
- import { t as appTablePlan } from "./app-table-files--ulI7C3Z.js";
14
+ import { t as appTablePlan } from "./app-table-files-DAt5YA7_.js";
15
15
  import { i as plain } from "./style-B5-nByxb.js";
16
16
  import { existsSync } from "node:fs";
17
17
  import { join, posix, resolve } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { r as errorText } from "./errors-B7i-VGxk.js";
2
- import "./source-BBn7ypvg.js";
3
- import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-BL_SZdUw.js";
2
+ import "./source-50A8IPu1.js";
3
+ import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-D5_5NsEI.js";
4
4
  // src/cli/doctor/reserved-roles.ts
5
5
  /**
6
6
  * Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
@@ -1,9 +1,9 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
- import { a as errorDocument, i as run } from "./run-DcjkMeLQ.js";
2
+ import { a as errorDocument, i as run } from "./run-BIT66ThJ.js";
3
3
  import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, t as PROCESS_ENV, x as object } from "./env-CQ831uY0.js";
4
4
  import { n as consentDigest } from "./agent-BlYLJPzM.js";
5
5
  import { n as CliError } from "./errors-B7i-VGxk.js";
6
- import { t as VERSION } from "./version-D_miCSxz.js";
6
+ import { t as VERSION } from "./version-CyIR9dhg.js";
7
7
  import { createInterface } from "node:readline";
8
8
  import { answerLine } from "better-supabase/mcp";
9
9
  // src/cli/mcp/server.ts
@@ -1,5 +1,5 @@
1
1
  import { t as generatorHash } from "./generator-hash-BkdtEywR.js";
2
- import { t as VERSION } from "./version-D_miCSxz.js";
2
+ import { t as VERSION } from "./version-CyIR9dhg.js";
3
3
  import { n as cacheEnabled, r as cacheRoot } from "./store-DP-nmqBt.js";
4
4
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
5
5
  import { dirname, resolve } from "node:path";
@@ -1,9 +1,9 @@
1
1
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
2
2
  import { i as readStdin } from "./io-CngfGyMA.js";
3
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-DKHipy0c.js";
4
- import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-ClqJfxAp.js";
5
- import { c as metaPaths } from "./emit-DGhalWTA.js";
6
- import { n as render } from "./render-g0u-8VRx.js";
3
+ import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-C-zh0kxb.js";
4
+ import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-n5vgZ671.js";
5
+ import { c as metaPaths } from "./emit-Ds-4pNsQ.js";
6
+ import { n as render } from "./render-CIdg7VKj.js";
7
7
  import { basename, join, relative, resolve, sep } from "node:path";
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { jsonSchema } from "better-supabase/generators/json-schema";