better-supabase 0.18.3 → 0.19.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 (439) hide show
  1. package/dist/{ai-cache-Cu8j6aQQ.js → ai-cache-BuNbWEFI.js} +2 -2
  2. package/dist/{ai-files-CgFCRsnU.js → ai-files-DeMWQfzs.js} +2 -2
  3. package/dist/{ai-schedules-DzLh6BYI.d.ts → ai-schedules-B20M2SIi.d.ts} +1 -1
  4. package/dist/ai-sdk/agents/index.d.ts +2 -2
  5. package/dist/ai-sdk/batches/index.js +1 -1
  6. package/dist/ai-sdk/cache/index.js +1 -1
  7. package/dist/ai-sdk/files/index.js +2 -2
  8. package/dist/ai-sdk/mcp/index.js +1 -1
  9. package/dist/{api-B6zteBya.d.ts → api-BiOgjXn5.d.ts} +1 -1
  10. package/dist/{app-tables-atP-tZKZ.d.ts → app-tables-Q29TR4W9.d.ts} +1 -1
  11. package/dist/astro/index.d.ts +3 -3
  12. package/dist/{attachments-M-Dy79Ry.js → attachments-BTIwCuwm.js} +4 -4
  13. package/dist/{authorization-IiE__z2m.d.ts → authorization-08F77H2w.d.ts} +3 -0
  14. package/dist/{automations-B5P6vTvk.js → automations-EzXteupo.js} +2 -1
  15. package/dist/{automations-BYsz43AG.js → automations-jIIaT9EJ.js} +3 -3
  16. package/dist/better-result/index.d.ts +2 -2
  17. package/dist/{bind-pu5TLrla.d.ts → bind-wkfp7hgx.d.ts} +4 -4
  18. package/dist/{block-authors-BDV3y1SP.js → block-authors-D9hyCizs.js} +1 -1
  19. package/dist/{block-env-CA65ulTD.d.ts → block-env-D-zK3_Ta.d.ts} +4 -4
  20. package/dist/{block-helpers-CtBdjgO4.js → block-helpers-DnCtsKtv.js} +2 -83
  21. package/dist/{block-hooks-BfxX3682.js → block-hooks-DbIpkq7a.js} +1 -1
  22. package/dist/{block-subjects-BhDKK_j7.js → block-subjects-BRJO0IqO.js} +1 -1
  23. package/dist/block-transport-PNea4lfQ.js +84 -0
  24. package/dist/blocks/access-requests/index.d.ts +1 -1
  25. package/dist/blocks/access-requests/index.js +3 -2
  26. package/dist/blocks/activities/index.d.ts +1 -1
  27. package/dist/blocks/activities/index.js +3 -2
  28. package/dist/blocks/agents/index.d.ts +1 -1
  29. package/dist/blocks/agents/index.js +3 -2
  30. package/dist/blocks/ai-cache/index.d.ts +1 -1
  31. package/dist/blocks/ai-cache/index.js +2 -2
  32. package/dist/blocks/ai-chat/index.d.ts +4 -4
  33. package/dist/blocks/ai-chat/index.js +3 -2
  34. package/dist/blocks/ai-files/index.d.ts +1 -1
  35. package/dist/blocks/ai-files/index.js +2 -2
  36. package/dist/blocks/ai-keys/index.d.ts +1 -1
  37. package/dist/blocks/ai-keys/index.js +3 -2
  38. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  39. package/dist/blocks/ai-schedules/index.js +3 -2
  40. package/dist/blocks/announcements/index.d.ts +4 -4
  41. package/dist/blocks/announcements/index.js +3 -2
  42. package/dist/blocks/api-keys/index.d.ts +2 -2
  43. package/dist/blocks/api-keys/index.js +3 -2
  44. package/dist/blocks/approvals/index.d.ts +1 -1
  45. package/dist/blocks/approvals/index.js +4 -3
  46. package/dist/blocks/assets/index.d.ts +1 -1
  47. package/dist/blocks/assets/index.js +3 -2
  48. package/dist/blocks/assignment/index.d.ts +1 -1
  49. package/dist/blocks/assignment/index.js +4 -3
  50. package/dist/blocks/attachments/index.d.ts +2 -2
  51. package/dist/blocks/attachments/index.js +3 -2
  52. package/dist/blocks/audit/index.d.ts +5 -5
  53. package/dist/blocks/audit/index.js +5 -4
  54. package/dist/blocks/automations/index.d.ts +3 -3
  55. package/dist/blocks/automations/index.js +4 -4
  56. package/dist/blocks/billable-time/index.d.ts +1 -1
  57. package/dist/blocks/billable-time/index.js +4 -3
  58. package/dist/blocks/billing/index.d.ts +3 -3
  59. package/dist/blocks/billing/index.js +4 -3
  60. package/dist/blocks/bookings/index.d.ts +2 -2
  61. package/dist/blocks/bookings/index.js +3 -3
  62. package/dist/blocks/bulk/index.d.ts +1 -1
  63. package/dist/blocks/bulk/index.js +2 -2
  64. package/dist/blocks/calendar/index.d.ts +2 -2
  65. package/dist/blocks/calendar/index.js +2 -2
  66. package/dist/blocks/catalog/index.d.ts +1 -1
  67. package/dist/blocks/catalog/index.js +4 -3
  68. package/dist/blocks/channels/index.d.ts +1 -1
  69. package/dist/blocks/channels/index.js +3 -2
  70. package/dist/blocks/collections/index.d.ts +1 -1
  71. package/dist/blocks/collections/index.js +3 -2
  72. package/dist/blocks/comments/index.d.ts +5 -5
  73. package/dist/blocks/comments/index.js +6 -5
  74. package/dist/blocks/compliance/index.d.ts +1 -1
  75. package/dist/blocks/compliance/index.js +3 -2
  76. package/dist/blocks/connectors/index.d.ts +1 -1
  77. package/dist/blocks/connectors/index.js +3 -2
  78. package/dist/blocks/contacts/index.d.ts +1 -1
  79. package/dist/blocks/contacts/index.js +3 -2
  80. package/dist/blocks/content/index.d.ts +1 -1
  81. package/dist/blocks/content/index.js +3 -2
  82. package/dist/blocks/contracts/index.d.ts +1 -1
  83. package/dist/blocks/contracts/index.js +5 -4
  84. package/dist/blocks/courses/index.d.ts +1 -1
  85. package/dist/blocks/courses/index.js +3 -2
  86. package/dist/blocks/created-by/index.d.ts +1 -1
  87. package/dist/blocks/custom-fields/index.d.ts +1 -1
  88. package/dist/blocks/custom-fields/index.js +2 -2
  89. package/dist/blocks/data-lifecycle/index.d.ts +1 -1
  90. package/dist/blocks/data-lifecycle/index.js +3 -2
  91. package/dist/blocks/deals/index.d.ts +1 -1
  92. package/dist/blocks/deals/index.js +8 -7
  93. package/dist/blocks/dispatch/index.d.ts +1 -1
  94. package/dist/blocks/dispatch/index.js +4 -3
  95. package/dist/blocks/documents/index.d.ts +1 -1
  96. package/dist/blocks/documents/index.js +3 -2
  97. package/dist/blocks/domains/index.d.ts +1 -1
  98. package/dist/blocks/domains/index.js +4 -3
  99. package/dist/blocks/donations/index.d.ts +1 -1
  100. package/dist/blocks/donations/index.js +4 -3
  101. package/dist/blocks/drive/index.d.ts +1 -1
  102. package/dist/blocks/drive/index.js +4 -3
  103. package/dist/blocks/employees/index.d.ts +2 -2
  104. package/dist/blocks/employees/index.js +5 -4
  105. package/dist/blocks/enrichment/index.d.ts +1 -1
  106. package/dist/blocks/enrichment/index.js +3 -2
  107. package/dist/blocks/enrollments/index.d.ts +1 -1
  108. package/dist/blocks/enrollments/index.js +3 -2
  109. package/dist/blocks/entitlements/index.d.ts +3 -3
  110. package/dist/blocks/entitlements/index.js +2 -2
  111. package/dist/blocks/expenses/index.d.ts +1 -1
  112. package/dist/blocks/expenses/index.js +4 -3
  113. package/dist/blocks/field-history/index.d.ts +1 -1
  114. package/dist/blocks/field-history/index.js +3 -2
  115. package/dist/blocks/flags/index.d.ts +1 -1
  116. package/dist/blocks/flags/index.js +4 -3
  117. package/dist/blocks/forecasts/index.d.ts +1 -1
  118. package/dist/blocks/forecasts/index.js +6 -5
  119. package/dist/blocks/forms/index.d.ts +2 -2
  120. package/dist/blocks/forms/index.js +3 -2
  121. package/dist/blocks/goals/index.d.ts +1 -1
  122. package/dist/blocks/goals/index.js +4 -3
  123. package/dist/blocks/guests/index.d.ts +1 -1
  124. package/dist/blocks/guests/index.js +3 -2
  125. package/dist/blocks/hiring/index.d.ts +1 -1
  126. package/dist/blocks/hiring/index.js +4 -3
  127. package/dist/blocks/identities/index.d.ts +1 -1
  128. package/dist/blocks/identities/index.js +3 -2
  129. package/dist/blocks/imports/index.d.ts +1 -1
  130. package/dist/blocks/imports/index.js +2 -2
  131. package/dist/blocks/inbox/index.d.ts +5 -5
  132. package/dist/blocks/inbox/index.js +4 -3
  133. package/dist/blocks/incidents/index.d.ts +1 -1
  134. package/dist/blocks/incidents/index.js +3 -2
  135. package/dist/blocks/index.d.ts +2 -2
  136. package/dist/blocks/index.js +4 -4
  137. package/dist/blocks/inventory/index.d.ts +1 -1
  138. package/dist/blocks/inventory/index.js +3 -2
  139. package/dist/blocks/invoices/index.d.ts +2 -2
  140. package/dist/blocks/invoices/index.js +7 -6
  141. package/dist/blocks/knowledge/index.d.ts +1 -1
  142. package/dist/blocks/knowledge/index.js +2 -2
  143. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  144. package/dist/blocks/lead-scoring/index.js +5 -4
  145. package/dist/blocks/leases/index.d.ts +1 -1
  146. package/dist/blocks/leases/index.js +4 -3
  147. package/dist/blocks/leave/index.d.ts +1 -1
  148. package/dist/blocks/leave/index.js +3 -2
  149. package/dist/blocks/ledger/index.d.ts +1 -1
  150. package/dist/blocks/ledger/index.js +3 -2
  151. package/dist/blocks/mail-sync/index.d.ts +1 -1
  152. package/dist/blocks/mail-sync/index.js +3 -2
  153. package/dist/blocks/memberships/index.d.ts +1 -1
  154. package/dist/blocks/memory/index.d.ts +1 -1
  155. package/dist/blocks/memory/index.js +4 -3
  156. package/dist/blocks/messaging/index.d.ts +5 -5
  157. package/dist/blocks/messaging/index.js +5 -4
  158. package/dist/blocks/metrics/index.d.ts +1 -1
  159. package/dist/blocks/metrics/index.js +3 -2
  160. package/dist/blocks/mfa/index.d.ts +2 -2
  161. package/dist/blocks/moderation/index.d.ts +1 -1
  162. package/dist/blocks/moderation/index.js +3 -2
  163. package/dist/blocks/notifications/index.d.ts +4 -4
  164. package/dist/blocks/notifications/index.js +4 -3
  165. package/dist/blocks/numbering/index.d.ts +1 -1
  166. package/dist/blocks/numbering/index.js +2 -2
  167. package/dist/blocks/oauth-server/index.d.ts +1 -1
  168. package/dist/blocks/oauth-server/index.js +3 -2
  169. package/dist/blocks/onboarding/index.d.ts +2 -2
  170. package/dist/blocks/onboarding/index.js +3 -2
  171. package/dist/blocks/orders/index.d.ts +2 -2
  172. package/dist/blocks/orders/index.js +5 -4
  173. package/dist/blocks/organizations/index.d.ts +3 -3
  174. package/dist/blocks/organizations/index.js +3 -2
  175. package/dist/blocks/outbox/index.d.ts +1 -1
  176. package/dist/blocks/outbox/index.js +3 -2
  177. package/dist/blocks/passes/index.d.ts +1 -1
  178. package/dist/blocks/passes/index.js +5 -4
  179. package/dist/blocks/permissions/index.d.ts +3 -3
  180. package/dist/blocks/permissions/index.js +3 -2
  181. package/dist/blocks/pipelines/index.d.ts +1 -1
  182. package/dist/blocks/pipelines/index.js +4 -3
  183. package/dist/blocks/posts/index.d.ts +1 -1
  184. package/dist/blocks/posts/index.js +3 -2
  185. package/dist/blocks/profiles/index.d.ts +1 -1
  186. package/dist/blocks/profiles/index.js +3 -2
  187. package/dist/blocks/promotions/index.d.ts +1 -1
  188. package/dist/blocks/promotions/index.js +4 -3
  189. package/dist/blocks/push/index.d.ts +2 -2
  190. package/dist/blocks/push/index.js +3 -2
  191. package/dist/blocks/queue/index.d.ts +1 -1
  192. package/dist/blocks/queue/index.js +4 -3
  193. package/dist/blocks/quotes/index.d.ts +2 -2
  194. package/dist/blocks/quotes/index.js +7 -6
  195. package/dist/blocks/rank/index.d.ts +1 -1
  196. package/dist/blocks/rank/index.js +2 -2
  197. package/dist/blocks/reactions/index.d.ts +4 -4
  198. package/dist/blocks/reactions/index.js +4 -3
  199. package/dist/blocks/relations/index.d.ts +1 -1
  200. package/dist/blocks/relations/index.js +4 -4
  201. package/dist/blocks/reminders/index.d.ts +1 -1
  202. package/dist/blocks/reminders/index.js +4 -4
  203. package/dist/blocks/reviews/index.d.ts +1 -1
  204. package/dist/blocks/reviews/index.js +3 -2
  205. package/dist/blocks/saved-views/index.d.ts +3 -3
  206. package/dist/blocks/saved-views/index.js +2 -2
  207. package/dist/blocks/scores/index.d.ts +1 -1
  208. package/dist/blocks/scores/index.js +3 -3
  209. package/dist/blocks/search/index.d.ts +3 -3
  210. package/dist/blocks/search/index.js +3 -2
  211. package/dist/blocks/security-events/index.d.ts +1 -1
  212. package/dist/blocks/security-events/index.js +3 -2
  213. package/dist/blocks/segments/index.d.ts +1 -1
  214. package/dist/blocks/segments/index.js +4 -3
  215. package/dist/blocks/sequences/index.d.ts +1 -1
  216. package/dist/blocks/sequences/index.js +3 -2
  217. package/dist/blocks/service-accounts/index.d.ts +1 -1
  218. package/dist/blocks/service-accounts/index.js +3 -2
  219. package/dist/blocks/sessions/index.d.ts +2 -2
  220. package/dist/blocks/sessions/index.js +1 -1
  221. package/dist/blocks/settings/index.d.ts +2 -2
  222. package/dist/blocks/settings/index.js +3 -2
  223. package/dist/blocks/share-links/index.d.ts +1 -1
  224. package/dist/blocks/share-links/index.js +3 -3
  225. package/dist/blocks/shipments/index.d.ts +1 -1
  226. package/dist/blocks/shipments/index.js +5 -4
  227. package/dist/blocks/signatures/index.d.ts +1 -1
  228. package/dist/blocks/signatures/index.js +3 -2
  229. package/dist/blocks/signing-keys/index.d.ts +1 -1
  230. package/dist/blocks/signing-keys/index.js +2 -2
  231. package/dist/blocks/sla/index.d.ts +1 -1
  232. package/dist/blocks/sla/index.js +5 -4
  233. package/dist/blocks/sso/index.d.ts +1 -1
  234. package/dist/blocks/sso/index.js +3 -2
  235. package/dist/blocks/state-machine/index.d.ts +1 -1
  236. package/dist/blocks/state-machine/index.js +3 -3
  237. package/dist/blocks/subjects/index.d.ts +2 -2
  238. package/dist/blocks/subjects/index.js +4 -3
  239. package/dist/blocks/tags/index.d.ts +2 -2
  240. package/dist/blocks/tags/index.js +2 -2
  241. package/dist/blocks/tasks/index.d.ts +2 -2
  242. package/dist/blocks/tasks/index.js +3 -2
  243. package/dist/blocks/teams/index.d.ts +1 -1
  244. package/dist/blocks/teams/index.js +2 -2
  245. package/dist/blocks/templates/index.d.ts +1 -1
  246. package/dist/blocks/templates/index.js +3 -2
  247. package/dist/blocks/time-tracking/index.d.ts +1 -1
  248. package/dist/blocks/time-tracking/index.js +5 -4
  249. package/dist/blocks/timeline/index.d.ts +3 -3
  250. package/dist/blocks/timeline/index.js +4 -3
  251. package/dist/blocks/trash/index.d.ts +1 -1
  252. package/dist/blocks/trash/index.js +3 -2
  253. package/dist/blocks/undo/index.d.ts +2 -2
  254. package/dist/blocks/undo/index.js +2 -2
  255. package/dist/blocks/updated-at/index.d.ts +1 -1
  256. package/dist/blocks/usage/index.d.ts +2 -2
  257. package/dist/blocks/usage/index.js +3 -2
  258. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  259. package/dist/blocks/vercel-marketplace/index.js +3 -2
  260. package/dist/blocks/versions/index.d.ts +1 -1
  261. package/dist/blocks/versions/index.js +4 -3
  262. package/dist/blocks/waitlist/index.d.ts +1 -1
  263. package/dist/blocks/waitlist/index.js +3 -2
  264. package/dist/blocks/webhooks/index.d.ts +2 -2
  265. package/dist/blocks/webhooks/index.js +5 -4
  266. package/dist/blocks/workflow-editor/index.d.ts +4 -4
  267. package/dist/blocks/workflow-editor/index.js +3 -2
  268. package/dist/blocks/workflows/index.d.ts +4 -4
  269. package/dist/blocks/workflows/index.js +3 -2
  270. package/dist/{build-QitPVzzO.js → build-D9lWi5bk.js} +1 -1
  271. package/dist/chat-sdk/index.js +2 -1
  272. package/dist/cli/add-Bcw12jts.js +1 -0
  273. package/dist/cli/{add-Ccca1h3C.js → add-D5HxanFm.js} +2 -2
  274. package/dist/cli/{add-Elh2S4Z8.js → add-Lr7uTZXQ.js} +11 -11
  275. package/dist/cli/{backfill-kq6M-ksU.js → backfill-Cl1zEel7.js} +3 -3
  276. package/dist/cli/bin.js +1 -1
  277. package/dist/cli/{blocks-CSOK4qqe.js → blocks-CsPua74J.js} +1 -1
  278. package/dist/cli/{blocks-vl6ydiEz.js → blocks-f0obMCxm.js} +1 -1
  279. package/dist/cli/{cache-DPRc-BzP.js → cache-tvTW5J9K.js} +1 -1
  280. package/dist/cli/{codemod-CoaS9hJu.js → codemod-CVzRWS3j.js} +1 -1
  281. package/dist/cli/{config-BJSqMi04.js → config-BH0goim0.js} +3 -2
  282. package/dist/cli/{config-BlfVh0IP.js → config-CTRzkX0H.js} +1 -1
  283. package/dist/cli/{content-mapper-DM2jgKpn.js → content-mapper-C0LJDmVL.js} +2 -2
  284. package/dist/cli/{db-DYU5hUcd.js → db-DCeyHS1y.js} +2 -2
  285. package/dist/cli/{doctor-CU08NDWh.js → doctor-q701Qif_.js} +16 -16
  286. package/dist/cli/{gen-DNwJl35g.js → gen--vu_c2RF.js} +14 -14
  287. package/dist/cli/index.d.ts +1 -1
  288. package/dist/cli/index.js +7 -7
  289. package/dist/cli/{init-B_CsBYPR.js → init-DGz5Hk9X.js} +6 -6
  290. package/dist/cli/{live-TQN9GSV4.js → live-sBPXy0VE.js} +2 -2
  291. package/dist/cli/{mcp-BfC4giv7.js → mcp-DY_YK_WV.js} +2 -2
  292. package/dist/cli/{metadata-DlISbZDp.js → metadata-CoPGFRMb.js} +3 -3
  293. package/dist/cli/{migration-safety-C8mh2xlK.js → migration-safety-Cn7OLHJm.js} +2 -2
  294. package/dist/cli/{migrations-D-0Sd9tO.js → migrations-CUIEmdnS.js} +1 -1
  295. package/dist/cli/{module-migration-Cl8hBBqw.js → module-migration-bWK0xO2_.js} +2 -2
  296. package/dist/cli/powersync-CG3Bp6FD.js +1 -0
  297. package/dist/cli/{powersync-CBCanSnb.js → powersync-DAM5JAmz.js} +2 -2
  298. package/dist/cli/{print-DImaK12W.js → print-Dnbk8J2y.js} +2 -2
  299. package/dist/cli/{remove-DeOze3-k.js → remove-DAVVPbWw.js} +5 -5
  300. package/dist/cli/{render-GFy-2cii.js → render-PJdiRcqF.js} +28 -5
  301. package/dist/cli/{run-D4XWCMl2.js → run-6F72J0AQ.js} +25 -25
  302. package/dist/cli/{run-DNpUCD8d.js → run-D7-FuY6e.js} +8 -8
  303. package/dist/cli/seed-CXJvTU5D.js +1 -0
  304. package/dist/cli/{seed-D9mt8bnW.js → seed-CdSxunFT.js} +2 -2
  305. package/dist/cli/{shared-DM_FKwqk.js → shared-9O58FYPm.js} +1 -1
  306. package/dist/cli/{snapshot-BnZCeU7E.js → snapshot-rTRe56PH.js} +3 -3
  307. package/dist/cli/{source-DZonA0x5.js → source-EHhEoKBD.js} +1 -1
  308. package/dist/cli/{source-args-DlckPVje.js → source-args-z-jkabmO.js} +1 -1
  309. package/dist/cli/{spec-DCO8EEnf.js → spec-CR4Y9kn8.js} +2 -2
  310. package/dist/cli/{spec-U6hCGGu_.js → spec-DqSbbTzD.js} +1 -1
  311. package/dist/cli/{sql-layout-VnkvENWw.js → sql-layout-BijeFLWv.js} +2 -2
  312. package/dist/cli/{sync-D-YWMzZI.js → sync-BAmWXRDR.js} +3 -3
  313. package/dist/cli/{upgrade-BGcDzVSu.js → upgrade-BKN6eSx-.js} +4 -4
  314. package/dist/cli/{upgrade-DKZ3QOEJ.js → upgrade-oaUd22Il.js} +2 -2
  315. package/dist/cli/{version-BatoE1Gj.js → version-BkEOr4WS.js} +1 -1
  316. package/dist/client/index.d.ts +5 -5
  317. package/dist/client/native/index.d.ts +4 -4
  318. package/dist/{codecs-TylXqU_I.js → codecs-BfmQSbM6.js} +2 -2
  319. package/dist/{composite-C-8A8qzi.d.ts → composite-COQJBDmG.d.ts} +3 -3
  320. package/dist/config/index.d.ts +2 -2
  321. package/dist/config/index.js +1 -1
  322. package/dist/{config-mbVyJwSc.js → config-D74JT0qL.js} +2 -1
  323. package/dist/{context-Cj-9gE6l.d.ts → context-BI1PPPkw.d.ts} +6 -3
  324. package/dist/{controller-BR7CZ1R9.d.ts → controller-DhT57SGq.d.ts} +1 -1
  325. package/dist/{conversion-BgtOfTaS.d.ts → conversion-DAV0hOJQ.d.ts} +1 -1
  326. package/dist/create/index.d.ts +2 -2
  327. package/dist/create/index.js +2 -2
  328. package/dist/{create-blocks-Bu4H5TXw.js → create-blocks-B-9HVf7m.js} +6 -4
  329. package/dist/credentials/index.js +2 -1
  330. package/dist/{deal-forecast-Bv52QMyX.js → deal-forecast-DikouYGj.js} +2 -2
  331. package/dist/{define-Cgru0_kF.d.ts → define-B_pxEy7d.d.ts} +2 -0
  332. package/dist/{define-DlUeKHce.js → define-Dt9DRqV_.js} +80 -4
  333. package/dist/{define-block-CJWiDWa5.d.ts → define-block-D4hZSb2G.d.ts} +2 -1
  334. package/dist/edge/index.d.ts +5 -5
  335. package/dist/{entitlements-DHcNt1aF.d.ts → entitlements-BhNzAcJR.d.ts} +1 -1
  336. package/dist/{entitlements-NZAE_vLj.js → entitlements-DBir2qwB.js} +2 -2
  337. package/dist/{executor-BWFfz0ik.d.ts → executor-D1UUQEGL.d.ts} +2 -2
  338. package/dist/expo/index.d.ts +2 -2
  339. package/dist/{field-errors-DkAemDoc.d.ts → field-errors-D7mzrKjR.d.ts} +6 -6
  340. package/dist/{fields-B0zaJAO3.js → fields--5a88KJe.js} +3 -2
  341. package/dist/{flags-BOdA_ETQ.js → flags-ClOQY-p5.js} +1 -1
  342. package/dist/flags-sdk/index.js +2 -2
  343. package/dist/{framework-x9Y4uB1q.d.ts → framework-BghlRbea.d.ts} +3 -3
  344. package/dist/hono/index.d.ts +4 -4
  345. package/dist/{index-DTbJAsrT.d.ts → index-B8iW3y2w.d.ts} +9 -9
  346. package/dist/{index-C6ruLtyx.d.ts → index-BJBwUM9l.d.ts} +3 -3
  347. package/dist/{index-C0t-vNIt.d.ts → index-BSXQlJt2.d.ts} +2 -2
  348. package/dist/{index-DZylLz7h.d.ts → index-Bc-EhTb-.d.ts} +3 -3
  349. package/dist/{index-DVYEoVMK.d.ts → index-DZ5VbYvy.d.ts} +1 -1
  350. package/dist/{index-DmbCyl6Z.d.ts → index-DsB7dy9R.d.ts} +3 -3
  351. package/dist/index.d.ts +1 -1
  352. package/dist/index.js +1 -1
  353. package/dist/instance-property-hRh88y_s.js +7 -0
  354. package/dist/{knowledge-BGbtxMP9.js → knowledge-CV6OSirC.js} +2 -2
  355. package/dist/list/index.d.ts +1 -1
  356. package/dist/{list-query-DxjuIHEL.d.ts → list-query-BIZBVEoF.d.ts} +1 -1
  357. package/dist/mapper/bin.js +6 -6
  358. package/dist/mcp/index.d.ts +4 -4
  359. package/dist/mcp/sdk/index.d.ts +2 -2
  360. package/dist/{money-codec-BzddguAQ.js → money-codec-uV5WbT60.js} +1 -1
  361. package/dist/next/index.d.ts +14 -14
  362. package/dist/next/index.js +2 -2
  363. package/dist/{operations-CAjMgNr9.d.ts → operations-DbNAgo7E.d.ts} +1 -1
  364. package/dist/{options-lsxJYfYx.js → options-BOqfYsM1.js} +2 -1
  365. package/dist/{options-Bc4xz5jQ.js → options-DZen3UiC.js} +2 -1
  366. package/dist/orpc/index.d.ts +4 -4
  367. package/dist/orpc/index.js +1 -1
  368. package/dist/otel/index.js +4 -4
  369. package/dist/{ports-g0H1Kzwr.d.ts → ports-Dwe0JqBI.d.ts} +1 -1
  370. package/dist/powersync/index.d.ts +3 -3
  371. package/dist/preset/index.d.ts +3 -3
  372. package/dist/{push-token-Cl2EihRc.d.ts → push-token-C0dwbMZF.d.ts} +1 -1
  373. package/dist/query/index.d.ts +1 -1
  374. package/dist/{rate-limit-Dt9vAY4E.js → rate-limit-BPuUWz4U.js} +3 -2
  375. package/dist/react/index.d.ts +5 -5
  376. package/dist/react/index.js +1 -1
  377. package/dist/react/native/index.d.ts +1 -1
  378. package/dist/react/server.d.ts +6 -6
  379. package/dist/react/server.js +1 -1
  380. package/dist/{react-zBTxLsV6.js → react-GgLZ66FU.js} +2 -2
  381. package/dist/react-router/index.d.ts +3 -3
  382. package/dist/realtime/index.d.ts +3 -3
  383. package/dist/realtime/index.js +2 -2
  384. package/dist/{record-form-zMwz0Ayt.d.ts → record-form-eiqGbx9J.d.ts} +1 -1
  385. package/dist/records/index.d.ts +7 -7
  386. package/dist/{resource-execute-CKBtGL8-.d.ts → resource-execute-CWfzJmUd.d.ts} +1 -1
  387. package/dist/{resource-types-8Q5Klkpa.d.ts → resource-types-BdGAUbKw.d.ts} +1 -1
  388. package/dist/{resources-DxpqenZA.d.ts → resources-EeQWFMR8.d.ts} +1 -1
  389. package/dist/{rows-Bm6sskji.js → rows-Bh9QemqN.js} +1 -1
  390. package/dist/{rows-BDLZStp4.js → rows-EGAbu7MG.js} +2 -2
  391. package/dist/{sales-lines-D-sf9PIB.js → sales-lines-CP4Z_LyE.js} +6 -4
  392. package/dist/{sales-lines-Bk4mbLH1.d.ts → sales-lines-KxxStRzU.d.ts} +1 -0
  393. package/dist/{sales-shared-DXGFJP4g.js → sales-shared-BKXXA5qV.js} +1 -1
  394. package/dist/{schemas-l2aF78zQ.js → schemas-BSTNfGsQ.js} +1 -1
  395. package/dist/{scores-CRp3vvQU.js → scores-CsgM-dw7.js} +2 -2
  396. package/dist/server/index.d.ts +7 -7
  397. package/dist/server/index.js +2 -2
  398. package/dist/{server-types-gR4Q1aM0.d.ts → server-types-rmq2QzsD.d.ts} +1 -1
  399. package/dist/{session-Fcft5A39.d.ts → session-CpwxyojG.d.ts} +1 -1
  400. package/dist/{signing-keys-wGKh4vtt.js → signing-keys-DqI-gB_C.js} +2 -2
  401. package/dist/solid/index.d.ts +6 -6
  402. package/dist/solid-start/index.d.ts +3 -3
  403. package/dist/spec/index.d.ts +1 -1
  404. package/dist/spec/index.js +1 -1
  405. package/dist/sql/index.d.ts +4 -4
  406. package/dist/sql/index.js +1 -1
  407. package/dist/{sql-B8usqPPx.js → sql-B0wb7XA5.js} +107 -64
  408. package/dist/sqlite/index.d.ts +1 -1
  409. package/dist/{sso-d2S4x_f9.js → sso-Co2TbnEy.js} +2 -2
  410. package/dist/ssr/index.d.ts +1 -1
  411. package/dist/storage/index.js +1 -1
  412. package/dist/streams/index.js +2 -1
  413. package/dist/{subject-readers-B-pQ9Mmo.js → subject-readers-F1xvRY-d.js} +1 -1
  414. package/dist/subject-type-BRnK7Av3.js +8 -0
  415. package/dist/svelte/index.d.ts +6 -6
  416. package/dist/sveltekit/index.d.ts +4 -4
  417. package/dist/{tags-sM-CH9Mn.d.ts → tags-CkO2erRP.d.ts} +1 -1
  418. package/dist/tanstack-db/index.d.ts +1 -1
  419. package/dist/tanstack-start/index.d.ts +3 -3
  420. package/dist/{tenant-DyoVYFfC.d.ts → tenant-BXNF10H5.d.ts} +1 -1
  421. package/dist/testing/index.d.ts +7 -7
  422. package/dist/testing/index.js +5 -5
  423. package/dist/{timeline-CMmo0R7g.d.ts → timeline-CHtoY7NO.d.ts} +3 -3
  424. package/dist/{topic-nQYxoTaU.d.ts → topic-BNkdk7qe.d.ts} +2 -2
  425. package/dist/{undo-BjCChCmH.js → undo-B3FQvuAd.js} +2 -2
  426. package/dist/{verify-DEqY__0N.d.ts → verify-CJxqZQdd.d.ts} +1 -1
  427. package/dist/vue/index.d.ts +6 -6
  428. package/dist/{watch-topic-UGSEWAqR.d.ts → watch-topic-wl74gws-.d.ts} +1 -1
  429. package/dist/workflow-sdk/world/index.js +1 -1
  430. package/dist/yjs/index.d.ts +1 -1
  431. package/dist/yjs/index.js +1 -1
  432. package/package.json +1 -1
  433. package/schemas/config-v1.json +22 -1
  434. package/dist/cli/add-BKybJ2e1.js +0 -1
  435. package/dist/cli/powersync-BEWwRqNy.js +0 -1
  436. package/dist/cli/seed-EPO6AvLG.js +0 -1
  437. package/dist/db-blocks-DJGbjIPz.js +0 -62
  438. package/dist/{sign-in-BLkRU3lc.js → sign-in-BTaRWS-L.js} +1 -1
  439. package/dist/{topic-J9I3yu6f.js → topic-DXbA-jwr.js} +1 -1
