better-supabase 0.17.0 → 0.18.1

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 (568) hide show
  1. package/dist/{access-sql-B-MkVARa.js → access-sql-CNIgUqWf.js} +2 -0
  2. package/dist/{adapter-Dyks1lX1.js → adapter-CfuBICuG.js} +3 -1
  3. package/dist/{ai-schedules-Dk9H3kAp.d.ts → ai-schedules-DzLh6BYI.d.ts} +1 -1
  4. package/dist/ai-sdk/agents/index.d.ts +2 -2
  5. package/dist/ai-sdk/memory/index.js +1 -1
  6. package/dist/{api-CpL3hm87.d.ts → api-B6zteBya.d.ts} +1 -1
  7. package/dist/{app-tables-Q0TYfeih.js → app-tables-DyswUg6J.js} +10 -2
  8. package/dist/{app-tables-dS02piE7.d.ts → app-tables-XwCviyhP.d.ts} +1 -1
  9. package/dist/astro/index.d.ts +3 -3
  10. package/dist/astro/index.js +5 -5
  11. package/dist/{attachments-aJYgdYtB.js → attachments-M-Dy79Ry.js} +9 -2
  12. package/dist/{authorization-CNsvnwle.d.ts → authorization-IiE__z2m.d.ts} +169 -87
  13. package/dist/{automations-CIwRq7zm.js → automations-B5P6vTvk.js} +2 -2
  14. package/dist/{automations-CD1XlL2W.js → automations-BKjJpktQ.js} +1 -1
  15. package/dist/{automations-Bc2ue55V.js → automations-FCnWy387.js} +2 -2
  16. package/dist/{bind-C801IaK-.d.ts → bind-pu5TLrla.d.ts} +3 -3
  17. package/dist/{block-env-BeG4DiiO.d.ts → block-env-CA65ulTD.d.ts} +4 -4
  18. package/dist/blocks/access-requests/index.d.ts +1 -1
  19. package/dist/blocks/access-requests/index.js +1 -1
  20. package/dist/blocks/activities/index.d.ts +1 -1
  21. package/dist/blocks/activities/index.js +1 -1
  22. package/dist/blocks/agents/index.d.ts +1 -1
  23. package/dist/blocks/agents/index.js +1 -1
  24. package/dist/blocks/ai-cache/index.d.ts +1 -1
  25. package/dist/blocks/ai-cache/index.js +1 -1
  26. package/dist/blocks/ai-chat/index.d.ts +4 -4
  27. package/dist/blocks/ai-chat/index.js +1 -1
  28. package/dist/blocks/ai-files/index.d.ts +1 -1
  29. package/dist/blocks/ai-files/index.js +1 -1
  30. package/dist/blocks/ai-keys/index.d.ts +1 -1
  31. package/dist/blocks/ai-keys/index.js +1 -1
  32. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  33. package/dist/blocks/ai-schedules/index.js +1 -1
  34. package/dist/blocks/announcements/index.d.ts +4 -4
  35. package/dist/blocks/announcements/index.js +1 -1
  36. package/dist/blocks/api-keys/index.d.ts +2 -2
  37. package/dist/blocks/api-keys/index.js +1 -1
  38. package/dist/blocks/approvals/index.d.ts +1 -1
  39. package/dist/blocks/approvals/index.js +1 -1
  40. package/dist/blocks/assets/index.d.ts +1 -1
  41. package/dist/blocks/assets/index.js +1 -1
  42. package/dist/blocks/assignment/index.d.ts +1 -1
  43. package/dist/blocks/attachments/index.d.ts +40 -4
  44. package/dist/blocks/attachments/index.js +42 -4
  45. package/dist/blocks/audit/index.d.ts +3 -3
  46. package/dist/blocks/audit/index.js +2 -2
  47. package/dist/blocks/automations/index.d.ts +3 -3
  48. package/dist/blocks/automations/index.js +1 -1
  49. package/dist/blocks/billable-time/index.d.ts +1 -1
  50. package/dist/blocks/billing/index.d.ts +2 -2
  51. package/dist/blocks/billing/index.js +1 -1
  52. package/dist/blocks/bookings/index.d.ts +2 -2
  53. package/dist/blocks/bookings/index.js +1 -1
  54. package/dist/blocks/bulk/index.d.ts +1 -1
  55. package/dist/blocks/bulk/index.js +1 -1
  56. package/dist/blocks/calendar/index.d.ts +2 -2
  57. package/dist/blocks/calendar/index.js +1 -1
  58. package/dist/blocks/catalog/index.d.ts +1 -1
  59. package/dist/blocks/catalog/index.js +1 -1
  60. package/dist/blocks/channels/index.d.ts +1 -1
  61. package/dist/blocks/collections/index.d.ts +1 -1
  62. package/dist/blocks/collections/index.js +1 -1
  63. package/dist/blocks/comments/index.d.ts +5 -5
  64. package/dist/blocks/comments/index.js +1 -1
  65. package/dist/blocks/compliance/index.d.ts +1 -1
  66. package/dist/blocks/compliance/index.js +1 -1
  67. package/dist/blocks/connectors/index.d.ts +1 -1
  68. package/dist/blocks/connectors/index.js +1 -1
  69. package/dist/blocks/contacts/index.d.ts +1 -1
  70. package/dist/blocks/contacts/index.js +1 -1
  71. package/dist/blocks/content/index.d.ts +2 -2
  72. package/dist/blocks/content/index.js +1 -1
  73. package/dist/blocks/contracts/index.d.ts +1 -1
  74. package/dist/blocks/contracts/index.js +1 -1
  75. package/dist/blocks/courses/index.d.ts +2 -2
  76. package/dist/blocks/courses/index.js +1 -1
  77. package/dist/blocks/created-by/index.d.ts +1 -1
  78. package/dist/blocks/created-by/index.js +1 -1
  79. package/dist/blocks/custom-fields/index.d.ts +1 -1
  80. package/dist/blocks/custom-fields/index.js +1 -1
  81. package/dist/blocks/data-lifecycle/index.d.ts +1 -1
  82. package/dist/blocks/data-lifecycle/index.js +1 -1
  83. package/dist/blocks/deals/index.d.ts +1 -1
  84. package/dist/blocks/deals/index.js +1 -1
  85. package/dist/blocks/dispatch/index.d.ts +2 -2
  86. package/dist/blocks/dispatch/index.js +1 -1
  87. package/dist/blocks/documents/index.d.ts +1 -1
  88. package/dist/blocks/documents/index.js +1 -1
  89. package/dist/blocks/domains/index.d.ts +1 -1
  90. package/dist/blocks/domains/index.js +1 -1
  91. package/dist/blocks/donations/index.d.ts +1 -1
  92. package/dist/blocks/donations/index.js +1 -1
  93. package/dist/blocks/drive/index.d.ts +1 -1
  94. package/dist/blocks/drive/index.js +2 -2
  95. package/dist/blocks/employees/index.d.ts +2 -2
  96. package/dist/blocks/employees/index.js +1 -1
  97. package/dist/blocks/enrichment/index.d.ts +1 -1
  98. package/dist/blocks/enrollments/index.d.ts +1 -1
  99. package/dist/blocks/enrollments/index.js +1 -1
  100. package/dist/blocks/entitlements/index.d.ts +3 -3
  101. package/dist/blocks/expenses/index.d.ts +1 -1
  102. package/dist/blocks/expenses/index.js +1 -1
  103. package/dist/blocks/field-history/index.d.ts +1 -1
  104. package/dist/blocks/flags/index.d.ts +1 -1
  105. package/dist/blocks/flags/index.js +1 -1
  106. package/dist/blocks/forecasts/index.d.ts +1 -1
  107. package/dist/blocks/forms/index.d.ts +2 -2
  108. package/dist/blocks/forms/index.js +1 -1
  109. package/dist/blocks/goals/index.d.ts +1 -1
  110. package/dist/blocks/goals/index.js +1 -1
  111. package/dist/blocks/guests/index.d.ts +1 -1
  112. package/dist/blocks/hiring/index.d.ts +1 -1
  113. package/dist/blocks/hiring/index.js +1 -1
  114. package/dist/blocks/identities/index.d.ts +1 -1
  115. package/dist/blocks/identities/index.js +1 -1
  116. package/dist/blocks/imports/index.d.ts +1 -1
  117. package/dist/blocks/inbox/index.d.ts +5 -5
  118. package/dist/blocks/inbox/index.js +1 -1
  119. package/dist/blocks/incidents/index.d.ts +1 -1
  120. package/dist/blocks/incidents/index.js +1 -1
  121. package/dist/blocks/index.d.ts +4 -4
  122. package/dist/blocks/index.js +1 -1
  123. package/dist/blocks/inventory/index.d.ts +1 -1
  124. package/dist/blocks/inventory/index.js +1 -1
  125. package/dist/blocks/invoices/index.d.ts +1 -1
  126. package/dist/blocks/invoices/index.js +1 -1
  127. package/dist/blocks/knowledge/index.d.ts +1 -1
  128. package/dist/blocks/knowledge/index.js +1 -1
  129. package/dist/blocks/lead-scoring/index.d.ts +2 -2
  130. package/dist/blocks/lead-scoring/index.js +1 -1
  131. package/dist/blocks/leases/index.d.ts +1 -1
  132. package/dist/blocks/leases/index.js +1 -1
  133. package/dist/blocks/leave/index.d.ts +1 -1
  134. package/dist/blocks/leave/index.js +1 -1
  135. package/dist/blocks/ledger/index.d.ts +1 -1
  136. package/dist/blocks/mail-sync/index.d.ts +2 -2
  137. package/dist/blocks/mail-sync/index.js +1 -1
  138. package/dist/blocks/memberships/index.d.ts +3 -3
  139. package/dist/blocks/memberships/index.js +1 -1
  140. package/dist/blocks/memory/index.d.ts +1 -1
  141. package/dist/blocks/memory/index.js +1 -1
  142. package/dist/blocks/messaging/index.d.ts +5 -5
  143. package/dist/blocks/messaging/index.js +1 -1
  144. package/dist/blocks/metrics/index.d.ts +1 -1
  145. package/dist/blocks/metrics/index.js +1 -1
  146. package/dist/blocks/mfa/index.d.ts +2 -2
  147. package/dist/blocks/moderation/index.d.ts +1 -1
  148. package/dist/blocks/moderation/index.js +1 -1
  149. package/dist/blocks/notifications/index.d.ts +17 -6
  150. package/dist/blocks/notifications/index.js +110 -40
  151. package/dist/blocks/numbering/index.d.ts +1 -1
  152. package/dist/blocks/numbering/index.js +1 -1
  153. package/dist/blocks/oauth-server/index.d.ts +1 -1
  154. package/dist/blocks/oauth-server/index.js +1 -1
  155. package/dist/blocks/onboarding/index.d.ts +2 -2
  156. package/dist/blocks/onboarding/index.js +1 -1
  157. package/dist/blocks/orders/index.d.ts +2 -2
  158. package/dist/blocks/orders/index.js +1 -1
  159. package/dist/blocks/organizations/index.d.ts +38 -3
  160. package/dist/blocks/organizations/index.js +50 -5
  161. package/dist/blocks/outbox/index.d.ts +1 -1
  162. package/dist/blocks/outbox/index.js +1 -1
  163. package/dist/blocks/passes/index.d.ts +2 -2
  164. package/dist/blocks/passes/index.js +1 -1
  165. package/dist/blocks/permissions/index.d.ts +4 -4
  166. package/dist/blocks/permissions/index.js +2 -2
  167. package/dist/blocks/pipelines/index.d.ts +1 -1
  168. package/dist/blocks/pipelines/index.js +1 -1
  169. package/dist/blocks/posts/index.d.ts +2 -2
  170. package/dist/blocks/posts/index.js +1 -1
  171. package/dist/blocks/profiles/index.d.ts +1 -1
  172. package/dist/blocks/profiles/index.js +1 -1
  173. package/dist/blocks/promotions/index.d.ts +1 -1
  174. package/dist/blocks/promotions/index.js +1 -1
  175. package/dist/blocks/push/index.d.ts +76 -10
  176. package/dist/blocks/push/index.js +172 -43
  177. package/dist/blocks/queue/index.d.ts +1 -1
  178. package/dist/blocks/queue/index.js +1 -1
  179. package/dist/blocks/quotes/index.d.ts +1 -1
  180. package/dist/blocks/quotes/index.js +1 -1
  181. package/dist/blocks/rank/index.d.ts +1 -1
  182. package/dist/blocks/reactions/index.d.ts +4 -4
  183. package/dist/blocks/reactions/index.js +1 -1
  184. package/dist/blocks/relations/index.d.ts +1 -1
  185. package/dist/blocks/relations/index.js +1 -1
  186. package/dist/blocks/reminders/index.d.ts +1 -1
  187. package/dist/blocks/reminders/index.js +1 -1
  188. package/dist/blocks/reviews/index.d.ts +1 -1
  189. package/dist/blocks/reviews/index.js +1 -1
  190. package/dist/blocks/saved-views/index.d.ts +2 -2
  191. package/dist/blocks/saved-views/index.js +1 -1
  192. package/dist/blocks/scores/index.d.ts +1 -1
  193. package/dist/blocks/scores/index.js +1 -1
  194. package/dist/blocks/search/index.d.ts +3 -3
  195. package/dist/blocks/search/index.js +1 -1
  196. package/dist/blocks/security-events/index.d.ts +1 -1
  197. package/dist/blocks/security-events/index.js +1 -1
  198. package/dist/blocks/segments/index.d.ts +2 -2
  199. package/dist/blocks/segments/index.js +1 -1
  200. package/dist/blocks/sequences/index.d.ts +2 -2
  201. package/dist/blocks/sequences/index.js +1 -1
  202. package/dist/blocks/service-accounts/index.d.ts +1 -1
  203. package/dist/blocks/service-accounts/index.js +1 -1
  204. package/dist/blocks/sessions/index.d.ts +2 -2
  205. package/dist/blocks/sessions/index.js +1 -1
  206. package/dist/blocks/settings/index.d.ts +2 -2
  207. package/dist/blocks/settings/index.js +1 -1
  208. package/dist/blocks/share-links/index.d.ts +1 -1
  209. package/dist/blocks/share-links/index.js +1 -1
  210. package/dist/blocks/shipments/index.d.ts +2 -2
  211. package/dist/blocks/shipments/index.js +1 -1
  212. package/dist/blocks/signatures/index.d.ts +2 -2
  213. package/dist/blocks/signatures/index.js +1 -1
  214. package/dist/blocks/signing-keys/index.d.ts +1 -1
  215. package/dist/blocks/signing-keys/index.js +1 -1
  216. package/dist/blocks/sla/index.d.ts +1 -1
  217. package/dist/blocks/sla/index.js +1 -1
  218. package/dist/blocks/sso/index.d.ts +1 -1
  219. package/dist/blocks/sso/index.js +1 -1
  220. package/dist/blocks/state-machine/index.d.ts +1 -1
  221. package/dist/blocks/state-machine/index.js +1 -1
  222. package/dist/blocks/subjects/index.d.ts +2 -2
  223. package/dist/blocks/tags/index.d.ts +2 -2
  224. package/dist/blocks/tags/index.js +1 -1
  225. package/dist/blocks/tasks/index.d.ts +2 -2
  226. package/dist/blocks/tasks/index.js +1 -1
  227. package/dist/blocks/teams/index.d.ts +1 -1
  228. package/dist/blocks/teams/index.js +1 -1
  229. package/dist/blocks/templates/index.d.ts +2 -2
  230. package/dist/blocks/templates/index.js +1 -1
  231. package/dist/blocks/time-tracking/index.d.ts +1 -1
  232. package/dist/blocks/time-tracking/index.js +1 -1
  233. package/dist/blocks/timeline/index.d.ts +1 -1
  234. package/dist/blocks/trash/index.d.ts +1 -1
  235. package/dist/blocks/trash/index.js +1 -1
  236. package/dist/blocks/undo/index.d.ts +2 -2
  237. package/dist/blocks/updated-at/index.d.ts +1 -1
  238. package/dist/blocks/updated-at/index.js +1 -1
  239. package/dist/blocks/usage/index.d.ts +2 -2
  240. package/dist/blocks/usage/index.js +1 -1
  241. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  242. package/dist/blocks/vercel-marketplace/index.js +1 -1
  243. package/dist/blocks/versions/index.d.ts +1 -1
  244. package/dist/blocks/versions/index.js +1 -1
  245. package/dist/blocks/waitlist/index.d.ts +1 -1
  246. package/dist/blocks/waitlist/index.js +1 -1
  247. package/dist/blocks/webhooks/index.d.ts +1 -1
  248. package/dist/blocks/webhooks/index.js +1 -1
  249. package/dist/blocks/workflow-editor/index.d.ts +4 -4
  250. package/dist/blocks/workflow-editor/index.js +1 -1
  251. package/dist/blocks/workflows/index.d.ts +4 -4
  252. package/dist/{channel-BjvGO39m.d.ts → channel-JcMd5lNP.d.ts} +30 -2
  253. package/dist/cli/{add-DMcrsWjC.js → add-C5kLXuqn.js} +18 -13
  254. package/dist/cli/add-CFKvvXlK.js +1 -0
  255. package/dist/cli/{add-BinNYhFD.js → add-CTtj1dfh.js} +2 -2
  256. package/dist/cli/{backfill-DxBB62Zr.js → backfill-C-b6eH98.js} +4 -4
  257. package/dist/cli/bin.js +1 -1
  258. package/dist/cli/{blocks-DSgTifw0.js → blocks-CT8-TBdW.js} +2 -2
  259. package/dist/cli/{blocks-rxOS-Mzz.js → blocks-zpu__C1Y.js} +1 -1
  260. package/dist/cli/{cache-oU0yHKf0.js → cache-BxohmNou.js} +1 -1
  261. package/dist/cli/{codemod-Dsrv_3gQ.js → codemod-BVo3sdx7.js} +5 -5
  262. package/dist/cli/{command-CQ61x6gN.js → command-BWEEXmtz.js} +20 -0
  263. package/dist/cli/{completion-Dlu5AdUW.js → completion-8EDK21xj.js} +1 -1
  264. package/dist/cli/{completion-BwI0_Ap5.js → completion-BfnKI4QZ.js} +2 -2
  265. package/dist/cli/{completion-2Y3D_eNu.js → completion-Bt7LMypX.js} +2 -2
  266. package/dist/cli/{config-2rwFHbwj.js → config-BJSqMi04.js} +17 -5
  267. package/dist/cli/{config-C6XylzKz.js → config-BlfVh0IP.js} +1 -1
  268. package/dist/cli/{config-CPux9Wa7.js → config-WKDixoGK.js} +1 -1
  269. package/dist/cli/{content-mapper-DLbXilBz.js → content-mapper-D54wumPS.js} +2 -2
  270. package/dist/cli/{db-Bwrr3GHM.js → db-DYU5hUcd.js} +3 -3
  271. package/dist/cli/{doctor-CKt5Yyl4.js → doctor-DBxc5aud.js} +17 -16
  272. package/dist/cli/{env-BBl5L8Bf.js → env-BCgVZkcb.js} +1 -1
  273. package/dist/cli/env-xhwXk5Ri.js +1 -0
  274. package/dist/cli/{gen-CeG6lbka.js → gen--IBq-J4M.js} +22 -15
  275. package/dist/cli/index.d.ts +2 -2
  276. package/dist/cli/index.js +8 -8
  277. package/dist/cli/{init-DrQlf9RL.js → init-Dxvlzka4.js} +7 -7
  278. package/dist/cli/{keys-DGEpMbeB.js → keys-CbaL0lnw.js} +1 -1
  279. package/dist/cli/{legacy-prefix-DkTA3Rhx.js → legacy-prefix-R7UChFFl.js} +18 -5
  280. package/dist/cli/{live-BvWGM4c3.js → live-C-0OdLKE.js} +2 -2
  281. package/dist/cli/{mcp-BrOnGB15.js → mcp-3q5RDvYJ.js} +3 -3
  282. package/dist/cli/{metadata-BNSdPuKp.js → metadata-Dvc6U3bk.js} +3 -3
  283. package/dist/cli/{migration-safety-NtB3dsRU.js → migration-safety-DYgarZxP.js} +2 -2
  284. package/dist/cli/{module-migration-mKhX88V_.js → migrations-Cwh5VvUC.js} +3 -113
  285. package/dist/cli/module-migration-CXtSwDLu.js +119 -0
  286. package/dist/cli/{moved-CsfDQcyk.js → moved-DVwgE8lV.js} +1 -1
  287. package/dist/cli/{parse-B9Iv_-Pf.js → parse-B079x40m.js} +1 -1
  288. package/dist/cli/powersync-BAE2dlPJ.js +1 -0
  289. package/dist/cli/powersync-BCDuGn5p.js +283 -0
  290. package/dist/cli/{print-Dh8iuPK3.js → print-Dpfa_--H.js} +2 -1
  291. package/dist/cli/{remove-DfFXVBRr.js → remove-DpAwgO8A.js} +6 -6
  292. package/dist/cli/{render-ChIwdIOJ.js → render-D9c5ynjR.js} +8 -5
  293. package/dist/cli/{run-CLSHSVYo.js → run-CuzSU8Sk.js} +29 -10
  294. package/dist/cli/{run-BXx6D1aR.js → run-DmOTMa44.js} +2 -2
  295. package/dist/cli/{run-D48ZEU58.js → run-Q5V5Kle1.js} +38 -37
  296. package/dist/cli/{seed-CG-pA-5N.js → seed-D9mt8bnW.js} +3 -3
  297. package/dist/cli/seed-EPO6AvLG.js +1 -0
  298. package/dist/cli/{shared-D0XBFSlz.js → shared-BNScv93m.js} +1 -1
  299. package/dist/cli/{skills-toUan_OV.js → skills-FXAVPLzp.js} +1 -1
  300. package/dist/cli/{snapshot-C6vh_n3t.js → snapshot-k4R6vT20.js} +3 -3
  301. package/dist/cli/{source-BZbEK5if.js → source-MMQKgaIx.js} +1 -1
  302. package/dist/cli/{source-args-MTLYpifA.js → source-args-DlckPVje.js} +1 -1
  303. package/dist/cli/{spec-B4LhpI6t.js → spec-CCpPVw_T.js} +3 -3
  304. package/dist/cli/{spec-C-dhdKwa.js → spec-CqANRfuu.js} +1 -1
  305. package/dist/cli/{sql-layout-26LSoifK.js → sql-layout-AByPAQXl.js} +2 -2
  306. package/dist/cli/{stack-CWEHdO0b.js → stack-DgASZP0K.js} +1 -1
  307. package/dist/cli/{sync-CHGMZCJ5.js → sync-DYQVml8j.js} +3 -2
  308. package/dist/cli/{upgrade-C0dVsqNX.js → upgrade-DHcIHeRM.js} +5 -4
  309. package/dist/cli/{upgrade-GB9rqUGT.js → upgrade-f-3Nl6lO.js} +3 -3
  310. package/dist/cli/{version-T507a49w.js → version-DzroJkIT.js} +1 -1
  311. package/dist/client/index.d.ts +5 -5
  312. package/dist/client/native/index.d.ts +4 -4
  313. package/dist/{composite-B7f1MMgr.d.ts → composite-C-8A8qzi.d.ts} +2 -2
  314. package/dist/{composite-B3TIjId4.js → composite-D24L5RIY.js} +2 -2
  315. package/dist/config/index.d.ts +3 -3
  316. package/dist/config/index.js +4 -4
  317. package/dist/{config-CIBc79_8.js → config-CD2OGfCG.js} +2 -1
  318. package/dist/{config-BVNNJwGC.js → config-mbVyJwSc.js} +3 -3
  319. package/dist/{context-CKCgjEDF.d.ts → context-D24k1Cpc.d.ts} +29 -4
  320. package/dist/{controller-CJUXhshv.d.ts → controller-BR7CZ1R9.d.ts} +1 -1
  321. package/dist/{conversion-DgHdDlTK.d.ts → conversion-BgtOfTaS.d.ts} +1 -1
  322. package/dist/create/index.d.ts +2 -2
  323. package/dist/create/index.js +5 -5
  324. package/dist/{define-block-Xxw8Hroe.d.ts → define-block-CJWiDWa5.d.ts} +10 -3
  325. package/dist/edge/index.d.ts +5 -5
  326. package/dist/edge/index.js +7 -7
  327. package/dist/elysia/index.d.ts +1 -1
  328. package/dist/elysia/index.js +1 -1
  329. package/dist/{email-tt2QqiSc.d.ts → email-B3YxEzwC.d.ts} +1 -1
  330. package/dist/{entitlements-B0jmjNLD.d.ts → entitlements-DHcNt1aF.d.ts} +1 -1
  331. package/dist/{events-SqJLbb8q.js → events-DuLhzjP6.js} +2 -0
  332. package/dist/expo/index.d.ts +1 -1
  333. package/dist/expo/index.js +3 -3
  334. package/dist/{field-errors-DqlebtTE.d.ts → field-errors-DkAemDoc.d.ts} +5 -5
  335. package/dist/{framework-BozTXRzt.js → framework-CNhTg0th.js} +1 -1
  336. package/dist/{framework-CF6zFU7a.d.ts → framework-x9Y4uB1q.d.ts} +4 -4
  337. package/dist/h3/index.d.ts +1 -1
  338. package/dist/h3/index.js +1 -1
  339. package/dist/h3/v1/index.d.ts +1 -1
  340. package/dist/h3/v1/index.js +1 -1
  341. package/dist/hono/index.d.ts +4 -4
  342. package/dist/hono/index.js +7 -6
  343. package/dist/{index-Dbb7BQdi.d.ts → index-4WT_uRRL.d.ts} +14 -3
  344. package/dist/{index-BCeTYhFk.d.ts → index-BAcQz5DS.d.ts} +1 -1
  345. package/dist/{index-B8YjrfVl.d.ts → index-C0t-vNIt.d.ts} +1 -1
  346. package/dist/{index-DUxXdQN_.d.ts → index-C6ruLtyx.d.ts} +2 -2
  347. package/dist/{index-ClMN0f98.d.ts → index-DTbJAsrT.d.ts} +8 -8
  348. package/dist/{index-lB-8iPmY.d.ts → index-DmbCyl6Z.d.ts} +9 -5
  349. package/dist/{index-BxYOB1Oc.d.ts → index-iRkFvJ7J.d.ts} +1 -1
  350. package/dist/index.d.ts +1 -1
  351. package/dist/index.js +1 -1
  352. package/dist/{instances-QOzIz9-q.js → instances-DDt7NdVl.js} +1 -1
  353. package/dist/{kit-DOwKpSkA.d.ts → kit-CVgQCIBO.d.ts} +1 -1
  354. package/dist/{kit-5l-o8RxL.js → kit-DhlB-vv_.js} +1 -1
  355. package/dist/mapper/bin.js +7 -6
  356. package/dist/mcp/index.d.ts +9 -3
  357. package/dist/mcp/index.js +6 -6
  358. package/dist/mcp/sdk/index.d.ts +1 -1
  359. package/dist/mcp/sdk/index.js +2 -2
  360. package/dist/{methods-B3o7BFOW.js → methods-Cund9ZBe.js} +1 -1
  361. package/dist/nestjs/index.d.ts +2 -2
  362. package/dist/nestjs/index.js +1 -1
  363. package/dist/next/index.d.ts +12 -12
  364. package/dist/next/index.js +6 -6
  365. package/dist/node/index.d.ts +2 -2
  366. package/dist/node/index.js +1 -1
  367. package/dist/{operations-Dc07aV_H.d.ts → operations-CAjMgNr9.d.ts} +1 -1
  368. package/dist/{options-CK5WiFwG.js → options-3OYOU56e.js} +1 -1
  369. package/dist/{options-xD4_FRUq.js → options-56zYYXxc.js} +1 -1
  370. package/dist/{options-_F-enoBs.d.ts → options-5WvWOkAm.d.ts} +1 -1
  371. package/dist/{options-SViK_2x2.js → options-62woPFn3.js} +1 -1
  372. package/dist/{options-1GgseJq5.js → options-7ixoOoap.js} +1 -1
  373. package/dist/{options-BZsoPJGX.js → options-9dSU5RML.js} +2 -2
  374. package/dist/{options-y_-AkVCs.d.ts → options-B0YZtAkb.d.ts} +1 -1
  375. package/dist/{options-HLwOuF2H.js → options-B2Kz_tCx.js} +2 -2
  376. package/dist/{options-CEMawFrr.js → options-B685YSzQ.js} +1 -1
  377. package/dist/{options-DWbA9buW.js → options-B692WoK6.js} +2 -2
  378. package/dist/options-BHU1wc74.js +5 -0
  379. package/dist/{options-CPK2nQER.js → options-BHy0Z5Zd.js} +2 -2
  380. package/dist/{options-Fz6xqu-b.js → options-BKDxrPvE.js} +2 -2
  381. package/dist/{options-BVg58avP.js → options-BLfymS4s.js} +2 -2
  382. package/dist/{options-CYV4iZiQ.js → options-BOCRbzh3.js} +1 -1
  383. package/dist/{options-tSsUF0-7.js → options-BQWJqwHO.js} +1 -1
  384. package/dist/{options-Cl9Ag2Pt.js → options-BQunK6_Y.js} +2 -2
  385. package/dist/{options-CljDnQt2.js → options-BQyrZjwM.js} +4 -1
  386. package/dist/options-BR9xTHZW.js +5 -0
  387. package/dist/{options-D40CQzji.js → options-BRUdd5jY.js} +1 -1
  388. package/dist/{options-CsGl5BLH.d.ts → options-BTmaRzx2.d.ts} +13 -5
  389. package/dist/{options-Li1Dyu88.d.ts → options-BUCQYAeJ.d.ts} +2 -2
  390. package/dist/{options-B5BU2Yg7.js → options-BawzwlmC.js} +2 -2
  391. package/dist/{options-BlzSfWxC.d.ts → options-BbLDAp7G.d.ts} +2 -2
  392. package/dist/{options-DTDxFT6J.js → options-Bc4xz5jQ.js} +2 -2
  393. package/dist/options-BfFC4iFE.js +8 -0
  394. package/dist/{options-Br1Xi2Hw.js → options-BfPsL7E2.js} +1 -1
  395. package/dist/{options-DYBQ973I.js → options-Bfmwwc78.js} +1 -1
  396. package/dist/{options-c5WCsky5.js → options-BhsdveDk.js} +2 -2
  397. package/dist/{options-B5woz53h.js → options-BomoTH-8.js} +2 -2
  398. package/dist/{options-DeNejBtq.js → options-BtjkzIVh.js} +1 -1
  399. package/dist/options-Bvi9bl4H.js +5 -0
  400. package/dist/{options-IHPg8ZoA.js → options-BwKNmaJo.js} +2 -2
  401. package/dist/{options-CtUUU71w.js → options-BxpLtyk-.js} +4 -6
  402. package/dist/{options-D_bBVCXg.js → options-BzB2QxL3.js} +1 -1
  403. package/dist/{options-CmraJhd9.js → options-C078wBP0.js} +1 -1
  404. package/dist/options-C1-pwEqm.js +5 -0
  405. package/dist/{options-BZOliZvb.js → options-C3AdsFJ6.js} +2 -2
  406. package/dist/options-C7C5OhmL.d.ts +8 -0
  407. package/dist/{options-CCUaRLgd.js → options-C87u6eSa.js} +1 -1
  408. package/dist/{options-CVSWgZpY.js → options-CBAEGxwS.js} +1 -1
  409. package/dist/{options-9gvPo1BC.js → options-CDUr8zzX.js} +1 -1
  410. package/dist/{options-DMR68VAC.js → options-CFjGxfa8.js} +2 -2
  411. package/dist/{options-Bf96aVk5.js → options-CI6P0xhV.js} +1 -1
  412. package/dist/{options-B5VUf4IT.js → options-CJFMK9A_.js} +1 -1
  413. package/dist/{options-CRz8Ht_4.js → options-CLpgx7en.js} +3 -2
  414. package/dist/{options-BesyRBnM.js → options-CTXHj9zr.js} +2 -2
  415. package/dist/{options-D2d1fFuw.js → options-CTl8T88w.js} +1 -1
  416. package/dist/{options-C3RgtOLo.js → options-CTv-xmbA.js} +2 -2
  417. package/dist/{options-Bpl-WFPk.js → options-CUIOOv4z.js} +1 -1
  418. package/dist/{options-o2kfYU2x.js → options-CZDmtsbV.js} +2 -2
  419. package/dist/{options-CF7nRWXS.js → options-CZTscdPB.js} +1 -1
  420. package/dist/{options-BlncUmIc.js → options-CZdKndeo.js} +2 -2
  421. package/dist/{options-DplE18Ko.d.ts → options-C_7g9TTq.d.ts} +1 -1
  422. package/dist/{options-C_pb1Nd3.js → options-Cb2FOFj5.js} +1 -1
  423. package/dist/{options-t_O5ldT6.js → options-CbOstLa7.js} +2 -2
  424. package/dist/{options-Bt0bYMLl.js → options-CcXgWlvm.js} +2 -2
  425. package/dist/{options-BMjcVuaI.js → options-CfVPctAw.js} +7 -0
  426. package/dist/{options-DWpz3V3F.js → options-ChiL-4ZS.js} +2 -2
  427. package/dist/{options-E7KcmHQv.js → options-Cjgaf8ub.js} +2 -2
  428. package/dist/{options-DrSkIBCD.js → options-CoSPgWKy.js} +1 -1
  429. package/dist/{options-Bp7sgKvl.js → options-CpZ2HlSU.js} +5 -3
  430. package/dist/{options-CN7PHkhU.js → options-CsSe8Nba.js} +1 -1
  431. package/dist/{options-B9q8CROT.js → options-CsvJR-r2.js} +1 -1
  432. package/dist/{options-oeAq4Ho5.js → options-Cucv6sWP.js} +2 -2
  433. package/dist/{options-BOOEzor9.js → options-CyjL9lTf.js} +2 -2
  434. package/dist/{options-pOVWwbAK.d.ts → options-D-OOO9V2.d.ts} +1 -1
  435. package/dist/{options-nFzfgtA6.js → options-D0Y6ZMe8.js} +1 -1
  436. package/dist/{options-BnZS7IK-.js → options-D0sj5abR.js} +2 -2
  437. package/dist/{options-0qvUckqt.js → options-D2s7fT1s.js} +2 -2
  438. package/dist/{options-BjtrC7o6.js → options-D32-YxnO.js} +1 -1
  439. package/dist/{options-B0EJULm5.js → options-D610Fa6T.js} +2 -2
  440. package/dist/{options-BvtnxHfK.js → options-D96dScev.js} +1 -1
  441. package/dist/{options-DgQo80Xh.js → options-DFpyP1bg.js} +2 -2
  442. package/dist/{options-BYOtaF7w.js → options-DJEcS4DX.js} +1 -1
  443. package/dist/{options-DPgdAXO5.js → options-DJbN3bi9.js} +2 -2
  444. package/dist/{options-EsUh744F.js → options-DKoQoRCy.js} +2 -2
  445. package/dist/{options-CvD9vNvx.js → options-DM1qaMMQ.js} +1 -1
  446. package/dist/{options-eBPsk4WI.js → options-DNgSwhsm.js} +2 -2
  447. package/dist/{options-2EMA_x6_.js → options-DOIwzRXL.js} +2 -2
  448. package/dist/{options-D6as77gU.d.ts → options-DRIgHh4O.d.ts} +2 -2
  449. package/dist/{options-DDzggjN7.js → options-DRrZmJyI.js} +2 -2
  450. package/dist/{options-DJ-aYPVN.js → options-DUMUsvml.js} +2 -2
  451. package/dist/{options-Cp0HyUEk.js → options-DWwL5Kaz.js} +1 -1
  452. package/dist/{options-BCrqe3HH.js → options-DZHZYlpD.js} +1 -1
  453. package/dist/{options-BQIYfx9F.js → options-DZLkeqWn.js} +2 -2
  454. package/dist/{options-RKYdmIdV.js → options-DZRpXKQE.js} +1 -1
  455. package/dist/{options-D0G06Zm9.js → options-D_9Vxx7f.js} +2 -2
  456. package/dist/{options-BMGClqoa.js → options-DcHl59RC.js} +1 -1
  457. package/dist/{options-CW9wTqOk.js → options-Dcaql09y.js} +1 -1
  458. package/dist/{options-CXFz0xxS.js → options-DcnBNYmV.js} +1 -1
  459. package/dist/{options-21s0dpnX.js → options-DdpM-fiP.js} +2 -2
  460. package/dist/{options-BbnPv6p7.js → options-DhdazgTZ.js} +2 -2
  461. package/dist/{options-C239TLRF.js → options-Dpy-Ruo-.js} +1 -1
  462. package/dist/{options-DWVYM8P0.d.ts → options-DsVuVRH3.d.ts} +1 -1
  463. package/dist/{options-BlOPivzq.js → options-DtAJxfHS.js} +1 -1
  464. package/dist/{options-DXnBN2E7.js → options-Dz9Yo52Z.js} +2 -2
  465. package/dist/{options-DcOx8_3X.d.ts → options-HnfETSHr.d.ts} +1 -1
  466. package/dist/{options-CoX6VKGb.js → options-LqUXTpML.js} +1 -1
  467. package/dist/options-MsloEAIB.js +5 -0
  468. package/dist/{options-DCduTMST.js → options-P2FxqYpd.js} +2 -2
  469. package/dist/options-_1gAIMq7.d.ts +60 -0
  470. package/dist/{options-B0FcEKtH.js → options-aT89JqlB.js} +1 -1
  471. package/dist/{options-Cyu0hgmN.js → options-cVKZu9b0.js} +2 -2
  472. package/dist/options-fMxhtuVR.js +5 -0
  473. package/dist/{options-BxcFLL1G.js → options-fkShrmGQ.js} +2 -2
  474. package/dist/{options-Ctac2R0Q.js → options-gUvfr3no.js} +2 -2
  475. package/dist/{options-DNKyN5uq.js → options-hynwKWuf.js} +2 -2
  476. package/dist/{options-CkScQRJR.js → options-lsxJYfYx.js} +2 -2
  477. package/dist/{options-CyAhRKKm.d.ts → options-o5wCw8H7.d.ts} +2 -2
  478. package/dist/{options-DARkpk2P.js → options-p49DFg3H.js} +2 -2
  479. package/dist/{options-zkyhM3qi.js → options-pYNpXKcg.js} +1 -1
  480. package/dist/{options-Cqq2jUww.js → options-qtETCHzW.js} +2 -2
  481. package/dist/options-rnKlqYEr.js +5 -0
  482. package/dist/{options-KV84gAxl.js → options-sU_zGkiV.js} +2 -2
  483. package/dist/{options-BfLmA375.js → options-xq4MXG1M.js} +2 -2
  484. package/dist/{options-BA6jV6py.js → options-zzlznRA7.js} +2 -2
  485. package/dist/orpc/index.d.ts +19 -8
  486. package/dist/orpc/index.js +60 -31
  487. package/dist/otel/index.d.ts +1 -1
  488. package/dist/otel/index.js +5 -5
  489. package/dist/{ports-DnpAuTvB.d.ts → ports-g0H1Kzwr.d.ts} +1 -1
  490. package/dist/powersync/index.d.ts +135 -2
  491. package/dist/powersync/index.js +333 -1
  492. package/dist/preset/index.d.ts +3 -3
  493. package/dist/preset/index.js +3 -3
  494. package/dist/{preset-BIANzB5p.js → preset-B3CukUhu.js} +4 -4
  495. package/dist/{push-token-C_mFkYfq.d.ts → push-token-Cl2EihRc.d.ts} +1 -1
  496. package/dist/query/index.d.ts +1 -1
  497. package/dist/react/index.d.ts +5 -5
  498. package/dist/react/index.js +1 -1
  499. package/dist/react/native/index.d.ts +1 -1
  500. package/dist/react/server.d.ts +5 -5
  501. package/dist/react/server.js +1 -1
  502. package/dist/react-router/index.d.ts +3 -3
  503. package/dist/react-router/index.js +5 -5
  504. package/dist/{react-CZUZYn9E.js → react-zBTxLsV6.js} +1 -1
  505. package/dist/realtime/index.d.ts +3 -3
  506. package/dist/realtime/index.js +2 -2
  507. package/dist/{record-form-xWvVcb86.d.ts → record-form-zMwz0Ayt.d.ts} +1 -1
  508. package/dist/records/index.d.ts +7 -7
  509. package/dist/{refusal-ByBZcm0V.js → refusal-D48CMqpQ.js} +2 -2
  510. package/dist/{refusal-CSntB_x8.d.ts → refusal-OrlI3g4H.d.ts} +1 -1
  511. package/dist/{relay-gKvKJ3xf.js → relay-CIKcAVjf.js} +61 -21
  512. package/dist/{resource-DV2GC2dB.js → resource-R3KToNze.js} +1 -1
  513. package/dist/{resource-execute-DqWfEc56.d.ts → resource-execute-CKBtGL8-.d.ts} +1 -1
  514. package/dist/{resource-types-BIoz_ElD.d.ts → resource-types-8Q5Klkpa.d.ts} +1 -1
  515. package/dist/{resources-C02l_YBJ.js → resources-DqIwoQsP.js} +1 -1
  516. package/dist/{resources-Bt2PDKE7.d.ts → resources-DxpqenZA.d.ts} +1 -1
  517. package/dist/{respond-C3CcOZlA.js → respond-3RKp6VgU.js} +8 -1
  518. package/dist/{respond-Dn1_YhC1.d.ts → respond-oZeJ342J.d.ts} +6 -0
  519. package/dist/server/index.d.ts +9 -8
  520. package/dist/server/index.js +17 -10
  521. package/dist/{session-C1OuXbtN.d.ts → session-Fcft5A39.d.ts} +1 -1
  522. package/dist/{sign-in-B64114O4.js → sign-in-BLkRU3lc.js} +1 -1
  523. package/dist/solid/index.d.ts +5 -5
  524. package/dist/solid-start/index.d.ts +3 -3
  525. package/dist/solid-start/index.js +5 -5
  526. package/dist/spec/index.d.ts +2 -2
  527. package/dist/spec/index.js +1 -1
  528. package/dist/{spec-pins-DIx95afw.d.ts → spec-pins-BZkKfwY8.d.ts} +2 -0
  529. package/dist/{spec-pins-C1Vm8OBl.js → spec-pins-D3zDek-u.js} +1 -0
  530. package/dist/sql/index.d.ts +5 -5
  531. package/dist/sql/index.js +5 -5
  532. package/dist/{sql-ClTmzHs8.js → sql-fHTjZGqR.js} +2608 -1415
  533. package/dist/sql-type-iUSZpaUu.js +34 -0
  534. package/dist/ssr/index.d.ts +1 -1
  535. package/dist/{statuses-DMMDwXpZ.js → statuses-Alll5Ip6.js} +2 -2
  536. package/dist/storage/index.js +1 -1
  537. package/dist/svelte/index.d.ts +5 -5
  538. package/dist/sveltekit/index.d.ts +3 -3
  539. package/dist/sveltekit/index.js +5 -5
  540. package/dist/tanstack-start/index.d.ts +3 -3
  541. package/dist/tanstack-start/index.js +5 -5
  542. package/dist/{tenant-DVvjw9H-.d.ts → tenant-DyoVYFfC.d.ts} +1 -1
  543. package/dist/testing/index.d.ts +7 -7
  544. package/dist/testing/index.js +6 -3
  545. package/dist/{timeline-BBfKuMVL.d.ts → timeline-CMmo0R7g.d.ts} +2 -2
  546. package/dist/{topic-ikV_pLTX.js → topic-J9I3yu6f.js} +1 -1
  547. package/dist/{topic-BtLz-qTI.d.ts → topic-nQYxoTaU.d.ts} +1 -1
  548. package/dist/vue/index.d.ts +5 -5
  549. package/dist/{watch-topic-tnfOTa3-.d.ts → watch-topic-UGSEWAqR.d.ts} +1 -1
  550. package/dist/workflow-sdk/world/index.js +1 -1
  551. package/dist/{workflow-sdk-Bw6_u0ar.js → workflow-sdk-DELaQEp3.js} +2 -0
  552. package/dist/yjs/index.d.ts +1 -1
  553. package/dist/yjs/index.js +1 -1
  554. package/package.json +1 -1
  555. package/schemas/config-v1.json +449 -69
  556. package/dist/cli/add-z-3pXI6C.js +0 -1
  557. package/dist/cli/env-CAU1nknN.js +0 -1
  558. package/dist/cli/seed-CUxW5Dks.js +0 -1
  559. package/dist/options-63AKQNv0.js +0 -5
  560. package/dist/options-B-cxGmRA.js +0 -5
  561. package/dist/options-BPDiwSa-.js +0 -5
  562. package/dist/options-C6rEL6U5.js +0 -8
  563. package/dist/options-CE93HOYi.d.ts +0 -7
  564. package/dist/options-CTZNpb2n.js +0 -5
  565. package/dist/options-CrC78Tee.js +0 -5
  566. package/dist/options-DINdgVih.d.ts +0 -9
  567. package/dist/options-DWML05Cp.js +0 -5
  568. package/dist/options-Q1Bzgqpr.js +0 -5
