better-supabase 0.23.0 → 0.25.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 (321) hide show
  1. package/dist/{ai-schedules-7uQNMXve.d.ts → ai-schedules-yGZH-vQb.d.ts} +1 -1
  2. package/dist/ai-sdk/agents/index.d.ts +2 -2
  3. package/dist/ai-sdk/batches/index.d.ts +1 -1
  4. package/dist/ai-sdk/index.d.ts +1 -1
  5. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  6. package/dist/{api-CHObZL7m.d.ts → api-B1OkIWdx.d.ts} +3 -3
  7. package/dist/{api-keys-D5k63K6y.d.ts → api-keys-ClhKBDcc.d.ts} +1 -1
  8. package/dist/{app-tables-CJO6pWwy.d.ts → app-tables-xij_MI5H.d.ts} +1 -1
  9. package/dist/{approvals-Dh9dUXrN.d.ts → approvals-C5fmPLsH.d.ts} +1 -1
  10. package/dist/astro/index.d.ts +5 -5
  11. package/dist/{authorization-Dtwpjeuz.d.ts → authorization-BJV2i8xB.d.ts} +49 -12
  12. package/dist/{authorization-hooks-D_pwXlBs.d.ts → authorization-hooks-DtzreCAq.d.ts} +1 -1
  13. package/dist/{automations-FCnWy387.js → automations-8L3NEuoq.js} +4 -1
  14. package/dist/{availability-vguUvEK2.d.ts → availability-BdeKCHpl.d.ts} +10 -0
  15. package/dist/better-result/index.d.ts +2 -2
  16. package/dist/{bind-DaoTunvE.d.ts → bind-vKDmdu_4.d.ts} +4 -4
  17. package/dist/{block-env-DUyo2I5O.d.ts → block-env-wVLz0KMV.d.ts} +4 -4
  18. package/dist/blocks/access-requests/index.d.ts +2 -2
  19. package/dist/blocks/activities/index.d.ts +3 -3
  20. package/dist/blocks/agents/index.d.ts +2 -2
  21. package/dist/blocks/ai-cache/index.d.ts +1 -1
  22. package/dist/blocks/ai-chat/index.d.ts +5 -5
  23. package/dist/blocks/ai-files/index.d.ts +1 -1
  24. package/dist/blocks/ai-keys/index.d.ts +3 -3
  25. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  26. package/dist/blocks/announcements/index.d.ts +5 -5
  27. package/dist/blocks/api-keys/index.d.ts +5 -5
  28. package/dist/blocks/approvals/index.d.ts +3 -3
  29. package/dist/blocks/assets/index.d.ts +2 -2
  30. package/dist/blocks/assignment/index.d.ts +3 -3
  31. package/dist/blocks/attachments/index.d.ts +3 -3
  32. package/dist/blocks/audit/index.d.ts +7 -7
  33. package/dist/blocks/automations/index.d.ts +5 -5
  34. package/dist/blocks/billable-time/index.d.ts +2 -2
  35. package/dist/blocks/billing/index.d.ts +5 -5
  36. package/dist/blocks/bookings/index.d.ts +6 -6
  37. package/dist/blocks/bulk/index.d.ts +2 -2
  38. package/dist/blocks/calendar/index.d.ts +46 -13
  39. package/dist/blocks/calendar/index.js +130 -30
  40. package/dist/blocks/catalog/index.d.ts +2 -2
  41. package/dist/blocks/channels/index.d.ts +3 -3
  42. package/dist/blocks/collections/index.d.ts +3 -3
  43. package/dist/blocks/comments/index.d.ts +5 -5
  44. package/dist/blocks/compliance/index.d.ts +2 -2
  45. package/dist/blocks/connectors/index.d.ts +3 -3
  46. package/dist/blocks/contacts/index.d.ts +3 -3
  47. package/dist/blocks/content/index.d.ts +2 -2
  48. package/dist/blocks/contracts/index.d.ts +2 -2
  49. package/dist/blocks/courses/index.d.ts +2 -2
  50. package/dist/blocks/created-by/index.d.ts +1 -1
  51. package/dist/blocks/custom-fields/index.d.ts +2 -2
  52. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  53. package/dist/blocks/deals/index.d.ts +3 -3
  54. package/dist/blocks/dispatch/index.d.ts +2 -2
  55. package/dist/blocks/documents/index.d.ts +2 -2
  56. package/dist/blocks/domains/index.d.ts +2 -2
  57. package/dist/blocks/donations/index.d.ts +2 -2
  58. package/dist/blocks/drive/index.d.ts +3 -3
  59. package/dist/blocks/employees/index.d.ts +21 -6
  60. package/dist/blocks/employees/index.js +37 -2
  61. package/dist/blocks/enrichment/index.d.ts +3 -3
  62. package/dist/blocks/enrollments/index.d.ts +2 -2
  63. package/dist/blocks/entitlements/index.d.ts +3 -3
  64. package/dist/blocks/expenses/index.d.ts +2 -2
  65. package/dist/blocks/field-history/index.d.ts +1 -1
  66. package/dist/blocks/flags/index.d.ts +2 -2
  67. package/dist/blocks/forecasts/index.d.ts +3 -3
  68. package/dist/blocks/forms/index.d.ts +3 -3
  69. package/dist/blocks/goals/index.d.ts +1 -1
  70. package/dist/blocks/guests/index.d.ts +2 -2
  71. package/dist/blocks/hiring/index.d.ts +13 -6
  72. package/dist/blocks/hiring/index.js +15 -4
  73. package/dist/blocks/identities/index.d.ts +2 -2
  74. package/dist/blocks/imports/index.d.ts +2 -2
  75. package/dist/blocks/inbox/index.d.ts +6 -6
  76. package/dist/blocks/incidents/index.d.ts +2 -2
  77. package/dist/blocks/index.d.ts +4 -4
  78. package/dist/blocks/inventory/index.d.ts +2 -2
  79. package/dist/blocks/invoices/index.d.ts +3 -3
  80. package/dist/blocks/knowledge/index.d.ts +1 -1
  81. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  82. package/dist/blocks/leases/index.d.ts +2 -2
  83. package/dist/blocks/leave/index.d.ts +2 -2
  84. package/dist/blocks/ledger/index.d.ts +2 -2
  85. package/dist/blocks/mail-sync/index.d.ts +3 -3
  86. package/dist/blocks/memberships/index.d.ts +1 -1
  87. package/dist/blocks/memory/index.d.ts +1 -1
  88. package/dist/blocks/messaging/index.d.ts +7 -7
  89. package/dist/blocks/metrics/index.d.ts +2 -2
  90. package/dist/blocks/mfa/index.d.ts +2 -2
  91. package/dist/blocks/moderation/index.d.ts +2 -2
  92. package/dist/blocks/notifications/index.d.ts +7 -7
  93. package/dist/blocks/numbering/index.d.ts +2 -2
  94. package/dist/blocks/oauth-server/index.d.ts +2 -2
  95. package/dist/blocks/onboarding/index.d.ts +2 -2
  96. package/dist/blocks/orders/index.d.ts +3 -3
  97. package/dist/blocks/organizations/index.d.ts +4 -4
  98. package/dist/blocks/outbox/index.d.ts +2 -2
  99. package/dist/blocks/passes/index.d.ts +3 -3
  100. package/dist/blocks/permissions/index.d.ts +3 -3
  101. package/dist/blocks/pipelines/index.d.ts +3 -3
  102. package/dist/blocks/posts/index.d.ts +2 -2
  103. package/dist/blocks/profiles/index.d.ts +1 -1
  104. package/dist/blocks/promotions/index.d.ts +2 -2
  105. package/dist/blocks/push/index.d.ts +3 -3
  106. package/dist/blocks/queue/index.d.ts +1 -1
  107. package/dist/blocks/quotes/index.d.ts +3 -3
  108. package/dist/blocks/rank/index.d.ts +1 -1
  109. package/dist/blocks/reactions/index.d.ts +5 -5
  110. package/dist/blocks/relations/index.d.ts +2 -2
  111. package/dist/blocks/reminders/index.d.ts +3 -3
  112. package/dist/blocks/reviews/index.d.ts +2 -2
  113. package/dist/blocks/saved-views/index.d.ts +4 -4
  114. package/dist/blocks/scores/index.d.ts +2 -2
  115. package/dist/blocks/search/index.d.ts +4 -4
  116. package/dist/blocks/security-events/index.d.ts +3 -3
  117. package/dist/blocks/segments/index.d.ts +3 -3
  118. package/dist/blocks/sequences/index.d.ts +2 -2
  119. package/dist/blocks/service-accounts/index.d.ts +2 -2
  120. package/dist/blocks/sessions/index.d.ts +2 -2
  121. package/dist/blocks/settings/index.d.ts +3 -3
  122. package/dist/blocks/share-links/index.d.ts +2 -2
  123. package/dist/blocks/shipments/index.d.ts +2 -2
  124. package/dist/blocks/signatures/index.d.ts +2 -2
  125. package/dist/blocks/signing-keys/index.d.ts +2 -2
  126. package/dist/blocks/sla/index.d.ts +3 -3
  127. package/dist/blocks/sso/index.d.ts +3 -3
  128. package/dist/blocks/state-machine/index.d.ts +2 -2
  129. package/dist/blocks/subjects/index.d.ts +2 -2
  130. package/dist/blocks/tags/index.d.ts +3 -3
  131. package/dist/blocks/tasks/index.d.ts +5 -5
  132. package/dist/blocks/teams/index.d.ts +2 -2
  133. package/dist/blocks/templates/index.d.ts +4 -4
  134. package/dist/blocks/time-tracking/index.d.ts +10 -5
  135. package/dist/blocks/time-tracking/index.js +16 -9
  136. package/dist/blocks/timeline/index.d.ts +4 -4
  137. package/dist/blocks/trash/index.d.ts +2 -2
  138. package/dist/blocks/undo/index.d.ts +2 -2
  139. package/dist/blocks/updated-at/index.d.ts +1 -1
  140. package/dist/blocks/usage/index.d.ts +2 -2
  141. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  142. package/dist/blocks/versions/index.d.ts +2 -2
  143. package/dist/blocks/waitlist/index.d.ts +2 -2
  144. package/dist/blocks/webhooks/index.d.ts +6 -6
  145. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  146. package/dist/blocks/workflows/index.d.ts +5 -5
  147. package/dist/{bookings-BpCNphYp.d.ts → bookings-CVw5-Q0Z.d.ts} +1 -1
  148. package/dist/chat-sdk/index.d.ts +2 -2
  149. package/dist/cli/{add-C7lKQNBL.js → add-BTVrOGJF.js} +9 -9
  150. package/dist/cli/add-Bf1fyCWm.js +1 -0
  151. package/dist/cli/{add-DVHniZOO.js → add-C2pNvVpu.js} +2 -2
  152. package/dist/cli/{backfill-Lrn-Qp5X.js → backfill-BicVPugb.js} +1 -1
  153. package/dist/cli/bin.js +1 -1
  154. package/dist/cli/{blocks-2Yw9t-_U.js → blocks-BmYOH4T-.js} +1 -1
  155. package/dist/cli/{blocks-BKNd886C.js → blocks-sScN-ik-.js} +1 -1
  156. package/dist/cli/{cache-ByhPVMo-.js → cache-1TfBy2K4.js} +1 -1
  157. package/dist/cli/{codemod-C0eXpzFu.js → codemod-ylE6wGLo.js} +1 -1
  158. package/dist/cli/{content-mapper-qH-_YQ8H.js → content-mapper-hUW2nb92.js} +2 -2
  159. package/dist/cli/{doctor-BnxkqXGA.js → doctor-D3WKFBSv.js} +14 -14
  160. package/dist/cli/{gen-aERmP3Sw.js → gen-CqsUdsB2.js} +11 -11
  161. package/dist/cli/index.d.ts +1 -1
  162. package/dist/cli/index.js +6 -6
  163. package/dist/cli/{init-DWUqVSVW.js → init-DryZ5Mp1.js} +5 -5
  164. package/dist/cli/{live-KcdTBUij.js → live-Di45imoV.js} +2 -2
  165. package/dist/cli/{mcp-Dsjjo-LT.js → mcp-BklC-3eK.js} +2 -2
  166. package/dist/cli/{metadata-DWQSIZ59.js → metadata-7PsBF5Xw.js} +3 -3
  167. package/dist/cli/{migration-safety-Cy7xlU4G.js → migration-safety-Doy9qYO8.js} +1 -1
  168. package/dist/cli/{migrations-CUjNXokR.js → migrations-JtsPYv8g.js} +1 -1
  169. package/dist/cli/{module-migration-C6NLY9iZ.js → module-migration-ZIn1NCMi.js} +2 -2
  170. package/dist/cli/{powersync-CE_hQdgc.js → powersync-BRGXOCJ0.js} +2 -2
  171. package/dist/cli/powersync-Dq-txa0_.js +1 -0
  172. package/dist/cli/{print-Cy_ram9N.js → print-Dfqd4DB-.js} +2 -2
  173. package/dist/cli/{remove-DmwjzqaW.js → remove-CQzSCYTu.js} +5 -5
  174. package/dist/cli/{render-CF09FCra.js → render-DWRz-uPQ.js} +3 -3
  175. package/dist/cli/{run-BYpZ8FjF.js → run-DPLedqTF.js} +21 -21
  176. package/dist/cli/{run-lh-chAJW.js → run-j54rk2w-.js} +8 -8
  177. package/dist/cli/{shared-D05A6t1e.js → shared-CslNcs-R.js} +1 -1
  178. package/dist/cli/{snapshot-BITNbA5V.js → snapshot-DdN5GlhH.js} +2 -2
  179. package/dist/cli/{source-GGJHuzpH.js → source-COARbqch.js} +1 -1
  180. package/dist/cli/{spec-BGcRdlhN.js → spec-CgLNZc_C.js} +2 -2
  181. package/dist/cli/{spec-BjxXWaNQ.js → spec-DIhBQlBF.js} +1 -1
  182. package/dist/cli/{sql-layout-BoD5ynN9.js → sql-layout-8jrP5gIa.js} +2 -2
  183. package/dist/cli/{sync-_QlsTmqu.js → sync-SqyVHRSJ.js} +3 -3
  184. package/dist/cli/{upgrade-Cwhb1M7O.js → upgrade-CY-vj_qh.js} +4 -4
  185. package/dist/cli/{upgrade-n9ar1kc4.js → upgrade-D0aLhluU.js} +2 -2
  186. package/dist/cli/{version-RSpJIWDd.js → version-Bhca9D6q.js} +1 -1
  187. package/dist/client/index.d.ts +5 -5
  188. package/dist/client/native/index.d.ts +4 -4
  189. package/dist/{cloud-event-CzZTJkXv.d.ts → cloud-event-DcJwder2.d.ts} +1 -1
  190. package/dist/{composite-ChzHhSB0.d.ts → composite-CWJvZgni.d.ts} +6 -6
  191. package/dist/config/index.d.ts +2 -2
  192. package/dist/config/index.js +4 -4
  193. package/dist/{config-vHLJ8SKf.js → config-C19McoGo.js} +4 -3
  194. package/dist/{config-RwpFcPq8.js → config-CP-WaboC.js} +6 -5
  195. package/dist/{connectors-Fud4amxp.d.ts → connectors-CHGiffYH.d.ts} +1 -1
  196. package/dist/{context-CMf4OKpN.d.ts → context-BJoHD20l.d.ts} +4 -2
  197. package/dist/{controller-BGto_kYM.d.ts → controller-CwGXms17.d.ts} +1 -1
  198. package/dist/{conversion-DBgMck5U.d.ts → conversion-DlfStnln.d.ts} +1 -1
  199. package/dist/create/index.d.ts +3 -3
  200. package/dist/create/index.js +3 -3
  201. package/dist/create/lite/index.d.ts +3 -3
  202. package/dist/create/lite/index.js +2 -2
  203. package/dist/credentials/index.d.ts +3 -3
  204. package/dist/{define-Lf6rI2QN.d.ts → define-BLP6XtoL.d.ts} +1 -1
  205. package/dist/{define-block-DCAiOrNX.d.ts → define-block-DibVN37N.d.ts} +4 -4
  206. package/dist/edge/index.d.ts +8 -8
  207. package/dist/elysia/index.d.ts +1 -1
  208. package/dist/{ended-gUsMZVNg.d.ts → ended-B8RyuUXF.d.ts} +1 -1
  209. package/dist/{entitlements-CIhVQ-0u.d.ts → entitlements-CsZcfllV.d.ts} +2 -2
  210. package/dist/eve/index.d.ts +2 -2
  211. package/dist/{event-calendar-DCufbihU.d.ts → event-calendar-DVLs2wUO.d.ts} +1 -1
  212. package/dist/events/index.d.ts +3 -3
  213. package/dist/{events-vcqenSYU.d.ts → events-Cc9DDQWH.d.ts} +2 -0
  214. package/dist/{executor-DNK401lZ.d.ts → executor-C-Ox9eKq.d.ts} +1 -1
  215. package/dist/{executor-aFV7nEBs.d.ts → executor-DNPm13a9.d.ts} +2 -2
  216. package/dist/expo/index.d.ts +3 -3
  217. package/dist/{field-errors-BDhPaO0a.d.ts → field-errors-6BVg31Yp.d.ts} +7 -7
  218. package/dist/{framework-DKA3fTHl.d.ts → framework-GlxXiotm.d.ts} +6 -6
  219. package/dist/h3/index.d.ts +1 -1
  220. package/dist/h3/v1/index.d.ts +1 -1
  221. package/dist/hono/index.d.ts +8 -8
  222. package/dist/{index-ClvuSZEz.d.ts → index-BfYDY6eh.d.ts} +3 -3
  223. package/dist/{index-4MStWaeF.d.ts → index-C0QuN9_P.d.ts} +3 -3
  224. package/dist/{index-CG9rA8H8.d.ts → index-C_qlBJ3k.d.ts} +2 -2
  225. package/dist/{index-CFWlHuVY.d.ts → index-Cagz4Z2k.d.ts} +1 -1
  226. package/dist/{index--OhYKouV.d.ts → index-CbUCGMqj.d.ts} +3 -3
  227. package/dist/{index-ujNqgZ6B.d.ts → index-D01wHGSN.d.ts} +11 -11
  228. package/dist/{index-iRkFvJ7J.d.ts → index-D1ckLbUM.d.ts} +1 -1
  229. package/dist/{index-lV43eM34.d.ts → index-DOHx3JuB.d.ts} +4 -4
  230. package/dist/index.d.ts +2 -2
  231. package/dist/{instances-BPJSESPx.js → instances-qz2MCMyK.js} +84 -5
  232. package/dist/{kit-CVgQCIBO.d.ts → kit-Dxx3MT8m.d.ts} +3 -3
  233. package/dist/list/index.d.ts +1 -1
  234. package/dist/{list-query-XYfUZb0j.d.ts → list-query-XHoYDlRN.d.ts} +1 -1
  235. package/dist/mapper/bin.js +5 -5
  236. package/dist/mcp/index.d.ts +5 -5
  237. package/dist/mcp/sdk/index.d.ts +5 -5
  238. package/dist/nestjs/index.d.ts +2 -2
  239. package/dist/next/client/index.d.ts +1 -1
  240. package/dist/next/index.d.ts +21 -21
  241. package/dist/node/index.d.ts +2 -2
  242. package/dist/{operations-qSBBV5vl.d.ts → operations-CPhOcuzl.d.ts} +1 -1
  243. package/dist/{options-D4ADKTKo.js → options-BOGo1qCA.js} +4 -1
  244. package/dist/options-C4LuqmdG.js +15 -0
  245. package/dist/{options-BPp2zzsz.js → options-eTepQ1rZ.js} +2 -1
  246. package/dist/orpc/index.d.ts +7 -7
  247. package/dist/otel/index.d.ts +1 -1
  248. package/dist/otel/index.js +4 -4
  249. package/dist/{outbox-HxjZTfF6.d.ts → outbox-DxZgoKwp.d.ts} +2 -2
  250. package/dist/{pool-CrtT4dg-.d.ts → pool-wjbAMqc1.d.ts} +1 -1
  251. package/dist/{ports-DbHiNSAa.d.ts → ports-Bw7uxPd_.d.ts} +1 -1
  252. package/dist/postgres/index.d.ts +1 -1
  253. package/dist/powersync/index.d.ts +3 -3
  254. package/dist/preset/index.d.ts +3 -3
  255. package/dist/preset/index.js +3 -3
  256. package/dist/{preset-B1xXOJ0T.js → preset-BbSWLoXM.js} +2 -2
  257. package/dist/{project-BM6QMtzV.js → project-TN03XDsA.js} +5 -5
  258. package/dist/{provider-CqwEOLCA.d.ts → provider-ClrIplXa.d.ts} +1 -1
  259. package/dist/{push-token-BwF1fyjA.d.ts → push-token-vykw2JXT.d.ts} +1 -1
  260. package/dist/query/index.d.ts +1 -1
  261. package/dist/react/index.d.ts +7 -7
  262. package/dist/react/native/index.d.ts +1 -1
  263. package/dist/react/server.d.ts +8 -8
  264. package/dist/react/session.d.ts +2 -2
  265. package/dist/react-router/index.d.ts +5 -5
  266. package/dist/realtime/index.d.ts +4 -4
  267. package/dist/{record-form-BbZpwsEi.d.ts → record-form-D2-F4IwS.d.ts} +1 -1
  268. package/dist/records/index.d.ts +7 -7
  269. package/dist/{refresh-DT_ICaK-.d.ts → refresh-CCKB1Wa6.d.ts} +1 -1
  270. package/dist/{refusal-OrlI3g4H.d.ts → refusal-D_tklIEb.d.ts} +2 -2
  271. package/dist/{resolve-CXX6DHv3.d.ts → resolve-Bj1qD7Dy.d.ts} +1 -1
  272. package/dist/{resolved-names-WzRYhUez.js → resolved-names-Dsf28_Dr.js} +1 -1
  273. package/dist/{resource-execute-CUG6xUuh.d.ts → resource-execute-BSTIfp1D.d.ts} +1 -1
  274. package/dist/{resource-types-DjZ91WKA.d.ts → resource-types-D5WEvYtV.d.ts} +2 -2
  275. package/dist/{resources-6Ncdt9XT.d.ts → resources-CsZ7RhZC.d.ts} +1 -1
  276. package/dist/{respond-oZeJ342J.d.ts → respond-BzRG-0qc.d.ts} +1 -1
  277. package/dist/server/index.d.ts +20 -20
  278. package/dist/{server-types-BH6AjDBN.d.ts → server-types-BlDiY-ya.d.ts} +8 -8
  279. package/dist/{session-Y5SSYO2C.d.ts → session-BGP98Rgj.d.ts} +5 -5
  280. package/dist/{session-status-qQLm7jzh.d.ts → session-status-C4t7kbSn.d.ts} +2 -2
  281. package/dist/{sign-in-BAjR49fq.d.ts → sign-in-CAadgm33.d.ts} +2 -2
  282. package/dist/solid/index.d.ts +9 -9
  283. package/dist/solid-start/index.d.ts +5 -5
  284. package/dist/spec/index.d.ts +1 -1
  285. package/dist/sql/index.d.ts +4 -4
  286. package/dist/sql/index.js +2 -2
  287. package/dist/{sql-CNH8kjLS.js → sql-Dg3W1ENk.js} +2889 -1064
  288. package/dist/sqlite/index.d.ts +1 -1
  289. package/dist/ssr/index.d.ts +5 -5
  290. package/dist/{subject-readers-8GySC9Z8.d.ts → subject-readers-DJbzlm8a.d.ts} +1 -1
  291. package/dist/{support-B4ZBVxt3.d.ts → support-D7CMbhRT.d.ts} +4 -4
  292. package/dist/{support-view-BYOgwXsJ.d.ts → support-view-CIDXF3_H.d.ts} +1 -1
  293. package/dist/svelte/index.d.ts +8 -8
  294. package/dist/sveltekit/index.d.ts +6 -6
  295. package/dist/{tags-Cjtcp5cN.d.ts → tags-Dg4Ywmqp.d.ts} +1 -1
  296. package/dist/tanstack-db/index.d.ts +1 -1
  297. package/dist/tanstack-start/index.d.ts +5 -5
  298. package/dist/{tenant-D4BA7XQ-.d.ts → tenant-BRmKZ7aq.d.ts} +2 -2
  299. package/dist/testing/index.d.ts +16 -16
  300. package/dist/testing/index.js +1 -1
  301. package/dist/{timeline-CEzj9v1z.d.ts → timeline-Cjl-1hiA.d.ts} +3 -3
  302. package/dist/{topic-utZqhw96.d.ts → topic-CpsKVBot.d.ts} +3 -3
  303. package/dist/{types-yj8VF4oY.d.ts → types-BdaBfYIw.d.ts} +2 -2
  304. package/dist/{types-DLnBJ3ST.d.ts → types-CjRwmCRP.d.ts} +2 -2
  305. package/dist/{types-EO2crSX_.d.ts → types-DR1MHh7N.d.ts} +1 -1
  306. package/dist/{vault-O-YlAyHb.d.ts → vault-BghaujrZ.d.ts} +1 -1
  307. package/dist/vercel-connect/index.d.ts +1 -1
  308. package/dist/{verify-B0KLBb3j.d.ts → verify-CI8LgSpv.d.ts} +1 -1
  309. package/dist/{view-DyFdMCqg.d.ts → view-BvNA7EOC.d.ts} +1 -1
  310. package/dist/vue/index.d.ts +9 -9
  311. package/dist/{watch-topic-B1UCoQfz.d.ts → watch-topic-BaMZX139.d.ts} +1 -1
  312. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  313. package/dist/workflow-sdk/index.d.ts +1 -1
  314. package/dist/workflow-sdk/world/index.d.ts +1 -1
  315. package/dist/{workflow-sdk-B3Ss55Fy.d.ts → workflow-sdk-BNsZrcVg.d.ts} +1 -1
  316. package/dist/yjs/index.d.ts +1 -1
  317. package/package.json +1 -1
  318. package/schemas/config-v1.json +53 -1
  319. package/dist/cli/add-vZRn-uH0.js +0 -1
  320. package/dist/cli/powersync-BOhjVQCb.js +0 -1
  321. package/dist/options-DztCKw_f.js +0 -8
