better-supabase 0.20.0 → 0.22.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 (513) hide show
  1. package/dist/{adapter-CfuBICuG.js → adapter-D4aNBxhm.js} +4 -4
  2. package/dist/{ai-cache-BuNbWEFI.js → ai-cache-BFRKxgZ4.js} +2 -2
  3. package/dist/{ai-files-DeMWQfzs.js → ai-files-m_2z3rH1.js} +3 -3
  4. package/dist/{ai-schedules-Bp-U0cZG.d.ts → ai-schedules-7uQNMXve.d.ts} +1 -1
  5. package/dist/ai-sdk/agents/index.d.ts +2 -2
  6. package/dist/ai-sdk/batches/index.js +3 -3
  7. package/dist/ai-sdk/cache/index.js +1 -1
  8. package/dist/ai-sdk/chat/index.js +1 -1
  9. package/dist/ai-sdk/files/index.js +2 -2
  10. package/dist/ai-sdk/index.js +3 -3
  11. package/dist/ai-sdk/mcp/index.js +2 -2
  12. package/dist/ai-sdk/workflow/index.js +2 -2
  13. package/dist/api-3C0AWFeP.js +696 -0
  14. package/dist/{api-BIw5g_4V.d.ts → api-CHObZL7m.d.ts} +2 -2
  15. package/dist/{app-tables-oYkgtcRM.d.ts → app-tables-BGzdnQm5.d.ts} +1 -1
  16. package/dist/astro/index.d.ts +3 -3
  17. package/dist/astro/index.js +5 -5
  18. package/dist/{attachments-BTIwCuwm.js → attachments-BXbLnNxm.js} +5 -5
  19. package/dist/{authorization-08F77H2w.d.ts → authorization-DhoA7dsD.d.ts} +22 -8
  20. package/dist/{automations-jIIaT9EJ.js → automations-BMuqwZZn.js} +5 -5
  21. package/dist/better-result/index.d.ts +2 -2
  22. package/dist/{bind-BwQGUqdQ.d.ts → bind-CFsctoFJ.d.ts} +4 -4
  23. package/dist/{block-authors-D9hyCizs.js → block-authors-Bw3zdzgl.js} +1 -1
  24. package/dist/{block-env-Dh0Fe-fK.d.ts → block-env-BrUNeuJ_.d.ts} +4 -4
  25. package/dist/{block-events-pBXPzwnW.js → block-events-IWAyafO3.js} +1 -1
  26. package/dist/{block-fields-DE_FgpOU.js → block-fields-BjXgX_5c.js} +4 -3
  27. package/dist/{block-helpers-DnCtsKtv.js → block-helpers-B0f0ZVb5.js} +169 -4
  28. package/dist/{block-hooks-DbIpkq7a.js → block-hooks-DKtz0HRh.js} +1 -1
  29. package/dist/{block-subjects-BRJO0IqO.js → block-subjects-DFSuFY1a.js} +1 -1
  30. package/dist/blocks/access-requests/index.d.ts +1 -1
  31. package/dist/blocks/access-requests/index.js +4 -5
  32. package/dist/blocks/activities/index.d.ts +1 -1
  33. package/dist/blocks/activities/index.js +4 -5
  34. package/dist/blocks/agents/index.d.ts +1 -1
  35. package/dist/blocks/agents/index.js +3 -4
  36. package/dist/blocks/ai-cache/index.d.ts +1 -1
  37. package/dist/blocks/ai-cache/index.js +2 -2
  38. package/dist/blocks/ai-chat/index.d.ts +4 -4
  39. package/dist/blocks/ai-chat/index.js +4 -5
  40. package/dist/blocks/ai-files/index.d.ts +1 -1
  41. package/dist/blocks/ai-files/index.js +2 -2
  42. package/dist/blocks/ai-keys/index.d.ts +1 -1
  43. package/dist/blocks/ai-keys/index.js +3 -4
  44. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  45. package/dist/blocks/ai-schedules/index.js +5 -6
  46. package/dist/blocks/announcements/index.d.ts +4 -4
  47. package/dist/blocks/announcements/index.js +4 -5
  48. package/dist/blocks/api-keys/index.d.ts +2 -2
  49. package/dist/blocks/api-keys/index.js +5 -6
  50. package/dist/blocks/approvals/index.d.ts +1 -1
  51. package/dist/blocks/approvals/index.js +4 -5
  52. package/dist/blocks/assets/index.d.ts +1 -1
  53. package/dist/blocks/assets/index.js +3 -4
  54. package/dist/blocks/assignment/index.d.ts +1 -1
  55. package/dist/blocks/assignment/index.js +4 -5
  56. package/dist/blocks/attachments/index.d.ts +2 -2
  57. package/dist/blocks/attachments/index.js +5 -6
  58. package/dist/blocks/audit/index.d.ts +5 -5
  59. package/dist/blocks/audit/index.js +8 -9
  60. package/dist/blocks/automations/index.d.ts +3 -3
  61. package/dist/blocks/automations/index.js +6 -6
  62. package/dist/blocks/billable-time/index.d.ts +1 -1
  63. package/dist/blocks/billable-time/index.js +6 -7
  64. package/dist/blocks/billing/index.d.ts +3 -3
  65. package/dist/blocks/billing/index.js +6 -7
  66. package/dist/blocks/bookings/index.d.ts +3 -3
  67. package/dist/blocks/bookings/index.js +7 -7
  68. package/dist/blocks/bulk/index.d.ts +4 -3
  69. package/dist/blocks/bulk/index.js +4 -4
  70. package/dist/blocks/calendar/index.d.ts +2 -2
  71. package/dist/blocks/calendar/index.js +7 -7
  72. package/dist/blocks/catalog/index.d.ts +1 -1
  73. package/dist/blocks/catalog/index.js +5 -6
  74. package/dist/blocks/channels/index.d.ts +1 -1
  75. package/dist/blocks/channels/index.js +3 -4
  76. package/dist/blocks/collections/index.d.ts +1 -1
  77. package/dist/blocks/collections/index.js +3 -4
  78. package/dist/blocks/comments/index.d.ts +5 -5
  79. package/dist/blocks/comments/index.js +8 -9
  80. package/dist/blocks/compliance/index.d.ts +1 -1
  81. package/dist/blocks/compliance/index.js +5 -6
  82. package/dist/blocks/connectors/index.d.ts +1 -1
  83. package/dist/blocks/connectors/index.js +3 -4
  84. package/dist/blocks/contacts/index.d.ts +1 -1
  85. package/dist/blocks/contacts/index.js +4 -5
  86. package/dist/blocks/content/index.d.ts +1 -1
  87. package/dist/blocks/content/index.js +3 -4
  88. package/dist/blocks/contracts/index.d.ts +1 -1
  89. package/dist/blocks/contracts/index.js +8 -9
  90. package/dist/blocks/courses/index.d.ts +1 -1
  91. package/dist/blocks/courses/index.js +5 -6
  92. package/dist/blocks/created-by/index.d.ts +1 -1
  93. package/dist/blocks/custom-fields/index.d.ts +1 -1
  94. package/dist/blocks/custom-fields/index.js +2 -2
  95. package/dist/blocks/data-lifecycle/index.d.ts +1 -1
  96. package/dist/blocks/data-lifecycle/index.js +3 -4
  97. package/dist/blocks/deals/index.d.ts +1 -1
  98. package/dist/blocks/deals/index.js +9 -10
  99. package/dist/blocks/dispatch/index.d.ts +1 -1
  100. package/dist/blocks/dispatch/index.js +7 -8
  101. package/dist/blocks/documents/index.d.ts +1 -1
  102. package/dist/blocks/documents/index.js +2 -3
  103. package/dist/blocks/domains/index.d.ts +1 -1
  104. package/dist/blocks/domains/index.js +3 -4
  105. package/dist/blocks/donations/index.d.ts +1 -1
  106. package/dist/blocks/donations/index.js +7 -8
  107. package/dist/blocks/drive/index.d.ts +5 -1
  108. package/dist/blocks/drive/index.js +6 -7
  109. package/dist/blocks/employees/index.d.ts +2 -2
  110. package/dist/blocks/employees/index.js +7 -8
  111. package/dist/blocks/enrichment/index.d.ts +1 -1
  112. package/dist/blocks/enrichment/index.js +2 -3
  113. package/dist/blocks/enrollments/index.d.ts +1 -1
  114. package/dist/blocks/enrollments/index.js +3 -4
  115. package/dist/blocks/entitlements/index.d.ts +3 -3
  116. package/dist/blocks/entitlements/index.js +2 -2
  117. package/dist/blocks/expenses/index.d.ts +1 -1
  118. package/dist/blocks/expenses/index.js +6 -7
  119. package/dist/blocks/field-history/index.d.ts +1 -1
  120. package/dist/blocks/field-history/index.js +2 -3
  121. package/dist/blocks/flags/index.d.ts +1 -1
  122. package/dist/blocks/flags/index.js +4 -5
  123. package/dist/blocks/forecasts/index.d.ts +1 -1
  124. package/dist/blocks/forecasts/index.js +5 -6
  125. package/dist/blocks/forms/index.d.ts +2 -2
  126. package/dist/blocks/forms/index.js +4 -5
  127. package/dist/blocks/goals/index.d.ts +1 -1
  128. package/dist/blocks/goals/index.js +4 -5
  129. package/dist/blocks/guests/index.d.ts +1 -1
  130. package/dist/blocks/guests/index.js +4 -5
  131. package/dist/blocks/hiring/index.d.ts +1 -1
  132. package/dist/blocks/hiring/index.js +4 -5
  133. package/dist/blocks/identities/index.d.ts +1 -1
  134. package/dist/blocks/identities/index.js +2 -3
  135. package/dist/blocks/imports/index.d.ts +1 -1
  136. package/dist/blocks/imports/index.js +3 -3
  137. package/dist/blocks/inbox/index.d.ts +5 -5
  138. package/dist/blocks/inbox/index.js +4 -5
  139. package/dist/blocks/incidents/index.d.ts +1 -1
  140. package/dist/blocks/incidents/index.js +5 -6
  141. package/dist/blocks/index.d.ts +2 -2
  142. package/dist/blocks/index.js +7 -7
  143. package/dist/blocks/inventory/index.d.ts +1 -1
  144. package/dist/blocks/inventory/index.js +3 -4
  145. package/dist/blocks/invoices/index.d.ts +1 -1
  146. package/dist/blocks/invoices/index.js +6 -7
  147. package/dist/blocks/knowledge/index.d.ts +1 -1
  148. package/dist/blocks/knowledge/index.js +2 -2
  149. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  150. package/dist/blocks/lead-scoring/index.js +4 -5
  151. package/dist/blocks/leases/index.d.ts +1 -1
  152. package/dist/blocks/leases/index.js +7 -8
  153. package/dist/blocks/leave/index.d.ts +1 -1
  154. package/dist/blocks/leave/index.js +4 -5
  155. package/dist/blocks/ledger/index.d.ts +1 -1
  156. package/dist/blocks/ledger/index.js +3 -4
  157. package/dist/blocks/mail-sync/index.d.ts +1 -1
  158. package/dist/blocks/mail-sync/index.js +5 -6
  159. package/dist/blocks/memberships/index.d.ts +1 -1
  160. package/dist/blocks/memory/index.d.ts +1 -1
  161. package/dist/blocks/memory/index.js +3 -4
  162. package/dist/blocks/messaging/index.d.ts +5 -5
  163. package/dist/blocks/messaging/index.js +6 -7
  164. package/dist/blocks/metrics/index.d.ts +1 -1
  165. package/dist/blocks/metrics/index.js +4 -5
  166. package/dist/blocks/mfa/index.d.ts +2 -2
  167. package/dist/blocks/moderation/index.d.ts +1 -1
  168. package/dist/blocks/moderation/index.js +3 -4
  169. package/dist/blocks/notifications/index.d.ts +4 -4
  170. package/dist/blocks/notifications/index.js +8 -9
  171. package/dist/blocks/numbering/index.d.ts +1 -1
  172. package/dist/blocks/numbering/index.js +2 -2
  173. package/dist/blocks/oauth-server/index.d.ts +1 -1
  174. package/dist/blocks/oauth-server/index.js +3 -4
  175. package/dist/blocks/onboarding/index.d.ts +2 -2
  176. package/dist/blocks/onboarding/index.js +2 -3
  177. package/dist/blocks/orders/index.d.ts +9 -2
  178. package/dist/blocks/orders/index.js +7 -8
  179. package/dist/blocks/organizations/index.d.ts +3 -3
  180. package/dist/blocks/organizations/index.js +5 -6
  181. package/dist/blocks/outbox/index.d.ts +1 -1
  182. package/dist/blocks/outbox/index.js +3 -4
  183. package/dist/blocks/passes/index.d.ts +2 -2
  184. package/dist/blocks/passes/index.js +7 -8
  185. package/dist/blocks/permissions/index.d.ts +3 -3
  186. package/dist/blocks/permissions/index.js +2 -3
  187. package/dist/blocks/pipelines/index.d.ts +1 -1
  188. package/dist/blocks/pipelines/index.js +4 -5
  189. package/dist/blocks/posts/index.d.ts +1 -1
  190. package/dist/blocks/posts/index.js +4 -5
  191. package/dist/blocks/profiles/index.d.ts +1 -1
  192. package/dist/blocks/profiles/index.js +3 -4
  193. package/dist/blocks/promotions/index.d.ts +1 -1
  194. package/dist/blocks/promotions/index.js +4 -5
  195. package/dist/blocks/push/index.d.ts +2 -2
  196. package/dist/blocks/push/index.js +5 -6
  197. package/dist/blocks/queue/index.d.ts +1 -1
  198. package/dist/blocks/queue/index.js +7 -8
  199. package/dist/blocks/quotes/index.d.ts +1 -1
  200. package/dist/blocks/quotes/index.js +6 -7
  201. package/dist/blocks/rank/index.d.ts +1 -1
  202. package/dist/blocks/rank/index.js +2 -2
  203. package/dist/blocks/reactions/index.d.ts +4 -4
  204. package/dist/blocks/reactions/index.js +4 -5
  205. package/dist/blocks/relations/index.d.ts +3 -2
  206. package/dist/blocks/relations/index.js +8 -8
  207. package/dist/blocks/reminders/index.d.ts +10 -6
  208. package/dist/blocks/reminders/index.js +13 -12
  209. package/dist/blocks/reviews/index.d.ts +1 -1
  210. package/dist/blocks/reviews/index.js +3 -4
  211. package/dist/blocks/saved-views/index.d.ts +3 -3
  212. package/dist/blocks/saved-views/index.js +4 -4
  213. package/dist/blocks/scores/index.d.ts +1 -1
  214. package/dist/blocks/scores/index.js +4 -4
  215. package/dist/blocks/search/index.d.ts +3 -3
  216. package/dist/blocks/search/index.js +3 -4
  217. package/dist/blocks/security-events/index.d.ts +1 -1
  218. package/dist/blocks/security-events/index.js +2 -3
  219. package/dist/blocks/segments/index.d.ts +1 -1
  220. package/dist/blocks/segments/index.js +4 -5
  221. package/dist/blocks/sequences/index.d.ts +1 -1
  222. package/dist/blocks/sequences/index.js +3 -4
  223. package/dist/blocks/service-accounts/index.d.ts +1 -1
  224. package/dist/blocks/service-accounts/index.js +3 -4
  225. package/dist/blocks/sessions/index.d.ts +2 -2
  226. package/dist/blocks/sessions/index.js +1 -1
  227. package/dist/blocks/settings/index.d.ts +2 -2
  228. package/dist/blocks/settings/index.js +3 -4
  229. package/dist/blocks/share-links/index.d.ts +1 -1
  230. package/dist/blocks/share-links/index.js +6 -6
  231. package/dist/blocks/shipments/index.d.ts +1 -1
  232. package/dist/blocks/shipments/index.js +9 -10
  233. package/dist/blocks/signatures/index.d.ts +1 -1
  234. package/dist/blocks/signatures/index.js +3 -4
  235. package/dist/blocks/signing-keys/index.d.ts +1 -1
  236. package/dist/blocks/signing-keys/index.js +2 -2
  237. package/dist/blocks/sla/index.d.ts +1 -1
  238. package/dist/blocks/sla/index.js +7 -8
  239. package/dist/blocks/sso/index.d.ts +1 -1
  240. package/dist/blocks/sso/index.js +2 -3
  241. package/dist/blocks/state-machine/index.d.ts +1 -1
  242. package/dist/blocks/state-machine/index.js +3 -3
  243. package/dist/blocks/subjects/index.d.ts +2 -2
  244. package/dist/blocks/subjects/index.js +3 -4
  245. package/dist/blocks/tags/index.d.ts +2 -2
  246. package/dist/blocks/tags/index.js +6 -6
  247. package/dist/blocks/tasks/index.d.ts +2 -2
  248. package/dist/blocks/tasks/index.js +7 -8
  249. package/dist/blocks/teams/index.d.ts +1 -1
  250. package/dist/blocks/teams/index.js +3 -3
  251. package/dist/blocks/templates/index.d.ts +3 -3
  252. package/dist/blocks/templates/index.js +3 -4
  253. package/dist/blocks/time-tracking/index.d.ts +8 -1
  254. package/dist/blocks/time-tracking/index.js +9 -10
  255. package/dist/blocks/timeline/index.d.ts +3 -3
  256. package/dist/blocks/timeline/index.js +4 -5
  257. package/dist/blocks/trash/index.d.ts +1 -1
  258. package/dist/blocks/trash/index.js +3 -4
  259. package/dist/blocks/undo/index.d.ts +2 -2
  260. package/dist/blocks/undo/index.js +2 -2
  261. package/dist/blocks/updated-at/index.d.ts +1 -1
  262. package/dist/blocks/usage/index.d.ts +2 -2
  263. package/dist/blocks/usage/index.js +2 -3
  264. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  265. package/dist/blocks/vercel-marketplace/index.js +3 -4
  266. package/dist/blocks/versions/index.d.ts +1 -1
  267. package/dist/blocks/versions/index.js +6 -7
  268. package/dist/blocks/waitlist/index.d.ts +1 -1
  269. package/dist/blocks/waitlist/index.js +4 -5
  270. package/dist/blocks/webhooks/index.d.ts +3 -3
  271. package/dist/blocks/webhooks/index.js +13 -14
  272. package/dist/blocks/workflow-editor/index.d.ts +6 -6
  273. package/dist/blocks/workflow-editor/index.js +10 -11
  274. package/dist/blocks/workflows/index.d.ts +4 -4
  275. package/dist/blocks/workflows/index.js +5 -6
  276. package/dist/{bookings-Dox2rced.d.ts → bookings-BpCNphYp.d.ts} +1 -2
  277. package/dist/{build-D9lWi5bk.js → build-CH2N3Yf0.js} +4 -4
  278. package/dist/{build-BFC8nFiL.js → build-DbIRFcHQ.js} +3 -65
  279. package/dist/chat-sdk/index.js +2 -3
  280. package/dist/cli/{add-CH7dC6UR.js → add-B6CQOt3A.js} +2 -2
  281. package/dist/cli/{add-CtLjnwds.js → add-BXFzr0Wf.js} +9 -9
  282. package/dist/cli/add-w_HumDPX.js +1 -0
  283. package/dist/cli/{backfill-DBJIMzcy.js → backfill-Dflp6JZk.js} +1 -1
  284. package/dist/cli/bin.js +1 -1
  285. package/dist/cli/{blocks-i1w0EEvs.js → blocks-CBH3N7Fy.js} +1 -1
  286. package/dist/cli/{blocks-CS58-xnw.js → blocks-FtOIcUbu.js} +1 -1
  287. package/dist/cli/{cache-Cn3crN0v.js → cache-61VwYKEv.js} +1 -1
  288. package/dist/cli/{codemod-D6wifOAH.js → codemod-CqPRa25J.js} +1 -1
  289. package/dist/cli/{content-mapper-Q9We297z.js → content-mapper-DGQQY5IA.js} +2 -2
  290. package/dist/cli/{doctor-DmfdE5Ct.js → doctor-BxxSO193.js} +62 -58
  291. package/dist/cli/{gen-D68A0uN8.js → gen-D2cqqqTH.js} +11 -11
  292. package/dist/cli/index.d.ts +1 -1
  293. package/dist/cli/index.js +6 -6
  294. package/dist/cli/{init-N7pkBbJn.js → init-BnG1IE1y.js} +5 -5
  295. package/dist/cli/{live-0xAAlTK_.js → live-D26OWOAb.js} +2 -2
  296. package/dist/cli/{mcp-CbN3ulRF.js → mcp-1l3C_GdB.js} +2 -2
  297. package/dist/cli/{metadata-417ldpf4.js → metadata-DDfPBHwI.js} +3 -3
  298. package/dist/cli/{migration-safety-BC_UI4jC.js → migration-safety-CQbrfZIx.js} +1 -1
  299. package/dist/cli/{migrations-DdBKwrvG.js → migrations-Ch5Uuvyj.js} +1 -1
  300. package/dist/cli/{module-migration-DdxPdqMC.js → module-migration-Dul1uTYX.js} +2 -2
  301. package/dist/cli/{powersync-CJTEz-uY.js → powersync-CfT-tRx1.js} +2 -2
  302. package/dist/cli/powersync-Vmhw5c1N.js +1 -0
  303. package/dist/cli/{print-DyFm91R-.js → print-CbPT4PTL.js} +2 -2
  304. package/dist/cli/{remove-CPY0xsVm.js → remove-kDH1yxKZ.js} +5 -5
  305. package/dist/cli/{render-DE3O1OFq.js → render-0Vd7BaNA.js} +22 -5
  306. package/dist/cli/{run-WtIEFGvP.js → run-Dafms0D2.js} +8 -8
  307. package/dist/cli/{run-CcrNGX9C.js → run-DxTd55Ug.js} +21 -21
  308. package/dist/cli/{shared-SlukBuKn.js → shared-BQAMXvwd.js} +1 -1
  309. package/dist/cli/{snapshot-pyIsJjUV.js → snapshot-B8K6gYjA.js} +2 -2
  310. package/dist/cli/{source-Bclt9D0Y.js → source-CXDyCWz5.js} +1 -1
  311. package/dist/cli/{spec-D7zsEVj_.js → spec-BGsnTkIl.js} +2 -2
  312. package/dist/cli/{spec-BsdLx7tZ.js → spec-CaN7nOqI.js} +1 -1
  313. package/dist/cli/{sql-layout-C6baAM5t.js → sql-layout-BGAlcp1U.js} +2 -2
  314. package/dist/cli/{sync-Cse8VXAU.js → sync-CT_5VG0E.js} +3 -3
  315. package/dist/cli/{upgrade-28ENjIJU.js → upgrade-DA7aO88E.js} +2 -2
  316. package/dist/cli/{upgrade-Cwc1RiAE.js → upgrade-frUtPDDb.js} +4 -4
  317. package/dist/cli/{version-yWIaLG04.js → version-CUdPyV6J.js} +1 -1
  318. package/dist/client/index.d.ts +5 -5
  319. package/dist/client/index.js +1 -1
  320. package/dist/client/native/index.d.ts +4 -4
  321. package/dist/client/native/index.js +1 -1
  322. package/dist/{codecs-BfmQSbM6.js → codecs-CSUFGrdP.js} +3 -3
  323. package/dist/commerce/index.js +3 -3
  324. package/dist/{composite-D24L5RIY.js → composite-CBRbvn5j.js} +2 -2
  325. package/dist/{composite-DbRuu6Jb.d.ts → composite-ChzHhSB0.d.ts} +3 -3
  326. package/dist/config/index.d.ts +2 -2
  327. package/dist/config/index.js +5 -5
  328. package/dist/{config-CD2OGfCG.js → config-C9AOcQ9S.js} +1 -1
  329. package/dist/{config-D74JT0qL.js → config-CH-D2B-4.js} +4 -4
  330. package/dist/{context-CjHXhCck.d.ts → context-DEisra3V.d.ts} +19 -7
  331. package/dist/{controller-BeqcjERs.d.ts → controller-B6vWdKSa.d.ts} +1 -1
  332. package/dist/{controller-BNZKd6bJ.js → controller-qG-B1eDn.js} +1 -1
  333. package/dist/{conversion-BqDvi8ty.d.ts → conversion-DBgMck5U.d.ts} +1 -1
  334. package/dist/create/index.d.ts +72 -451
  335. package/dist/create/index.js +15 -1687
  336. package/dist/create/lite/index.d.ts +250 -13
  337. package/dist/create/lite/index.js +1007 -24
  338. package/dist/{create-blocks-0pWKQ6x4.js → create-blocks-BfrDUSM6.js} +14 -10
  339. package/dist/credentials/index.js +3 -4
  340. package/dist/{cron-CgHTKwYG.js → cron-DdT4ti8a.js} +1 -1
  341. package/dist/{cron-route-UU9i5i9J.js → cron-route-FjKgRvTY.js} +1 -1
  342. package/dist/{deal-forecast-DikouYGj.js → deal-forecast-CKBnRodz.js} +2 -2
  343. package/dist/{define-Djgn3HQQ.js → define-D-dLADd5.js} +16 -19
  344. package/dist/{define-BqaUwrIC.d.ts → define-Lf6rI2QN.d.ts} +14 -8
  345. package/dist/{define-block-CRwHsxZO.d.ts → define-block-DCAiOrNX.d.ts} +12 -3
  346. package/dist/edge/index.d.ts +5 -5
  347. package/dist/edge/index.js +7 -7
  348. package/dist/elysia/index.js +1 -1
  349. package/dist/{entitlements-mDz7GfA_.d.ts → entitlements-BPaPd3MD.d.ts} +1 -1
  350. package/dist/{entitlements-DBir2qwB.js → entitlements-tGL6-69B.js} +2 -2
  351. package/dist/{entity-schema-BDv6w-OQ.js → entity-schema-B1YmMtP8.js} +1 -1
  352. package/dist/events/index.js +3 -3
  353. package/dist/{executor-3qcMhg6R.js → executor-C2Ne-Scm.js} +3 -2
  354. package/dist/{executor-Bi056Cnj.d.ts → executor-DNK401lZ.d.ts} +1 -1
  355. package/dist/{executor-D3gB-9si.js → executor-DqIci3Jb.js} +3 -3
  356. package/dist/{executor-BQ7dYw4E.js → executor-WolvKszH.js} +3 -3
  357. package/dist/{executor-_O-CqCPl.d.ts → executor-aFV7nEBs.d.ts} +2 -2
  358. package/dist/expo/index.d.ts +2 -2
  359. package/dist/expo/index.js +3 -3
  360. package/dist/{field-errors-Cfvcg-C3.d.ts → field-errors-DBgDCITw.d.ts} +6 -6
  361. package/dist/{fields--5a88KJe.js → fields-BBm49w-E.js} +1 -1
  362. package/dist/{filter-evaluate-w1XOIUOL.js → filter-evaluate-lCToXzZI.js} +2 -2
  363. package/dist/{filter-query-DMoKo82_.js → filter-query-CQ6d5GnQ.js} +1 -1
  364. package/dist/{flags-ClOQY-p5.js → flags-DF_SCqp5.js} +1 -1
  365. package/dist/flags-sdk/index.js +2 -2
  366. package/dist/{framework-B-1Ka0GW.d.ts → framework-DKA3fTHl.d.ts} +3 -3
  367. package/dist/{framework-CNhTg0th.js → framework-DYEUraqt.js} +1 -1
  368. package/dist/h3/index.js +1 -1
  369. package/dist/h3/v1/index.js +1 -1
  370. package/dist/hono/index.d.ts +4 -4
  371. package/dist/hono/index.js +6 -6
  372. package/dist/{index-CjnDGAJr.d.ts → index-3p_oWttZ.d.ts} +77 -2
  373. package/dist/{index-BzW1T3oI.d.ts → index-ByF22_C6.d.ts} +3 -3
  374. package/dist/{index-BdzfjFnd.d.ts → index-C4sjewrr.d.ts} +9 -9
  375. package/dist/{index-CYzckGOz.d.ts → index-CM2aGNRo.d.ts} +9 -5
  376. package/dist/{index-DfgP-9eC.d.ts → index-CdMZQCYR.d.ts} +3 -3
  377. package/dist/{index-EieRHooI.d.ts → index-ClvuSZEz.d.ts} +2 -2
  378. package/dist/index.d.ts +2 -2
  379. package/dist/index.js +8 -7
  380. package/dist/{app-tables-DyswUg6J.js → instances-CK0jR3Pc.js} +147 -3
  381. package/dist/{json-schema-Ca6gYbEP.js → json-schema-DHJxiizN.js} +1 -1
  382. package/dist/{kit-DhlB-vv_.js → kit-Bcd9wYCV.js} +1 -1
  383. package/dist/{knowledge-CV6OSirC.js → knowledge-tCrrU99q.js} +2 -2
  384. package/dist/list/index.d.ts +1 -1
  385. package/dist/list/index.js +3 -3
  386. package/dist/{list-query-BKy2zBaT.js → list-query-BnpA2BDg.js} +1 -1
  387. package/dist/{list-query-6vTI1VN6.d.ts → list-query-XYfUZb0j.d.ts} +1 -1
  388. package/dist/mapper/bin.js +5 -5
  389. package/dist/mcp/index.d.ts +4 -4
  390. package/dist/mcp/index.js +7 -7
  391. package/dist/mcp/sdk/index.d.ts +2 -2
  392. package/dist/mcp/sdk/index.js +2 -2
  393. package/dist/{messages-D4XWuRTj.js → messages-ecPW_nOv.js} +1 -1
  394. package/dist/{model-messages-CKG0zwdF.js → model-messages-CkZSDDHP.js} +1 -1
  395. package/dist/{money-codec-uV5WbT60.js → money-codec-BJuS2zEW.js} +1 -1
  396. package/dist/nestjs/index.js +1 -1
  397. package/dist/next/index.d.ts +14 -14
  398. package/dist/next/index.js +8 -8
  399. package/dist/node/index.js +1 -1
  400. package/dist/{operations-DbNAgo7E.d.ts → operations-DC3wU3Sy.d.ts} +1 -1
  401. package/dist/orpc/index.d.ts +4 -4
  402. package/dist/orpc/index.js +5 -5
  403. package/dist/otel/index.js +5 -5
  404. package/dist/{ports-DO3tgLTo.d.ts → ports-BbBJVyS0.d.ts} +1 -1
  405. package/dist/{ports-CaVRXjxq.js → ports-DvpNseap.js} +1 -1
  406. package/dist/postgres/index.js +5 -4
  407. package/dist/{postgrest-executor-BFW4oWte.js → postgrest-executor-B_Uezhrm.js} +7 -3
  408. package/dist/powersync/index.d.ts +3 -3
  409. package/dist/powersync/index.js +1 -1
  410. package/dist/preset/index.d.ts +4 -4
  411. package/dist/preset/index.js +4 -4
  412. package/dist/{preset-B3CukUhu.js → preset-CS490mYJ.js} +179 -7
  413. package/dist/project-NmP1NdLi.js +1760 -0
  414. package/dist/{push-token-IFGi8jvd.d.ts → push-token-CPJfPFa2.d.ts} +1 -1
  415. package/dist/query/index.d.ts +1 -1
  416. package/dist/query/index.js +1 -1
  417. package/dist/{rate-limit-BPuUWz4U.js → rate-limit-fZ_d8gSE.js} +4 -5
  418. package/dist/react/index.d.ts +5 -5
  419. package/dist/react/index.js +2 -2
  420. package/dist/react/native/index.d.ts +1 -1
  421. package/dist/react/server.d.ts +6 -6
  422. package/dist/react/server.js +2 -2
  423. package/dist/{react-D-p70_wL.js → react-CcrQQl0_.js} +4 -4
  424. package/dist/react-router/index.d.ts +3 -3
  425. package/dist/react-router/index.js +5 -5
  426. package/dist/{read-set-BnKnofIj.js → read-set-B1sDib5O.js} +1 -1
  427. package/dist/realtime/index.d.ts +3 -3
  428. package/dist/realtime/index.js +2 -2
  429. package/dist/{record-bindings-DkBJpC5A.js → record-bindings-Z51mGfhB.js} +1 -1
  430. package/dist/{record-form-yMVvkPiQ.d.ts → record-form-BbZpwsEi.d.ts} +1 -1
  431. package/dist/records/index.d.ts +7 -7
  432. package/dist/records/index.js +3 -3
  433. package/dist/{refusal-D48CMqpQ.js → refusal-DDlInPff.js} +2 -2
  434. package/dist/{instances-DDt7NdVl.js → resolved-names-DdlJzoMK.js} +2 -146
  435. package/dist/{resource-R3KToNze.js → resource-BUJcZKiW.js} +2 -2
  436. package/dist/{resource-execute-LR71zWej.d.ts → resource-execute-CUG6xUuh.d.ts} +1 -1
  437. package/dist/{resource-types-eXuFxVt7.d.ts → resource-types-DjZ91WKA.d.ts} +1 -1
  438. package/dist/{resources-Dpz3h8Fe.d.ts → resources-6Ncdt9XT.d.ts} +1 -1
  439. package/dist/{resources-DqIwoQsP.js → resources-jb3R6rEa.js} +1 -1
  440. package/dist/{rows-EGAbu7MG.js → rows-BdqXmiB-.js} +2 -2
  441. package/dist/{rows-Bh9QemqN.js → rows-jijHLVE_.js} +1 -1
  442. package/dist/{rrule-79K2c3Nr.js → rrule-C9Ot6ax8.js} +1 -1
  443. package/dist/{sales-lines-CP4Z_LyE.js → sales-lines-DO7oRu1o.js} +3 -3
  444. package/dist/{sales-shared-BKXXA5qV.js → sales-shared-BuTA8JK7.js} +2 -2
  445. package/dist/{schemas-BSTNfGsQ.js → schemas-CLOTvdsC.js} +1 -1
  446. package/dist/{scores-CsgM-dw7.js → scores-bY2Is0kx.js} +2 -2
  447. package/dist/server/index.d.ts +7 -7
  448. package/dist/server/index.js +9 -9
  449. package/dist/{server-types-BTBzrzOH.d.ts → server-types-BH6AjDBN.d.ts} +1 -1
  450. package/dist/{session-BgYGk_FS.d.ts → session-Y5SSYO2C.d.ts} +1 -1
  451. package/dist/{shared-C47zAh2A.js → shared-BeHTi8Fu.js} +1 -1
  452. package/dist/{sign-in-BTaRWS-L.js → sign-in-NO7LWlw4.js} +5 -5
  453. package/dist/{signatures-CNcoq392.js → signatures-CX1b4WHa.js} +2 -2
  454. package/dist/{signers-BAEzvTJ0.d.ts → signers-BKgmVh6A.d.ts} +2 -2
  455. package/dist/{signing-keys-DqI-gB_C.js → signing-keys-CWtpMask.js} +3 -3
  456. package/dist/solid/index.d.ts +6 -6
  457. package/dist/solid/index.js +1 -1
  458. package/dist/solid-start/index.d.ts +3 -3
  459. package/dist/solid-start/index.js +5 -5
  460. package/dist/spec/index.d.ts +2 -2
  461. package/dist/spec/index.js +2 -693
  462. package/dist/{spec-DTWkHzYZ.js → spec-BMvCCNnd.js} +1 -1
  463. package/dist/sql/index.d.ts +4 -4
  464. package/dist/sql/index.js +2 -2
  465. package/dist/{sql-B0wb7XA5.js → sql-BMXEHTvr.js} +9685 -6254
  466. package/dist/{sql-BPbbPzRJ.js → sql-CYt7EhH0.js} +2 -2
  467. package/dist/sqlite/index.d.ts +1 -1
  468. package/dist/sqlite/index.js +1 -1
  469. package/dist/{sso-Co2TbnEy.js → sso-DdDpJQzw.js} +2 -2
  470. package/dist/ssr/index.d.ts +1 -1
  471. package/dist/storage/index.js +3 -3
  472. package/dist/streams/index.js +1 -2
  473. package/dist/{subject-readers-F1xvRY-d.js → subject-readers-CeeJJOQ4.js} +1 -1
  474. package/dist/svelte/index.d.ts +6 -6
  475. package/dist/svelte/index.js +1 -1
  476. package/dist/sveltekit/index.d.ts +4 -4
  477. package/dist/sveltekit/index.js +5 -5
  478. package/dist/{table-schema-CD8cJz_M.js → table-schema-C80xItaV.js} +1 -1
  479. package/dist/{tags-CXeJu332.d.ts → tags-Cjtcp5cN.d.ts} +1 -1
  480. package/dist/tanstack-db/index.d.ts +1 -1
  481. package/dist/tanstack-start/index.d.ts +3 -3
  482. package/dist/tanstack-start/index.js +5 -5
  483. package/dist/{temporal-DLZlWbOi.js → temporal-Dbo0fLzc.js} +12 -2
  484. package/dist/{temporal-required-Dy0GGD8E.js → temporal-required-DcLhnDhQ.js} +1 -1
  485. package/dist/{tenant-DzymQ9sv.d.ts → tenant-BHvMFNXl.d.ts} +1 -1
  486. package/dist/testing/index.d.ts +10 -10
  487. package/dist/testing/index.js +10 -10
  488. package/dist/{timeline-BMVOKokJ.d.ts → timeline-CEzj9v1z.d.ts} +3 -3
  489. package/dist/{topic-0uK4db_2.d.ts → topic-gTVjLGTk.d.ts} +2 -2
  490. package/dist/types-BC1HLEVx.d.ts +461 -0
  491. package/dist/{types-DsRfiQ0v.d.ts → types-yj8VF4oY.d.ts} +5 -0
  492. package/dist/{undo-B3FQvuAd.js → undo-BbftL9-4.js} +2 -2
  493. package/dist/vercel-connect/index.js +1 -1
  494. package/dist/{verify-ZLFUdlqE.js → verify-7EucfCnv.js} +3 -3
  495. package/dist/{verify-DexkIx4t.d.ts → verify-B0KLBb3j.d.ts} +1 -1
  496. package/dist/vue/index.d.ts +6 -6
  497. package/dist/vue/index.js +1 -1
  498. package/dist/{watch-topic-CG3kOX-D.d.ts → watch-topic-C6HhbnVz.d.ts} +1 -1
  499. package/dist/wire-ChYn1g21.js +91 -0
  500. package/dist/workflow-sdk/builder/index.d.ts +2 -2
  501. package/dist/workflow-sdk/builder/index.js +1 -1
  502. package/dist/workflow-sdk/world/index.js +1 -1
  503. package/dist/yjs/index.d.ts +1 -1
  504. package/dist/yjs/index.js +1 -1
  505. package/package.json +1 -1
  506. package/skills/better-supabase/references/ui-recipes.md +1 -1
  507. package/dist/block-transport-PNea4lfQ.js +0 -84
  508. package/dist/cli/add-DyCrVejx.js +0 -1
  509. package/dist/cli/powersync-CYQ4Ljcz.js +0 -1
  510. package/dist/types-DGHfTW8_.d.ts +0 -9
  511. package/dist/{data-hooks-tgF1Ct0F.js → data-hooks-CdcZfVS1.js} +1 -1
  512. package/dist/{respond-3RKp6VgU.js → respond-CZMWbUs3.js} +1 -1
  513. package/dist/{topic-DXbA-jwr.js → topic-DClSoqY7.js} +2 -2
