better-supabase 0.32.0 → 0.34.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 (457) hide show
  1. package/README.md +11 -10
  2. package/codemods/0.32.json +31 -0
  3. package/dist/{adapter-CPPN80mx.js → adapter-CWzyKepA.js} +45 -16
  4. package/dist/{agents-BEiBtYmh.d.ts → agents-DXiOPB3V.d.ts} +4 -4
  5. package/dist/{ai-cache-FMYzw7lW.d.ts → ai-cache-CLiAXCPH.d.ts} +4 -4
  6. package/dist/{ai-chat-B_P--Ie2.d.ts → ai-chat-DlcBdOhJ.d.ts} +4 -4
  7. package/dist/{ai-schedules-D_q1iclL.d.ts → ai-schedules-Drx2KRTn.d.ts} +5 -5
  8. package/dist/ai-sdk/agents/index.d.ts +6 -6
  9. package/dist/ai-sdk/batches/index.d.ts +3 -3
  10. package/dist/ai-sdk/cache/index.d.ts +1 -1
  11. package/dist/ai-sdk/chat/index.d.ts +2 -2
  12. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  13. package/dist/ai-sdk/files/index.d.ts +1 -1
  14. package/dist/ai-sdk/index.d.ts +5 -5
  15. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  16. package/dist/ai-sdk/memory/index.d.ts +3 -3
  17. package/dist/ai-sdk/workflow/index.d.ts +3 -3
  18. package/dist/{api-keys-u2sXB-CZ.d.ts → api-keys-DbIbkGxx.d.ts} +4 -4
  19. package/dist/{api-CwzVbbw4.d.ts → api-myq2e9t5.d.ts} +5 -6
  20. package/dist/{app-tables-DomvYx5b.d.ts → app-tables-Don-aNOB.d.ts} +1 -1
  21. package/dist/{approvals-idpuhILk.d.ts → approvals-DZoGtNFv.d.ts} +5 -5
  22. package/dist/{assistant-CMKsaeJd.d.ts → assistant-BEbRPjhn.d.ts} +2 -2
  23. package/dist/astro/index.d.ts +7 -8
  24. package/dist/astro/index.js +5 -5
  25. package/dist/{auth-module-CVo86UKh.js → auth-module-CqXdm8qD.js} +1 -1
  26. package/dist/{authorization-CYu_UKX4.d.ts → authorization-DpVtxuKM.d.ts} +28 -2
  27. package/dist/{authorization-hooks-CldgvzBZ.d.ts → authorization-hooks-CxwsRnfV.d.ts} +2 -2
  28. package/dist/{authorizer-D6po_XZA.js → authorizer-BtIPDO-c.js} +33 -10
  29. package/dist/better-result/index.d.ts +3 -3
  30. package/dist/{bind-8LYVJE5W.d.ts → bind-BA05aoY9.d.ts} +7 -7
  31. package/dist/{block-env-BsLgZL2l.d.ts → block-env-UX42PHLP.d.ts} +4 -4
  32. package/dist/{block-helpers-JxiD1iw4.d.ts → block-helpers-disoUWCp.d.ts} +1 -1
  33. package/dist/{block-hooks-CJP5kGEa.d.ts → block-hooks-DrA_d1dJ.d.ts} +2 -2
  34. package/dist/{block-subjects-SyJwfgrX.d.ts → block-subjects-Br2MQNFn.d.ts} +1 -1
  35. package/dist/block-tables-Bre1zjau.d.ts +34 -0
  36. package/dist/{block-transport-Bbf1ZZre.d.ts → block-transport-BEtC_Kis.d.ts} +2 -2
  37. package/dist/blocks/access-requests/index.d.ts +5 -5
  38. package/dist/blocks/activities/index.d.ts +9 -9
  39. package/dist/blocks/agents/index.d.ts +4 -4
  40. package/dist/blocks/ai-cache/index.d.ts +3 -3
  41. package/dist/blocks/ai-chat/index.d.ts +8 -8
  42. package/dist/blocks/ai-files/index.d.ts +3 -3
  43. package/dist/blocks/ai-keys/index.d.ts +4 -4
  44. package/dist/blocks/ai-schedules/index.d.ts +3 -3
  45. package/dist/blocks/announcements/index.d.ts +8 -8
  46. package/dist/blocks/api-keys/index.d.ts +4 -108
  47. package/dist/blocks/approvals/index.d.ts +4 -4
  48. package/dist/blocks/assets/index.d.ts +6 -6
  49. package/dist/blocks/assignment/index.d.ts +7 -7
  50. package/dist/blocks/attachments/index.d.ts +4 -4
  51. package/dist/blocks/audit/index.d.ts +13 -13
  52. package/dist/blocks/automations/index.d.ts +12 -12
  53. package/dist/blocks/billable-time/index.d.ts +6 -6
  54. package/dist/blocks/billing/index.d.ts +9 -9
  55. package/dist/blocks/bookings/index.d.ts +4 -4
  56. package/dist/blocks/bulk/index.d.ts +4 -4
  57. package/dist/blocks/calendar/index.d.ts +5 -5
  58. package/dist/blocks/catalog/index.d.ts +6 -6
  59. package/dist/blocks/channels/index.d.ts +7 -7
  60. package/dist/blocks/collections/index.d.ts +6 -6
  61. package/dist/blocks/comments/index.d.ts +10 -10
  62. package/dist/blocks/compliance/index.d.ts +5 -5
  63. package/dist/blocks/connectors/index.d.ts +4 -4
  64. package/dist/blocks/contacts/index.d.ts +6 -6
  65. package/dist/blocks/content/index.d.ts +5 -5
  66. package/dist/blocks/contracts/index.d.ts +6 -6
  67. package/dist/blocks/courses/index.d.ts +5 -5
  68. package/dist/blocks/created-by/index.d.ts +2 -2
  69. package/dist/blocks/custom-fields/index.d.ts +6 -6
  70. package/dist/blocks/data-lifecycle/index.d.ts +8 -8
  71. package/dist/blocks/deals/index.d.ts +6 -6
  72. package/dist/blocks/dispatch/index.d.ts +6 -6
  73. package/dist/blocks/documents/index.d.ts +4 -4
  74. package/dist/blocks/domains/index.d.ts +6 -6
  75. package/dist/blocks/donations/index.d.ts +6 -6
  76. package/dist/blocks/drive/index.d.ts +6 -6
  77. package/dist/blocks/drive/index.js +1 -1
  78. package/dist/blocks/employees/index.d.ts +8 -8
  79. package/dist/blocks/enrichment/index.d.ts +6 -6
  80. package/dist/blocks/enrollments/index.d.ts +6 -6
  81. package/dist/blocks/entitlements/index.d.ts +6 -6
  82. package/dist/blocks/entitlements/index.js +2 -23
  83. package/dist/blocks/expenses/index.d.ts +5 -5
  84. package/dist/blocks/field-history/index.d.ts +4 -4
  85. package/dist/blocks/flags/index.d.ts +5 -5
  86. package/dist/blocks/flags/index.js +1 -1
  87. package/dist/blocks/forecasts/index.d.ts +6 -6
  88. package/dist/blocks/forms/index.d.ts +6 -6
  89. package/dist/blocks/goals/index.d.ts +4 -4
  90. package/dist/blocks/guests/index.d.ts +6 -6
  91. package/dist/blocks/hiring/index.d.ts +6 -6
  92. package/dist/blocks/identities/index.d.ts +5 -5
  93. package/dist/blocks/imports/index.d.ts +5 -5
  94. package/dist/blocks/inbox/index.d.ts +10 -10
  95. package/dist/blocks/incidents/index.d.ts +5 -5
  96. package/dist/blocks/index.d.ts +9 -9
  97. package/dist/blocks/inventory/index.d.ts +6 -6
  98. package/dist/blocks/invoices/index.d.ts +8 -8
  99. package/dist/blocks/knowledge/index.d.ts +3 -3
  100. package/dist/blocks/lead-scoring/index.d.ts +7 -7
  101. package/dist/blocks/leases/index.d.ts +6 -6
  102. package/dist/blocks/leave/index.d.ts +5 -5
  103. package/dist/blocks/ledger/index.d.ts +6 -6
  104. package/dist/blocks/mail-sync/index.d.ts +5 -5
  105. package/dist/blocks/memberships/index.d.ts +2 -2
  106. package/dist/blocks/memberships/index.js +1 -1
  107. package/dist/blocks/memory/index.d.ts +4 -4
  108. package/dist/blocks/messaging/index.d.ts +11 -11
  109. package/dist/blocks/metrics/index.d.ts +6 -6
  110. package/dist/blocks/mfa/index.d.ts +2 -2
  111. package/dist/blocks/moderation/index.d.ts +6 -6
  112. package/dist/blocks/notifications/index.d.ts +11 -11
  113. package/dist/blocks/numbering/index.d.ts +4 -4
  114. package/dist/blocks/oauth-server/index.d.ts +5 -5
  115. package/dist/blocks/onboarding/index.d.ts +5 -5
  116. package/dist/blocks/orders/index.d.ts +7 -7
  117. package/dist/blocks/organizations/index.d.ts +8 -8
  118. package/dist/blocks/organizations/index.js +1 -1
  119. package/dist/blocks/outbox/index.d.ts +4 -4
  120. package/dist/blocks/passes/index.d.ts +8 -8
  121. package/dist/blocks/permissions/index.d.ts +12 -7
  122. package/dist/blocks/permissions/index.js +6 -6
  123. package/dist/blocks/pipelines/index.d.ts +6 -6
  124. package/dist/blocks/posts/index.d.ts +5 -5
  125. package/dist/blocks/profiles/index.d.ts +4 -4
  126. package/dist/blocks/promotions/index.d.ts +5 -5
  127. package/dist/blocks/push/index.d.ts +7 -7
  128. package/dist/blocks/queue/index.d.ts +6 -6
  129. package/dist/blocks/queue/index.js +2 -2
  130. package/dist/blocks/quotes/index.d.ts +8 -8
  131. package/dist/blocks/rank/index.d.ts +4 -4
  132. package/dist/blocks/reactions/index.d.ts +9 -9
  133. package/dist/blocks/relations/index.d.ts +7 -7
  134. package/dist/blocks/reminders/index.d.ts +8 -8
  135. package/dist/blocks/reviews/index.d.ts +5 -5
  136. package/dist/blocks/saved-views/index.d.ts +6 -6
  137. package/dist/blocks/scores/index.d.ts +5 -5
  138. package/dist/blocks/search/index.d.ts +7 -7
  139. package/dist/blocks/security-events/index.d.ts +7 -7
  140. package/dist/blocks/segments/index.d.ts +7 -7
  141. package/dist/blocks/sequences/index.d.ts +6 -6
  142. package/dist/blocks/service-accounts/index.d.ts +5 -5
  143. package/dist/blocks/sessions/index.d.ts +2 -2
  144. package/dist/blocks/settings/index.d.ts +6 -6
  145. package/dist/blocks/share-links/index.d.ts +5 -5
  146. package/dist/blocks/shipments/index.d.ts +6 -6
  147. package/dist/blocks/signatures/index.d.ts +5 -5
  148. package/dist/blocks/signing-keys/index.d.ts +4 -4
  149. package/dist/blocks/sla/index.d.ts +7 -7
  150. package/dist/blocks/sso/index.d.ts +6 -6
  151. package/dist/blocks/state-machine/index.d.ts +5 -5
  152. package/dist/blocks/subjects/index.d.ts +6 -6
  153. package/dist/blocks/tags/index.d.ts +6 -6
  154. package/dist/blocks/tasks/index.d.ts +9 -9
  155. package/dist/blocks/teams/index.d.ts +4 -4
  156. package/dist/blocks/templates/index.d.ts +7 -7
  157. package/dist/blocks/time-tracking/index.d.ts +7 -7
  158. package/dist/blocks/timeline/index.d.ts +8 -8
  159. package/dist/blocks/trash/index.d.ts +6 -6
  160. package/dist/blocks/undo/index.d.ts +4 -4
  161. package/dist/blocks/updated-at/index.d.ts +2 -2
  162. package/dist/blocks/usage/index.d.ts +4 -4
  163. package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
  164. package/dist/blocks/versions/index.d.ts +6 -6
  165. package/dist/blocks/waitlist/index.d.ts +5 -5
  166. package/dist/blocks/webhooks/index.d.ts +13 -13
  167. package/dist/blocks/workflow-editor/index.d.ts +9 -9
  168. package/dist/blocks/workflow-editor/index.js +2 -1
  169. package/dist/blocks/workflows/index.d.ts +7 -7
  170. package/dist/{bookings-DG443336.d.ts → bookings-Br0VXzaf.d.ts} +3 -3
  171. package/dist/{bucket-Clq5xINQ.d.ts → bucket-DvG66r5G.d.ts} +1 -1
  172. package/dist/chat-sdk/index.d.ts +6 -6
  173. package/dist/claim-names-BKig1LOk.js +24 -0
  174. package/dist/claims/index.d.ts +8 -0
  175. package/dist/claims/index.js +8 -0
  176. package/dist/{claims-DRmafYVK.js → claims-CqTr_N1n.js} +13 -5
  177. package/dist/cli/add-C13ZqJ_N.js +1 -0
  178. package/dist/cli/{add-fzRPyIED.js → add-DoEtJhZG.js} +3 -2
  179. package/dist/cli/{add-ChoHyBhz.js → add-THXE7juv.js} +11 -11
  180. package/dist/cli/{app-table-files-C0OtdUVu.js → app-table-files-BqLd5TuX.js} +3 -3
  181. package/dist/cli/{providers-DpfoF3VC.js → authorization-DJkkOjjG.js} +25 -93
  182. package/dist/cli/{backfill-Dq2XMXf9.js → backfill-D-2W0fNT.js} +3 -3
  183. package/dist/cli/bin.js +1 -1
  184. package/dist/cli/{blocks-CCzp0eAH.js → blocks-BVU_FoLo.js} +1 -1
  185. package/dist/cli/{blocks-DVhJOzFj.js → blocks-XwUHeyUH.js} +1 -1
  186. package/dist/cli/{cache-CoC-1i1O.js → cache-D4nwCBXc.js} +1 -1
  187. package/dist/cli/{codemod-pyf6HmS9.js → codemod-Dh4lf_k4.js} +5 -4
  188. package/dist/cli/{config-D0m2rQqk.js → config-CrwCec-B.js} +1 -1
  189. package/dist/cli/{config-Dyl3iX3u.js → config-DrrkMihk.js} +1 -0
  190. package/dist/cli/{content-mapper-ChSVT9Tq.js → content-mapper-CwFH_PEn.js} +2 -2
  191. package/dist/cli/{db-dFzhcozO.js → db-Diy1OebO.js} +2 -2
  192. package/dist/cli/{doctor-BKZsztFV.js → doctor-CyAMbZ_s.js} +59 -19
  193. package/dist/cli/{gen-BN_eh6rE.js → gen-EAUNnUY7.js} +14 -14
  194. package/dist/cli/index.d.ts +1 -1
  195. package/dist/cli/index.js +7 -7
  196. package/dist/cli/{init-CaDDt8F6.js → init-BRmmmGHJ.js} +9 -9
  197. package/dist/cli/{live-KU41LMGE.js → live-CV9mn-xC.js} +2 -2
  198. package/dist/cli/{mcp-C_m-TpLJ.js → mcp-CnaxcLWa.js} +2 -2
  199. package/dist/cli/{metadata-Bq4ra7zo.js → metadata-CFQGBR5E.js} +3 -3
  200. package/dist/cli/{migrate-DHG2Qz_K.js → migrate-z5oHDGNs.js} +1 -1
  201. package/dist/cli/{migration-safety-STVbiKhz.js → migration-safety-BtAPMEZa.js} +2 -2
  202. package/dist/cli/{migrations-O1QZoMiH.js → migrations-CNa62JSi.js} +2 -2
  203. package/dist/cli/{module-migration-DB9ntWM-.js → module-migration-CKJ8kRm1.js} +2 -2
  204. package/dist/cli/{powersync-CN3QPF2K.js → powersync-BgoAWeRT.js} +3 -3
  205. package/dist/cli/powersync-DoCruiOt.js +1 -0
  206. package/dist/cli/{print-DG7TRCi8.js → print-CoqKHoy0.js} +2 -2
  207. package/dist/cli/providers-CfbFxUOQ.js +99 -0
  208. package/dist/cli/{prune-workflows-DcNJUS1m.js → prune-workflows-BigCoXLw.js} +3 -3
  209. package/dist/cli/{remove-BpfYqP45.js → remove-C9zwn-Kk.js} +5 -5
  210. package/dist/cli/{render-Q7jnLn_C.js → render-DQCU_kBW.js} +7 -4
  211. package/dist/cli/{run-9NfabanB.js → run-CVaBuT18.js} +29 -29
  212. package/dist/cli/{run-D6K-qQIX.js → run-DOD00FFl.js} +9 -8
  213. package/dist/cli/{seed-B4H0Lco9.js → seed-BpaqqyO8.js} +2 -2
  214. package/dist/cli/seed-ByLneY1H.js +1 -0
  215. package/dist/cli/{shared-PrvYREVy.js → shared-COtj7l3r.js} +1 -1
  216. package/dist/cli/{snapshot-UfJsqfys.js → snapshot-BvlEmTB0.js} +3 -3
  217. package/dist/cli/{source-F3YTVvFo.js → source-BhZRCitG.js} +1 -1
  218. package/dist/cli/{source-args-DJMrW_jW.js → source-args-Bz5QQne2.js} +1 -1
  219. package/dist/cli/{spec-HQOBVbEO.js → spec-Bo2wIViH.js} +1 -1
  220. package/dist/cli/{spec-DsLQuJKp.js → spec-DsMWuJLv.js} +2 -2
  221. package/dist/cli/{sql-layout-CZ66pY8j.js → sql-layout-CA7xgRjR.js} +2 -2
  222. package/dist/cli/{sync-B12wbtFd.js → sync-D9xSGdzO.js} +4 -4
  223. package/dist/cli/{upgrade-C20z49De.js → upgrade-XK_CQKVJ.js} +2 -2
  224. package/dist/cli/{upgrade-AgUXFDo6.js → upgrade-Ykf0LLEB.js} +5 -5
  225. package/dist/cli/{version-DEUWW8cv.js → version-Dfdz7KSh.js} +1 -1
  226. package/dist/client/index.d.ts +6 -6
  227. package/dist/client/index.js +1 -1
  228. package/dist/client/native/index.d.ts +5 -5
  229. package/dist/client/native/index.js +1 -1
  230. package/dist/{client-BLor58Je.js → client-Bky2z09B.js} +1 -1
  231. package/dist/{cloud-event-bcaMqEbN.d.ts → cloud-event-DXWmXrus.d.ts} +1 -1
  232. package/dist/{compiler-CWishtY2.d.ts → compiler-qlXlokKn.d.ts} +2 -2
  233. package/dist/{composite-ClLWZIwX.d.ts → composite-CIxjVcL1.d.ts} +7 -7
  234. package/dist/{composite-BZMkWNOQ.js → composite-D2JnIiHt.js} +2 -2
  235. package/dist/config/index.d.ts +3 -3
  236. package/dist/config/index.js +2 -2
  237. package/dist/{config-BhExAhNK.js → config-Bu6pwqcO.js} +1 -1
  238. package/dist/{connectors-BImAu75R.d.ts → connectors-Cf2LeAuZ.d.ts} +4 -4
  239. package/dist/{context-DcxfrCml.d.ts → context-BGC0J3t9.d.ts} +15 -3
  240. package/dist/contract/index.d.ts +16 -0
  241. package/dist/contract/index.js +0 -0
  242. package/dist/{controller-D_UJBaEU.d.ts → controller-CQrkLoRX.d.ts} +1 -1
  243. package/dist/{conversion-7U1WeLxK.d.ts → conversion-C9rndpEI.d.ts} +1 -1
  244. package/dist/create/index.d.ts +3 -3
  245. package/dist/create/index.js +1 -1
  246. package/dist/create/lite/index.d.ts +4 -4
  247. package/dist/create/lite/index.js +1 -1
  248. package/dist/credentials/index.d.ts +4 -4
  249. package/dist/{data-engine-B-D6bdyx.d.ts → data-engine-CMENsp3d.d.ts} +1 -1
  250. package/dist/{define-3RbqoF1S.d.ts → define-ITQA71fw.d.ts} +5 -5
  251. package/dist/{define-block-B_i9VPcc.d.ts → define-block-COmMkx2x.d.ts} +12 -12
  252. package/dist/{delegation-BRHHXERz.js → delegation-C2rLpkHO.js} +2 -7
  253. package/dist/{documents-6ov2gWh3.d.ts → documents-DeZw83ue.d.ts} +3 -3
  254. package/dist/edge/index.d.ts +13 -13
  255. package/dist/edge/index.js +9 -9
  256. package/dist/elysia/index.d.ts +1 -1
  257. package/dist/elysia/index.js +1 -1
  258. package/dist/{embeddings-K0lH--nt.d.ts → embeddings-rVR2AKVz.d.ts} +1 -1
  259. package/dist/{ended-CCoE7XXY.d.ts → ended-NC_ZesY4.d.ts} +2 -2
  260. package/dist/{entitlements-XwpuBbKN.d.ts → entitlements-BOWTZaRf.d.ts} +21 -3
  261. package/dist/entitlements-Dydkg-TV.js +47 -0
  262. package/dist/{envelope-DAtaFJue.js → envelope-CapD-JtH.js} +3 -2
  263. package/dist/eve/index.d.ts +9 -9
  264. package/dist/eve/index.js +2 -2
  265. package/dist/{eve-Cf-QRGij.d.ts → eve-DIKjuPp5.d.ts} +2 -2
  266. package/dist/events/index.d.ts +3 -3
  267. package/dist/{events-CfDdOwqg.d.ts → events-DVt3Z9hw.d.ts} +1 -1
  268. package/dist/{executor-ynEwaUZy.d.ts → executor-CFmee_nV.d.ts} +1 -1
  269. package/dist/{executor-CAhykadW.d.ts → executor-CHnoKOxk.d.ts} +4 -4
  270. package/dist/{executor-CbDX34I9.d.ts → executor-DqNRrFxx.d.ts} +1 -1
  271. package/dist/expo/index.d.ts +4 -4
  272. package/dist/expo/index.js +3 -3
  273. package/dist/{extension-LgaDPMJs.js → extension-Z8Pe7fXA.js} +1 -1
  274. package/dist/{field-errors-tQr-anYL.d.ts → field-errors-DxPZYw2m.d.ts} +10 -10
  275. package/dist/{fields-AKKMirg_.d.ts → fields-CAVk9dxX.d.ts} +1 -1
  276. package/dist/{filter-evaluate-Bhq99aEN.d.ts → filter-evaluate-Bz3Fzhz2.d.ts} +1 -1
  277. package/dist/{filter-query-B7A4l2xn.d.ts → filter-query-DV-x8fio.d.ts} +1 -1
  278. package/dist/{flags-D0npSE-5.js → flags-0EXDD3Iz.js} +1 -1
  279. package/dist/{flags-B5B4mkZV.d.ts → flags-6emyAXly.d.ts} +2 -2
  280. package/dist/flags-sdk/index.d.ts +2 -2
  281. package/dist/flags-sdk/index.js +1 -1
  282. package/dist/{framework-CyDn_SXR.d.ts → framework-BFlaPuvv.d.ts} +8 -7
  283. package/dist/{framework-B1h-uquj.js → framework-ChzJYkJW.js} +3 -2
  284. package/dist/{gateway-Cg_MgGen.d.ts → gateway-DaekJ_Me.d.ts} +3 -3
  285. package/dist/h3/index.d.ts +1 -1
  286. package/dist/h3/index.js +1 -1
  287. package/dist/h3/v1/index.d.ts +1 -1
  288. package/dist/h3/v1/index.js +1 -1
  289. package/dist/hono/index.d.ts +14 -13
  290. package/dist/hono/index.js +9 -8
  291. package/dist/{inbox-BmSA9K01.d.ts → inbox-DavCzW7b.d.ts} +5 -5
  292. package/dist/{index-D2BGCjIz.d.ts → index-BIAtapnD.d.ts} +5 -5
  293. package/dist/index-BfU0KR0X.d.ts +107 -0
  294. package/dist/{index-xCpjvDVm.d.ts → index-Bhkag9ZE.d.ts} +14 -14
  295. package/dist/{index-B2871MHr.d.ts → index-Bz0WLuh_.d.ts} +5 -5
  296. package/dist/{index-D66_dYVi.d.ts → index-CJB50jzQ.d.ts} +4 -4
  297. package/dist/{index-B5_J-MaK.d.ts → index-CeUwyJ3Z.d.ts} +5 -5
  298. package/dist/{index-lazpPVr0.d.ts → index-D18su_r5.d.ts} +3 -3
  299. package/dist/index-DNAkWDXc.d.ts +289 -0
  300. package/dist/{index-CTpEQvIv.d.ts → index-Dvpu22CJ.d.ts} +1 -1
  301. package/dist/index-IKfbX_39.d.ts +23 -0
  302. package/dist/{index-DzBFdI9I.d.ts → index-M1izbwbN.d.ts} +1 -1
  303. package/dist/{index-CRrBZtKm.d.ts → index-QTZIopQj.d.ts} +1 -1
  304. package/dist/index.d.ts +6 -6
  305. package/dist/{kit-CVZDd1X9.js → kit-9pZP5iLU.js} +42 -11
  306. package/dist/{kit-CJKo0soh.d.ts → kit-OgFOW9rX.d.ts} +4 -4
  307. package/dist/{knowledge-BUwbpS8I.d.ts → knowledge-BBC2sfAY.d.ts} +5 -5
  308. package/dist/lint/index.d.ts +1 -1
  309. package/dist/lint/index.js +1 -1
  310. package/dist/list/index.d.ts +3 -3
  311. package/dist/{list-query-CZ-K5aHX.d.ts → list-query-C7V8kUaD.d.ts} +3 -3
  312. package/dist/mapper/bin.js +6 -6
  313. package/dist/mcp/index.d.ts +4 -289
  314. package/dist/mcp/index.js +52 -18
  315. package/dist/mcp/sdk/index.d.ts +6 -6
  316. package/dist/mcp/sdk/index.js +2 -2
  317. package/dist/{messaging-DMhtGxVv.d.ts → messaging-D5z2TR37.d.ts} +4 -4
  318. package/dist/nestjs/index.d.ts +2 -2
  319. package/dist/nestjs/index.js +1 -1
  320. package/dist/next/client/index.d.ts +1 -1
  321. package/dist/next/index.d.ts +28 -26
  322. package/dist/next/index.js +11 -10
  323. package/dist/node/index.d.ts +2 -2
  324. package/dist/node/index.js +1 -1
  325. package/dist/{operations-D51ONRvR.d.ts → operations-BG6prEnh.d.ts} +1 -1
  326. package/dist/{options-B56njigZ.js → options-CjocPkX1.js} +2 -0
  327. package/dist/orpc/index.d.ts +8 -8
  328. package/dist/orpc/index.js +8 -8
  329. package/dist/otel/index.d.ts +2 -2
  330. package/dist/otel/index.js +4 -4
  331. package/dist/{outbox-C44Aa94K.d.ts → outbox-7zgh-7nw.d.ts} +4 -4
  332. package/dist/{permissions-B9aZZ9LR.js → permissions-BDt27oYF.js} +19 -14
  333. package/dist/permissions-CoHsUtZS.d.ts +44 -0
  334. package/dist/{pool-Bji4lnQM.d.ts → pool-D-4HyhuW.d.ts} +3 -3
  335. package/dist/{ports-C-hdygkZ.js → ports-CmEXVqhg.js} +1 -1
  336. package/dist/{ports-zFqRNXVJ.d.ts → ports-XvgCe7ey.d.ts} +1 -1
  337. package/dist/postgres/index.d.ts +4 -4
  338. package/dist/{postgrest-2WjRrtmX.d.ts → postgrest-DZtM2nIS.d.ts} +1 -1
  339. package/dist/powersync/index.d.ts +6 -6
  340. package/dist/preset/index.d.ts +3 -3
  341. package/dist/{project-oNHntJ6T.js → project-B7nqCzn5.js} +2 -2
  342. package/dist/{provider-CH8McX3b.d.ts → provider-BI0KC4u5.d.ts} +1 -1
  343. package/dist/{push-token-a3Ev1U3L.d.ts → push-token-kcc04ZaS.d.ts} +1 -1
  344. package/dist/query/index.d.ts +1 -1
  345. package/dist/react/index.d.ts +8 -8
  346. package/dist/react/index.js +3 -3
  347. package/dist/react/native/index.d.ts +1 -1
  348. package/dist/react/native/index.js +1 -1
  349. package/dist/react/server.d.ts +8 -8
  350. package/dist/react/server.js +3 -3
  351. package/dist/react/session.d.ts +2 -2
  352. package/dist/{react-C40oomj7.js → react-COIov1yC.js} +1 -1
  353. package/dist/react-router/index.d.ts +6 -7
  354. package/dist/react-router/index.js +6 -6
  355. package/dist/realtime/index.d.ts +6 -6
  356. package/dist/realtime/index.js +1 -1
  357. package/dist/{record-form-DCIui2Ol.d.ts → record-form-DU2EoVsv.d.ts} +1 -1
  358. package/dist/{recordings-Dlpq8jUG.d.ts → recordings-D69Va7gP.d.ts} +1 -1
  359. package/dist/records/index.d.ts +9 -9
  360. package/dist/{refresh-BK9epzeC.d.ts → refresh-BtbC2rZe.d.ts} +1 -1
  361. package/dist/{refusal-DhX7Xpfp.js → refusal-5c6UMpUP.js} +3 -3
  362. package/dist/{refusal-DEuFVi4s.d.ts → refusal-CGi-0Q18.d.ts} +3 -3
  363. package/dist/{resolve-DVOtYTAc.d.ts → resolve--LfVoOMg.d.ts} +1 -1
  364. package/dist/{resource-Cn6Bn-_o.js → resource-BbWk4hoP.js} +59 -15
  365. package/dist/{resource-BfsTJnxZ.d.ts → resource-DWllVW8k.d.ts} +6 -1
  366. package/dist/{resource-execute-DQRS7PFt.d.ts → resource-execute-DUBYKTYU.d.ts} +2 -2
  367. package/dist/{resource-types-DF6KDAZM.d.ts → resource-types-RgaljPs0.d.ts} +4 -4
  368. package/dist/{resources-CeY53FiJ.d.ts → resources-Bki1J4jy.d.ts} +2 -2
  369. package/dist/{resources-B0Vy7_wv.js → resources-DYSx9NYM.js} +1 -1
  370. package/dist/{respond-CkwkvFdZ.d.ts → respond-BYOV7KZp.d.ts} +1 -1
  371. package/dist/{respond-C2qvP1wv.js → respond-DLH4tD2d.js} +1 -1
  372. package/dist/{sales-lines-Bde9cV5F.d.ts → sales-lines-DuNVoKHA.d.ts} +1 -1
  373. package/dist/{sandboxes-DDWuD9fh.d.ts → sandboxes-B2hBoBvJ.d.ts} +1 -1
  374. package/dist/{scores-Bql-ABl0.d.ts → scores-FAORS4qU.d.ts} +5 -5
  375. package/dist/server/index.d.ts +31 -28
  376. package/dist/server/index.js +15 -11
  377. package/dist/{server-types-C3p3jUqr.d.ts → server-types-C2hlvhP4.d.ts} +39 -101
  378. package/dist/{session-BOch2y2z.d.ts → session-B4VasaAA.d.ts} +6 -6
  379. package/dist/{session-status-DRBRnZHx.d.ts → session-status-D8CBxCqv.d.ts} +2 -2
  380. package/dist/{sign-in-BmigClRh.js → sign-in-BMm1xhKq.js} +1 -1
  381. package/dist/{sign-in-Dxyi4aKu.d.ts → sign-in-CX1a5i2P.d.ts} +3 -34
  382. package/dist/{sign-in-CXOg2Dwb.js → sign-in-CxdoTEp5.js} +2 -2
  383. package/dist/{signers-Cz5ZhTHH.d.ts → signers-6ih6i9aq.d.ts} +4 -4
  384. package/dist/{signing-keys-DS-rIVzz.d.ts → signing-keys-De09WNJ3.d.ts} +2 -2
  385. package/dist/snapshot-BGsJw9xn.d.ts +83 -0
  386. package/dist/{view-YnesSUEa.js → snapshot-CVMSyTHH.js} +3 -109
  387. package/dist/solid/index.d.ts +10 -10
  388. package/dist/solid/index.js +1 -1
  389. package/dist/solid-start/index.d.ts +6 -7
  390. package/dist/solid-start/index.js +5 -5
  391. package/dist/spec/index.d.ts +2 -2
  392. package/dist/sql/index.d.ts +6 -5
  393. package/dist/sql/index.js +2 -2
  394. package/dist/{sql-BPV51R3A.js → sql-DdtukoIm.js} +405 -187
  395. package/dist/sqlite/index.d.ts +3 -3
  396. package/dist/{sso-BEvNf1oW.d.ts → sso-CuzAjsc8.d.ts} +3 -3
  397. package/dist/ssr/index.d.ts +5 -5
  398. package/dist/ssr/index.js +1 -1
  399. package/dist/storage/index.d.ts +3 -3
  400. package/dist/storage/index.js +1 -1
  401. package/dist/streams/index.d.ts +1 -1
  402. package/dist/{subject-readers-DWkVSbFr.d.ts → subject-readers-BlD8tALG.d.ts} +2 -2
  403. package/dist/{subjects-vci6Wufh.d.ts → subjects-Bv2dPflD.d.ts} +3 -3
  404. package/dist/{support-rZbdU35s.d.ts → support-DxYI6sDM.d.ts} +4 -4
  405. package/dist/{support-view-WY4Y-A40.d.ts → support-view-DSmCett7.d.ts} +1 -1
  406. package/dist/svelte/index.d.ts +9 -9
  407. package/dist/svelte/index.js +1 -1
  408. package/dist/sveltekit/index.d.ts +7 -8
  409. package/dist/sveltekit/index.js +5 -5
  410. package/dist/{tags-BVLELhOf.d.ts → tags--k2fbPfO.d.ts} +1 -1
  411. package/dist/tanstack-db/index.d.ts +3 -3
  412. package/dist/tanstack-start/index.d.ts +6 -7
  413. package/dist/tanstack-start/index.js +5 -5
  414. package/dist/tenant-Beqd7TTq.js +48 -0
  415. package/dist/{tenant-RKvGBB-U.d.ts → tenant-DkKbvK5T.d.ts} +4 -5
  416. package/dist/testing/index.d.ts +71 -32
  417. package/dist/testing/index.js +136 -16
  418. package/dist/{timeline-Ck8OFuAN.d.ts → timeline-Bq658xsi.d.ts} +5 -5
  419. package/dist/{topic-Dr8VYE4D.d.ts → topic-B6zuexk7.d.ts} +5 -5
  420. package/dist/{topic-BBBCVLyS.js → topic-k17VvXRj.js} +1 -1
  421. package/dist/{types-Pv5WPfIC.d.ts → types-BBqP9H6w.d.ts} +4 -4
  422. package/dist/{types-WZUVlTXs.d.ts → types-BkYEUWdz.d.ts} +189 -1
  423. package/dist/{types-CCmW3MqI.d.ts → types-BvHw2cCS.d.ts} +2 -2
  424. package/dist/{types-D9FY9qSJ.d.ts → types-C8UyJOPJ.d.ts} +3 -3
  425. package/dist/{types-CvlJNzX4.d.ts → types-DCoqai8o.d.ts} +4 -4
  426. package/dist/{types-DWZubmwk.d.ts → types-Dh2OGEW5.d.ts} +10 -10
  427. package/dist/{types-BiedVwz_.d.ts → types-TH3zlMiM.d.ts} +1 -1
  428. package/dist/{types-CL-z0A4K.d.ts → types-d0JBRTAg.d.ts} +7 -7
  429. package/dist/{undo-BdoEJ6Ot.d.ts → undo-22ofP6Zp.d.ts} +2 -2
  430. package/dist/{usage-D27Uw426.d.ts → usage-CNCT6_3D.d.ts} +4 -4
  431. package/dist/{vault-Dx0LaNMX.d.ts → vault-yGQD5Rdl.d.ts} +2 -2
  432. package/dist/vercel-connect/index.d.ts +1 -1
  433. package/dist/vercel-sandbox/index.d.ts +2 -2
  434. package/dist/{verify-DnL0Fgu0.d.ts → verify-BQu3eBNW.d.ts} +2 -2
  435. package/dist/view-BfEqjZJ_.js +117 -0
  436. package/dist/{view-DmEZA1fL.d.ts → view-Cy2XxYp1.d.ts} +14 -2
  437. package/dist/vue/index.d.ts +10 -10
  438. package/dist/vue/index.js +1 -1
  439. package/dist/{watch-topic-BB7T05sc.d.ts → watch-topic-YYSVJGDY.d.ts} +1 -1
  440. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  441. package/dist/workflow-sdk/builder/index.js +1 -1
  442. package/dist/workflow-sdk/index.d.ts +1 -1
  443. package/dist/workflow-sdk/index.js +1 -1
  444. package/dist/workflow-sdk/world/index.d.ts +1 -1
  445. package/dist/{workflow-sdk-D5zRSwxh.js → workflow-sdk-q2jnEaAJ.js} +2 -2
  446. package/dist/{workflow-sdk-DMpVSMB7.d.ts → workflow-sdk-yIkECybp.d.ts} +3 -3
  447. package/dist/{workflows-DKTw2PZo.d.ts → workflows-BljkWRxE.d.ts} +3 -3
  448. package/dist/yjs/index.d.ts +2 -2
  449. package/dist/yjs/index.js +1 -1
  450. package/package.json +12 -1
  451. package/schemas/config-v1.json +8 -0
  452. package/schemas/doctor-report-v1.json +1 -0
  453. package/dist/authorizer-AswD5q6g.d.ts +0 -116
  454. package/dist/cli/add-DlYL-1mF.js +0 -1
  455. package/dist/cli/powersync-DfeGl5N1.js +0 -1
  456. package/dist/cli/seed-BIB6-WPa.js +0 -1
  457. package/dist/tenant-BR7fvPj7.js +0 -26
