better-supabase 0.15.1 → 0.17.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 (300) hide show
  1. package/dist/{ai-schedules-D_Hz-ik5.d.ts → ai-schedules-Dk9H3kAp.d.ts} +1 -1
  2. package/dist/ai-sdk/agents/index.d.ts +2 -2
  3. package/dist/{api-DxAPqMrE.d.ts → api-CpL3hm87.d.ts} +1 -1
  4. package/dist/{app-tables-D29Rahtg.js → app-tables-Q0TYfeih.js} +1 -0
  5. package/dist/{app-tables-CbCFSXLG.d.ts → app-tables-dS02piE7.d.ts} +1 -1
  6. package/dist/astro/index.d.ts +4 -4
  7. package/dist/{auth-module-BEFESDC4.js → auth-module-BbmX-N4L.js} +12 -4
  8. package/dist/{authorization-HZdJCaVm.d.ts → authorization-CNsvnwle.d.ts} +19 -3
  9. package/dist/better-result/index.d.ts +2 -2
  10. package/dist/{bind-h5jre2K0.d.ts → bind-C801IaK-.d.ts} +4 -4
  11. package/dist/{block-env-BrfRvPrj.d.ts → block-env-BeG4DiiO.d.ts} +4 -4
  12. package/dist/blocks/access-requests/index.d.ts +1 -1
  13. package/dist/blocks/activities/index.d.ts +1 -1
  14. package/dist/blocks/agents/index.d.ts +1 -1
  15. package/dist/blocks/ai-cache/index.d.ts +1 -1
  16. package/dist/blocks/ai-chat/index.d.ts +4 -4
  17. package/dist/blocks/ai-files/index.d.ts +1 -1
  18. package/dist/blocks/ai-keys/index.d.ts +1 -1
  19. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  20. package/dist/blocks/announcements/index.d.ts +4 -4
  21. package/dist/blocks/api-keys/index.d.ts +2 -2
  22. package/dist/blocks/approvals/index.d.ts +1 -1
  23. package/dist/blocks/assets/index.d.ts +1 -1
  24. package/dist/blocks/assignment/index.d.ts +1 -1
  25. package/dist/blocks/attachments/index.d.ts +2 -2
  26. package/dist/blocks/audit/index.d.ts +5 -5
  27. package/dist/blocks/automations/index.d.ts +3 -3
  28. package/dist/blocks/billable-time/index.d.ts +1 -1
  29. package/dist/blocks/billing/index.d.ts +3 -3
  30. package/dist/blocks/bookings/index.d.ts +2 -2
  31. package/dist/blocks/bulk/index.d.ts +1 -1
  32. package/dist/blocks/calendar/index.d.ts +2 -2
  33. package/dist/blocks/catalog/index.d.ts +1 -1
  34. package/dist/blocks/channels/index.d.ts +1 -1
  35. package/dist/blocks/collections/index.d.ts +1 -1
  36. package/dist/blocks/comments/index.d.ts +5 -5
  37. package/dist/blocks/compliance/index.d.ts +1 -1
  38. package/dist/blocks/connectors/index.d.ts +1 -1
  39. package/dist/blocks/contacts/index.d.ts +1 -1
  40. package/dist/blocks/content/index.d.ts +1 -1
  41. package/dist/blocks/contracts/index.d.ts +1 -1
  42. package/dist/blocks/courses/index.d.ts +1 -1
  43. package/dist/blocks/created-by/index.d.ts +4 -3
  44. package/dist/blocks/created-by/index.js +2 -2
  45. package/dist/blocks/custom-fields/index.d.ts +1 -1
  46. package/dist/blocks/data-lifecycle/index.d.ts +1 -1
  47. package/dist/blocks/deals/index.d.ts +1 -1
  48. package/dist/blocks/dispatch/index.d.ts +1 -1
  49. package/dist/blocks/documents/index.d.ts +1 -1
  50. package/dist/blocks/domains/index.d.ts +1 -1
  51. package/dist/blocks/donations/index.d.ts +1 -1
  52. package/dist/blocks/drive/index.d.ts +1 -1
  53. package/dist/blocks/employees/index.d.ts +2 -2
  54. package/dist/blocks/enrichment/index.d.ts +1 -1
  55. package/dist/blocks/enrollments/index.d.ts +1 -1
  56. package/dist/blocks/entitlements/index.d.ts +3 -3
  57. package/dist/blocks/expenses/index.d.ts +1 -1
  58. package/dist/blocks/field-history/index.d.ts +1 -1
  59. package/dist/blocks/flags/index.d.ts +1 -1
  60. package/dist/blocks/forecasts/index.d.ts +1 -1
  61. package/dist/blocks/forms/index.d.ts +2 -2
  62. package/dist/blocks/goals/index.d.ts +1 -1
  63. package/dist/blocks/guests/index.d.ts +1 -1
  64. package/dist/blocks/hiring/index.d.ts +1 -1
  65. package/dist/blocks/identities/index.d.ts +1 -1
  66. package/dist/blocks/imports/index.d.ts +1 -1
  67. package/dist/blocks/inbox/index.d.ts +5 -5
  68. package/dist/blocks/incidents/index.d.ts +1 -1
  69. package/dist/blocks/index.d.ts +2 -2
  70. package/dist/blocks/inventory/index.d.ts +1 -1
  71. package/dist/blocks/invoices/index.d.ts +1 -1
  72. package/dist/blocks/knowledge/index.d.ts +1 -1
  73. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  74. package/dist/blocks/leases/index.d.ts +1 -1
  75. package/dist/blocks/leave/index.d.ts +1 -1
  76. package/dist/blocks/ledger/index.d.ts +1 -1
  77. package/dist/blocks/mail-sync/index.d.ts +1 -1
  78. package/dist/blocks/memberships/index.d.ts +1 -1
  79. package/dist/blocks/memory/index.d.ts +1 -1
  80. package/dist/blocks/messaging/index.d.ts +5 -5
  81. package/dist/blocks/metrics/index.d.ts +1 -1
  82. package/dist/blocks/mfa/index.d.ts +2 -2
  83. package/dist/blocks/moderation/index.d.ts +1 -1
  84. package/dist/blocks/notifications/index.d.ts +4 -4
  85. package/dist/blocks/numbering/index.d.ts +1 -1
  86. package/dist/blocks/oauth-server/index.d.ts +1 -1
  87. package/dist/blocks/onboarding/index.d.ts +2 -2
  88. package/dist/blocks/orders/index.d.ts +2 -2
  89. package/dist/blocks/organizations/index.d.ts +2 -2
  90. package/dist/blocks/outbox/index.d.ts +1 -1
  91. package/dist/blocks/passes/index.d.ts +1 -1
  92. package/dist/blocks/permissions/index.d.ts +3 -3
  93. package/dist/blocks/pipelines/index.d.ts +1 -1
  94. package/dist/blocks/posts/index.d.ts +1 -1
  95. package/dist/blocks/profiles/index.d.ts +1 -1
  96. package/dist/blocks/promotions/index.d.ts +1 -1
  97. package/dist/blocks/push/index.d.ts +2 -2
  98. package/dist/blocks/queue/index.d.ts +29 -2
  99. package/dist/blocks/queue/index.js +1 -1
  100. package/dist/blocks/quotes/index.d.ts +1 -1
  101. package/dist/blocks/rank/index.d.ts +1 -1
  102. package/dist/blocks/reactions/index.d.ts +4 -4
  103. package/dist/blocks/relations/index.d.ts +1 -1
  104. package/dist/blocks/reminders/index.d.ts +1 -1
  105. package/dist/blocks/reviews/index.d.ts +1 -1
  106. package/dist/blocks/saved-views/index.d.ts +3 -3
  107. package/dist/blocks/scores/index.d.ts +1 -1
  108. package/dist/blocks/search/index.d.ts +3 -3
  109. package/dist/blocks/security-events/index.d.ts +1 -1
  110. package/dist/blocks/segments/index.d.ts +1 -1
  111. package/dist/blocks/sequences/index.d.ts +1 -1
  112. package/dist/blocks/service-accounts/index.d.ts +1 -1
  113. package/dist/blocks/sessions/index.d.ts +2 -2
  114. package/dist/blocks/settings/index.d.ts +2 -2
  115. package/dist/blocks/share-links/index.d.ts +1 -1
  116. package/dist/blocks/shipments/index.d.ts +1 -1
  117. package/dist/blocks/signatures/index.d.ts +1 -1
  118. package/dist/blocks/signing-keys/index.d.ts +1 -1
  119. package/dist/blocks/sla/index.d.ts +1 -1
  120. package/dist/blocks/sso/index.d.ts +1 -1
  121. package/dist/blocks/state-machine/index.d.ts +1 -1
  122. package/dist/blocks/subjects/index.d.ts +2 -2
  123. package/dist/blocks/tags/index.d.ts +2 -2
  124. package/dist/blocks/tasks/index.d.ts +2 -2
  125. package/dist/blocks/teams/index.d.ts +1 -1
  126. package/dist/blocks/templates/index.d.ts +1 -1
  127. package/dist/blocks/time-tracking/index.d.ts +1 -1
  128. package/dist/blocks/timeline/index.d.ts +3 -3
  129. package/dist/blocks/trash/index.d.ts +1 -1
  130. package/dist/blocks/undo/index.d.ts +2 -2
  131. package/dist/blocks/updated-at/index.d.ts +7 -4
  132. package/dist/blocks/updated-at/index.js +2 -2
  133. package/dist/blocks/usage/index.d.ts +2 -2
  134. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  135. package/dist/blocks/versions/index.d.ts +1 -1
  136. package/dist/blocks/waitlist/index.d.ts +1 -1
  137. package/dist/blocks/webhooks/index.d.ts +2 -2
  138. package/dist/blocks/webhooks/index.js +1 -1
  139. package/dist/blocks/workflow-editor/index.d.ts +4 -4
  140. package/dist/blocks/workflows/index.d.ts +4 -4
  141. package/dist/{bucket-CiNi8sIw.d.ts → bucket-vc-QRrva.d.ts} +40 -1
  142. package/dist/cli/{add-C04vkBk9.js → add-BinNYhFD.js} +2 -2
  143. package/dist/cli/{add-DNOL9PDu.js → add-DMcrsWjC.js} +13 -11
  144. package/dist/cli/add-z-3pXI6C.js +1 -0
  145. package/dist/cli/{backfill-VFzf-TJP.js → backfill-DxBB62Zr.js} +3 -3
  146. package/dist/cli/bin.js +1 -1
  147. package/dist/cli/{blocks-Cb7mILFU.js → blocks-DSgTifw0.js} +1 -1
  148. package/dist/cli/{blocks-Bn7WUca5.js → blocks-rxOS-Mzz.js} +1 -1
  149. package/dist/cli/{cache-DkplpIGe.js → cache-oU0yHKf0.js} +1 -1
  150. package/dist/cli/{codemod-BbaE5dL_.js → codemod-Dsrv_3gQ.js} +1 -1
  151. package/dist/cli/{config-9t5ec_N7.js → config-2rwFHbwj.js} +3 -1
  152. package/dist/cli/{config-CBqkQjjN.js → config-C6XylzKz.js} +1 -1
  153. package/dist/cli/{content-mapper-Cdx6arxu.js → content-mapper-DLbXilBz.js} +2 -2
  154. package/dist/cli/{db-DrBI_HNv.js → db-Bwrr3GHM.js} +2 -2
  155. package/dist/cli/{doctor-C-VO-QQ2.js → doctor-CKt5Yyl4.js} +184 -142
  156. package/dist/cli/{gen-yRHOHW1b.js → gen-CeG6lbka.js} +13 -13
  157. package/dist/cli/index.d.ts +1 -1
  158. package/dist/cli/index.js +7 -7
  159. package/dist/cli/{init-BOw0SX65.js → init-DrQlf9RL.js} +6 -6
  160. package/dist/cli/{live-Lmg-hYyO.js → live-BvWGM4c3.js} +2 -2
  161. package/dist/cli/{mcp-DQ1zR2eA.js → mcp-BrOnGB15.js} +2 -2
  162. package/dist/cli/{metadata-CZaxkv21.js → metadata-BNSdPuKp.js} +3 -3
  163. package/dist/cli/{migration-safety-BbhLu2fo.js → migration-safety-NtB3dsRU.js} +2 -2
  164. package/dist/cli/{module-migration-DOn6EmNz.js → module-migration-mKhX88V_.js} +1 -1
  165. package/dist/cli/{print-D_xf8PPj.js → print-Dh8iuPK3.js} +1 -1
  166. package/dist/cli/{remove-BY_TOTRj.js → remove-DfFXVBRr.js} +5 -5
  167. package/dist/cli/{render-lJmHr0y9.js → render-ChIwdIOJ.js} +10 -4
  168. package/dist/cli/{run-BJ6IMs_H.js → run-CLSHSVYo.js} +7 -7
  169. package/dist/cli/{run-DkB0fhc9.js → run-D48ZEU58.js} +24 -24
  170. package/dist/cli/{seed-Cz8PcXeT.js → seed-CG-pA-5N.js} +2 -2
  171. package/dist/cli/seed-CUxW5Dks.js +1 -0
  172. package/dist/cli/{shared-Bh-6IqJS.js → shared-D0XBFSlz.js} +1 -1
  173. package/dist/cli/{snapshot-Bzcigm7T.js → snapshot-C6vh_n3t.js} +3 -3
  174. package/dist/cli/{source-WoLdcQzN.js → source-BZbEK5if.js} +1 -1
  175. package/dist/cli/{source-args-IpJRJO5t.js → source-args-MTLYpifA.js} +1 -1
  176. package/dist/cli/{spec-CZMiLhv_.js → spec-B4LhpI6t.js} +2 -2
  177. package/dist/cli/{spec-BF_dpwzW.js → spec-C-dhdKwa.js} +1 -1
  178. package/dist/cli/{sql-layout-rFP0oq1N.js → sql-layout-26LSoifK.js} +2 -2
  179. package/dist/cli/{sync-mANmYYoL.js → sync-CHGMZCJ5.js} +2 -2
  180. package/dist/cli/{upgrade-B0Q9wMs-.js → upgrade-C0dVsqNX.js} +3 -3
  181. package/dist/cli/{upgrade-BrNLt92u.js → upgrade-GB9rqUGT.js} +2 -2
  182. package/dist/cli/{version-CyavsyGA.js → version-T507a49w.js} +1 -1
  183. package/dist/client/index.d.ts +5 -5
  184. package/dist/client/index.js +1 -1
  185. package/dist/client/native/index.d.ts +5 -5
  186. package/dist/client/native/index.js +1 -1
  187. package/dist/{client-BAEbEA7t.js → client-C_mlji5R.js} +6 -5
  188. package/dist/{composite-BZYXlVBN.d.ts → composite-B7f1MMgr.d.ts} +4 -3
  189. package/dist/config/index.d.ts +3 -3
  190. package/dist/config/index.js +4 -4
  191. package/dist/{config-DWGgUQCh.js → config-BVNNJwGC.js} +7 -6
  192. package/dist/{config-CcehOvbz.js → config-CIBc79_8.js} +1 -1
  193. package/dist/{context-TGX2eDS5.d.ts → context-CKCgjEDF.d.ts} +9 -2
  194. package/dist/{controller-DyPPMFSw.d.ts → controller-CJUXhshv.d.ts} +1 -1
  195. package/dist/{conversion-O-kyhXcC.d.ts → conversion-DgHdDlTK.d.ts} +1 -1
  196. package/dist/create/index.d.ts +2 -2
  197. package/dist/create/index.js +5 -5
  198. package/dist/{define-DFBnQyYg.d.ts → define-Cgru0_kF.d.ts} +2 -2
  199. package/dist/{define-block-DvvcM54N.d.ts → define-block-Xxw8Hroe.d.ts} +2 -2
  200. package/dist/edge/index.d.ts +5 -5
  201. package/dist/{entitlements-BnhDBxLW.d.ts → entitlements-B0jmjNLD.d.ts} +1 -1
  202. package/dist/{executor-CVIn6JHa.d.ts → executor-BWFfz0ik.d.ts} +2 -2
  203. package/dist/expo/index.d.ts +2 -2
  204. package/dist/{extension-B-lajjex.js → extension-DTaHjwdc.js} +3 -2
  205. package/dist/{extension-B0EjCYhO.js → extension-mGylYROs.js} +2 -10
  206. package/dist/{field-errors-DYtg1mwv.d.ts → field-errors-DqlebtTE.d.ts} +12 -12
  207. package/dist/{framework-h5lP_5yj.d.ts → framework-CF6zFU7a.d.ts} +3 -3
  208. package/dist/hono/index.d.ts +4 -4
  209. package/dist/{index-BfkltrGJ.d.ts → index-B8YjrfVl.d.ts} +2 -2
  210. package/dist/{index-BAHGLvGD.d.ts → index-BCeTYhFk.d.ts} +1 -1
  211. package/dist/{index-Do2ChN_y.d.ts → index-CQhPHHDF.d.ts} +20 -2
  212. package/dist/{index-Ab4UeEn_.d.ts → index-ClMN0f98.d.ts} +44 -12
  213. package/dist/{index-B4gcStOz.d.ts → index-DUxXdQN_.d.ts} +3 -3
  214. package/dist/{index-BfK6olKm.d.ts → index-Dbb7BQdi.d.ts} +9 -4
  215. package/dist/{index-DN9mfmhA.d.ts → index-lB-8iPmY.d.ts} +51 -3
  216. package/dist/index.d.ts +2 -2
  217. package/dist/{instances-BHjCZoF8.js → instances-QOzIz9-q.js} +1 -1
  218. package/dist/list/index.d.ts +1 -1
  219. package/dist/{list-query-BDVutLFr.d.ts → list-query-DxjuIHEL.d.ts} +1 -1
  220. package/dist/mapper/bin.js +6 -6
  221. package/dist/mcp/index.d.ts +4 -4
  222. package/dist/mcp/sdk/index.d.ts +2 -2
  223. package/dist/next/client/index.d.ts +81 -1
  224. package/dist/next/client/index.js +178 -2
  225. package/dist/next/index.d.ts +15 -14
  226. package/dist/{operations-CSc_IsHO.d.ts → operations-Dc07aV_H.d.ts} +1 -1
  227. package/dist/{options-DChZoVfs.d.ts → options-B_NrjVDt.d.ts} +1 -0
  228. package/dist/{options-B2swWnJW.js → options-CCUaRLgd.js} +2 -1
  229. package/dist/{options-CM6-18FQ.d.ts → options-CDSCkYxu.d.ts} +1 -0
  230. package/dist/{options-C-dQHH5-.js → options-tSsUF0-7.js} +2 -1
  231. package/dist/orpc/index.d.ts +4 -4
  232. package/dist/otel/index.js +4 -4
  233. package/dist/{ports-DOhtuw3c.js → ports-CaVRXjxq.js} +1 -1
  234. package/dist/{ports-CpdiQv1D.d.ts → ports-DnpAuTvB.d.ts} +1 -1
  235. package/dist/powersync/index.d.ts +2 -2
  236. package/dist/preset/index.d.ts +3 -3
  237. package/dist/preset/index.js +3 -3
  238. package/dist/{preset-CsHnIBJF.js → preset-BIANzB5p.js} +2 -2
  239. package/dist/{push-token-B3m3pWAv.d.ts → push-token-C_mFkYfq.d.ts} +1 -1
  240. package/dist/query/index.d.ts +1 -1
  241. package/dist/{rate-limit-o44SYkVY.js → rate-limit-Dt9vAY4E.js} +53 -0
  242. package/dist/react/index.d.ts +6 -6
  243. package/dist/react/index.js +3 -3
  244. package/dist/react/native/index.d.ts +1 -1
  245. package/dist/react/native/index.js +1 -1
  246. package/dist/react/server.d.ts +12 -7
  247. package/dist/react/server.js +8 -3
  248. package/dist/react/session.d.ts +5 -0
  249. package/dist/react/session.js +9 -1
  250. package/dist/{react-BuDYI62C.js → react-CZUZYn9E.js} +41 -4
  251. package/dist/react-router/index.d.ts +3 -3
  252. package/dist/realtime/index.d.ts +5 -5
  253. package/dist/realtime/index.js +2 -1
  254. package/dist/{record-form-DB_5Ue_B.d.ts → record-form-xWvVcb86.d.ts} +1 -1
  255. package/dist/records/index.d.ts +7 -7
  256. package/dist/relay-gKvKJ3xf.js +208 -0
  257. package/dist/{resource-execute-CzHuDsil.d.ts → resource-execute-DqWfEc56.d.ts} +1 -1
  258. package/dist/{resource-types-DnKiH4G2.d.ts → resource-types-BIoz_ElD.d.ts} +1 -1
  259. package/dist/{resources-B9cQxhjw.d.ts → resources-Bt2PDKE7.d.ts} +1 -1
  260. package/dist/server/index.d.ts +147 -9
  261. package/dist/server/index.js +396 -1
  262. package/dist/{server-types-7QPzW2bF.d.ts → server-types-gR4Q1aM0.d.ts} +5 -354
  263. package/dist/{session-CfBCJGgc.d.ts → session-C1OuXbtN.d.ts} +2 -1
  264. package/dist/session-status-qQLm7jzh.d.ts +82 -0
  265. package/dist/{sign-in-BsIaNx2C.js → sign-in-CmPK1AgM.js} +20 -10
  266. package/dist/solid/index.d.ts +7 -7
  267. package/dist/solid/index.js +1 -1
  268. package/dist/solid-start/index.d.ts +3 -3
  269. package/dist/spec/index.d.ts +1 -1
  270. package/dist/sql/index.d.ts +5 -5
  271. package/dist/sql/index.js +3 -3
  272. package/dist/{sql-OLVW4t08.js → sql-ClTmzHs8.js} +199 -31
  273. package/dist/sqlite/index.d.ts +1 -1
  274. package/dist/ssr/index.d.ts +1 -1
  275. package/dist/storage/index.d.ts +3 -3
  276. package/dist/storage/index.js +54 -1
  277. package/dist/support-B4ZBVxt3.d.ts +357 -0
  278. package/dist/svelte/index.d.ts +7 -7
  279. package/dist/svelte/index.js +1 -1
  280. package/dist/sveltekit/index.d.ts +4 -4
  281. package/dist/{tags-BjHflcHF.d.ts → tags-sM-CH9Mn.d.ts} +1 -1
  282. package/dist/tanstack-db/index.d.ts +1 -1
  283. package/dist/tanstack-start/index.d.ts +3 -3
  284. package/dist/{tenant-DzFsg0Pc.d.ts → tenant-DVvjw9H-.d.ts} +1 -1
  285. package/dist/testing/index.d.ts +9 -8
  286. package/dist/testing/index.js +3 -3
  287. package/dist/{timeline-WrFMgd3U.d.ts → timeline-BBfKuMVL.d.ts} +3 -3
  288. package/dist/{topic-DNFEFGKI.d.ts → topic-BtLz-qTI.d.ts} +3 -3
  289. package/dist/{verify-CMou8dWZ.d.ts → verify-DEqY__0N.d.ts} +1 -1
  290. package/dist/vue/index.d.ts +7 -7
  291. package/dist/vue/index.js +1 -1
  292. package/dist/{watch-topic-Bo9S2R4P.d.ts → watch-topic-tnfOTa3-.d.ts} +1 -1
  293. package/dist/yjs/index.d.ts +1 -1
  294. package/package.json +1 -1
  295. package/schemas/config-v1.json +22 -0
  296. package/schemas/doctor-report-v1.json +1 -0
  297. package/skills/better-supabase-api/SKILL.md +3 -1
  298. package/skills/better-supabase-auth/SKILL.md +7 -0
  299. package/dist/cli/add-CUH0rORo.js +0 -1
  300. package/dist/cli/seed-D6XijwbR.js +0 -1