@@ -1,11 +1,11 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
3
3
  import { t as display } from "./io-DH1kcmmP.js";
4
- import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-BJSqMi04.js";
4
+ import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-BH0goim0.js";
5
5
  import { m as supabaseDir } from "./supabase-toml-CncmQbO0.js";
6
6
  import { t as connect } from "./db-CQCLx7cx.js";
7
7
  import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, s as hasConflicts, u as planResult } from "./files-CX71yBm8.js";
8
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-DlckPVje.js";
8
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-z-jkabmO.js";
9
9
  import { existsSync } from "node:fs";
10
10
  import { resolve } from "node:path";
11
11
  import { readFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { a as toCatalog } from "./source-DZonA0x5.js";
1
+ import { a as toCatalog } from "./source-EHhEoKBD.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,8 +1,8 @@
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-DPRc-BzP.js";
2
+ import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-tvTW5J9K.js";
3
3
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
4
- import { n as managementSource, r as pgSource } from "./source-DZonA0x5.js";
5
- import { n as databaseUrl, u as accessToken } from "./config-BJSqMi04.js";
4
+ import { n as managementSource, r as pgSource } from "./source-EHhEoKBD.js";
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";
8
8
  import { existsSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-BatoE1Gj.js";
1
+ import { t as VERSION } from "./version-BkEOr4WS.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,5 +1,5 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
- import { l as stdinDatabaseUrl } from "./config-BJSqMi04.js";
2
+ import { l as stdinDatabaseUrl } from "./config-BH0goim0.js";
3
3
  //#region src/cli/commands/source-args.ts
4
4
  /**
5
5
  * The connection string from stdin, for commands that connect but read no
@@ -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-BatoE1Gj.js";
3
+ import { t as VERSION } from "./version-BkEOr4WS.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-DPRc-BzP.js";
6
+ import { c as writeAtomic, t as CACHE_DIR } from "./cache-tvTW5J9K.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-DCO8EEnf.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-CR4Y9kn8.js";
@@ -1,5 +1,5 @@
1
- import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-BnZCeU7E.js";
2
- import { a as toCatalog } from "./source-DZonA0x5.js";
1
+ import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-rTRe56PH.js";
2
+ import { a as toCatalog } from "./source-EHhEoKBD.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-D-0Sd9tO.js";
3
+ import { a as writeExtensionsMigration, c as layoutFor, t as DATA_NEXT } from "./migrations-CUIEmdnS.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-VnkvENWw.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-Cl8hBBqw.js";
6
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BijeFLWv.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-bWK0xO2_.js";
8
8
  import { t as loadTopics } from "./topics-BpdnYmWb.js";
9
9
  import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
10
10
  import { dirname, join, resolve } from "node:path";
@@ -1,9 +1,9 @@
1
1
  import { t as display } from "./io-DH1kcmmP.js";
2
- import { c as layoutFor, r as migrationStamp } from "./migrations-D-0Sd9tO.js";
2
+ import { c as layoutFor, r as migrationStamp } from "./migrations-CUIEmdnS.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-VnkvENWw.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-Cl8hBBqw.js";
6
- import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-D-YWMzZI.js";
4
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BijeFLWv.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-bWK0xO2_.js";
6
+ import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-BAmWXRDR.js";
7
7
  import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-R7UChFFl.js";
8
8
  import { resolve } from "node:path";
9
9
  import { readFile } from "node:fs/promises";
@@ -1,8 +1,8 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as syncModules } from "./sync-D-YWMzZI.js";
3
+ import { t as syncModules } from "./sync-BAmWXRDR.js";
4
4
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
5
- import { t as upgrade } from "./upgrade-BGcDzVSu.js";
5
+ import { t as upgrade } from "./upgrade-BKN6eSx-.js";
6
6
  //#region src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
8
8
  check: {
@@ -1,4 +1,4 @@
1
1
  //#region src/cli/version.ts
2
- const VERSION = "0.18.3";
2
+ const VERSION = "0.19.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-UGSEWAqR.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-g0H1Kzwr.js";
4
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-pu5TLrla.js";
5
- import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-BR7CZ1R9.js";
2
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-wl74gws-.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-Dwe0JqBI.js";
4
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-wkfp7hgx.js";
5
+ import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-DhT57SGq.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-C6ruLtyx.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-BJBwUM9l.js";
8
8
  export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
@@ -1,9 +1,9 @@
1
1
  import { t as AsyncResult } from "../../result-DZeA5KS6.js";
2
2
  import { T as UploadOptions, w as UploadBody } from "../../bucket-vc-QRrva.js";
3
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-UGSEWAqR.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-g0H1Kzwr.js";
5
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-pu5TLrla.js";
6
- import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-Cl2EihRc.js";
3
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-wl74gws-.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-Dwe0JqBI.js";
5
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-wkfp7hgx.js";
6
+ import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-C0dwbMZF.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,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-CtBdjgO4.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
3
  import { s as rowFields } from "./block-fields-DE_FgpOU.js";
4
4
  import { d as money } from "./money-BZl985O-.js";
5
- import { i as moneyOf, t as amountText } from "./money-codec-BzddguAQ.js";
5
+ import { i as moneyOf, t as amountText } from "./money-codec-uV5WbT60.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 { 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-Cgru0_kF.js";
4
- import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-gR4Q1aM0.js";
3
+ import { t as BetterSupabase, v as Db } from "./define-B_pxEy7d.js";
4
+ import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-rmq2QzsD.js";
5
5
  import { t as ActiveSupport } from "./support-B4ZBVxt3.js";
6
- import { n as SessionEntryConfig } from "./session-Fcft5A39.js";
6
+ import { n as SessionEntryConfig } from "./session-CpwxyojG.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-IiE__z2m.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-Cj-9gE6l.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-BI1PPPkw.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 };
@@ -3,6 +3,6 @@ import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as I
3
3
  import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-Bp9My7XP.js";
4
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";
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-mbVyJwSc.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
7
  import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-Ca6gYbEP.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 };
@@ -360,7 +360,8 @@ function resolveConfig(input, root) {
360
360
  dir: config.sql?.dir ?? CONFIG_DEFAULTS.sql.dir,
361
361
  prefix: config.sql?.prefix ?? CONFIG_DEFAULTS.sql.prefix,
362
362
  testsDir: config.sql?.testsDir ?? CONFIG_DEFAULTS.sql.testsDir,
363
- ...config.sql?.scope === void 0 ? {} : { scope: config.sql.scope }
363
+ ...config.sql?.scope === void 0 ? {} : { scope: config.sql.scope },
364
+ ...config.sql?.tenantColumn === void 0 ? {} : { tenantColumn: config.sql.tenantColumn }
364
365
  },
365
366
  ...config.preset === void 0 ? {} : { preset: config.preset },
366
367
  ...blocks,
@@ -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-IiE__z2m.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-CJWiDWa5.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-D4hZSb2G.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";
@@ -1524,6 +1524,7 @@ interface SqlConfig {
1524
1524
  * them.
1525
1525
  */
1526
1526
  readonly ownTablePolicies?: OwnTablePolicies;
1527
+ readonly tenantColumn?: string;
1527
1528
  }
1528
1529
  /** `sql` with defaults applied. */
1529
1530
  interface ResolvedSqlConfig {
@@ -1534,6 +1535,7 @@ interface ResolvedSqlConfig {
1534
1535
  readonly testsDir: string;
1535
1536
  /** Unset means `tenant`. */
1536
1537
  readonly scope?: BlockScope;
1538
+ readonly tenantColumn?: string;
1537
1539
  }
1538
1540
  interface SeedConfig {
1539
1541
  /** Module exporting `defineSeed(...)` as `seed` or default. */
@@ -3561,6 +3563,7 @@ interface BlockSqlLayout {
3561
3563
  readonly modules?: AnyBlocksConfig;
3562
3564
  /** `sql.scope`: the scope of every block that sets none. Defaults to `tenant`. */
3563
3565
  readonly scope?: BlockScope;
3566
+ readonly blockTenantColumn?: string;
3564
3567
  /** `config.records`: the app-wide subject registry (ADR 0020). */
3565
3568
  readonly subjects?: SubjectsConfig;
3566
3569
  /**
@@ -4066,7 +4069,7 @@ interface BlockSqlContext {
4066
4069
  * `table`'s mapped columns or a key in `reserved`, the stable keys the
4067
4070
  * module's read functions return next to them.
4068
4071
  */
4069
- extraColumns(table: string, reserved?: readonly string[]): readonly ExtraColumn[];
4072
+ extraColumns(table: string, reserved?: readonly string[], name?: string): readonly ExtraColumn[];
4070
4073
  /**
4071
4074
  * PL/pgSQL that calls the app's hook function when it exists, with `[type,
4072
4075
  * expression]` arguments: `if to_regprocedure(...) is not null then execute
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-pu5TLrla.js";
1
+ import { a as ClientAuth } from "./bind-wkfp7hgx.js";
2
2
  //#region src/blocks/controller.d.ts
3
3
  /**
4
4
  * A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
@@ -1,5 +1,5 @@
1
1
  import { f as Result } from "./result-DZeA5KS6.js";
2
- import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-CJWiDWa5.js";
2
+ import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-D4hZSb2G.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. */
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Pn as PresetSpec, Wn as PresetName, ar as AppColumnAccess, ci as Preset, cr as AppColumnType, g as BlockSqlAccessProvider, ht as PresetInput, nr as APP_ON_DELETE_ACTIONS, sr as AppColumnFormat, ur as AppOnDeleteAction, yr as AppTableVersions } from "../context-Cj-9gE6l.js";
3
- import { a as DesignChange, p as DesignErrorCode, u as CreateDesign } from "../index-DVYEoVMK.js";
2
+ import { Pn as PresetSpec, Wn as PresetName, ar as AppColumnAccess, ci as Preset, cr as AppColumnType, g as BlockSqlAccessProvider, ht as PresetInput, nr as APP_ON_DELETE_ACTIONS, sr as AppColumnFormat, ur as AppOnDeleteAction, yr as AppTableVersions } from "../context-BI1PPPkw.js";
3
+ import { a as DesignChange, p as DesignErrorCode, u as CreateDesign } from "../index-DZ5VbYvy.js";
4
4
  import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-wtecfrNf.js";
5
5
  import { t as PresetMigrationFile } from "../types-DGHfTW8_.js";
6
6
  //#region src/create/design-computed.d.ts
@@ -1,8 +1,8 @@
1
1
  import { a as presetOf, d as resolvePreset } from "../config-CD2OGfCG.js";
2
2
  import { C as APP_ON_DELETE_ACTIONS, E as PRESET_CATALOG, a as appIdentifierError, m as isAppDefault, o as appNameLengthError, p as appDefaultError, s as appReservedColumns } from "../app-tables-DyswUg6J.js";
3
- import { c as resolveConfig } from "../config-mbVyJwSc.js";
3
+ import { c as resolveConfig } from "../config-D74JT0qL.js";
4
4
  import { _ as jsonPointer, a as DesignParseError, h as encodeDesign, n as diffDesigns, o as DesignTooLongError, p as designOf, u as designConfig, v as parseDesign } from "../preset-B3CukUhu.js";
5
- import { R as SQL_MODULES, _ as renderBlocks, i as moduleLayout } from "../sql-B8usqPPx.js";
5
+ import { R as SQL_MODULES, _ as renderBlocks, i as moduleLayout } from "../sql-B0wb7XA5.js";
6
6
  //#region src/create/column-keys.ts
7
7
  /** The most options a select takes, and the longest option. */
8
8
  const MAX_OPTIONS = 100;
@@ -1,8 +1,8 @@
1
1
  import { n as isRecord } from "./guards-6F2bCtQR.js";
2
+ import { t as dbTransport } from "./block-transport-PNea4lfQ.js";
2
3
  import { i as entityNames, o as tenantNames, r as composeNames } from "./entity-naming-Dtyq5sKE.js";
3
4
  import { t as onBlockEvent } from "./block-event-listener-Bu6G0TFH.js";
4
- import { B as dbTransport } from "./block-helpers-CtBdjgO4.js";
5
- import { i as wrapTransport, r as withBlockHooks, t as defineTransportMiddleware } from "./block-hooks-BfxX3682.js";
5
+ import { i as wrapTransport, r as withBlockHooks, t as defineTransportMiddleware } from "./block-hooks-DbIpkq7a.js";
6
6
  import { i as forwardBlockEvents } from "./cloud-event-XsM53POL.js";
7
7
  //#region src/core/block-names.ts
8
8
  const TENANT_COLUMNS = ["organization_id", "active_organization_id"];
@@ -53,7 +53,9 @@ function blockNames(naming) {
53
53
  return functions[fn] ?? functions[renamed] ?? renamed;
54
54
  };
55
55
  const columns = new Map(TENANT_COLUMNS.map((column) => [tenant.rename(column), column]));
56
- const restore = (key) => columns.get(key) ?? entities.reverse(key);
56
+ const { tenantColumn } = naming;
57
+ const restore = (key) => key === tenantColumn ? "tenant_id" : columns.get(key) ?? entities.reverse(key);
58
+ const restores = names.renamed || tenantColumn !== void 0;
57
59
  return defineTransportMiddleware({
58
60
  name: "block-names",
59
61
  call: async (request, next) => {
@@ -62,7 +64,7 @@ function blockNames(naming) {
62
64
  fn: rename(request.fn),
63
65
  ...entities.renamed ? { args: renameArgs(request.args, entities) } : {}
64
66
  });
65
- return names.renamed ? renameKeys(result, restore) : result;
67
+ return restores ? renameKeys(result, restore) : result;
66
68
  }
67
69
  });
68
70
  }
@@ -1,6 +1,7 @@
1
1
  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
- import { B as dbTransport, H as rpcTransport, U as sqlTransport, o as blockCall } from "../block-helpers-CtBdjgO4.js";
3
+ import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../block-transport-PNea4lfQ.js";
4
+ import { o as blockCall } from "../block-helpers-DnCtsKtv.js";
4
5
  import { a as tenantCredentialRef, i as subjectFor, n as credentialRefInTenant, r as foreignCredentialRef } from "../provider-B6g7rBZX.js";
5
6
  import { n as event, t as defineEvents } from "../event-map-CtPFhcOp.js";
6
7
  import { n as hmacHex, r as timingSafeEqual } from "../hmac-B3CTTlfv.js";
@@ -1,5 +1,5 @@
1
- import { C as optionalText, D as recordOf, I as textOf, k as recordsOf } from "./block-helpers-CtBdjgO4.js";
2
- import { i as moneyOf, o as optionalMoneyOf } from "./money-codec-BzddguAQ.js";
1
+ import { C as optionalText, D as recordOf, I as textOf, k as recordsOf } from "./block-helpers-DnCtsKtv.js";
2
+ import { i as moneyOf, o as optionalMoneyOf } from "./money-codec-uV5WbT60.js";
3
3
  //#region src/blocks/deal-forecast.ts
4
4
  function sums(row, currency, fn) {
5
5
  const at = (key) => moneyOf(row[key], currency, `${fn} ${key}`);
@@ -882,6 +882,7 @@ interface DbBlockSource {
882
882
  */
883
883
  client(db: object, key: string, options: {
884
884
  readonly events: EventHub;
885
+ readonly temporal?: typeof Temporal;
885
886
  }): unknown;
886
887
  /** Calls a function in the API schema that the blocks are wrapped in. */
887
888
  call(db: object, fn: string, args: Readonly<Record<string, unknown>>): Promise<unknown>;
@@ -952,6 +953,7 @@ type BlocksHelper<K, T extends PropertyKey = never> = unknown extends K ? unknow
952
953
  * database error.
953
954
  */
954
955
  $api(fn: string, args: Readonly<Record<string, unknown>>): Promise<unknown>;
956
+ $apiResult(fn: string, args: Readonly<Record<string, unknown>>): AsyncResult<unknown>;
955
957
  };
956
958
  /**
957
959
  * The `Db` a definition connects in the browser: what `bsb.db` holds and what
@@ -1,6 +1,6 @@
1
1
  import { r as isPlainObject, t as cloneValue } from "./clone-CkG0-hlI.js";
2
2
  import { t as DbException } from "./db-exception-Lngc1W49.js";
3
- import { n as dbError } from "./errors-BVFgt8BZ.js";
3
+ import { c as mapDbError, n as dbError } from "./errors-BVFgt8BZ.js";
4
4
  import { n as isRecord, t as isList } from "./guards-6F2bCtQR.js";
5
5
  import { c as optionalTemporal, l as provideTemporal, s as nowInstant, u as providedTemporal } from "./temporal-DLZlWbOi.js";
6
6
  import { a as decodeValue, i as decodeScalar, n as invalidRequest, o as encodeValue, t as builderFor } from "./build-BFC8nFiL.js";
@@ -8,7 +8,8 @@ import { t as lookupOf } from "./lookup-BaP5bI27.js";
8
8
  import { i as or, n as column, r as not, t as and } from "./types-R6syp1el.js";
9
9
  import { a as ok, c as withErrorMapper, r as err, s as toDbError, t as AsyncResult } from "./result-ntFBW2p2.js";
10
10
  import { t as invalidationTargets } from "./tables-Cb-3_VWc.js";
11
- import { t as blocksPrototype } from "./db-blocks-DJGbjIPz.js";
11
+ import { n as rawError } from "./block-transport-PNea4lfQ.js";
12
+ import { t as instanceProperty } from "./instance-property-hRh88y_s.js";
12
13
  import { t as vectorLiteral } from "./search-Cn_DGluL.js";
13
14
  import { t as consoleLogger } from "./logger-glM28NVN.js";
14
15
  import { n as errorEvent, t as EventHub } from "./events-D6IZ5CE8.js";
@@ -129,6 +130,81 @@ function memoryCache() {
129
130
  };
130
131
  }
131
132
  //#endregion
133
+ //#region src/core/db-blocks.ts
134
+ /**
135
+ * A prototype for every `Db` of a definition, with one getter per block
136
+ * instance (skipping those whose property a table holds) and `$blocks` with all
137
+ * of them. Each getter builds the instance's client for the `Db` it is read on,
138
+ * once, so `$with` and every request get their own.
139
+ */
140
+ function blocksPrototype(source, parent, tables, events, temporal) {
141
+ const prototype = Object.create(parent);
142
+ const built = /* @__PURE__ */ new WeakMap();
143
+ const clientOf = (db, key) => {
144
+ let clients = built.get(db);
145
+ if (clients === void 0) {
146
+ clients = /* @__PURE__ */ new Map();
147
+ built.set(db, clients);
148
+ }
149
+ if (!clients.has(key)) clients.set(key, source.client(db, key, {
150
+ events,
151
+ ...temporal === void 0 ? {} : { temporal }
152
+ }));
153
+ return clients.get(key);
154
+ };
155
+ const views = /* @__PURE__ */ new WeakMap();
156
+ for (const key of source.instances) {
157
+ const property = instanceProperty(key);
158
+ if (tables.includes(property)) continue;
159
+ Object.defineProperty(prototype, property, {
160
+ get() {
161
+ return clientOf(this, key);
162
+ },
163
+ configurable: true,
164
+ enumerable: false
165
+ });
166
+ }
167
+ Object.defineProperty(prototype, "$blocks", {
168
+ get() {
169
+ let view = views.get(this);
170
+ if (view === void 0) {
171
+ view = Object.defineProperties({}, Object.fromEntries(source.instances.map((key) => [instanceProperty(key), {
172
+ get: () => clientOf(this, key),
173
+ enumerable: true
174
+ }])));
175
+ views.set(this, view);
176
+ }
177
+ return view;
178
+ },
179
+ configurable: true,
180
+ enumerable: false
181
+ });
182
+ Object.defineProperty(prototype, "$api", {
183
+ value(fn, args) {
184
+ return source.call(this, fn, args);
185
+ },
186
+ configurable: true,
187
+ enumerable: false,
188
+ writable: false
189
+ });
190
+ Object.defineProperty(prototype, "$apiResult", {
191
+ value(fn, args) {
192
+ return AsyncResult.from(async () => {
193
+ try {
194
+ return ok(await source.call(this, fn, args));
195
+ } catch (cause) {
196
+ const raw = rawError(cause);
197
+ return err(raw === void 0 ? toDbError(cause) : mapDbError(raw));
198
+ }
199
+ });
200
+ },
201
+ configurable: true,
202
+ enumerable: false,
203
+ writable: false
204
+ });
205
+ return prototype;
206
+ }
207
+ //#endregion
132
208
  //#region src/core/db-search.ts
133
209
  /**
134
210
  * `db.$search({ score: true })`: the ranked ids and scores from
@@ -1905,8 +1981,8 @@ var BetterSupabase = class BetterSupabase {
1905
1981
  return state ? build(state, key) : void 0;
1906
1982
  }
1907
1983
  });
1908
- const { blocks } = this.options;
1909
- this.#tables = blocks === void 0 ? tables : blocksPrototype(blocks, tables, Object.keys(this.meta.tables), this.events);
1984
+ const { blocks, temporal } = this.options;
1985
+ this.#tables = blocks === void 0 ? tables : blocksPrototype(blocks, tables, Object.keys(this.meta.tables), this.events, temporal);
1910
1986
  return this.#tables;
1911
1987
  }
1912
1988
  #repository(runner, key, table, plugins) {
@@ -13,7 +13,7 @@ import { f as AiFiles, y as UploadClaimStorage } from "./types-Dr9wZgNy.js";
13
13
  import { g as JobHandler } from "./types-Czq9Xtpa.js";
14
14
  import { t as BlockOptionsSchema } from "./options-BTmaRzx2.js";
15
15
  import { t as Author } from "./block-authors-DzXLUiIq.js";
16
- import { u as BlockInstanceSurface } from "./define-Cgru0_kF.js";
16
+ import { u as BlockInstanceSurface } from "./define-B_pxEy7d.js";
17
17
  import { A as TtlPreset, C as TransformOptions, l as ImageTransform } from "./bucket-vc-QRrva.js";
18
18
  import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec } from "./table-schema-BlF6k62Q.js";
19
19
  import { i as EventSink } from "./cloud-event-CzZTJkXv.js";
@@ -68,6 +68,7 @@ interface BlockNaming {
68
68
  readonly functions?: Readonly<Record<string, string>>;
69
69
  /** The block's own entities the config renames, such as `work_item` to `task`. */
70
70
  readonly entities?: readonly EntityRename[];
71
+ readonly tenantColumn?: string;
71
72
  }
72
73
  /**
73
74
  * Transport middleware that calls each block function by the name the SQL wrote
@@ -2,17 +2,17 @@ import { f as Result } from "../result-DZeA5KS6.js";
2
2
  import { t as StandardSchemaV1 } from "../standard-DBV730sF.js";
3
3
  import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
4
4
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
5
- import { t as BetterSupabase } from "../define-Cgru0_kF.js";
6
- import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-gR4Q1aM0.js";
5
+ import { t as BetterSupabase } from "../define-B_pxEy7d.js";
6
+ import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-rmq2QzsD.js";
7
7
  import { t as AuthSession } from "../view-DyFdMCqg.js";
8
8
  import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
9
9
  import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
10
10
  import { n as FunctionContract, t as DescribedFunction } from "../function-contract-DxFNOmsm.js";
11
11
  import { t as Validated } from "../shared-CRRfQAKG.js";
12
12
  import { n as SUPABASE_CORS_HEADERS, r as corsConfig, t as CorsOptions } from "../cors-kLq6VM06.js";
13
- import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-8Q5Klkpa.js";
14
- import { t as ResourceMap } from "../resources-DxpqenZA.js";
15
- import { t as defineAction } from "../resource-execute-CKBtGL8-.js";
13
+ import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-BdGAUbKw.js";
14
+ import { t as ResourceMap } from "../resources-EeQWFMR8.js";
15
+ import { t as defineAction } from "../resource-execute-CWfzJmUd.js";
16
16
  import { AnyEntry, Contributions } from "@supabase/middleware";
17
17
  //#region src/bridges/edge.d.ts
18
18
  /** The platform context Workers pass as the third `fetch` argument. */
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "./bind-pu5TLrla.js";
1
+ import { t as AuthSnapshot } from "./bind-wkfp7hgx.js";
2
2
  import { t as AuthSession } from "./view-DyFdMCqg.js";
3
3
  //#region src/auth/entitlements.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { t as AsyncResult } from "./result-ntFBW2p2.js";
2
- import { j as run, o as blockCall } from "./block-helpers-CtBdjgO4.js";
3
- import { r as withBlockHooks } from "./block-hooks-BfxX3682.js";
2
+ import { j as run, o as blockCall } from "./block-helpers-DnCtsKtv.js";
3
+ import { r as withBlockHooks } from "./block-hooks-DbIpkq7a.js";
4
4
  //#region src/blocks/entitlements/entitlements.ts
5
5
  /** The Stripe event sent when a customer's active entitlements change. */
6
6
  const ENTITLEMENTS_UPDATED = "entitlements.active_entitlement_summary.updated";
@@ -1,7 +1,7 @@
1
1
  import { E as RawDbError, b as DbError, f as Result } from "./result-DZeA5KS6.js";
2
2
  import { Bt as Executor, O as AnyFunctions, dt as TableMeta, k as AnyModels, m as Operation, ut as TableKey } from "./types-DFdg_4yN.js";
3
- import { pt as QuerySpec, t as BetterSupabase } from "./define-Cgru0_kF.js";
4
- import { i as ListDefinition } from "./list-query-DxjuIHEL.js";
3
+ import { pt as QuerySpec, t as BetterSupabase } from "./define-B_pxEy7d.js";
4
+ import { i as ListDefinition } from "./list-query-BIZBVEoF.js";
5
5
  import { t as Compiler } from "./compiler-D3UmE7ao.js";
6
6
  //#region src/compile/sqlite.d.ts
7
7
  /** A value SQLite binds: booleans become `0`/`1`, objects JSON text. */
@@ -1,6 +1,6 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
2
- import { t as BetterSupabase } from "../define-Cgru0_kF.js";
3
- import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-gR4Q1aM0.js";
2
+ import { t as BetterSupabase } from "../define-B_pxEy7d.js";
3
+ import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-rmq2QzsD.js";
4
4
  import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
5
5
  import { t as Validated } from "../shared-CRRfQAKG.js";
6
6
  import { AnyEntry, Contributions } from "@supabase/middleware";