@@ -1,4 +1,4 @@
1
- import { n as RouteGuardOptions } from "../refusal-DEuFVi4s.js";
1
+ import { n as RouteGuardOptions } from "../refusal-CGi-0Q18.js";
2
2
  import { i as toWebHeaders, r as applyWebHeaders, t as NodeHeaderTarget } from "../node-headers-TnS4T7V_.js";
3
- import { _ as toNodeHandler, a as FastifyReplyLike, b as toWebRequest, c as KoaMiddleware, d as guard, f as koaGuard, g as toKoa, h as toFastify, i as FastifyHook, l as ToNodeOptions, m as toExpress, n as ExpressMiddleware, o as FastifyRequestLike, p as problemErrorHandler, r as ExpressResponse, s as KoaContextLike, t as ExpressErrorHandler, u as fastifyGuard, v as WebRequestOptions, y as sendWebResponse } from "../index-DzBFdI9I.js";
3
+ import { _ as toNodeHandler, a as FastifyReplyLike, b as toWebRequest, c as KoaMiddleware, d as guard, f as koaGuard, g as toKoa, h as toFastify, i as FastifyHook, l as ToNodeOptions, m as toExpress, n as ExpressMiddleware, o as FastifyRequestLike, p as problemErrorHandler, r as ExpressResponse, s as KoaContextLike, t as ExpressErrorHandler, u as fastifyGuard, v as WebRequestOptions, y as sendWebResponse } from "../index-M1izbwbN.js";
4
4
  export { ExpressErrorHandler, ExpressMiddleware, ExpressResponse, FastifyHook, FastifyReplyLike, FastifyRequestLike, KoaContextLike, KoaMiddleware, type NodeHeaderTarget, type RouteGuardOptions, ToNodeOptions, type WebRequestOptions, applyWebHeaders, fastifyGuard, guard, koaGuard, problemErrorHandler, sendWebResponse, toExpress, toFastify, toKoa, toNodeHandler, toWebHeaders, toWebRequest };