@@ -2,14 +2,14 @@ import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BW
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
3
  import { n as CliError } from "./errors-BTe6A15O.js";
4
4
  import { r as readIfExists } from "./io-DH1kcmmP.js";
5
- import { l as TYPEGEN_VERSION } from "./cache-ByhPVMo-.js";
5
+ import { l as TYPEGEN_VERSION } from "./cache-1TfBy2K4.js";
6
6
  import { a as findConfig, s as loadConfig } from "./config-BVfeG3A5.js";
7
- import { r as contentMapperFiles } from "./content-mapper-qH-_YQ8H.js";
7
+ import { r as contentMapperFiles } from "./content-mapper-hUW2nb92.js";
8
8
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
9
- import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-C7lKQNBL.js";
10
- 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-Cy7xlU4G.js";
9
+ import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-BTVrOGJF.js";
10
+ 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-Doy9qYO8.js";
11
11
  import { n as installCommand, t as detectProject } from "./detect-D9JaAX20.js";
12
- import { s as enablePgDelta, t as syncModules } from "./sync-_QlsTmqu.js";
12
+ import { s as enablePgDelta, t as syncModules } from "./sync-SqyVHRSJ.js";
13
13
  import { existsSync } from "node:fs";
14
14
  import { join, posix, resolve } from "node:path";