@@ -1,6 +1,6 @@
1
1
  import { r as AuthState } from "./resolve-CXX6DHv3.js";
2
2
  import { t as AnyAuthorizer } from "./authorizer-B6X09otb.js";
3
- import { c as ResourceLoaderContext, s as BlockRequireOptions } from "./kit-DOwKpSkA.js";
3
+ import { c as ResourceLoaderContext, s as BlockRequireOptions } from "./kit-CVgQCIBO.js";
4
4
  //#region src/server/refusal.d.ts
5
5
  /** Where refused callers go instead of a Problem Details response. */
6
6
  interface RefusalRedirects {
@@ -15,6 +15,10 @@ function globalEventSource() {
15
15
  return typeof value === "function" ? value : void 0;
16
16
  }
17
17
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
18
+ async function problemDetail(response) {
19
+ const problem = await response.json().catch(() => void 0);
20
+ return isRecord(problem) && typeof problem["detail"] === "string" ? problem["detail"] : isRecord(problem) && typeof problem["title"] === "string" ? problem["title"] : response.statusText;
21
+ }
18
22
  /**
19
23
  * A Realtime client that joins topics through `realtimeRelay` on the server
20
24
  * instead of a browser connection with the user's token: for support sessions
@@ -52,12 +56,10 @@ function relayRealtimeClient(url, options = {}) {
52
56
  await response.body?.cancel();
53
57
  return { success: true };
54
58
  }
55
- const problem = await response.json().catch(() => void 0);
56
- const detail = isRecord(problem) && typeof problem["detail"] === "string" ? problem["detail"] : isRecord(problem) && typeof problem["title"] === "string" ? problem["title"] : response.statusText;
57
59
  return {
58
60
  success: false,
59
61
  status: response.status,
60
- error: detail
62
+ error: await problemDetail(response)
61
63
  };
62
64
  } catch (cause) {
63
65
  return {
@@ -67,8 +69,24 @@ function relayRealtimeClient(url, options = {}) {
67
69
  };
68
70
  }
69
71
  };
72
+ const failureOf = async (streamUrl) => {
73
+ const controller = new AbortController();
74
+ try {
75
+ const response = await (options.fetch ?? globalThis.fetch.bind(globalThis))(streamUrl, {
76
+ credentials: "include",
77
+ headers: { accept: "text/event-stream" },
78
+ signal: controller.signal
79
+ });
80
+ return response.ok ? void 0 : `${String(response.status)} ${await problemDetail(response)}`.trim();
81
+ } catch {
82
+ return;
83
+ } finally {
84
+ controller.abort();
85
+ }
86
+ };
70
87
  const create = (name) => {
71
88
  const topic = `realtime:${name}`;
89
+ const streamUrl = `${url}${url.includes("?") ? "&" : "?"}topic=${encodeURIComponent(name)}`;
72
90
  const listeners = [];
73
91
  let presence = {};
74
92
  let source;
@@ -76,31 +94,54 @@ function relayRealtimeClient(url, options = {}) {
76
94
  let subscribed = false;
77
95
  let ending = false;
78
96
  let removed = false;
97
+ let stopped = false;
98
+ let failed = false;
79
99
  let backoff = 1e3;
80
100
  let joinTimer;
81
101
  let retryTimer;
82
102
  const dispatch = (type, event, message) => {
83
103
  for (const listener of listeners) if (listener.event === `${type}:*` || listener.event === `${type}:${event}`) listener.callback(message);
84
104
  };
105
+ const timedOut = () => {
106
+ if (subscribed || removed) return;
107
+ stopped = true;
108
+ clearTimeout(retryTimer);
109
+ source?.close();
110
+ source = void 0;
111
+ if (!failed) {
112
+ status?.("TIMED_OUT");
113
+ return;
114
+ }
115
+ failureOf(streamUrl).then((failure) => {
116
+ if (!removed) status?.("TIMED_OUT", /* @__PURE__ */ new Error(failure === void 0 ? `The relay could not join ${name}` : `The relay could not join ${name}: ${failure}`));
117
+ });
118
+ };
85
119
  const open = () => {
86
- if (removed) return;
120
+ if (removed || stopped) return;
87
121
  const Source = options.EventSource ?? globalEventSource();
88
122
  if (Source === void 0) {
123
+ clearTimeout(joinTimer);
89
124
  status?.("CHANNEL_ERROR", /* @__PURE__ */ new Error("relayRealtimeClient needs EventSource"));
90
125
  return;
91
126
  }
92
- const next = new Source(`${url}${url.includes("?") ? "&" : "?"}topic=${encodeURIComponent(name)}`, { withCredentials: true });
127
+ const next = new Source(streamUrl, { withCredentials: true });
128
+ let joined = false;
129
+ const retry = (message) => {
130
+ next.close();
131
+ source = void 0;
132
+ failed = true;
133
+ status?.("CHANNEL_ERROR", new Error(message));
134
+ retryTimer = setTimeout(open, backoff);
135
+ backoff = Math.min(backoff * 2, maxBackoffMs);
136
+ };
93
137
  source = next;
94
- clearTimeout(joinTimer);
95
- joinTimer = setTimeout(() => {
96
- if (!subscribed && source === next) status?.("TIMED_OUT");
97
- }, timeoutMs);
98
138
  next.addEventListener("status", (event) => {
99
139
  const data = parse(event);
100
140
  if (!isRecord(data) || source !== next) return;
101
141
  if (data["status"] === "subscribed") {
102
142
  clearTimeout(joinTimer);
103
143
  subscribed = true;
144
+ joined = true;
104
145
  ending = false;
105
146
  backoff = 1e3;
106
147
  status?.("SUBSCRIBED");
@@ -121,8 +162,15 @@ function relayRealtimeClient(url, options = {}) {
121
162
  presence = Object.fromEntries(Object.entries(data).filter((entry) => Array.isArray(entry[1])));
122
163
  dispatch("presence", "sync", {});
123
164
  });
124
- next.addEventListener("end", () => {
125
- ending = true;
165
+ next.addEventListener("end", (event) => {
166
+ if (removed || source !== next) return;
167
+ if (joined) {
168
+ ending = true;
169
+ return;
170
+ }
171
+ const data = parse(event);
172
+ const reason = isRecord(data) && typeof data["reason"] === "string" ? data["reason"] : "closed";
173
+ retry(`The relay could not join ${name} (${reason}); retrying`);
126
174
  });
127
175
  next.addEventListener("error", () => {
128
176
  if (removed || source !== next) return;
@@ -130,16 +178,7 @@ function relayRealtimeClient(url, options = {}) {
130
178
  if (subscribed && !ending) status?.("CHANNEL_ERROR", /* @__PURE__ */ new Error(`The relay connection for ${name} dropped`));
131
179
  return;
132
180
  }
133
- next.close();
134
- source = void 0;
135
- if (!subscribed) {
136
- clearTimeout(joinTimer);
137
- status?.("CHANNEL_ERROR", /* @__PURE__ */ new Error(`The relay refused ${name}`));
138
- return;
139
- }
140
- status?.("CHANNEL_ERROR", /* @__PURE__ */ new Error(`The relay closed ${name}; reconnecting`));
141
- retryTimer = setTimeout(open, backoff);
142
- backoff = Math.min(backoff * 2, maxBackoffMs);
181
+ retry(subscribed ? `The relay closed ${name}; reconnecting` : `The relay could not join ${name}; retrying`);
143
182
  });
144
183
  };
145
184
  const close = () => {
@@ -161,6 +200,7 @@ function relayRealtimeClient(url, options = {}) {
161
200
  subscribe(callback) {
162
201
  if (status !== void 0 || removed) throw new Error(`tried to subscribe multiple times to ${name} on the relay`);
163
202
  status = callback ?? (() => void 0);
203
+ joinTimer = setTimeout(timedOut, timeoutMs);
164
204
  open();
165
205
  return channel;
166
206
  },
@@ -4,7 +4,7 @@ import { a as ok, r as err, s as toDbError } from "./result-ntFBW2p2.js";
4
4
  import { n as validate } from "./standard-BA3mLh6w.js";
5
5
  import { a as methodNotAllowed } from "./problem-Bf0cJ7tk.js";
6
6
  import { n as checkEach, r as checkPermission } from "./authorizer-BGhXaDmo.js";
7
- import { a as respond, i as isResult } from "./respond-C3CcOZlA.js";
7
+ import { a as isResult, o as respond } from "./respond-3RKp6VgU.js";
8
8
  import { n as matchAction, r as planResource, t as TABLE_VERBS } from "./resource-DvgXqZB_.js";
9
9
  //#region src/server/resource-execute.ts
10
10
  async function settled(value) {
@@ -1,5 +1,5 @@
1
1
  import { n as ResourceActionSpec } from "./resource-D8pzB5Qf.js";
2
- import { i as ResourceContext, n as Parsed, r as ResourceAction, t as ActionArgs } from "./resource-types-BIoz_ElD.js";
2
+ import { i as ResourceContext, n as Parsed, r as ResourceAction, t as ActionArgs } from "./resource-types-8Q5Klkpa.js";
3
3
  import { StandardSchemaV1 } from "@standard-schema/spec";
4
4
  //#region src/server/resource-execute.d.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { D as ValidationIssue, f as Result } from "./result-DZeA5KS6.js";
2
2
  import { Ft as RequestContext, K as Insert, dt as TableMeta, ht as Update, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
3
3
  import { Wt as SelectArg } from "./define-Cgru0_kF.js";
4
- import { a as RespondOptions } from "./respond-Dn1_YhC1.js";
4
+ import { a as RespondOptions } from "./respond-oZeJ342J.js";
5
5
  import { D as ResourceOperation, k as TableVerb } from "./model-hwpvole9.js";
6
6
  import { a as ResourcePlan, i as ResourcePagination, n as ResourceActionSpec, r as ResourceDescription } from "./resource-D8pzB5Qf.js";
7
7
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,6 +1,6 @@
1
1
  import { n as dbError } from "./errors-BVFgt8BZ.js";
2
2
  import { o as problemResponse } from "./problem-Bf0cJ7tk.js";
3
- import { n as actionFits, t as defineResource } from "./resource-DV2GC2dB.js";
3
+ import { n as actionFits, t as defineResource } from "./resource-R3KToNze.js";
4
4
  //#region src/server/resources.ts
5
5
  function split(path) {
6
6
  return path.split("/").filter((segment) => segment !== "");
@@ -1,5 +1,5 @@
1
1
  import { k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
2
- import { l as ResourceRouteOptions } from "./resource-types-BIoz_ElD.js";
2
+ import { l as ResourceRouteOptions } from "./resource-types-8Q5Klkpa.js";
3
3
  //#region src/server/resources.d.ts
4
4
  /** Resources by table name; `true` serves a table with the defaults. */
5
5
  type ResourceMap<M extends AnyModels, Ref = string, DbT = unknown> = { readonly [T in TableKey<M>]?: ResourceRouteOptions<M, T, Ref, DbT> | true; };
@@ -6,6 +6,13 @@ import { f as checkAal, t as isAnonymousUser } from "./view-C8Ve14ja.js";
6
6
  import { n as jsonResponse } from "./json-DaByVJpw.js";
7
7
  //#region src/server/respond.ts
8
8
  /**
9
+ * Refuses `cookies: false` with a `refresh` policy at setup: a refresh reads
10
+ * and writes the session cookie.
11
+ */
12
+ function assertCookieRefresh(options) {
13
+ if (options.cookies === false && options.refresh !== void 0 && options.refresh !== false) throw new TypeError("better-supabase: `cookies: false` can't be combined with `refresh`; a refresh needs the session cookie");
14
+ }
15
+ /**
9
16
  * The scopes a delegated user token lacks. Empty for the user's own session,
10
17
  * which a support or impersonated session counts as: an `oauth-client` actor,
11
18
  * and an `agent` on a token with a `scope`, are limited to what the user
@@ -97,4 +104,4 @@ function defaultExpose() {
97
104
  return typeof process !== "undefined" && process.env["NODE_ENV"] === "development";
98
105
  }
99
106
  //#endregion
100
- export { respond as a, isResult as i, defaultPrefetchJwks as n, settle as o, guard as r, defaultExpose as t };
107
+ export { isResult as a, guard as i, defaultExpose as n, respond as o, defaultPrefetchJwks as r, settle as s, assertCookieRefresh as t };
@@ -70,6 +70,12 @@ interface MiddlewareOptions extends GuardOptions {
70
70
  * refreshes page loads and form posts only (`shouldRefresh`).
71
71
  */
72
72
  readonly refresh?: RefreshPolicy;
73
+ /**
74
+ * Read the session cookie. Defaults to true; `false` resolves bearer tokens
75
+ * and API keys only, for routes that native apps and servers call. It can't
76
+ * be combined with `refresh`, which rewrites cookies.
77
+ */
78
+ readonly cookies?: boolean;
73
79
  }
74
80
  /** `undefined` when `auth` may pass; otherwise the 401/403 error to send. */
75
81
  declare function guard(auth: AuthState, allow?: GuardOptions["allow"], aal?: Aal, scopes?: readonly string[]): DbError | undefined;
@@ -13,18 +13,18 @@ import { A as isSessionSnapshot, C as DeleteAccountResult, D as SessionMemoStats
13
13
  import { n as Impersonator, r as impersonatorOf, t as ImpersonationOptions } from "../impersonation-YTa9dZUv.js";
14
14
  import { a as checkAal, i as amrOf, n as AmrEntry, r as aalOf, t as Aal } from "../mfa-oIOYTpvc.js";
15
15
  import { _ as SupportAuthorize, a as AutomationHooks, b as TicketSubject, c as ChatActionHook, d as IdentityRef, f as IdentityTarget, g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, l as DelegationPermissions, m as Subscriber, n as Approver, o as AutomationRef, p as PrincipalByIdentity, r as ApproverOf, s as ChatAction, t as ApprovalRequestRef, u as DelegationRef, v as SupportAuthorizeInput, x as defineAuthorizationHooks, y as SupportDecision } from "../authorization-hooks-D_pwXlBs.js";
16
- import { c as RealtimeClient } from "../topic-BtLz-qTI.js";
16
+ import { c as RealtimeClient } from "../topic-nQYxoTaU.js";
17
17
  import { n as toSession, t as AuthSession } from "../view-DyFdMCqg.js";
18
18
  import { C as SupportSessionStore, E as supportClaims, S as SupportSession, T as sqlSupportStore, _ as SupportCallerClaims, a as SupportPolicy, b as SupportRequest, c as supportSessions, d as clearSupportCookie, f as supportCookie, g as SupportApprover, h as SupportApprovalQuery, i as SupportOptions, l as SUPPORT_COOKIE, m as SqlSupportStoreOptions, n as SupportApi, o as SupportSessions, p as supportCookieValue, r as SupportExpireRouteOptions, s as SupportStartRequest, t as ActiveSupport, u as SupportCookieOptions, v as SupportEndedBy, w as SupportStartInput, x as SupportRequestInput, y as SupportListFilter } from "../support-B4ZBVxt3.js";
19
- import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-C1OuXbtN.js";
20
- import { a as RespondOptions, c as isResult, d as RefreshPolicy, f as isPrefetch, h as shouldRefresh, i as MiddlewareOptions, l as respond, m as shouldCheckSession, n as AuthKind, o as Settled, p as refreshFor, r as GuardOptions, s as guard, u as settle } from "../respond-Dn1_YhC1.js";
21
- import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-B7f1MMgr.js";
22
- import { a as AuthorizedContext, c as ResourceLoaderContext, d as rolesAt, i as AuthorizeOptions, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions, u as hasRole } from "../kit-DOwKpSkA.js";
19
+ import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-Fcft5A39.js";
20
+ import { a as RespondOptions, c as isResult, d as RefreshPolicy, f as isPrefetch, h as shouldRefresh, i as MiddlewareOptions, l as respond, m as shouldCheckSession, n as AuthKind, o as Settled, p as refreshFor, r as GuardOptions, s as guard, u as settle } from "../respond-oZeJ342J.js";
21
+ import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-C-8A8qzi.js";
22
+ import { a as AuthorizedContext, c as ResourceLoaderContext, d as rolesAt, i as AuthorizeOptions, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions, u as hasRole } from "../kit-CVgQCIBO.js";
23
23
  import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-8GySC9Z8.js";
24
24
  import { i as toCsv, n as csvColumns, t as CsvOptions } from "../csv-DhHQS2x_.js";
25
25
  import { i as JwsAlgorithm, n as Jwks, r as JwksOfOptions } from "../jws-D0toeQlA.js";
26
26
  import { i as ResourcePagination } from "../resource-D8pzB5Qf.js";
27
- import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-BIoz_ElD.js";
27
+ import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-8Q5Klkpa.js";
28
28
  import { a as claimsFingerprint, i as SessionWatchStatus, n as SessionStatusRouteOptions, o as sessionStatusRoute, r as SessionStatusServer, t as SessionStatusBody } from "../session-status-qQLm7jzh.js";
29
29
  import { i as tagFor, n as cacheTagsOf, r as tagCache, t as TagOptions } from "../tags-sM-CH9Mn.js";
30
30
  import { n as RefreshOutcome, r as refreshSession } from "../refresh-DT_ICaK-.js";
@@ -228,7 +228,8 @@ interface RelayAccessInput {
228
228
  }
229
229
  /**
230
230
  * Decides whether the caller may receive or send on a topic. A throw or
231
- * rejection denies.
231
+ * rejection is a failure that may pass: a join ends with `unavailable` and the
232
+ * client retries, a send answers 503.
232
233
  */
233
234
  type RelayAuthorize = (input: RelayAccessInput) => boolean | PromiseLike<boolean>;
234
235
  /**
@@ -296,7 +297,7 @@ interface RealtimeRelayOptions {
296
297
  readonly problem?: ProblemFormat;
297
298
  }
298
299
  /** Why the relay ended a stream, in its `end` event. */
299
- type RelayEndReason = "expired" | "max_duration" | "overflow" | "closed" | "upstream_error";
300
+ type RelayEndReason = "expired" | "max_duration" | "overflow" | "closed" | "upstream_error" | "unavailable";
300
301
  /**
301
302
  * Whether `claims` may receive or send on `topic`, by the `realtime.messages`
302
303
  * policies, checked the way Realtime checks a join: a probe message is
@@ -8,27 +8,27 @@ import { i as userContext, r as impersonatorOf } from "../impersonation-DM3oWNoD
8
8
  import { t as supportOf } from "../support-view-g4YLBeqX.js";
9
9
  import { t as joinTopic } from "../channels-CfcFPuo_.js";
10
10
  import { r as toCsv, t as csvColumns } from "../csv-2rXGPNtP.js";
11
- import { A as suspendAccount, C as shouldRefresh, D as SERVER_EVENT_SOURCE, E as defineAuthorizationHooks, O as endSessions, S as shouldCheckSession, T as serverCore, a as unexpectedResponse, b as isPrefetch, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, j as deleteAccount, k as lastSignIns, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, x as refreshFor, y as withSession } from "../adapter-Dyks1lX1.js";
11
+ import { A as suspendAccount, C as shouldRefresh, D as SERVER_EVENT_SOURCE, E as defineAuthorizationHooks, O as endSessions, S as shouldCheckSession, T as serverCore, a as unexpectedResponse, b as isPrefetch, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, j as deleteAccount, k as lastSignIns, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, x as refreshFor, y as withSession } from "../adapter-CfuBICuG.js";
12
12
  import { n as PRIMARY_COOKIE } from "../replicas-Dyoh3CEg.js";
13
13
  import { t as authContext } from "../context-DBicfUNz.js";
14
14
  import { r as PERMISSION_CAP_CLAIM } from "../delegation-DGOIiT8k.js";
15
15
  import { a as refreshSession, c as AUTH_CACHE_HEADERS, g as sessionCookieName, i as resolveAuth, m as readSession, o as clearSessionCookies, s as sessionStatus, t as clientIp, v as writeSession } from "../resolve-B0mW2m7f.js";
16
16
  import { i as defineAuthorizer, o as requestMemo, t as bindAuthorizer } from "../authorizer-BGhXaDmo.js";
17
17
  import { a as isSessionSnapshot, c as sessionMemo, d as amrOf, f as checkAal, i as authzVersionOf, l as snapshotOf, n as toSession, o as issuedAtOf, s as sessionCacheKey, u as aalOf } from "../view-C8Ve14ja.js";
18
- import { a as respond, i as isResult, o as settle, r as guard } from "../respond-C3CcOZlA.js";
19
- import { a as sqlSupportStore, i as supportSessions, n as passwordGrant, o as supportClaims, r as safeRedirectPath } from "../sign-in-B64114O4.js";
18
+ import { a as isResult, i as guard, o as respond, s as settle } from "../respond-3RKp6VgU.js";
19
+ import { a as sqlSupportStore, i as supportSessions, n as passwordGrant, o as supportClaims, r as safeRedirectPath } from "../sign-in-BLkRU3lc.js";
20
20
  import { n as event, t as defineEvents } from "../event-map-CtPFhcOp.js";
21
21
  import { t as subjectReaders } from "../subject-readers-B-pQ9Mmo.js";
22
22
  import { t as postgresExecutor } from "../executor-3qcMhg6R.js";
23
23
  import { n as jwtClaimsOf, r as userClaimsOf, t as authModeOf } from "../claims-DTy6R6my.js";
24
- import { n as withGuard, t as withBetterSupabase } from "../composite-B3TIjId4.js";
24
+ import { n as withGuard, t as withBetterSupabase } from "../composite-D24L5RIY.js";
25
25
  import { c as verifyCompact, t as JwsError } from "../jws-DOgHJKHb.js";
26
26
  import { t as jwksSource } from "../jwks-cache-DEsKI0hJ.js";
27
27
  import { i as rateLimitPolicyHeader, n as periodSeconds, r as rateLimitHeader, t as isRateLimitPolicyName } from "../ratelimit-headers-kEcXyO3H.js";
28
- import { t as defineResource } from "../resource-DV2GC2dB.js";
28
+ import { t as defineResource } from "../resource-R3KToNze.js";
29
29
  import { i as withServerTiming, n as parseDbStats, r as withDbStats, t as DB_CALLS_HEADER } from "../timing-dypS0nxW.js";
30
30
  import { n as tagCache, r as tagFor, t as cacheTagsOf } from "../tags-CIZTqtlY.js";
31
- import { a as rolesAt, r as hasRole } from "../kit-5l-o8RxL.js";
31
+ import { a as rolesAt, r as hasRole } from "../kit-DhlB-vv_.js";
32
32
  import { defineMiddleware } from "@supabase/middleware";
33
33
  //#region src/server/csv.ts
34
34
  function disposition(filename) {
@@ -214,6 +214,7 @@ async function realtimeTopicAccess(postgres, input) {
214
214
  const encoder = new TextEncoder();
215
215
  const frame = (event, data) => encoder.encode(`event: ${event}\ndata: ${JSON.stringify(data)}\n\n`);
216
216
  const PING = encoder.encode(": ping\n\n");
217
+ const TRANSIENT_AUTH = /* @__PURE__ */ new Set(["network", "unexpected"]);
217
218
  const STREAM_HEADERS = {
218
219
  "content-type": "text/event-stream; charset=utf-8",
219
220
  "cache-control": "no-store, no-transform",
@@ -262,6 +263,10 @@ function realtimeRelay(server, options) {
262
263
  return upstream;
263
264
  };
264
265
  const problem = (error) => problemResponse(error, { format: options.problem });
266
+ const unavailableStream = () => new Response(`retry: ${String(retryMs)}\n\nevent: end\ndata: ${JSON.stringify({ reason: "unavailable" })}\n\n`, {
267
+ status: 200,
268
+ headers: STREAM_HEADERS
269
+ });
265
270
  const topicOf = (name) => options.topics.find((each) => each.match(name) !== null);
266
271
  const allowed = async (input) => {
267
272
  try {
@@ -273,7 +278,7 @@ function realtimeRelay(server, options) {
273
278
  action: input.action
274
279
  }) : false;
275
280
  } catch {
276
- return false;
281
+ return "unavailable";
277
282
  }
278
283
  };
279
284
  const claimsOf = (auth, support) => {
@@ -293,16 +298,18 @@ function realtimeRelay(server, options) {
293
298
  if (!topic) return { refusal: problem(dbError("not_found", `No relayed topic "${name}"`)) };
294
299
  const ctx = await server.context(request, { refresh });
295
300
  const { auth, support } = ctx;
296
- if (auth.kind === "invalid") return { refusal: ctx.apply(problem(auth.error)) };
301
+ if (auth.kind === "invalid") return { refusal: ctx.apply(action === "receive" && TRANSIENT_AUTH.has(auth.error.kind) ? unavailableStream() : problem(auth.error)) };
297
302
  if (!(auth.kind !== "anon") && (topic.private || action === "send")) return { refusal: ctx.apply(problem(dbError("unauthorized", "Sign in to join this topic"))) };
298
303
  if (action === "send" && support?.session.readOnly === true) return { refusal: ctx.apply(problem(readOnlyError())) };
299
- if (!(!topic.private && action === "receive" ? true : await allowed({
304
+ const ok = !topic.private && action === "receive" ? true : await allowed({
300
305
  topic: name,
301
306
  action,
302
307
  auth,
303
308
  support,
304
309
  claims: claimsOf(auth, support)
305
- }))) return { refusal: ctx.apply(problem(dbError("forbidden", `Not allowed to ${action} on "${name}"`))) };
310
+ });
311
+ if (ok === "unavailable") return { refusal: ctx.apply(action === "receive" ? unavailableStream() : problem(dbError("network", `Could not check access to "${name}"`))) };
312
+ if (!ok) return { refusal: ctx.apply(problem(dbError("forbidden", `Not allowed to ${action} on "${name}"`))) };
306
313
  return {
307
314
  topic,
308
315
  ctx
@@ -3,7 +3,7 @@ import { n as AuthOutageEvent, o as EventHub } from "./events-vcqenSYU.js";
3
3
  import { g as SessionEncoding, o as ResolvePhase, p as CookieScope, r as AuthState, t as AuthResolution } from "./resolve-CXX6DHv3.js";
4
4
  import { a as ServerContext, r as ContextOptions } from "./server-types-gR4Q1aM0.js";
5
5
  import { t as ActiveSupport } from "./support-B4ZBVxt3.js";
6
- import { d as RefreshPolicy } from "./respond-Dn1_YhC1.js";
6
+ import { d as RefreshPolicy } from "./respond-oZeJ342J.js";
7
7
  import { SingleKeyEntry } from "@supabase/middleware";
8
8
  //#region src/server/entries/core.d.ts
9
9
  /**
@@ -5,7 +5,7 @@ import { n as validate } from "./standard-BA3mLh6w.js";
5
5
  import { o as problemResponse } from "./problem-Bf0cJ7tk.js";
6
6
  import { i as sqlIdent } from "./template-Drgg3v2J.js";
7
7
  import { t as fromPgError } from "./pg-error-B5QLDcbG.js";
8
- import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-Dyks1lX1.js";
8
+ import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-CfuBICuG.js";
9
9
  import { a as emitBlockEvent } from "./block-events-pBXPzwnW.js";
10
10
  import { t as cronRoute } from "./cron-route-UU9i5i9J.js";
11
11
  import { t as boundedTtlCache } from "./ttl-cache-Bhr9swjT.js";
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DZeA5KS6.js";
2
2
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-vcqenSYU.js";
3
3
  import { pt as QuerySpec } from "../define-Cgru0_kF.js";
4
4
  import { tt as TemplateValues } from "../bucket-vc-QRrva.js";
5
- import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-BtLz-qTI.js";
6
- import { t as AuthSnapshot } from "../bind-C801IaK-.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-nQYxoTaU.js";
6
+ import { t as AuthSnapshot } from "../bind-pu5TLrla.js";
7
7
  import { t as AuthSession } from "../view-DyFdMCqg.js";
8
- import { n as Controller } from "../controller-CJUXhshv.js";
9
- import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DqlebtTE.js";
10
- import { n as BlockOptions } from "../block-env-BeG4DiiO.js";
8
+ import { n as Controller } from "../controller-BR7CZ1R9.js";
9
+ import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DkAemDoc.js";
10
+ import { n as BlockOptions } from "../block-env-CA65ulTD.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
12
12
  import { t as SupportView } from "../support-view-BYOgwXsJ.js";
13
13
  import { SupabaseClient } from "@supabase/supabase-js";
@@ -2,9 +2,9 @@ import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
2
2
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
3
3
  import { t as BetterSupabase } from "../define-Cgru0_kF.js";
4
4
  import { n as BetterServer } from "../server-types-gR4Q1aM0.js";
5
- import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-DOwKpSkA.js";
6
- import { t as RefusalRedirects } from "../refusal-CSntB_x8.js";
7
- import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-CF6zFU7a.js";
5
+ import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
6
+ import { t as RefusalRedirects } from "../refusal-OrlI3g4H.js";
7
+ import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-x9Y4uB1q.js";
8
8
  import { StandardSchemaV1 } from "@standard-schema/spec";
9
9
  //#region src/solid-start/index.d.ts
10
10
  /** The part of a SolidStart `FetchEvent` the integration reads and writes. */
@@ -1,9 +1,9 @@
1
- import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-Dyks1lX1.js";
2
- import { t as defaultExpose } from "../respond-C3CcOZlA.js";
3
- import { i as requireCaller, o as runAction } from "../kit-5l-o8RxL.js";
1
+ import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CfuBICuG.js";
2
+ import { n as defaultExpose } from "../respond-3RKp6VgU.js";
3
+ import { i as requireCaller, o as runAction } from "../kit-DhlB-vv_.js";
4
4
  import { i as nitroCloudflareEnv } from "../shared-Bf-I13Ht.js";
5
- import { i as localsOf, r as frameworkEntry } from "../framework-BozTXRzt.js";
6
- import { r as refusalResponse } from "../refusal-ByBZcm0V.js";
5
+ import { i as localsOf, r as frameworkEntry } from "../framework-CNhTg0th.js";
6
+ import { r as refusalResponse } from "../refusal-D48CMqpQ.js";
7
7
  import { t as beforeRoute } from "../before-route-B23K2zYU.js";
8
8
  //#region src/solid-start/index.ts
9
9
  /** SolidStart integration: middleware, guards and server function actions. */
@@ -1,8 +1,8 @@
1
1
  import { t as DescribedFunction } from "../function-contract-DxFNOmsm.js";
2
2
  import { C as ModelWebhook, D as ResourceOperation, E as OperationSource, O as SecurityRequirement, S as ModelTag, T as OAuthFlow, _ as ModelResponseOrRef, a as JsonSchema, b as ModelServer, c as ModelChannelOperation, d as ModelInfo, f as ModelMessage, g as ModelResponse, h as ModelParameter, i as JsonObject, k as TableVerb, l as ModelContent, m as ModelOperation, n as DataApiOperation, o as ModelBody, p as ModelMessageTrait, r as HttpMethod, s as ModelChannel, t as ApiModel, u as ModelExample, v as ModelSecurityProfileRequirement, w as ModelWorkflow, x as ModelStep, y as ModelSecurityScheme } from "../model-hwpvole9.js";
3
3
  import { a as ResourcePlan, o as StandardLike, r as ResourceDescription } from "../resource-D8pzB5Qf.js";
4
- import { t as SPEC_PINS } from "../spec-pins-DIx95afw.js";
5
- import { A as AnyOpenApiDocument, B as OpenApiSecurityRequirement, C as TopicInput, D as DEFAULT_ERRORS, E as CustomSecurity, F as OpenApi33PreviewDocument, H as RenderedOpenApi, I as OpenApiComponents, L as OpenApiDocument, M as OpenApi30Document, N as OpenApi31Document, O as PROBLEM_SCHEMA, P as OpenApi32Document, R as OpenApiDocuments, S as EventsOptions, T as DataApiOptions, V as OpenApiVersion, _ as WorkflowSource, a as OverlayEngine, b as CLOUD_EVENT_TRAIT, c as defineApi, d as BuiltModel, f as ComponentNameContext, g as RouteSpec, h as ResourceInput, i as OpenApiRenderResult, j as OPENAPI_33_PREVIEW_VERSION, k as SecurityPreset, l as ApiOptions, m as OperationIdContext, n as DefineApiOptions, o as RenderOptions, p as EnrichHooks, r as OpenApiRenderOptions, s as RenderResult, t as Api, u as ApiSource, v as BlockEventSchema, w as topicsFrom, x as CloudEventsInput, y as BlockEventSchemas, z as OpenApiInfo } from "../api-CpL3hm87.js";
4
+ import { t as SPEC_PINS } from "../spec-pins-BZkKfwY8.js";
5
+ import { A as AnyOpenApiDocument, B as OpenApiSecurityRequirement, C as TopicInput, D as DEFAULT_ERRORS, E as CustomSecurity, F as OpenApi33PreviewDocument, H as RenderedOpenApi, I as OpenApiComponents, L as OpenApiDocument, M as OpenApi30Document, N as OpenApi31Document, O as PROBLEM_SCHEMA, P as OpenApi32Document, R as OpenApiDocuments, S as EventsOptions, T as DataApiOptions, V as OpenApiVersion, _ as WorkflowSource, a as OverlayEngine, b as CLOUD_EVENT_TRAIT, c as defineApi, d as BuiltModel, f as ComponentNameContext, g as RouteSpec, h as ResourceInput, i as OpenApiRenderResult, j as OPENAPI_33_PREVIEW_VERSION, k as SecurityPreset, l as ApiOptions, m as OperationIdContext, n as DefineApiOptions, o as RenderOptions, p as EnrichHooks, r as OpenApiRenderOptions, s as RenderResult, t as Api, u as ApiSource, v as BlockEventSchema, w as topicsFrom, x as CloudEventsInput, y as BlockEventSchemas, z as OpenApiInfo } from "../api-B6zteBya.js";
6
6
  import { a as FormatVersion, c as SpecDiagnostic, d as defineDocumentFormat, i as DocumentOf, l as VersionOf, n as DiagnosticSeverity, o as LowerContext, r as DocumentFormat, s as RenderedOf, t as AnyDocumentFormat, u as VersionStatus } from "../format-u-65igKI.js";
7
7
  //#region src/spec/build.d.ts
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import { r as isPlainObject } from "../clone-CkG0-hlI.js";
2
2
  import { a as methodNotAllowed } from "../problem-Bf0cJ7tk.js";
3
- import { t as SPEC_PINS } from "../spec-pins-C1Vm8OBl.js";
3
+ import { t as SPEC_PINS } from "../spec-pins-D3zDek-u.js";
4
4
  import { t as FUNCTION_DESCRIPTOR } from "../function-contract-pEmsaUIf.js";
5
5
  import { n as memoized, t as importOptionalPeer } from "../optional-peer-C1NbBRJm.js";
6
6
  import { a as topicsFrom, c as PROBLEM_SCHEMA, d as mergeJson, f as pointerToken, i as safeKey, l as convertStandard, n as publishedResources, o as publishedBlocks, r as CLOUD_EVENT_TRAIT, s as DEFAULT_ERRORS, t as buildApiModel, u as pascal } from "../build-QitPVzzO.js";
@@ -39,6 +39,8 @@ declare const SPEC_PINS: {
39
39
  readonly scim: "2.0";
40
40
  readonly supabaseSdkCapabilities: "1.14.0";
41
41
  readonly aiMessage: "1";
42
+ /** The PowerSync sync streams config edition `powersync streams` writes. */
43
+ readonly powersyncSyncStreams: "2";
42
44
  readonly aiSdkUiMessageStream: "v1";
43
45
  readonly anthropicMemoryTool: "20250818";
44
46
  /** RFC 5545 recurrence rules expanded by the reminders block. */
@@ -34,6 +34,7 @@ const SPEC_PINS = {
34
34
  scim: "2.0",
35
35
  supabaseSdkCapabilities: "1.14.0",
36
36
  aiMessage: "1",
37
+ powersyncSyncStreams: "2",
37
38
  aiSdkUiMessageStream: "v1",
38
39
  anthropicMemoryTool: "20250818",
39
40
  rfc5545: "2009-09",
@@ -1,5 +1,5 @@
1
- import { M as BlockOptionsRegistry, j as BLOCK_OPTION_SCHEMAS, k as resolveBlock } from "../authorization-CNsvnwle.js";
2
- import { C as OwnView, Qn as auditRegistrations, S as BlockSqlUpgrade, T as notNullCheckName, Xn as sameTenantLayout, Yn as DeclaredForeignKey, Zn as AuditedTable, _ as BlockSqlDeprecation, a as BlockSqlContext, b as BlockSqlLayout, c as BlockSqlIdType, d as MODULE_ID_TYPES, f as contractSignature, g as BlockSqlAccessProvider, h as BlockSql, i as BlockSqlAudit, l as BlockSqlNames, m as moduleIdType, n as AuditCategory, o as BlockSqlContractFunction, p as isBlockSqlIdType, r as BlockSqlAction, s as BlockSqlEmit, t as AUDIT_CATEGORIES, u as BlockSqlTableSpec, v as BlockSqlEntitlementsProvider, w as blockSqlVersion, x as BlockSqlTestFile, y as BlockSqlFile } from "../context-CKCgjEDF.js";
3
- import { a as appTableEventTypes } from "../app-tables-dS02piE7.js";
4
- import { $ as moduleHidingColumns, A as expiredFlagsQuery, B as adoptedColumnProblems, C as declaredViews, Ct as renderBlocks, D as subjectColumns, E as rlsTables, F as dataExportPlan, G as appTablesFiles, H as adoptedViews, I as excludedColumns, J as SQL_MODULES, K as DEFAULT_ROLES, L as resolveExposeColumns, M as sameTenantTrigger, N as DataExportPlan, O as TenantQuery, P as SECRET_COLUMNS, Q as moduleEventTriggers, R as AdoptedTable, S as declaredUpdatedAtTriggers, St as moduleTopics, T as policyGrants, U as APP_TABLES_MARKER, V as adoptedTables, W as APP_TABLES_MODULE, X as BlockSqlExtension, Y as resolveBlocks, Z as BlockSqlPermissionKey, _ as templateFunctions, _t as moduleDeprecations, a as scopePolicyName, at as sameBlockFile, b as declaredTableColumns, bt as customContracts, c as compileReadSet, ct as EntityRenamePlan, d as MigrationOptionUse, dt as BLOCK_RENAMES, et as modulePermissionKeys, f as migrationOptionUses, ft as currentBlockName, g as scopeProblems, gt as InstalledBlock, h as resolveProviderSql, ht as BlockSqlUpgradePlan, i as TENANT_SCOPE_POLICY, it as moduleFileVersion, j as sameTenantColumn, k as tenantsQuery, l as compileReadSets, lt as EntityRenameStep, m as SCOPE_ID_TYPES, mt as renamedBlock, n as declaredPolicies, nt as blockFileState, o as hasColumnAccess, ot as moduleDataDir, p as moduleLayout, pt as formerBlockName, q as instanceFunctions, r as widenedCommands, rt as isModuleDataFile, s as CompiledReadSet, st as moduleFilePaths, t as appTablePolicyNotes, tt as moduleSchemaExtensions, u as sharedRolesProblems, ut as entityRenamePlan, v as DeclaredView, vt as upgradePlan, w as extensionSchema, x as declaredTables, xt as moduleBody, y as PolicyGrant, yt as BlockSqlTopic, z as AdoptedView } from "../index-Dbb7BQdi.js";
5
- export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, type AdoptedTable, type AdoptedView, type AuditCategory, type AuditedTable, BLOCK_OPTION_SCHEMAS, BLOCK_RENAMES, type BlockOptionsRegistry, type BlockSql, type BlockSqlAccessProvider, type BlockSqlAction, type BlockSqlAudit, type BlockSqlContext, type BlockSqlContractFunction, type BlockSqlDeprecation, type BlockSqlEmit, type BlockSqlEntitlementsProvider, type BlockSqlExtension, type BlockSqlFile, type BlockSqlIdType, type BlockSqlLayout, type BlockSqlNames, type BlockSqlPermissionKey, type BlockSqlTableSpec, type BlockSqlTestFile, type BlockSqlTopic, type BlockSqlUpgrade, type BlockSqlUpgradePlan, type CompiledReadSet, DEFAULT_ROLES, type DataExportPlan, type DeclaredForeignKey, type DeclaredView, type EntityRenamePlan, type EntityRenameStep, type InstalledBlock, MODULE_ID_TYPES, type MigrationOptionUse, type OwnView, type PolicyGrant, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, TENANT_SCOPE_POLICY, type TenantQuery, adoptedColumnProblems, adoptedTables, adoptedViews, appTableEventTypes, appTablePolicyNotes, appTablesFiles, auditRegistrations, blockFileState, blockSqlVersion, compileReadSet, compileReadSets, contractSignature, currentBlockName, customContracts, dataExportPlan, declaredPolicies, declaredTableColumns, declaredTables, declaredUpdatedAtTriggers, declaredViews, entityRenamePlan, excludedColumns, expiredFlagsQuery, extensionSchema, formerBlockName, hasColumnAccess, instanceFunctions, isBlockSqlIdType, isModuleDataFile, migrationOptionUses, moduleBody, moduleDataDir, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleTopics, notNullCheckName, policyGrants, renamedBlock, renderBlocks, resolveBlock, resolveBlocks, resolveExposeColumns, resolveProviderSql, rlsTables, sameBlockFile, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopePolicyName, scopeProblems, sharedRolesProblems, subjectColumns, templateFunctions, tenantsQuery, upgradePlan, widenedCommands };
1
+ import { M as BlockOptionsRegistry, j as BLOCK_OPTION_SCHEMAS, k as resolveBlock } from "../authorization-IiE__z2m.js";
2
+ import { C as OwnView, Qn as auditRegistrations, S as BlockSqlUpgrade, T as notNullCheckName, Xn as sameTenantLayout, Yn as DeclaredForeignKey, Zn as AuditedTable, _ as BlockSqlDeprecation, a as BlockSqlContext, b as BlockSqlLayout, c as BlockSqlIdType, d as MODULE_ID_TYPES, f as contractSignature, g as BlockSqlAccessProvider, h as BlockSql, i as BlockSqlAudit, l as BlockSqlNames, m as moduleIdType, n as AuditCategory, o as BlockSqlContractFunction, p as isBlockSqlIdType, r as BlockSqlAction, s as BlockSqlEmit, t as AUDIT_CATEGORIES, u as BlockSqlTableSpec, v as BlockSqlEntitlementsProvider, w as blockSqlVersion, x as BlockSqlTestFile, y as BlockSqlFile } from "../context-D24k1Cpc.js";
3
+ import { a as appTableEventTypes } from "../app-tables-XwCviyhP.js";
4
+ import { $ as BlockSqlPermissionKey, A as tenantsQuery, B as AdoptedView, C as declaredUpdatedAtTriggers, Ct as moduleBody, D as rlsTables, E as policyGrants, F as SECRET_COLUMNS, G as APP_TABLES_MARKER, H as adoptedTables, I as dataExportPlan, J as DEFAULT_ROLES, K as APP_TABLES_MODULE, L as excludedColumns, M as sameTenantColumn, N as sameTenantTrigger, O as subjectColumns, P as DataExportPlan, Q as BlockSqlExtension, R as resolveExposeColumns, S as declaredTables, St as customContracts, T as extensionSchema, Tt as renderBlocks, U as adoptedViews, V as adoptedColumnProblems, W as moduleWritesText, X as SQL_MODULES, Y as instanceFunctions, Z as resolveBlocks, _ as templateFunctions, _t as BlockSqlUpgradePlan, a as scopePolicyName, at as isModuleDataFile, b as declaredColumnTypes, bt as upgradePlan, c as compileReadSet, ct as moduleDataDir, d as MigrationOptionUse, dt as EntityRenameStep, et as moduleEventTriggers, f as migrationOptionUses, ft as entityRenamePlan, g as scopeProblems, gt as renamedBlock, h as resolveProviderSql, ht as formerBlockName, i as TENANT_SCOPE_POLICY, it as blockFileState, j as expiredFlagsQuery, k as TenantQuery, l as compileReadSets, lt as moduleFilePaths, m as SCOPE_ID_TYPES, mt as currentBlockName, n as declaredPolicies, nt as modulePermissionKeys, o as hasColumnAccess, ot as moduleFileVersion, p as moduleLayout, pt as BLOCK_RENAMES, q as appTablesFiles, r as widenedCommands, rt as moduleSchemaExtensions, s as CompiledReadSet, st as sameBlockFile, t as appTablePolicyNotes, tt as moduleHidingColumns, u as sharedRolesProblems, ut as EntityRenamePlan, v as DeclaredView, vt as InstalledBlock, w as declaredViews, wt as moduleTopics, x as declaredTableColumns, xt as BlockSqlTopic, y as PolicyGrant, yt as moduleDeprecations, z as AdoptedTable } from "../index-4WT_uRRL.js";
5
+ export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, type AdoptedTable, type AdoptedView, type AuditCategory, type AuditedTable, BLOCK_OPTION_SCHEMAS, BLOCK_RENAMES, type BlockOptionsRegistry, type BlockSql, type BlockSqlAccessProvider, type BlockSqlAction, type BlockSqlAudit, type BlockSqlContext, type BlockSqlContractFunction, type BlockSqlDeprecation, type BlockSqlEmit, type BlockSqlEntitlementsProvider, type BlockSqlExtension, type BlockSqlFile, type BlockSqlIdType, type BlockSqlLayout, type BlockSqlNames, type BlockSqlPermissionKey, type BlockSqlTableSpec, type BlockSqlTestFile, type BlockSqlTopic, type BlockSqlUpgrade, type BlockSqlUpgradePlan, type CompiledReadSet, DEFAULT_ROLES, type DataExportPlan, type DeclaredForeignKey, type DeclaredView, type EntityRenamePlan, type EntityRenameStep, type InstalledBlock, MODULE_ID_TYPES, type MigrationOptionUse, type OwnView, type PolicyGrant, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, TENANT_SCOPE_POLICY, type TenantQuery, adoptedColumnProblems, adoptedTables, adoptedViews, appTableEventTypes, appTablePolicyNotes, appTablesFiles, auditRegistrations, blockFileState, blockSqlVersion, compileReadSet, compileReadSets, contractSignature, currentBlockName, customContracts, dataExportPlan, declaredColumnTypes, declaredPolicies, declaredTableColumns, declaredTables, declaredUpdatedAtTriggers, declaredViews, entityRenamePlan, excludedColumns, expiredFlagsQuery, extensionSchema, formerBlockName, hasColumnAccess, instanceFunctions, isBlockSqlIdType, isModuleDataFile, migrationOptionUses, moduleBody, moduleDataDir, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleTopics, moduleWritesText, notNullCheckName, policyGrants, renamedBlock, renderBlocks, resolveBlock, resolveBlocks, resolveExposeColumns, resolveProviderSql, rlsTables, sameBlockFile, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopePolicyName, scopeProblems, sharedRolesProblems, subjectColumns, templateFunctions, tenantsQuery, upgradePlan, widenedCommands };
package/dist/sql/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as resolveBlock, l as appTableEventTypes, v as hasColumnAccess } from "../app-tables-Q0TYfeih.js";
2
- import { c as templateFunctions, o as resolveProviderSql, s as scopeProblems, t as SCOPE_ID_TYPES } from "../access-sql-B-MkVARa.js";
3
- import { Y as notNullCheckName, a as DEFAULT_ROLES } from "../workflow-sdk-Bw6_u0ar.js";
4
- import { $ as MODULE_ID_TYPES, A as isModuleDataFile, B as excludedColumns, C as moduleFilePaths, D as scopePolicyName, E as appTablesFiles, F as modulePermissionKeys, G as sameTenantColumn, H as SECRET_COLUMNS, I as moduleSchemaExtensions, J as BLOCK_RENAMES, K as sameTenantTrigger, L as SQL_MODULES, M as sameBlockFile, N as moduleEventTriggers, O as blockSqlVersion, P as moduleHidingColumns, Q as AUDIT_CATEGORIES, R as resolveBlocks, S as moduleDataDir, T as APP_TABLES_MODULE, U as dataExportPlan, V as resolveExposeColumns, W as subjectColumns, X as formerBlockName, Y as currentBlockName, Z as renamedBlock, _ as moduleDeprecations, a as tenantsQuery, at as declaredTables, b as declaredPolicies, c as adoptedColumnProblems, ct as extensionSchema, d as instanceFunctions, dt as auditRegistrations, et as contractSignature, f as entityRenamePlan, g as renderBlocks, h as moduleTopics, i as moduleLayout, it as declaredTableColumns, j as moduleFileVersion, k as blockFileState, l as adoptedTables, lt as policyGrants, m as moduleBody, n as compileReadSets, nt as moduleIdType, o as expiredFlagsQuery, ot as declaredUpdatedAtTriggers, p as customContracts, q as migrationOptionUses, r as sharedRolesProblems, rt as BLOCK_OPTION_SCHEMAS, s as sameTenantLayout, st as declaredViews, t as compileReadSet, tt as isBlockSqlIdType, u as adoptedViews, ut as rlsTables, v as upgradePlan, w as APP_TABLES_MARKER, x as widenedCommands, y as appTablePolicyNotes, z as TENANT_SCOPE_POLICY } from "../sql-ClTmzHs8.js";
5
- export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, BLOCK_OPTION_SCHEMAS, BLOCK_RENAMES, DEFAULT_ROLES, MODULE_ID_TYPES, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, TENANT_SCOPE_POLICY, adoptedColumnProblems, adoptedTables, adoptedViews, appTableEventTypes, appTablePolicyNotes, appTablesFiles, auditRegistrations, blockFileState, blockSqlVersion, compileReadSet, compileReadSets, contractSignature, currentBlockName, customContracts, dataExportPlan, declaredPolicies, declaredTableColumns, declaredTables, declaredUpdatedAtTriggers, declaredViews, entityRenamePlan, excludedColumns, expiredFlagsQuery, extensionSchema, formerBlockName, hasColumnAccess, instanceFunctions, isBlockSqlIdType, isModuleDataFile, migrationOptionUses, moduleBody, moduleDataDir, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleTopics, notNullCheckName, policyGrants, renamedBlock, renderBlocks, resolveBlock, resolveBlocks, resolveExposeColumns, resolveProviderSql, rlsTables, sameBlockFile, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopePolicyName, scopeProblems, sharedRolesProblems, subjectColumns, templateFunctions, tenantsQuery, upgradePlan, widenedCommands };
1
+ import { A as resolveBlock, l as appTableEventTypes, v as hasColumnAccess } from "../app-tables-DyswUg6J.js";
2
+ import { c as templateFunctions, o as resolveProviderSql, s as scopeProblems, t as SCOPE_ID_TYPES } from "../access-sql-CNIgUqWf.js";
3
+ import { Y as notNullCheckName, a as DEFAULT_ROLES } from "../workflow-sdk-DELaQEp3.js";
4
+ import { $ as AUDIT_CATEGORIES, A as blockFileState, B as TENANT_SCOPE_POLICY, C as moduleDataDir, D as appTablesFiles, E as APP_TABLES_MODULE, F as moduleHidingColumns, G as subjectColumns, H as resolveExposeColumns, I as modulePermissionKeys, J as migrationOptionUses, K as sameTenantColumn, L as moduleSchemaExtensions, M as moduleFileVersion, N as sameBlockFile, O as scopePolicyName, P as moduleEventTriggers, Q as renamedBlock, R as SQL_MODULES, S as widenedCommands, T as APP_TABLES_MARKER, U as SECRET_COLUMNS, V as excludedColumns, W as dataExportPlan, X as currentBlockName, Y as BLOCK_RENAMES, Z as formerBlockName, _ as renderBlocks, a as tenantsQuery, at as declaredColumnTypes, b as appTablePolicyNotes, c as adoptedColumnProblems, ct as declaredUpdatedAtTriggers, d as moduleWritesText, dt as policyGrants, et as MODULE_ID_TYPES, f as instanceFunctions, ft as rlsTables, g as moduleTopics, h as moduleBody, i as moduleLayout, it as BLOCK_OPTION_SCHEMAS, j as isModuleDataFile, k as blockSqlVersion, l as adoptedTables, lt as declaredViews, m as customContracts, n as compileReadSets, nt as isBlockSqlIdType, o as expiredFlagsQuery, ot as declaredTableColumns, p as entityRenamePlan, pt as auditRegistrations, q as sameTenantTrigger, r as sharedRolesProblems, rt as moduleIdType, s as sameTenantLayout, st as declaredTables, t as compileReadSet, tt as contractSignature, u as adoptedViews, ut as extensionSchema, v as moduleDeprecations, w as moduleFilePaths, x as declaredPolicies, y as upgradePlan, z as resolveBlocks } from "../sql-fHTjZGqR.js";
5
+ export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, BLOCK_OPTION_SCHEMAS, BLOCK_RENAMES, DEFAULT_ROLES, MODULE_ID_TYPES, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, TENANT_SCOPE_POLICY, adoptedColumnProblems, adoptedTables, adoptedViews, appTableEventTypes, appTablePolicyNotes, appTablesFiles, auditRegistrations, blockFileState, blockSqlVersion, compileReadSet, compileReadSets, contractSignature, currentBlockName, customContracts, dataExportPlan, declaredColumnTypes, declaredPolicies, declaredTableColumns, declaredTables, declaredUpdatedAtTriggers, declaredViews, entityRenamePlan, excludedColumns, expiredFlagsQuery, extensionSchema, formerBlockName, hasColumnAccess, instanceFunctions, isBlockSqlIdType, isModuleDataFile, migrationOptionUses, moduleBody, moduleDataDir, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleTopics, moduleWritesText, notNullCheckName, policyGrants, renamedBlock, renderBlocks, resolveBlock, resolveBlocks, resolveExposeColumns, resolveProviderSql, rlsTables, sameBlockFile, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopePolicyName, scopeProblems, sharedRolesProblems, subjectColumns, templateFunctions, tenantsQuery, upgradePlan, widenedCommands };