@@ -1,5 +1,5 @@
1
1
  import { a as toResponse, t as around } from "../shared-Ci1g9nl4.js";
2
- import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-DhX7Xpfp.js";
2
+ import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-5c6UMpUP.js";
3
3
  import { t as beforeRoute } from "../before-route-Ra3OhI2x.js";
4
4
  import { i as toWebHeaders, t as applyWebHeaders } from "../node-headers-C3FExlg9.js";
5
5
  import { n as toWebRequest, t as sendWebResponse } from "../http-D4lH1xqY.js";
@@ -1,4 +1,4 @@
1
- import { r as AuthorizationOperation } from "./authorization-CYu_UKX4.js";
1
+ import { r as AuthorizationOperation } from "./authorization-DpVtxuKM.js";
2
2
  /** Operations by name, as `authorization.operations` or a module's own defaults. */
3
3
  type OperationTable = Readonly<Record<string, AuthorizationOperation>>;
4
4
  export { OperationTable as t };
@@ -14,6 +14,8 @@ const driveSqlOptions = blockOptions({
14
14
  drives: option.boolean({ default: false }),
15
15
  driveKinds: option.strings({ default: ["shared"] }),
16
16
  sources: option.strings({ default: ["google-drive", "onedrive"] }),
17
+ roleFunctions: option.unknown(),
18
+ readPolicy: option.boolean({ default: true }),
17
19
  extraColumns: option.extraColumns()
18
20
  });