15
15
  import { glob, readFile } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { r as errorText } from "./errors-BTe6A15O.js";
2
- import "./source-GGJHuzpH.js";
3
- import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-D05A6t1e.js";
2
+ import "./source-COARbqch.js";
3
+ import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-CslNcs-R.js";
4
4
  //#region src/cli/doctor/reserved-roles.ts
5
5
  /**
6
6
  * Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
@@ -1,6 +1,6 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
- import { a as envelope, i as run } from "./run-BYpZ8FjF.js";
3
- import { t as VERSION } from "./version-RSpJIWDd.js";
2
+ import { a as envelope, i as run } from "./run-DPLedqTF.js";
3
+ import { t as VERSION } from "./version-Bhca9D6q.js";
4
4
  import { n as CliError } from "./errors-BTe6A15O.js";
5
5
  import { n as consentToken } from "./agent-CbuPvI2x.js";
6
6
  import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, o as boolean, t as PROCESS_ENV, x as object } from "./env-DMgjB_4y.js";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
2
2
  import { i as readStdin } from "./io-DH1kcmmP.js";
3
- import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-BITNbA5V.js";
4
- import { c as metaPaths, n as render } from "./render-CF09FCra.js";
5
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-lh-chAJW.js";
3
+ import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-DdN5GlhH.js";
4
+ import { c as metaPaths, n as render } from "./render-DWRz-uPQ.js";
5
+ import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-j54rk2w-.js";
6
6
  import { basename, join, relative, resolve, sep } from "node:path";
7
7
  import { readFile } from "node:fs/promises";
8
8
  import { jsonSchema, standardSchema, valibot, zod } from "better-supabase/config";
@@ -1,5 +1,5 @@
1
1
  import { f as INTEGRATIONS } from "./config-BVfeG3A5.js";
2
- import { c as splitStatements } from "./shared-D05A6t1e.js";
2
+ import { c as splitStatements } from "./shared-CslNcs-R.js";
3
3
  import { dirname, join, posix } from "node:path";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { INTEGRATION_INFO, groupEntries } from "better-supabase/config";
@@ -2,7 +2,7 @@ import { n as CliError } from "./errors-BTe6A15O.js";
2
2
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
3
3
  import { t as importFresh } from "./fresh-import-DzgsGHkX.js";
4
4
  import { i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
5
- import { a as sqlPlan, i as schemasDirOf, n as migrationsDir, r as moduleLayoutFor } from "./sql-layout-BoD5ynN9.js";
5
+ import { a as sqlPlan, i as schemasDirOf, n as migrationsDir, r as moduleLayoutFor } from "./sql-layout-8jrP5gIa.js";
6
6
  import { resolve } from "node:path";
7
7
  import { readFile, readdir } from "node:fs/promises";
8
8
  import { MODULE_ID_TYPES, compileReadSets, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, renderBlocks, resolveBlocks, scopeProblems, templateFunctions } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
- import { i as stampAfter } from "./migrations-CUjNXokR.js";
1
+ import { i as stampAfter } from "./migrations-JtsPYv8g.js";
2
2
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
3
3
  import { i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
4
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BoD5ynN9.js";
4
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-8jrP5gIa.js";
5
5
  import { resolve } from "node:path";
6
6
  import { readFile, readdir } from "node:fs/promises";
7
7
  import { moduleSchemaExtensions } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
- import { c as layoutFor, i as stampAfter } from "./migrations-CUjNXokR.js";
2
+ import { c as layoutFor, i as stampAfter } from "./migrations-JtsPYv8g.js";
3
3
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
4
- import { n as migrationsDir } from "./sql-layout-BoD5ynN9.js";
4
+ import { n as migrationsDir } from "./sql-layout-8jrP5gIa.js";
5
5
  import { existsSync } from "node:fs";
6
6
  import { join, resolve } from "node:path";
7
7
  import { readFile, readdir } from "node:fs/promises";
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-BRGXOCJ0.js";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
- import { s as layout } from "./migrations-CUjNXokR.js";
3
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-C6NLY9iZ.js";
2
+ import { s as layout } from "./migrations-JtsPYv8g.js";
3
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-ZIn1NCMi.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { resolve } from "node:path";
6
6
  import { SQL_MODULES, contractSignature, customContracts, moduleBody, moduleFilePaths } from "better-supabase/sql";
@@ -2,15 +2,15 @@ import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
3
  import { n as CliError } from "./errors-BTe6A15O.js";
4
4
  import { r as readIfExists, t as display } from "./io-DH1kcmmP.js";
5
- import { c as layoutFor } from "./migrations-CUjNXokR.js";
5
+ import { c as layoutFor } from "./migrations-JtsPYv8g.js";
6
6
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-CX71yBm8.js";
7
- import { a as sqlPlan } from "./sql-layout-BoD5ynN9.js";
8
- import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-C7lKQNBL.js";
7
+ import { a as sqlPlan } from "./sql-layout-8jrP5gIa.js";
8
+ import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-BTVrOGJF.js";
9
9
  import { t as detectProject } from "./detect-D9JaAX20.js";
10
10
  import { _ as wiringBlocks, a as configObject, c as mask, i as closingIndex, l as properties } from "./config-edit-CrWfk8s3.js";
11
- import { n as guardedRemoval } from "./sync-_QlsTmqu.js";
11
+ import { n as guardedRemoval } from "./sync-SqyVHRSJ.js";
12
12
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
13
- import { t as blockNames } from "./blocks-2Yw9t-_U.js";
13
+ import { t as blockNames } from "./blocks-BmYOH4T-.js";
14
14
  import { i as tidyInline, t as cutRange } from "./config-group-C8tjut39.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { resolve } from "node:path";
@@ -1,10 +1,10 @@
1
1
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
2
2
  import { n as importPath } from "./io-DH1kcmmP.js";
3
- import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-ByhPVMo-.js";
3
+ import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-1TfBy2K4.js";
4
4
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
5
- import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-BITNbA5V.js";
5
+ import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-DdN5GlhH.js";
6
6
  import { t as isRecord$1 } from "./guards-CUlDNYZs.js";
7
- import { a as toCatalog } from "./source-GGJHuzpH.js";
7
+ import { a as toCatalog } from "./source-COARbqch.js";
8
8
  import { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
9
9
  import { entityNames } from "better-supabase/blocks";
10
10
  import { DEFAULT_CLAIMS, blockEntities, blockEntityRenames, blockSubjectTypes, tenantClaimPaths, tenantNameOf } from "better-supabase/config";
@@ -1,6 +1,6 @@
1
1
  import { c as COMMANDS, d as GROUPS, f as RESERVED_NAMES, h as runCommand, i as joinRepeated, m as parseArgs$2, o as listArgs, s as runsWithInvalidConfig, t as GLOBAL_ARGS, u as DOCS_ORIGIN } from "./command-BWEEXmtz.js";
2
2
  import { n as highlight, r as painter } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-RSpJIWDd.js";
3
+ import { t as VERSION } from "./version-Bhca9D6q.js";
4
4
  import { n as CliError, o as toCliError } from "./errors-BTe6A15O.js";
5
5
  import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-CbuPvI2x.js";
6
6
  import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-B079x40m.js";
@@ -16,36 +16,36 @@ import { resolve } from "node:path";
16
16
  * loads on demand, so `--version` and `--help` import no command.
17
17
  */
