better-supabase 0.25.0 → 0.29.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 (417) hide show
  1. package/dist/{access-sql-bjWFUWlk.js → access-sql-CTDNuxRv.js} +177 -12
  2. package/dist/{agents-CMIB3802.d.ts → agents-CM_cCtcr.d.ts} +4 -4
  3. package/dist/{ai-cache-2LGgaT7F.d.ts → ai-cache-BTGqckta.d.ts} +4 -4
  4. package/dist/{ai-chat-BCaKsvLW.d.ts → ai-chat-B7_vQvxU.d.ts} +4 -4
  5. package/dist/{ai-schedules-yGZH-vQb.d.ts → ai-schedules-CZEfo-_M.d.ts} +5 -5
  6. package/dist/ai-sdk/agents/index.d.ts +6 -6
  7. package/dist/ai-sdk/batches/index.d.ts +3 -3
  8. package/dist/ai-sdk/cache/index.d.ts +1 -1
  9. package/dist/ai-sdk/chat/index.d.ts +1 -1
  10. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  11. package/dist/ai-sdk/files/index.d.ts +1 -1
  12. package/dist/ai-sdk/index.d.ts +5 -5
  13. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  14. package/dist/ai-sdk/memory/index.d.ts +3 -3
  15. package/dist/ai-sdk/workflow/index.d.ts +3 -3
  16. package/dist/{api-B1OkIWdx.d.ts → api-59rv5hL6.d.ts} +5 -5
  17. package/dist/{api-keys-ClhKBDcc.d.ts → api-keys-JE-aykZE.d.ts} +4 -4
  18. package/dist/{app-tables-xij_MI5H.d.ts → app-tables-DekyKNQ8.d.ts} +1 -1
  19. package/dist/{approvals-C5fmPLsH.d.ts → approvals-BfEafAzt.d.ts} +5 -5
  20. package/dist/{assistant-ndGdOBax.d.ts → assistant-B49qATbj.d.ts} +2 -2
  21. package/dist/astro/index.d.ts +7 -7
  22. package/dist/{authorization-BJV2i8xB.d.ts → authorization-C7nuWMuB.d.ts} +27 -6
  23. package/dist/{authorization-hooks-DtzreCAq.d.ts → authorization-hooks-BWhkMZfH.d.ts} +2 -2
  24. package/dist/better-result/index.d.ts +3 -3
  25. package/dist/{bind-vKDmdu_4.d.ts → bind-DmUGUsBd.d.ts} +7 -7
  26. package/dist/{block-env-wVLz0KMV.d.ts → block-env-DWtZsqhH.d.ts} +4 -4
  27. package/dist/{block-helpers-CRpAHrp_.d.ts → block-helpers-D5emQ2O6.d.ts} +1 -1
  28. package/dist/{block-hooks-DZN2w69m.d.ts → block-hooks-B8itxzEE.d.ts} +2 -2
  29. package/dist/{block-subjects-CphkQPxp.d.ts → block-subjects-C1_9DkSA.d.ts} +1 -1
  30. package/dist/{block-transport-DWZSJrwN.d.ts → block-transport-9EUA3q_I.d.ts} +2 -2
  31. package/dist/blocks/access-requests/index.d.ts +5 -5
  32. package/dist/blocks/activities/index.d.ts +10 -10
  33. package/dist/blocks/activities/index.js +1 -1
  34. package/dist/blocks/agents/index.d.ts +4 -4
  35. package/dist/blocks/ai-cache/index.d.ts +3 -3
  36. package/dist/blocks/ai-chat/index.d.ts +7 -7
  37. package/dist/blocks/ai-files/index.d.ts +3 -3
  38. package/dist/blocks/ai-keys/index.d.ts +4 -4
  39. package/dist/blocks/ai-schedules/index.d.ts +3 -3
  40. package/dist/blocks/announcements/index.d.ts +8 -8
  41. package/dist/blocks/api-keys/index.d.ts +6 -6
  42. package/dist/blocks/approvals/index.d.ts +4 -4
  43. package/dist/blocks/assets/index.d.ts +6 -6
  44. package/dist/blocks/assignment/index.d.ts +7 -7
  45. package/dist/blocks/attachments/index.d.ts +4 -4
  46. package/dist/blocks/audit/index.d.ts +13 -13
  47. package/dist/blocks/automations/index.d.ts +12 -12
  48. package/dist/blocks/billable-time/index.d.ts +6 -6
  49. package/dist/blocks/billing/index.d.ts +9 -9
  50. package/dist/blocks/bookings/index.d.ts +4 -4
  51. package/dist/blocks/bulk/index.d.ts +4 -4
  52. package/dist/blocks/calendar/index.d.ts +5 -5
  53. package/dist/blocks/catalog/index.d.ts +6 -6
  54. package/dist/blocks/channels/index.d.ts +7 -7
  55. package/dist/blocks/collections/index.d.ts +12 -12
  56. package/dist/blocks/collections/index.js +1 -1
  57. package/dist/blocks/comments/index.d.ts +10 -10
  58. package/dist/blocks/compliance/index.d.ts +5 -5
  59. package/dist/blocks/connectors/index.d.ts +4 -4
  60. package/dist/blocks/contacts/index.d.ts +7 -7
  61. package/dist/blocks/contacts/index.js +1 -1
  62. package/dist/blocks/content/index.d.ts +5 -5
  63. package/dist/blocks/contracts/index.d.ts +6 -6
  64. package/dist/blocks/courses/index.d.ts +5 -5
  65. package/dist/blocks/created-by/index.d.ts +2 -2
  66. package/dist/blocks/custom-fields/index.d.ts +6 -6
  67. package/dist/blocks/custom-fields/index.js +1 -1
  68. package/dist/blocks/data-lifecycle/index.d.ts +8 -8
  69. package/dist/blocks/deals/index.d.ts +6 -6
  70. package/dist/blocks/dispatch/index.d.ts +7 -7
  71. package/dist/blocks/documents/index.d.ts +4 -4
  72. package/dist/blocks/domains/index.d.ts +6 -6
  73. package/dist/blocks/donations/index.d.ts +6 -6
  74. package/dist/blocks/drive/index.d.ts +7 -7
  75. package/dist/blocks/employees/index.d.ts +8 -8
  76. package/dist/blocks/employees/index.js +1 -1
  77. package/dist/blocks/enrichment/index.d.ts +6 -6
  78. package/dist/blocks/enrollments/index.d.ts +6 -6
  79. package/dist/blocks/entitlements/index.d.ts +6 -6
  80. package/dist/blocks/expenses/index.d.ts +5 -5
  81. package/dist/blocks/field-history/index.d.ts +4 -4
  82. package/dist/blocks/flags/index.d.ts +5 -5
  83. package/dist/blocks/forecasts/index.d.ts +6 -6
  84. package/dist/blocks/forms/index.d.ts +6 -6
  85. package/dist/blocks/goals/index.d.ts +4 -4
  86. package/dist/blocks/guests/index.d.ts +6 -6
  87. package/dist/blocks/hiring/index.d.ts +7 -7
  88. package/dist/blocks/identities/index.d.ts +5 -5
  89. package/dist/blocks/imports/index.d.ts +5 -5
  90. package/dist/blocks/inbox/index.d.ts +10 -10
  91. package/dist/blocks/incidents/index.d.ts +5 -5
  92. package/dist/blocks/index.d.ts +9 -9
  93. package/dist/blocks/inventory/index.d.ts +7 -7
  94. package/dist/blocks/invoices/index.d.ts +8 -8
  95. package/dist/blocks/knowledge/index.d.ts +3 -3
  96. package/dist/blocks/lead-scoring/index.d.ts +7 -7
  97. package/dist/blocks/leases/index.d.ts +6 -6
  98. package/dist/blocks/leave/index.d.ts +5 -5
  99. package/dist/blocks/ledger/index.d.ts +6 -6
  100. package/dist/blocks/mail-sync/index.d.ts +5 -5
  101. package/dist/blocks/memberships/index.d.ts +2 -2
  102. package/dist/blocks/memory/index.d.ts +4 -4
  103. package/dist/blocks/messaging/index.d.ts +11 -11
  104. package/dist/blocks/metrics/index.d.ts +6 -6
  105. package/dist/blocks/mfa/index.d.ts +2 -2
  106. package/dist/blocks/moderation/index.d.ts +6 -6
  107. package/dist/blocks/notifications/index.d.ts +12 -12
  108. package/dist/blocks/notifications/index.js +1 -1
  109. package/dist/blocks/numbering/index.d.ts +4 -4
  110. package/dist/blocks/oauth-server/index.d.ts +5 -5
  111. package/dist/blocks/onboarding/index.d.ts +5 -5
  112. package/dist/blocks/orders/index.d.ts +7 -7
  113. package/dist/blocks/organizations/index.d.ts +8 -8
  114. package/dist/blocks/outbox/index.d.ts +4 -4
  115. package/dist/blocks/passes/index.d.ts +8 -8
  116. package/dist/blocks/permissions/index.d.ts +6 -6
  117. package/dist/blocks/pipelines/index.d.ts +6 -6
  118. package/dist/blocks/posts/index.d.ts +5 -5
  119. package/dist/blocks/profiles/index.d.ts +4 -4
  120. package/dist/blocks/promotions/index.d.ts +5 -5
  121. package/dist/blocks/push/index.d.ts +6 -6
  122. package/dist/blocks/queue/index.d.ts +6 -6
  123. package/dist/blocks/quotes/index.d.ts +8 -8
  124. package/dist/blocks/rank/index.d.ts +5 -5
  125. package/dist/blocks/reactions/index.d.ts +9 -9
  126. package/dist/blocks/relations/index.d.ts +7 -7
  127. package/dist/blocks/reminders/index.d.ts +9 -9
  128. package/dist/blocks/reminders/index.js +1 -1
  129. package/dist/blocks/reviews/index.d.ts +5 -5
  130. package/dist/blocks/saved-views/index.d.ts +6 -6
  131. package/dist/blocks/scores/index.d.ts +5 -5
  132. package/dist/blocks/search/index.d.ts +8 -8
  133. package/dist/blocks/security-events/index.d.ts +7 -7
  134. package/dist/blocks/segments/index.d.ts +8 -8
  135. package/dist/blocks/sequences/index.d.ts +6 -6
  136. package/dist/blocks/service-accounts/index.d.ts +5 -5
  137. package/dist/blocks/sessions/index.d.ts +2 -2
  138. package/dist/blocks/settings/index.d.ts +6 -6
  139. package/dist/blocks/share-links/index.d.ts +5 -5
  140. package/dist/blocks/shipments/index.d.ts +6 -6
  141. package/dist/blocks/signatures/index.d.ts +5 -5
  142. package/dist/blocks/signing-keys/index.d.ts +4 -4
  143. package/dist/blocks/sla/index.d.ts +7 -7
  144. package/dist/blocks/sso/index.d.ts +6 -6
  145. package/dist/blocks/state-machine/index.d.ts +5 -5
  146. package/dist/blocks/subjects/index.d.ts +6 -6
  147. package/dist/blocks/tags/index.d.ts +6 -6
  148. package/dist/blocks/tasks/index.d.ts +10 -10
  149. package/dist/blocks/tasks/index.js +1 -1
  150. package/dist/blocks/teams/index.d.ts +4 -4
  151. package/dist/blocks/templates/index.d.ts +7 -7
  152. package/dist/blocks/time-tracking/index.d.ts +7 -7
  153. package/dist/blocks/timeline/index.d.ts +8 -8
  154. package/dist/blocks/trash/index.d.ts +6 -6
  155. package/dist/blocks/undo/index.d.ts +4 -4
  156. package/dist/blocks/updated-at/index.d.ts +2 -2
  157. package/dist/blocks/usage/index.d.ts +4 -4
  158. package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
  159. package/dist/blocks/versions/index.d.ts +6 -6
  160. package/dist/blocks/waitlist/index.d.ts +5 -5
  161. package/dist/blocks/webhooks/index.d.ts +14 -14
  162. package/dist/blocks/webhooks/index.js +1 -1
  163. package/dist/blocks/workflow-editor/index.d.ts +9 -9
  164. package/dist/blocks/workflows/index.d.ts +7 -7
  165. package/dist/{bookings-CVw5-Q0Z.d.ts → bookings-xsmM2TA_.d.ts} +3 -3
  166. package/dist/{bucket-vc-QRrva.d.ts → bucket-SvRQwYS4.d.ts} +1 -1
  167. package/dist/chat-sdk/index.d.ts +6 -6
  168. package/dist/cli/{add-C2pNvVpu.js → add-BKkV99g9.js} +2 -2
  169. package/dist/cli/{add-BTVrOGJF.js → add-CrQ3jS7t.js} +55 -88
  170. package/dist/cli/add-CwhrRJz5.js +1 -0
  171. package/dist/cli/app-table-files-PnPOpuB4.js +346 -0
  172. package/dist/cli/{backfill-BicVPugb.js → backfill-DDDLhinm.js} +4 -4
  173. package/dist/cli/bin.js +1 -1
  174. package/dist/cli/{blocks-sScN-ik-.js → blocks-BCVcjvbm.js} +1 -1
  175. package/dist/cli/{blocks-BmYOH4T-.js → blocks-tRfYx_mh.js} +2 -2
  176. package/dist/cli/{cache-1TfBy2K4.js → cache-DQZ09YOg.js} +1 -1
  177. package/dist/cli/{codemod-ylE6wGLo.js → codemod-HKuwQmi_.js} +5 -5
  178. package/dist/cli/{command-BWEEXmtz.js → command-DIPmo0wh.js} +37 -1
  179. package/dist/cli/{completion-Bt7LMypX.js → completion-DxPxMtyP.js} +2 -2
  180. package/dist/cli/{completion-8EDK21xj.js → completion-DyLMSjOD.js} +1 -1
  181. package/dist/cli/{completion-BfnKI4QZ.js → completion-FUgqm2-N.js} +2 -2
  182. package/dist/cli/{config-WKDixoGK.js → config-BfapErxs.js} +1 -1
  183. package/dist/cli/{config-BVfeG3A5.js → config-Cskysxp-.js} +327 -16
  184. package/dist/cli/{config-CeaQMrvS.js → config-Df5cXWNN.js} +1 -1
  185. package/dist/cli/{config-group-C8tjut39.js → config-group-CP-B9uRt.js} +2 -3
  186. package/dist/cli/{content-mapper-hUW2nb92.js → content-mapper-B0ehR7K-.js} +2 -2
  187. package/dist/cli/{db-DwjyUbAh.js → db-CWvH1_46.js} +38 -14
  188. package/dist/cli/{doctor-D3WKFBSv.js → doctor-CXJOhwLB.js} +36 -33
  189. package/dist/cli/{env-DMgjB_4y.js → env-BK0xKMeU.js} +1 -2
  190. package/dist/cli/{env-BCgVZkcb.js → env-BM242BCV.js} +2 -2
  191. package/dist/cli/{env-C-Bl6Awn.js → env-Bat6ogep.js} +1 -1
  192. package/dist/cli/env-uqfUbUzk.js +1 -0
  193. package/dist/cli/{exec--Q1ZEWUW.js → exec-Ca5s-ygi.js} +1 -1
  194. package/dist/cli/{gen-CqsUdsB2.js → gen-B7rw4j19.js} +16 -16
  195. package/dist/cli/in-stack-diff-Cp-tVPj2.js +186 -0
  196. package/dist/cli/index.d.ts +9 -3
  197. package/dist/cli/index.js +8 -8
  198. package/dist/cli/{init-DryZ5Mp1.js → init-C1bXXB_P.js} +131 -12
  199. package/dist/cli/{keys-CbaL0lnw.js → keys-V-HcO-21.js} +1 -1
  200. package/dist/cli/{live-Di45imoV.js → live-PpAh9pAc.js} +2 -2
  201. package/dist/cli/{mcp-BklC-3eK.js → mcp-BRNAchdH.js} +6 -14
  202. package/dist/cli/{metadata-7PsBF5Xw.js → metadata-dAAKb_kR.js} +3 -3
  203. package/dist/cli/migrate-BWYXFnaW.js +46 -0
  204. package/dist/cli/{migration-safety-Doy9qYO8.js → migration-safety-DGQswWZy.js} +2 -2
  205. package/dist/cli/migrations-Cqk-lJwu.js +117 -0
  206. package/dist/cli/{module-migration-ZIn1NCMi.js → module-migration-8-hMiZtW.js} +2 -2
  207. package/dist/cli/{moved-DVwgE8lV.js → moved-DNOtp9LA.js} +1 -1
  208. package/dist/cli/{parse-B079x40m.js → parse-BPf3kGnc.js} +1 -1
  209. package/dist/cli/{powersync-BRGXOCJ0.js → powersync-BWQ-8T3G.js} +4 -3
  210. package/dist/cli/powersync-CbYxLsjv.js +1 -0
  211. package/dist/cli/{print-Dfqd4DB-.js → print-DSTnq5xz.js} +2 -2
  212. package/dist/cli/{migrations-JtsPYv8g.js → providers-Cjf5iOp5.js} +4 -116
  213. package/dist/cli/{remove-CQzSCYTu.js → remove-CwG8cPv1.js} +7 -7
  214. package/dist/cli/{render-DWRz-uPQ.js → render-B18iAdsT.js} +9 -6
  215. package/dist/cli/{run-DPLedqTF.js → run-C2Yg5MWt.js} +42 -40
  216. package/dist/cli/{run-DmOTMa44.js → run-CvPl8iQd.js} +4 -4
  217. package/dist/cli/{run-j54rk2w-.js → run-Wx_2Acgv.js} +11 -11
  218. package/dist/cli/seed-BOun22-k.js +1 -0
  219. package/dist/cli/{seed-BMynpMPy.js → seed-CDnL4Tnc.js} +3 -3
  220. package/dist/cli/{shared-CslNcs-R.js → shared-BHbtUOvh.js} +1 -1
  221. package/dist/cli/{skills-FXAVPLzp.js → skills-DM3oeIxY.js} +1 -1
  222. package/dist/cli/{snapshot-DdN5GlhH.js → snapshot-CXgsUPGj.js} +3 -3
  223. package/dist/cli/{source-COARbqch.js → source-B6aMAoEK.js} +1 -1
  224. package/dist/cli/{source-args-CDmmFmFG.js → source-args-v8ljFDfc.js} +1 -1
  225. package/dist/cli/{spec-CgLNZc_C.js → spec-BcYic005.js} +3 -3
  226. package/dist/cli/{spec-DIhBQlBF.js → spec-EO0TP84d.js} +1 -1
  227. package/dist/cli/{sql-layout-8jrP5gIa.js → sql-layout-CkxDNVEH.js} +21 -7
  228. package/dist/cli/{stack-DgASZP0K.js → stack-ClESAZYf.js} +3 -3
  229. package/dist/cli/{stack-status-B_Ipd_-z.js → stack-status-BkkYRlXG.js} +1 -1
  230. package/dist/cli/{stacks-BYlQ96WS.js → stacks-CiDBH1dB.js} +1 -1
  231. package/dist/cli/{sync-SqyVHRSJ.js → sync-pq6gmlhG.js} +4 -3
  232. package/dist/cli/table-dyKddjwo.js +89 -0
  233. package/dist/cli/{upgrade-D0aLhluU.js → upgrade-BoHb4h9P.js} +3 -3
  234. package/dist/cli/{upgrade-CY-vj_qh.js → upgrade-Dp9p7A69.js} +5 -4
  235. package/dist/cli/{version-Bhca9D6q.js → version-CQHFm-ak.js} +1 -1
  236. package/dist/client/index.d.ts +6 -6
  237. package/dist/client/native/index.d.ts +5 -5
  238. package/dist/{cloud-event-DcJwder2.d.ts → cloud-event-0pQ9vFNS.d.ts} +1 -1
  239. package/dist/{compiler-D3UmE7ao.d.ts → compiler-BEeVWXPS.d.ts} +2 -2
  240. package/dist/{composite-CWJvZgni.d.ts → composite-BJ9s-IJJ.d.ts} +7 -7
  241. package/dist/config/index.d.ts +5 -5
  242. package/dist/config/index.js +5 -5
  243. package/dist/{config-C19McoGo.js → config-bqKaPjst.js} +7 -28
  244. package/dist/{config-CP-WaboC.js → config-r7njjNgh.js} +3 -3
  245. package/dist/{connectors-CHGiffYH.d.ts → connectors-uC5baoFV.d.ts} +4 -4
  246. package/dist/{context-BJoHD20l.d.ts → context-B4TsE2gY.d.ts} +138 -52
  247. package/dist/{controller-CwGXms17.d.ts → controller-CtwAsnVV.d.ts} +1 -1
  248. package/dist/{conversion-DlfStnln.d.ts → conversion-g8HzH9My.d.ts} +1 -1
  249. package/dist/create/index.d.ts +62 -3
  250. package/dist/create/index.js +67 -4
  251. package/dist/create/lite/index.d.ts +141 -4
  252. package/dist/create/lite/index.js +399 -47
  253. package/dist/credentials/index.d.ts +4 -4
  254. package/dist/{data-engine-BWoz9lED.d.ts → data-engine-rvbR2C4F.d.ts} +1 -1
  255. package/dist/{define-BLP6XtoL.d.ts → define-D8_9X5fZ.d.ts} +5 -5
  256. package/dist/{define-block-DibVN37N.d.ts → define-block-DWVZSZv1.d.ts} +12 -12
  257. package/dist/{documents-Cup1rpjF.d.ts → documents-BbwYyynk.d.ts} +3 -3
  258. package/dist/edge/index.d.ts +9 -9
  259. package/dist/elysia/index.d.ts +1 -1
  260. package/dist/{embeddings-D_RsS6ow.d.ts → embeddings-I3s5sTDt.d.ts} +1 -1
  261. package/dist/{ended-B8RyuUXF.d.ts → ended-EZzN9QTM.d.ts} +2 -2
  262. package/dist/{entitlements-CsZcfllV.d.ts → entitlements-Bw3eYGKJ.d.ts} +2 -2
  263. package/dist/eve/index.d.ts +5 -5
  264. package/dist/{eve-B7jxYPCw.d.ts → eve-BfhVFV33.d.ts} +2 -2
  265. package/dist/events/index.d.ts +3 -3
  266. package/dist/{events-Cc9DDQWH.d.ts → events-B2qbZps6.d.ts} +1 -1
  267. package/dist/{executor-DNPm13a9.d.ts → executor-BfirBzOr.d.ts} +4 -4
  268. package/dist/{executor-C-Ox9eKq.d.ts → executor-BlS0kCrN.d.ts} +1 -1
  269. package/dist/{executor-hGjrop3A.d.ts → executor-DXQIx4sW.d.ts} +1 -1
  270. package/dist/expo/index.d.ts +4 -4
  271. package/dist/{field-errors-6BVg31Yp.d.ts → field-errors-DkzFduux.d.ts} +10 -10
  272. package/dist/{fields-C3q2ypnO.d.ts → fields-snbaZ14h.d.ts} +1 -1
  273. package/dist/{filter-evaluate-CPxeae5X.d.ts → filter-evaluate-BRpNiNPG.d.ts} +1 -1
  274. package/dist/{filter-query-BXLs72G9.d.ts → filter-query-DBt7OKuH.d.ts} +1 -1
  275. package/dist/{flags-C01PLMJ-.d.ts → flags-DDKTThrO.d.ts} +2 -2
  276. package/dist/flags-sdk/index.d.ts +1 -1
  277. package/dist/{framework-GlxXiotm.d.ts → framework-DVYTtQXA.d.ts} +7 -7
  278. package/dist/{gateway-DzI687yd.d.ts → gateway-Ve7cByEr.d.ts} +3 -3
  279. package/dist/h3/index.d.ts +1 -1
  280. package/dist/h3/v1/index.d.ts +1 -1
  281. package/dist/hono/index.d.ts +9 -9
  282. package/dist/{inbox-NDKwSk_H.d.ts → inbox-c8B86Trp.d.ts} +5 -5
  283. package/dist/{index-C_qlBJ3k.d.ts → index-B4wttiLh.d.ts} +4 -4
  284. package/dist/{index-BfYDY6eh.d.ts → index-BM6NmKSc.d.ts} +5 -5
  285. package/dist/{index-CbUCGMqj.d.ts → index-BNgpz_BV.d.ts} +5 -5
  286. package/dist/{index-C0QuN9_P.d.ts → index-BxckmAFc.d.ts} +106 -121
  287. package/dist/{index-Cagz4Z2k.d.ts → index-CB66nl14.d.ts} +4 -3
  288. package/dist/{index-DOHx3JuB.d.ts → index-CBQT_nXf.d.ts} +5 -5
  289. package/dist/{index-D01wHGSN.d.ts → index-Cw5gGSP8.d.ts} +14 -14
  290. package/dist/{index-CQhPHHDF.d.ts → index-Cxsnd-OL.d.ts} +1 -1
  291. package/dist/{index-D1ckLbUM.d.ts → index-pZn6S_iq.d.ts} +1 -1
  292. package/dist/index.d.ts +6 -6
  293. package/dist/{instances-qz2MCMyK.js → instances-C7qUTjhJ.js} +1 -1
  294. package/dist/{kit-Dxx3MT8m.d.ts → kit-B8yWCRN7.d.ts} +3 -3
  295. package/dist/{knowledge-F1IhRI4Q.d.ts → knowledge-CsLPACGJ.d.ts} +5 -5
  296. package/dist/lint/index.d.ts +1 -1
  297. package/dist/list/index.d.ts +3 -3
  298. package/dist/{list-query-XHoYDlRN.d.ts → list-query-BcU8NnNL.d.ts} +3 -3
  299. package/dist/mapper/bin.js +7 -7
  300. package/dist/mcp/index.d.ts +6 -6
  301. package/dist/mcp/sdk/index.d.ts +6 -6
  302. package/dist/{messaging-C_Pr9tGx.d.ts → messaging-DQP09JsY.d.ts} +4 -4
  303. package/dist/nestjs/index.d.ts +2 -2
  304. package/dist/next/client/index.d.ts +1 -1
  305. package/dist/next/index.d.ts +22 -22
  306. package/dist/node/index.d.ts +2 -2
  307. package/dist/{operations-CPhOcuzl.d.ts → operations-CqmQrTKw.d.ts} +1 -1
  308. package/dist/{options-BOGo1qCA.js → options-B5E2MGIz.js} +3 -1
  309. package/dist/{options-D2s7fT1s.js → options-COo7_3MX.js} +2 -1
  310. package/dist/{options-D32-YxnO.js → options-DhoLMknl.js} +3 -1
  311. package/dist/orpc/index.d.ts +8 -8
  312. package/dist/otel/index.d.ts +2 -2
  313. package/dist/otel/index.js +4 -4
  314. package/dist/{outbox-DxZgoKwp.d.ts → outbox-BZ712Z3X.d.ts} +4 -4
  315. package/dist/{pool-wjbAMqc1.d.ts → pool-DDR1ndk7.d.ts} +3 -3
  316. package/dist/{ports-Bw7uxPd_.d.ts → ports-6LBgr1Aa.d.ts} +1 -1
  317. package/dist/postgres/index.d.ts +4 -4
  318. package/dist/{postgrest-z-T0l23T.d.ts → postgrest-AJc8hnJU.d.ts} +1 -1
  319. package/dist/powersync/index.d.ts +6 -6
  320. package/dist/preset/index.d.ts +3 -3
  321. package/dist/preset/index.js +3 -3
  322. package/dist/{preset-BbSWLoXM.js → preset-DCdEnJj9.js} +9 -14
  323. package/dist/{project-TN03XDsA.js → project-C4NA_van.js} +5 -5
  324. package/dist/{provider-ClrIplXa.d.ts → provider-CWjzAIX9.d.ts} +1 -1
  325. package/dist/{push-token-vykw2JXT.d.ts → push-token-BXsrJ7W9.d.ts} +1 -1
  326. package/dist/query/index.d.ts +1 -1
  327. package/dist/react/index.d.ts +8 -8
  328. package/dist/react/native/index.d.ts +1 -1
  329. package/dist/react/server.d.ts +8 -8
  330. package/dist/react/session.d.ts +2 -2
  331. package/dist/react-router/index.d.ts +6 -6
  332. package/dist/realtime/index.d.ts +6 -6
  333. package/dist/realtime/index.js +2 -2
  334. package/dist/{record-form-D2-F4IwS.d.ts → record-form-CubgBrtI.d.ts} +1 -1
  335. package/dist/{recordings-BBSJt_YV.d.ts → recordings-DeZYx-Kv.d.ts} +1 -1
  336. package/dist/records/index.d.ts +9 -9
  337. package/dist/{refresh-CCKB1Wa6.d.ts → refresh-D02Pbf5B.d.ts} +1 -1
  338. package/dist/{refusal-D_tklIEb.d.ts → refusal-B0VmlAxF.d.ts} +2 -2
  339. package/dist/{resolve-Bj1qD7Dy.d.ts → resolve-CtX6T0c0.d.ts} +1 -1
  340. package/dist/{resolved-names-Dsf28_Dr.js → resolved-names-iLBOUaib.js} +2 -2
  341. package/dist/{resource-D8pzB5Qf.d.ts → resource-WxN0IsvB.d.ts} +1 -1
  342. package/dist/{resource-execute-BSTIfp1D.d.ts → resource-execute-BzqR8DdD.d.ts} +2 -2
  343. package/dist/{resource-types-D5WEvYtV.d.ts → resource-types-BVbHgTPg.d.ts} +4 -4
  344. package/dist/{resources-CsZ7RhZC.d.ts → resources-BSbRa0Ab.d.ts} +2 -2
  345. package/dist/{respond-BzRG-0qc.d.ts → respond-Dzu_-EPH.d.ts} +1 -1
  346. package/dist/{sales-lines-KxxStRzU.d.ts → sales-lines-BsmrNHe9.d.ts} +1 -1
  347. package/dist/{scores-B2BiNuVJ.d.ts → scores-Y8TvyJi1.d.ts} +5 -5
  348. package/dist/server/index.d.ts +24 -24
  349. package/dist/server/index.js +1 -1
  350. package/dist/{server-types-BlDiY-ya.d.ts → server-types-BkTIxW_H.d.ts} +11 -11
  351. package/dist/{session-BGP98Rgj.d.ts → session-BOzx2qHC.d.ts} +6 -6
  352. package/dist/{session-status-C4t7kbSn.d.ts → session-status-BP8eYVnA.d.ts} +2 -2
  353. package/dist/{sign-in-CAadgm33.d.ts → sign-in-CfwJAJJL.d.ts} +2 -2
  354. package/dist/{signers-BKgmVh6A.d.ts → signers-ZmxO1I05.d.ts} +4 -4
  355. package/dist/{signing-keys-BNDUxpQL.d.ts → signing-keys-udgP7Aod.d.ts} +2 -2
  356. package/dist/solid/index.d.ts +10 -10
  357. package/dist/solid-start/index.d.ts +6 -6
  358. package/dist/spec/index.d.ts +2 -2
  359. package/dist/sql/index.d.ts +5 -5
  360. package/dist/sql/index.js +5 -5
  361. package/dist/{sql-Dg3W1ENk.js → sql-CoBySj2F.js} +3617 -1285
  362. package/dist/sqlite/index.d.ts +3 -3
  363. package/dist/{sso-B0Txid2-.d.ts → sso-CkU_4mtK.d.ts} +3 -3
  364. package/dist/ssr/index.d.ts +5 -5
  365. package/dist/storage/index.d.ts +3 -3
  366. package/dist/storage/index.js +1 -1
  367. package/dist/streams/index.d.ts +1 -1
  368. package/dist/{subject-readers-DJbzlm8a.d.ts → subject-readers-CB5Te02u.d.ts} +5 -5
  369. package/dist/{subject-readers-CeeJJOQ4.js → subject-readers-VHcrWhmq.js} +2 -2
  370. package/dist/{subjects-NomQg6Eg.d.ts → subjects-BYCL-6hA.d.ts} +15 -1
  371. package/dist/{subjects-BpIEN1MS.d.ts → subjects-CiBNKy2y.d.ts} +4 -4
  372. package/dist/{support-D7CMbhRT.d.ts → support-BxyPOFk4.d.ts} +4 -4
  373. package/dist/{support-view-CIDXF3_H.d.ts → support-view-nqUWKHEs.d.ts} +1 -1
  374. package/dist/svelte/index.d.ts +9 -9
  375. package/dist/sveltekit/index.d.ts +7 -7
  376. package/dist/{tags-Dg4Ywmqp.d.ts → tags-Cm48BsOa.d.ts} +1 -1
  377. package/dist/tanstack-db/index.d.ts +3 -3
  378. package/dist/tanstack-start/index.d.ts +6 -6
  379. package/dist/{tenant-BRmKZ7aq.d.ts → tenant-Ded341Qz.d.ts} +2 -2
  380. package/dist/testing/index.d.ts +25 -25
  381. package/dist/testing/index.js +2 -2
  382. package/dist/{timeline-Cjl-1hiA.d.ts → timeline-DvXtXq5q.d.ts} +5 -5
  383. package/dist/{topic-F0FKzJyQ.js → topic-DnsNG4Kj.js} +1 -1
  384. package/dist/{topic-CpsKVBot.d.ts → topic-XDdKzlrn.d.ts} +5 -5
  385. package/dist/{types-Dp3UCr1e.d.ts → types-B-D6fYx2.d.ts} +1 -1
  386. package/dist/{types-CjRwmCRP.d.ts → types-BFwB-E1j.d.ts} +2 -2
  387. package/dist/{types-Czq9Xtpa.d.ts → types-CK2X2wCB.d.ts} +5 -5
  388. package/dist/{types-DFdg_4yN.d.ts → types-CPl9uJ0G.d.ts} +2 -2
  389. package/dist/{types-DR1MHh7N.d.ts → types-CwQgFo8c.d.ts} +4 -4
  390. package/dist/{types-Dr9wZgNy.d.ts → types-DMihLukJ.d.ts} +3 -3
  391. package/dist/{types-A4yyKEsg.d.ts → types-iCyZ3lMx.d.ts} +4 -4
  392. package/dist/{types-BdaBfYIw.d.ts → types-nspa5I-a.d.ts} +7 -7
  393. package/dist/{undo-B1jwnVyN.d.ts → undo-0HkWXASn.d.ts} +2 -2
  394. package/dist/{usage-Dp45V42p.d.ts → usage-BkWAPkg2.d.ts} +4 -4
  395. package/dist/{vault-BghaujrZ.d.ts → vault-BkdPmL7f.d.ts} +2 -2
  396. package/dist/vercel-connect/index.d.ts +1 -1
  397. package/dist/{verify-CI8LgSpv.d.ts → verify-41mZmspj.d.ts} +2 -2
  398. package/dist/{view-BvNA7EOC.d.ts → view-C8_xvD-j.d.ts} +1 -1
  399. package/dist/vue/index.d.ts +10 -10
  400. package/dist/{watch-topic-BaMZX139.d.ts → watch-topic-DpN_GEoS.d.ts} +1 -1
  401. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  402. package/dist/workflow-sdk/index.d.ts +1 -1
  403. package/dist/workflow-sdk/world/index.d.ts +1 -1
  404. package/dist/workflow-sdk/world/index.js +1 -1
  405. package/dist/{workflow-sdk-CE8sEK57.js → workflow-sdk-CaEw822d.js} +25 -4
  406. package/dist/{workflow-sdk-BNsZrcVg.d.ts → workflow-sdk-rg3IbCZC.d.ts} +3 -3
  407. package/dist/{workflows-B0ZPAQu0.d.ts → workflows-xL6t0TXx.d.ts} +7 -4
  408. package/dist/yjs/index.d.ts +2 -2
  409. package/dist/yjs/index.js +1 -1
  410. package/package.json +11 -2
  411. package/schemas/config-v1.json +45 -351
  412. package/skills/better-supabase/references/ui-recipes.md +5 -5
  413. package/dist/cli/add-Bf1fyCWm.js +0 -1
  414. package/dist/cli/env-xhwXk5Ri.js +0 -1
  415. package/dist/cli/in-stack-diff-DQTW53Vf.js +0 -257
  416. package/dist/cli/powersync-Dq-txa0_.js +0 -1
  417. package/dist/cli/seed-CO3j_bly.js +0 -1