@@ -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-Cn3crN0v.js";
3
+ import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-61VwYKEv.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-pyIsJjUV.js";
5
+ import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-B8K6gYjA.js";
6
6
  import { t as isRecord$1 } from "./guards-CUlDNYZs.js";
7
- import { a as toCatalog } from "./source-Bclt9D0Y.js";
7
+ import { a as toCatalog } from "./source-CXDyCWz5.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";
@@ -1508,6 +1508,20 @@ function tenantColumnOf(config, modules) {
1508
1508
  return names.size === 1 && name !== void 0 && name !== DEFAULT_TENANT_COLUMN && !others.has(name) ? name : void 0;
1509
1509
  }
1510
1510
  /**
1511
+ * The tenant columns `blocks.<module>.columns` renames, as database name to
1512
+ * default name. A name another column of the block has by default is left out,
1513
+ * since mapping it back would rename that column too.
1514
+ */
1515
+ function tenantColumnsOf(config, modules) {
1516
+ const tables = modules.flatMap((module) => Object.entries(SQL_MODULES[module]?.names?.tables ?? {}).map(([table, spec]) => [spec, resolveBlock(config.blocks[module]).columns[table]]));
1517
+ const defaults = new Set(tables.flatMap(([spec]) => Object.entries(spec.columns).filter(([logical]) => logical !== "tenant").map(([, name]) => name)));
1518
+ return Object.fromEntries(tables.flatMap(([spec, columns]) => {
1519
+ const fallback = spec.columns["tenant"];
1520
+ const name = columns?.["tenant"];
1521
+ return fallback === void 0 || typeof name !== "string" || name === fallback || defaults.has(name) ? [] : [[name, fallback]];
1522
+ }));
1523
+ }
1524
+ /**
1511
1525
  * How the tenant rename, the modules' renamed entities and their
1512
1526
  * `blocks.<module>.functions` rename the block's functions and payload keys, or
1513
1527
  * undefined when nothing does. `blocks.permissions.functions` is the custom
@@ -1519,12 +1533,15 @@ function namingOf(config, modules, instanceFunctionNames = {}) {
1519
1533
  const tenant = tenantNameOf(config.blocks);
1520
1534
  const renames = Object.keys(functions).length > 0;
1521
1535
  const tenantColumn = tenantColumnOf(config, modules);
1522
- if (tenant === void 0 && !renames && entities.length === 0 && tenantColumn === void 0) return;
1536
+ const columns = Object.fromEntries(Object.entries(tenantColumnsOf(config, modules)).filter(([name]) => name !== tenantColumn));
1537
+ const moved = Object.keys(columns).length > 0;
1538
+ if (tenant === void 0 && !renames && entities.length === 0 && tenantColumn === void 0 && !moved) return;
1523
1539
  return {
1524
1540
  ...tenant === void 0 ? {} : { tenant },
1525
1541
  ...tenantColumn === void 0 ? {} : { tenantColumn },
1526
1542
  ...renames ? { functions } : {},
1527
- ...entities.length === 0 ? {} : { entities }
1543
+ ...entities.length === 0 ? {} : { entities },
1544
+ ...moved ? { columns } : {}
1528
1545
  };
1529
1546
  }
1530
1547
  /**
@@ -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-Cn3crN0v.js";
3
+ import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-61VwYKEv.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-pyIsJjUV.js";
6
- import { n as render } from "./render-DE3O1OFq.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-DdBKwrvG.js";
8
- import { s as schemaStampPath } from "./content-mapper-Q9We297z.js";
5
+ import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-B8K6gYjA.js";
6
+ import { n as render } from "./render-0Vd7BaNA.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-Ch5Uuvyj.js";
8
+ import { s as schemaStampPath } from "./content-mapper-DGQQY5IA.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-C6baAM5t.js";
11
- import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-SlukBuKn.js";
12
- import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-DdxPdqMC.js";
10
+ import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-BGAlcp1U.js";
11
+ import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-BQAMXvwd.js";
12
+ import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-Dul1uTYX.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,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-yWIaLG04.js";
3
+ import { t as VERSION } from "./version-CUdPyV6J.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-N7pkBbJn.js").then((m) => m.initCommand)],
20
- ["add", () => import("./add-DyCrVejx.js").then((m) => m.addCommand)],
21
- ["remove", () => import("./remove-CPY0xsVm.js").then((m) => m.removeCommand)],
22
- ["upgrade", () => import("./upgrade-28ENjIJU.js").then((m) => m.upgradeCommand)],
23
- ["gen", () => import("./gen-D68A0uN8.js").then((m) => m.genCommand)],
24
- ["doctor", () => import("./doctor-DmfdE5Ct.js").then((m) => m.doctorCommand)],
19
+ ["init", () => import("./init-BnG1IE1y.js").then((m) => m.initCommand)],
20
+ ["add", () => import("./add-w_HumDPX.js").then((m) => m.addCommand)],
21
+ ["remove", () => import("./remove-kDH1yxKZ.js").then((m) => m.removeCommand)],
22
+ ["upgrade", () => import("./upgrade-DA7aO88E.js").then((m) => m.upgradeCommand)],
23
+ ["gen", () => import("./gen-D2cqqqTH.js").then((m) => m.genCommand)],
24
+ ["doctor", () => import("./doctor-BxxSO193.js").then((m) => m.doctorCommand)],
25
25
  ["db query", () => import("./db-DCeyHS1y.js").then((m) => m.dbQueryCommand)],
26
26
  ["db diff", () => import("./db-DCeyHS1y.js").then((m) => m.dbDiffCommand)],
27
27
  ["db seed", () => import("./seed-CXJvTU5D.js").then((m) => m.seedCommand)],
28
- ["db backfill", () => import("./backfill-DBJIMzcy.js").then((m) => m.dbBackfillCommand)],
28
+ ["db backfill", () => import("./backfill-Dflp6JZk.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-CS58-xnw.js").then((m) => m.blocksListCommand)],
35
- ["blocks view", () => import("./blocks-CS58-xnw.js").then((m) => m.blocksViewCommand)],
36
- ["blocks search", () => import("./blocks-CS58-xnw.js").then((m) => m.blocksSearchCommand)],
37
- ["powersync streams", () => import("./powersync-CYQ4Ljcz.js").then((m) => m.powersyncStreamsCommand)],
38
- ["spec emit", () => import("./spec-BsdLx7tZ.js").then((m) => m.specEmitCommand)],
39
- ["spec validate", () => import("./spec-BsdLx7tZ.js").then((m) => m.specValidateCommand)],
40
- ["mcp", () => import("./mcp-CbN3ulRF.js").then((m) => m.mcpCommand)],
34
+ ["blocks list", () => import("./blocks-FtOIcUbu.js").then((m) => m.blocksListCommand)],
35
+ ["blocks view", () => import("./blocks-FtOIcUbu.js").then((m) => m.blocksViewCommand)],
36
+ ["blocks search", () => import("./blocks-FtOIcUbu.js").then((m) => m.blocksSearchCommand)],
37
+ ["powersync streams", () => import("./powersync-Vmhw5c1N.js").then((m) => m.powersyncStreamsCommand)],
38
+ ["spec emit", () => import("./spec-CaN7nOqI.js").then((m) => m.specEmitCommand)],
39
+ ["spec validate", () => import("./spec-CaN7nOqI.js").then((m) => m.specValidateCommand)],
40
+ ["mcp", () => import("./mcp-1l3C_GdB.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-D6wifOAH.js").then((m) => m.codemodCommand("0.4"))],
44
- ["codemod 0.5", () => import("./codemod-D6wifOAH.js").then((m) => m.codemodCommand("0.5"))],
45
- ["codemod 0.6", () => import("./codemod-D6wifOAH.js").then((m) => m.codemodCommand("0.6"))],
46
- ["codemod 0.9", () => import("./codemod-D6wifOAH.js").then((m) => m.codemodCommand("0.9"))],
47
- ["codemod 0.11", () => import("./codemod-D6wifOAH.js").then((m) => m.codemodCommand("0.11"))],
48
- ["codemod 0.15", () => import("./codemod-D6wifOAH.js").then((m) => m.codemodCommand("0.15"))],
43
+ ["codemod 0.4", () => import("./codemod-CqPRa25J.js").then((m) => m.codemodCommand("0.4"))],
44
+ ["codemod 0.5", () => import("./codemod-CqPRa25J.js").then((m) => m.codemodCommand("0.5"))],
45
+ ["codemod 0.6", () => import("./codemod-CqPRa25J.js").then((m) => m.codemodCommand("0.6"))],
46
+ ["codemod 0.9", () => import("./codemod-CqPRa25J.js").then((m) => m.codemodCommand("0.9"))],
47
+ ["codemod 0.11", () => import("./codemod-CqPRa25J.js").then((m) => m.codemodCommand("0.11"))],
48
+ ["codemod 0.15", () => import("./codemod-CqPRa25J.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,4 +1,4 @@
1
- import { a as toCatalog } from "./source-Bclt9D0Y.js";
1
+ import { a as toCatalog } from "./source-CXDyCWz5.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-Cn3crN0v.js";
2
+ import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-61VwYKEv.js";
3
3
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
4
- import { n as managementSource, r as pgSource } from "./source-Bclt9D0Y.js";
4
+ import { n as managementSource, r as pgSource } from "./source-CXDyCWz5.js";
5
5
  import { n as databaseUrl, u as accessToken } from "./config-BH0goim0.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-yWIaLG04.js";
1
+ import { t as VERSION } from "./version-CUdPyV6J.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-yWIaLG04.js";
3
+ import { t as VERSION } from "./version-CUdPyV6J.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-Cn3crN0v.js";
6
+ import { c as writeAtomic, t as CACHE_DIR } from "./cache-61VwYKEv.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-D7zsEVj_.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-BGsnTkIl.js";
@@ -1,5 +1,5 @@
1
- import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-pyIsJjUV.js";
2
- import { a as toCatalog } from "./source-Bclt9D0Y.js";
1
+ import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-B8K6gYjA.js";
2
+ import { a as toCatalog } from "./source-CXDyCWz5.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-DdBKwrvG.js";
3
+ import { a as writeExtensionsMigration, c as layoutFor, t as DATA_NEXT } from "./migrations-Ch5Uuvyj.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-C6baAM5t.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-DdxPdqMC.js";
6
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BGAlcp1U.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-Dul1uTYX.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,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-Cse8VXAU.js";
3
+ import { t as syncModules } from "./sync-CT_5VG0E.js";
4
4
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
5
- import { t as upgrade } from "./upgrade-Cwc1RiAE.js";
5
+ import { t as upgrade } from "./upgrade-frUtPDDb.js";
6
6
  //#region src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
8
8
  check: {
@@ -1,9 +1,9 @@
1
1
  import { t as display } from "./io-DH1kcmmP.js";
2
- import { c as layoutFor, r as migrationStamp } from "./migrations-DdBKwrvG.js";
2
+ import { c as layoutFor, r as migrationStamp } from "./migrations-Ch5Uuvyj.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-C6baAM5t.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-DdxPdqMC.js";
6
- import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-Cse8VXAU.js";
4
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BGAlcp1U.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-Dul1uTYX.js";
6
+ import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-CT_5VG0E.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,4 +1,4 @@
1
1
  //#region src/cli/version.ts
2
- const VERSION = "0.20.0";
2
+ const VERSION = "0.22.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-CG3kOX-D.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-DO3tgLTo.js";
4
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-BwQGUqdQ.js";
5
- import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-BeqcjERs.js";
2
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-C6HhbnVz.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-BbBJVyS0.js";
4
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-CFsctoFJ.js";
5
+ import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-B6vWdKSa.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-DfgP-9eC.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-CdMZQCYR.js";
8
8
  export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
@@ -2,7 +2,7 @@ import { n as dbError } from "../errors-BVFgt8BZ.js";
2
2
  import { a as ok, r as err, t as AsyncResult } from "../result-ntFBW2p2.js";
3
3
  import { i as isProblem, r as fromProblem } from "../problem-Bf0cJ7tk.js";
4
4
  import { EnvValidationError, parseEnv } from "../env/index.js";
5
- import { n as storageUpload, r as bindClient, t as memoryStorage } from "../ports-CaVRXjxq.js";
5
+ import { n as storageUpload, r as bindClient, t as memoryStorage } from "../ports-DvpNseap.js";
6
6
  import { a as memoryEngine, n as liveEngine } from "../data-engine-D1BkmBoR.js";
7
7
  import { n as whileSignedIn, t as defineController } from "../controller-BEliOBOv.js";
8
8
  import { createBrowserClient } from "@supabase/ssr";
@@ -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-CG3kOX-D.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-DO3tgLTo.js";
5
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-BwQGUqdQ.js";
6
- import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-IFGi8jvd.js";
3
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-C6HhbnVz.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-BbBJVyS0.js";
5
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-CFsctoFJ.js";
6
+ import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-CPJfPFa2.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,7 +1,7 @@
1
1
  import { n as dbError } from "../../errors-BVFgt8BZ.js";
2
2
  import { r as err, s as toDbError, t as AsyncResult } from "../../result-ntFBW2p2.js";
3
3
  import { i as toBase64, r as fromBase64 } from "../../base64-B9Wlsdj7.js";
4
- import { n as storageUpload, r as bindClient, t as memoryStorage } from "../../ports-CaVRXjxq.js";
4
+ import { n as storageUpload, r as bindClient, t as memoryStorage } from "../../ports-DvpNseap.js";
5
5
  import { n as linkParams, r as signInWithOAuthBrowser, t as handleAuthDeepLink } from "../../auth-link-D3-bU6yz.js";
6
6
  import { t as expoPushToken } from "../../push-token-D6REHMMw.js";
7
7
  //#region src/client/native/auto-refresh.ts
@@ -1,8 +1,8 @@
1
1
  import { n as isRecord } from "./guards-6F2bCtQR.js";
2
- import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, S as optionalInstant, d as enumOrThrow, k as recordsOf, y as nullableText } from "./block-helpers-DnCtsKtv.js";
3
- import { s as rowFields } from "./block-fields-DE_FgpOU.js";
2
+ import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, b as nullableText, d as enumOrThrow, j as requiredInstant, w as optionalText } from "./block-helpers-B0f0ZVb5.js";
3
+ import { s as rowFields } from "./block-fields-BjXgX_5c.js";
4
4
  import { d as money } from "./money-BZl985O-.js";
5
- import { i as moneyOf, t as amountText } from "./money-codec-uV5WbT60.js";
5
+ import { i as moneyOf, t as amountText } from "./money-codec-BJuS2zEW.js";
6
6
  //#region src/blocks/orders/codecs.ts
7
7
  const ORDER_STATUSES = [
8
8
  "pending_payment",
@@ -1,9 +1,9 @@
1
1
  import { n as dbError } from "../errors-BVFgt8BZ.js";
2
- import { c as optionalTemporal } from "../temporal-DLZlWbOi.js";
3
- import { t as temporal } from "../temporal-required-Dy0GGD8E.js";
2
+ import { c as optionalTemporal } from "../temporal-Dbo0fLzc.js";
3
+ import { t as temporal } from "../temporal-required-DcLhnDhQ.js";
4
4
  import { a as ok, r as err, s as toDbError, t as AsyncResult } from "../result-ntFBW2p2.js";
5
5
  import { t as ISO_4217_MINOR_UNITS } from "../iso4217-B-durg_y.js";
6
- import { s as verifyStripeWebhook } from "../verify-ZLFUdlqE.js";
6
+ import { s as verifyStripeWebhook } from "../verify-7EucfCnv.js";
7
7
  import { _ as roundHalfEven, a as compareMoney, b as toDecimal, c as isMoney, d as money, f as moneyFromJson, g as parseMoney, h as negateMoney, i as applyRate, l as isRate, m as multiplyMoney, n as addMoney, o as formatMoney, p as moneyToJson, r as allocateMoney, s as isCurrency, t as CurrencyMismatchError, u as minorUnits, v as subtractMoney, y as sumMoney } from "../money-BZl985O-.js";
8
8
  import { n as paymentProviderOf, t as invalidPaymentAmount } from "../payments-BXvabJOw.js";
9
9
  import { t as lazyStripe } from "../stripe-BJUfp5jM.js";
@@ -1,7 +1,7 @@
1
1
  import { o as problemResponse } from "./problem-Bf0cJ7tk.js";
2
- import { T as serverCore, _ as withSupport, g as withTenant, s as createServer, w as withServerContext, y as withSession } from "./adapter-CfuBICuG.js";
2
+ import { T as serverCore, _ as withSupport, g as withTenant, s as createServer, w as withServerContext, y as withSession } from "./adapter-D4aNBxhm.js";
3
3
  import { s as withPrimaryPin } from "./replicas-Dyoh3CEg.js";
4
- import { i as guard, n as defaultExpose } from "./respond-3RKp6VgU.js";
4
+ import { i as guard, n as defaultExpose } from "./respond-CZMWbUs3.js";
5
5
  import { a as withAuthMode, i as withAuth, o as withJwtClaims, s as withUserClaims } from "./claims-DTy6R6my.js";
6
6
  import { defineComposite, defineMiddleware } from "@supabase/middleware";
7
7
  //#region src/server/entries/db.ts
@@ -1,9 +1,9 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
2
2
  import { r as AuthState } from "./resolve-CXX6DHv3.js";
3
- import { t as BetterSupabase, v as Db } from "./define-BqaUwrIC.js";
4
- import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-BTBzrzOH.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
5
  import { t as ActiveSupport } from "./support-B4ZBVxt3.js";
6
- import { n as SessionEntryConfig } from "./session-BgYGk_FS.js";
6
+ import { n as SessionEntryConfig } from "./session-Y5SSYO2C.js";
7
7
  import { r as GuardOptions } from "./respond-oZeJ342J.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  import { Entry, SingleKeyEntry } from "@supabase/middleware";
@@ -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-08F77H2w.js";
3
- import { $ as blockEntrySource, $n as APP_COLUMN_ACCESS, $r as RpcTypeReference, $t as ResolvedExtensions, A as ValibotGeneratorOptions, Ai as SkillsAgent, An as ExposePrivilege, Ar as CatalogIndex, At as GeneratedFile, B as jsonSchema, Br as ForeignKeyAction, Bt as GeneratorInputSchema, Ci as GenConfig, Cn as TopicTriggerPayloadValueConfig, Cr as CatalogColumn, D as ZodFlavor, Di as MigrationSafetyConfig, Dn as VectorSearchConfig, Dr as CatalogFunction, Dt as resolveJsonSchema, Ei as KeysConfig, En as VectorDistance, Er as CatalogForeignKey, F as nuqs, Fi as IntegrationInfo, 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 SKILLS_AGENTS, 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, Lr as ExtrasHook, Lt as GeneratorFunction, M as StandardSchemaGeneratorOptions, Mi as GEN_TASKS, Mn as Privilege, Mr as CatalogTable, Mt as GeneratorBlock, N as standardSchema, Ni as INTEGRATION_INFO, Nn as ResolvedExpose, Nr as CatalogTrigger, Nt as GeneratorBlockEntity, O as ZodGeneratorOptions, Oi as OpenApiConfig, On as ColumnPrivilege, Or as CatalogFunctionArg, Ot as ClaimsConfig, P as NuqsGeneratorOptions, Pi as INTEGRATION_NAMES, Pr as CatalogUnique, Pt as GeneratorColumn, Q as RENAMED_CONFIG_KEYS, Qr as RpcReturnColumn, Qt as ResolvedConfig, R as JsonSchemaGeneratorOptions, Rr as ExtrasHookFunction, Rt as GeneratorFunctionArg, Si as EnvFileConfig, Sn as TopicTriggerLookupConfig, Sr as CatalogCheck, Ti as IntegrationName, 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 SkillsConfig, jn as ExposeRole, jr as CatalogPolicy, jt as Generator, k as zod, ki as PowerSyncGenConfig, 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 GenTask, wn as TopicTriggerTopicConfig, wr as CatalogColumnGrant, xi as DoctorConfig, xn as TopicTriggerConfig, xr as Catalog, yn as SqlConfig, yr as AppTableVersions, z as buildJsonSchema, zr as ExtrasTable, zt as GeneratorInput } from "../context-CjHXhCck.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-DhoA7dsD.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-DEisra3V.js";
4
4
  import { n as SubjectsConfig, t as SubjectConfig } from "../subjects-DvmQeF_F.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 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 { o as resolveJsonSchema, s as CONFIG_DEFAULTS } from "../instances-DDt7NdVl.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-CD2OGfCG.js";
1
+ import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-DdlJzoMK.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-C9AOcQ9S.js";
3
3
  import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-Bp9My7XP.js";
4
- import { C as APP_ON_DELETE_ACTIONS, O as DEFAULT_ACTIVE_TENANT, S as APP_COLUMN_TYPES, T as APP_TABLE_EVENT_KINDS, b as APP_COLUMN_ACCESS, j as tenantNameOf, w as APP_ROLLUP_AGGREGATES, x as APP_COLUMN_FORMATS } from "../app-tables-DyswUg6J.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-CK0jR3Pc.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-D74JT0qL.js";
7
- import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-Ca6gYbEP.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-CH-D2B-4.js";
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 { E as PRESET_CATALOG, k as asBlocksConfig } from "./app-tables-DyswUg6J.js";
2
+ import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-CK0jR3Pc.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 = [
@@ -1,9 +1,9 @@
1
- import { a as resolveNames, i as resolveInstances, s as CONFIG_DEFAULTS, t as blocksByName } from "./instances-DDt7NdVl.js";
2
- import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-CD2OGfCG.js";
1
+ import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-DdlJzoMK.js";
2
+ import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-C9AOcQ9S.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 { A as resolveBlock, E as PRESET_CATALOG, d as appTablesOf, f as withAppTableSubjects, j as tenantNameOf } from "./app-tables-DyswUg6J.js";
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-Ca6gYbEP.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-CK0jR3Pc.js";
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
  /**
9
9
  * The error for a provider built for another API version, or `undefined` for
@@ -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-08F77H2w.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-CRwHsxZO.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-DhoA7dsD.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";
5
5
  import { a as ScalarKind, i as FieldSpec } from "./table-schema-BlF6k62Q.js";
6
6
  import { n as SubjectsConfig } from "./subjects-DvmQeF_F.js";
7
7
  import { i as FIELD_FORMAT_NAMES, s as FieldFormatName } from "./field-formats-CAFNkKSN.js";
@@ -404,6 +404,11 @@ interface PresetCatalog {
404
404
  }
405
405
  //#endregion
406
406
  //#region src/config/instances.d.ts
407
+ /**
408
+ * Blocks that install once: they hold the app's identity, tenancy, access and
409
+ * plumbing, so a second copy would split what every other block reads.
410
+ */
411
+ declare const CORE_BLOCKS: ReadonlySet<string>;
407
412
  /** One named install of a block. */
