better-supabase 0.18.3 → 0.20.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 (440) 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-Bp-U0cZG.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-BIw5g_4V.d.ts} +1 -1
  10. package/dist/{app-tables-atP-tZKZ.d.ts → app-tables-oYkgtcRM.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-BwQGUqdQ.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-Dh0Fe-fK.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-Ccca1h3C.js → add-CH7dC6UR.js} +2 -2
  273. package/dist/cli/{add-Elh2S4Z8.js → add-CtLjnwds.js} +11 -11
  274. package/dist/cli/add-DyCrVejx.js +1 -0
  275. package/dist/cli/{backfill-kq6M-ksU.js → backfill-DBJIMzcy.js} +3 -3
  276. package/dist/cli/bin.js +1 -1
  277. package/dist/cli/{blocks-vl6ydiEz.js → blocks-CS58-xnw.js} +1 -1
  278. package/dist/cli/{blocks-CSOK4qqe.js → blocks-i1w0EEvs.js} +1 -1
  279. package/dist/cli/{cache-DPRc-BzP.js → cache-Cn3crN0v.js} +1 -1
  280. package/dist/cli/{codemod-CoaS9hJu.js → codemod-D6wifOAH.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-Q9We297z.js} +2 -2
  284. package/dist/cli/{db-DYU5hUcd.js → db-DCeyHS1y.js} +2 -2
  285. package/dist/cli/{doctor-CU08NDWh.js → doctor-DmfdE5Ct.js} +16 -16
  286. package/dist/cli/{gen-DNwJl35g.js → gen-D68A0uN8.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-N7pkBbJn.js} +6 -6
  290. package/dist/cli/{live-TQN9GSV4.js → live-0xAAlTK_.js} +2 -2
  291. package/dist/cli/{mcp-BfC4giv7.js → mcp-CbN3ulRF.js} +2 -2
  292. package/dist/cli/{metadata-DlISbZDp.js → metadata-417ldpf4.js} +3 -3
  293. package/dist/cli/{migration-safety-C8mh2xlK.js → migration-safety-BC_UI4jC.js} +2 -2
  294. package/dist/cli/{migrations-D-0Sd9tO.js → migrations-DdBKwrvG.js} +1 -1
  295. package/dist/cli/{module-migration-Cl8hBBqw.js → module-migration-DdxPdqMC.js} +2 -2
  296. package/dist/cli/{powersync-CBCanSnb.js → powersync-CJTEz-uY.js} +2 -2
  297. package/dist/cli/powersync-CYQ4Ljcz.js +1 -0
  298. package/dist/cli/{print-DImaK12W.js → print-DyFm91R-.js} +2 -2
  299. package/dist/cli/{remove-DeOze3-k.js → remove-CPY0xsVm.js} +5 -5
  300. package/dist/cli/{render-GFy-2cii.js → render-DE3O1OFq.js} +28 -5
  301. package/dist/cli/{run-D4XWCMl2.js → run-CcrNGX9C.js} +25 -25
  302. package/dist/cli/{run-DNpUCD8d.js → run-WtIEFGvP.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-SlukBuKn.js} +1 -1
  306. package/dist/cli/{snapshot-BnZCeU7E.js → snapshot-pyIsJjUV.js} +3 -3
  307. package/dist/cli/{source-DZonA0x5.js → source-Bclt9D0Y.js} +1 -1
  308. package/dist/cli/{source-args-DlckPVje.js → source-args-z-jkabmO.js} +1 -1
  309. package/dist/cli/{spec-U6hCGGu_.js → spec-BsdLx7tZ.js} +1 -1
  310. package/dist/cli/{spec-DCO8EEnf.js → spec-D7zsEVj_.js} +2 -2
  311. package/dist/cli/{sql-layout-VnkvENWw.js → sql-layout-C6baAM5t.js} +2 -2
  312. package/dist/cli/{sync-D-YWMzZI.js → sync-Cse8VXAU.js} +3 -3
  313. package/dist/cli/{upgrade-DKZ3QOEJ.js → upgrade-28ENjIJU.js} +2 -2
  314. package/dist/cli/{upgrade-BGcDzVSu.js → upgrade-Cwc1RiAE.js} +4 -4
  315. package/dist/cli/{version-BatoE1Gj.js → version-yWIaLG04.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-DbRuu6Jb.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-CjHXhCck.d.ts} +6 -3
  324. package/dist/{controller-BR7CZ1R9.d.ts → controller-BeqcjERs.d.ts} +1 -1
  325. package/dist/{conversion-BgtOfTaS.d.ts → conversion-BqDvi8ty.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-0pWKQ6x4.js} +20 -6
  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-BqaUwrIC.d.ts} +4 -2
  332. package/dist/{define-DlUeKHce.js → define-Djgn3HQQ.js} +81 -5
  333. package/dist/{define-block-CJWiDWa5.d.ts → define-block-CRwHsxZO.d.ts} +20 -6
  334. package/dist/edge/index.d.ts +5 -5
  335. package/dist/{entitlements-NZAE_vLj.js → entitlements-DBir2qwB.js} +2 -2
  336. package/dist/{entitlements-DHcNt1aF.d.ts → entitlements-mDz7GfA_.d.ts} +1 -1
  337. package/dist/{executor-BWFfz0ik.d.ts → executor-_O-CqCPl.d.ts} +2 -2
  338. package/dist/expo/index.d.ts +2 -2
  339. package/dist/{field-errors-DkAemDoc.d.ts → field-errors-Cfvcg-C3.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-B-1Ka0GW.d.ts} +3 -3
  344. package/dist/hono/index.d.ts +4 -4
  345. package/dist/{index-DTbJAsrT.d.ts → index-BdzfjFnd.d.ts} +9 -9
  346. package/dist/{index-DmbCyl6Z.d.ts → index-BzW1T3oI.d.ts} +3 -3
  347. package/dist/{index-DZylLz7h.d.ts → index-CYzckGOz.d.ts} +3 -3
  348. package/dist/{index-DVYEoVMK.d.ts → index-CjnDGAJr.d.ts} +1 -1
  349. package/dist/{index-C6ruLtyx.d.ts → index-DfgP-9eC.d.ts} +3 -3
  350. package/dist/{index-C0t-vNIt.d.ts → index-EieRHooI.d.ts} +2 -2
  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-6vTI1VN6.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 +4 -3
  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-DO3tgLTo.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-IFGi8jvd.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-D-p70_wL.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-yMVvkPiQ.d.ts} +1 -1
  385. package/dist/records/index.d.ts +7 -7
  386. package/dist/{resource-execute-CKBtGL8-.d.ts → resource-execute-LR71zWej.d.ts} +1 -1
  387. package/dist/{resource-types-8Q5Klkpa.d.ts → resource-types-eXuFxVt7.d.ts} +1 -1
  388. package/dist/{resources-DxpqenZA.d.ts → resources-Dpz3h8Fe.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-BTBzrzOH.d.ts} +1 -1
  399. package/dist/{session-Fcft5A39.d.ts → session-BgYGk_FS.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 +2 -7
  412. package/dist/storage-api-Dg78Wqsg.js +10 -0
  413. package/dist/streams/index.js +2 -1
  414. package/dist/{subject-readers-B-pQ9Mmo.js → subject-readers-F1xvRY-d.js} +1 -1
  415. package/dist/subject-type-BRnK7Av3.js +8 -0
  416. package/dist/svelte/index.d.ts +6 -6
  417. package/dist/sveltekit/index.d.ts +4 -4
  418. package/dist/{tags-sM-CH9Mn.d.ts → tags-CXeJu332.d.ts} +1 -1
  419. package/dist/tanstack-db/index.d.ts +1 -1
  420. package/dist/tanstack-start/index.d.ts +3 -3
  421. package/dist/{tenant-DyoVYFfC.d.ts → tenant-DzymQ9sv.d.ts} +1 -1
  422. package/dist/testing/index.d.ts +7 -7
  423. package/dist/testing/index.js +5 -5
  424. package/dist/{timeline-CMmo0R7g.d.ts → timeline-BMVOKokJ.d.ts} +3 -3
  425. package/dist/{topic-nQYxoTaU.d.ts → topic-0uK4db_2.d.ts} +2 -2
  426. package/dist/{undo-BjCChCmH.js → undo-B3FQvuAd.js} +2 -2
  427. package/dist/{verify-DEqY__0N.d.ts → verify-DexkIx4t.d.ts} +1 -1
  428. package/dist/vue/index.d.ts +6 -6
  429. package/dist/{watch-topic-UGSEWAqR.d.ts → watch-topic-CG3kOX-D.d.ts} +1 -1
  430. package/dist/workflow-sdk/world/index.js +1 -1
  431. package/dist/yjs/index.d.ts +1 -1
  432. package/dist/yjs/index.js +1 -1
  433. package/package.json +1 -1
  434. package/schemas/config-v1.json +22 -1
  435. package/dist/cli/add-BKybJ2e1.js +0 -1
  436. package/dist/cli/powersync-BEWwRqNy.js +0 -1
  437. package/dist/cli/seed-EPO6AvLG.js +0 -1
  438. package/dist/db-blocks-DJGbjIPz.js +0 -62
  439. package/dist/{sign-in-BLkRU3lc.js → sign-in-BTaRWS-L.js} +1 -1
  440. package/dist/{topic-J9I3yu6f.js → topic-DXbA-jwr.js} +1 -1
@@ -13,8 +13,8 @@ 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";
17
- import { A as TtlPreset, C as TransformOptions, l as ImageTransform } from "./bucket-vc-QRrva.js";
16
+ import { u as BlockInstanceSurface } from "./define-BqaUwrIC.js";
17
+ import { A as TtlPreset, C as TransformOptions, j as StorageApi, 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";
20
20
  import { g as Workflows } from "./workflows-B0ZPAQu0.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
@@ -1260,6 +1261,12 @@ interface BlockContext extends BlockOptions {
1260
1261
  readonly credentials?: CredentialProvider;
1261
1262
  /** `betterSupabase.events`, for the block events of the blocks that emit them. */
1262
1263
  readonly events?: EventHub;
1264
+ /**
1265
+ * The caller's Storage, so the bucket policies apply: `db.$storage` for a
1266
+ * client built from a `Db` that has one. Attachments, ai-files, drive and
1267
+ * data-lifecycle read and write files through it.
1268
+ */
1269
+ readonly storage?: StorageApi;
1263
1270
  }
1264
1271
  interface CreateBlocksOptions extends Omit<BlockContext, "schema"> {
1265
1272
  /**
@@ -1289,11 +1296,14 @@ interface BlockClientSource extends DbTransportSource {
1289
1296
  readonly $context?: {
1290
1297
  readonly tenant?: string | undefined;
1291
1298
  };
1299
+ readonly $storage?: StorageApi;
1292
1300
  }
1293
1301
  /** Options for `createBlockClient` and `BlockSet.client`. */
1294
1302
  interface BlockClientOptions extends Omit<CreateBlocksOptions, "transport" | "audit" | "config"> {
1295
1303
  /** Default `dbTransport(db)`. */
1296
1304
  readonly transport?: BlockContext["transport"];
1305
+ /** Default `db.$storage`, when the `Db` has Storage. */
1306
+ readonly storage?: StorageApi;
1297
1307
  /** `blockConfig` from `blocks.generated.ts`; `BlockSet.client` passes it. */
1298
1308
  readonly config?: GeneratedBlocks;
1299
1309
  /**
@@ -1351,8 +1361,10 @@ interface BlockSet<B extends BlockMap, M extends EventMap> {
1351
1361
  /**
1352
1362
  * One block's client over a `Db`, built with the generated config: its calls
1353
1363
  * run through `dbTransport(db)` and act in the `Db`'s tenant
1354
- * (`db.$context.tenant`) unless `options.tenant` names one. The blocks it
1355
- * consumes ports from are built on demand.
1364
+ * (`db.$context.tenant`) unless `options.tenant` names one, and it reads
1365
+ * files through `db.$storage` when the `Db` has Storage unless
1366
+ * `options.storage` names another. The blocks it consumes ports from are
1367
+ * built on demand.
1356
1368
  *
1357
1369
  * ```ts
1358
1370
  * const comments = blockSet.client(ctx.db, "comments");
@@ -1404,8 +1416,10 @@ declare function createBlocks<const B extends BlockMap>(options: CreateBlocksOpt
1404
1416
  /**
1405
1417
  * One block's client over a `Db`: its calls run through `dbTransport(db)` and
1406
1418
  * act in the `Db`'s tenant (`db.$context.tenant`) unless `options.tenant` names
1407
- * one. Pass `config: blockConfig` so it calls the schema and function names
1408
- * `gen` wrote; `BlockSet.client(db, key)` does that for you.
1419
+ * one, and it uses `db.$storage` when the `Db` has Storage unless
1420
+ * `options.storage` names another. Pass `config: blockConfig` so it calls the
1421
+ * schema and function names `gen` wrote; `BlockSet.client(db, key)` does that
1422
+ * for you.
1409
1423
  *
1410
1424
  * ```ts
1411
1425
  * const comments = createBlockClient(ctx.db, commentsBlock, {
@@ -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-BqaUwrIC.js";
6
+ import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BTBzrzOH.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-eXuFxVt7.js";
14
+ import { t as ResourceMap } from "../resources-Dpz3h8Fe.js";
15
+ import { t as defineAction } from "../resource-execute-LR71zWej.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,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,4 +1,4 @@
1
- import { t as AuthSnapshot } from "./bind-pu5TLrla.js";
1
+ import { t as AuthSnapshot } from "./bind-BwQGUqdQ.js";
2
2
  import { t as AuthSession } from "./view-DyFdMCqg.js";
3
3
  //#region src/auth/entitlements.d.ts
4
4
  /**
@@ -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-BqaUwrIC.js";
4
+ import { i as ListDefinition } from "./list-query-6vTI1VN6.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-BqaUwrIC.js";
3
+ import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-BTBzrzOH.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";
@@ -1,14 +1,14 @@
1
1
  import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
2
2
  import { o as EventHub } from "./events-vcqenSYU.js";
3
3
  import { o as BlockTenant } from "./block-helpers-CRpAHrp_.js";
4
- import { pt as QuerySpec } from "./define-Cgru0_kF.js";
4
+ import { pt as QuerySpec } from "./define-BqaUwrIC.js";
5
5
  import { tt as TemplateValues } from "./bucket-vc-QRrva.js";
6
6
  import { n as DataEngine } from "./data-engine-BWoz9lED.js";
7
- import { Dn as GeneratedBlocks } from "./define-block-CJWiDWa5.js";
8
- import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-nQYxoTaU.js";
9
- import { t as ClientPorts } from "./ports-g0H1Kzwr.js";
10
- import { a as ClientAuth } from "./bind-pu5TLrla.js";
11
- import { a as LiveSource, r as LiveCountSeed } from "./index-DmbCyl6Z.js";
7
+ import { Dn as GeneratedBlocks } from "./define-block-CRwHsxZO.js";
8
+ import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-0uK4db_2.js";
9
+ import { t as ClientPorts } from "./ports-DO3tgLTo.js";
10
+ import { a as ClientAuth } from "./bind-BwQGUqdQ.js";
11
+ import { a as LiveSource, r as LiveCountSeed } from "./index-BzW1T3oI.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
14
14
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,4 +1,5 @@
1
1
  import { i as checkFilterQuery, p as toFilterFields, t as FILTER_OPERATORS } from "./filter-query-DMoKo82_.js";
2
+ import { t as SUBJECT_TYPE_PATTERN } from "./subject-type-BRnK7Av3.js";
2
3
  //#region src/blocks/automations/fields.ts
3
4
  const DEFAULT_COLUMN_TYPE = {
4
5
  text: "text",
@@ -14,7 +15,7 @@ const DATE_TYPES = /* @__PURE__ */ new Set([
14
15
  "timestamp",
15
16
  "timestamptz"
16
17
  ]);
17
- const SUBJECT_TYPE = /^[a-z][a-z0-9_]{0,62}$/;
18
+ const SUBJECT_TYPE = SUBJECT_TYPE_PATTERN;
18
19
  const FIELD_ID = /^[A-Za-z_][A-Za-z0-9_]*(?:[.][A-Za-z_][A-Za-z0-9_]*)*$/;
19
20
  function labelOf(id) {
20
21
  const words = id.replaceAll(/([a-z0-9])([A-Z])/g, "$1 $2").replaceAll(/[_.-]+/g, " ").trim().toLowerCase();
@@ -26,7 +27,7 @@ function labelOf(id) {
26
27
  * evaluates trees against the same fields.
27
28
  */
28
29
  function defineRuleFields(subjectType, fields) {
29
- if (!SUBJECT_TYPE.test(subjectType)) throw new TypeError(`defineRuleFields: "${subjectType}" is not a subject type (lowercase letters, digits and underscores)`);
30
+ if (!SUBJECT_TYPE.test(subjectType)) throw new TypeError(`defineRuleFields: "${subjectType}" is not a subject type (lowercase letters, digits, hyphens and underscores)`);
30
31
  return {
31
32
  subjectType,
32
33
  fields: Object.entries(fields).map(([id, field]) => {
@@ -1,6 +1,6 @@
1
1
  import { n as isRecord } from "./guards-6F2bCtQR.js";
2
2
  import { t as DEFAULT_CLAIMS } from "./claims-Bp9My7XP.js";
3
- import { C as optionalText, F as stringsOf, I as textOf, f as errorText, k as recordsOf, n as applyTemporal, o as blockCall } from "./block-helpers-CtBdjgO4.js";
3
+ import { C as optionalText, F as stringsOf, I as textOf, f as errorText, k as recordsOf, n as applyTemporal, o as blockCall } from "./block-helpers-DnCtsKtv.js";
4
4
  //#region src/blocks/flags/flags.ts
5
5
  const BUCKETS = 1e4;
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { f as errorText } from "../block-helpers-CtBdjgO4.js";
2
- import { a as flagContext, n as createFlagsProvider, r as evaluateFlag } from "../flags-BOdA_ETQ.js";
1
+ import { f as errorText } from "../block-helpers-DnCtsKtv.js";
2
+ import { a as flagContext, n as createFlagsProvider, r as evaluateFlag } from "../flags-ClOQY-p5.js";
3
3
  //#region src/flags-sdk/flags-sdk.ts
4
4
  function originOf(origin, key) {
5
5
  return typeof origin === "function" ? origin(key) : origin?.replaceAll("{key}", encodeURIComponent(key));
@@ -1,8 +1,8 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
2
- import { O as SessionSnapshot, c as ServerOptions } from "./server-types-gR4Q1aM0.js";
2
+ import { O as SessionSnapshot, c as ServerOptions } from "./server-types-BTBzrzOH.js";
3
3
  import { t as AuthSession } from "./view-DyFdMCqg.js";
4
- import { n as SessionEntryConfig } from "./session-Fcft5A39.js";
5
- import { n as BetterSupabaseContributions } from "./composite-C-8A8qzi.js";
4
+ import { n as SessionEntryConfig } from "./session-BgYGk_FS.js";
5
+ import { n as BetterSupabaseContributions } from "./composite-DbRuu6Jb.js";
6
6
  import { c as ResourceLoaderContext } from "./kit-CVgQCIBO.js";
7
7
  import { t as RefusalRedirects } from "./refusal-OrlI3g4H.js";
8
8
  //#region src/server/framework.d.ts
@@ -1,14 +1,14 @@
1
1
  import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
2
2
  import { r as AuthState } from "../resolve-CXX6DHv3.js";
3
3
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
4
- import { t as BetterSupabase } from "../define-Cgru0_kF.js";
5
- import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-gR4Q1aM0.js";
4
+ import { t as BetterSupabase } from "../define-BqaUwrIC.js";
5
+ import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-BTBzrzOH.js";
6
6
  import { t as AuthSession } from "../view-DyFdMCqg.js";
7
7
  import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
8
8
  import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
9
9
  import { t as CorsOptions } from "../cors-kLq6VM06.js";
10
- import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-8Q5Klkpa.js";
11
- import { t as defineAction } from "../resource-execute-CKBtGL8-.js";
10
+ import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-eXuFxVt7.js";
11
+ import { t as defineAction } from "../resource-execute-LR71zWej.js";
12
12
  import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-Bztf32cl.js";
13
13
  import { AnyEntry, Contributions, ValidateEntries } from "@supabase/middleware";
14
14
  import { Context, ErrorHandler, Hono, MiddlewareHandler } from "hono";
@@ -1,19 +1,19 @@
1
1
  import { b as DbError, f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
2
2
  import { $ as RecordRef } from "./types-DFdg_4yN.js";
3
3
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "./events-vcqenSYU.js";
4
- import { pt as QuerySpec } from "./define-Cgru0_kF.js";
4
+ import { pt as QuerySpec } from "./define-BqaUwrIC.js";
5
5
  import { A as TtlPreset, C as TransformOptions, E as UrlOptions, T as UploadOptions, l as ImageTransform, tt as TemplateValues, w as UploadBody } from "./bucket-vc-QRrva.js";
6
6
  import { m as RejectedChange, o as DataSyncState } from "./data-engine-BWoz9lED.js";
7
- import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-C0t-vNIt.js";
8
- import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-nQYxoTaU.js";
9
- import { t as AuthSnapshot } from "./bind-pu5TLrla.js";
7
+ import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-EieRHooI.js";
8
+ import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-0uK4db_2.js";
9
+ import { t as AuthSnapshot } from "./bind-BwQGUqdQ.js";
10
10
  import { t as AuthSession } from "./view-DyFdMCqg.js";
11
- import { r as LiveCountSeed, v as RelayClientOptions } from "./index-DmbCyl6Z.js";
12
- import { n as Controller } from "./controller-BR7CZ1R9.js";
13
- import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-DkAemDoc.js";
14
- import { t as BlockEnv } from "./block-env-CA65ulTD.js";
11
+ import { r as LiveCountSeed, v as RelayClientOptions } from "./index-BzW1T3oI.js";
12
+ import { n as Controller } from "./controller-BeqcjERs.js";
13
+ import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-Cfvcg-C3.js";
14
+ import { t as BlockEnv } from "./block-env-Dh0Fe-fK.js";
15
15
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-CiVa2G-J.js";
16
- import { s as RecordFormValues, t as RecordForm } from "./record-form-zMwz0Ayt.js";
16
+ import { s as RecordFormValues, t as RecordForm } from "./record-form-yMVvkPiQ.js";
17
17
  import { SupabaseClient } from "@supabase/supabase-js";
18
18
  import { DependencyList, ReactNode, SubmitEvent } from "react";
19
19
  import { QueryClient } from "@tanstack/query-core";
@@ -1,9 +1,9 @@
1
1
  import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
2
2
  import { $ as RecordRef, ot as SchemaMeta } from "./types-DFdg_4yN.js";
3
- import { pt as QuerySpec } from "./define-Cgru0_kF.js";
3
+ import { pt as QuerySpec } from "./define-BqaUwrIC.js";
4
4
  import { t as DataChanges } from "./data-engine-BWoz9lED.js";
5
- import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-nQYxoTaU.js";
6
- import { n as TopicPort } from "./watch-topic-UGSEWAqR.js";
5
+ import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-0uK4db_2.js";
6
+ import { n as TopicPort } from "./watch-topic-CG3kOX-D.js";
7
7
  import { StandardSchemaV1 } from "@standard-schema/spec";
8
8
  //#region src/realtime/relay.d.ts
9
9
  /** The `EventSource` the relay client reads with; the browser's fits. */
@@ -1,7 +1,7 @@
1
1
  import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
2
- import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-IiE__z2m.js";
3
- import { tt as ReadSet } from "./define-Cgru0_kF.js";
4
- import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-Cj-9gE6l.js";
2
+ import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-08F77H2w.js";
3
+ import { tt as ReadSet } from "./define-BqaUwrIC.js";
4
+ import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-CjHXhCck.js";
5
5
  import { t as SubjectConfig } from "./subjects-DvmQeF_F.js";
6
6
  //#region src/sql/render.d.ts
7
7
  /** A module's SQL for `layout`, without header; `undefined` in custom mode. */
@@ -1,4 +1,4 @@
1
- import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, ci as Preset, cr as AppColumnType, ei as PresetCatalog, hr as AppTableConfig, or as AppColumnConfig, ri as PresetGlueItem, vt as presetConfig } from "./context-Cj-9gE6l.js";
1
+ import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, ci as Preset, cr as AppColumnType, ei as PresetCatalog, hr as AppTableConfig, or as AppColumnConfig, ri as PresetGlueItem, vt as presetConfig } from "./context-CjHXhCck.js";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  //#region src/preset/catalog.generated.d.ts
4
4
  declare const PRESET_CATALOG: PresetCatalog;
@@ -2,9 +2,9 @@ import { t as AsyncResult } from "./result-DZeA5KS6.js";
2
2
  import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
3
3
  import { l as PublicEnv } from "./index-NRMMhhEi.js";
4
4
  import { g as SessionEncoding } from "./resolve-CXX6DHv3.js";
5
- import { t as BetterSupabase } from "./define-Cgru0_kF.js";
6
- import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-g0H1Kzwr.js";
7
- import { i as BindClientOptions, r as BetterClient } from "./bind-pu5TLrla.js";
5
+ import { t as BetterSupabase } from "./define-BqaUwrIC.js";
6
+ import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-DO3tgLTo.js";
7
+ import { i as BindClientOptions, r as BetterClient } from "./bind-BwQGUqdQ.js";
8
8
  import { n as FunctionContract } from "./function-contract-DxFNOmsm.js";
9
9
  import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
10
10
  //#region src/client/functions.d.ts
@@ -3,9 +3,9 @@ import { n as DbException } from "./escape-like-PReMbEEU.js";
3
3
  import { f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
4
4
  import { $ as RecordRef, K as Insert, O as AnyFunctions, Z as PrimaryKeyValue, ht as Update, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
5
5
  import { o as EventHub } from "./events-vcqenSYU.js";
6
- import { A as OffsetRangeArgs, Bt as Payload, C as GetKey, Dt as CountArgs, K as WriteArgs, Nt as ListArgs, O as OffsetPage, S as FindExt, St as AggregateResult, U as UpdateArgs, W as UpsertArgs, Zt as CacheAdapter, _ as CursorPageArgs, b as DeleteArgs, ft as InferResult, g as CursorPage, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, t as BetterSupabase, v as Db, x as DeleteExt, yt as AggregateArgs, z as Returned } from "./define-Cgru0_kF.js";
6
+ import { A as OffsetRangeArgs, Bt as Payload, C as GetKey, Dt as CountArgs, K as WriteArgs, Nt as ListArgs, O as OffsetPage, S as FindExt, St as AggregateResult, U as UpdateArgs, W as UpsertArgs, Zt as CacheAdapter, _ as CursorPageArgs, b as DeleteArgs, ft as InferResult, g as CursorPage, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, t as BetterSupabase, v as Db, x as DeleteExt, yt as AggregateArgs, z as Returned } from "./define-BqaUwrIC.js";
7
7
  import { n as DataEngine, r as DataEngineOptions } from "./data-engine-BWoz9lED.js";
8
- import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-CJWiDWa5.js";
8
+ import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-CRwHsxZO.js";
9
9
  import { t as BetterQueryMeta } from "./invalidate-DMp4eqfF.js";
10
10
  import { DataTag, InfiniteData, QueryClient, SkipToken } from "@tanstack/query-core";
11
11
  import { StandardSchemaV1 } from "@standard-schema/spec";
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { $ as RecordRef, A as BucketMeta, At as NoExtension, B as FunctionMeta,
6
6
  import { Ct as Events, O as BlockEventType, T as BlockEvent, a as EventHandler, bt as EventMap, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent } from "./events-vcqenSYU.js";
7
7
  import { i as silentLogger, n as Logger, r as consoleLogger, t as LogFields } from "./logger-DWVYUmwi.js";
8
8
  import { a as ProblemFormat, c as fromProblem, d as toProblem, i as ProblemDetails, l as isProblem, n as PROBLEM_CONTENT_TYPE, o as ProblemOptions, r as PROBLEM_TYPE_BASE, s as ProblemResponseOptions, t as BlockProblemOptions, u as problemResponse } from "./problem-DNwN8iGz.js";
9
- import { $t as MemoryCache, A as OffsetRangeArgs, At as IncludeArg, B as RowFilter, Bt as Payload, C as GetKey, Ct as AggregateRow, Dt as CountArgs, E as ManyWriteArgs, Et as CountArg, Ft as MeasureKey, G as UpsertManyArgs, Gt as SortDirection, H as RpcOptions, Ht as RelationMeasureArg, It as MutableWhere, J as DbStats, Jt as WhereInput, K as WriteArgs, Kt as SortSpec, L as Repository, Lt as NumericMeasureArg, Mt as JsonPathOps, Nt as ListArgs, O as OffsetPage, Ot as FieldFilter, P as PageOf, Pt as MeasureArg, Q as SearchArgs, Qt as CacheTarget, R as RepositoryOf, Rt as OrderByArg, S as FindExt, St as AggregateResult, T as ManyResult, Tt as ColumnOrderByArg, U as UpdateArgs, Ut as RequestArgs, Vt as ReadArgs, W as UpsertArgs, Wt as SelectArg, X as StatsRecorder, Xt as BucketsHelper, Y as EMPTY_STATS, Yt as BucketRegistry, Z as recordStats, Zt as CacheAdapter, _ as CursorPageArgs, _t as isQuerySpec, a as explainPostgrest, at as ReadSetParamTypes, b as DeleteArgs, bt as AggregateOrderBy, c as RpcDefinition, ct as ReadSetResult, d as BlocksHelper, dt as readSetTables, en as cacheTargetOf, et as InferReadSetParams, f as DbBlockSource, ft as InferResult, g as CursorPage, gt as TableSpecs, h as ConflictTarget, ht as Specs, i as PostgrestExecutorOptions, it as ReadSetParamType, jt as IncludeArgs, k as OffsetPageArgs, kt as GetArgs, l as SupabaseOptions, lt as defineReadSet, m as DbOf, mt as ReadMethod, n as defineSupabase, nn as rowKey, nt as ReadSetAuth, o as postgrestExecutor, ot as ReadSetParamValue, p as DbExtras, pt as QuerySpec, q as WriteManyArgs, qt as WhereArg, r as PostgrestClientLike, rn as rpcCacheTargets, rt as ReadSetOptions, s as ConnectOptions, st as ReadSetParams, t as BetterSupabase, tn as memoryCache, tt as ReadSet, ut as isReadSet, v as Db, vt as specTables, wt as ColumnOrderBy, x as DeleteExt, xt as AggregateOrderByArg, y as DbHelpers, yt as AggregateArgs, z as Returned, zt as OrderByInput } from "./define-Cgru0_kF.js";
9
+ import { $t as MemoryCache, A as OffsetRangeArgs, At as IncludeArg, B as RowFilter, Bt as Payload, C as GetKey, Ct as AggregateRow, Dt as CountArgs, E as ManyWriteArgs, Et as CountArg, Ft as MeasureKey, G as UpsertManyArgs, Gt as SortDirection, H as RpcOptions, Ht as RelationMeasureArg, It as MutableWhere, J as DbStats, Jt as WhereInput, K as WriteArgs, Kt as SortSpec, L as Repository, Lt as NumericMeasureArg, Mt as JsonPathOps, Nt as ListArgs, O as OffsetPage, Ot as FieldFilter, P as PageOf, Pt as MeasureArg, Q as SearchArgs, Qt as CacheTarget, R as RepositoryOf, Rt as OrderByArg, S as FindExt, St as AggregateResult, T as ManyResult, Tt as ColumnOrderByArg, U as UpdateArgs, Ut as RequestArgs, Vt as ReadArgs, W as UpsertArgs, Wt as SelectArg, X as StatsRecorder, Xt as BucketsHelper, Y as EMPTY_STATS, Yt as BucketRegistry, Z as recordStats, Zt as CacheAdapter, _ as CursorPageArgs, _t as isQuerySpec, a as explainPostgrest, at as ReadSetParamTypes, b as DeleteArgs, bt as AggregateOrderBy, c as RpcDefinition, ct as ReadSetResult, d as BlocksHelper, dt as readSetTables, en as cacheTargetOf, et as InferReadSetParams, f as DbBlockSource, ft as InferResult, g as CursorPage, gt as TableSpecs, h as ConflictTarget, ht as Specs, i as PostgrestExecutorOptions, it as ReadSetParamType, jt as IncludeArgs, k as OffsetPageArgs, kt as GetArgs, l as SupabaseOptions, lt as defineReadSet, m as DbOf, mt as ReadMethod, n as defineSupabase, nn as rowKey, nt as ReadSetAuth, o as postgrestExecutor, ot as ReadSetParamValue, p as DbExtras, pt as QuerySpec, q as WriteManyArgs, qt as WhereArg, r as PostgrestClientLike, rn as rpcCacheTargets, rt as ReadSetOptions, s as ConnectOptions, st as ReadSetParams, t as BetterSupabase, tn as memoryCache, tt as ReadSet, ut as isReadSet, v as Db, vt as specTables, wt as ColumnOrderBy, x as DeleteExt, xt as AggregateOrderByArg, y as DbHelpers, yt as AggregateArgs, z as Returned, zt as OrderByInput } from "./define-BqaUwrIC.js";
10
10
  import { Q as StoragePath } from "./bucket-vc-QRrva.js";
11
11
  import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-z-T0l23T.js";
12
12
  import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec, r as tableSchema, t as StandardJSONSchemaV1 } from "./table-schema-BlF6k62Q.js";
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { t as escapeLike } from "./escape-like-DHfx6jRr.js";
5
5
  import { a as decodeValue, c as tableMeta, o as encodeValue, s as defineSchema } from "./build-BFC8nFiL.js";
6
6
  import { i as or, n as column, r as not, t as and } from "./types-R6syp1el.js";
7
7
  import { a as ok, i as fromBetterResult, n as defineBetterResultErrors, o as toBetterResult, r as err, s as toDbError, t as AsyncResult } from "./result-ntFBW2p2.js";
8
- import { a as decodeRows, c as rowKey, i as encodeCursor, l as rpcCacheTargets, n as defineSupabase, o as cacheTargetOf, r as decodeCursor, s as memoryCache, t as BetterSupabase } from "./define-DlUeKHce.js";
8
+ import { a as decodeRows, c as rowKey, i as encodeCursor, l as rpcCacheTargets, n as defineSupabase, o as cacheTargetOf, r as decodeCursor, s as memoryCache, t as BetterSupabase } from "./define-Djgn3HQQ.js";
9
9
  import { n as touchedTables, t as invalidationTargets } from "./tables-Cb-3_VWc.js";
10
10
  import { n as silentLogger, t as consoleLogger } from "./logger-glM28NVN.js";
11
11
  import { t as EventHub } from "./events-D6IZ5CE8.js";
@@ -0,0 +1,7 @@
1
+ //#region src/core/instance-property.ts
2
+ /** `lead-scoring` as `leadScoring`: the property an instance key gets. */
3
+ function instanceProperty(key) {
4
+ return key.replaceAll(/[-_]([a-z0-9])/g, (_, c) => c.toUpperCase());
5
+ }
6
+ //#endregion
7
+ export { instanceProperty as t };
@@ -3,8 +3,8 @@ import { n as dbError } from "./errors-BVFgt8BZ.js";
3
3
  import { n as isRecord } from "./guards-6F2bCtQR.js";
4
4
  import { a as ok, r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
5
5
  import { t as vectorLiteral } from "./search-Cn_DGluL.js";
6
- import { C as optionalText, D as recordOf, I as textOf, O as recordOrEmpty, f as errorText, h as instantOf, j as run, k as recordsOf, n as applyTemporal, o as blockCall, p as injectableOf } from "./block-helpers-CtBdjgO4.js";
7
- import { r as withBlockHooks } from "./block-hooks-BfxX3682.js";
6
+ import { C as optionalText, D as recordOf, I as textOf, O as recordOrEmpty, f as errorText, h as instantOf, j as run, k as recordsOf, n as applyTemporal, o as blockCall, p as injectableOf } from "./block-helpers-DnCtsKtv.js";
7
+ import { r as withBlockHooks } from "./block-hooks-DbIpkq7a.js";
8
8
  //#region src/blocks/knowledge/knowledge.ts
9
9
  const SCOPES = /* @__PURE__ */ new Set([
10
10
  "organization",
@@ -1,4 +1,4 @@
1
1
  import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, d as FilterLimits, f as FilterNode, g as FilterRelativeDate, h as FilterQuery, i as FilterCombinator, l as FilterFieldType, m as FilterOperatorSpec, n as FILTER_OPERATOR_LABELS, o as FilterField, p as FilterOperatorArity, r as FilterClock, s as FilterFieldInfo, t as FILTER_OPERATORS, u as FilterGroupNode, v as ListFilterConfig, y as decodeFilterQuery } from "../filter-query-BXLs72G9.js";
2
- import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-DxjuIHEL.js";
2
+ import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-6vTI1VN6.js";
3
3
  import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-CPxeae5X.js";
4
4
  export { FILTER_OPERATORS, FILTER_OPERATOR_LABELS, type FacetCountFields, type FacetCounts, type FacetInfo, type FilterClock, type FilterCombinator, type FilterDateValue, type FilterEvaluation, type FilterField, type FilterFieldInfo, type FilterFieldLabels, type FilterFieldType, type FilterGroupNode, type FilterLimits, type FilterNode, type FilterOperatorArity, type FilterOperatorSpec, type FilterQuery, type FilterRecordField, type FilterRelativeDate, type FilterRule, type ListDefinition, type ListExtra, type ListFilterConfig, type ListPage, type ListPagination, type ListParseOptions, type ListParseResult, type ListParsers, type ListQuery, type ListQueryConfig, type ListQueryInput, type ListSearchParams, type OpenApiParameter, type ParserSpec, UNSET, decodeFilterQuery, defineListQuery, encodeFilterQuery, evaluateFilterQuery };
@@ -1,6 +1,6 @@
1
1
  import { D as ValidationIssue, t as AsyncResult } from "./result-DZeA5KS6.js";
2
2
  import { O as AnyFunctions, a as CountMode, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
3
- import { At as IncludeArg, Bt as Payload, Jt as WhereInput, O as OffsetPage, R as RepositoryOf, Rt as OrderByArg, S as FindExt, Wt as SelectArg, _ as CursorPageArgs, g as CursorPage, k as OffsetPageArgs, t as BetterSupabase } from "./define-Cgru0_kF.js";
3
+ import { At as IncludeArg, Bt as Payload, Jt as WhereInput, O as OffsetPage, R as RepositoryOf, Rt as OrderByArg, S as FindExt, Wt as SelectArg, _ as CursorPageArgs, g as CursorPage, k as OffsetPageArgs, t as BetterSupabase } from "./define-BqaUwrIC.js";
4
4
  import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-BXLs72G9.js";
5
5
  import { StandardSchemaV1 } from "@standard-schema/spec";
6
6
  //#region src/list/list-query.d.ts
@@ -1,10 +1,10 @@
1
- import { t as VERSION } from "../cli/version-BatoE1Gj.js";
2
- import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-DPRc-BzP.js";
3
- import { t as loadSnapshot } from "../cli/snapshot-BnZCeU7E.js";
4
- import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-GFy-2cii.js";
5
- import { i as discoverConfig, s as loadConfig } from "../cli/config-BJSqMi04.js";
1
+ import { t as VERSION } from "../cli/version-yWIaLG04.js";
2
+ import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-Cn3crN0v.js";
3
+ import { t as loadSnapshot } from "../cli/snapshot-pyIsJjUV.js";
4
+ import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-DE3O1OFq.js";
5
+ import { i as discoverConfig, s as loadConfig } from "../cli/config-BH0goim0.js";
6
6
  import { i as parseEnv, n as configEnvironment } from "../cli/env-DMgjB_4y.js";
7
- import { s as schemaStampPath } from "../cli/content-mapper-DM2jgKpn.js";
7
+ import { s as schemaStampPath } from "../cli/content-mapper-Q9We297z.js";
8
8
  import { existsSync, realpathSync } from "node:fs";
9
9
  import { basename, dirname, join, resolve } from "node:path";
10
10
  import { createHash } from "node:crypto";
@@ -1,11 +1,11 @@
1
1
  import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
2
- import { t as OperationTable } from "../operations-CAjMgNr9.js";
2
+ import { t as OperationTable } from "../operations-DbNAgo7E.js";
3
3
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
4
- import { t as BetterSupabase } from "../define-Cgru0_kF.js";
5
- import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-gR4Q1aM0.js";
4
+ import { t as BetterSupabase } from "../define-BqaUwrIC.js";
5
+ import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BTBzrzOH.js";
6
6
  import { r as GuardOptions } from "../respond-oZeJ342J.js";
7
7
  import { D as ResourceOperation } from "../model-hwpvole9.js";
8
- import { l as ResourceRouteOptions } from "../resource-types-8Q5Klkpa.js";
8
+ import { l as ResourceRouteOptions } from "../resource-types-eXuFxVt7.js";
9
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
10
10
  //#region src/mcp/dialect.d.ts
11
11
  /**
@@ -2,8 +2,8 @@ import { O as AnyFunctions, k as AnyModels } from "../../types-DFdg_4yN.js";
2
2
  import { r as AuthState } from "../../resolve-CXX6DHv3.js";
3
3
  import { i as CredentialRef, r as CredentialProvider } from "../../provider-CqwEOLCA.js";
4
4
  import { i as SupabaseMcpScope, n as SupabaseMcpModule, r as SupabaseMcpPlatformModule, t as SupabaseMcpFeature } from "../../supabase-mcp-Z4vtsuoO.js";
5
- import { t as BetterSupabase } from "../../define-Cgru0_kF.js";
6
- import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-gR4Q1aM0.js";
5
+ import { t as BetterSupabase } from "../../define-BqaUwrIC.js";
6
+ import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-BTBzrzOH.js";
7
7
  import { r as GuardOptions, t as AllowedCaller } from "../../respond-oZeJ342J.js";
8
8
  import { AuthInfo, CallToolResult, Icon, InputRequiredResult, OAuthTokenVerifier, RegisteredTool, ScopeChallengeHandler, ServerContext, StandardSchemaWithJSON, ToolAnnotations } from "@modelcontextprotocol/server";
9
9
  //#region src/mcp/sdk/sdk.d.ts
@@ -1,5 +1,5 @@
1
1
  import { n as dbError } from "./errors-BVFgt8BZ.js";
2
- import { a as bigintOf, x as optionalBigintOf } from "./block-helpers-CtBdjgO4.js";
2
+ import { a as bigintOf, x as optionalBigintOf } from "./block-helpers-DnCtsKtv.js";
3
3
  import { d as money, s as isCurrency } from "./money-BZl985O-.js";
4
4
  //#region src/blocks/money-codec.ts
5
5
  /**
@@ -2,27 +2,27 @@ import { b as DbError, f as Result } from "../result-DZeA5KS6.js";
2
2
  import { $ as RecordRef, O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
3
3
  import { r as AuthState } from "../resolve-CXX6DHv3.js";
4
4
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
5
- import { J as DbStats, Zt as CacheAdapter, pt as QuerySpec, t as BetterSupabase, tt as ReadSet } from "../define-Cgru0_kF.js";
6
- import { A as isSessionSnapshot, M as sessionCacheKey, O as SessionSnapshot, a as ServerContext, c as ServerOptions, j as issuedAtOf, k as authzVersionOf, l as SharedServer, n as BetterServer, r as ContextOptions } from "../server-types-gR4Q1aM0.js";
5
+ import { J as DbStats, Zt as CacheAdapter, pt as QuerySpec, t as BetterSupabase, tt as ReadSet } from "../define-BqaUwrIC.js";
6
+ import { A as isSessionSnapshot, M as sessionCacheKey, O as SessionSnapshot, a as ServerContext, c as ServerOptions, j as issuedAtOf, k as authzVersionOf, l as SharedServer, n as BetterServer, r as ContextOptions } from "../server-types-BTBzrzOH.js";
7
7
  import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
8
8
  import { n as AmrEntry, t as Aal } from "../mfa-oIOYTpvc.js";
9
- import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-CJWiDWa5.js";
10
- import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-C0t-vNIt.js";
11
- import { t as tenantOf } from "../tenant-DyoVYFfC.js";
9
+ import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-CRwHsxZO.js";
10
+ import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-EieRHooI.js";
11
+ import { t as tenantOf } from "../tenant-DzymQ9sv.js";
12
12
  import { n as toSession, t as AuthSession } from "../view-DyFdMCqg.js";
13
13
  import { a as SupportPolicy, c as supportSessions, i as SupportOptions, o as SupportSessions, s as SupportStartRequest, t as ActiveSupport } from "../support-B4ZBVxt3.js";
14
- import { t as AuthOutageHook } from "../session-Fcft5A39.js";
14
+ import { t as AuthOutageHook } from "../session-BgYGk_FS.js";
15
15
  import { n as AuthKind, r as GuardOptions } from "../respond-oZeJ342J.js";
16
16
  import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-CVgQCIBO.js";
17
- import { c as ListParseOptions, m as ListSearchParams } from "../list-query-DxjuIHEL.js";
18
- import { r as LiveCountSeed, t as CountRunner } from "../index-DmbCyl6Z.js";
19
- import { r as MembershipClaim } from "../entitlements-DHcNt1aF.js";
20
- import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-8Q5Klkpa.js";
21
- import { t as ResourceMap } from "../resources-DxpqenZA.js";
22
- import { t as defineAction } from "../resource-execute-CKBtGL8-.js";
17
+ import { c as ListParseOptions, m as ListSearchParams } from "../list-query-6vTI1VN6.js";
18
+ import { r as LiveCountSeed, t as CountRunner } from "../index-BzW1T3oI.js";
19
+ import { r as MembershipClaim } from "../entitlements-mDz7GfA_.js";
20
+ import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-eXuFxVt7.js";
21
+ import { t as ResourceMap } from "../resources-Dpz3h8Fe.js";
22
+ import { t as defineAction } from "../resource-execute-LR71zWej.js";
23
23
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
24
- import { i as tagFor, t as TagOptions } from "../tags-sM-CH9Mn.js";
25
- import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-CMmo0R7g.js";
24
+ import { i as tagFor, t as TagOptions } from "../tags-CXeJu332.js";
25
+ import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-BMVOKokJ.js";
26
26
  import { r as safeRedirectPath } from "../sign-in-BAjR49fq.js";
27
27
  import { n as supportOf, t as SupportView } from "../support-view-BYOgwXsJ.js";
28
28
  import { NextRequest } from "next/server.js";
@@ -1,6 +1,7 @@
1
1
  import { t as DbException } from "../db-exception-Lngc1W49.js";
2
2
  import { n as dbError } from "../errors-BVFgt8BZ.js";
3
3
  import { t as isList } from "../guards-6F2bCtQR.js";
4
+ import { t as isStorageApi } from "../storage-api-Dg78Wqsg.js";
4
5
  import { r as err } from "../result-ntFBW2p2.js";
5
6
  import { o as isReadSet } from "../read-set-BnKnofIj.js";
6
7
  import { n as validate } from "../standard-BA3mLh6w.js";
@@ -8,7 +9,7 @@ import { n as StatsRecorder, t as EMPTY_STATS } from "../stats-BHl1-zj9.js";
8
9
  import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
9
10
  import { i as claimsOf } from "../claims-Bp9My7XP.js";
10
11
  import { t as supportOf } from "../support-view-g4YLBeqX.js";
11
- import { n as createBlockClient } from "../create-blocks-Bu4H5TXw.js";
12
+ import { n as createBlockClient } from "../create-blocks-0pWKQ6x4.js";
12
13
  import { a as recordCan, c as recordWriteInput, i as plainData, l as runBindingWrite, o as recordPermissionKeys, p as loadBindings, r as findBindingWrite, s as recordSubject, t as bindingWrites } from "../record-type-DRbnlj5q.js";
13
14
  import { n as methodOf } from "../block-method-C9hWdHom.js";
14
15
  import { t as tenantOf } from "../tenant-BgIiMQpo.js";
@@ -17,7 +18,7 @@ import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents,
17
18
  import { g as sessionCookieName, t as clientIp, v as writeSession } from "../resolve-B0mW2m7f.js";
18
19
  import { a as isSessionSnapshot, f as checkAal, i as authzVersionOf, n as toSession, o as issuedAtOf, s as sessionCacheKey } from "../view-C8Ve14ja.js";
19
20
  import { i as guard, n as defaultExpose, s as settle } from "../respond-3RKp6VgU.js";
20
- import { i as supportSessions, n as passwordGrant, r as safeRedirectPath, t as needsMfa } from "../sign-in-BLkRU3lc.js";
21
+ import { i as supportSessions, n as passwordGrant, r as safeRedirectPath, t as needsMfa } from "../sign-in-BTaRWS-L.js";
21
22
  import { i as defineAction } from "../resource-R3KToNze.js";
22
23
  import { r as tagFor, t as cacheTagsOf } from "../tags-CIZTqtlY.js";
23
24
  import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-DhlB-vv_.js";
@@ -338,7 +339,7 @@ function clientOptions(feature, ctx) {
338
339
  const storage = ctx.supabase?.storage;
339
340
  return {
340
341
  ...feature.config === void 0 ? {} : { config: feature.config },
341
- ...storage === void 0 ? {} : { storage }
342
+ ...isStorageApi(storage) ? { storage } : {}
342
343
  };
343
344
  }
344
345
  function clientsOf(feature, ctx) {
@@ -1,4 +1,4 @@
1
- import { r as AuthorizationOperation } from "./authorization-IiE__z2m.js";
1
+ import { r as AuthorizationOperation } from "./authorization-08F77H2w.js";
2
2
  //#region src/core/operations.d.ts
3
3
  /** Operations by name, as `authorization.operations` or a module's own defaults. */
4
4
  type OperationTable = Readonly<Record<string, AuthorizationOperation>>;
@@ -6,7 +6,8 @@ const invoicesSqlOptions = blockOptions({
6
6
  prefix: option.string({ default: "INV-" }),
7
7
  creditPrefix: option.string({ default: "CN-" }),
8
8
  termsDays: option.number({ default: 30 }),
9
- extraColumns: option.extraColumns()
9
+ extraColumns: option.extraColumns(),
10
+ lineExtraColumns: option.extraColumns()
10
11
  });
11
12
  //#endregion
12
13
  export { invoicesSqlOptions as t };
@@ -7,7 +7,8 @@ const dealsSqlOptions = blockOptions({
7
7
  priorities: option.unknown(),
8
8
  prefix: option.string({ default: "DEAL-" }),
9
9
  readAll: option.boolean({ default: true }),
10
- extraColumns: option.extraColumns()
10
+ extraColumns: option.extraColumns(),
11
+ lineExtraColumns: option.extraColumns()
11
12
  });
12
13
  //#endregion
13
14
  export { dealsSqlOptions as t };
@@ -2,14 +2,14 @@ import { b as DbError, f as Result } from "../result-DZeA5KS6.js";
2
2
  import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
3
3
  import { r as AuthState } from "../resolve-CXX6DHv3.js";
4
4
  import { i as ProblemDetails } from "../problem-DNwN8iGz.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-BqaUwrIC.js";
6
+ import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BTBzrzOH.js";
7
7
  import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
8
8
  import { c as ResourceLoaderContext, i as AuthorizeOptions } from "../kit-CVgQCIBO.js";
9
9
  import { t as Validated } from "../shared-CRRfQAKG.js";
10
- import { a as ResourceHandler } from "../resource-types-8Q5Klkpa.js";
10
+ import { a as ResourceHandler } from "../resource-types-eXuFxVt7.js";
11
11
  import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-Bztf32cl.js";
12
- import { t as Api } from "../api-B6zteBya.js";
12
+ import { t as Api } from "../api-BIw5g_4V.js";
13
13
  import { AnyEntry, Contributions } from "@supabase/middleware";
14
14
  import { AnySchema, BuilderWithMiddlewares, DecoratedMiddleware, DecoratedProcedure, MetaPlugin, ORPCError, Schema } from "@orpc/server";
15
15
  //#region src/orpc/router.d.ts