@@ -1,10 +1,11 @@
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-JtsPYv8g.js";
3
+ import { r as layoutFor } from "./providers-Cjf5iOp5.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-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";
6
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CkxDNVEH.js";
7
+ import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-Cqk-lJwu.js";
8
+ import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-8-hMiZtW.js";
8
9
  import { t as loadTopics } from "./topics-BpdnYmWb.js";
9
10
  import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
10
11
  import { dirname, join, resolve } from "node:path";
@@ -0,0 +1,89 @@
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
2
+ import { i as plain } from "./style-Bm2X5JrN.js";
3
+ import { n as CliError } from "./errors-BTe6A15O.js";
4
+ import { t as display } from "./io-DH1kcmmP.js";
5
+ import { m as supabaseDir } from "./supabase-toml-CncmQbO0.js";
6
+ import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
7
+ import { join, relative } from "node:path";
8
+ import { readFile, readdir } from "node:fs/promises";
9
+ import { TABLE_FEATURES, createsTable, isTableFeature, setTableFeature } from "better-supabase/sql";
10
+ //#region src/cli/commands/table.ts
11
+ const TABLE_ARGS = {
12
+ table: {
13
+ type: "positional",
14
+ required: true,
15
+ description: "The table, as name or schema.name"
16
+ },
17
+ action: {
18
+ type: "positional",
19
+ required: true,
20
+ description: "enable or disable"
21
+ },
22
+ feature: {
23
+ type: "positional",
24
+ required: true,
25
+ description: "The feature: realtime, audit, audit-reads, subject, json, expose, encrypted, server, events or vector-search"
26
+ }
27
+ };
28
+ async function sqlFiles(dir) {
29
+ const entries = await readdir(dir, { withFileTypes: true }).catch(() => []);
30
+ return (await Promise.all(entries.map(async (entry) => entry.isDirectory() ? sqlFiles(join(dir, entry.name)) : entry.name.endsWith(".sql") ? [join(dir, entry.name)] : []))).flat().toSorted();
31
+ }
32
+ /**
33
+ * Turns a per-table feature on or off by editing the `@bsb` tag in the table's
34
+ * comment, in the file under `supabase/schemas` that creates the table (ADR
35
+ * 0102). Nothing else in the file changes; `db diff` then writes the
36
+ * migration.
37
+ */
38
+ async function runTable(config, args, deps = {}) {
39
+ const { action, feature } = args;
40
+ if (action !== "enable" && action !== "disable") throw new CliError("usage", `Expected enable or disable, got ${action}.`);
41
+ if (!isTableFeature(feature)) throw new CliError("usage", `Unknown feature ${feature}. Use one of ${TABLE_FEATURES.join(", ")}.`);
42
+ const [schema, name] = args.table.includes(".") ? args.table.split(".", 2) : ["public", args.table];
43
+ if (schema === void 0 || name === void 0 || name === "") throw new CliError("usage", `Expected a table, got ${args.table}.`);
44
+ const dir = join(config.root, supabaseDir(config.root), "schemas");
45
+ const files = await sqlFiles(dir);
46
+ const matches = [];
47
+ for (const path of files) {
48
+ const text = await readFile(path, "utf-8");
49
+ if (createsTable(text, schema, name)) matches.push({
50
+ path,
51
+ text
52
+ });
53
+ }
54
+ const [found, ...others] = matches;
55
+ if (found === void 0) throw new CliError("usage", `No file under ${display(config.root, dir)} creates ${schema}.${name}. Tables you own live in supabase/schemas; add the table there first.`);
56
+ if (others.length > 0) throw new CliError("usage", `${schema}.${name} is created in ${String(matches.length)} files: ${matches.map((match) => relative(config.root, match.path)).join(", ")}. Keep one.`);
57
+ const next = setTableFeature(found.text, schema, name, feature, action === "enable");
58
+ const plan = {
59
+ root: config.root,
60
+ regenerate: `better-supabase table ${args.table} ${action} ${feature}`,
61
+ files: [{
62
+ path: found.path,
63
+ contents: next,
64
+ policy: "edit"
65
+ }]
66
+ };
67
+ const applied = await applyPlan(plan, args, deps.paint ?? plain);
68
+ const summary = applied.mode === "write" && applied.drift ? `${action === "enable" ? "Enabled" : "Disabled"} ${feature} on ${schema}.${name}. Run \`better-supabase db diff -f ${feature}_${name}\` for the migration.` : void 0;
69
+ const data = {
70
+ table: `${schema}.${name}`,
71
+ feature,
72
+ enabled: action === "enable"
73
+ };
74
+ return planResult(plan, applied, {
75
+ data,
76
+ ...summary === void 0 ? {} : { summary }
77
+ });
78
+ }
79
+ const tableCommand = defineCliCommand({
80
+ meta: commandMeta("table"),
81
+ args: {
82
+ ...TABLE_ARGS,
83
+ "dry-run": PLAN_ARGS["dry-run"],
84
+ check: PLAN_ARGS.check
85
+ },
86
+ run: (args, { config, paint }) => runTable(config, args, { paint })
87
+ });
88
+ //#endregion
89
+ export { tableCommand };
@@ -1,8 +1,8 @@
1
- import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as syncModules } from "./sync-SqyVHRSJ.js";
3
+ import { t as syncModules } from "./sync-pq6gmlhG.js";
4
4
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
5
- import { t as upgrade } from "./upgrade-CY-vj_qh.js";
5
+ import { t as upgrade } from "./upgrade-Dp9p7A69.js";
6
6
  //#region src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