408
413
  interface ResolvedInstance {
409
414
  /** The key in `blocks`. */
@@ -421,6 +426,12 @@ interface ResolvedInstance {
421
426
  /** Its config, without `block`. */
422
427
  readonly config: BlockConfig;
423
428
  }
429
+ declare const INSTANCE_NAME: RegExp;
430
+ /**
431
+ * The prefix an instance gives the names its block's renames leave unchanged:
432
+ * `hiring-pipelines` and `hiringPipelines` both give `hiring_pipelines`.
433
+ */
434
+ declare function instancePrefix(name: string): string;
424
435
  //#endregion
425
436
  //#region src/sql/contributions.d.ts
426
437
  /**
@@ -490,8 +501,8 @@ interface PipelineContribution {
490
501
  readonly type: string;
491
502
  /** The qualified table its records live in. */
492
503
  readonly table: string;
493
- /** Its tenant column, unquoted; `tenant_id` when left out. */
494
- readonly tenant?: string;
504
+ /** Its tenant column, unquoted, as the block names it. */
505
+ readonly tenant: string;
495
506
  /** The binding; an app's own `on` entry is merged over it. */
496
507
  readonly entry: Readonly<Record<string, unknown>>;
497
508
  }
@@ -1779,8 +1790,9 @@ interface LegacyBlockKeys {
1779
1790
  type BlockInput<T extends LegacyBlockKeys> = Omit<T, keyof LegacyBlockKeys> & {
1780
1791
  /**
1781
1792
  * Who owns the block's tables: `managed` (better-supabase writes them, the
1782
- * default), `adopt` (your tables, mapped through `tables` and `columns`) or
1783
- * `custom` (your functions behind the block's contract).
1793
+ * default) or `custom` (your functions behind the block's contract). A block
1794
+ * leaves alone every table your schema already has, mapped through `tables`
1795
+ * and `columns`.
1784
1796
  */
1785
1797
  readonly ownership?: T["mode"];
1786
1798
  /**
@@ -4185,4 +4197,4 @@ interface ExtraColumn {
4185
4197
  /** The contract's argument list with `{id}` resolved, as Postgres prints it. */
4186
4198
  declare function contractSignature(fn: BlockSqlContractFunction, idType: string): string;
4187
4199
  //#endregion
4188
- export { blockEntrySource as $, APP_COLUMN_ACCESS as $n, RpcTypeReference as $r, ResolvedExtensions as $t, ValibotGeneratorOptions as A, SkillsAgent as Ai, ExposePrivilege as An, CatalogIndex as Ar, GeneratedFile as At, jsonSchema as B, PRESETS as Bn, ForeignKeyAction as Br, GeneratorInputSchema as Bt, OwnView as C, GenConfig as Ci, TopicTriggerPayloadValueConfig as Cn, CatalogColumn as Cr, ResolvedPresetBlock as Ct, ZodFlavor as D, MigrationSafetyConfig as Di, VectorSearchConfig as Dn, CatalogFunction as Dr, resolveJsonSchema as Dt, TableGrant as E, KeysConfig as Ei, VectorDistance as En, CatalogForeignKey as Er, resolvePreset as Et, nuqs as F, IntegrationInfo as Fi, presetFromSpec as Fn, ExtrasDomain as Fr, GeneratorEntitySchemas as Ft, tenantClaimPaths as G, defaultPreset as Gn, PostgresColumn as Gr, JsonSchemaSource as Gt, ClaimPaths as H, PRESET_NAMES as Hn, SnapshotBucket as Hr, GeneratorModel as Ht, FactoriesGeneratorOptions as I, SKILLS_AGENTS as Ii, presetOfSpec as In, ExtrasFunction as Ir, GeneratorField as It, blockEntityRenames as J, CONFIG_DEFAULTS as Jn, RpcFunction as Jr, SourceConfig as Jt, BlockEntity as K, isPresetName as Kn, PostgresFunction as Kr, JsonTypeConfig as Kt, factories as L, presetSpec as Ln, ExtrasHook as Lr, GeneratorFunction as Lt, StandardSchemaGeneratorOptions as M, GEN_TASKS as Mi, Privilege as Mn, CatalogTable as Mr, GeneratorBlock as Mt, standardSchema as N, INTEGRATION_INFO as Ni, ResolvedExpose as Nn, CatalogTrigger as Nr, GeneratorBlockEntity as Nt, ZodGeneratorOptions as O, OpenApiConfig as Oi, ColumnPrivilege as On, CatalogFunctionArg as Or, ClaimsConfig as Ot, NuqsGeneratorOptions as P, INTEGRATION_NAMES as Pi, PresetSpec as Pn, CatalogUnique as Pr, GeneratorColumn as Pt, RENAMED_CONFIG_KEYS as Q, auditRegistrations as Qn, RpcReturnColumn as Qr, ResolvedConfig as Qt, JsonSchemaGeneratorOptions as R, DEFAULT_PRESET_NAME as Rn, ExtrasHookFunction as Rr, GeneratorFunctionArg as Rt, BlockSqlUpgrade as S, EnvFileConfig as Si, TopicTriggerLookupConfig as Sn, CatalogCheck as Sr, ResolvedPreset as St, notNullCheckName as T, IntegrationName as Ti, TopicTriggerValueConfig as Tn, CatalogEnum as Tr, presetBlockConflict as Tt, DEFAULT_CLAIMS as U, PresetGroup as Un, SnapshotExtras as Ur, GeneratorNoun as Ut, JsonSchemaTarget as V, PRESET_GROUPS as Vn, Snapshot as Vr, GeneratorJsonSchema as Vt, claimPaths as W, PresetName as Wn, GeneratorMetadata as Wr, GeneratorTable as Wt, CONFIG_GROUPS as X, sameTenantLayout as Xn, RpcFunctionOverload as Xr, DataHooksFramework as Xt, blockSubjectTypes as Y, DeclaredForeignKey as Yn, RpcFunctionArg as Yr, TableConfig as Yt, RENAMED_BLOCK_KEYS as Z, AuditedTable as Zn, RpcFunctionReturns as Zr, FlatConfig as Zt, BlockSqlDeprecation as _, PresetValueInfo as _i, ResolvedSqlConfig as _n, AppTableEvents as _r, expandPreset as _t, BlockSqlContext as a, DEFAULT_CONVENTIONS as ai, BlockInput as an, AppColumnAccess as ar, defineConfig as at, BlockSqlLayout as b, presetValueLabel as bi, SqlWorkflow as bn, AppTablesConfig as br, PresetConflict as bt, BlockSqlIdType as c, Preset as ci, EnvironmentConfig as cn, AppColumnType as cr, BlockTableReference as ct, MODULE_ID_TYPES as d, PresetField as di, SqlInput as dn, AppReference as dr, RoleNames as dt, PresetCatalog as ei, ApiConfig as en, APP_COLUMN_FORMATS as er, flattenConfig as et, contractSignature as f, PresetFieldKey as fi, ToolingConfig as fn, AppReferenceTarget as fr, TypedReference as ft, BlockSqlAccessProvider as g, PresetScope as gi, RealtimeConfig as gn, AppTableEventKind as gr, conventionConfig as gt, BlockSql as h, PresetPlatforms as hi, BucketConfig as hn, AppTableConfig as hr, PresetInput as ht, BlockSqlAudit as i, CONVENTION_FIELDS as ii, BetterSupabaseConfig as in, APP_TABLE_EVENT_KINDS as ir, CONFIG_SCHEMA_URL as it, valibot as j, SkillsConfig as ji, ExposeRole as jn, CatalogPolicy as jr, Generator as jt, zod as k, PowerSyncGenConfig as ki, ExposeConfig as kn, CatalogGrant as kr, CodecsConfig as kt, BlockSqlNames as l, PresetAccess as li, GenGroupConfig as ln, AppLookupConfig as lr, BucketName as lt, moduleIdType as m, PresetFramework as mi, EntitlementsConfig as mn, AppRollupConfig as mr, ExpandedConfig as mt, AuditCategory as n, PresetCatalogManifest as ni, AppTablesInput as nn, APP_ON_DELETE_ACTIONS as nr, groupEntries as nt, BlockSqlContractFunction as o, PRESET_FRAMEWORKS as oi, BlocksInput as on, AppColumnConfig as or, resolveConfig as ot, isBlockSqlIdType as p, PresetFieldValue as pi, EntitlementPlansSource as pn, AppRollupAggregate as pr, ConfigConventions as pt, blockEntities as q, namedPreset as qn, PostgresFunctionArg as qr, RelationsConfig as qt, BlockSqlAction as r, PresetGlueItem as ri, AuthConfig as rn, APP_ROLLUP_AGGREGATES as rr, hasFlatTables as rt, BlockSqlEmit as s, PRESET_TENANT_NAMES as si, DatabaseConfig as sn, AppColumnFormat as sr, AppTableNames as st, AUDIT_CATEGORIES as t, PresetCatalogBlock as ti, AppTableInput as tn, APP_COLUMN_TYPES as tr, groupConfig as tt, BlockSqlTableSpec as u, PresetConventions as ui, OrganizationConfig as un, AppOnDeleteAction as ur, ConfigReferences as ut, BlockSqlEntitlementsProvider as v, integrationsForFramework as vi, SeedConfig as vn, AppTableSubject as vr, presetConfig as vt, blockSqlVersion as w, GenTask as wi, TopicTriggerTopicConfig as wn, CatalogColumnGrant as wr, listNames as wt, BlockSqlTestFile as x, DoctorConfig as xi, TopicTriggerConfig as xn, Catalog as xr, PresetIntegration as xt, BlockSqlFile as y, presetField as yi, SqlConfig as yn, AppTableVersions as yr, presetOf as yt, buildJsonSchema as z, NamedPreset as zn, ExtrasTable as zr, GeneratorInput as zt };
4200
+ export { blockEntrySource as $, APP_COLUMN_ACCESS as $n, RpcTypeReference as $r, ResolvedExtensions as $t, ValibotGeneratorOptions as A, MigrationSafetyConfig as Ai, ExposePrivilege as An, CatalogIndex as Ar, GeneratedFile as At, jsonSchema as B, PRESETS as Bn, ForeignKeyAction as Br, GeneratorInputSchema as Bt, OwnView as C, presetValueLabel as Ci, TopicTriggerPayloadValueConfig as Cn, CatalogColumn as Cr, ResolvedPresetBlock as Ct, ZodFlavor as D, GenTask as Di, VectorSearchConfig as Dn, CatalogFunction as Dr, resolveJsonSchema as Dt, TableGrant as E, GenConfig as Ei, VectorDistance as En, CatalogForeignKey as Er, resolvePreset as Et, nuqs as F, GEN_TASKS as Fi, presetFromSpec as Fn, ExtrasDomain as Fr, GeneratorEntitySchemas as Ft, tenantClaimPaths as G, defaultPreset as Gn, PostgresColumn as Gr, JsonSchemaSource as Gt, ClaimPaths as H, PRESET_NAMES as Hn, SnapshotBucket as Hr, GeneratorModel as Ht, FactoriesGeneratorOptions as I, INTEGRATION_INFO as Ii, presetOfSpec as In, ExtrasFunction as Ir, GeneratorField as It, blockEntityRenames as J, CONFIG_DEFAULTS as Jn, RpcFunction as Jr, SourceConfig as Jt, BlockEntity as K, isPresetName as Kn, PostgresFunction as Kr, JsonTypeConfig as Kt, factories as L, INTEGRATION_NAMES as Li, presetSpec as Ln, ExtrasHook as Lr, GeneratorFunction as Lt, StandardSchemaGeneratorOptions as M, PowerSyncGenConfig as Mi, Privilege as Mn, CatalogTable as Mr, GeneratorBlock as Mt, standardSchema as N, SkillsAgent as Ni, ResolvedExpose as Nn, CatalogTrigger as Nr, GeneratorBlockEntity as Nt, ZodGeneratorOptions as O, IntegrationName as Oi, ColumnPrivilege as On, CatalogFunctionArg as Or, ClaimsConfig as Ot, NuqsGeneratorOptions as P, SkillsConfig as Pi, PresetSpec as Pn, CatalogUnique as Pr, GeneratorColumn as Pt, RENAMED_CONFIG_KEYS as Q, auditRegistrations as Qn, RpcReturnColumn as Qr, ResolvedConfig as Qt, JsonSchemaGeneratorOptions as R, IntegrationInfo as Ri, DEFAULT_PRESET_NAME as Rn, ExtrasHookFunction as Rr, GeneratorFunctionArg as Rt, BlockSqlUpgrade as S, presetField as Si, TopicTriggerLookupConfig as Sn, CatalogCheck as Sr, ResolvedPreset as St, notNullCheckName as T, EnvFileConfig as Ti, TopicTriggerValueConfig as Tn, CatalogEnum as Tr, presetBlockConflict as Tt, DEFAULT_CLAIMS as U, PresetGroup as Un, SnapshotExtras as Ur, GeneratorNoun as Ut, JsonSchemaTarget as V, PRESET_GROUPS as Vn, Snapshot as Vr, GeneratorJsonSchema as Vt, claimPaths as W, PresetName as Wn, GeneratorMetadata as Wr, GeneratorTable as Wt, CONFIG_GROUPS as X, sameTenantLayout as Xn, RpcFunctionOverload as Xr, DataHooksFramework as Xt, blockSubjectTypes as Y, DeclaredForeignKey as Yn, RpcFunctionArg as Yr, TableConfig as Yt, RENAMED_BLOCK_KEYS as Z, AuditedTable as Zn, RpcFunctionReturns as Zr, FlatConfig as Zt, BlockSqlDeprecation as _, PresetFramework as _i, ResolvedSqlConfig as _n, AppTableEvents as _r, expandPreset as _t, BlockSqlContext as a, PresetCatalogManifest as ai, BlockInput as an, AppColumnAccess as ar, defineConfig as at, BlockSqlLayout as b, PresetValueInfo as bi, SqlWorkflow as bn, AppTablesConfig as br, PresetConflict as bt, BlockSqlIdType as c, DEFAULT_CONVENTIONS as ci, EnvironmentConfig as cn, AppColumnType as cr, BlockTableReference as ct, MODULE_ID_TYPES as d, Preset as di, SqlInput as dn, AppReference as dr, RoleNames as dt, CORE_BLOCKS as ei, ApiConfig as en, APP_COLUMN_FORMATS as er, flattenConfig as et, contractSignature as f, PresetAccess as fi, ToolingConfig as fn, AppReferenceTarget as fr, TypedReference as ft, BlockSqlAccessProvider as g, PresetFieldValue as gi, RealtimeConfig as gn, AppTableEventKind as gr, conventionConfig as gt, BlockSql as h, PresetFieldKey as hi, BucketConfig as hn, AppTableConfig as hr, PresetInput as ht, BlockSqlAudit as i, PresetCatalogBlock as ii, BetterSupabaseConfig as in, APP_TABLE_EVENT_KINDS as ir, CONFIG_SCHEMA_URL as it, valibot as j, OpenApiConfig as ji, ExposeRole as jn, CatalogPolicy as jr, Generator as jt, zod as k, KeysConfig as ki, ExposeConfig as kn, CatalogGrant as kr, CodecsConfig as kt, BlockSqlNames as l, PRESET_FRAMEWORKS as li, GenGroupConfig as ln, AppLookupConfig as lr, BucketName as lt, moduleIdType as m, PresetField as mi, EntitlementsConfig as mn, AppRollupConfig as mr, ExpandedConfig as mt, AuditCategory as n, instancePrefix as ni, AppTablesInput as nn, APP_ON_DELETE_ACTIONS as nr, groupEntries as nt, BlockSqlContractFunction as o, PresetGlueItem as oi, BlocksInput as on, AppColumnConfig as or, resolveConfig as ot, isBlockSqlIdType as p, PresetConventions as pi, EntitlementPlansSource as pn, AppRollupAggregate as pr, ConfigConventions as pt, blockEntities as q, namedPreset as qn, PostgresFunctionArg as qr, RelationsConfig as qt, BlockSqlAction as r, PresetCatalog as ri, AuthConfig as rn, APP_ROLLUP_AGGREGATES as rr, hasFlatTables as rt, BlockSqlEmit as s, CONVENTION_FIELDS as si, DatabaseConfig as sn, AppColumnFormat as sr, AppTableNames as st, AUDIT_CATEGORIES as t, INSTANCE_NAME as ti, AppTableInput as tn, APP_COLUMN_TYPES as tr, groupConfig as tt, BlockSqlTableSpec as u, PRESET_TENANT_NAMES as ui, OrganizationConfig as un, AppOnDeleteAction as ur, ConfigReferences as ut, BlockSqlEntitlementsProvider as v, PresetPlatforms as vi, SeedConfig as vn, AppTableSubject as vr, presetConfig as vt, blockSqlVersion as w, DoctorConfig as wi, TopicTriggerTopicConfig as wn, CatalogColumnGrant as wr, listNames as wt, BlockSqlTestFile as x, integrationsForFramework as xi, TopicTriggerConfig as xn, Catalog as xr, PresetIntegration as xt, BlockSqlFile as y, PresetScope as yi, SqlConfig as yn, AppTableVersions as yr, presetOf as yt, buildJsonSchema as z, SKILLS_AGENTS as zi, NamedPreset as zn, ExtrasTable as zr, GeneratorInput as zt };
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-BwQGUqdQ.js";
1
+ import { a as ClientAuth } from "./bind-CFsctoFJ.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 { n as whileSignedIn, t as defineController } from "./controller-BEliOBOv.js";
2
- import { r as recordEventMatches } from "./record-bindings-DkBJpC5A.js";
2
+ import { r as recordEventMatches } from "./record-bindings-Z51mGfhB.js";
3
3
  import { f as findBinding, p as loadBindings } from "./record-type-DRbnlj5q.js";
4
4
  //#region src/records/controller.ts
5
5
  /**
@@ -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-CRwHsxZO.js";
2
+ import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-DCAiOrNX.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. */