19
21
  export { driveSqlOptions as t };
@@ -1,15 +1,15 @@
1
1
  import { b as DbError, f as Result } from "../result-DTOQRyGY.js";
2
- import { O as AnyFunctions, k as AnyModels } from "../types-WZUVlTXs.js";
3
- import { r as AuthState } from "../resolve-DVOtYTAc.js";
2
+ import { O as AnyFunctions, k as AnyModels } from "../types-BkYEUWdz.js";
3
+ import { r as AuthState } from "../resolve--LfVoOMg.js";
4
4
  import { i as ProblemDetails } from "../problem-NGBjN-TO.js";
5
- import { t as BetterSupabase } from "../define-3RbqoF1S.js";
6
- import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-C3p3jUqr.js";
7
- import { i as MiddlewareOptions, r as GuardOptions } from "../respond-CkwkvFdZ.js";
8
- import { c as ResourceLoaderContext, i as AuthorizeOptions } from "../kit-CJKo0soh.js";
5
+ import { t as BetterSupabase } from "../define-ITQA71fw.js";
6
+ import { l as ServerOptions, o as ServerContext, r as BetterServer } from "../server-types-C2hlvhP4.js";
7
+ import { i as MiddlewareOptions, r as GuardOptions } from "../respond-BYOV7KZp.js";
8
+ import { c as ResourceLoaderContext, i as AuthorizeOptions } from "../kit-OgFOW9rX.js";
9
+ import { a as ResourceHandler } from "../resource-types-RgaljPs0.js";
9
10
  import { t as Validated } from "../shared-DsBcvj6q.js";
10
- import { a as ResourceHandler } from "../resource-types-DF6KDAZM.js";
11
11
  import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-C89Yzwd9.js";
12
- import { t as Api } from "../api-CwzVbbw4.js";
12
+ import { t as Api } from "../api-myq2e9t5.js";
13
13
  import { AnyEntry, Contributions } from "@supabase/middleware";
14
14
  import { AnySchema, BuilderWithMiddlewares, DecoratedMiddleware, DecoratedProcedure, MetaPlugin, ORPCError, Schema } from "@orpc/server";
15
15
  /** The route `router()` gives one operation of the API model. */
@@ -3,17 +3,17 @@ import { n as isRecord } from "../guards-CsRa6v57.js";
3
3
  import { r as err } from "../result-8xza7w5W.js";
4
4
  import { t as instanceProperty } from "../instance-property-BlH7QSDl.js";
5
5
  import { c as toProblem } from "../problem-C0SVHhd3.js";
6
- import { i as claimsOf } from "../claims-DRmafYVK.js";
6
+ import { i as claimsOf } from "../claims-CqTr_N1n.js";
7
7
  import { t as TABLE_VERBS } from "../resource-DQ4kIBpa.js";
8
8
  import { t as callWithInput } from "../block-method-DIbWG4Mj.js";
9
- import { t as tenantOf } from "../tenant-BR7fvPj7.js";
10
- import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CPPN80mx.js";
9
+ import { t as tenantOf } from "../tenant-Beqd7TTq.js";
10
+ import { i as toSession } from "../view-BfEqjZJ_.js";
11
+ import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CWzyKepA.js";
11
12
  import { n as refreshFor } from "../refresh-B8t_KE3s.js";
12
- import { r as checkPermission } from "../authorizer-D6po_XZA.js";
13
- import { n as toSession } from "../view-YnesSUEa.js";
14
- import { i as guard, n as defaultExpose, s as settle, t as assertCookieRefresh } from "../respond-C2qvP1wv.js";
15
- import { r as contextOf, t as defineResource } from "../resource-Cn6Bn-_o.js";
16
- import { t as authorizeCaller } from "../kit-CVZDd1X9.js";
13
+ import { r as checkPermission } from "../authorizer-BtIPDO-c.js";
14
+ import { i as guard, n as defaultExpose, s as settle, t as assertCookieRefresh } from "../respond-DLH4tD2d.js";
15
+ import { r as contextOf, t as defineResource } from "../resource-BbWk4hoP.js";
16
+ import { t as authorizeCaller } from "../kit-9pZP5iLU.js";
17
17
  import { t as rateLimitGate } from "../rate-limit-DXJbLVg0.js";
18
18
  import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
19
19
  import { COMMON_ERROR_STATUS_MAP, ORPCError, os } from "@orpc/server";
@@ -1,5 +1,5 @@
1
- import { Mt as Plugin } from "../types-WZUVlTXs.js";
2
- import { o as EventHub } from "../events-CfDdOwqg.js";
1
+ import { Mt as Plugin } from "../types-BkYEUWdz.js";
2
+ import { o as EventHub } from "../events-DVt3Z9hw.js";
3
3
  import { t as SPEC_PINS } from "../spec-pins-CuQ2anBw.js";
4
4
  import { Attributes, Meter, Tracer } from "@opentelemetry/api";
5
5
  export declare const INSTRUMENTATION_NAME = "better-supabase";