18
18
  const LOADERS = [
19
- ["init", () => import("./init-DWUqVSVW.js").then((m) => m.initCommand)],
20
- ["add", () => import("./add-vZRn-uH0.js").then((m) => m.addCommand)],
21
- ["remove", () => import("./remove-DmwjzqaW.js").then((m) => m.removeCommand)],
22
- ["upgrade", () => import("./upgrade-n9ar1kc4.js").then((m) => m.upgradeCommand)],
23
- ["gen", () => import("./gen-aERmP3Sw.js").then((m) => m.genCommand)],
24
- ["doctor", () => import("./doctor-BnxkqXGA.js").then((m) => m.doctorCommand)],
19
+ ["init", () => import("./init-DryZ5Mp1.js").then((m) => m.initCommand)],
20
+ ["add", () => import("./add-Bf1fyCWm.js").then((m) => m.addCommand)],
21
+ ["remove", () => import("./remove-CQzSCYTu.js").then((m) => m.removeCommand)],
22
+ ["upgrade", () => import("./upgrade-D0aLhluU.js").then((m) => m.upgradeCommand)],
23
+ ["gen", () => import("./gen-CqsUdsB2.js").then((m) => m.genCommand)],
24
+ ["doctor", () => import("./doctor-D3WKFBSv.js").then((m) => m.doctorCommand)],
25
25
  ["db query", () => import("./db-DwjyUbAh.js").then((m) => m.dbQueryCommand)],
26
26
  ["db diff", () => import("./db-DwjyUbAh.js").then((m) => m.dbDiffCommand)],
27
27
  ["db seed", () => import("./seed-CO3j_bly.js").then((m) => m.seedCommand)],
28
- ["db backfill", () => import("./backfill-Lrn-Qp5X.js").then((m) => m.dbBackfillCommand)],
28
+ ["db backfill", () => import("./backfill-BicVPugb.js").then((m) => m.dbBackfillCommand)],
29
29
  ["dev env", () => import("./env-xhwXk5Ri.js").then((m) => m.envCommand)],
30
30
  ["dev run", () => import("./run-DmOTMa44.js").then((m) => m.runCommand)],
31
31
  ["dev keys", () => import("./keys-CbaL0lnw.js").then((m) => m.keysCommand)],
32
32
  ["dev stack ls", () => import("./stack-DgASZP0K.js").then((m) => m.stackLsCommand)],
33
33
  ["dev stack prune", () => import("./stack-DgASZP0K.js").then((m) => m.stackPruneCommand)],
34
- ["blocks list", () => import("./blocks-BKNd886C.js").then((m) => m.blocksListCommand)],
35
- ["blocks view", () => import("./blocks-BKNd886C.js").then((m) => m.blocksViewCommand)],
36
- ["blocks search", () => import("./blocks-BKNd886C.js").then((m) => m.blocksSearchCommand)],
37
- ["powersync streams", () => import("./powersync-BOhjVQCb.js").then((m) => m.powersyncStreamsCommand)],
38
- ["spec emit", () => import("./spec-BjxXWaNQ.js").then((m) => m.specEmitCommand)],
39
- ["spec validate", () => import("./spec-BjxXWaNQ.js").then((m) => m.specValidateCommand)],
40
- ["mcp", () => import("./mcp-Dsjjo-LT.js").then((m) => m.mcpCommand)],
34
+ ["blocks list", () => import("./blocks-sScN-ik-.js").then((m) => m.blocksListCommand)],
35
+ ["blocks view", () => import("./blocks-sScN-ik-.js").then((m) => m.blocksViewCommand)],
36
+ ["blocks search", () => import("./blocks-sScN-ik-.js").then((m) => m.blocksSearchCommand)],
37
+ ["powersync streams", () => import("./powersync-Dq-txa0_.js").then((m) => m.powersyncStreamsCommand)],
38
+ ["spec emit", () => import("./spec-DIhBQlBF.js").then((m) => m.specEmitCommand)],
39
+ ["spec validate", () => import("./spec-DIhBQlBF.js").then((m) => m.specValidateCommand)],
40
+ ["mcp", () => import("./mcp-BklC-3eK.js").then((m) => m.mcpCommand)],
41
41
  ["skills list", () => import("./skills-FXAVPLzp.js").then((m) => m.skillsListCommand)],
42
42
  ["skills install", () => import("./skills-FXAVPLzp.js").then((m) => m.skillsInstallCommand)],
43
- ["codemod 0.4", () => import("./codemod-C0eXpzFu.js").then((m) => m.codemodCommand("0.4"))],
44
- ["codemod 0.5", () => import("./codemod-C0eXpzFu.js").then((m) => m.codemodCommand("0.5"))],
45
- ["codemod 0.6", () => import("./codemod-C0eXpzFu.js").then((m) => m.codemodCommand("0.6"))],
46
- ["codemod 0.9", () => import("./codemod-C0eXpzFu.js").then((m) => m.codemodCommand("0.9"))],
47
- ["codemod 0.11", () => import("./codemod-C0eXpzFu.js").then((m) => m.codemodCommand("0.11"))],
48
- ["codemod 0.15", () => import("./codemod-C0eXpzFu.js").then((m) => m.codemodCommand("0.15"))],
43
+ ["codemod 0.4", () => import("./codemod-ylE6wGLo.js").then((m) => m.codemodCommand("0.4"))],
44
+ ["codemod 0.5", () => import("./codemod-ylE6wGLo.js").then((m) => m.codemodCommand("0.5"))],
45
+ ["codemod 0.6", () => import("./codemod-ylE6wGLo.js").then((m) => m.codemodCommand("0.6"))],
46
+ ["codemod 0.9", () => import("./codemod-ylE6wGLo.js").then((m) => m.codemodCommand("0.9"))],
47
+ ["codemod 0.11", () => import("./codemod-ylE6wGLo.js").then((m) => m.codemodCommand("0.11"))],
48
+ ["codemod 0.15", () => import("./codemod-ylE6wGLo.js").then((m) => m.codemodCommand("0.15"))],
49
49
  ["completion", () => import("./completion-BfnKI4QZ.js").then((m) => m.completionCommand)],
50
50
  ["config", () => import("./config-WKDixoGK.js").then((m) => m.configCommand)]
51
51
  ];
