better-supabase 0.20.0 → 0.21.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 (488) hide show
  1. package/dist/{adapter-CfuBICuG.js → adapter-DZJZTY6g.js} +2 -2
  2. package/dist/{ai-cache-BuNbWEFI.js → ai-cache-BFRKxgZ4.js} +2 -2
  3. package/dist/{ai-files-DeMWQfzs.js → ai-files-m_2z3rH1.js} +3 -3
  4. package/dist/{ai-schedules-Bp-U0cZG.d.ts → ai-schedules-7uQNMXve.d.ts} +1 -1
  5. package/dist/ai-sdk/agents/index.d.ts +2 -2
  6. package/dist/ai-sdk/batches/index.js +3 -3
  7. package/dist/ai-sdk/cache/index.js +1 -1
  8. package/dist/ai-sdk/chat/index.js +1 -1
  9. package/dist/ai-sdk/files/index.js +2 -2
  10. package/dist/ai-sdk/index.js +3 -3
  11. package/dist/ai-sdk/mcp/index.js +2 -2
  12. package/dist/ai-sdk/workflow/index.js +2 -2
  13. package/dist/{api-BIw5g_4V.d.ts → api-Cj4W_pqT.d.ts} +1 -1
  14. package/dist/{app-tables-oYkgtcRM.d.ts → app-tables-C5HjXs2k.d.ts} +1 -1
  15. package/dist/astro/index.d.ts +3 -3
  16. package/dist/astro/index.js +2 -2
  17. package/dist/{attachments-BTIwCuwm.js → attachments-BXbLnNxm.js} +5 -5
  18. package/dist/{authorization-08F77H2w.d.ts → authorization-DhoA7dsD.d.ts} +22 -8
  19. package/dist/{automations-jIIaT9EJ.js → automations-BMuqwZZn.js} +5 -5
  20. package/dist/better-result/index.d.ts +2 -2
  21. package/dist/{bind-BwQGUqdQ.d.ts → bind-CFsctoFJ.d.ts} +4 -4
  22. package/dist/{block-authors-D9hyCizs.js → block-authors-Bw3zdzgl.js} +1 -1
  23. package/dist/{block-env-Dh0Fe-fK.d.ts → block-env-BrUNeuJ_.d.ts} +4 -4
  24. package/dist/{block-events-pBXPzwnW.js → block-events-IWAyafO3.js} +1 -1
  25. package/dist/{block-fields-DE_FgpOU.js → block-fields-BjXgX_5c.js} +4 -3
  26. package/dist/{block-helpers-DnCtsKtv.js → block-helpers-B0f0ZVb5.js} +169 -4
  27. package/dist/{block-hooks-DbIpkq7a.js → block-hooks-DKtz0HRh.js} +1 -1
  28. package/dist/{block-subjects-BRJO0IqO.js → block-subjects-DFSuFY1a.js} +1 -1
  29. package/dist/blocks/access-requests/index.d.ts +1 -1
  30. package/dist/blocks/access-requests/index.js +4 -5
  31. package/dist/blocks/activities/index.d.ts +1 -1
  32. package/dist/blocks/activities/index.js +4 -5
  33. package/dist/blocks/agents/index.d.ts +1 -1
  34. package/dist/blocks/agents/index.js +3 -4
  35. package/dist/blocks/ai-cache/index.d.ts +1 -1
  36. package/dist/blocks/ai-cache/index.js +2 -2
  37. package/dist/blocks/ai-chat/index.d.ts +4 -4
  38. package/dist/blocks/ai-chat/index.js +3 -4
  39. package/dist/blocks/ai-files/index.d.ts +1 -1
  40. package/dist/blocks/ai-files/index.js +2 -2
  41. package/dist/blocks/ai-keys/index.d.ts +1 -1
  42. package/dist/blocks/ai-keys/index.js +2 -3
  43. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  44. package/dist/blocks/ai-schedules/index.js +5 -6
  45. package/dist/blocks/announcements/index.d.ts +4 -4
  46. package/dist/blocks/announcements/index.js +3 -4
  47. package/dist/blocks/api-keys/index.d.ts +2 -2
  48. package/dist/blocks/api-keys/index.js +4 -5
  49. package/dist/blocks/approvals/index.d.ts +1 -1
  50. package/dist/blocks/approvals/index.js +4 -5
  51. package/dist/blocks/assets/index.d.ts +1 -1
  52. package/dist/blocks/assets/index.js +3 -4
  53. package/dist/blocks/assignment/index.d.ts +1 -1
  54. package/dist/blocks/assignment/index.js +4 -5
  55. package/dist/blocks/attachments/index.d.ts +2 -2
  56. package/dist/blocks/attachments/index.js +4 -5
  57. package/dist/blocks/audit/index.d.ts +5 -5
  58. package/dist/blocks/audit/index.js +7 -8
  59. package/dist/blocks/automations/index.d.ts +3 -3
  60. package/dist/blocks/automations/index.js +5 -5
  61. package/dist/blocks/billable-time/index.d.ts +1 -1
  62. package/dist/blocks/billable-time/index.js +6 -7
  63. package/dist/blocks/billing/index.d.ts +3 -3
  64. package/dist/blocks/billing/index.js +5 -6
  65. package/dist/blocks/bookings/index.d.ts +3 -3
  66. package/dist/blocks/bookings/index.js +6 -6
  67. package/dist/blocks/bulk/index.d.ts +4 -3
  68. package/dist/blocks/bulk/index.js +4 -4
  69. package/dist/blocks/calendar/index.d.ts +2 -2
  70. package/dist/blocks/calendar/index.js +6 -6
  71. package/dist/blocks/catalog/index.d.ts +1 -1
  72. package/dist/blocks/catalog/index.js +5 -6
  73. package/dist/blocks/channels/index.d.ts +1 -1
  74. package/dist/blocks/channels/index.js +3 -4
  75. package/dist/blocks/collections/index.d.ts +1 -1
  76. package/dist/blocks/collections/index.js +3 -4
  77. package/dist/blocks/comments/index.d.ts +5 -5
  78. package/dist/blocks/comments/index.js +8 -9
  79. package/dist/blocks/compliance/index.d.ts +1 -1
  80. package/dist/blocks/compliance/index.js +5 -6
  81. package/dist/blocks/connectors/index.d.ts +1 -1
  82. package/dist/blocks/connectors/index.js +3 -4
  83. package/dist/blocks/contacts/index.d.ts +1 -1
  84. package/dist/blocks/contacts/index.js +4 -5
  85. package/dist/blocks/content/index.d.ts +1 -1
  86. package/dist/blocks/content/index.js +3 -4
  87. package/dist/blocks/contracts/index.d.ts +1 -1
  88. package/dist/blocks/contracts/index.js +8 -9
  89. package/dist/blocks/courses/index.d.ts +1 -1
  90. package/dist/blocks/courses/index.js +5 -6
  91. package/dist/blocks/created-by/index.d.ts +1 -1
  92. package/dist/blocks/custom-fields/index.d.ts +1 -1
  93. package/dist/blocks/custom-fields/index.js +2 -2
  94. package/dist/blocks/data-lifecycle/index.d.ts +1 -1
  95. package/dist/blocks/data-lifecycle/index.js +2 -3
  96. package/dist/blocks/deals/index.d.ts +1 -1
  97. package/dist/blocks/deals/index.js +9 -10
  98. package/dist/blocks/dispatch/index.d.ts +1 -1
  99. package/dist/blocks/dispatch/index.js +7 -8
  100. package/dist/blocks/documents/index.d.ts +1 -1
  101. package/dist/blocks/documents/index.js +2 -3
  102. package/dist/blocks/domains/index.d.ts +1 -1
  103. package/dist/blocks/domains/index.js +3 -4
  104. package/dist/blocks/donations/index.d.ts +1 -1
  105. package/dist/blocks/donations/index.js +7 -8
  106. package/dist/blocks/drive/index.d.ts +5 -1
  107. package/dist/blocks/drive/index.js +6 -7
  108. package/dist/blocks/employees/index.d.ts +2 -2
  109. package/dist/blocks/employees/index.js +7 -8
  110. package/dist/blocks/enrichment/index.d.ts +1 -1
  111. package/dist/blocks/enrichment/index.js +2 -3
  112. package/dist/blocks/enrollments/index.d.ts +1 -1
  113. package/dist/blocks/enrollments/index.js +3 -4
  114. package/dist/blocks/entitlements/index.d.ts +3 -3
  115. package/dist/blocks/entitlements/index.js +2 -2
  116. package/dist/blocks/expenses/index.d.ts +1 -1
  117. package/dist/blocks/expenses/index.js +6 -7
  118. package/dist/blocks/field-history/index.d.ts +1 -1
  119. package/dist/blocks/field-history/index.js +2 -3
  120. package/dist/blocks/flags/index.d.ts +1 -1
  121. package/dist/blocks/flags/index.js +4 -5
  122. package/dist/blocks/forecasts/index.d.ts +1 -1
  123. package/dist/blocks/forecasts/index.js +5 -6
  124. package/dist/blocks/forms/index.d.ts +2 -2
  125. package/dist/blocks/forms/index.js +3 -4
  126. package/dist/blocks/goals/index.d.ts +1 -1
  127. package/dist/blocks/goals/index.js +4 -5
  128. package/dist/blocks/guests/index.d.ts +1 -1
  129. package/dist/blocks/guests/index.js +4 -5
  130. package/dist/blocks/hiring/index.d.ts +1 -1
  131. package/dist/blocks/hiring/index.js +4 -5
  132. package/dist/blocks/identities/index.d.ts +1 -1
  133. package/dist/blocks/identities/index.js +2 -3
  134. package/dist/blocks/imports/index.d.ts +1 -1
  135. package/dist/blocks/imports/index.js +2 -2
  136. package/dist/blocks/inbox/index.d.ts +5 -5
  137. package/dist/blocks/inbox/index.js +3 -4
  138. package/dist/blocks/incidents/index.d.ts +1 -1
  139. package/dist/blocks/incidents/index.js +5 -6
  140. package/dist/blocks/index.d.ts +2 -2
  141. package/dist/blocks/index.js +6 -6
  142. package/dist/blocks/inventory/index.d.ts +1 -1
  143. package/dist/blocks/inventory/index.js +3 -4
  144. package/dist/blocks/invoices/index.d.ts +1 -1
  145. package/dist/blocks/invoices/index.js +6 -7
  146. package/dist/blocks/knowledge/index.d.ts +1 -1
  147. package/dist/blocks/knowledge/index.js +2 -2
  148. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  149. package/dist/blocks/lead-scoring/index.js +4 -5
  150. package/dist/blocks/leases/index.d.ts +1 -1
  151. package/dist/blocks/leases/index.js +7 -8
  152. package/dist/blocks/leave/index.d.ts +1 -1
  153. package/dist/blocks/leave/index.js +4 -5
  154. package/dist/blocks/ledger/index.d.ts +1 -1
  155. package/dist/blocks/ledger/index.js +3 -4
  156. package/dist/blocks/mail-sync/index.d.ts +1 -1
  157. package/dist/blocks/mail-sync/index.js +4 -5
  158. package/dist/blocks/memberships/index.d.ts +1 -1
  159. package/dist/blocks/memory/index.d.ts +1 -1
  160. package/dist/blocks/memory/index.js +3 -4
  161. package/dist/blocks/messaging/index.d.ts +5 -5
  162. package/dist/blocks/messaging/index.js +5 -6
  163. package/dist/blocks/metrics/index.d.ts +1 -1
  164. package/dist/blocks/metrics/index.js +4 -5
  165. package/dist/blocks/mfa/index.d.ts +2 -2
  166. package/dist/blocks/moderation/index.d.ts +1 -1
  167. package/dist/blocks/moderation/index.js +3 -4
  168. package/dist/blocks/notifications/index.d.ts +4 -4
  169. package/dist/blocks/notifications/index.js +7 -8
  170. package/dist/blocks/numbering/index.d.ts +1 -1
  171. package/dist/blocks/numbering/index.js +2 -2
  172. package/dist/blocks/oauth-server/index.d.ts +1 -1
  173. package/dist/blocks/oauth-server/index.js +3 -4
  174. package/dist/blocks/onboarding/index.d.ts +2 -2
  175. package/dist/blocks/onboarding/index.js +2 -3
  176. package/dist/blocks/orders/index.d.ts +9 -2
  177. package/dist/blocks/orders/index.js +7 -8
  178. package/dist/blocks/organizations/index.d.ts +3 -3
  179. package/dist/blocks/organizations/index.js +5 -6
  180. package/dist/blocks/outbox/index.d.ts +1 -1
  181. package/dist/blocks/outbox/index.js +3 -4
  182. package/dist/blocks/passes/index.d.ts +2 -2
  183. package/dist/blocks/passes/index.js +7 -8
  184. package/dist/blocks/permissions/index.d.ts +3 -3
  185. package/dist/blocks/permissions/index.js +2 -3
  186. package/dist/blocks/pipelines/index.d.ts +1 -1
  187. package/dist/blocks/pipelines/index.js +4 -5
  188. package/dist/blocks/posts/index.d.ts +1 -1
  189. package/dist/blocks/posts/index.js +4 -5
  190. package/dist/blocks/profiles/index.d.ts +1 -1
  191. package/dist/blocks/profiles/index.js +3 -4
  192. package/dist/blocks/promotions/index.d.ts +1 -1
  193. package/dist/blocks/promotions/index.js +4 -5
  194. package/dist/blocks/push/index.d.ts +2 -2
  195. package/dist/blocks/push/index.js +4 -5
  196. package/dist/blocks/queue/index.d.ts +1 -1
  197. package/dist/blocks/queue/index.js +7 -8
  198. package/dist/blocks/quotes/index.d.ts +1 -1
  199. package/dist/blocks/quotes/index.js +6 -7
  200. package/dist/blocks/rank/index.d.ts +1 -1
  201. package/dist/blocks/rank/index.js +2 -2
  202. package/dist/blocks/reactions/index.d.ts +4 -4
  203. package/dist/blocks/reactions/index.js +3 -4
  204. package/dist/blocks/relations/index.d.ts +3 -2
  205. package/dist/blocks/relations/index.js +8 -8
  206. package/dist/blocks/reminders/index.d.ts +10 -6
  207. package/dist/blocks/reminders/index.js +13 -12
  208. package/dist/blocks/reviews/index.d.ts +1 -1
  209. package/dist/blocks/reviews/index.js +3 -4
  210. package/dist/blocks/saved-views/index.d.ts +3 -3
  211. package/dist/blocks/saved-views/index.js +3 -3
  212. package/dist/blocks/scores/index.d.ts +1 -1
  213. package/dist/blocks/scores/index.js +4 -4
  214. package/dist/blocks/search/index.d.ts +3 -3
  215. package/dist/blocks/search/index.js +2 -3
  216. package/dist/blocks/security-events/index.d.ts +1 -1
  217. package/dist/blocks/security-events/index.js +2 -3
  218. package/dist/blocks/segments/index.d.ts +1 -1
  219. package/dist/blocks/segments/index.js +4 -5
  220. package/dist/blocks/sequences/index.d.ts +1 -1
  221. package/dist/blocks/sequences/index.js +3 -4
  222. package/dist/blocks/service-accounts/index.d.ts +1 -1
  223. package/dist/blocks/service-accounts/index.js +3 -4
  224. package/dist/blocks/sessions/index.d.ts +2 -2
  225. package/dist/blocks/sessions/index.js +1 -1
  226. package/dist/blocks/settings/index.d.ts +2 -2
  227. package/dist/blocks/settings/index.js +2 -3
  228. package/dist/blocks/share-links/index.d.ts +1 -1
  229. package/dist/blocks/share-links/index.js +6 -6
  230. package/dist/blocks/shipments/index.d.ts +1 -1
  231. package/dist/blocks/shipments/index.js +9 -10
  232. package/dist/blocks/signatures/index.d.ts +1 -1
  233. package/dist/blocks/signatures/index.js +3 -4
  234. package/dist/blocks/signing-keys/index.d.ts +1 -1
  235. package/dist/blocks/signing-keys/index.js +2 -2
  236. package/dist/blocks/sla/index.d.ts +1 -1
  237. package/dist/blocks/sla/index.js +7 -8
  238. package/dist/blocks/sso/index.d.ts +1 -1
  239. package/dist/blocks/sso/index.js +2 -3
  240. package/dist/blocks/state-machine/index.d.ts +1 -1
  241. package/dist/blocks/state-machine/index.js +3 -3
  242. package/dist/blocks/subjects/index.d.ts +2 -2
  243. package/dist/blocks/subjects/index.js +3 -4
  244. package/dist/blocks/tags/index.d.ts +2 -2
  245. package/dist/blocks/tags/index.js +5 -5
  246. package/dist/blocks/tasks/index.d.ts +2 -2
  247. package/dist/blocks/tasks/index.js +7 -8
  248. package/dist/blocks/teams/index.d.ts +1 -1
  249. package/dist/blocks/teams/index.js +3 -3
  250. package/dist/blocks/templates/index.d.ts +3 -3
  251. package/dist/blocks/templates/index.js +3 -4
  252. package/dist/blocks/time-tracking/index.d.ts +8 -1
  253. package/dist/blocks/time-tracking/index.js +9 -10
  254. package/dist/blocks/timeline/index.d.ts +3 -3
  255. package/dist/blocks/timeline/index.js +4 -5
  256. package/dist/blocks/trash/index.d.ts +1 -1
  257. package/dist/blocks/trash/index.js +3 -4
  258. package/dist/blocks/undo/index.d.ts +2 -2
  259. package/dist/blocks/undo/index.js +2 -2
  260. package/dist/blocks/updated-at/index.d.ts +1 -1
  261. package/dist/blocks/usage/index.d.ts +2 -2
  262. package/dist/blocks/usage/index.js +2 -3
  263. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  264. package/dist/blocks/vercel-marketplace/index.js +3 -4
  265. package/dist/blocks/versions/index.d.ts +1 -1
  266. package/dist/blocks/versions/index.js +6 -7
  267. package/dist/blocks/waitlist/index.d.ts +1 -1
  268. package/dist/blocks/waitlist/index.js +4 -5
  269. package/dist/blocks/webhooks/index.d.ts +3 -3
  270. package/dist/blocks/webhooks/index.js +11 -12
  271. package/dist/blocks/workflow-editor/index.d.ts +6 -6
  272. package/dist/blocks/workflow-editor/index.js +9 -10
  273. package/dist/blocks/workflows/index.d.ts +4 -4
  274. package/dist/blocks/workflows/index.js +4 -5
  275. package/dist/{bookings-Dox2rced.d.ts → bookings-BpCNphYp.d.ts} +1 -2
  276. package/dist/{build-D9lWi5bk.js → build-CM8PJqwW.js} +1 -1
  277. package/dist/{build-BFC8nFiL.js → build-DbIRFcHQ.js} +3 -65
  278. package/dist/chat-sdk/index.js +2 -3
  279. package/dist/cli/{add-CtLjnwds.js → add-BTDPjVGC.js} +9 -9
  280. package/dist/cli/{add-CH7dC6UR.js → add-C0w-mVTQ.js} +2 -2
  281. package/dist/cli/add-CspY9jKT.js +1 -0
  282. package/dist/cli/{backfill-DBJIMzcy.js → backfill-BDdBs6Ne.js} +1 -1
  283. package/dist/cli/bin.js +1 -1
  284. package/dist/cli/{blocks-i1w0EEvs.js → blocks-Bs-lA-U_.js} +1 -1
  285. package/dist/cli/{blocks-CS58-xnw.js → blocks-CQLME-HQ.js} +1 -1
  286. package/dist/cli/{cache-Cn3crN0v.js → cache-DDKao2Va.js} +1 -1
  287. package/dist/cli/{codemod-D6wifOAH.js → codemod-Bjl998Do.js} +1 -1
  288. package/dist/cli/{content-mapper-Q9We297z.js → content-mapper-DgSTl-DL.js} +2 -2
  289. package/dist/cli/{doctor-DmfdE5Ct.js → doctor-CMLWbt44.js} +57 -55
  290. package/dist/cli/{gen-D68A0uN8.js → gen-D3VX8WdV.js} +11 -11
  291. package/dist/cli/index.d.ts +1 -1
  292. package/dist/cli/index.js +6 -6
  293. package/dist/cli/{init-N7pkBbJn.js → init-D6D6eWze.js} +5 -5
  294. package/dist/cli/{live-0xAAlTK_.js → live-C_xgTOfD.js} +2 -2
  295. package/dist/cli/{mcp-CbN3ulRF.js → mcp-B0Irjbes.js} +2 -2
  296. package/dist/cli/{metadata-417ldpf4.js → metadata-cLXra-XB.js} +3 -3
  297. package/dist/cli/{migration-safety-BC_UI4jC.js → migration-safety-OUK-Afbb.js} +1 -1
  298. package/dist/cli/{migrations-DdBKwrvG.js → migrations-CHenMvl_.js} +1 -1
  299. package/dist/cli/{module-migration-DdxPdqMC.js → module-migration-6V7vXWUK.js} +2 -2
  300. package/dist/cli/{powersync-CJTEz-uY.js → powersync-D83yAFbl.js} +2 -2
  301. package/dist/cli/powersync-DwhCH0gs.js +1 -0
  302. package/dist/cli/{print-DyFm91R-.js → print-C0OmQyTu.js} +2 -2
  303. package/dist/cli/{remove-CPY0xsVm.js → remove-BWlOngNT.js} +5 -5
  304. package/dist/cli/{render-DE3O1OFq.js → render-9m70qveo.js} +22 -5
  305. package/dist/cli/{run-CcrNGX9C.js → run-He3M-ZRq.js} +21 -21
  306. package/dist/cli/{run-WtIEFGvP.js → run-gE4eAazR.js} +8 -8
  307. package/dist/cli/{shared-SlukBuKn.js → shared-Cx2WFVWq.js} +1 -1
  308. package/dist/cli/{snapshot-pyIsJjUV.js → snapshot-CZb3uVKE.js} +2 -2
  309. package/dist/cli/{source-Bclt9D0Y.js → source-CrYSCdPZ.js} +1 -1
  310. package/dist/cli/{spec-D7zsEVj_.js → spec-Cn5RhuQc.js} +2 -2
  311. package/dist/cli/{spec-BsdLx7tZ.js → spec-D4b9ePuQ.js} +1 -1
  312. package/dist/cli/{sql-layout-C6baAM5t.js → sql-layout-CLJ67h3L.js} +2 -2
  313. package/dist/cli/{sync-Cse8VXAU.js → sync-B8VGiaHk.js} +3 -3
  314. package/dist/cli/{upgrade-Cwc1RiAE.js → upgrade-BvBWK3Fo.js} +4 -4
  315. package/dist/cli/{upgrade-28ENjIJU.js → upgrade-DMiYx1C8.js} +2 -2
  316. package/dist/cli/{version-yWIaLG04.js → version-BVg2Z6yv.js} +1 -1
  317. package/dist/client/index.d.ts +5 -5
  318. package/dist/client/index.js +1 -1
  319. package/dist/client/native/index.d.ts +4 -4
  320. package/dist/client/native/index.js +1 -1
  321. package/dist/{codecs-BfmQSbM6.js → codecs-CSUFGrdP.js} +3 -3
  322. package/dist/commerce/index.js +3 -3
  323. package/dist/{composite-DbRuu6Jb.d.ts → composite-ChzHhSB0.d.ts} +3 -3
  324. package/dist/{composite-D24L5RIY.js → composite-Dw5ofSF_.js} +1 -1
  325. package/dist/config/index.d.ts +2 -2
  326. package/dist/config/index.js +2 -2
  327. package/dist/{config-D74JT0qL.js → config-BOt5T6Vs.js} +1 -1
  328. package/dist/{context-CjHXhCck.d.ts → context-sgrUjA3U.d.ts} +4 -4
  329. package/dist/{controller-BeqcjERs.d.ts → controller-B6vWdKSa.d.ts} +1 -1
  330. package/dist/{controller-BNZKd6bJ.js → controller-qG-B1eDn.js} +1 -1
  331. package/dist/{conversion-BqDvi8ty.d.ts → conversion-DBgMck5U.d.ts} +1 -1
  332. package/dist/create/index.d.ts +2 -2
  333. package/dist/create/index.js +2 -2
  334. package/dist/{create-blocks-0pWKQ6x4.js → create-blocks-CUS28FfS.js} +13 -9
  335. package/dist/credentials/index.js +2 -3
  336. package/dist/{cron-CgHTKwYG.js → cron-DdT4ti8a.js} +1 -1
  337. package/dist/{cron-route-UU9i5i9J.js → cron-route-FjKgRvTY.js} +1 -1
  338. package/dist/{deal-forecast-DikouYGj.js → deal-forecast-CKBnRodz.js} +2 -2
  339. package/dist/{define-Djgn3HQQ.js → define-D-dLADd5.js} +16 -19
  340. package/dist/{define-BqaUwrIC.d.ts → define-Lf6rI2QN.d.ts} +14 -8
  341. package/dist/{define-block-CRwHsxZO.d.ts → define-block-DCAiOrNX.d.ts} +12 -3
  342. package/dist/edge/index.d.ts +5 -5
  343. package/dist/edge/index.js +3 -3
  344. package/dist/{entitlements-mDz7GfA_.d.ts → entitlements-BPaPd3MD.d.ts} +1 -1
  345. package/dist/{entitlements-DBir2qwB.js → entitlements-tGL6-69B.js} +2 -2
  346. package/dist/{entity-schema-BDv6w-OQ.js → entity-schema-B1YmMtP8.js} +1 -1
  347. package/dist/events/index.js +2 -2
  348. package/dist/{executor-3qcMhg6R.js → executor-C2Ne-Scm.js} +3 -2
  349. package/dist/{executor-Bi056Cnj.d.ts → executor-DNK401lZ.d.ts} +1 -1
  350. package/dist/{executor-D3gB-9si.js → executor-DqIci3Jb.js} +3 -3
  351. package/dist/{executor-BQ7dYw4E.js → executor-WolvKszH.js} +3 -3
  352. package/dist/{executor-_O-CqCPl.d.ts → executor-aFV7nEBs.d.ts} +2 -2
  353. package/dist/expo/index.d.ts +2 -2
  354. package/dist/expo/index.js +2 -2
  355. package/dist/{field-errors-Cfvcg-C3.d.ts → field-errors-DBgDCITw.d.ts} +6 -6
  356. package/dist/{fields--5a88KJe.js → fields-BBm49w-E.js} +1 -1
  357. package/dist/{filter-evaluate-w1XOIUOL.js → filter-evaluate-lCToXzZI.js} +2 -2
  358. package/dist/{filter-query-DMoKo82_.js → filter-query-CQ6d5GnQ.js} +1 -1
  359. package/dist/{flags-ClOQY-p5.js → flags-DF_SCqp5.js} +1 -1
  360. package/dist/flags-sdk/index.js +2 -2
  361. package/dist/{framework-B-1Ka0GW.d.ts → framework-DKA3fTHl.d.ts} +3 -3
  362. package/dist/{framework-CNhTg0th.js → framework-DXM1vNcV.js} +1 -1
  363. package/dist/hono/index.d.ts +4 -4
  364. package/dist/hono/index.js +2 -2
  365. package/dist/{index-CjnDGAJr.d.ts → index-5JSxY1MG.d.ts} +1 -1
  366. package/dist/{index-CYzckGOz.d.ts → index-Bt7_mxn0.d.ts} +9 -5
  367. package/dist/{index-BzW1T3oI.d.ts → index-ByF22_C6.d.ts} +3 -3
  368. package/dist/{index-BdzfjFnd.d.ts → index-C4sjewrr.d.ts} +9 -9
  369. package/dist/{index-DfgP-9eC.d.ts → index-CdMZQCYR.d.ts} +3 -3
  370. package/dist/{index-EieRHooI.d.ts → index-ClvuSZEz.d.ts} +2 -2
  371. package/dist/index.d.ts +2 -2
  372. package/dist/index.js +8 -7
  373. package/dist/{json-schema-Ca6gYbEP.js → json-schema-DHJxiizN.js} +1 -1
  374. package/dist/{knowledge-CV6OSirC.js → knowledge-tCrrU99q.js} +2 -2
  375. package/dist/list/index.d.ts +1 -1
  376. package/dist/list/index.js +3 -3
  377. package/dist/{list-query-BKy2zBaT.js → list-query-BnpA2BDg.js} +1 -1
  378. package/dist/{list-query-6vTI1VN6.d.ts → list-query-XYfUZb0j.d.ts} +1 -1
  379. package/dist/mapper/bin.js +5 -5
  380. package/dist/mcp/index.d.ts +4 -4
  381. package/dist/mcp/index.js +2 -2
  382. package/dist/mcp/sdk/index.d.ts +2 -2
  383. package/dist/mcp/sdk/index.js +1 -1
  384. package/dist/{messages-D4XWuRTj.js → messages-ecPW_nOv.js} +1 -1
  385. package/dist/{model-messages-CKG0zwdF.js → model-messages-CkZSDDHP.js} +1 -1
  386. package/dist/{money-codec-uV5WbT60.js → money-codec-BJuS2zEW.js} +1 -1
  387. package/dist/next/index.d.ts +14 -14
  388. package/dist/next/index.js +4 -4
  389. package/dist/{operations-DbNAgo7E.d.ts → operations-DC3wU3Sy.d.ts} +1 -1
  390. package/dist/orpc/index.d.ts +4 -4
  391. package/dist/orpc/index.js +1 -1
  392. package/dist/otel/index.js +5 -5
  393. package/dist/{ports-DO3tgLTo.d.ts → ports-BbBJVyS0.d.ts} +1 -1
  394. package/dist/{ports-CaVRXjxq.js → ports-DvpNseap.js} +1 -1
  395. package/dist/postgres/index.js +5 -4
  396. package/dist/{postgrest-executor-BFW4oWte.js → postgrest-executor-B_Uezhrm.js} +7 -3
  397. package/dist/powersync/index.d.ts +3 -3
  398. package/dist/powersync/index.js +1 -1
  399. package/dist/preset/index.d.ts +3 -3
  400. package/dist/{push-token-IFGi8jvd.d.ts → push-token-CPJfPFa2.d.ts} +1 -1
  401. package/dist/query/index.d.ts +1 -1
  402. package/dist/query/index.js +1 -1
  403. package/dist/{rate-limit-BPuUWz4U.js → rate-limit-fZ_d8gSE.js} +4 -5
  404. package/dist/react/index.d.ts +5 -5
  405. package/dist/react/index.js +1 -1
  406. package/dist/react/native/index.d.ts +1 -1
  407. package/dist/react/server.d.ts +6 -6
  408. package/dist/react/server.js +1 -1
  409. package/dist/{react-D-p70_wL.js → react-_D_CeZMk.js} +3 -3
  410. package/dist/react-router/index.d.ts +3 -3
  411. package/dist/react-router/index.js +2 -2
  412. package/dist/{read-set-BnKnofIj.js → read-set-B1sDib5O.js} +1 -1
  413. package/dist/realtime/index.d.ts +3 -3
  414. package/dist/realtime/index.js +2 -2
  415. package/dist/{record-bindings-DkBJpC5A.js → record-bindings-Z51mGfhB.js} +1 -1
  416. package/dist/{record-form-yMVvkPiQ.d.ts → record-form-BbZpwsEi.d.ts} +1 -1
  417. package/dist/records/index.d.ts +7 -7
  418. package/dist/records/index.js +3 -3
  419. package/dist/{resource-execute-LR71zWej.d.ts → resource-execute-CUG6xUuh.d.ts} +1 -1
  420. package/dist/{resource-types-eXuFxVt7.d.ts → resource-types-DjZ91WKA.d.ts} +1 -1
  421. package/dist/{resources-Dpz3h8Fe.d.ts → resources-6Ncdt9XT.d.ts} +1 -1
  422. package/dist/{rows-EGAbu7MG.js → rows-BdqXmiB-.js} +2 -2
  423. package/dist/{rows-Bh9QemqN.js → rows-jijHLVE_.js} +1 -1
  424. package/dist/{rrule-79K2c3Nr.js → rrule-C9Ot6ax8.js} +1 -1
  425. package/dist/{sales-lines-CP4Z_LyE.js → sales-lines-DO7oRu1o.js} +3 -3
  426. package/dist/{sales-shared-BKXXA5qV.js → sales-shared-BuTA8JK7.js} +2 -2
  427. package/dist/{schemas-BSTNfGsQ.js → schemas-CLOTvdsC.js} +1 -1
  428. package/dist/{scores-CsgM-dw7.js → scores-bY2Is0kx.js} +2 -2
  429. package/dist/server/index.d.ts +7 -7
  430. package/dist/server/index.js +5 -5
  431. package/dist/{server-types-BTBzrzOH.d.ts → server-types-BH6AjDBN.d.ts} +1 -1
  432. package/dist/{session-BgYGk_FS.d.ts → session-Y5SSYO2C.d.ts} +1 -1
  433. package/dist/{shared-C47zAh2A.js → shared-BeHTi8Fu.js} +1 -1
  434. package/dist/{sign-in-BTaRWS-L.js → sign-in-1FJiXXyG.js} +5 -5
  435. package/dist/{signatures-CNcoq392.js → signatures-CX1b4WHa.js} +2 -2
  436. package/dist/{signers-BAEzvTJ0.d.ts → signers-BKgmVh6A.d.ts} +2 -2
  437. package/dist/{signing-keys-DqI-gB_C.js → signing-keys-CWtpMask.js} +3 -3
  438. package/dist/solid/index.d.ts +6 -6
  439. package/dist/solid-start/index.d.ts +3 -3
  440. package/dist/solid-start/index.js +2 -2
  441. package/dist/spec/index.d.ts +1 -1
  442. package/dist/spec/index.js +1 -1
  443. package/dist/{spec-DTWkHzYZ.js → spec-BMvCCNnd.js} +1 -1
  444. package/dist/sql/index.d.ts +4 -4
  445. package/dist/sql/index.js +1 -1
  446. package/dist/{sql-B0wb7XA5.js → sql-BjjgwJKg.js} +9668 -6251
  447. package/dist/{sql-BPbbPzRJ.js → sql-CYt7EhH0.js} +2 -2
  448. package/dist/sqlite/index.d.ts +1 -1
  449. package/dist/sqlite/index.js +1 -1
  450. package/dist/{sso-Co2TbnEy.js → sso-DdDpJQzw.js} +2 -2
  451. package/dist/ssr/index.d.ts +1 -1
  452. package/dist/storage/index.js +3 -3
  453. package/dist/streams/index.js +1 -2
  454. package/dist/{subject-readers-F1xvRY-d.js → subject-readers-CeeJJOQ4.js} +1 -1
  455. package/dist/svelte/index.d.ts +6 -6
  456. package/dist/sveltekit/index.d.ts +4 -4
  457. package/dist/sveltekit/index.js +2 -2
  458. package/dist/{table-schema-CD8cJz_M.js → table-schema-C80xItaV.js} +1 -1
  459. package/dist/{tags-CXeJu332.d.ts → tags-Cjtcp5cN.d.ts} +1 -1
  460. package/dist/tanstack-db/index.d.ts +1 -1
  461. package/dist/tanstack-start/index.d.ts +3 -3
  462. package/dist/tanstack-start/index.js +2 -2
  463. package/dist/{temporal-DLZlWbOi.js → temporal-Dbo0fLzc.js} +12 -2
  464. package/dist/{temporal-required-Dy0GGD8E.js → temporal-required-DcLhnDhQ.js} +1 -1
  465. package/dist/{tenant-DzymQ9sv.d.ts → tenant-BHvMFNXl.d.ts} +1 -1
  466. package/dist/testing/index.d.ts +9 -9
  467. package/dist/testing/index.js +8 -8
  468. package/dist/{timeline-BMVOKokJ.d.ts → timeline-CEzj9v1z.d.ts} +3 -3
  469. package/dist/{topic-0uK4db_2.d.ts → topic-gTVjLGTk.d.ts} +2 -2
  470. package/dist/{types-DsRfiQ0v.d.ts → types-yj8VF4oY.d.ts} +5 -0
  471. package/dist/{undo-B3FQvuAd.js → undo-BbftL9-4.js} +2 -2
  472. package/dist/vercel-connect/index.js +1 -1
  473. package/dist/{verify-ZLFUdlqE.js → verify-7EucfCnv.js} +3 -3
  474. package/dist/{verify-DexkIx4t.d.ts → verify-B0KLBb3j.d.ts} +1 -1
  475. package/dist/vue/index.d.ts +6 -6
  476. package/dist/{watch-topic-CG3kOX-D.d.ts → watch-topic-C6HhbnVz.d.ts} +1 -1
  477. package/dist/wire-ChYn1g21.js +91 -0
  478. package/dist/workflow-sdk/builder/index.d.ts +2 -2
  479. package/dist/workflow-sdk/builder/index.js +1 -1
  480. package/dist/workflow-sdk/world/index.js +1 -1
  481. package/dist/yjs/index.d.ts +1 -1
  482. package/dist/yjs/index.js +1 -1
  483. package/package.json +1 -1
  484. package/skills/better-supabase/references/ui-recipes.md +1 -1
  485. package/dist/block-transport-PNea4lfQ.js +0 -84
  486. package/dist/cli/add-DyCrVejx.js +0 -1
  487. package/dist/cli/powersync-CYQ4Ljcz.js +0 -1
  488. package/dist/{topic-DXbA-jwr.js → topic-J9I3yu6f.js} +1 -1