@@ -8,7 +8,7 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
8
8
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
9
9
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
10
10
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
11
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DvvcM54N.js";
11
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-Xxw8Hroe.js";
12
12
  //#region src/blocks/versions/json-patch.d.ts
13
13
  /** A JSON value, as a version's content holds it. */
14
14
  type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
@@ -7,7 +7,7 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
7
7
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
8
8
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
9
9
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
10
- import { c as BlockOf } from "../../define-block-DvvcM54N.js";
10
+ import { c as BlockOf } from "../../define-block-Xxw8Hroe.js";
11
11
  import { n as VerifyOptions } from "../../signatures-Dkx9OE8j.js";
12
12
  //#region src/blocks/waitlist/waitlist.d.ts
13
13
  type WaitlistStatus = "waiting" | "approved" | "rejected" | "joined";
@@ -9,11 +9,11 @@ import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport,
9
9
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
10
10
  import { t as BlockProblemOptions } from "../../problem-DNwN8iGz.js";
11
11
  import { g as JobHandler, x as QueueSchemas, y as Queue } from "../../types-Czq9Xtpa.js";
12
- import { c as BlockOf } from "../../define-block-DvvcM54N.js";
12
+ import { c as BlockOf } from "../../define-block-Xxw8Hroe.js";
13
13
  import { i as EventSink, t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
14
14
  import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-D_pwXlBs.js";
15
15
  import { a as verifySharedSecret, i as signWebhook, n as VerifyOptions, o as verifyWebhook, r as WebhookInput, t as VerifiedWebhook } from "../../signatures-Dkx9OE8j.js";
16
- import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-CMou8dWZ.js";
16
+ import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-DEqY__0N.js";
17
17
  import { A as IncomingVerify, C as isPublicAddress, D as IncomingDelivery, E as CreatedIncomingWebhook, F as UpdateIncomingWebhookInput, I as UpdatedIncomingWebhook, M as IncomingWebhooks, N as IncomingWebhooksOptions, O as IncomingDestination, P as RotatedIncomingSecret, S as ResolveHost, T as CreateIncomingWebhookInput, _ as WebhookResponse, a as WebhookSignInput, b as AllowUrl, c as standardWebhooks, d as RotateSecretOptions, f as WebhookSecretStore, g as WebhookRequest, h as WebhookPolicyError, i as StandardWebhooksOptions, j as IncomingWebhook, k as IncomingDestinationResult, l as standardWebhooksAsymmetric, m as FetchTransportOptions, n as HmacSignerOptions, o as WebhookSigner, p as sqlSecretStore, r as RawSigner, s as hmacSigner, t as AsymmetricWebhooksOptions, u as webhookPublicKey, v as WebhookTransport, w as publicUrl, x as PublicUrlOptions, y as fetchTransport } from "../../signers-BAEzvTJ0.js";
18
18
  import { StandardSchemaV1 } from "@standard-schema/spec";
19
19
  //#region src/core/hmac.d.ts
@@ -17,7 +17,7 @@ import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
17
17
  import { i as signWebhook, o as verifySharedSecret, s as verifyWebhook, t as PUBLIC_KEY_PREFIX } from "../../signatures-CNcoq392.js";
18
18
  import { t as cronRoute } from "../../cron-route-UU9i5i9J.js";
19
19
  import { t as subjectReaders } from "../../subject-readers-B-pQ9Mmo.js";
20
- import { n as hitRateLimit, o as receiveWebhook } from "../../rate-limit-o44SYkVY.js";
20
+ import { n as hitRateLimit, o as receiveWebhook } from "../../rate-limit-Dt9vAY4E.js";
21
21
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
22
22
  import { a as signStripeWebhook, i as isDatabaseWebhook, n as databaseChange, o as stripeInboxVerify, r as hookError, s as verifyStripeWebhook, t as authHook } from "../../verify-ZLFUdlqE.js";
23
23
  import { toHttp } from "../../events/index.js";
@@ -3,11 +3,11 @@ import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
3
3
  import { r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
4
4
  import { Ct as Events, gt as WorkflowEventData } from "../../events-vcqenSYU.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
6
- import { c as BlockOf } from "../../define-block-DvvcM54N.js";
6
+ import { c as BlockOf } from "../../define-block-Xxw8Hroe.js";
7
7
  import { g as Workflows, n as WorkflowRun } from "../../workflows-B0ZPAQu0.js";
8
- import { p as SubscriptionStatus } from "../../topic-DNFEFGKI.js";
9
- import { n as TopicPort } from "../../watch-topic-Bo9S2R4P.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-DyPPMFSw.js";
8
+ import { p as SubscriptionStatus } from "../../topic-BtLz-qTI.js";
9
+ import { n as TopicPort } from "../../watch-topic-tnfOTa3-.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-CJUXhshv.js";
11
11
  import { A as WorkflowVersionOwner, B as WorkflowGraphNode, C as WorkflowGrantPrincipal, D as WorkflowTrigger, E as WorkflowStepInfo, F as WorkflowFilterCondition, G as durationMs, H as WorkflowNodeKind, I as WorkflowFilterField, J as matchesFilter, K as evaluateCondition, L as WorkflowGraph, M as GraphScope, N as WorkflowCondition, O as WorkflowTriggerKind, P as WorkflowConditionOperator, R as WorkflowGraphDiff, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as approved, V as WorkflowNodeCondition, W as diffGraphs, X as validateGraph, Y as topologicalOrder, _ as WorkflowCredential, a as CredentialInput, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, j as WorkflowVersionStatus, k as WorkflowVersion, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, o as DefinitionInput, p as TriggerInput, q as filterConditionOf, r as BuilderStartCall, s as GrantInput, t as AlertInput, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WorkflowGraphEdge } from "../../types-DsRfiQ0v.js";
12
12
  import { a as GraphSubject, c as graphRunFields, i as GraphStepCall, l as startNodeOf, n as GraphRunFields, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-Bi056Cnj.js";
13
13
  //#region src/blocks/workflow-editor/workflow-editor.d.ts
@@ -1,11 +1,11 @@
1
1
  import { b as DbError } from "../../result-DZeA5KS6.js";
2
2
  import { Ct as Events, _t as WorkflowRunEventData } from "../../events-vcqenSYU.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
4
- import { c as BlockOf } from "../../define-block-DvvcM54N.js";
4
+ import { c as BlockOf } from "../../define-block-Xxw8Hroe.js";
5
5
  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-B0ZPAQu0.js";
6
- import { p as SubscriptionStatus } from "../../topic-DNFEFGKI.js";
7
- import { n as TopicPort } from "../../watch-topic-Bo9S2R4P.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-DyPPMFSw.js";
6
+ import { p as SubscriptionStatus } from "../../topic-BtLz-qTI.js";
7
+ import { n as TopicPort } from "../../watch-topic-tnfOTa3-.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-CJUXhshv.js";
9
9
  //#region src/blocks/workflows/client.d.ts
10
10
  interface WorkflowRunsControllerOptions {
11
11
  readonly client: {
@@ -429,6 +429,39 @@ interface Reservation {
429
429
  readonly token: string;
430
430
  readonly signedUrl: string;
431
431
  }
432
+ /**
433
+ * A signed upload for a TUS client such as `tus-js-client`: send every request
434
+ * to `tusEndpoint` with `headers` (`x-signature` carries the token, `x-upsert`
435
+ * the upsert choice) and `metadata` plus the file's `contentType` and
436
+ * `cacheControl`. The browser needs no access token. Finish it with
437
+ * `claimReserved`, as a plain reservation.
438
+ */
439
+ interface ResumableReservation extends Reservation {
440
+ readonly bucket: string;
441
+ /** `<storage>/upload/resumable/sign`, on the direct Storage host when hosted. */
442
+ readonly tusEndpoint: string;
443
+ /** When the token expires (ISO 8601); start the upload before then. */
444
+ readonly expiresAt: string;
445
+ readonly headers: {
446
+ readonly "x-signature": string;
447
+ readonly "x-upsert": "true" | "false";
448
+ };
449
+ /** The TUS metadata Storage needs to place the object. */
450
+ readonly metadata: {
451
+ readonly bucketName: string;
452
+ readonly objectName: string;
453
+ };
454
+ }
455
+ interface ReserveResumableOptions {
456
+ readonly upsert?: boolean;
457
+ /**
458
+ * Use the direct Storage host (`<project-ref>.storage.supabase.co`) on a
459
+ * hosted project. Defaults to true.
460
+ */
461
+ readonly direct?: boolean;
462
+ /** Epoch ms, for the expiry fallback when the token carries no `exp`. */
463
+ readonly now?: () => number;
464
+ }
432
465
  interface ReplaceOptions<Id extends string = string> extends UploadOptions {
433
466
  /**
434
467
  * Path the object replaces, checked like any other target before the upload.
@@ -554,6 +587,12 @@ interface BucketClient<P extends string, Id extends string = string, V extends s
554
587
  reserve(target: ObjectTarget<P, Id>, options?: {
555
588
  upsert?: boolean;
556
589
  }): AsyncResult<Reservation>;
590
+ /**
591
+ * A signed resumable (TUS) upload for a browser or another service, with the
592
+ * endpoint, headers and metadata the client sends. In a support session the
593
+ * target must be allowed to write the path, as for `reserve`.
594
+ */
595
+ reserveResumable(target: ObjectTarget<P, Id>, options?: ReserveResumableOptions): AsyncResult<ResumableReservation>;
557
596
  uploadReserved(reservation: Pick<Reservation, "path" | "token">, body: UploadBody, options?: UploadOptions): AsyncResult<{
558
597
  path: StoragePath<Id>;
559
598
  }>;
@@ -663,4 +702,4 @@ declare function parseSize(value: string | number): number;
663
702
  */
664
703
  declare function defineBucket<const P extends string, const Id extends string = string, const V extends string = never>(config: BucketConfig<P, Id, V>): Bucket<P, Id, V>;
665
704
  //#endregion
666
- export { TemplateValues as $, StorageBucketApi as A, StorageListV2Result as B, UploadOptions as C, TTL as D, parseSize as E, StorageFetchParameters as F, StorageSearchV2Options as G, StorageRemoveEntry as H, StorageFileOptions as I, StorageUrlOptions as J, StorageSignedUrlEntry as K, StorageListEntry as L, StorageDestinationOptions as M, StorageDownloadOptions as N, TtlPreset as O, StorageFailure as P, TemplateParams as Q, StorageListV2Folder as R, UploadBody as S, defineBucket as T, StorageResponse as U, StorageObjectInfo as V, StorageSearchOptions as W, StoragePath as X, PathIn as Y, AppliedBucket as Z, StoredObject as _, BucketConnectOptions as a, TransferOptions as b, DownloadOptions as c, PathValues as d, PurgeCacheOptions as f, StorageAdminClient as g, Reservation as h, BucketConfig as i, StorageClient as j, StorageApi as k, ImageTransform as l, ReplaceResult as m, Bucket as n, BucketDrift as o, ReplaceOptions as p, StorageTransform as q, BucketClient as r, BucketPolicy as s, ActualBucket as t, ObjectTarget as u, SweepOptions as v, UrlOptions as w, TransformOptions as x, SweepResult as y, StorageListV2Object as z };
705
+ export { AppliedBucket as $, TtlPreset as A, StorageListV2Folder as B, TransformOptions as C, defineBucket as D, UrlOptions as E, StorageDownloadOptions as F, StorageResponse as G, StorageListV2Result as H, StorageFailure as I, StorageSignedUrlEntry as J, StorageSearchOptions as K, StorageFetchParameters as L, StorageBucketApi as M, StorageClient as N, parseSize as O, StorageDestinationOptions as P, StoragePath as Q, StorageFileOptions as R, TransferOptions as S, UploadOptions as T, StorageObjectInfo as U, StorageListV2Object as V, StorageRemoveEntry as W, StorageUrlOptions as X, StorageTransform as Y, PathIn as Z, ResumableReservation as _, BucketConnectOptions as a, SweepOptions as b, DownloadOptions as c, PathValues as d, TemplateParams as et, PurgeCacheOptions as f, ReserveResumableOptions as g, Reservation as h, BucketConfig as i, StorageApi as j, TTL as k, ImageTransform as l, ReplaceResult as m, Bucket as n, BucketDrift as o, ReplaceOptions as p, StorageSearchV2Options as q, BucketClient as r, BucketPolicy as s, ActualBucket as t, TemplateValues as tt, ObjectTarget as u, StorageAdminClient as v, UploadBody as w, SweepResult as x, StoredObject as y, StorageListEntry as z };
@@ -1,8 +1,8 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
- import { T as providerLabel, _ as layoutFor, h as MEMBERSHIP_CLAIM_MODULES, v as providerOwnsMemberships } from "./module-migration-DOn6EmNz.js";
2
+ import { T as providerLabel, _ as layoutFor, h as MEMBERSHIP_CLAIM_MODULES, v as providerOwnsMemberships } from "./module-migration-mKhX88V_.js";
3
3
  import { r as applyPlan } from "./files-CX71yBm8.js";
4
4
  import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-CrWfk8s3.js";
5
- import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-mANmYYoL.js";
5
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-CHGMZCJ5.js";
6
6
  import { basename, dirname } from "node:path";
7
7
  import { readFile } from "node:fs/promises";
8
8
  import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
@@ -1,22 +1,22 @@
1
1
  import { a as list, p as commandMeta, r as defineCliCommand } from "./command-CQ61x6gN.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-CyavsyGA.js";
3
+ import { t as VERSION } from "./version-T507a49w.js";
4
4
  import { a as parseNames, n as CliError } from "./errors-BTe6A15O.js";
5
5
  import { r as readIfExists, t as display } from "./io-DH1kcmmP.js";
6
- import { t as loadSnapshot } from "./snapshot-Bzcigm7T.js";
6
+ import { t as loadSnapshot } from "./snapshot-C6vh_n3t.js";
7
7
  import { t as isRecord } from "./guards-CUlDNYZs.js";
8
- import { a as toCatalog } from "./source-WoLdcQzN.js";
9
- import { f as dataMigration } from "./module-migration-DOn6EmNz.js";
10
- import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-9t5ec_N7.js";
8
+ import { a as toCatalog } from "./source-BZbEK5if.js";
9
+ import { f as dataMigration } from "./module-migration-mKhX88V_.js";
10
+ import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-2rwFHbwj.js";
11
11
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
12
- 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-BbhLu2fo.js";
12
+ 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-NtB3dsRU.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-D9JaAX20.js";
14
14
  import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-CrWfk8s3.js";
15
- import { t as syncModules } from "./sync-mANmYYoL.js";
16
- import { t as addModules } from "./add-C04vkBk9.js";
17
- import { n as ident } from "./live-Lmg-hYyO.js";
18
- import { t as blockNames } from "./blocks-Cb7mILFU.js";
19
- import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-IpJRJO5t.js";
15
+ import { t as syncModules } from "./sync-CHGMZCJ5.js";
16
+ import { t as addModules } from "./add-BinNYhFD.js";
17
+ import { n as ident } from "./live-BvWGM4c3.js";
18
+ import { t as blockNames } from "./blocks-DSgTifw0.js";
19
+ import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-MTLYpifA.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { dirname, join, posix, resolve } from "node:path";
22
22
  import { readFile } from "node:fs/promises";
@@ -405,6 +405,8 @@ function proposeAdoption(block, tables, options = {}) {
405
405
  if (Object.keys(mapped).length > 0) entryColumns[logical] = mapped;
406
406
  }
407
407
  const current = options.blocks?.[block];
408
+ const governed = current?.ownTablePolicies === void 0 ? [...chosen.values()].filter((table) => table !== null && (table.policies ?? []).some((policy) => policy.permissive && !policy.name.startsWith("bsb_"))).map((table) => `${table.schema}.${table.name}`) : [];
409
+ if (governed.length > 0) warnings.push(`${governed.join(", ")} already ${governed.length === 1 ? "has" : "have"} permissive policies of your own. To keep the block's bsb_ policies off ${governed.length === 1 ? "it" : "them"}, set blocks.${block}.ownTablePolicies: "app"; otherwise the block adds a policy for each command yours don't cover, and doctor (BS347) reports one that is wider than yours.`);
408
410
  const entry = {
409
411
  ...current,
410
412
  tables: entryTables,
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-DMcrsWjC.js";
@@ -1,10 +1,10 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-CQ61x6gN.js";
2
2
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
4
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-9t5ec_N7.js";
4
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-2rwFHbwj.js";
5
5
  import { t as connect } from "./db-CQCLx7cx.js";
6
- import { n as ident } from "./live-Lmg-hYyO.js";
7
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-IpJRJO5t.js";
6
+ import { n as ident } from "./live-BvWGM4c3.js";
7
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-MTLYpifA.js";
8
8
  //#region src/cli/commands/backfill.ts
9
9
  const DEFAULT_BATCH = 1e3;
10
10
  const ARGS = {
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-DkB0fhc9.js";
2
+ import { i as run } from "./run-D48ZEU58.js";
3
3
  import { t as colorEnabled } from "./style-Bm2X5JrN.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1,7 +1,7 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-CQ61x6gN.js";
2
2
  import { n as CliError } from "./errors-BTe6A15O.js";
3
3
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
4
- import { n as listModules, t as printModule } from "./print-D_xf8PPj.js";
4
+ import { n as listModules, t as printModule } from "./print-Dh8iuPK3.js";
5
5
  import { t as decodePresetInput } from "./preset-BwmIfFnh.js";
6
6
  import { BLOCK_CATEGORIES } from "better-supabase/blocks";
7
7
  import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-Cb7mILFU.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-DSgTifw0.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-CyavsyGA.js";
1
+ import { t as VERSION } from "./version-T507a49w.js";
2
2
  import { dirname, resolve } from "node:path";
3
3
  import { createHash } from "node:crypto";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -4,7 +4,7 @@ import { n as CliError } from "./errors-BTe6A15O.js";
4
4
  import { t as migrateCliCall } from "./moved-CsfDQcyk.js";
5
5
  import { t as isRecord$1 } from "./guards-CUlDNYZs.js";
6
6
  import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
7
- import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-rFP0oq1N.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-26LSoifK.js";
8
8
  import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-CrWfk8s3.js";
9
9
  import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-DkTA3Rhx.js";
10
10
  import { a as REVIEW_0_15, c as renameSubpaths, r as PLUGIN_IMPORT_RENAMES, s as SUBPATH_RENAMES_0_15, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-BuSaTE_G.js";
@@ -778,6 +778,7 @@ const blockEntries = {
778
778
  "user",
779
779
  "none"
780
780
  ])),
781
+ ownTablePolicies: optional(picklist(["block", "app"])),
781
782
  functions: optional(stringRecord),
782
783
  permissions: optional(stringRecord),
783
784
  names: optional(union([entityName, record(string(), union([entityName, strictObject({
@@ -1261,7 +1262,8 @@ const FLAT = {
1261
1262
  "tenant",
1262
1263
  "user",
1263
1264
  "none"
1264
- ]))
1265
+ ])),
1266
+ ownTablePolicies: optional(picklist(["block", "app"]))
1265
1267
  })),
1266
1268
  seed: optional(strictObject({
1267
1269
  entry: optional(string()),
@@ -1 +1 @@
1
- export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-9t5ec_N7.js";
1
+ export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-2rwFHbwj.js";
@@ -1,6 +1,6 @@
1
1
  import { r as readIfExists } from "./io-DH1kcmmP.js";
2
- import { t as CACHE_DIR } from "./cache-DkplpIGe.js";
3
- import { x as installedVersion } from "./snapshot-Bzcigm7T.js";
2
+ import { t as CACHE_DIR } from "./cache-oU0yHKf0.js";
3
+ import { x as installedVersion } from "./snapshot-C6vh_n3t.js";
4
4
  import { t as i } from "./jsonc-D5Fu67jw.js";
5
5
  import { resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
@@ -2,11 +2,11 @@ import { p as commandMeta, r as defineCliCommand } from "./command-CQ61x6gN.js";
2
2
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
4
4
  import { t as display } from "./io-DH1kcmmP.js";
5
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-9t5ec_N7.js";
5
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-2rwFHbwj.js";
6
6
  import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
7
7
  import { r as supabaseCli } from "./exec--Q1ZEWUW.js";
8
8
  import { t as connect } from "./db-CQCLx7cx.js";
9
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-IpJRJO5t.js";
9
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-MTLYpifA.js";
10
10
  import { a as migrationFiles, i as isShadowFailure, o as migrationVersion, r as inStackDiff, t as MIGRATION_HEADER } from "./in-stack-diff-DQTW53Vf.js";
11
11
  import { dirname, join, resolve } from "node:path";
12
12
  import { mkdir, readFile, writeFile } from "node:fs/promises";