@@ -1,15 +1,15 @@
1
1
  import { r as errorText } from "./errors-BTe6A15O.js";
2
2
  import { a as sameText, t as display } from "./io-DH1kcmmP.js";
3
- import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-ByhPVMo-.js";
3
+ import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-1TfBy2K4.js";
4
4
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
5
- import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-BITNbA5V.js";
6
- import { n as render } from "./render-CF09FCra.js";
7
- import { _ as unsafeKey, d as accessProviderMode, f as accessRequirements, g as providerLabel, h as moduleKeyProblems, m as entitlementsMode, p as entitlementRequirements, u as compiledReadSets } from "./migrations-CUjNXokR.js";
8
- import { s as schemaStampPath } from "./content-mapper-qH-_YQ8H.js";
5
+ import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-DdN5GlhH.js";
6
+ import { n as render } from "./render-DWRz-uPQ.js";
7
+ import { _ as unsafeKey, d as accessProviderMode, f as accessRequirements, g as providerLabel, h as moduleKeyProblems, m as entitlementsMode, p as entitlementRequirements, u as compiledReadSets } from "./migrations-JtsPYv8g.js";
8
+ import { s as schemaStampPath } from "./content-mapper-hUW2nb92.js";
9
9
  import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-CX71yBm8.js";
10
- import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-BoD5ynN9.js";
11
- import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-D05A6t1e.js";
12
- import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-C6NLY9iZ.js";
10
+ import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-8jrP5gIa.js";
11
+ import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-CslNcs-R.js";
12
+ import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-ZIn1NCMi.js";
13
13
  import { existsSync } from "node:fs";
14
14
  import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