8
8
  check: {
@@ -1,9 +1,10 @@
1
1
  import { t as display } from "./io-DH1kcmmP.js";
2
- import { c as layoutFor, r as migrationStamp } from "./migrations-JtsPYv8g.js";
2
+ import { r as layoutFor } from "./providers-Cjf5iOp5.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-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";
4
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CkxDNVEH.js";
5
+ import { r as migrationStamp } from "./migrations-Cqk-lJwu.js";
6
+ import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-8-hMiZtW.js";
7
+ import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-pq6gmlhG.js";
7
8
  import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-R7UChFFl.js";
8
9
  import { resolve } from "node:path";
9
10
  import { readFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
1
  //#region src/cli/version.ts
2
- const VERSION = "0.25.0";
2
+ const VERSION = "0.29.0";
3
3
  //#endregion
4
4
  export { VERSION as t };
@@ -1,8 +1,8 @@
1
- import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-BWoz9lED.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";
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-rvbR2C4F.js";
2
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-DpN_GEoS.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-6LBgr1Aa.js";
4
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-DmUGUsBd.js";
5
+ import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-CtwAsnVV.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-DOHx3JuB.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-CBQT_nXf.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
- 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-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";
2
+ import { T as UploadOptions, w as UploadBody } from "../../bucket-SvRQwYS4.js";
3
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-DpN_GEoS.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-6LBgr1Aa.js";
5
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-DmUGUsBd.js";
6
+ import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-BXsrJ7W9.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-Cc9DDQWH.js";
2
+ import { D as BlockEventPattern, T as BlockEvent, o as EventHub } from "./events-B2qbZps6.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,5 +1,5 @@
1
- import { m as Operation } from "./types-DFdg_4yN.js";
2
- import { a as PostgrestPlan } from "./postgrest-z-T0l23T.js";
1
+ import { m as Operation } from "./types-CPl9uJ0G.js";
2
+ import { a as PostgrestPlan } from "./postgrest-AJc8hnJU.js";
3
3
  //#region src/core/compiler.d.ts
4
4
  /**
5
5
  * Turns an IR operation into something a backend runs. An `Executor` for a new
@@ -1,10 +1,10 @@
1
- import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.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";
1
+ import { O as AnyFunctions, k as AnyModels } from "./types-CPl9uJ0G.js";
2
+ import { r as AuthState } from "./resolve-CtX6T0c0.js";
3
+ import { t as BetterSupabase, y as Db } from "./define-D8_9X5fZ.js";
4
+ import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-BkTIxW_H.js";
5
+ import { t as ActiveSupport } from "./support-BxyPOFk4.js";
6
+ import { n as SessionEntryConfig } from "./session-BOzx2qHC.js";
7
+ import { r as GuardOptions } from "./respond-Dzu_-EPH.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  import { Entry, SingleKeyEntry } from "@supabase/middleware";
10
10
  import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
@@ -1,6 +1,6 @@
1
- import { M as Casing } from "../types-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-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
- import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-NomQg6Eg.js";
1
+ import { M as Casing } from "../types-CPl9uJ0G.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-C7nuWMuB.js";
3
+ import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as OrganizationConfig, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as SqlInput, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-B4TsE2gY.js";
4
+ import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-BYCL-6hA.js";
5
5
  import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-CAFNkKSN.js";
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 };
6
+ export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OrganizationConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectsConfig, type TableConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-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";
1
+ import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-iLBOUaib.js";
2
+ import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-bqKaPjst.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-qz2MCMyK.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-C7qUTjhJ.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-CP-WaboC.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-r7njjNgh.js";
7
7
  import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-DHJxiizN.js";
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 };
8
+ export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,5 +1,5 @@
1
1
  import { t as DEFAULT_TENANT } from "./entity-naming-Dtyq5sKE.js";
2
- import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-qz2MCMyK.js";
2
+ import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-C7qUTjhJ.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 = [
@@ -116,11 +116,7 @@ const CONFIG_GROUPS = {
116
116
  ]
117
117
  };
118
118
  /** Top-level keys renamed by the regrouping: the grouped name, then the flat. */
119
- const RENAMED_CONFIG_KEYS = [
120
- ["records", "subjects"],
121
- ["tables", "appTables"],
122
- ["adapters", "integrations"]
123
- ];
119
+ const RENAMED_CONFIG_KEYS = [["adapters", "integrations"]];
124
120
  /** Keys renamed inside `blocks.<name>`: the grouped name, then the flat. */
125
121
  const RENAMED_BLOCK_KEYS = [
126
122
  ["ownership", "mode"],
@@ -164,9 +160,9 @@ function organizationOf(organization, out) {
164
160
  }
165
161
  /**
166
162
  * The grouped config in the flat shape `resolveConfig` reads: every group's
167
- * keys at the top level, `records`, `tables` and `adapters` under their flat
168
- * names, `auth.organization` as `claims.tenant` and `organization`, and the
169
- * renamed block and app table keys under their flat names.
163
+ * keys at the top level, `adapters` under its flat name, `auth.organization` as
164
+ * `claims.tenant` and `organization`, and the renamed block and app table keys
165
+ * under their flat names.
170
166
  */
171
167
  function flattenConfig(config) {
172
168
  const source = { ...config };
@@ -192,21 +188,6 @@ function flattenConfig(config) {
192
188
  }
193
189
  const GROUP_OF = new Map(Object.entries(CONFIG_GROUPS).flatMap(([group, keys]) => keys.map((key) => [key, group])));
194
190
  const ENVIRONMENT_KEY = /^\$(?:development|production|test|ci)$/;
195
- const GROUPED_KEYS = /* @__PURE__ */ new Set([
196
- "database",
197
- "auth",
198
- "api",
199
- "tooling",
200
- "records",
201
- "adapters"
202
- ]);
203
- /**
204
- * Whether a top-level `tables` is the generator overrides of a config written
205
- * before 0.15 rather than the app tables of a grouped one.
206
- */
207
- function hasFlatTables(keys) {
208
- return keys.includes("appTables") || !keys.some((key) => GROUPED_KEYS.has(key));
209
- }
210
191
  /**
211
192
  * Moves `claims.tenant`, the flat `organization` and the 0.14 tenant plugin's
212
193
  * column to `auth.organization`.
@@ -258,9 +239,8 @@ function groupConfig(config) {
258
239
  function groupEntries(config) {
259
240
  const out = {};
260
241
  const groups = {};
261
- const flatTables = hasFlatTables(Object.keys(config));
262
242
  for (const [key, value] of Object.entries(config)) {
263
- const group = key === "tables" && !flatTables ? void 0 : GROUP_OF.get(key);
243
+ const group = GROUP_OF.get(key);
264
244
  const renamed = RENAMED_CONFIG_KEYS.find(([, flat]) => flat === key);
265
245
  if (key === "gen" && isObject(value)) groups["gen"] = {
266
246
  ...value,
@@ -282,7 +262,6 @@ function groupEntries(config) {
282
262
  const database = groups["database"];
283
263
  if (database !== void 0 && isObject(database["sql"])) database["sql"] = renameKeys(database["sql"], OWNER, true);
284
264
  withOrganization(out, groups);
285
- if (out["tables"] !== void 0 && flatTables) out["tables"] = eachEntry(out["tables"], OWNER, true);
286
265
  if (out["blocks"] !== void 0) out["blocks"] = eachEntry(out["blocks"], RENAMED_BLOCK_KEYS, true);
287
266
  return {
288
267
  ...out,
@@ -1697,4 +1676,4 @@ function expandFlatPreset(config) {
1697
1676
  };
1698
1677
  }
1699
1678
  //#endregion
1700
- export { flattenConfig as A, integrationsForFramework as C, RENAMED_BLOCK_KEYS as D, CONFIG_GROUPS as E, INTEGRATION_INFO as F, INTEGRATION_NAMES as I, SKILLS_AGENTS as L, groupEntries as M, hasFlatTables as N, RENAMED_CONFIG_KEYS as O, GEN_TASKS as P, PRESET_TENANT_NAMES as S, presetValueLabel as T, isPresetName as _, presetOf as a, DEFAULT_CONVENTIONS as b, presetSpec as c, resolvePreset as d, DEFAULT_PRESET_NAME as f, defaultPreset as g, PRESET_NAMES as h, presetConfig as i, groupConfig as j, blockEntrySource as k, listNames as l, PRESET_GROUPS as m, expandFlatPreset as n, presetFromSpec as o, PRESETS as p, expandPreset as r, presetOfSpec as s, conventionConfig as t, presetBlockConflict as u, namedPreset as v, presetField as w, PRESET_FRAMEWORKS as x, CONVENTION_FIELDS as y };
1679
+ export { flattenConfig as A, integrationsForFramework as C, RENAMED_BLOCK_KEYS as D, CONFIG_GROUPS as E, INTEGRATION_NAMES as F, SKILLS_AGENTS as I, groupEntries as M, GEN_TASKS as N, RENAMED_CONFIG_KEYS as O, INTEGRATION_INFO as P, PRESET_TENANT_NAMES as S, presetValueLabel as T, isPresetName as _, presetOf as a, DEFAULT_CONVENTIONS as b, presetSpec as c, resolvePreset as d, DEFAULT_PRESET_NAME as f, defaultPreset as g, PRESET_NAMES as h, presetConfig as i, groupConfig as j, blockEntrySource as k, listNames as l, PRESET_GROUPS as m, expandFlatPreset as n, presetFromSpec as o, PRESETS as p, expandPreset as r, presetOfSpec as s, conventionConfig as t, presetBlockConflict as u, namedPreset as v, presetField as w, PRESET_FRAMEWORKS as x, CONVENTION_FIELDS as y };
@@ -1,8 +1,8 @@
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";
1
+ import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-iLBOUaib.js";
2
+ import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-bqKaPjst.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-qz2MCMyK.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-C7qUTjhJ.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
  /**
@@ -3,10 +3,10 @@ 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-ClrIplXa.js";
7
- import { r as BlockTemporalOptions } from "./block-helpers-CRpAHrp_.js";
8
- import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
9
- import { n as BlockHooks } from "./block-hooks-DZN2w69m.js";
6
+ import { i as CredentialRef, r as CredentialProvider } from "./provider-CWjzAIX9.js";
7
+ import { r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
8
+ import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
9
+ import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
10
10
  //#region src/blocks/connectors/connectors.d.ts
11
11
  type ConnectorTransport = "http" | "sse";
12
12
  /**