@@ -39,9 +39,9 @@ function systemOf(executor) {
39
39
  * ```
40
40
  */
41
41
  function otel(options = {}) {
42
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.32.0");
42
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.34.0");
43
43
  let histogram;
44
- if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.32.0")).createHistogram("db.client.operation.duration", {
44
+ if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.34.0")).createHistogram("db.client.operation.duration", {
45
45
  unit: "s",
46
46
  description: "Duration of database client operations.",
47
47
  advice: { explicitBucketBoundaries: [
@@ -218,7 +218,7 @@ function otel(options = {}) {
218
218
  * `betterSupabase.events`. Returns a function that stops listening.
219
219
  */
220
220
  function traceAuth(betterSupabase, options = {}) {
221
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.32.0");
221
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.34.0");
222
222
  const offAuth = betterSupabase.events.on("auth", (event) => {
223
223
  const span = tracer.startSpan("auth.resolve", {
224
224
  kind: SpanKind.INTERNAL,
@@ -256,7 +256,7 @@ function traceAuth(betterSupabase, options = {}) {
256
256
  * an error status. Returns a function that stops listening.
257
257
  */
258
258
  function traceBlockEvents(betterSupabase, options = {}) {
259
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.32.0");
259
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.34.0");
260
260
  return betterSupabase.events.on("block", (event) => {
261
261
  const attributes = {
262
262
  ...options.attributes,
@@ -1,11 +1,11 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { b as DbError, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { n as Logger } from "./logger-0LfhvwE4.js";
4
- import { i as CursorPageOptions, n as BlockOptions } from "./block-helpers-JxiD1iw4.js";
5
- import { n as BlockHooks } from "./block-hooks-CJP5kGEa.js";
4
+ import { i as CursorPageOptions, n as BlockOptions } from "./block-helpers-disoUWCp.js";
5
+ import { n as BlockHooks } from "./block-hooks-DrA_d1dJ.js";
6
6
  import { t as BlockProblemOptions } from "./problem-NGBjN-TO.js";
7
- import { i as EventSink, t as CloudEvent } from "./cloud-event-bcaMqEbN.js";
8
- import { g as SubscriberPolicy, i as AuthorizationHooks } from "./authorization-hooks-CldgvzBZ.js";
7
+ import { i as EventSink, t as CloudEvent } from "./cloud-event-DXWmXrus.js";
8
+ import { g as SubscriberPolicy, i as AuthorizationHooks } from "./authorization-hooks-CxwsRnfV.js";
9
9
  /** One row of the outbox, as `outbox_claim` and `outbox_history` return it. */
10
10
  interface OutboxEvent {
11
11
  /** The cursor value: increases with every event. */
@@ -1,12 +1,13 @@
1
- import { t as DEFAULT_CLAIMS } from "./claims-DRmafYVK.js";
2
- import { t as tenantOf } from "./tenant-BR7fvPj7.js";
1
+ import { c as truncatedMarker, t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
2
+ import { n as claimsFrom, t as tenantOf } from "./tenant-Beqd7TTq.js";
3
3
  // src/auth/permissions.ts
4
4
  /**
5
5
  * The permission keys the token grants in `tenant` (the active tenant by
6
- * default), from the `permissions` claim `permission_claims()` writes.
6
+ * default), from the `permissions` claim `permission_claims()` writes. Takes a
7
+ * server session, the client's `useAuth()` snapshot or verified claims.
7
8
  *
8
9
  * `undefined` means the token can't answer: no claim, no entry for the tenant,
9
- * or the hook set `permissions_truncated` because the keys didn't fit. Ask the
10
+ * or the hook set the truncated marker because the keys didn't fit. Ask the
10
11
  * database then (`my_permissions`). An empty list means the token says the
11
12
  * caller holds no permission there. The claim is a cache the `authz_ver` bump
12
13
  * invalidates; RLS stays the authority.
@@ -17,14 +18,22 @@ import { t as tenantOf } from "./tenant-BR7fvPj7.js";
17
18
  * ```
18
19
  */
19
20
  function permissionsOf(session, tenant, options = {}) {
20
- const claims = claimsOf(session);
21
+ const claims = claimsFrom(session);
21
22
  if (claims === void 0) return;
22
- const id = tenant ?? tenantOf(session, options.tenantClaim);
23
- return id === void 0 ? void 0 : keysFromClaims(claims, id, options.claim ?? DEFAULT_CLAIMS.permissions);
23
+ const id = tenant ?? tenantOf(claims, options.tenantClaim);
24
+ return id === void 0 ? void 0 : keysFromClaims(claims, id, options.claim ?? DEFAULT_CLAIMS.permissions, options.truncatedClaim);
25
+ }
26
+ /**
27
+ * Whether the hook left entries out of `claim` to stay within its budget.
28
+ * `marker` is the provider's `tokenHook.truncatedClaim`; without it the marker
29
+ * is `<claim>_truncated`. A truncated claim can't answer "not granted".
30
+ */
31
+ function isTruncated(claims, claim = DEFAULT_CLAIMS.permissions, options = {}) {
32
+ return claims[truncatedMarker(claim, options.marker)] === true;
24
33
  }
25
34
  /** The keys `claims` grants in `tenant`, or `undefined` when it can't say. */
26
- function keysFromClaims(claims, tenant, claim) {
27
- if (claims[`${claim}_truncated`] === true) return;
35
+ function keysFromClaims(claims, tenant, claim, marker) {
36
+ if (isTruncated(claims, claim, { marker })) return;
28
37
  const byTenant = claims[claim];
29
38
  if (!isRecord(byTenant)) return;
30
39
  const keys = byTenant[tenant];
@@ -33,11 +42,7 @@ function keysFromClaims(claims, tenant, claim) {
33
42
  function isKeyList(value) {
34
43
  return Array.isArray(value) && value.every((key) => typeof key === "string");
35
44
  }
36
- function claimsOf(session) {
37
- if ("kind" in session) return session.kind === "user" ? session.claims : void 0;
38
- return session.status === "signed-in" ? session.claims : void 0;
39
- }
40
45
  function isRecord(value) {
41
46
  return typeof value === "object" && value !== null && !Array.isArray(value);
42
47
  }
43
- export { permissionsOf as n, keysFromClaims as t };
48
+ export { keysFromClaims as n, permissionsOf as r, isTruncated as t };
@@ -0,0 +1,44 @@
1
+ import { o as ClaimsRecord, s as ClaimsSource } from "./entitlements-BOWTZaRf.js";
2
+ interface PermissionsOfOptions {
3
+ /**
4
+ * The claim holding `{ [tenantId]: string[] }`, as
5
+ * `config.claims.permissions`. Defaults to `permissions`.
6
+ */
7
+ readonly claim?: string;
8
+ /**
9
+ * The claim the hook sets to `true` when it left keys out: the provider's
10
+ * `tokenHook.truncatedClaim`. Defaults to `<claim>_truncated`.
11
+ */
12
+ readonly truncatedClaim?: string;
13
+ /**
14
+ * The active tenant claim, as `config.claims.tenant`, when `tenant` is left
15
+ * out.
16
+ */
17
+ readonly tenantClaim?: string;
18
+ }
19
+ /**
20
+ * The permission keys the token grants in `tenant` (the active tenant by
21
+ * default), from the `permissions` claim `permission_claims()` writes. Takes a
22
+ * server session, the client's `useAuth()` snapshot or verified claims.
23
+ *
24
+ * `undefined` means the token can't answer: no claim, no entry for the tenant,
25
+ * or the hook set the truncated marker because the keys didn't fit. Ask the
26
+ * database then (`my_permissions`). An empty list means the token says the
27
+ * caller holds no permission there. The claim is a cache the `authz_ver` bump
28
+ * invalidates; RLS stays the authority.
29
+ *
30
+ * ```ts
31
+ * const keys = permissionsOf(await bsb.claims());
32
+ * if (keys !== undefined && !keys.includes("billing.manage")) forbidden();
33
+ * ```
34
+ */
35
+ declare function permissionsOf<C, P>(session: ClaimsSource<C, P>, tenant?: string, options?: PermissionsOfOptions): readonly string[] | undefined;
36
+ /**
37
+ * Whether the hook left entries out of `claim` to stay within its budget.
38
+ * `marker` is the provider's `tokenHook.truncatedClaim`; without it the marker
39
+ * is `<claim>_truncated`. A truncated claim can't answer "not granted".
40
+ */
41
+ declare function isTruncated(claims: ClaimsRecord, claim?: string, options?: {
42
+ readonly marker?: string | undefined;
43
+ }): boolean;
44
+ export { isTruncated as n, permissionsOf as r, PermissionsOfOptions as t };
@@ -1,7 +1,7 @@
1
- import { Bt as Executor } from "./types-WZUVlTXs.js";
2
- import { o as EventHub } from "./events-CfDdOwqg.js";
1
+ import { Bt as Executor } from "./types-BkYEUWdz.js";
2
+ import { o as EventHub } from "./events-DVt3Z9hw.js";
3
3
  import { n as Logger } from "./logger-0LfhvwE4.js";
4
- import { n as SqlClient } from "./executor-ynEwaUZy.js";
4
+ import { n as SqlClient } from "./executor-CFmee_nV.js";
5
5
  /** The part of a `pg` pool client `createPostgres` uses. */
6
6
  interface PgPoolClient {
7
7
  query(text: string, values?: unknown[]): Promise<{
@@ -2,7 +2,7 @@ import { a as ok, r as err, t as AsyncResult } from "./result-8xza7w5W.js";
2
2
  import { n as postgrestExecutor } from "./postgrest-executor-lf8Mt4J0.js";
3
3
  import { n as decodeJwtPayload } from "./base64-CVyKHBBw.js";
4
4
  import { i as userContext } from "./impersonation-D-quM36V.js";
5
- import { n as hasAuthModule, r as claimedTenant } from "./auth-module-CVo86UKh.js";
5
+ import { n as hasAuthModule, r as claimedTenant } from "./auth-module-CqXdm8qD.js";
6
6
  import { t as currentTenant } from "./tenant-source-46lMuMEn.js";
7
7
  import { n as identityKey } from "./user-change-Ngy8z1fZ.js";
8
8
  import { t as createQueries } from "./queries-BLrxg_GL.js";
@@ -1,5 +1,5 @@
1
1
  import { t as AsyncResult } from "./result-DTOQRyGY.js";
2
- import { n as TopicPort } from "./watch-topic-BB7T05sc.js";
2
+ import { n as TopicPort } from "./watch-topic-YYSVJGDY.js";
3
3
  import { SupabaseClient } from "@supabase/supabase-js";
4
4
  /**
5
5
  * A string store: `localStorage` on the web (`webStorage()`), AsyncStorage,
@@ -1,8 +1,8 @@
1
1
  import { E as RawDbError } from "../result-DTOQRyGY.js";
2
- import { m as Operation } from "../types-WZUVlTXs.js";
3
- import { n as SqlClient, r as postgresExecutor, t as PostgresExecutorOptions } from "../executor-ynEwaUZy.js";
4
- import { a as PostgresTimeouts, c as createPostgres, i as PostgresOptions, n as PgPool, o as SessionOptions, r as PgPoolClient, s as SqlClaims, t as BetterPostgres } from "../pool-Bji4lnQM.js";
5
- import { t as Compiler } from "../compiler-CWishtY2.js";
2
+ import { m as Operation } from "../types-BkYEUWdz.js";
3
+ import { n as SqlClient, r as postgresExecutor, t as PostgresExecutorOptions } from "../executor-CFmee_nV.js";
4
+ import { a as PostgresTimeouts, c as createPostgres, i as PostgresOptions, n as PgPool, o as SessionOptions, r as PgPoolClient, s as SqlClaims, t as BetterPostgres } from "../pool-D-4HyhuW.js";
5
+ import { t as Compiler } from "../compiler-qlXlokKn.js";
6
6
  /** Node-postgres error fields to the shape `mapDbError` reads. */
7
7
  export declare function fromPgError(error: unknown): RawDbError | undefined;
8
8
  interface SqlQuery {
@@ -1,4 +1,4 @@
1
- import { m as Operation } from "./types-WZUVlTXs.js";
1
+ import { m as Operation } from "./types-BkYEUWdz.js";
2
2
  /**
3
3
  * A compiled PostgREST request, expressed as calls on the public postgrest-js
4
4
  * builder so it works with any supabase-js client.
@@ -1,10 +1,10 @@
1
1
  import { f as Result } from "../result-DTOQRyGY.js";
2
- import { Bt as Executor } from "../types-WZUVlTXs.js";
3
- import { t as BlockTransport } from "../block-transport-Bbf1ZZre.js";
4
- import { C as UploadRouteOptions, E as uploadRoute, S as UploadRoute, T as uploadOutcome, _ as UploadConnectorOptions, b as UploadOutcome, c as LocalTablesOption, d as CreateUploadRepository, f as CrudEntryLike, g as UploadConnector, h as RejectedStore, m as RejectedChange, n as DataEngine, p as CrudQueueLike, s as LiveEngineOptions, v as UploadErrorContext, w as createUploadConnector, x as UploadRepository, y as UploadFunction } from "../data-engine-B-D6bdyx.js";
5
- import { n as TopicPort } from "../watch-topic-BB7T05sc.js";
6
- import { t as AuthSnapshot } from "../bind-8LYVJE5W.js";
7
- import { C as quoteSqliteIdent, S as likeToGlob, _ as SqliteQuery, a as postgrestTimestamp, b as SqliteValue, c as sqliteCompiler, d as SqliteDecode, f as SqliteInsertPlan, g as SqlitePlan, h as SqliteNested, i as fromSqliteError, l as SqliteColumn, m as SqliteKeys, n as SqliteDatabaseLike, o as CheckSqliteOptions, p as SqliteKeyedPlan, r as SqliteExecutorOptions, s as checkSqlite, t as SqliteContextLike, u as SqliteCompilerOptions, v as SqliteReturning, w as sqliteValue, x as compileSqlite, y as SqliteSelectPlan } from "../executor-CAhykadW.js";
2
+ import { Bt as Executor } from "../types-BkYEUWdz.js";
3
+ import { t as BlockTransport } from "../block-transport-BEtC_Kis.js";
4
+ import { C as UploadRouteOptions, E as uploadRoute, S as UploadRoute, T as uploadOutcome, _ as UploadConnectorOptions, b as UploadOutcome, c as LocalTablesOption, d as CreateUploadRepository, f as CrudEntryLike, g as UploadConnector, h as RejectedStore, m as RejectedChange, n as DataEngine, p as CrudQueueLike, s as LiveEngineOptions, v as UploadErrorContext, w as createUploadConnector, x as UploadRepository, y as UploadFunction } from "../data-engine-CMENsp3d.js";
5
+ import { n as TopicPort } from "../watch-topic-YYSVJGDY.js";
6
+ import { t as AuthSnapshot } from "../bind-BA05aoY9.js";
7
+ import { C as quoteSqliteIdent, S as likeToGlob, _ as SqliteQuery, a as postgrestTimestamp, b as SqliteValue, c as sqliteCompiler, d as SqliteDecode, f as SqliteInsertPlan, g as SqlitePlan, h as SqliteNested, i as fromSqliteError, l as SqliteColumn, m as SqliteKeys, n as SqliteDatabaseLike, o as CheckSqliteOptions, p as SqliteKeyedPlan, r as SqliteExecutorOptions, s as checkSqlite, t as SqliteContextLike, u as SqliteCompilerOptions, v as SqliteReturning, w as sqliteValue, x as compileSqlite, y as SqliteSelectPlan } from "../executor-CHnoKOxk.js";
8
8
  /** The part of PowerSync's `SyncStatus` the engine reads. */
9
9
  interface SyncStatusLike {
10
10
  readonly connected: boolean;
@@ -1,4 +1,4 @@
1
- import { $n as PresetGroup, Ai as PresetValueInfo, At as PresetConflict, Ci as PresetConventions, Ct as ConfigConventions, Di as PresetFramework, Dt as expandPreset, Ei as PresetFieldValue, Et as conventionConfig, Ft as presetBlockConflict, Gn as presetFromSpec, It as resolvePreset, Jn as DEFAULT_PRESET_NAME, Kn as presetOfSpec, Mi as presetField, Mt as ResolvedPreset, Ni as presetValueLabel, Nt as ResolvedPresetBlock, Oi as PresetPlatforms, Ot as presetConfig, Pt as listNames, Qn as PRESET_NAMES, Si as PresetAccess, Ti as PresetFieldKey, Tt as PresetInput, Wn as PresetSpec, Xn as PRESETS, Yn as NamedPreset, Zn as PRESET_GROUPS, _i as CONVENTION_FIELDS, _r as AppColumnFormat, bi as PRESET_TENANT_NAMES, di as INSTANCE_NAME, er as PresetName, fi as instancePrefix, gi as PresetGlueItem, hi as PresetCatalogManifest, ji as integrationsForFramework, jt as PresetIntegration, ki as PresetScope, kt as presetOf, mi as PresetCatalogBlock, nr as isPresetName, pi as PresetCatalog, qn as presetSpec, rr as namedPreset, tr as defaultPreset, ui as CORE_BLOCKS, ur as APP_COLUMN_FORMATS, vi as DEFAULT_CONVENTIONS, wi as PresetField, wt as ExpandedConfig, xi as Preset, yi as PRESET_FRAMEWORKS } from "../context-DcxfrCml.js";
2
- import { $ as readDesignFile, A as DesignFile, B as designFileSource, C as diffAppTables, D as DESIGN_FILE, E as CreateDesign, F as MAX_DESIGN_CODE_LENGTH, G as isDesignCode, H as designOf, I as createQuery, J as presetApplyCommand, K as parseDesign, L as createUrl, M as DesignParseIssue, N as DesignParseResult, O as DESIGN_FORMAT, P as DesignTooLongError, Q as presetKey, R as decodeDesign, S as DiffOptions, T as CREATE_URL, U as designSchema, V as designFormat, W as encodeDesign, X as presetConfigSource, Y as presetArgumentOf, Z as presetInstallCommand, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, et as safeDesignFileSource, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, it as PRESET_CATALOG, j as DesignParseError, k as DesignErrorCode, l as instanceBlock, m as withInstance, n as BlockInstance, nt as appDefaultError, o as canAddInstance, p as withEntityName, q as presetAndDesignOf, r as PresetInstance, rt as isAppDefault, s as entityName, t as BlockEntity, tt as safeParseDesign, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue, z as designConfig } from "../index-CRrBZtKm.js";
3
- import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-DomvYx5b.js";
1
+ import { $n as PresetGroup, Ai as PresetValueInfo, At as PresetConflict, Ci as PresetConventions, Ct as ConfigConventions, Di as PresetFramework, Dt as expandPreset, Ei as PresetFieldValue, Et as conventionConfig, Ft as presetBlockConflict, Gn as presetFromSpec, It as resolvePreset, Jn as DEFAULT_PRESET_NAME, Kn as presetOfSpec, Mi as presetField, Mt as ResolvedPreset, Ni as presetValueLabel, Nt as ResolvedPresetBlock, Oi as PresetPlatforms, Ot as presetConfig, Pt as listNames, Qn as PRESET_NAMES, Si as PresetAccess, Ti as PresetFieldKey, Tt as PresetInput, Wn as PresetSpec, Xn as PRESETS, Yn as NamedPreset, Zn as PRESET_GROUPS, _i as CONVENTION_FIELDS, _r as AppColumnFormat, bi as PRESET_TENANT_NAMES, di as INSTANCE_NAME, er as PresetName, fi as instancePrefix, gi as PresetGlueItem, hi as PresetCatalogManifest, ji as integrationsForFramework, jt as PresetIntegration, ki as PresetScope, kt as presetOf, mi as PresetCatalogBlock, nr as isPresetName, pi as PresetCatalog, qn as presetSpec, rr as namedPreset, tr as defaultPreset, ui as CORE_BLOCKS, ur as APP_COLUMN_FORMATS, vi as DEFAULT_CONVENTIONS, wi as PresetField, wt as ExpandedConfig, xi as Preset, yi as PRESET_FRAMEWORKS } from "../context-BGC0J3t9.js";
2
+ import { $ as readDesignFile, A as DesignFile, B as designFileSource, C as diffAppTables, D as DESIGN_FILE, E as CreateDesign, F as MAX_DESIGN_CODE_LENGTH, G as isDesignCode, H as designOf, I as createQuery, J as presetApplyCommand, K as parseDesign, L as createUrl, M as DesignParseIssue, N as DesignParseResult, O as DESIGN_FORMAT, P as DesignTooLongError, Q as presetKey, R as decodeDesign, S as DiffOptions, T as CREATE_URL, U as designSchema, V as designFormat, W as encodeDesign, X as presetConfigSource, Y as presetArgumentOf, Z as presetInstallCommand, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, et as safeDesignFileSource, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, it as PRESET_CATALOG, j as DesignParseError, k as DesignErrorCode, l as instanceBlock, m as withInstance, n as BlockInstance, nt as appDefaultError, o as canAddInstance, p as withEntityName, q as presetAndDesignOf, r as PresetInstance, rt as isAppDefault, s as entityName, t as BlockEntity, tt as safeParseDesign, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue, z as designConfig } from "../index-QTZIopQj.js";
3
+ import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-Don-aNOB.js";
4
4
  export { APP_COLUMN_FORMATS, APP_NAME_MAX, type AppColumnFormat, type BlockEntity, type BlockInstance, CONVENTION_FIELDS, CREATE_URL, type ConfigConventions, type CreateDesign, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, type DesignChange, type DesignChangeKind, type DesignErrorCode, type DesignFile, DesignParseError, type DesignParseIssue, type DesignParseResult, DesignTooLongError, type DiffOptions, type ExpandedConfig, INSTANCE_NAME, MAX_DESIGN_CODE_LENGTH, type NamedPreset, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, type Preset, type PresetAccess, type PresetCatalog, type PresetCatalogBlock, type PresetCatalogManifest, type PresetConflict, type PresetConventions, type PresetField, type PresetFieldKey, type PresetFieldValue, type PresetFramework, type PresetGlueItem, type PresetGroup, type PresetInput, type PresetInstance, type PresetIntegration, type PresetName, type PresetPlatforms, type PresetScope, type PresetSpec, type PresetValueInfo, type ResolvedPreset, type ResolvedPresetBlock, CORE_BLOCKS as SINGLE_INSTANCE_BLOCKS, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, blockEntities, blockRequires, canAddInstance, conventionConfig, createQuery, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, entityName, expandPreset, glueCommand, installedBlocks, instanceBlock, instanceNameProblem, instancePrefix, instancesOf, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetArgumentOf, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetInstances, presetKey, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, resolvePreset, safeDesignFileSource, safeParseDesign, withEntityName, withInstance, withoutInstance };
@@ -1,8 +1,8 @@
1
1
  import { a as presetOf, d as resolvePreset } from "./config-MDRA2sre.js";
2
2
  import { M as PRESET_CATALOG, b as isAppDefault, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, y as appDefaultError } from "./instances-D31jrmKh.js";
3
- import { c as resolveConfig } from "./config-BhExAhNK.js";
3
+ import { c as resolveConfig } from "./config-Bu6pwqcO.js";
4
4
  import { D as designOf, M as parseDesign, j as jsonPointer, k as encodeDesign, v as DesignParseError, w as designConfig, y as DesignTooLongError } from "./preset-om2rbdYw.js";
5
- import { F as renderBlocks, S as moduleLayout, nt as SQL_MODULES } from "./sql-BPV51R3A.js";
5
+ import { I as renderBlocks, j as moduleLayout, rt as SQL_MODULES } from "./sql-DdtukoIm.js";
6
6
  // src/create/column-keys.ts
7
7
  /** The most options a select takes, and the longest option. */
8
8
  const MAX_OPTIONS = 100;
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { b as DbError, t as AsyncResult } from "./result-DTOQRyGY.js";
3
- import { r as AuthState } from "./resolve-DVOtYTAc.js";
3
+ import { r as AuthState } from "./resolve--LfVoOMg.js";
4
4
  /**
5
5
  * Names a credential without holding it. Tables store this as a `credential_ref
6
6
  * jsonb` column; `provider` picks the `CredentialProvider` and the other keys
@@ -1,4 +1,4 @@
1
- import { s as PushTokenPort } from "./ports-zFqRNXVJ.js";
1
+ import { s as PushTokenPort } from "./ports-XvgCe7ey.js";
2
2
  /** The part of `expo-notifications` the push token port uses. */
3
3
  interface ExpoNotificationsLike {
4
4
  getPermissionsAsync(): Promise<{
@@ -1,4 +1,4 @@
1
1
  import { t as escapeLike } from "../escape-like-CK6L7gkj.js";
2
2
  import { n as invalidateTables, t as BetterQueryMeta } from "../invalidate-DAB9CaPm.js";
3
- import { $ as invalidateOnBlockEvents, G as BLOCK_READ_PREFIXES, J as BlockInvalidation, K as BlockClientQueries, Q as blockQueries, X as BlockQueries, Y as BlockMethodQuery, Z as BlockVariablesOf, a as RecordBindingQueries, at as InfiniteOptionsOf, c as RecordWriteMutations, ct as QueryHelpers, dt as TableQueries, et as queryEngine, ft as createQueries, i as optimistic, it as InfiniteExtras, l as invalidateOnRecordEvents, lt as QueryKeyOf, mt as queryCache, n as OptimisticSnapshot, nt as clearOnUserChange, o as RecordQueries, ot as MutationOptionsOf, pt as invalidateOnMutation, q as BlockClients, r as OptimisticTarget, rt as BetterQueries, s as RecordQueriesOptions, st as QueriesOptions, t as OptimisticHandlers, tt as UserChangeSource, u as recordQueries, ut as QueryOptionsOf } from "../index-D2BGCjIz.js";
3
+ import { $ as invalidateOnBlockEvents, G as BLOCK_READ_PREFIXES, J as BlockInvalidation, K as BlockClientQueries, Q as blockQueries, X as BlockQueries, Y as BlockMethodQuery, Z as BlockVariablesOf, a as RecordBindingQueries, at as InfiniteOptionsOf, c as RecordWriteMutations, ct as QueryHelpers, dt as TableQueries, et as queryEngine, ft as createQueries, i as optimistic, it as InfiniteExtras, l as invalidateOnRecordEvents, lt as QueryKeyOf, mt as queryCache, n as OptimisticSnapshot, nt as clearOnUserChange, o as RecordQueries, ot as MutationOptionsOf, pt as invalidateOnMutation, q as BlockClients, r as OptimisticTarget, rt as BetterQueries, s as RecordQueriesOptions, st as QueriesOptions, t as OptimisticHandlers, tt as UserChangeSource, u as recordQueries, ut as QueryOptionsOf } from "../index-BIAtapnD.js";
4
4
  export { BLOCK_READ_PREFIXES, type BetterQueries, type BetterQueryMeta, type BlockClientQueries, type BlockClients, type BlockInvalidation, type BlockMethodQuery, type BlockQueries, type BlockVariablesOf, type InfiniteExtras, type InfiniteOptionsOf, type MutationOptionsOf, type OptimisticHandlers, type OptimisticSnapshot, type OptimisticTarget, type QueriesOptions, type QueryHelpers, type QueryKeyOf, type QueryOptionsOf, type RecordBindingQueries, type RecordQueries, type RecordQueriesOptions, type RecordWriteMutations, type TableQueries, type UserChangeSource, blockQueries, clearOnUserChange, createQueries, escapeLike, invalidateOnBlockEvents, invalidateOnMutation, invalidateOnRecordEvents, invalidateTables, optimistic, queryCache, queryEngine, recordQueries };
@@ -1,13 +1,13 @@
1
1
  import { t as escapeLike } from "../escape-like-CK6L7gkj.js";
2
2
  import { n as Impersonator } from "../impersonation-BOCJcsmS.js";
3
- import { i as DataEntry, m as RejectedChange, n as DataEngine, o as DataSyncState } from "../data-engine-B-D6bdyx.js";
4
- import { t as tenantOf } from "../tenant-RKvGBB-U.js";
5
- import { t as AuthSession } from "../view-DmEZA1fL.js";
6
- import { r as LiveCountSeed } from "../index-B2871MHr.js";
7
- import { r as MembershipClaim } from "../entitlements-XwpuBbKN.js";
8
- import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, l as BlockEventSource, m as BlockQueryState, o as DataSource, p as BlockQueryOptions, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-tQr-anYL.js";
9
- import { n as supportOf, t as SupportView } from "../support-view-WY4Y-A40.js";
10
- import { $ as UseActionFormOptions, A as useController, B as RecordListUrl, C as useConflicts, D as defineDataHooks, E as DataView, F as RecordFormState, G as RecordInitial, H as useRecordListState, I as UseRecordFormOptions, J as RecordState, K as RecordProviderKit, L as useRecordForm, M as useBlockEvent, N as useBlockMutation, O as useBlockEnv, P as useBlockQuery, Q as ActionHandle, R as RecordListQueryStates, S as Conflicts, T as DataHooks, U as RecordActionsOf, V as RecordListUrlState, W as RecordContextValue, X as createRecordProvider, Y as RecordWriteHandlers, Z as ActionForm, _ as useRealtimeRelay, a as Upload, at as LiveCount, b as PresenceTopic, c as UseImageOptions, ct as useBroadcast, d as useSignedUrl, dt as useSupabase, et as useAction, f as useUpload, g as UseRealtimeRelayOptions, h as useDebouncedSearch, i as StorageImage, it as BetterSupabaseProviderProps, j as useLatest, k as useBlockTenant, l as UseUploadOptions, lt as useLiveCount, m as DebouncedSearchOptions, n as SignedUrl, nt as BetterHooks, o as UploadStatus, ot as createHooks, p as DebouncedSearch, q as RecordProviderProps, r as SignedUrlSource, rt as BetterSupabaseProvider, s as UploadTarget, st as useAuth, t as ImageSource, tt as useActionForm, u as useImage, ut as useLiveQuery, v as Presence, w as useSyncStatus, x as usePresence, y as PresenceHookOptions, z as RecordListState } from "../index-xCpjvDVm.js";
3
+ import { i as DataEntry, m as RejectedChange, n as DataEngine, o as DataSyncState } from "../data-engine-CMENsp3d.js";
4
+ import { r as MembershipClaim } from "../entitlements-BOWTZaRf.js";
5
+ import { t as tenantOf } from "../tenant-DkKbvK5T.js";
6
+ import { n as AuthSession } from "../view-Cy2XxYp1.js";
7
+ import { r as LiveCountSeed } from "../index-Bz0WLuh_.js";
8
+ import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, l as BlockEventSource, m as BlockQueryState, o as DataSource, p as BlockQueryOptions, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DxPZYw2m.js";
9
+ import { n as supportOf, t as SupportView } from "../support-view-DSmCett7.js";
10
+ import { $ as UseActionFormOptions, A as useController, B as RecordListUrl, C as useConflicts, D as defineDataHooks, E as DataView, F as RecordFormState, G as RecordInitial, H as useRecordListState, I as UseRecordFormOptions, J as RecordState, K as RecordProviderKit, L as useRecordForm, M as useBlockEvent, N as useBlockMutation, O as useBlockEnv, P as useBlockQuery, Q as ActionHandle, R as RecordListQueryStates, S as Conflicts, T as DataHooks, U as RecordActionsOf, V as RecordListUrlState, W as RecordContextValue, X as createRecordProvider, Y as RecordWriteHandlers, Z as ActionForm, _ as useRealtimeRelay, a as Upload, at as LiveCount, b as PresenceTopic, c as UseImageOptions, ct as useBroadcast, d as useSignedUrl, dt as useSupabase, et as useAction, f as useUpload, g as UseRealtimeRelayOptions, h as useDebouncedSearch, i as StorageImage, it as BetterSupabaseProviderProps, j as useLatest, k as useBlockTenant, l as UseUploadOptions, lt as useLiveCount, m as DebouncedSearchOptions, n as SignedUrl, nt as BetterHooks, o as UploadStatus, ot as createHooks, p as DebouncedSearch, q as RecordProviderProps, r as SignedUrlSource, rt as BetterSupabaseProvider, s as UploadTarget, st as useAuth, t as ImageSource, tt as useActionForm, u as useImage, ut as useLiveQuery, v as Presence, w as useSyncStatus, x as usePresence, y as PresenceHookOptions, z as RecordListState } from "../index-Bhkag9ZE.js";
11
11
  import { SessionProvider, SessionProviderProps, useSession, useSupportSession } from "./session.js";
12
12
  import { a as useSignIn, i as SignOut, n as PendingState, o as useSignOut, r as SignIn, t as AuthHookOptions } from "../sign-in-C9pZE1kM.js";
13
13
  export { type ActionForm, type ActionHandle, type ActionInputOf, type ActionResultOf, type AuthHookOptions, type AuthSession, type BetterHooks, BetterSupabaseProvider, type BetterSupabaseProviderProps, type BlockEventSource, type BlockMutationActions, type BlockMutationState, type BlockQueryActions, type BlockQueryOptions, type BlockQueryState, type BlockRefetchOn, type BroadcastOptions, type ClaimsOf, type ClientLike, type Conflicts, type DataEngine, type DataEntry, type DataHooks, type DataSource, type DataState, type DataSyncState, type DataView, type DataWrites, type DebouncedSearch, type DebouncedSearchOptions, type ImageSource, type Impersonator, type LiveCount, type LiveCountHookOptions, type LiveCountSeed, type LiveQueryHookOptions, type MembershipClaim, type PendingState, type Presence, type PresenceHookOptions, type PresenceTopic, type ProfileOf, type RecordActionsOf, type RecordContextValue, type RecordFormState, type RecordInitial, type RecordListQueryStates, type RecordListState, type RecordListUrl, type RecordListUrlState, type RecordProviderKit, type RecordProviderProps, type RecordState, type RecordWriteHandlers, type RejectedChange, SessionProvider, type SessionProviderProps, type SignIn, type SignOut, type SignedUrl, type SignedUrlSource, type StorageImage, type SupportView, type Upload, type UploadStatus, type UploadTarget, type UseActionFormOptions, type UseActionOptions, type UseImageOptions, type UseRealtimeRelayOptions, type UseRecordFormOptions, type UseUploadOptions, createHooks, createRecordProvider, defineDataHooks, escapeLike, fieldErrorsOf, supportOf, tenantOf, useAction, useActionForm, useAuth, useBlockEnv, useBlockEvent, useBlockMutation, useBlockQuery, useBlockTenant, useBroadcast, useConflicts, useController, useDebouncedSearch, useImage, useLatest, useLiveCount, useLiveQuery, usePresence, useRealtimeRelay, useRecordForm, useRecordListState, useSession, useSignIn, useSignOut, useSignedUrl, useSupabase, useSupportSession, useSyncStatus, useUpload };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { t as escapeLike } from "../escape-like-gxNXs145.js";
3
- import { a as createHooks, d as useSupabase, i as BetterSupabaseProvider, l as useLiveCount, n as useSignIn, o as useAuth, r as useSignOut, s as useBroadcast, u as useLiveQuery } from "../sign-in-CXOg2Dwb.js";
3
+ import { a as createHooks, d as useSupabase, i as BetterSupabaseProvider, l as useLiveCount, n as useSignIn, o as useAuth, r as useSignOut, s as useBroadcast, u as useLiveQuery } from "../sign-in-CxdoTEp5.js";
4
4
  import { t as supportOf } from "../support-view-CvDEgyGY.js";
5
5
  import { SessionProvider, useSession, useSupportSession } from "./session.js";
6
6
  import { d as fieldErrorsOf } from "../data-hooks-BToeAcQ_.js";
7
- import { _ as useBlockTenant, a as useRealtimeRelay, b as useAction, c as useSyncStatus, d as useBlockMutation, f as useBlockQuery, g as useBlockEnv, h as createRecordProvider, i as useDebouncedSearch, l as defineDataHooks, m as useRecordListState, n as useSignedUrl, o as usePresence, p as useRecordForm, r as useUpload, s as useConflicts, t as useImage, u as useBlockEvent, v as useController, x as useActionForm, y as useLatest } from "../react-C40oomj7.js";
8
- import { t as tenantOf } from "../tenant-BR7fvPj7.js";
7
+ import { _ as useBlockTenant, a as useRealtimeRelay, b as useAction, c as useSyncStatus, d as useBlockMutation, f as useBlockQuery, g as useBlockEnv, h as createRecordProvider, i as useDebouncedSearch, l as defineDataHooks, m as useRecordListState, n as useSignedUrl, o as usePresence, p as useRecordForm, r as useUpload, s as useConflicts, t as useImage, u as useBlockEvent, v as useController, x as useActionForm, y as useLatest } from "../react-COIov1yC.js";
8
+ import { t as tenantOf } from "../tenant-Beqd7TTq.js";
9
9
  export { BetterSupabaseProvider, SessionProvider, createHooks, createRecordProvider, defineDataHooks, escapeLike, fieldErrorsOf, supportOf, tenantOf, useAction, useActionForm, useAuth, useBlockEnv, useBlockEvent, useBlockMutation, useBlockQuery, useBlockTenant, useBroadcast, useConflicts, useController, useDebouncedSearch, useImage, useLatest, useLiveCount, useLiveQuery, usePresence, useRealtimeRelay, useRecordForm, useRecordListState, useSession, useSignIn, useSignOut, useSignedUrl, useSupabase, useSupportSession, useSyncStatus, useUpload };
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "../../bind-8LYVJE5W.js";
1
+ import { t as AuthSnapshot } from "../../bind-BA05aoY9.js";
2
2
  import { a as OAuthSignInOptions, i as OAuthClient, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, t as AuthFailure } from "../../auth-link-DRjtI1Ky.js";
3
3
  import { n as PendingState } from "../../sign-in-C9pZE1kM.js";
4
4
  import { Provider } from "@supabase/supabase-js";
@@ -1,5 +1,5 @@
1
1
  import { r as signInWithOAuthBrowser, t as handleAuthDeepLink } from "../../auth-link-BmJsQG4a.js";
2
- import { f as ClientContext, o as useAuth, t as usePending } from "../../sign-in-CXOg2Dwb.js";
2
+ import { f as ClientContext, o as useAuth, t as usePending } from "../../sign-in-CxdoTEp5.js";
3
3
  import { useContext, useEffect, useMemo, useRef, useState } from "react";
4
4
  // src/react/native/index.ts
5
5
  function useClientOf(explicit, hook) {
@@ -1,13 +1,13 @@
1
1
  import { t as escapeLike } from "../escape-like-CK6L7gkj.js";
2
- import { mt as QuerySpec } from "../define-3RbqoF1S.js";
2
+ import { mt as QuerySpec } from "../define-ITQA71fw.js";
3
3
  import { n as Impersonator } from "../impersonation-BOCJcsmS.js";
4
- import { t as tenantOf } from "../tenant-RKvGBB-U.js";
5
- import { t as AuthSession } from "../view-DmEZA1fL.js";
6
- import { r as LiveCountSeed } from "../index-B2871MHr.js";
7
- import { r as MembershipClaim } from "../entitlements-XwpuBbKN.js";
8
- import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, b as ClaimsOf, g as ActionInputOf, t as fieldErrorsOf, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-tQr-anYL.js";
9
- import { n as supportOf, t as SupportView } from "../support-view-WY4Y-A40.js";
10
- import { $ as UseActionFormOptions, A as useController$1, B as RecordListUrl, C as useConflicts$1, D as defineDataHooks$1, F as RecordFormState, G as RecordInitial, H as useRecordListState$1, I as UseRecordFormOptions, J as RecordState, K as RecordProviderKit, L as useRecordForm$1, M as useBlockEvent$1, N as useBlockMutation$1, O as useBlockEnv$1, P as useBlockQuery$1, Q as ActionHandle, R as RecordListQueryStates, U as RecordActionsOf, V as RecordListUrlState, W as RecordContextValue, X as createRecordProvider$1, Y as RecordWriteHandlers, Z as ActionForm, _ as useRealtimeRelay$1, a as Upload, at as LiveCount, b as PresenceTopic, c as UseImageOptions, ct as useBroadcast, d as useSignedUrl$1, dt as useSupabase, f as useUpload$1, g as UseRealtimeRelayOptions, h as useDebouncedSearch$1, i as StorageImage, it as BetterSupabaseProviderProps, j as useLatest$1, k as useBlockTenant$1, l as UseUploadOptions, m as DebouncedSearchOptions, n as SignedUrl, nt as BetterHooks, o as UploadStatus, p as DebouncedSearch, q as RecordProviderProps, r as SignedUrlSource, rt as BetterSupabaseProvider, s as UploadTarget, st as useAuth, t as ImageSource, u as useImage$1, ut as useLiveQuery, v as Presence, w as useSyncStatus$1, x as usePresence$1, y as PresenceHookOptions, z as RecordListState } from "../index-xCpjvDVm.js";
4
+ import { r as MembershipClaim } from "../entitlements-BOWTZaRf.js";
5
+ import { t as tenantOf } from "../tenant-DkKbvK5T.js";
6
+ import { n as AuthSession } from "../view-Cy2XxYp1.js";
7
+ import { r as LiveCountSeed } from "../index-Bz0WLuh_.js";
8
+ import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, b as ClaimsOf, g as ActionInputOf, t as fieldErrorsOf, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DxPZYw2m.js";
9
+ import { n as supportOf, t as SupportView } from "../support-view-DSmCett7.js";
10
+ import { $ as UseActionFormOptions, A as useController$1, B as RecordListUrl, C as useConflicts$1, D as defineDataHooks$1, F as RecordFormState, G as RecordInitial, H as useRecordListState$1, I as UseRecordFormOptions, J as RecordState, K as RecordProviderKit, L as useRecordForm$1, M as useBlockEvent$1, N as useBlockMutation$1, O as useBlockEnv$1, P as useBlockQuery$1, Q as ActionHandle, R as RecordListQueryStates, U as RecordActionsOf, V as RecordListUrlState, W as RecordContextValue, X as createRecordProvider$1, Y as RecordWriteHandlers, Z as ActionForm, _ as useRealtimeRelay$1, a as Upload, at as LiveCount, b as PresenceTopic, c as UseImageOptions, ct as useBroadcast, d as useSignedUrl$1, dt as useSupabase, f as useUpload$1, g as UseRealtimeRelayOptions, h as useDebouncedSearch$1, i as StorageImage, it as BetterSupabaseProviderProps, j as useLatest$1, k as useBlockTenant$1, l as UseUploadOptions, m as DebouncedSearchOptions, n as SignedUrl, nt as BetterHooks, o as UploadStatus, p as DebouncedSearch, q as RecordProviderProps, r as SignedUrlSource, rt as BetterSupabaseProvider, s as UploadTarget, st as useAuth, t as ImageSource, u as useImage$1, ut as useLiveQuery, v as Presence, w as useSyncStatus$1, x as usePresence$1, y as PresenceHookOptions, z as RecordListState } from "../index-Bhkag9ZE.js";
11
11
  import { SessionProvider, SessionProviderProps } from "./session.js";
12
12
  import { a as useSignIn$1, i as SignOut, n as PendingState, o as useSignOut$1, r as SignIn, t as AuthHookOptions } from "../sign-in-C9pZE1kM.js";
13
13
  /** The `react-server` build of `useSession`: await `bsb.claims()` instead. */
@@ -1,9 +1,9 @@
1
1
  import { t as escapeLike } from "../escape-like-gxNXs145.js";
2
- import { d as useSupabase, i as BetterSupabaseProvider, o as useAuth, s as useBroadcast, u as useLiveQuery } from "../sign-in-CXOg2Dwb.js";
2
+ import { d as useSupabase, i as BetterSupabaseProvider, o as useAuth, s as useBroadcast, u as useLiveQuery } from "../sign-in-CxdoTEp5.js";
3
3
  import { t as supportOf } from "../support-view-CvDEgyGY.js";
4
4
  import { d as fieldErrorsOf } from "../data-hooks-BToeAcQ_.js";
5
- import "../react-C40oomj7.js";
6
- import { t as tenantOf } from "../tenant-BR7fvPj7.js";
5
+ import "../react-COIov1yC.js";
6
+ import { t as tenantOf } from "../tenant-Beqd7TTq.js";
7
7
  import { SessionProvider } from "./session.js";
8
8
  // src/react/server.ts
9
9
  function clientOnly(name) {
@@ -1,5 +1,5 @@
1
- import { t as AuthSession } from "../view-DmEZA1fL.js";
2
- import { t as SupportView } from "../support-view-WY4Y-A40.js";
1
+ import { n as AuthSession } from "../view-Cy2XxYp1.js";
2
+ import { t as SupportView } from "../support-view-DSmCett7.js";
3
3
  import { ReactNode } from "react";
4
4
  export interface SessionProviderProps {
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { n as dbError } from "./errors-B7tCfCvX.js";
2
2
  import { t as escapeLike } from "./escape-like-gxNXs145.js";
3
3
  import { a as ok, r as err, s as toDbError } from "./result-8xza7w5W.js";
4
- import { c as useBroadcastAuth, f as ClientContext } from "./sign-in-CXOg2Dwb.js";
4
+ import { c as useBroadcastAuth, f as ClientContext } from "./sign-in-CxdoTEp5.js";
5
5
  import { useOptionalSupportSession } from "./react/session.js";
6
6
  import { a as blockArgsKey, c as listenToBlockEvents, d as fieldErrorsOf, i as dataTarget, l as blockEnv, n as createDataOne, o as createBlockMutation, r as dataArgsKey, s as createBlockQuery, t as createDataList } from "./data-hooks-BToeAcQ_.js";
7
7
  import { U as rpcTransport } from "./block-helpers-I7UzjNEf.js";
@@ -1,10 +1,9 @@
1
- import { O as AnyFunctions, k as AnyModels } from "../types-WZUVlTXs.js";
2
- import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-AswD5q6g.js";
3
- import { t as BetterSupabase } from "../define-3RbqoF1S.js";
4
- import { n as BetterServer } from "../server-types-C3p3jUqr.js";
5
- import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-CJKo0soh.js";
6
- import { t as RefusalRedirects } from "../refusal-DEuFVi4s.js";
7
- import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-CyDn_SXR.js";
1
+ import { Ht as AnyAuthorizer, O as AnyFunctions, k as AnyModels, nn as PermissionRef } from "../types-BkYEUWdz.js";
2
+ import { t as BetterSupabase } from "../define-ITQA71fw.js";
3
+ import { r as BetterServer } from "../server-types-C2hlvhP4.js";
4
+ import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-OgFOW9rX.js";
5
+ import { t as RefusalRedirects } from "../refusal-CGi-0Q18.js";
6
+ import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-BFlaPuvv.js";
8
7
  import { t as Validated } from "../shared-DsBcvj6q.js";
9
8
  import { AnyEntry, Contributions } from "@supabase/middleware";
10
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,10 +1,10 @@
1
1
  import { o as problemResponse } from "../problem-C0SVHhd3.js";
2
- import { c as extendServer, o as withFlush, s as createServer } from "../adapter-CPPN80mx.js";
3
- import { n as defaultExpose, s as settle } from "../respond-C2qvP1wv.js";
4
- import { i as requireCaller, o as runAction } from "../kit-CVZDd1X9.js";
2
+ import { c as extendServer, o as withFlush, s as createServer } from "../adapter-CWzyKepA.js";
3
+ import { n as defaultExpose, s as settle } from "../respond-DLH4tD2d.js";
4
+ import { i as requireCaller, o as runAction } from "../kit-9pZP5iLU.js";
5
5
  import { n as bufferInPlace, t as around } from "../shared-Ci1g9nl4.js";
6
- import { i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-B1h-uquj.js";
7
- import { r as refusalResponse } from "../refusal-DhX7Xpfp.js";
6
+ import { i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-ChzJYkJW.js";
7
+ import { r as refusalResponse } from "../refusal-5c6UMpUP.js";
8
8
  // src/bridges/react-router.ts
9
9
  /**
10
10
  * Runs an entry array as React Router server middleware. The contributions are
@@ -58,7 +58,7 @@ function createReactRouter(betterSupabase, options) {
58
58
  loader(loaderOptions, fn) {
59
59
  return async (args) => {
60
60
  const scope = locals(args);
61
- const caller = await requireCaller(scope.bsb.auth, loaderOptions, scope.tenant, server.authorizer, scope);
61
+ const caller = await requireCaller(scope.bsb.auth, loaderOptions, scope.tenant, server.authorizer, scope, args.request.method);
62
62
  if ("kind" in caller) throw refusalResponse(caller, args.request, options, expose);
63
63
  const ctx = {
64
64
  ...scope,
@@ -1,8 +1,8 @@
1
- import { D as AccessTopicPolicy, E as AccessPolicySql } from "../types-WZUVlTXs.js";
2
- import { et as TemplateParams, tt as TemplateValues } from "../bucket-Clq5xINQ.js";
1
+ import { D as AccessTopicPolicy, E as AccessPolicySql } from "../types-BkYEUWdz.js";
2
+ import { et as TemplateParams, tt as TemplateValues } from "../bucket-DvG66r5G.js";
3
3
  import { t as RealtimeStatus } from "../realtime-status-D3oUx3o4.js";
4
- import { A as TriggerTopic, C as TopicSubscription, D as TriggerLookup, E as TopicTriggerValue, F as FanOutResult, I as TopicFanOutOptions, M as defineTopic, N as rowChange, O as TriggerOptions, P as rowKeys, S as TopicSubscribeOptions, T as TopicTriggerOptions, _ as TopicMessage, a as PresenceOutput, b as TopicPermission, c as RealtimeClient, d as SubscribeOptions, f as Subscription, g as TopicHandlers, h as TopicEvent, i as PresenceOptions, j as TriggerValue, k as TriggerPayloadMode, l as RowChange, m as Topic, n as PresenceInput, o as PresenceSchema, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas, u as RowKeys, v as TopicOptions, w as TopicTriggerLookup, x as TopicSqlOptions, y as TopicPayload } from "../topic-Dr8VYE4D.js";
5
- import { a as watchTopic, i as topicPort, n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-BB7T05sc.js";
6
- import { S as relayTopicPort, _ as subjectPresenceValues, a as LiveSource, b as RelayEventSourceConstructor, c as liveCount, d as realtimeChanges, f as SUBJECT_PRESENCE_TEMPLATE, g as subjectPresenceTopic, h as subjectPresence, i as LiveQueryOptions, l as liveQuery, m as SubjectPresenceValues, n as LiveCountOptions, o as LiveSubscription, p as SubjectPresenceTopic, r as LiveCountSeed, s as RealtimeChangesOptions, t as CountRunner, u as liveTopic, v as RelayClientOptions, x as relayRealtimeClient, y as RelayEventSource } from "../index-B2871MHr.js";
7
- import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-DWkVSbFr.js";
4
+ import { A as TriggerTopic, C as TopicSubscription, D as TriggerLookup, E as TopicTriggerValue, F as FanOutResult, I as TopicFanOutOptions, M as defineTopic, N as rowChange, O as TriggerOptions, P as rowKeys, S as TopicSubscribeOptions, T as TopicTriggerOptions, _ as TopicMessage, a as PresenceOutput, b as TopicPermission, c as RealtimeClient, d as SubscribeOptions, f as Subscription, g as TopicHandlers, h as TopicEvent, i as PresenceOptions, j as TriggerValue, k as TriggerPayloadMode, l as RowChange, m as Topic, n as PresenceInput, o as PresenceSchema, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas, u as RowKeys, v as TopicOptions, w as TopicTriggerLookup, x as TopicSqlOptions, y as TopicPayload } from "../topic-B6zuexk7.js";
5
+ import { a as watchTopic, i as topicPort, n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-YYSVJGDY.js";
6
+ import { S as relayTopicPort, _ as subjectPresenceValues, a as LiveSource, b as RelayEventSourceConstructor, c as liveCount, d as realtimeChanges, f as SUBJECT_PRESENCE_TEMPLATE, g as subjectPresenceTopic, h as subjectPresence, i as LiveQueryOptions, l as liveQuery, m as SubjectPresenceValues, n as LiveCountOptions, o as LiveSubscription, p as SubjectPresenceTopic, r as LiveCountSeed, s as RealtimeChangesOptions, t as CountRunner, u as liveTopic, v as RelayClientOptions, x as relayRealtimeClient, y as RelayEventSource } from "../index-Bz0WLuh_.js";
7
+ import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-BlD8tALG.js";
8
8
  export { type AccessPolicySql, type AccessTopicPolicy, type CountRunner, type EventSchemas, type FanOutResult, type LiveCountOptions, type LiveCountSeed, type LiveQueryOptions, type LiveSource, type LiveSubscription, type PresenceInput, type PresenceMember, type PresenceOptions, type PresenceOutput, type PresenceSchema, type PresenceSubscription, type RealtimeChangesOptions, type RealtimeClient, type RealtimeStatus, type RelayClientOptions, type RelayEventSource, type RelayEventSourceConstructor, type RowChange, type RowKeys, SUBJECT_PRESENCE_TEMPLATE, type SubjectPresenceTopic, type SubjectPresenceValues, type SubjectReadersOptions, type SubscribeOptions, type Subscription, type SubscriptionStatus, type TemplateParams, type TemplateValues, type Topic, type TopicEvent, type TopicFanOutOptions, type TopicHandle, type TopicHandlers, type TopicMessage, type TopicOptions, type TopicPayload, type TopicPermission, type TopicPort, type TopicSqlOptions, type TopicSubscribeOptions, type TopicSubscription, type TopicTriggerLookup, type TopicTriggerOptions, type TopicTriggerValue, type TopicWatch, type TriggerLookup, type TriggerOptions, type TriggerPayloadMode, type TriggerTopic, type TriggerValue, defineTopic, liveCount, liveQuery, liveTopic, realtimeChanges, relayRealtimeClient, relayTopicPort, rowChange, rowKeys, subjectPresence, subjectPresenceTopic, subjectPresenceValues, subjectReaders, topicPort, watchTopic };