15
15
  import { readFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { a as toCatalog } from "./source-GGJHuzpH.js";
1
+ import { a as toCatalog } from "./source-COARbqch.js";
2
2
  import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-CncmQbO0.js";
3
3
  //#region src/cli/doctor/shared.ts
4
4
  const catalogs = /* @__PURE__ */ new WeakMap();
@@ -1,7 +1,7 @@
1
1
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
2
- import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-ByhPVMo-.js";
2
+ import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-1TfBy2K4.js";
3
3
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
4
- import { n as managementSource, r as pgSource } from "./source-GGJHuzpH.js";
4
+ import { n as managementSource, r as pgSource } from "./source-COARbqch.js";
5
5
  import { n as databaseUrl, u as accessToken } from "./config-BVfeG3A5.js";
6
6
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-CncmQbO0.js";
7
7
  import { t as connect } from "./db-CQCLx7cx.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-RSpJIWDd.js";
1
+ import { t as VERSION } from "./version-Bhca9D6q.js";
2
2
  import { n as CliError } from "./errors-BTe6A15O.js";
3
3
  import { r as redactUrl } from "./redact-KGAk2Ul9.js";
4
4
  import { n as HTTP_CHANNEL } from "./trace-VbdO6bcN.js";
@@ -1,9 +1,9 @@
1
1
  import { n as __require, t as __commonJSMin } from "./rolldown-runtime-kJ_i4yPo.js";
2
2
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
3
- import { t as VERSION } from "./version-RSpJIWDd.js";
3
+ import { t as VERSION } from "./version-Bhca9D6q.js";
4
4
  import { i as failedResult, n as CliError, r as errorText } from "./errors-BTe6A15O.js";
5
5
  import { t as display } from "./io-DH1kcmmP.js";
6
- import { c as writeAtomic, t as CACHE_DIR } from "./cache-ByhPVMo-.js";
6
+ import { c as writeAtomic, t as CACHE_DIR } from "./cache-1TfBy2K4.js";
7
7
  import { t as isRecord } from "./guards-CUlDNYZs.js";
8
8
  import { t as importFresh } from "./fresh-import-DzgsGHkX.js";
9
9
  import { a as changedFiles, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
@@ -1 +1 @@
1
- export { n as specEmitCommand, i as specValidateCommand } from "./spec-BGcRdlhN.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-CgLNZc_C.js";
@@ -1,5 +1,5 @@
1
- import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-BITNbA5V.js";
2
- import { a as toCatalog } from "./source-GGJHuzpH.js";
1
+ import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-DdN5GlhH.js";
2
+ import { a as toCatalog } from "./source-COARbqch.js";
3
3
  import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { dirname, join, relative, resolve, sep } from "node:path";
@@ -1,10 +1,10 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
2
  import { t as display } from "./io-DH1kcmmP.js";
3
- import { a as writeExtensionsMigration, c as layoutFor, t as DATA_NEXT } from "./migrations-CUjNXokR.js";
3
+ import { a as writeExtensionsMigration, c as layoutFor, t as DATA_NEXT } from "./migrations-JtsPYv8g.js";
4
4
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, o as findSupabaseRoot, p as sqlWorkflow, t as PGDELTA_TABLE } from "./supabase-toml-CncmQbO0.js";
5
5
  import { d as fileDiff, i as changeLines, l as keepHandEdit, o as handEditedError, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-CX71yBm8.js";
6
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BoD5ynN9.js";
7
- import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-C6NLY9iZ.js";
6
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-8jrP5gIa.js";
7
+ import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-ZIn1NCMi.js";
8
8
  import { t as loadTopics } from "./topics-BpdnYmWb.js";
9
9
  import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
10
10
  import { dirname, join, resolve } from "node:path";
@@ -1,9 +1,9 @@
1
1
  import { t as display } from "./io-DH1kcmmP.js";
2
- import { c as layoutFor, r as migrationStamp } from "./migrations-CUjNXokR.js";
2
+ import { c as layoutFor, r as migrationStamp } from "./migrations-JtsPYv8g.js";
3
3
  import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
4
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BoD5ynN9.js";
5
- import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-C6NLY9iZ.js";
6
- import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-_QlsTmqu.js";
4
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-8jrP5gIa.js";
5
+ import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-ZIn1NCMi.js";
6
+ import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-SqyVHRSJ.js";
7
7
  import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-R7UChFFl.js";
8
8
  import { resolve } from "node:path";
9
9
  import { readFile } from "node:fs/promises";
@@ -1,8 +1,8 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as syncModules } from "./sync-_QlsTmqu.js";
3
+ import { t as syncModules } from "./sync-SqyVHRSJ.js";
4
4
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
5
- import { t as upgrade } from "./upgrade-Cwhb1M7O.js";
5
+ import { t as upgrade } from "./upgrade-CY-vj_qh.js";
6
6
  //#region src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
8
8
  check: {
@@ -1,4 +1,4 @@
1
1
  //#region src/cli/version.ts
2
- const VERSION = "0.23.0";
2
+ const VERSION = "0.25.0";
3
3
  //#endregion
4
4
  export { VERSION as t };
@@ -1,8 +1,8 @@
1
1
  import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-BWoz9lED.js";
2
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-B1UCoQfz.js";
3
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-DbHiNSAa.js";
4
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-DaoTunvE.js";
5
- import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-BGto_kYM.js";
2
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-BaMZX139.js";
3
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-Bw7uxPd_.js";
4
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-vKDmdu_4.js";
5
+ import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-CwGXms17.js";
6
6
  import { n as FunctionContract } from "../function-contract-DxFNOmsm.js";
7
- import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-lV43eM34.js";
7
+ import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-DOHx3JuB.js";
8
8
  export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
@@ -1,9 +1,9 @@
1
1
  import { t as AsyncResult } from "../../result-DZeA5KS6.js";
2
2
  import { T as UploadOptions, w as UploadBody } from "../../bucket-vc-QRrva.js";
3
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-B1UCoQfz.js";
4
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-DbHiNSAa.js";
5
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-DaoTunvE.js";
6
- import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-BwF1fyjA.js";
3
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-BaMZX139.js";
4
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-Bw7uxPd_.js";
5
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-vKDmdu_4.js";
6
+ import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-vykw2JXT.js";
7
7
  import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-B4NL84XU.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  //#region src/client/native/auto-refresh.d.ts
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { D as BlockEventPattern, T as BlockEvent, o as EventHub } from "./events-vcqenSYU.js";
2
+ import { D as BlockEventPattern, T as BlockEvent, o as EventHub } from "./events-Cc9DDQWH.js";
3
3
  //#region src/events/cloud-event.d.ts
4
4
  /** A CloudEvents 1.0 event. Extension attributes are lowercase alphanumerics. */
5
5
  interface CloudEvent<T = unknown> {
@@ -1,10 +1,10 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
2
- import { r as AuthState } from "./resolve-CXX6DHv3.js";
3
- import { t as BetterSupabase, y as Db } from "./define-Lf6rI2QN.js";
4
- import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-BH6AjDBN.js";
5
- import { t as ActiveSupport } from "./support-B4ZBVxt3.js";
6
- import { n as SessionEntryConfig } from "./session-Y5SSYO2C.js";
7
- import { r as GuardOptions } from "./respond-oZeJ342J.js";
2
+ import { r as AuthState } from "./resolve-Bj1qD7Dy.js";
3
+ import { t as BetterSupabase, y as Db } from "./define-BLP6XtoL.js";
4
+ import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-BlDiY-ya.js";
5
+ import { t as ActiveSupport } from "./support-D7CMbhRT.js";
6
+ import { n as SessionEntryConfig } from "./session-BGP98Rgj.js";
7
+ import { r as GuardOptions } from "./respond-BzRG-0qc.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  import { Entry, SingleKeyEntry } from "@supabase/middleware";
10
10
  import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
@@ -1,6 +1,6 @@
1
1
  import { M as Casing } from "../types-DFdg_4yN.js";
2
- import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-Dtwpjeuz.js";
3
- import { $ as blockEntrySource, $n as APP_COLUMN_ACCESS, $r as RpcTypeReference, $t as ResolvedExtensions, A as ValibotGeneratorOptions, Ai as MigrationSafetyConfig, An as ExposePrivilege, Ar as CatalogIndex, At as GeneratedFile, B as jsonSchema, Br as ForeignKeyAction, Bt as GeneratorInputSchema, Cn as TopicTriggerPayloadValueConfig, Cr as CatalogColumn, D as ZodFlavor, Di as GenTask, Dn as VectorSearchConfig, Dr as CatalogFunction, Dt as resolveJsonSchema, Ei as GenConfig, En as VectorDistance, Er as CatalogForeignKey, F as nuqs, Fi as GEN_TASKS, Fr as ExtrasDomain, Ft as GeneratorEntitySchemas, G as tenantClaimPaths, Gr as PostgresColumn, Gt as JsonSchemaSource, H as ClaimPaths, Hr as SnapshotBucket, Ht as GeneratorModel, I as FactoriesGeneratorOptions, Ii as INTEGRATION_INFO, Ir as ExtrasFunction, It as GeneratorField, J as blockEntityRenames, Jn as CONFIG_DEFAULTS, Jr as RpcFunction, Jt as SourceConfig, K as BlockEntity, Kr as PostgresFunction, Kt as JsonTypeConfig, L as factories, Li as INTEGRATION_NAMES, Lr as ExtrasHook, Lt as GeneratorFunction, M as StandardSchemaGeneratorOptions, Mi as PowerSyncGenConfig, Mn as Privilege, Mr as CatalogTable, Mt as GeneratorBlock, N as standardSchema, Ni as SkillsAgent, Nn as ResolvedExpose, Nr as CatalogTrigger, Nt as GeneratorBlockEntity, O as ZodGeneratorOptions, Oi as IntegrationName, On as ColumnPrivilege, Or as CatalogFunctionArg, Ot as ClaimsConfig, P as NuqsGeneratorOptions, Pi as SkillsConfig, Pr as CatalogUnique, Pt as GeneratorColumn, Q as RENAMED_CONFIG_KEYS, Qr as RpcReturnColumn, Qt as ResolvedConfig, R as JsonSchemaGeneratorOptions, Ri as IntegrationInfo, Rr as ExtrasHookFunction, Rt as GeneratorFunctionArg, Sn as TopicTriggerLookupConfig, Sr as CatalogCheck, Ti as EnvFileConfig, Tn as TopicTriggerValueConfig, Tr as CatalogEnum, U as DEFAULT_CLAIMS, Ur as SnapshotExtras, Ut as GeneratorNoun, V as JsonSchemaTarget, Vr as Snapshot, Vt as GeneratorJsonSchema, W as claimPaths, Wr as GeneratorMetadata, Wt as GeneratorTable, X as CONFIG_GROUPS, Xr as RpcFunctionOverload, Xt as DataHooksFramework, Y as blockSubjectTypes, Yr as RpcFunctionArg, Yt as TableConfig, Z as RENAMED_BLOCK_KEYS, Zr as RpcFunctionReturns, Zt as FlatConfig, _n as ResolvedSqlConfig, _r as AppTableEvents, an as BlockInput, ar as AppColumnAccess, at as defineConfig, bn as SqlWorkflow, br as AppTablesConfig, cn as EnvironmentConfig, cr as AppColumnType, ct as BlockTableReference, dn as SqlInput, dr as AppReference, dt as RoleNames, en as ApiConfig, er as APP_COLUMN_FORMATS, et as flattenConfig, fn as ToolingConfig, fr as AppReferenceTarget, ft as TypedReference, gn as RealtimeConfig, gr as AppTableEventKind, hn as BucketConfig, hr as AppTableConfig, in as BetterSupabaseConfig, ir as APP_TABLE_EVENT_KINDS, it as CONFIG_SCHEMA_URL, j as valibot, ji as OpenApiConfig, jn as ExposeRole, jr as CatalogPolicy, jt as Generator, k as zod, ki as KeysConfig, kn as ExposeConfig, kr as CatalogGrant, kt as CodecsConfig, ln as GenGroupConfig, lr as AppLookupConfig, lt as BucketName, mn as EntitlementsConfig, mr as AppRollupConfig, mt as ExpandedConfig, nn as AppTablesInput, nr as APP_ON_DELETE_ACTIONS, nt as groupEntries, on as BlocksInput, or as AppColumnConfig, ot as resolveConfig, pn as EntitlementPlansSource, pr as AppRollupAggregate, q as blockEntities, qr as PostgresFunctionArg, qt as RelationsConfig, rn as AuthConfig, rr as APP_ROLLUP_AGGREGATES, rt as hasFlatTables, sn as DatabaseConfig, sr as AppColumnFormat, st as AppTableNames, tn as AppTableInput, tr as APP_COLUMN_TYPES, tt as groupConfig, un as OrganizationConfig, ur as AppOnDeleteAction, ut as ConfigReferences, vn as SeedConfig, vr as AppTableSubject, wi as DoctorConfig, wn as TopicTriggerTopicConfig, wr as CatalogColumnGrant, xn as TopicTriggerConfig, xr as Catalog, yn as SqlConfig, yr as AppTableVersions, z as buildJsonSchema, zi as SKILLS_AGENTS, zr as ExtrasTable, zt as GeneratorInput } from "../context-CMf4OKpN.js";
2
+ import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-BJV2i8xB.js";
3
+ import { $ as blockEntrySource, $n as APP_COLUMN_ACCESS, $r as RpcTypeReference, $t as ResolvedExtensions, A as ValibotGeneratorOptions, Ai as MigrationSafetyConfig, An as ExposePrivilege, Ar as CatalogIndex, At as GeneratedFile, B as jsonSchema, Br as ForeignKeyAction, Bt as GeneratorInputSchema, Cn as TopicTriggerPayloadValueConfig, Cr as CatalogColumn, D as ZodFlavor, Di as GenTask, Dn as VectorSearchConfig, Dr as CatalogFunction, Dt as resolveJsonSchema, Ei as GenConfig, En as VectorDistance, Er as CatalogForeignKey, F as nuqs, Fi as GEN_TASKS, Fr as ExtrasDomain, Ft as GeneratorEntitySchemas, G as tenantClaimPaths, Gr as PostgresColumn, Gt as JsonSchemaSource, H as ClaimPaths, Hr as SnapshotBucket, Ht as GeneratorModel, I as FactoriesGeneratorOptions, Ii as INTEGRATION_INFO, Ir as ExtrasFunction, It as GeneratorField, J as blockEntityRenames, Jn as CONFIG_DEFAULTS, Jr as RpcFunction, Jt as SourceConfig, K as BlockEntity, Kr as PostgresFunction, Kt as JsonTypeConfig, L as factories, Li as INTEGRATION_NAMES, Lr as ExtrasHook, Lt as GeneratorFunction, M as StandardSchemaGeneratorOptions, Mi as PowerSyncGenConfig, Mn as Privilege, Mr as CatalogTable, Mt as GeneratorBlock, N as standardSchema, Ni as SkillsAgent, Nn as ResolvedExpose, Nr as CatalogTrigger, Nt as GeneratorBlockEntity, O as ZodGeneratorOptions, Oi as IntegrationName, On as ColumnPrivilege, Or as CatalogFunctionArg, Ot as ClaimsConfig, P as NuqsGeneratorOptions, Pi as SkillsConfig, Pr as CatalogUnique, Pt as GeneratorColumn, Q as RENAMED_CONFIG_KEYS, Qr as RpcReturnColumn, Qt as ResolvedConfig, R as JsonSchemaGeneratorOptions, Ri as IntegrationInfo, Rr as ExtrasHookFunction, Rt as GeneratorFunctionArg, Sn as TopicTriggerLookupConfig, Sr as CatalogCheck, Ti as EnvFileConfig, Tn as TopicTriggerValueConfig, Tr as CatalogEnum, U as DEFAULT_CLAIMS, Ur as SnapshotExtras, Ut as GeneratorNoun, V as JsonSchemaTarget, Vr as Snapshot, Vt as GeneratorJsonSchema, W as claimPaths, Wr as GeneratorMetadata, Wt as GeneratorTable, X as CONFIG_GROUPS, Xr as RpcFunctionOverload, Xt as DataHooksFramework, Y as blockSubjectTypes, Yr as RpcFunctionArg, Yt as TableConfig, Z as RENAMED_BLOCK_KEYS, Zr as RpcFunctionReturns, Zt as FlatConfig, _n as ResolvedSqlConfig, _r as AppTableEvents, an as BlockInput, ar as AppColumnAccess, at as defineConfig, bn as SqlWorkflow, br as AppTablesConfig, cn as EnvironmentConfig, cr as AppColumnType, ct as BlockTableReference, dn as SqlInput, dr as AppReference, dt as RoleNames, en as ApiConfig, er as APP_COLUMN_FORMATS, et as flattenConfig, fn as ToolingConfig, fr as AppReferenceTarget, ft as TypedReference, gn as RealtimeConfig, gr as AppTableEventKind, hn as BucketConfig, hr as AppTableConfig, in as BetterSupabaseConfig, ir as APP_TABLE_EVENT_KINDS, it as CONFIG_SCHEMA_URL, j as valibot, ji as OpenApiConfig, jn as ExposeRole, jr as CatalogPolicy, jt as Generator, k as zod, ki as KeysConfig, kn as ExposeConfig, kr as CatalogGrant, kt as CodecsConfig, ln as GenGroupConfig, lr as AppLookupConfig, lt as BucketName, mn as EntitlementsConfig, mr as AppRollupConfig, mt as ExpandedConfig, nn as AppTablesInput, nr as APP_ON_DELETE_ACTIONS, nt as groupEntries, on as BlocksInput, or as AppColumnConfig, ot as resolveConfig, pn as EntitlementPlansSource, pr as AppRollupAggregate, q as blockEntities, qr as PostgresFunctionArg, qt as RelationsConfig, rn as AuthConfig, rr as APP_ROLLUP_AGGREGATES, rt as hasFlatTables, sn as DatabaseConfig, sr as AppColumnFormat, st as AppTableNames, tn as AppTableInput, tr as APP_COLUMN_TYPES, tt as groupConfig, un as OrganizationConfig, ur as AppOnDeleteAction, ut as ConfigReferences, vn as SeedConfig, vr as AppTableSubject, wi as DoctorConfig, wn as TopicTriggerTopicConfig, wr as CatalogColumnGrant, xn as TopicTriggerConfig, xr as Catalog, yn as SqlConfig, yr as AppTableVersions, z as buildJsonSchema, zi as SKILLS_AGENTS, zr as ExtrasTable, zt as GeneratorInput } from "../context-BJoHD20l.js";
4
4
  import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-NomQg6Eg.js";
5
5
  import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-CAFNkKSN.js";
6
6
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableNames, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OrganizationConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectsConfig, type TableConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type TypedReference, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, hasFlatTables, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-WzRYhUez.js";
2
- import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_INFO, I as INTEGRATION_NAMES, L as SKILLS_AGENTS, M as groupEntries, N as hasFlatTables, O as RENAMED_CONFIG_KEYS, P as GEN_TASKS, j as groupConfig, k as blockEntrySource } from "../config-vHLJ8SKf.js";
1
+ import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-Dsf28_Dr.js";
2
+ import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_INFO, I as INTEGRATION_NAMES, L as SKILLS_AGENTS, M as groupEntries, N as hasFlatTables, O as RENAMED_CONFIG_KEYS, P as GEN_TASKS, j as groupConfig, k as blockEntrySource } from "../config-C19McoGo.js";
3
3
  import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-Bp9My7XP.js";
4
- import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-BPJSESPx.js";
4
+ import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-qz2MCMyK.js";
5
5
  import { r as FIELD_FORMATS } from "../field-formats-C6QKA3UR.js";
6
- import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-RwpFcPq8.js";
6
+ import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-CP-WaboC.js";
7
7
  import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-DHJxiizN.js";
8
8
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, hasFlatTables, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,5 +1,5 @@
1
1
  import { t as DEFAULT_TENANT } from "./entity-naming-Dtyq5sKE.js";
2
- import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-BPJSESPx.js";
2
+ import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-qz2MCMyK.js";
3
3
  //#region src/config/names.ts
4
4
  /** The steps `better-supabase gen` runs, in the order it runs them. */
5
5
  const GEN_TASKS = [
@@ -1615,12 +1615,13 @@ function conventionConfig(conventions) {
1615
1615
  const tenant = tenantEntry(conventions);
1616
1616
  const blocks = {
1617
1617
  ...Object.keys(access).length === 0 ? {} : { permissions: access },
1618
- ...Object.keys(tenant).length === 0 ? {} : { memberships: tenant }
1618
+ ...Object.keys(tenant).length === 0 ? {} : { memberships: tenant },
1619
+ "rls-guard": {}
1619
1620
  };
1620
1621
  return {
1621
1622
  casing: conventions.casing,
1622
1623
  ...sql === void 0 ? {} : { sql },
1623
- ...Object.keys(blocks).length === 0 ? {} : { blocks }
1624
+ blocks
1624
1625
  };
1625
1626
  }
1626
1627
  /**
@@ -1,8 +1,8 @@
1
- import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-WzRYhUez.js";
2
- import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-vHLJ8SKf.js";
1
+ import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-Dsf28_Dr.js";
2
+ import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-C19McoGo.js";
3
3
  import { t as DEFAULT_CLAIMS } from "./claims-Bp9My7XP.js";
4
4
  import { o as tenantNames } from "./entity-naming-Dtyq5sKE.js";
5
- import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-BPJSESPx.js";
5
+ import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-qz2MCMyK.js";
6
6
  import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-DHJxiizN.js";
7
7
  //#region src/config/authorization.ts
8
8
  /**
@@ -86,13 +86,14 @@ function subjectsOf(module, blocks) {
86
86
  if (subject === void 0 || entity.table === void 0 || table === void 0 || mapped === null) return [];
87
87
  const logical = entity.table;
88
88
  const column = (name) => config.columns[logical]?.[name] ?? resolved.naming.rename(table.columns[name] ?? name);
89
+ const titled = (key) => config.columns[logical]?.[key] === null && subject.fallbackTitle !== void 0 ? column(subject.fallbackTitle) : column(key);
89
90
  const name = mapped ?? resolved.naming.rename(table.name);
90
91
  const url = entity.url ?? subject.url;
91
92
  const entry = {
92
93
  table: name.includes(".") ? name : `${config.schema}.${name}`,
93
94
  idType: "uuid",
94
95
  tenant: column("tenant"),
95
- title: column(subject.title),
96
+ title: titled(subject.title),
96
97
  permissions: {
97
98
  read: key(subject.permissions.read),
98
99
  write: key(subject.permissions.write),
@@ -104,7 +105,7 @@ function subjectsOf(module, blocks) {
104
105
  group: column(subject.rank.group)
105
106
  } },
106
107
  ...subject.search === void 0 ? {} : { search: {
107
- title: column(subject.search.title),
108
+ title: titled(subject.search.title),
108
109
  body: subject.search.body.filter((name) => config.columns[logical]?.[name] !== null).map(column)
109
110
  } },
110
111
  ...url === void 0 ? {} : { url: url.replaceAll(PLACEHOLDER, (_, placeholder) => `{${column(placeholder)}}`) },
@@ -3,7 +3,7 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "./block-fields-BE7pInWZ.js";
5
5
  import { n as Logger } from "./logger-DWVYUmwi.js";
6
- import { i as CredentialRef, r as CredentialProvider } from "./provider-CqwEOLCA.js";
6
+ import { i as CredentialRef, r as CredentialProvider } from "./provider-ClrIplXa.js";
7
7
  import { r as BlockTemporalOptions } from "./block-helpers-CRpAHrp_.js";
8
8
  import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
9
9
  import { n as BlockHooks } from "./block-hooks-DZN2w69m.js";
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { M as Casing, P as ClaimsMeta, T as AccessBucketPolicy, _t as BucketLifecycle, j as BucketPolicyName, ot as SchemaMeta } from "./types-DFdg_4yN.js";
3
- import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-Dtwpjeuz.js";
4
- import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-DCAiOrNX.js";
3
+ import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-BJV2i8xB.js";
4
+ import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-DibVN37N.js";
5
5
  import { a as ScalarKind, i as FieldSpec } from "./table-schema-BlF6k62Q.js";
6
6
  import { i as SubjectsConfig } from "./subjects-NomQg6Eg.js";
7
7
  import { i as FIELD_FORMAT_NAMES, s as FieldFormatName } from "./field-formats-CAFNkKSN.js";
@@ -2673,6 +2673,7 @@ declare function conventionConfig(conventions: ConfigConventions): Pick<FlatConf
2673
2673
  readonly blocks?: {
2674
2674
  readonly permissions?: AccessBlockConfig;
2675
2675
  readonly memberships?: BlockConfig;
2676
+ readonly "rls-guard": BlockConfig;
2676
2677
  };
2677
2678
  };
2678
2679
  /**
@@ -3851,6 +3852,7 @@ interface BlockSqlTableLifecycle {
3851
3852
  */
3852
3853
  interface BlockSqlEntitySubject {
3853
3854
  readonly title: string;
3855
+ readonly fallbackTitle?: string;
3854
3856
  readonly deletedAt?: string;
3855
3857
  readonly permissions: {
3856
3858
  readonly read: string;
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-DaoTunvE.js";
1
+ import { a as ClientAuth } from "./bind-vKDmdu_4.js";
2
2
  //#region src/blocks/controller.d.ts
3
3
  /**
4
4
  * A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
@@ -1,5 +1,5 @@
1
1
  import { f as Result } from "./result-DZeA5KS6.js";
2
- import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-DCAiOrNX.js";
2
+ import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-DibVN37N.js";
3
3
  import { StandardSchemaV1 } from "@standard-schema/spec";
4
4
  //#region src/blocks/automations/conversion.d.ts
5
5
  /** A record a conversion reads from or creates: its subject type and id. */