@@ -1,5 +1,5 @@
1
1
  import { l as snapshotOf, n as toSession } from "./view-C8Ve14ja.js";
2
- import { t as withBetterSupabase } from "./composite-D24L5RIY.js";
2
+ import { t as withBetterSupabase } from "./composite-Dw5ofSF_.js";
3
3
  //#region src/server/framework.ts
4
4
  /**
5
5
  * Every caller: the framework factories guard per loader, action or route
@@ -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-BqaUwrIC.js";
5
- import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-BTBzrzOH.js";
4
+ import { t as BetterSupabase } from "../define-Lf6rI2QN.js";
5
+ import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-BH6AjDBN.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-eXuFxVt7.js";
11
- import { t as defineAction } from "../resource-execute-LR71zWej.js";
10
+ import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-DjZ91WKA.js";
11
+ import { t as defineAction } from "../resource-execute-CUG6xUuh.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,9 +1,9 @@
1
1
  import { r as dbErrorOf } from "../errors-BVFgt8BZ.js";
2
2
  import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
3
- import { a as unexpectedResponse, c as extendServer, n as flushEvents, s as createServer } from "../adapter-CfuBICuG.js";
3
+ import { a as unexpectedResponse, c as extendServer, n as flushEvents, s as createServer } from "../adapter-DZJZTY6g.js";
4
4
  import { l as snapshotOf, n as toSession } from "../view-C8Ve14ja.js";
5
5
  import { n as defaultExpose, o as respond, t as assertCookieRefresh } from "../respond-3RKp6VgU.js";
6
- import { t as withBetterSupabase } from "../composite-D24L5RIY.js";
6
+ import { t as withBetterSupabase } from "../composite-Dw5ofSF_.js";
7
7
  import { i as defineAction, t as defineResource } from "../resource-R3KToNze.js";
8
8
  import { i as requireCaller } from "../kit-DhlB-vv_.js";
9
9
  import { t as matchResource } from "../resources-DqIwoQsP.js";
@@ -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-CjHXhCck.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-sgrUjA3U.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;
@@ -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-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";
2
+ import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-DhoA7dsD.js";
3
+ import { nt as ReadSet } from "./define-Lf6rI2QN.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-sgrUjA3U.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. */
@@ -352,8 +352,12 @@ interface TenantQuery {
352
352
  declare function tenantsQuery(layout: BlockSqlLayout, installed: readonly string[], tenant: string): TenantQuery | undefined;
353
353
  //#endregion
354
354
  //#region src/sql/subject-registry.d.ts
355
- /** Every column a registry entry names, keyed by the config path that names it. */
356
- declare function subjectColumns(entry: SubjectConfig): readonly (readonly [path: string, column: string])[];
355
+ /**
356
+ * Every column a registry entry names, keyed by the config path that names it.
357
+ * A subject without `tenant` gets the tenant column of `tenant`, the noun
358
+ * `blocks.memberships.entities.organization` renames the tenant to.
359
+ */
360
+ declare function subjectColumns(entry: SubjectConfig, tenant?: string): readonly (readonly [path: string, column: string])[];
357
361
  //#endregion
358
362
  //#region src/sql/schema-scan.d.ts
359
363
  /** Privileges one role gets on a table, from the policies that name it. */
@@ -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-BqaUwrIC.js";
3
+ import { mt as QuerySpec } from "./define-Lf6rI2QN.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-0uK4db_2.js";
6
- import { n as TopicPort } from "./watch-topic-CG3kOX-D.js";
5
+ import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-gTVjLGTk.js";
6
+ import { n as TopicPort } from "./watch-topic-C6HhbnVz.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,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-BqaUwrIC.js";
4
+ import { mt as QuerySpec } from "./define-Lf6rI2QN.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-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";
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-ClvuSZEz.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-gTVjLGTk.js";
9
+ import { t as AuthSnapshot } from "./bind-CFsctoFJ.js";
10
10
  import { t as AuthSession } from "./view-DyFdMCqg.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";
11
+ import { r as LiveCountSeed, v as RelayClientOptions } from "./index-ByF22_C6.js";
12
+ import { n as Controller } from "./controller-B6vWdKSa.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-DBgDCITw.js";
14
+ import { t as BlockEnv } from "./block-env-BrUNeuJ_.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-yMVvkPiQ.js";
16
+ import { s as RecordFormValues, t as RecordForm } from "./record-form-BbZpwsEi.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";
@@ -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-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";
5
+ import { t as BetterSupabase } from "./define-Lf6rI2QN.js";
6
+ import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-BbBJVyS0.js";
7
+ import { i as BindClientOptions, r as BetterClient } from "./bind-CFsctoFJ.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-BqaUwrIC.js";
6
+ import { A as OffsetPageArgs, At as GetArgs, B as Returned, C as FindExt, Ct as AggregateResult, G as UpsertArgs, Ot as CountArgs, Pt as ListArgs, Qt as CacheAdapter, S as DeleteExt, Vt as Payload, W as UpdateArgs, _ as CursorPage, bt as AggregateArgs, j as OffsetRangeArgs, k as OffsetPage, mt as QuerySpec, pt as InferResult, q as WriteArgs, t as BetterSupabase, v as CursorPageArgs, w as GetKey, x as DeleteArgs, y as Db } from "./define-Lf6rI2QN.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-CRwHsxZO.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-DCAiOrNX.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-BqaUwrIC.js";
9
+ import { $ as SearchArgs, $t as CacheTarget, A as OffsetPageArgs, At as GetArgs, B as Returned, Bt as OrderByInput, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, Dt as CountArg, E as ManyResult, Et as ColumnOrderByArg, F as PageOf, Ft as MeasureArg, G as UpsertArgs, Gt as SelectArg, Ht as ReadArgs, It as MeasureKey, J as WriteManyArgs, Jt as WhereArg, K as UpsertManyArgs, Kt as SortDirection, Lt as MutableWhere, Mt as IncludeArgs, Nt as JsonPathOps, Ot as CountArgs, Pt as ListArgs, Q as recordStats, Qt as CacheAdapter, R as Repository, Rt as NumericMeasureArg, S as DeleteExt, St as AggregateOrderByArg, Tt as ColumnOrderBy, U as RpcOptions, Ut as RelationMeasureArg, V as RowFilter, Vt as Payload, W as UpdateArgs, Wt as RequestArgs, X as EMPTY_STATS, Xt as BucketRegistry, Y as DbStats, Yt as WhereInput, Z as StatsRecorder, Zt as BucketsHelper, _ as CursorPage, _t as TableSpecs, a as explainPostgrest, at as ReadSetParamType, b as DbHelpers, bt as AggregateArgs, c as RpcDefinition, ct as ReadSetParams, dt as isReadSet, en as MemoryCache, f as BlocksHelper, ft as readSetTables, g as ConflictTarget, gt as Specs, h as DbOf, ht as ReadMethod, i as PostgrestExecutorOptions, in as rpcCacheTargets, it as ReadSetOptions, j as OffsetRangeArgs, jt as IncludeArg, k as OffsetPage, kt as FieldFilter, l as SupabaseOptions, lt as ReadSetResult, m as DbExtras, mt as QuerySpec, n as defineSupabase, nn as memoryCache, nt as ReadSet, o as postgrestExecutor, ot as ReadSetParamTypes, p as DbBlockSource, pt as InferResult, q as WriteArgs, qt as SortSpec, r as PostgrestClientLike, rn as rowKey, rt as ReadSetAuth, s as ConnectOptions, st as ReadSetParamValue, t as BetterSupabase, tn as cacheTargetOf, tt as InferReadSetParams, u as ApiOptions, ut as defineReadSet, v as CursorPageArgs, vt as isQuerySpec, w as GetKey, wt as AggregateRow, x as DeleteArgs, xt as AggregateOrderBy, y as Db, yt as specTables, z as RepositoryOf, zt as OrderByArg } from "./define-Lf6rI2QN.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";
@@ -204,4 +204,4 @@ export declare function toCamel(name: string): string;
204
204
  /** `firstName` to `first_name`. */
205
205
  export declare function toSnake(name: string): string;
206
206
  //#endregion
207
- export { type AccessBucketPolicy, type AccessPolicySql, type AccessTopicPolicy, type Actor, type AggregateArgs, type AggregateFn, type AggregateOrderBy, type AggregateOrderByArg, type AggregateResult, type AggregateRow, type Aggregation, type AnyFunctions, type AnyModels, type AnyPlugin, type ApplyExtension, AsyncResult, type AuthEvent, type AuthOutageEvent, type BetterResultApi, type BetterResultErr, type BetterResultErrors, type BetterResultOk, type BetterResultValue, BetterSupabase, type BetterSupabaseEvents, type BlockEvent, type BlockEventType, type BlockProblemOptions, type BlocksHelper, type BucketMeta, type BucketPolicyName, type BucketRegistry, type BucketsHelper, type CacheAdapter, type CacheTarget, type CallOptions, type Casing, type CheckConstraint, type ClaimsMeta, type Codec, type ColumnMeta, type ColumnOp, type ColumnOrderBy, type ColumnOrderByArg, type Compiler, type Condition, type ConflictTarget, type ConnectOptions, type CountArg, type CountArgs, type CountMode, type CursorPage, type CursorPageArgs, type DatabaseOf, type Db, type DbBlockSource, type DbError, type DbErrorClass, type DbErrorClasses, type DbErrorKind, type DbErrorKinds, type DbErrorMatchers, type DbErrorOf, DbException, type DbExtras, type DbHelpers, type DbOf, type DbStats, type DeleteArgs, type DeleteExt, type DeleteOp, EMPTY_STATS, type EnrichDatabase, type Err, type ErrorEvent, type ErrorMapper, type ErrorMessages, type EventHandler, EventHub, type EventMap, type EventName, type Events, type ExecuteContext, type ExecuteResult, type Executor, type ExtensionOf, type ExtensionsOf, type FieldFilter, type FieldSpec, type FindExt, type Flags, type ForeignKeyConstraint, type FunctionMeta, type FunctionResult, type FunctionSignature, type FunctionSource, type FunctionTypes, type FunctionsOf, type GeneratedColumns, type GetArgs, type GetKey, type HasFlag, type HookArgs, type Include, type IncludeArg, type IncludeArgs, type InferReadSetParams, type InferResult, type Insert, type InsertOp, type JsonPathOps, type ListArgs, type LogFields, type Logger, type ManyResult, type ManyWriteArgs, type MappedDbError, type Measure, type MeasureArg, type MeasureKey, type MemoryCache, type ModelFlags, type ModelTypes, type ModelsOf, type MutableWhere, type MutationEvent, type MutationIntent, type MutationKind, type MutationNotice, type MutationOp, type NoExtension, type NumericMeasureArg, type OffsetPage, type OffsetPageArgs, type OffsetRangeArgs, type Ok, type Operation, type OrderByArg, type OrderByInput, type OrderTerm, PLUGIN_API_VERSION, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PageOf, type Payload, type PlanFilter, type PlanLimit, type PlanOrder, type Plugin, type Policy, type PolicyDecision, type PostgrestClientLike, type PostgrestExecutorOptions, type PostgrestPlan, type PrimaryKeyColumn, type PrimaryKeyValue, type ProblemDetails, type ProblemFormat, type ProblemOptions, type ProblemResponseOptions, type Quantifier, type QueryEvent, type QuerySpec, type RawDbError, type ReadArgs, type ReadMethod, type ReadSet, type ReadSetAuth, type ReadSetOptions, type ReadSetParamType, type ReadSetParamTypes, type ReadSetParamValue, type ReadSetParams, type ReadSetResult, type RealtimeTableMeta, type RecordRef, type RefreshEvent, type RelationMeasureArg, type RelationMeta, type RelationTypes, type Relations, type Repository, type RepositoryApi, type RepositoryExtension, type RepositoryOf, type RequestArgs, type RequestContext, type Result, type ResultColumn, type Returned, type Row, type RowFilter, type RpcContext, type RpcDefinition, type RpcNotice, type RpcOptions, SPEC_PINS, type Schema, type SchemaMeta, type ScopeFor, type SearchArgs, type SelectArg, type SelectColumn, type SelectOp, type Selection, type Simplify, type SortDirection, type SortSpec, type Specs, type StandardJSONSchemaV1, type StandardSchemaV1, StatsRecorder, type StoragePath, type SubjectTypeOf, type SupabaseOptions, type TableFlags, type TableKey, type TableMeta, type TableRepositoryExtension, type TableSchema, type TableSchemaSpec, type TableSpecs, type TableValidators, type UniqueConstraint, type UniqueKeyName, type UniqueWhere, type Update, type UpdateArgs, type UpdateOp, type UpsertArgs, type UpsertManyArgs, type ValidationIssue, type ValidationOptions, type WhereArg, type WhereInput, type WithExtension, type WritableColumns, type WriteArgs, type WriteManyArgs, and, cacheTargetOf, column, compilePostgrest, consoleLogger, dbError, defineBetterResultErrors, definePlugin, defineReadSet, defineSupabase, err, escapeLike, explainPostgrest, fromBetterResult, fromProblem, isCheck, isConflict, isDbError, isForeignKey, isProblem, isQuerySpec, isReadSet, mapDbError, matchDbError, memoryCache, not, ok, or, postgrestCompiler, postgrestExecutor, problemResponse, readSetTables, recordStats, rowKey, rpcCacheTargets, silentLogger, specTables, statusOf, tableSchema, toBetterResult, toDbError, toProblem, validate };
207
+ export { type AccessBucketPolicy, type AccessPolicySql, type AccessTopicPolicy, type Actor, type AggregateArgs, type AggregateFn, type AggregateOrderBy, type AggregateOrderByArg, type AggregateResult, type AggregateRow, type Aggregation, type AnyFunctions, type AnyModels, type AnyPlugin, type ApiOptions, type ApplyExtension, AsyncResult, type AuthEvent, type AuthOutageEvent, type BetterResultApi, type BetterResultErr, type BetterResultErrors, type BetterResultOk, type BetterResultValue, BetterSupabase, type BetterSupabaseEvents, type BlockEvent, type BlockEventType, type BlockProblemOptions, type BlocksHelper, type BucketMeta, type BucketPolicyName, type BucketRegistry, type BucketsHelper, type CacheAdapter, type CacheTarget, type CallOptions, type Casing, type CheckConstraint, type ClaimsMeta, type Codec, type ColumnMeta, type ColumnOp, type ColumnOrderBy, type ColumnOrderByArg, type Compiler, type Condition, type ConflictTarget, type ConnectOptions, type CountArg, type CountArgs, type CountMode, type CursorPage, type CursorPageArgs, type DatabaseOf, type Db, type DbBlockSource, type DbError, type DbErrorClass, type DbErrorClasses, type DbErrorKind, type DbErrorKinds, type DbErrorMatchers, type DbErrorOf, DbException, type DbExtras, type DbHelpers, type DbOf, type DbStats, type DeleteArgs, type DeleteExt, type DeleteOp, EMPTY_STATS, type EnrichDatabase, type Err, type ErrorEvent, type ErrorMapper, type ErrorMessages, type EventHandler, EventHub, type EventMap, type EventName, type Events, type ExecuteContext, type ExecuteResult, type Executor, type ExtensionOf, type ExtensionsOf, type FieldFilter, type FieldSpec, type FindExt, type Flags, type ForeignKeyConstraint, type FunctionMeta, type FunctionResult, type FunctionSignature, type FunctionSource, type FunctionTypes, type FunctionsOf, type GeneratedColumns, type GetArgs, type GetKey, type HasFlag, type HookArgs, type Include, type IncludeArg, type IncludeArgs, type InferReadSetParams, type InferResult, type Insert, type InsertOp, type JsonPathOps, type ListArgs, type LogFields, type Logger, type ManyResult, type ManyWriteArgs, type MappedDbError, type Measure, type MeasureArg, type MeasureKey, type MemoryCache, type ModelFlags, type ModelTypes, type ModelsOf, type MutableWhere, type MutationEvent, type MutationIntent, type MutationKind, type MutationNotice, type MutationOp, type NoExtension, type NumericMeasureArg, type OffsetPage, type OffsetPageArgs, type OffsetRangeArgs, type Ok, type Operation, type OrderByArg, type OrderByInput, type OrderTerm, PLUGIN_API_VERSION, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PageOf, type Payload, type PlanFilter, type PlanLimit, type PlanOrder, type Plugin, type Policy, type PolicyDecision, type PostgrestClientLike, type PostgrestExecutorOptions, type PostgrestPlan, type PrimaryKeyColumn, type PrimaryKeyValue, type ProblemDetails, type ProblemFormat, type ProblemOptions, type ProblemResponseOptions, type Quantifier, type QueryEvent, type QuerySpec, type RawDbError, type ReadArgs, type ReadMethod, type ReadSet, type ReadSetAuth, type ReadSetOptions, type ReadSetParamType, type ReadSetParamTypes, type ReadSetParamValue, type ReadSetParams, type ReadSetResult, type RealtimeTableMeta, type RecordRef, type RefreshEvent, type RelationMeasureArg, type RelationMeta, type RelationTypes, type Relations, type Repository, type RepositoryApi, type RepositoryExtension, type RepositoryOf, type RequestArgs, type RequestContext, type Result, type ResultColumn, type Returned, type Row, type RowFilter, type RpcContext, type RpcDefinition, type RpcNotice, type RpcOptions, SPEC_PINS, type Schema, type SchemaMeta, type ScopeFor, type SearchArgs, type SelectArg, type SelectColumn, type SelectOp, type Selection, type Simplify, type SortDirection, type SortSpec, type Specs, type StandardJSONSchemaV1, type StandardSchemaV1, StatsRecorder, type StoragePath, type SubjectTypeOf, type SupabaseOptions, type TableFlags, type TableKey, type TableMeta, type TableRepositoryExtension, type TableSchema, type TableSchemaSpec, type TableSpecs, type TableValidators, type UniqueConstraint, type UniqueKeyName, type UniqueWhere, type Update, type UpdateArgs, type UpdateOp, type UpsertArgs, type UpsertManyArgs, type ValidationIssue, type ValidationOptions, type WhereArg, type WhereInput, type WithExtension, type WritableColumns, type WriteArgs, type WriteManyArgs, and, cacheTargetOf, column, compilePostgrest, consoleLogger, dbError, defineBetterResultErrors, definePlugin, defineReadSet, defineSupabase, err, escapeLike, explainPostgrest, fromBetterResult, fromProblem, isCheck, isConflict, isDbError, isForeignKey, isProblem, isQuerySpec, isReadSet, mapDbError, matchDbError, memoryCache, not, ok, or, postgrestCompiler, postgrestExecutor, problemResponse, readSetTables, recordStats, rowKey, rpcCacheTargets, silentLogger, specTables, statusOf, tableSchema, toBetterResult, toDbError, toProblem, validate };
package/dist/index.js CHANGED
@@ -1,24 +1,25 @@
1
1
  import { t as DbException } from "./db-exception-Lngc1W49.js";
2
2
  import { a as isConflict, c as mapDbError, i as isCheck, l as matchDbError, n as dbError, o as isDbError, s as isForeignKey, u as statusOf } from "./errors-BVFgt8BZ.js";
3
- import { a as isPlainTime, i as isPlainDateTime, l as provideTemporal, n as isInstant, o as isZonedDateTime, r as isPlainDate } from "./temporal-DLZlWbOi.js";
3
+ import { a as isPlainTime, i as isPlainDateTime, l as provideTemporal, n as isInstant, o as isZonedDateTime, r as isPlainDate } from "./temporal-Dbo0fLzc.js";
4
4
  import { t as escapeLike } from "./escape-like-DHfx6jRr.js";
5
- import { a as decodeValue, c as tableMeta, o as encodeValue, s as defineSchema } from "./build-BFC8nFiL.js";
5
+ import { i as tableMeta, r as defineSchema } from "./build-DbIRFcHQ.js";
6
6
  import { i as or, n as column, r as not, t as and } from "./types-R6syp1el.js";
7
+ import { o as encodeValue, r as decodeValue } from "./wire-ChYn1g21.js";
7
8
  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-Djgn3HQQ.js";
9
+ 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-D-dLADd5.js";
9
10
  import { n as touchedTables, t as invalidationTargets } from "./tables-Cb-3_VWc.js";
10
11
  import { n as silentLogger, t as consoleLogger } from "./logger-glM28NVN.js";
11
12
  import { t as EventHub } from "./events-D6IZ5CE8.js";
12
13
  import { r as definePlugin, t as PLUGIN_API_VERSION } from "./plugin-AKwwe2gF.js";
13
14
  import { t as simplify } from "./simplify-DDO0j0LI.js";
14
- import { n as postgrestExecutor, s as compilePostgrest, t as explainPostgrest } from "./postgrest-executor-BFW4oWte.js";
15
- import { n as isQuerySpec, r as specTables } from "./spec-DTWkHzYZ.js";
16
- import { c as readSetTables, i as defineReadSet, o as isReadSet } from "./read-set-BnKnofIj.js";
15
+ import { n as postgrestExecutor, s as compilePostgrest, t as explainPostgrest } from "./postgrest-executor-B_Uezhrm.js";
16
+ import { n as isQuerySpec, r as specTables } from "./spec-BMvCCNnd.js";
17
+ import { c as readSetTables, i as defineReadSet, o as isReadSet } from "./read-set-B1sDib5O.js";
17
18
  import { n as validate } from "./standard-BA3mLh6w.js";
18
19
  import { n as StatsRecorder, r as recordStats, t as EMPTY_STATS } from "./stats-BHl1-zj9.js";
19
20
  import { n as toDb, t as toApp } from "./casing-DdFWEtqr.js";
20
21
  import { c as toProblem, i as isProblem, n as PROBLEM_TYPE_BASE, o as problemResponse, r as fromProblem, t as PROBLEM_CONTENT_TYPE } from "./problem-Bf0cJ7tk.js";
21
- import { n as tableSchema } from "./table-schema-CD8cJz_M.js";
22
+ import { n as tableSchema } from "./table-schema-C80xItaV.js";
22
23
  import { t as SPEC_PINS } from "./spec-pins-D3zDek-u.js";
23
24
  import { n as scopeOperation, r as scopeSelection, t as scopeCondition } from "./scope-DgWjuXUw.js";
24
25
  //#region src/core/error-messages.ts
@@ -1,5 +1,5 @@
1
1
  import { t as isList } from "./guards-6F2bCtQR.js";
2
- import { i as tableJsonSchema, r as fieldJsonSchema, t as forTarget } from "./table-schema-CD8cJz_M.js";
2
+ import { i as tableJsonSchema, r as fieldJsonSchema, t as forTarget } from "./table-schema-C80xItaV.js";
3
3
  import { i as entityNames } from "./entity-naming-Dtyq5sKE.js";
4
4
  //#region src/generators/shared.ts
5
5
  const INTEGER$1 = /* @__PURE__ */ new Set([
@@ -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-DnCtsKtv.js";
7
- import { r as withBlockHooks } from "./block-hooks-DbIpkq7a.js";
6
+ import { A as recordsOf, L as textOf, M as run, O as recordOf, f as errorText, h as instantOf, k as recordOrEmpty, n as applyTemporal, o as blockCall, p as injectableOf, w as optionalText } from "./block-helpers-B0f0ZVb5.js";
7
+ import { r as withBlockHooks } from "./block-hooks-DKtz0HRh.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-6vTI1VN6.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-XYfUZb0j.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,4 +1,4 @@
1
- import { n as FILTER_OPERATOR_LABELS, o as decodeFilterQuery, s as encodeFilterQuery, t as FILTER_OPERATORS } from "../filter-query-DMoKo82_.js";
2
- import { n as defineListQuery, t as UNSET } from "../list-query-BKy2zBaT.js";
3
- import { t as evaluateFilterQuery } from "../filter-evaluate-w1XOIUOL.js";
1
+ import { n as FILTER_OPERATOR_LABELS, o as decodeFilterQuery, s as encodeFilterQuery, t as FILTER_OPERATORS } from "../filter-query-CQ6d5GnQ.js";
2
+ import { n as defineListQuery, t as UNSET } from "../list-query-BnpA2BDg.js";
3
+ import { t as evaluateFilterQuery } from "../filter-evaluate-lCToXzZI.js";
4
4
  export { FILTER_OPERATORS, FILTER_OPERATOR_LABELS, UNSET, decodeFilterQuery, defineListQuery, encodeFilterQuery, evaluateFilterQuery };
@@ -1,4 +1,4 @@
1
- import { c as filterFieldsOf, i as checkFilterQuery, l as filterJsonSchema, o as decodeFilterQuery, p as toFilterFields, s as encodeFilterQuery, u as filterWhere } from "./filter-query-DMoKo82_.js";
1
+ import { c as filterFieldsOf, i as checkFilterQuery, l as filterJsonSchema, o as decodeFilterQuery, p as toFilterFields, s as encodeFilterQuery, u as filterWhere } from "./filter-query-CQ6d5GnQ.js";
2
2
  //#region src/list/list-query.ts
3
3
  /** Facet value meaning "not set": filters with `is null`. */
4
4
  const UNSET = "__unset__";
@@ -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-BqaUwrIC.js";
3
+ import { A as OffsetPageArgs, C as FindExt, Gt as SelectArg, Vt as Payload, Yt as WhereInput, _ as CursorPage, jt as IncludeArg, k as OffsetPage, t as BetterSupabase, v as CursorPageArgs, z as RepositoryOf, zt as OrderByArg } from "./define-Lf6rI2QN.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-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";
1
+ import { t as VERSION } from "../cli/version-BVg2Z6yv.js";
2
+ import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-DDKao2Va.js";
3
+ import { t as loadSnapshot } from "../cli/snapshot-CZb3uVKE.js";
4
+ import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-9m70qveo.js";
5
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-Q9We297z.js";
7
+ import { s as schemaStampPath } from "../cli/content-mapper-DgSTl-DL.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-DbNAgo7E.js";
2
+ import { t as OperationTable } from "../operations-DC3wU3Sy.js";
3
3
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.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";
4
+ import { t as BetterSupabase } from "../define-Lf6rI2QN.js";
5
+ import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BH6AjDBN.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-eXuFxVt7.js";
8
+ import { l as ResourceRouteOptions } from "../resource-types-DjZ91WKA.js";
9
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
10
10
  //#region src/mcp/dialect.d.ts
11
11
  /**
package/dist/mcp/index.js CHANGED
@@ -4,9 +4,9 @@ import { t as base64ToText } from "../base64-B9Wlsdj7.js";
4
4
  import { n as validate } from "../standard-BA3mLh6w.js";
5
5
  import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "../problem-Bf0cJ7tk.js";
6
6
  import { t as SPEC_PINS } from "../spec-pins-D3zDek-u.js";
7
- import { r as toDraft07, t as buildJsonSchema } from "../json-schema-Ca6gYbEP.js";
7
+ import { r as toDraft07, t as buildJsonSchema } from "../json-schema-DHJxiizN.js";
8
8
  import { r as operationPermission, t as OPERATION_PREFIXES } from "../operations-DVHRHvv6.js";
9
- import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CfuBICuG.js";
9
+ import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-DZJZTY6g.js";
10
10
  import { n as checkEach, r as checkPermission } from "../authorizer-BGhXaDmo.js";
11
11
  import { n as jsonResponse, t as jsonReplacer } from "../json-DaByVJpw.js";
12
12
  import { i as guard, n as defaultExpose, s as settle } from "../respond-3RKp6VgU.js";
@@ -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-BqaUwrIC.js";
6
- import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-BTBzrzOH.js";
5
+ import { t as BetterSupabase } from "../../define-Lf6rI2QN.js";
6
+ import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-BH6AjDBN.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,7 +1,7 @@
1
1
  import { n as dbError } from "../../errors-BVFgt8BZ.js";
2
2
  import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
3
3
  import { i as delegationOf } from "../../actor-go7p9-CJ.js";
4
- import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-CfuBICuG.js";
4
+ import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-DZJZTY6g.js";
5
5
  import { i as guard } from "../../respond-3RKp6VgU.js";
6
6
  import { t as withExtra } from "../../extra-CGQ2_q3S.js";
7
7
  import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../../http-DzbloBR-.js";
@@ -1,6 +1,6 @@
1
1
  import { n as dbError } from "./errors-BVFgt8BZ.js";
2
2
  import { n as isRecord } from "./guards-6F2bCtQR.js";
3
- import { s as nowInstant } from "./temporal-DLZlWbOi.js";
3
+ import { s as nowInstant } from "./temporal-Dbo0fLzc.js";
4
4
  import { o as problemResponse } from "./problem-Bf0cJ7tk.js";
5
5
  //#region src/ai-sdk/gateway.ts
6
6
  const count = (value) => typeof value === "number" && Number.isFinite(value) ? value : 0;
@@ -1,5 +1,5 @@
1
1
  import { n as isRecord } from "./guards-6F2bCtQR.js";
2
- import { a as meta } from "./messages-D4XWuRTj.js";
2
+ import { a as meta } from "./messages-ecPW_nOv.js";
3
3
  //#region src/ai-sdk/model-messages.ts
4
4
  const FETCHABLE_URL = /^(?:https?|data):/u;
5
5
  function fileUrl(data) {
@@ -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-DnCtsKtv.js";
2
+ import { S as optionalBigintOf, a as bigintOf } from "./block-helpers-B0f0ZVb5.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-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";
5
+ import { Qt as CacheAdapter, Y as DbStats, mt as QuerySpec, nt as ReadSet, t as BetterSupabase } from "../define-Lf6rI2QN.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-BH6AjDBN.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-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";
9
+ import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-DCAiOrNX.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-ClvuSZEz.js";
11
+ import { t as tenantOf } from "../tenant-BHvMFNXl.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-BgYGk_FS.js";
14
+ import { t as AuthOutageHook } from "../session-Y5SSYO2C.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-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";
17
+ import { c as ListParseOptions, m as ListSearchParams } from "../list-query-XYfUZb0j.js";
18
+ import { r as LiveCountSeed, t as CountRunner } from "../index-ByF22_C6.js";
19
+ import { r as MembershipClaim } from "../entitlements-BPaPd3MD.js";
20
+ import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-DjZ91WKA.js";
21
+ import { t as ResourceMap } from "../resources-6Ncdt9XT.js";
22
+ import { t as defineAction } from "../resource-execute-CUG6xUuh.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-CXeJu332.js";
25
- import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-BMVOKokJ.js";
24
+ import { i as tagFor, t as TagOptions } from "../tags-Cjtcp5cN.js";
25
+ import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-CEzj9v1z.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";
@@ -3,22 +3,22 @@ import { n as dbError } from "../errors-BVFgt8BZ.js";
3
3
  import { t as isList } from "../guards-6F2bCtQR.js";
4
4
  import { t as isStorageApi } from "../storage-api-Dg78Wqsg.js";
5
5
  import { r as err } from "../result-ntFBW2p2.js";
6
- import { o as isReadSet } from "../read-set-BnKnofIj.js";
6
+ import { o as isReadSet } from "../read-set-B1sDib5O.js";
7
7
  import { n as validate } from "../standard-BA3mLh6w.js";
8
8
  import { n as StatsRecorder, t as EMPTY_STATS } from "../stats-BHl1-zj9.js";
9
9
  import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
10
10
  import { i as claimsOf } from "../claims-Bp9My7XP.js";
11
11
  import { t as supportOf } from "../support-view-g4YLBeqX.js";
12
- import { n as createBlockClient } from "../create-blocks-0pWKQ6x4.js";
12
+ import { n as createBlockClient } from "../create-blocks-CUS28FfS.js";
13
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";
14
14
  import { n as methodOf } from "../block-method-C9hWdHom.js";
15
15
  import { t as tenantOf } from "../tenant-BgIiMQpo.js";
16
16
  import { t as loadTimeline } from "../timeline--VU3A1e4.js";
17
- import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents, p as supportCookieMaxAge, r as handle, s as createServer, t as bearerRequest, v as outageResponse } from "../adapter-CfuBICuG.js";
17
+ import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents, p as supportCookieMaxAge, r as handle, s as createServer, t as bearerRequest, v as outageResponse } from "../adapter-DZJZTY6g.js";
18
18
  import { g as sessionCookieName, t as clientIp, v as writeSession } from "../resolve-B0mW2m7f.js";
19
19
  import { a as isSessionSnapshot, f as checkAal, i as authzVersionOf, n as toSession, o as issuedAtOf, s as sessionCacheKey } from "../view-C8Ve14ja.js";
20
20
  import { i as guard, n as defaultExpose, s as settle } from "../respond-3RKp6VgU.js";
21
- import { i as supportSessions, n as passwordGrant, r as safeRedirectPath, t as needsMfa } from "../sign-in-BTaRWS-L.js";
21
+ import { i as supportSessions, n as passwordGrant, r as safeRedirectPath, t as needsMfa } from "../sign-in-1FJiXXyG.js";
22
22
  import { i as defineAction } from "../resource-R3KToNze.js";
23
23
  import { r as tagFor, t as cacheTagsOf } from "../tags-CIZTqtlY.js";
24
24
  import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-DhlB-vv_.js";
@@ -1,4 +1,4 @@
1
- import { r as AuthorizationOperation } from "./authorization-08F77H2w.js";
1
+ import { r as AuthorizationOperation } from "./authorization-DhoA7dsD.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>>;
@@ -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-BqaUwrIC.js";
6
- import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BTBzrzOH.js";
5
+ import { t as BetterSupabase } from "../define-Lf6rI2QN.js";
6
+ import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BH6AjDBN.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-eXuFxVt7.js";
10
+ import { a as ResourceHandler } from "../resource-types-DjZ91WKA.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-BIw5g_4V.js";
12
+ import { t as Api } from "../api-Cj4W_pqT.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
@@ -6,7 +6,7 @@ import { c as toProblem } from "../problem-Bf0cJ7tk.js";
6
6
  import { i as claimsOf } from "../claims-Bp9My7XP.js";
7
7
  import { t as callWithInput } from "../block-method-C9hWdHom.js";
8
8
  import { t as tenantOf } from "../tenant-BgIiMQpo.js";
9
- import { c as extendServer, n as flushEvents, s as createServer, x as refreshFor } from "../adapter-CfuBICuG.js";
9
+ import { c as extendServer, n as flushEvents, s as createServer, x as refreshFor } from "../adapter-DZJZTY6g.js";
10
10
  import { r as checkPermission } from "../authorizer-BGhXaDmo.js";
11
11
  import { n as toSession } from "../view-C8Ve14ja.js";
12
12
  import { i as guard, n as defaultExpose, s as settle, t as assertCookieRefresh } from "../respond-3RKp6VgU.js";
@@ -1,6 +1,6 @@
1
1
  import { r as definePlugin } from "../plugin-AKwwe2gF.js";
2
2
  import { t as SPEC_PINS } from "../spec-pins-D3zDek-u.js";
3
- import { i as blockEventAttributes } from "../block-events-pBXPzwnW.js";
3
+ import { i as blockEventAttributes } from "../block-events-IWAyafO3.js";
4
4
  import { SpanKind, SpanStatusCode, context, metrics, propagation, trace } from "@opentelemetry/api";
5
5
  //#endregion
6
6
  //#region src/otel/index.ts
@@ -40,9 +40,9 @@ function systemOf(executor) {
40
40
  * ```
41
41
  */
42
42
  function otel(options = {}) {
43
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.20.0");
43
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.21.0");
44
44
  let histogram;
45
- if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.20.0")).createHistogram("db.client.operation.duration", {
45
+ if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.21.0")).createHistogram("db.client.operation.duration", {
46
46
  unit: "s",
47
47
  description: "Duration of database client operations.",
48
48
  advice: { explicitBucketBoundaries: [
@@ -219,7 +219,7 @@ function otel(options = {}) {
219
219
  * `betterSupabase.events`. Returns a function that stops listening.
220
220
  */
221
221
  function traceAuth(betterSupabase, options = {}) {
222
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.20.0");
222
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.21.0");
223
223
  const offAuth = betterSupabase.events.on("auth", (event) => {
224
224
  const span = tracer.startSpan("auth.resolve", {
225
225
  kind: SpanKind.INTERNAL,
@@ -257,7 +257,7 @@ function traceAuth(betterSupabase, options = {}) {
257
257
  * an error status. Returns a function that stops listening.
258
258
  */
259
259
  function traceBlockEvents(betterSupabase, options = {}) {
260
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.20.0");
260
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.21.0");
261
261
  return betterSupabase.events.on("block", (event) => {
262
262
  const attributes = {
263
263
  ...options.attributes,
@@ -1,5 +1,5 @@
1
1
  import { t as AsyncResult } from "./result-DZeA5KS6.js";
2
- import { n as TopicPort } from "./watch-topic-CG3kOX-D.js";
2
+ import { n as TopicPort } from "./watch-topic-C6HhbnVz.js";
3
3
  import { SupabaseClient } from "@supabase/supabase-js";
4
4
  //#region src/client/ports.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { a as ok, r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
2
- import { n as postgrestExecutor } from "./postgrest-executor-BFW4oWte.js";
2
+ import { n as postgrestExecutor } from "./postgrest-executor-B_Uezhrm.js";
3
3
  import { n as decodeJwtPayload } from "./base64-B9Wlsdj7.js";
4
4
  import { i as userContext } from "./impersonation-DM3oWNoD.js";
5
5
  import { n as hasAuthModule, r as claimedTenant } from "./auth-module-BbmX-N4L.js";