better-supabase 0.22.0 → 0.25.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 (347) hide show
  1. package/dist/{access-sql-CNIgUqWf.js → access-sql-bjWFUWlk.js} +11 -0
  2. package/dist/{ai-schedules-7uQNMXve.d.ts → ai-schedules-yGZH-vQb.d.ts} +1 -1
  3. package/dist/ai-sdk/agents/index.d.ts +2 -2
  4. package/dist/ai-sdk/batches/index.d.ts +1 -1
  5. package/dist/ai-sdk/index.d.ts +1 -1
  6. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  7. package/dist/{api-CHObZL7m.d.ts → api-B1OkIWdx.d.ts} +3 -3
  8. package/dist/{api-keys-D5k63K6y.d.ts → api-keys-ClhKBDcc.d.ts} +1 -1
  9. package/dist/{app-tables-BGzdnQm5.d.ts → app-tables-xij_MI5H.d.ts} +1 -1
  10. package/dist/{approvals-Dh9dUXrN.d.ts → approvals-C5fmPLsH.d.ts} +1 -1
  11. package/dist/astro/index.d.ts +5 -5
  12. package/dist/{authorization-DhoA7dsD.d.ts → authorization-BJV2i8xB.d.ts} +136 -21
  13. package/dist/{authorization-hooks-D_pwXlBs.d.ts → authorization-hooks-DtzreCAq.d.ts} +1 -1
  14. package/dist/{automations-FCnWy387.js → automations-8L3NEuoq.js} +4 -1
  15. package/dist/{availability-vguUvEK2.d.ts → availability-BdeKCHpl.d.ts} +10 -0
  16. package/dist/better-result/index.d.ts +2 -2
  17. package/dist/{bind-CFsctoFJ.d.ts → bind-vKDmdu_4.d.ts} +4 -4
  18. package/dist/{block-env-BrUNeuJ_.d.ts → block-env-wVLz0KMV.d.ts} +4 -4
  19. package/dist/blocks/access-requests/index.d.ts +2 -2
  20. package/dist/blocks/activities/index.d.ts +3 -3
  21. package/dist/blocks/agents/index.d.ts +2 -2
  22. package/dist/blocks/ai-cache/index.d.ts +1 -1
  23. package/dist/blocks/ai-chat/index.d.ts +5 -5
  24. package/dist/blocks/ai-files/index.d.ts +1 -1
  25. package/dist/blocks/ai-keys/index.d.ts +3 -3
  26. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  27. package/dist/blocks/announcements/index.d.ts +5 -5
  28. package/dist/blocks/api-keys/index.d.ts +5 -5
  29. package/dist/blocks/approvals/index.d.ts +3 -3
  30. package/dist/blocks/assets/index.d.ts +2 -2
  31. package/dist/blocks/assignment/index.d.ts +3 -3
  32. package/dist/blocks/attachments/index.d.ts +3 -3
  33. package/dist/blocks/audit/index.d.ts +7 -7
  34. package/dist/blocks/automations/index.d.ts +5 -5
  35. package/dist/blocks/billable-time/index.d.ts +2 -2
  36. package/dist/blocks/billing/index.d.ts +5 -5
  37. package/dist/blocks/bookings/index.d.ts +6 -6
  38. package/dist/blocks/bulk/index.d.ts +2 -2
  39. package/dist/blocks/calendar/index.d.ts +50 -13
  40. package/dist/blocks/calendar/index.js +133 -30
  41. package/dist/blocks/catalog/index.d.ts +2 -2
  42. package/dist/blocks/channels/index.d.ts +3 -3
  43. package/dist/blocks/collections/index.d.ts +3 -3
  44. package/dist/blocks/comments/index.d.ts +5 -5
  45. package/dist/blocks/compliance/index.d.ts +2 -2
  46. package/dist/blocks/connectors/index.d.ts +3 -3
  47. package/dist/blocks/contacts/index.d.ts +3 -3
  48. package/dist/blocks/content/index.d.ts +2 -2
  49. package/dist/blocks/contracts/index.d.ts +2 -2
  50. package/dist/blocks/courses/index.d.ts +2 -2
  51. package/dist/blocks/created-by/index.d.ts +1 -1
  52. package/dist/blocks/custom-fields/index.d.ts +45 -3
  53. package/dist/blocks/custom-fields/index.js +40 -1
  54. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  55. package/dist/blocks/deals/index.d.ts +3 -3
  56. package/dist/blocks/dispatch/index.d.ts +2 -2
  57. package/dist/blocks/documents/index.d.ts +2 -2
  58. package/dist/blocks/domains/index.d.ts +2 -2
  59. package/dist/blocks/donations/index.d.ts +2 -2
  60. package/dist/blocks/drive/index.d.ts +4 -4
  61. package/dist/blocks/employees/index.d.ts +25 -6
  62. package/dist/blocks/employees/index.js +37 -2
  63. package/dist/blocks/enrichment/index.d.ts +3 -3
  64. package/dist/blocks/enrollments/index.d.ts +2 -2
  65. package/dist/blocks/entitlements/index.d.ts +3 -3
  66. package/dist/blocks/expenses/index.d.ts +2 -2
  67. package/dist/blocks/field-history/index.d.ts +1 -1
  68. package/dist/blocks/flags/index.d.ts +2 -2
  69. package/dist/blocks/forecasts/index.d.ts +3 -3
  70. package/dist/blocks/forms/index.d.ts +3 -3
  71. package/dist/blocks/goals/index.d.ts +1 -1
  72. package/dist/blocks/guests/index.d.ts +2 -2
  73. package/dist/blocks/hiring/index.d.ts +13 -6
  74. package/dist/blocks/hiring/index.js +15 -4
  75. package/dist/blocks/identities/index.d.ts +2 -2
  76. package/dist/blocks/imports/index.d.ts +2 -2
  77. package/dist/blocks/inbox/index.d.ts +6 -6
  78. package/dist/blocks/incidents/index.d.ts +2 -2
  79. package/dist/blocks/index.d.ts +4 -4
  80. package/dist/blocks/inventory/index.d.ts +2 -2
  81. package/dist/blocks/invoices/index.d.ts +3 -3
  82. package/dist/blocks/knowledge/index.d.ts +1 -1
  83. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  84. package/dist/blocks/leases/index.d.ts +2 -2
  85. package/dist/blocks/leave/index.d.ts +2 -2
  86. package/dist/blocks/ledger/index.d.ts +2 -2
  87. package/dist/blocks/mail-sync/index.d.ts +3 -3
  88. package/dist/blocks/memberships/index.d.ts +1 -1
  89. package/dist/blocks/memory/index.d.ts +1 -1
  90. package/dist/blocks/messaging/index.d.ts +7 -7
  91. package/dist/blocks/metrics/index.d.ts +2 -2
  92. package/dist/blocks/mfa/index.d.ts +2 -2
  93. package/dist/blocks/moderation/index.d.ts +2 -2
  94. package/dist/blocks/notifications/index.d.ts +7 -7
  95. package/dist/blocks/numbering/index.d.ts +2 -2
  96. package/dist/blocks/oauth-server/index.d.ts +2 -2
  97. package/dist/blocks/onboarding/index.d.ts +2 -2
  98. package/dist/blocks/orders/index.d.ts +3 -3
  99. package/dist/blocks/organizations/index.d.ts +4 -4
  100. package/dist/blocks/outbox/index.d.ts +2 -2
  101. package/dist/blocks/passes/index.d.ts +3 -3
  102. package/dist/blocks/permissions/index.d.ts +3 -3
  103. package/dist/blocks/pipelines/index.d.ts +3 -3
  104. package/dist/blocks/posts/index.d.ts +2 -2
  105. package/dist/blocks/profiles/index.d.ts +1 -1
  106. package/dist/blocks/promotions/index.d.ts +2 -2
  107. package/dist/blocks/push/index.d.ts +3 -3
  108. package/dist/blocks/queue/index.d.ts +1 -1
  109. package/dist/blocks/quotes/index.d.ts +3 -3
  110. package/dist/blocks/rank/index.d.ts +1 -1
  111. package/dist/blocks/reactions/index.d.ts +5 -5
  112. package/dist/blocks/relations/index.d.ts +2 -2
  113. package/dist/blocks/reminders/index.d.ts +3 -3
  114. package/dist/blocks/reviews/index.d.ts +2 -2
  115. package/dist/blocks/saved-views/index.d.ts +4 -4
  116. package/dist/blocks/scores/index.d.ts +2 -2
  117. package/dist/blocks/search/index.d.ts +6 -4
  118. package/dist/blocks/search/index.js +2 -0
  119. package/dist/blocks/security-events/index.d.ts +3 -3
  120. package/dist/blocks/segments/index.d.ts +3 -3
  121. package/dist/blocks/sequences/index.d.ts +2 -2
  122. package/dist/blocks/service-accounts/index.d.ts +2 -2
  123. package/dist/blocks/sessions/index.d.ts +2 -2
  124. package/dist/blocks/settings/index.d.ts +3 -3
  125. package/dist/blocks/share-links/index.d.ts +30 -5
  126. package/dist/blocks/share-links/index.js +58 -22
  127. package/dist/blocks/shipments/index.d.ts +2 -2
  128. package/dist/blocks/signatures/index.d.ts +2 -2
  129. package/dist/blocks/signing-keys/index.d.ts +2 -2
  130. package/dist/blocks/sla/index.d.ts +3 -3
  131. package/dist/blocks/sso/index.d.ts +3 -3
  132. package/dist/blocks/state-machine/index.d.ts +2 -2
  133. package/dist/blocks/subjects/index.d.ts +2 -2
  134. package/dist/blocks/tags/index.d.ts +20 -5
  135. package/dist/blocks/tags/index.js +15 -2
  136. package/dist/blocks/tasks/index.d.ts +5 -5
  137. package/dist/blocks/teams/index.d.ts +28 -6
  138. package/dist/blocks/teams/index.js +10 -3
  139. package/dist/blocks/templates/index.d.ts +4 -4
  140. package/dist/blocks/time-tracking/index.d.ts +28 -5
  141. package/dist/blocks/time-tracking/index.js +27 -11
  142. package/dist/blocks/timeline/index.d.ts +4 -4
  143. package/dist/blocks/trash/index.d.ts +2 -2
  144. package/dist/blocks/undo/index.d.ts +2 -2
  145. package/dist/blocks/updated-at/index.d.ts +1 -1
  146. package/dist/blocks/usage/index.d.ts +2 -2
  147. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  148. package/dist/blocks/versions/index.d.ts +2 -2
  149. package/dist/blocks/waitlist/index.d.ts +2 -2
  150. package/dist/blocks/webhooks/index.d.ts +6 -6
  151. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  152. package/dist/blocks/workflows/index.d.ts +5 -5
  153. package/dist/{bookings-BpCNphYp.d.ts → bookings-CVw5-Q0Z.d.ts} +1 -1
  154. package/dist/chat-sdk/index.d.ts +2 -2
  155. package/dist/cli/{add-BXFzr0Wf.js → add-BTVrOGJF.js} +11 -11
  156. package/dist/cli/add-Bf1fyCWm.js +1 -0
  157. package/dist/cli/{add-B6CQOt3A.js → add-C2pNvVpu.js} +2 -2
  158. package/dist/cli/{backfill-Dflp6JZk.js → backfill-BicVPugb.js} +3 -3
  159. package/dist/cli/bin.js +1 -1
  160. package/dist/cli/{blocks-CBH3N7Fy.js → blocks-BmYOH4T-.js} +1 -1
  161. package/dist/cli/{blocks-FtOIcUbu.js → blocks-sScN-ik-.js} +1 -1
  162. package/dist/cli/{cache-61VwYKEv.js → cache-1TfBy2K4.js} +1 -1
  163. package/dist/cli/{codemod-CqPRa25J.js → codemod-ylE6wGLo.js} +1 -1
  164. package/dist/cli/{config-BH0goim0.js → config-BVfeG3A5.js} +37 -5
  165. package/dist/cli/{config-CTRzkX0H.js → config-CeaQMrvS.js} +1 -1
  166. package/dist/cli/{content-mapper-DGQQY5IA.js → content-mapper-hUW2nb92.js} +2 -2
  167. package/dist/cli/{db-DCeyHS1y.js → db-DwjyUbAh.js} +2 -2
  168. package/dist/cli/{doctor-BxxSO193.js → doctor-D3WKFBSv.js} +16 -16
  169. package/dist/cli/{gen-D2cqqqTH.js → gen-CqsUdsB2.js} +14 -14
  170. package/dist/cli/index.d.ts +1 -1
  171. package/dist/cli/index.js +7 -7
  172. package/dist/cli/{init-BnG1IE1y.js → init-DryZ5Mp1.js} +6 -6
  173. package/dist/cli/{live-D26OWOAb.js → live-Di45imoV.js} +2 -2
  174. package/dist/cli/{mcp-1l3C_GdB.js → mcp-BklC-3eK.js} +2 -2
  175. package/dist/cli/{metadata-DDfPBHwI.js → metadata-7PsBF5Xw.js} +3 -3
  176. package/dist/cli/{migration-safety-CQbrfZIx.js → migration-safety-Doy9qYO8.js} +2 -2
  177. package/dist/cli/{migrations-Ch5Uuvyj.js → migrations-JtsPYv8g.js} +1 -1
  178. package/dist/cli/{module-migration-Dul1uTYX.js → module-migration-ZIn1NCMi.js} +2 -2
  179. package/dist/cli/{powersync-CfT-tRx1.js → powersync-BRGXOCJ0.js} +2 -2
  180. package/dist/cli/powersync-Dq-txa0_.js +1 -0
  181. package/dist/cli/{print-CbPT4PTL.js → print-Dfqd4DB-.js} +2 -2
  182. package/dist/cli/{remove-kDH1yxKZ.js → remove-CQzSCYTu.js} +5 -5
  183. package/dist/cli/{render-0Vd7BaNA.js → render-DWRz-uPQ.js} +7 -4
  184. package/dist/cli/{run-DxTd55Ug.js → run-DPLedqTF.js} +25 -25
  185. package/dist/cli/{run-Dafms0D2.js → run-j54rk2w-.js} +8 -8
  186. package/dist/cli/{seed-CdSxunFT.js → seed-BMynpMPy.js} +2 -2
  187. package/dist/cli/seed-CO3j_bly.js +1 -0
  188. package/dist/cli/{shared-BQAMXvwd.js → shared-CslNcs-R.js} +1 -1
  189. package/dist/cli/{snapshot-B8K6gYjA.js → snapshot-DdN5GlhH.js} +3 -3
  190. package/dist/cli/{source-CXDyCWz5.js → source-COARbqch.js} +1 -1
  191. package/dist/cli/{source-args-z-jkabmO.js → source-args-CDmmFmFG.js} +1 -1
  192. package/dist/cli/{spec-BGsnTkIl.js → spec-CgLNZc_C.js} +2 -2
  193. package/dist/cli/{spec-CaN7nOqI.js → spec-DIhBQlBF.js} +1 -1
  194. package/dist/cli/{sql-layout-BGAlcp1U.js → sql-layout-8jrP5gIa.js} +2 -2
  195. package/dist/cli/{sync-CT_5VG0E.js → sync-SqyVHRSJ.js} +3 -3
  196. package/dist/cli/{upgrade-frUtPDDb.js → upgrade-CY-vj_qh.js} +4 -4
  197. package/dist/cli/{upgrade-DA7aO88E.js → upgrade-D0aLhluU.js} +2 -2
  198. package/dist/cli/{version-CUdPyV6J.js → version-Bhca9D6q.js} +1 -1
  199. package/dist/client/index.d.ts +5 -5
  200. package/dist/client/native/index.d.ts +4 -4
  201. package/dist/{cloud-event-CzZTJkXv.d.ts → cloud-event-DcJwder2.d.ts} +1 -1
  202. package/dist/{composite-ChzHhSB0.d.ts → composite-CWJvZgni.d.ts} +6 -6
  203. package/dist/config/index.d.ts +4 -4
  204. package/dist/config/index.js +4 -4
  205. package/dist/{config-C9AOcQ9S.js → config-C19McoGo.js} +4 -3
  206. package/dist/{config-CH-D2B-4.js → config-CP-WaboC.js} +6 -5
  207. package/dist/{connectors-Fud4amxp.d.ts → connectors-CHGiffYH.d.ts} +1 -1
  208. package/dist/{context-DEisra3V.d.ts → context-BJoHD20l.d.ts} +60 -14
  209. package/dist/{controller-B6vWdKSa.d.ts → controller-CwGXms17.d.ts} +1 -1
  210. package/dist/{conversion-DBgMck5U.d.ts → conversion-DlfStnln.d.ts} +1 -1
  211. package/dist/create/index.d.ts +3 -3
  212. package/dist/create/index.js +3 -3
  213. package/dist/create/lite/index.d.ts +3 -3
  214. package/dist/create/lite/index.js +2 -2
  215. package/dist/credentials/index.d.ts +3 -3
  216. package/dist/{define-Lf6rI2QN.d.ts → define-BLP6XtoL.d.ts} +1 -1
  217. package/dist/{define-block-DCAiOrNX.d.ts → define-block-DibVN37N.d.ts} +4 -4
  218. package/dist/edge/index.d.ts +8 -8
  219. package/dist/elysia/index.d.ts +1 -1
  220. package/dist/{ended-gUsMZVNg.d.ts → ended-B8RyuUXF.d.ts} +1 -1
  221. package/dist/{entitlements-BPaPd3MD.d.ts → entitlements-CsZcfllV.d.ts} +2 -2
  222. package/dist/eve/index.d.ts +2 -2
  223. package/dist/{event-calendar-DCufbihU.d.ts → event-calendar-DVLs2wUO.d.ts} +1 -1
  224. package/dist/events/index.d.ts +3 -3
  225. package/dist/{events-vcqenSYU.d.ts → events-Cc9DDQWH.d.ts} +2 -0
  226. package/dist/{executor-DNK401lZ.d.ts → executor-C-Ox9eKq.d.ts} +1 -1
  227. package/dist/{executor-aFV7nEBs.d.ts → executor-DNPm13a9.d.ts} +2 -2
  228. package/dist/expo/index.d.ts +3 -3
  229. package/dist/{field-errors-DBgDCITw.d.ts → field-errors-6BVg31Yp.d.ts} +7 -7
  230. package/dist/{framework-DKA3fTHl.d.ts → framework-GlxXiotm.d.ts} +6 -6
  231. package/dist/h3/index.d.ts +1 -1
  232. package/dist/h3/v1/index.d.ts +1 -1
  233. package/dist/hono/index.d.ts +8 -8
  234. package/dist/{index-ClvuSZEz.d.ts → index-BfYDY6eh.d.ts} +3 -3
  235. package/dist/{index-CM2aGNRo.d.ts → index-C0QuN9_P.d.ts} +186 -8
  236. package/dist/{index-CG9rA8H8.d.ts → index-C_qlBJ3k.d.ts} +2 -2
  237. package/dist/{index-3p_oWttZ.d.ts → index-Cagz4Z2k.d.ts} +1 -1
  238. package/dist/{index-ByF22_C6.d.ts → index-CbUCGMqj.d.ts} +3 -3
  239. package/dist/{index-C4sjewrr.d.ts → index-D01wHGSN.d.ts} +11 -11
  240. package/dist/{index-iRkFvJ7J.d.ts → index-D1ckLbUM.d.ts} +1 -1
  241. package/dist/{index-CdMZQCYR.d.ts → index-DOHx3JuB.d.ts} +4 -4
  242. package/dist/index.d.ts +2 -2
  243. package/dist/{instances-CK0jR3Pc.js → instances-qz2MCMyK.js} +111 -11
  244. package/dist/{kit-CVgQCIBO.d.ts → kit-Dxx3MT8m.d.ts} +3 -3
  245. package/dist/list/index.d.ts +1 -1
  246. package/dist/{list-query-XYfUZb0j.d.ts → list-query-XHoYDlRN.d.ts} +1 -1
  247. package/dist/mapper/bin.js +6 -6
  248. package/dist/mcp/index.d.ts +5 -5
  249. package/dist/mcp/sdk/index.d.ts +5 -5
  250. package/dist/nestjs/index.d.ts +2 -2
  251. package/dist/next/client/index.d.ts +1 -1
  252. package/dist/next/index.d.ts +21 -21
  253. package/dist/node/index.d.ts +2 -2
  254. package/dist/{operations-DC3wU3Sy.d.ts → operations-CPhOcuzl.d.ts} +1 -1
  255. package/dist/{options-fMxhtuVR.js → options-BJtdsK7b.js} +4 -1
  256. package/dist/options-BOGo1qCA.js +13 -0
  257. package/dist/options-BSsYXjhC.js +9 -0
  258. package/dist/options-C4LuqmdG.js +15 -0
  259. package/dist/{options-DhdazgTZ.js → options-eTepQ1rZ.js} +4 -1
  260. package/dist/{options-BfFC4iFE.js → options-jsOCvLUz.js} +3 -1
  261. package/dist/orpc/index.d.ts +7 -7
  262. package/dist/otel/index.d.ts +1 -1
  263. package/dist/otel/index.js +4 -4
  264. package/dist/{outbox-HxjZTfF6.d.ts → outbox-DxZgoKwp.d.ts} +2 -2
  265. package/dist/{pool-CrtT4dg-.d.ts → pool-wjbAMqc1.d.ts} +1 -1
  266. package/dist/{ports-BbBJVyS0.d.ts → ports-Bw7uxPd_.d.ts} +1 -1
  267. package/dist/postgres/index.d.ts +1 -1
  268. package/dist/powersync/index.d.ts +3 -3
  269. package/dist/preset/index.d.ts +3 -3
  270. package/dist/preset/index.js +3 -3
  271. package/dist/{preset-CS490mYJ.js → preset-BbSWLoXM.js} +2 -2
  272. package/dist/{project-NmP1NdLi.js → project-TN03XDsA.js} +5 -5
  273. package/dist/{provider-CqwEOLCA.d.ts → provider-ClrIplXa.d.ts} +1 -1
  274. package/dist/{push-token-CPJfPFa2.d.ts → push-token-vykw2JXT.d.ts} +1 -1
  275. package/dist/query/index.d.ts +1 -1
  276. package/dist/react/index.d.ts +7 -7
  277. package/dist/react/native/index.d.ts +1 -1
  278. package/dist/react/server.d.ts +8 -8
  279. package/dist/react/session.d.ts +2 -2
  280. package/dist/react-router/index.d.ts +5 -5
  281. package/dist/realtime/index.d.ts +4 -4
  282. package/dist/realtime/index.js +1 -1
  283. package/dist/{record-form-BbZpwsEi.d.ts → record-form-D2-F4IwS.d.ts} +1 -1
  284. package/dist/records/index.d.ts +7 -7
  285. package/dist/{refresh-DT_ICaK-.d.ts → refresh-CCKB1Wa6.d.ts} +1 -1
  286. package/dist/{refusal-OrlI3g4H.d.ts → refusal-D_tklIEb.d.ts} +2 -2
  287. package/dist/{resolve-CXX6DHv3.d.ts → resolve-Bj1qD7Dy.d.ts} +1 -1
  288. package/dist/{resolved-names-DdlJzoMK.js → resolved-names-Dsf28_Dr.js} +1 -1
  289. package/dist/{resource-execute-CUG6xUuh.d.ts → resource-execute-BSTIfp1D.d.ts} +1 -1
  290. package/dist/{resource-types-DjZ91WKA.d.ts → resource-types-D5WEvYtV.d.ts} +2 -2
  291. package/dist/{resources-6Ncdt9XT.d.ts → resources-CsZ7RhZC.d.ts} +1 -1
  292. package/dist/{respond-oZeJ342J.d.ts → respond-BzRG-0qc.d.ts} +1 -1
  293. package/dist/server/index.d.ts +20 -20
  294. package/dist/{server-types-BH6AjDBN.d.ts → server-types-BlDiY-ya.d.ts} +8 -8
  295. package/dist/{session-Y5SSYO2C.d.ts → session-BGP98Rgj.d.ts} +5 -5
  296. package/dist/{session-status-qQLm7jzh.d.ts → session-status-C4t7kbSn.d.ts} +2 -2
  297. package/dist/{sign-in-BAjR49fq.d.ts → sign-in-CAadgm33.d.ts} +2 -2
  298. package/dist/solid/index.d.ts +9 -9
  299. package/dist/solid-start/index.d.ts +5 -5
  300. package/dist/spec/index.d.ts +1 -1
  301. package/dist/sql/index.d.ts +5 -5
  302. package/dist/sql/index.js +5 -5
  303. package/dist/{sql-BMXEHTvr.js → sql-Dg3W1ENk.js} +5113 -1530
  304. package/dist/sqlite/index.d.ts +1 -1
  305. package/dist/ssr/index.d.ts +5 -5
  306. package/dist/storage/index.js +1 -1
  307. package/dist/{subject-readers-8GySC9Z8.d.ts → subject-readers-DJbzlm8a.d.ts} +1 -1
  308. package/dist/subjects-NomQg6Eg.d.ts +131 -0
  309. package/dist/{support-B4ZBVxt3.d.ts → support-D7CMbhRT.d.ts} +4 -4
  310. package/dist/{support-view-BYOgwXsJ.d.ts → support-view-CIDXF3_H.d.ts} +1 -1
  311. package/dist/svelte/index.d.ts +8 -8
  312. package/dist/sveltekit/index.d.ts +6 -6
  313. package/dist/{tags-Cjtcp5cN.d.ts → tags-Dg4Ywmqp.d.ts} +1 -1
  314. package/dist/tanstack-db/index.d.ts +1 -1
  315. package/dist/tanstack-start/index.d.ts +5 -5
  316. package/dist/{tenant-BHvMFNXl.d.ts → tenant-BRmKZ7aq.d.ts} +2 -2
  317. package/dist/testing/index.d.ts +16 -16
  318. package/dist/testing/index.js +2 -2
  319. package/dist/{timeline-CEzj9v1z.d.ts → timeline-Cjl-1hiA.d.ts} +3 -3
  320. package/dist/{topic-gTVjLGTk.d.ts → topic-CpsKVBot.d.ts} +3 -3
  321. package/dist/{topic-DClSoqY7.js → topic-F0FKzJyQ.js} +1 -1
  322. package/dist/{types-yj8VF4oY.d.ts → types-BdaBfYIw.d.ts} +2 -2
  323. package/dist/{types-BC1HLEVx.d.ts → types-CjRwmCRP.d.ts} +2 -2
  324. package/dist/{types-EO2crSX_.d.ts → types-DR1MHh7N.d.ts} +1 -1
  325. package/dist/{vault-O-YlAyHb.d.ts → vault-BghaujrZ.d.ts} +1 -1
  326. package/dist/vercel-connect/index.d.ts +1 -1
  327. package/dist/{verify-B0KLBb3j.d.ts → verify-CI8LgSpv.d.ts} +1 -1
  328. package/dist/{view-DyFdMCqg.d.ts → view-BvNA7EOC.d.ts} +1 -1
  329. package/dist/vue/index.d.ts +9 -9
  330. package/dist/{watch-topic-C6HhbnVz.d.ts → watch-topic-BaMZX139.d.ts} +1 -1
  331. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  332. package/dist/workflow-sdk/index.d.ts +1 -1
  333. package/dist/workflow-sdk/world/index.d.ts +1 -1
  334. package/dist/workflow-sdk/world/index.js +1 -1
  335. package/dist/{workflow-sdk-B3Ss55Fy.d.ts → workflow-sdk-BNsZrcVg.d.ts} +1 -1
  336. package/dist/{workflow-sdk-DELaQEp3.js → workflow-sdk-CE8sEK57.js} +38 -1
  337. package/dist/yjs/index.d.ts +1 -1
  338. package/dist/yjs/index.js +1 -1
  339. package/package.json +1 -1
  340. package/schemas/config-v1.json +217 -1
  341. package/dist/cli/add-w_HumDPX.js +0 -1
  342. package/dist/cli/powersync-Vmhw5c1N.js +0 -1
  343. package/dist/cli/seed-CXJvTU5D.js +0 -1
  344. package/dist/options-C1-pwEqm.js +0 -5
  345. package/dist/options-CTv-xmbA.js +0 -5
  346. package/dist/options-ChiL-4ZS.js +0 -8
  347. package/dist/subjects-DvmQeF_F.d.ts +0 -79
@@ -3,9 +3,9 @@ import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from ".
3
3
  import { t as StandardSchemaV1$1 } from "./standard-DBV730sF.js";
4
4
  import { r as FieldsOf } from "./block-fields-BE7pInWZ.js";
5
5
  import { $ as RecordRef } from "./types-DFdg_4yN.js";
6
- import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching, o as EventHub, wt as MergedEventMap, xt as EventMapOf } from "./events-vcqenSYU.js";
6
+ import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching, o as EventHub, wt as MergedEventMap, xt as EventMapOf } from "./events-Cc9DDQWH.js";
7
7
  import { n as Logger } from "./logger-DWVYUmwi.js";
8
- import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-CqwEOLCA.js";
8
+ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-ClrIplXa.js";
9
9
  import { a as BlockTenantOptions, n as BlockOptions, r as BlockTemporalOptions } from "./block-helpers-CRpAHrp_.js";
10
10
  import { r as DbTransportSource, t as BlockTransport } from "./block-transport-DWZSJrwN.js";
11
11
  import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-DZN2w69m.js";
@@ -13,10 +13,10 @@ import { f as AiFiles, y as UploadClaimStorage } from "./types-Dr9wZgNy.js";
13
13
  import { g as JobHandler } from "./types-Czq9Xtpa.js";
14
14
  import { t as BlockOptionsSchema } from "./options-BTmaRzx2.js";
15
15
  import { t as Author } from "./block-authors-DzXLUiIq.js";
16
- import { d as BlockInstanceSurface } from "./define-Lf6rI2QN.js";
16
+ import { d as BlockInstanceSurface } from "./define-BLP6XtoL.js";
17
17
  import { A as TtlPreset, C as TransformOptions, j as StorageApi, l as ImageTransform } from "./bucket-vc-QRrva.js";
18
18
  import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec } from "./table-schema-BlF6k62Q.js";
19
- import { i as EventSink } from "./cloud-event-CzZTJkXv.js";
19
+ import { i as EventSink } from "./cloud-event-DcJwder2.js";
20
20
  import { g as Workflows } from "./workflows-B0ZPAQu0.js";
21
21
  import { StandardSchemaV1 } from "@standard-schema/spec";
22
22
  //#region src/core/entity-naming.d.ts
@@ -2,17 +2,17 @@ import { f as Result } from "../result-DZeA5KS6.js";
2
2
  import { t as StandardSchemaV1 } from "../standard-DBV730sF.js";
3
3
  import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
4
4
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
5
- import { t as BetterSupabase } from "../define-Lf6rI2QN.js";
6
- import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BH6AjDBN.js";
7
- import { t as AuthSession } from "../view-DyFdMCqg.js";
8
- import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
9
- import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
5
+ import { t as BetterSupabase } from "../define-BLP6XtoL.js";
6
+ import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BlDiY-ya.js";
7
+ import { t as AuthSession } from "../view-BvNA7EOC.js";
8
+ import { i as MiddlewareOptions, r as GuardOptions } from "../respond-BzRG-0qc.js";
9
+ import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-Dxx3MT8m.js";
10
10
  import { n as FunctionContract, t as DescribedFunction } from "../function-contract-DxFNOmsm.js";
11
11
  import { t as Validated } from "../shared-CRRfQAKG.js";
12
12
  import { n as SUPABASE_CORS_HEADERS, r as corsConfig, t as CorsOptions } from "../cors-kLq6VM06.js";
13
- import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-DjZ91WKA.js";
14
- import { t as ResourceMap } from "../resources-6Ncdt9XT.js";
15
- import { t as defineAction } from "../resource-execute-CUG6xUuh.js";
13
+ import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-D5WEvYtV.js";
14
+ import { t as ResourceMap } from "../resources-CsZ7RhZC.js";
15
+ import { t as defineAction } from "../resource-execute-BSTIfp1D.js";
16
16
  import { AnyEntry, Contributions } from "@supabase/middleware";
17
17
  //#region src/bridges/edge.d.ts
18
18
  /** The platform context Workers pass as the third `fetch` argument. */
@@ -1,4 +1,4 @@
1
- import { n as RouteGuardOptions } from "../refusal-OrlI3g4H.js";
1
+ import { n as RouteGuardOptions } from "../refusal-D_tklIEb.js";
2
2
  import { t as Validated } from "../shared-CRRfQAKG.js";
3
3
  import { AnyEntry, Contributions } from "@supabase/middleware";
4
4
  //#region src/bridges/elysia.d.ts
@@ -1,5 +1,5 @@
1
1
  import { Ft as RequestContext } from "./types-DFdg_4yN.js";
2
- import { d as CookieOptions, r as AuthState } from "./resolve-CXX6DHv3.js";
2
+ import { d as CookieOptions, r as AuthState } from "./resolve-Bj1qD7Dy.js";
3
3
  //#region src/auth/context.d.ts
4
4
  /** The repository context (`actor`, `claims`) for an auth state. */
5
5
  declare function authContext(auth: AuthState): RequestContext;
@@ -1,5 +1,5 @@
1
- import { t as AuthSnapshot } from "./bind-CFsctoFJ.js";
2
- import { t as AuthSession } from "./view-DyFdMCqg.js";
1
+ import { t as AuthSnapshot } from "./bind-vKDmdu_4.js";
2
+ import { t as AuthSession } from "./view-BvNA7EOC.js";
3
3
  //#region src/auth/entitlements.d.ts
4
4
  /**
5
5
  * One entry of the `memberships` claim when a hook writes it as a list. Hooks
@@ -1,5 +1,5 @@
1
- import { a as ResolveAuthOptions, r as AuthState } from "../resolve-CXX6DHv3.js";
2
- import { i as CredentialRef, r as CredentialProvider } from "../provider-CqwEOLCA.js";
1
+ import { a as ResolveAuthOptions, r as AuthState } from "../resolve-Bj1qD7Dy.js";
2
+ import { i as CredentialRef, r as CredentialProvider } from "../provider-ClrIplXa.js";
3
3
  import { i as AiChat } from "../ai-chat-BCaKsvLW.js";
4
4
  import { a as Inbox } from "../inbox-NDKwSk_H.js";
5
5
  import { a as EveMemoryToolsContext, c as MemoryDocumentConflictError, d as supabaseDocumentBackend, f as supabaseMemory, i as EveMemoryTool, l as SupabaseDocumentBackendOptions, m as EveSessionContext, n as EveMemoryContext, o as EveRecallMessage, p as EveSessionAuth, r as EveMemoryProvider, s as EveRecallResult, t as EveDocumentBackend, u as SupabaseMemoryOptions } from "../eve-B7jxYPCw.js";
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { f as CalendarEvent, p as CalendarOccurrence } from "./availability-vguUvEK2.js";
2
+ import { f as CalendarEvent, p as CalendarOccurrence } from "./availability-BdeKCHpl.js";
3
3
  //#region src/blocks/calendar/event-calendar.d.ts
4
4
  /**
5
5
  * The event shape of a headless event calendar such as ReUI's Event Calendar
@@ -1,4 +1,4 @@
1
- import { $ as SaasEventData, A as CollaborationEventData, B as FormEventData, C as BillingEventData, Ct as Events, D as BlockEventPattern, Dt as mergeEvents, E as BlockEventMeta, Et as event, F as DataExportEventData, G as InviteCodeEventData, H as InboxEventData, J as NotificationEventData, K as LegalHoldEventData, M as CommerceSubjectEventData, N as ConnectorEventData, O as BlockEventType, P as CredentialEventData, Q as PushDeviceEventData, S as BLOCK_EVENT_RENAMES, St as EventSpec, T as BlockEvent, Tt as defineEvents, U as IncomingWebhookEventData, V as FormSubmissionEventData, W as InvitationEventData, X as OrganizationDomainEventData, Y as OrganizationDeletionEventData, Z as OrganizationEventData, _ as AnnouncementEventData, _t as WorkflowRunEventData, at as SsoProviderEventData, b as AuditRevealEventData, bt as EventMap, ct as SubjectEventType, dt as TemplateEventData, et as SaasSubjectEventData, ft as TimeEntryEventData, g as AiToolEventData, gt as WorkflowEventData, h as AiProviderKeyEventData, ht as WebhookEventData, it as SignatureEventData, j as CommerceEventData, k as BlockEventsMatching, lt as SupportEventData, m as AiChatEventData, mt as WaitlistEventData, nt as ScimEventData, ot as StorageObjectEventData, p as AgentEventData, pt as TimesheetEventData, q as NotificationDeliveryEventData, rt as SettingEventData, st as SubjectEventData, tt as SchedulingEventData, ut as TemplateApplicationEventData, v as ApiKeyEventData, vt as blockEventAttributes, w as BlockEmit, wt as MergedEventMap, x as BLOCK_ATTRIBUTES, xt as EventMapOf, y as AttachmentEventData, yt as emitBlockEvent, z as FlagEventData } from "../events-vcqenSYU.js";
2
- import { A as PartyEventData, C as ForecastSnapshotEventData, D as MailMessageEventData, E as MailAccountEventData, F as SegmentEventData, I as SegmentMemberEventData, L as SlaEventData, M as PipelineStageEventData, N as QuoteEventData, O as MailTrackingEventData, P as SavedItemEventData, R as WorkItemEventData, S as EnrichmentEventData, T as JobEventData, a as RowEventData, b as EngagementEventData, c as httpSink, d as toHttp, f as ApplicationEventData, g as CollectionEventData, h as CollectionEntryEventData, i as ROW_EVENT_TYPES, j as PipelineEventData, l as isCloudEvent, n as HttpMode, o as forwardMutations, p as AssignmentEventData, r as HttpSinkOptions, s as fromHttp, t as ForwardOptions, u as toCloudEvents, v as DealEventData, w as InvoiceEventData, x as EngagementRecordingEventData, y as EmployeeEventData, z as onBlockEvent } from "../index-CG9rA8H8.js";
3
- import { a as ForwardBlockOptions, i as EventSink, n as CloudEventOptions, o as blockCloudEvent, r as DataschemaContext, s as forwardBlockEvents, t as CloudEvent } from "../cloud-event-CzZTJkXv.js";
1
+ import { $ as SaasEventData, A as CollaborationEventData, B as FormEventData, C as BillingEventData, Ct as Events, D as BlockEventPattern, Dt as mergeEvents, E as BlockEventMeta, Et as event, F as DataExportEventData, G as InviteCodeEventData, H as InboxEventData, J as NotificationEventData, K as LegalHoldEventData, M as CommerceSubjectEventData, N as ConnectorEventData, O as BlockEventType, P as CredentialEventData, Q as PushDeviceEventData, S as BLOCK_EVENT_RENAMES, St as EventSpec, T as BlockEvent, Tt as defineEvents, U as IncomingWebhookEventData, V as FormSubmissionEventData, W as InvitationEventData, X as OrganizationDomainEventData, Y as OrganizationDeletionEventData, Z as OrganizationEventData, _ as AnnouncementEventData, _t as WorkflowRunEventData, at as SsoProviderEventData, b as AuditRevealEventData, bt as EventMap, ct as SubjectEventType, dt as TemplateEventData, et as SaasSubjectEventData, ft as TimeEntryEventData, g as AiToolEventData, gt as WorkflowEventData, h as AiProviderKeyEventData, ht as WebhookEventData, it as SignatureEventData, j as CommerceEventData, k as BlockEventsMatching, lt as SupportEventData, m as AiChatEventData, mt as WaitlistEventData, nt as ScimEventData, ot as StorageObjectEventData, p as AgentEventData, pt as TimesheetEventData, q as NotificationDeliveryEventData, rt as SettingEventData, st as SubjectEventData, tt as SchedulingEventData, ut as TemplateApplicationEventData, v as ApiKeyEventData, vt as blockEventAttributes, w as BlockEmit, wt as MergedEventMap, x as BLOCK_ATTRIBUTES, xt as EventMapOf, y as AttachmentEventData, yt as emitBlockEvent, z as FlagEventData } from "../events-Cc9DDQWH.js";
2
+ import { A as PartyEventData, C as ForecastSnapshotEventData, D as MailMessageEventData, E as MailAccountEventData, F as SegmentEventData, I as SegmentMemberEventData, L as SlaEventData, M as PipelineStageEventData, N as QuoteEventData, O as MailTrackingEventData, P as SavedItemEventData, R as WorkItemEventData, S as EnrichmentEventData, T as JobEventData, a as RowEventData, b as EngagementEventData, c as httpSink, d as toHttp, f as ApplicationEventData, g as CollectionEventData, h as CollectionEntryEventData, i as ROW_EVENT_TYPES, j as PipelineEventData, l as isCloudEvent, n as HttpMode, o as forwardMutations, p as AssignmentEventData, r as HttpSinkOptions, s as fromHttp, t as ForwardOptions, u as toCloudEvents, v as DealEventData, w as InvoiceEventData, x as EngagementRecordingEventData, y as EmployeeEventData, z as onBlockEvent } from "../index-C_qlBJ3k.js";
3
+ import { a as ForwardBlockOptions, i as EventSink, n as CloudEventOptions, o as blockCloudEvent, r as DataschemaContext, s as forwardBlockEvents, t as CloudEvent } from "../cloud-event-DcJwder2.js";
4
4
  export { type AgentEventData, type AiChatEventData, type AiProviderKeyEventData, type AiToolEventData, type AnnouncementEventData, type ApiKeyEventData, type ApplicationEventData, type AssignmentEventData, type AttachmentEventData, type AuditRevealEventData, BLOCK_ATTRIBUTES, BLOCK_EVENT_RENAMES, type BillingEventData, type BlockEmit, type BlockEvent, type BlockEventMeta, type BlockEventPattern, type BlockEventType, type BlockEventsMatching, type CloudEvent, type CloudEventOptions, type CollaborationEventData, type CollectionEntryEventData, type CollectionEventData, type CommerceEventData, type CommerceSubjectEventData, type ConnectorEventData, type CredentialEventData, type DataExportEventData, type DataschemaContext, type DealEventData, type EmployeeEventData, type EngagementEventData, type EngagementRecordingEventData, type EnrichmentEventData, type EventMap, type EventMapOf, type EventSink, type EventSpec, type Events, type FlagEventData, type ForecastSnapshotEventData, type FormEventData, type FormSubmissionEventData, type ForwardBlockOptions, ForwardOptions, HttpMode, HttpSinkOptions, type InboxEventData, type IncomingWebhookEventData, type InvitationEventData, type InviteCodeEventData, type InvoiceEventData, type JobEventData, type LegalHoldEventData, type MailAccountEventData, type MailMessageEventData, type MailTrackingEventData, type MergedEventMap, type NotificationDeliveryEventData, type NotificationEventData, type OrganizationDeletionEventData, type OrganizationDomainEventData, type OrganizationEventData, type PartyEventData, type PipelineEventData, type PipelineStageEventData, type PushDeviceEventData, type QuoteEventData, ROW_EVENT_TYPES, RowEventData, type SaasEventData, type SaasSubjectEventData, type SavedItemEventData, type SchedulingEventData, type ScimEventData, type SegmentEventData, type SegmentMemberEventData, type SettingEventData, type SignatureEventData, type SlaEventData, type SsoProviderEventData, type StorageObjectEventData, type SubjectEventData, type SubjectEventType, type SupportEventData, type TemplateApplicationEventData, type TemplateEventData, type TimeEntryEventData, type TimesheetEventData, type WaitlistEventData, type WebhookEventData, type WorkItemEventData, type WorkflowEventData, type WorkflowRunEventData, blockCloudEvent, blockEventAttributes, defineEvents, emitBlockEvent, event, forwardBlockEvents, forwardMutations, fromHttp, httpSink, isCloudEvent, mergeEvents, onBlockEvent, toCloudEvents, toHttp };
@@ -653,6 +653,7 @@ interface TimeEntryEventData {
653
653
  /** The time entry. */
654
654
  readonly id: string;
655
655
  readonly userId: string;
656
+ readonly employeeId?: string;
656
657
  readonly subjectType: string | null;
657
658
  readonly subjectId: string | null;
658
659
  /** When the entry starts, the time metrics bucket its seconds by. */
@@ -673,6 +674,7 @@ interface TimesheetEventData {
673
674
  /** The timesheet. */
674
675
  readonly id: string;
675
676
  readonly userId: string;
677
+ readonly employeeId?: string;
676
678
  /** The Monday the week starts on, as `YYYY-MM-DD`. */
677
679
  readonly week: string;
678
680
  readonly approvalId: string | null;
@@ -1,4 +1,4 @@
1
- import { L as WorkflowGraph } from "./types-yj8VF4oY.js";
1
+ import { L as WorkflowGraph } from "./types-BdaBfYIw.js";
2
2
  //#region src/blocks/workflow-editor/executor.d.ts
3
3
  /** The record a run belongs to. */
4
4
  interface GraphSubject {
@@ -1,7 +1,7 @@
1
1
  import { E as RawDbError, b as DbError, f as Result } from "./result-DZeA5KS6.js";
2
2
  import { Bt as Executor, O as AnyFunctions, dt as TableMeta, k as AnyModels, m as Operation, ut as TableKey } from "./types-DFdg_4yN.js";
3
- import { mt as QuerySpec, t as BetterSupabase } from "./define-Lf6rI2QN.js";
4
- import { i as ListDefinition } from "./list-query-XYfUZb0j.js";
3
+ import { mt as QuerySpec, t as BetterSupabase } from "./define-BLP6XtoL.js";
4
+ import { i as ListDefinition } from "./list-query-XHoYDlRN.js";
5
5
  import { t as Compiler } from "./compiler-D3UmE7ao.js";
6
6
  //#region src/compile/sqlite.d.ts
7
7
  /** A value SQLite binds: booleans become `0`/`1`, objects JSON text. */
@@ -1,7 +1,7 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
2
- import { t as BetterSupabase } from "../define-Lf6rI2QN.js";
3
- import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-BH6AjDBN.js";
4
- import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
2
+ import { t as BetterSupabase } from "../define-BLP6XtoL.js";
3
+ import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-BlDiY-ya.js";
4
+ import { i as MiddlewareOptions, r as GuardOptions } from "../respond-BzRG-0qc.js";
5
5
  import { t as Validated } from "../shared-CRRfQAKG.js";
6
6
  import { AnyEntry, Contributions } from "@supabase/middleware";
7
7
  import { ImmutableRequest, MiddlewareFunction } from "expo-server";
@@ -1,14 +1,14 @@
1
1
  import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
2
- import { o as EventHub } from "./events-vcqenSYU.js";
2
+ import { o as EventHub } from "./events-Cc9DDQWH.js";
3
3
  import { o as BlockTenant } from "./block-helpers-CRpAHrp_.js";
4
- import { mt as QuerySpec } from "./define-Lf6rI2QN.js";
4
+ import { mt as QuerySpec } from "./define-BLP6XtoL.js";
5
5
  import { tt as TemplateValues } from "./bucket-vc-QRrva.js";
6
6
  import { n as DataEngine } from "./data-engine-BWoz9lED.js";
7
- import { Dn as GeneratedBlocks } from "./define-block-DCAiOrNX.js";
8
- import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-gTVjLGTk.js";
9
- import { t as ClientPorts } from "./ports-BbBJVyS0.js";
10
- import { a as ClientAuth } from "./bind-CFsctoFJ.js";
11
- import { a as LiveSource, r as LiveCountSeed } from "./index-ByF22_C6.js";
7
+ import { Dn as GeneratedBlocks } from "./define-block-DibVN37N.js";
8
+ import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-CpsKVBot.js";
9
+ import { t as ClientPorts } from "./ports-Bw7uxPd_.js";
10
+ import { a as ClientAuth } from "./bind-vKDmdu_4.js";
11
+ import { a as LiveSource, r as LiveCountSeed } from "./index-CbUCGMqj.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
14
14
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,10 +1,10 @@
1
1
  import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
2
- import { O as SessionSnapshot, c as ServerOptions } from "./server-types-BH6AjDBN.js";
3
- import { t as AuthSession } from "./view-DyFdMCqg.js";
4
- import { n as SessionEntryConfig } from "./session-Y5SSYO2C.js";
5
- import { n as BetterSupabaseContributions } from "./composite-ChzHhSB0.js";
6
- import { c as ResourceLoaderContext } from "./kit-CVgQCIBO.js";
7
- import { t as RefusalRedirects } from "./refusal-OrlI3g4H.js";
2
+ import { O as SessionSnapshot, c as ServerOptions } from "./server-types-BlDiY-ya.js";
3
+ import { t as AuthSession } from "./view-BvNA7EOC.js";
4
+ import { n as SessionEntryConfig } from "./session-BGP98Rgj.js";
5
+ import { n as BetterSupabaseContributions } from "./composite-CWJvZgni.js";
6
+ import { c as ResourceLoaderContext } from "./kit-Dxx3MT8m.js";
7
+ import { t as RefusalRedirects } from "./refusal-D_tklIEb.js";
8
8
  //#region src/server/framework.d.ts
9
9
  /**
10
10
  * What the framework factories (`createSvelteKit`, `createReactRouter`,
@@ -1,4 +1,4 @@
1
- import { n as RouteGuardOptions } from "../refusal-OrlI3g4H.js";
1
+ import { n as RouteGuardOptions } from "../refusal-D_tklIEb.js";
2
2
  import { t as Validated } from "../shared-CRRfQAKG.js";
3
3
  import { AnyEntry, Contributions } from "@supabase/middleware";
4
4
  //#region src/bridges/h3.d.ts
@@ -1,4 +1,4 @@
1
- import { n as RouteGuardOptions } from "../../refusal-OrlI3g4H.js";
1
+ import { n as RouteGuardOptions } from "../../refusal-D_tklIEb.js";
2
2
  import { t as Validated } from "../../shared-CRRfQAKG.js";
3
3
  import { n as NodeRequestHead, t as NodeHeaderTarget } from "../../node-headers-BPtMP4_V.js";
4
4
  import { AnyEntry, Contributions } from "@supabase/middleware";
@@ -1,14 +1,14 @@
1
1
  import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
2
- import { r as AuthState } from "../resolve-CXX6DHv3.js";
2
+ import { r as AuthState } from "../resolve-Bj1qD7Dy.js";
3
3
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
4
- import { t as BetterSupabase } from "../define-Lf6rI2QN.js";
5
- import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-BH6AjDBN.js";
6
- import { t as AuthSession } from "../view-DyFdMCqg.js";
7
- import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
8
- import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
4
+ import { t as BetterSupabase } from "../define-BLP6XtoL.js";
5
+ import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-BlDiY-ya.js";
6
+ import { t as AuthSession } from "../view-BvNA7EOC.js";
7
+ import { i as MiddlewareOptions, r as GuardOptions } from "../respond-BzRG-0qc.js";
8
+ import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-Dxx3MT8m.js";
9
9
  import { t as CorsOptions } from "../cors-kLq6VM06.js";
10
- import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-DjZ91WKA.js";
11
- import { t as defineAction } from "../resource-execute-CUG6xUuh.js";
10
+ import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-D5WEvYtV.js";
11
+ import { t as defineAction } from "../resource-execute-BSTIfp1D.js";
12
12
  import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-Bztf32cl.js";
13
13
  import { AnyEntry, Contributions, ValidateEntries } from "@supabase/middleware";
14
14
  import { Context, ErrorHandler, Hono, MiddlewareHandler } from "hono";
@@ -2,10 +2,10 @@
2
2
  import { n as DbException } from "./escape-like-PReMbEEU.js";
3
3
  import { f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
4
4
  import { $ as RecordRef, K as Insert, O as AnyFunctions, Z as PrimaryKeyValue, ht as Update, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
5
- import { o as EventHub } from "./events-vcqenSYU.js";
6
- import { A as OffsetPageArgs, At as GetArgs, B as Returned, C as FindExt, Ct as AggregateResult, G as UpsertArgs, Ot as CountArgs, Pt as ListArgs, Qt as CacheAdapter, S as DeleteExt, Vt as Payload, W as UpdateArgs, _ as CursorPage, bt as AggregateArgs, j as OffsetRangeArgs, k as OffsetPage, mt as QuerySpec, pt as InferResult, q as WriteArgs, t as BetterSupabase, v as CursorPageArgs, w as GetKey, x as DeleteArgs, y as Db } from "./define-Lf6rI2QN.js";
5
+ import { o as EventHub } from "./events-Cc9DDQWH.js";
6
+ import { A as OffsetPageArgs, At as GetArgs, B as Returned, C as FindExt, Ct as AggregateResult, G as UpsertArgs, Ot as CountArgs, Pt as ListArgs, Qt as CacheAdapter, S as DeleteExt, Vt as Payload, W as UpdateArgs, _ as CursorPage, bt as AggregateArgs, j as OffsetRangeArgs, k as OffsetPage, mt as QuerySpec, pt as InferResult, q as WriteArgs, t as BetterSupabase, v as CursorPageArgs, w as GetKey, x as DeleteArgs, y as Db } from "./define-BLP6XtoL.js";
7
7
  import { n as DataEngine, r as DataEngineOptions } from "./data-engine-BWoz9lED.js";
8
- import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-DCAiOrNX.js";
8
+ import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-DibVN37N.js";
9
9
  import { t as BetterQueryMeta } from "./invalidate-DMp4eqfF.js";
10
10
  import { DataTag, InfiniteData, QueryClient, SkipToken } from "@tanstack/query-core";
11
11
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,8 +1,8 @@
1
1
  import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
2
- import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-DhoA7dsD.js";
3
- import { nt as ReadSet } from "./define-Lf6rI2QN.js";
4
- import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-DEisra3V.js";
5
- import { t as SubjectConfig } from "./subjects-DvmQeF_F.js";
2
+ import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-BJV2i8xB.js";
3
+ import { nt as ReadSet } from "./define-BLP6XtoL.js";
4
+ import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-BJoHD20l.js";
5
+ import { t as SubjectConfig } from "./subjects-NomQg6Eg.js";
6
6
  //#region src/sql/render.d.ts
7
7
  /** A module's SQL for `layout`, without header; `undefined` in custom mode. */
8
8
  declare function moduleBody(name: string, layout?: BlockSqlLayout): string | undefined;
@@ -542,17 +542,17 @@ declare const scopePolicyName: (table: {
542
542
  declare const TENANT_SCOPE_POLICY = "bsb_tenant_scope";
543
543
  //#endregion
544
544
  //#region src/sql/policy-cover.d.ts
545
- type PolicyCommand = "select" | "insert" | "update" | "delete";
545
+ type PolicyCommand$1 = "select" | "insert" | "update" | "delete";
546
546
  /**
547
547
  * The commands `block` grants beyond the app's permissive policies: the app has
548
548
  * a policy for the command and none of them covers the block's. A command the
549
549
  * app has no policy for is the block's to grant.
550
550
  */
551
- declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand[];
551
+ declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand$1[];
552
552
  declare function appTablePolicyNotes(sql: string): {
553
553
  readonly table: string;
554
554
  readonly policy: string;
555
- readonly commands: readonly PolicyCommand[];
555
+ readonly commands: readonly PolicyCommand$1[];
556
556
  }[];
557
557
  /**
558
558
  * The policies `sources` leave on each `schema.table` in `schemas`, in order: a
@@ -563,4 +563,182 @@ declare function declaredPolicies(sources: readonly {
563
563
  readonly text: string;
564
564
  }[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
565
565
  //#endregion
566
- export { BlockSqlPermissionKey as $, tenantsQuery as A, AdoptedView as B, declaredUpdatedAtTriggers as C, moduleBody as Ct, rlsTables as D, policyGrants as E, SECRET_COLUMNS as F, APP_TABLES_MARKER as G, adoptedTables as H, dataExportPlan as I, DEFAULT_ROLES as J, APP_TABLES_MODULE as K, excludedColumns as L, sameTenantColumn as M, sameTenantTrigger as N, subjectColumns as O, DataExportPlan as P, BlockSqlExtension as Q, resolveExposeColumns as R, declaredTables as S, customContracts as St, extensionSchema as T, renderBlocks as Tt, adoptedViews as U, adoptedColumnProblems as V, moduleWritesText as W, SQL_MODULES as X, instanceFunctions as Y, resolveBlocks as Z, templateFunctions as _, BlockSqlUpgradePlan as _t, scopePolicyName as a, isModuleDataFile as at, declaredColumnTypes as b, upgradePlan as bt, compileReadSet as c, moduleDataDir as ct, MigrationOptionUse as d, EntityRenameStep as dt, moduleEventTriggers as et, migrationOptionUses as f, entityRenamePlan as ft, scopeProblems as g, renamedBlock as gt, resolveProviderSql as h, formerBlockName as ht, TENANT_SCOPE_POLICY as i, blockFileState as it, expiredFlagsQuery as j, TenantQuery as k, compileReadSets as l, moduleFilePaths as lt, SCOPE_ID_TYPES as m, currentBlockName as mt, declaredPolicies as n, modulePermissionKeys as nt, hasColumnAccess as o, moduleFileVersion as ot, moduleLayout as p, BLOCK_RENAMES as pt, appTablesFiles as q, widenedCommands as r, moduleSchemaExtensions as rt, CompiledReadSet as s, sameBlockFile as st, appTablePolicyNotes as t, moduleHidingColumns as tt, sharedRolesProblems as u, EntityRenamePlan as ut, DeclaredView as v, InstalledBlock as vt, declaredViews as w, moduleTopics as wt, declaredTableColumns as x, BlockSqlTopic as xt, PolicyGrant as y, moduleDeprecations as yt, AdoptedTable as z };
566
+ //#region src/sql/policy.d.ts
567
+ /** A command a policy applies to. */
568
+ type PolicyCommand = "all" | "select" | "insert" | "update" | "delete";
569
+ /**
570
+ * One row level security policy (ADR 0103). `table` is `schema.table`,
571
+ * unquoted; a name without a schema is in `public`. `roles` lists the roles it
572
+ * applies to, `["public"]` when the statement names none.
573
+ */
574
+ interface Policy {
575
+ readonly table: string;
576
+ readonly name: string;
577
+ readonly command: PolicyCommand;
578
+ readonly roles: readonly string[];
579
+ readonly permissive: boolean;
580
+ readonly using: string | null;
581
+ readonly check: string | null;
582
+ }
583
+ /** What `policy()` takes: only the table and the name are required. */
584
+ interface PolicyInput {
585
+ readonly table: string;
586
+ readonly name: string;
587
+ readonly command?: PolicyCommand;
588
+ readonly roles?: readonly string[];
589
+ readonly permissive?: boolean;
590
+ readonly using?: string | null;
591
+ readonly check?: string | null;
592
+ }
593
+ /** A policy with the defaults Postgres uses: `for all to public`, permissive. */
594
+ declare function policy(input: PolicyInput): Policy;
595
+ /** The catalog shape of `policy`, without its table. */
596
+ declare function catalogPolicy(entry: Policy): CatalogPolicy;
597
+ interface RenderPolicyOptions {
598
+ /** A `drop policy if exists` line before the `create policy`. */
599
+ readonly drop?: boolean;
600
+ /** The table as the caller writes it, instead of the quoted `schema.table`. */
601
+ readonly target?: string;
602
+ }
603
+ /**
604
+ * The `create policy` statement for `entry`, in the layout the block modules
605
+ * use: the header on one line, then `for`, `using` and `with check` on their
606
+ * own lines, ending with a semicolon.
607
+ */
608
+ declare function renderPolicy(entry: Policy, options?: RenderPolicyOptions): string;
609
+ interface MaskOptions {
610
+ /**
611
+ * `"scan"` leaves the text of dollar-quoted bodies as code, so a scan finds
612
+ * the statements a `do` block or a function runs. Default: they are blanked.
613
+ */
614
+ readonly dollarBodies?: "mask" | "scan";
615
+ }
616
+ /**
617
+ * `sql` with the text of comments, string literals, dollar-quoted bodies and
618
+ * quoted identifiers blanked, so a scan for keywords and parentheses can't
619
+ * match inside them. Offsets stay the same; line breaks stay.
620
+ */
621
+ declare function maskSql(sql: string, options?: MaskOptions): string;
622
+ /** A policy found in a script, with where its statement sits. */
623
+ interface ReadPolicy {
624
+ readonly policy: Policy;
625
+ /** The statement, from `create policy` to its semicolon, as written. */
626
+ readonly statement: string;
627
+ /** The `[start, end)` of the statement in the script. */
628
+ readonly span: readonly [number, number];
629
+ }
630
+ /**
631
+ * Every `create policy` statement of `sql`. Comments, string literals,
632
+ * dollar-quoted bodies and quoted names can't confuse the scan. A statement
633
+ * that isn't a well-formed `create policy` is skipped.
634
+ */
635
+ declare function readPolicies(sql: string): ReadPolicy[];
636
+ /** The policy one `create policy` statement creates. */
637
+ declare function readPolicy(statement: string): Policy | undefined;
638
+ /** A grant of privileges on a table to roles. */
639
+ interface Grant {
640
+ /** `schema.table`, unquoted. */
641
+ readonly table: string;
642
+ readonly roles: readonly string[];
643
+ }
644
+ /** The table grants of `sql`, read past comments, strings and dollar quotes. */
645
+ declare function readGrants(sql: string): Grant[];
646
+ //#endregion
647
+ //#region src/sql/policy-rule.d.ts
648
+ /** A comparison a rule can make against a column. */
649
+ type RuleOperator = "=" | "<>" | "<" | "<=" | ">" | ">=";
650
+ type RuleValue = string | number | boolean;
651
+ /**
652
+ * The policy DSL: a small tree that renders to a policy over the four `bsb.*`
653
+ * functions and reads back from the `@bsb rule` comment.
654
+ */
655
+ type Rule = {
656
+ readonly kind: "public";
657
+ } | {
658
+ readonly kind: "owner";
659
+ readonly column: string;
660
+ } | {
661
+ readonly kind: "member";
662
+ readonly column: string;
663
+ } | {
664
+ readonly kind: "can";
665
+ readonly column: string;
666
+ readonly permission: string;
667
+ } | {
668
+ readonly kind: "compare";
669
+ readonly column: string;
670
+ readonly op: RuleOperator;
671
+ readonly value: RuleValue;
672
+ } | {
673
+ readonly kind: "null";
674
+ readonly column: string;
675
+ readonly isNull: boolean;
676
+ } | {
677
+ readonly kind: "and";
678
+ readonly rules: readonly Rule[];
679
+ } | {
680
+ readonly kind: "or";
681
+ readonly rules: readonly Rule[];
682
+ } | {
683
+ readonly kind: "not";
684
+ readonly rule: Rule;
685
+ };
686
+ /** The only functions a policy may call. */
687
+ declare const POLICY_FUNCTIONS: readonly string[];
688
+ /** The SQL expression a rule renders to. */
689
+ declare function renderRule(rule: Rule): string;
690
+ /** Whether `value` is a well-formed rule tree. */
691
+ declare function isRule(value: unknown): value is Rule;
692
+ /** The input of a policy built from rules. */
693
+ interface RulePolicyInput extends Omit<PolicyInput, "using" | "check"> {
694
+ readonly using?: Rule;
695
+ readonly check?: Rule;
696
+ }
697
+ /** A policy and the rules it was built from. */
698
+ interface RulePolicy {
699
+ readonly policy: Policy;
700
+ readonly using: Rule | null;
701
+ readonly check: Rule | null;
702
+ }
703
+ /** Builds a policy from rule trees. */
704
+ declare function rulePolicy(input: RulePolicyInput): RulePolicy;
705
+ /**
706
+ * The statement for a rule policy, with the `-- @bsb rule` comment that
707
+ * {@link readRulePolicies} reads back.
708
+ */
709
+ declare function renderRulePolicy(built: RulePolicy, options?: {
710
+ readonly drop?: boolean;
711
+ }): string;
712
+ /** A policy that carries a rule comment, with the rules recovered. */
713
+ interface ReadRulePolicy extends RulePolicy {
714
+ /** True when the SQL still renders from the rules, false once hand-edited. */
715
+ readonly inSync: boolean;
716
+ }
717
+ /**
718
+ * Policies in `sql` that carry an `@bsb rule` comment directly above them.
719
+ * `inSync` says whether the policy still matches what its rules render to.
720
+ */
721
+ declare function readRulePolicies(sql: string): ReadRulePolicy[];
722
+ /**
723
+ * The functions a policy calls that are not in {@link POLICY_FUNCTIONS},
724
+ * lowercased and without spaces. An empty list means the policy only uses the
725
+ * `bsb.*` functions.
726
+ */
727
+ declare function disallowedPolicyCalls(built: Policy): string[];
728
+ /** Options for {@link policyFunctionsSql}. */
729
+ interface PolicyFunctionsOptions {
730
+ /** Set-returning function that lists the caller's tenant ids. */
731
+ readonly memberships?: string;
732
+ /** Function `(scope, scope_id, permission)` that answers a permission. */
733
+ readonly permission?: string;
734
+ /** Scope name `bsb.can` passes to the permission function. */
735
+ readonly scope?: string;
736
+ }
737
+ /**
738
+ * The `bsb` schema and the four functions policies may call. `uid` and `owns`
739
+ * are fixed; `is_member` and `can` delegate to the functions named in the
740
+ * options, so a library or your own tables can answer them.
741
+ */
742
+ declare function policyFunctionsSql(options?: PolicyFunctionsOptions): string;
743
+ //#endregion
744
+ export { extensionSchema as $, renderBlocks as $t, declaredPolicies as A, modulePermissionKeys as At, migrationOptionUses as B, entityRenamePlan as Bt, maskSql as C, instanceFunctions as Ct, readPolicy as D, BlockSqlPermissionKey as Dt, readPolicies as E, BlockSqlExtension as Et, CompiledReadSet as F, sameBlockFile as Ft, templateFunctions as G, BlockSqlUpgradePlan as Gt, SCOPE_ID_TYPES as H, currentBlockName as Ht, compileReadSet as I, moduleDataDir as It, declaredColumnTypes as J, upgradePlan as Jt, DeclaredView as K, InstalledBlock as Kt, compileReadSets as L, moduleFilePaths as Lt, TENANT_SCOPE_POLICY as M, blockFileState as Mt, scopePolicyName as N, isModuleDataFile as Nt, renderPolicy as O, moduleEventTriggers as Ot, hasColumnAccess as P, moduleFileVersion as Pt, declaredViews as Q, moduleTopics as Qt, sharedRolesProblems as R, EntityRenamePlan as Rt, catalogPolicy as S, DEFAULT_ROLES as St, readGrants as T, resolveBlocks as Tt, resolveProviderSql as U, formerBlockName as Ut, moduleLayout as V, BLOCK_RENAMES as Vt, scopeProblems as W, renamedBlock as Wt, declaredTables as X, customContracts as Xt, declaredTableColumns as Y, BlockSqlTopic as Yt, declaredUpdatedAtTriggers as Z, moduleBody as Zt, Policy as _, adoptedViews as _t, RuleOperator as a, expiredFlagsQuery as at, ReadPolicy as b, APP_TABLES_MODULE as bt, RuleValue as c, DataExportPlan as ct, policyFunctionsSql as d, excludedColumns as dt, policyGrants as et, readRulePolicies as f, resolveExposeColumns as ft, Grant as g, adoptedTables as gt, rulePolicy as h, adoptedColumnProblems as ht, Rule as i, tenantsQuery as it, widenedCommands as j, moduleSchemaExtensions as jt, appTablePolicyNotes as k, moduleHidingColumns as kt, disallowedPolicyCalls as l, SECRET_COLUMNS as lt, renderRulePolicy as m, AdoptedView as mt, PolicyFunctionsOptions as n, subjectColumns as nt, RulePolicy as o, sameTenantColumn as ot, renderRule as p, AdoptedTable as pt, PolicyGrant as q, moduleDeprecations as qt, ReadRulePolicy as r, TenantQuery as rt, RulePolicyInput as s, sameTenantTrigger as st, POLICY_FUNCTIONS as t, rlsTables as tt, isRule as u, dataExportPlan as ut, PolicyCommand as v, moduleWritesText as vt, policy as w, SQL_MODULES as wt, RenderPolicyOptions as x, appTablesFiles as xt, PolicyInput as y, APP_TABLES_MARKER as yt, MigrationOptionUse as z, EntityRenameStep as zt };
@@ -1,6 +1,6 @@
1
1
  import { d as MutationIntent, ot as SchemaMeta } from "./types-DFdg_4yN.js";
2
- import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, c as MutationNotice, k as BlockEventsMatching, o as EventHub, st as SubjectEventData } from "./events-vcqenSYU.js";
3
- import { i as EventSink, n as CloudEventOptions, t as CloudEvent } from "./cloud-event-CzZTJkXv.js";
2
+ import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, c as MutationNotice, k as BlockEventsMatching, o as EventHub, st as SubjectEventData } from "./events-Cc9DDQWH.js";
3
+ import { i as EventSink, n as CloudEventOptions, t as CloudEvent } from "./cloud-event-DcJwder2.js";
4
4
  //#region src/core/block-event-listener.d.ts
5
5
  /**
6
6
  * Listens to the block events that match `pattern` (`'support.started'` or
@@ -1,4 +1,4 @@
1
- import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, cr as AppColumnType, di as Preset, hr as AppTableConfig, oi as PresetGlueItem, or as AppColumnConfig, ri as PresetCatalog, vt as presetConfig } from "./context-DEisra3V.js";
1
+ import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, cr as AppColumnType, di as Preset, hr as AppTableConfig, oi as PresetGlueItem, or as AppColumnConfig, ri as PresetCatalog, vt as presetConfig } from "./context-BJoHD20l.js";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  //#region src/preset/catalog.generated.d.ts
4
4
  declare const PRESET_CATALOG: PresetCatalog;
@@ -1,9 +1,9 @@
1
1
  import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
2
2
  import { $ as RecordRef, ot as SchemaMeta } from "./types-DFdg_4yN.js";
3
- import { mt as QuerySpec } from "./define-Lf6rI2QN.js";
3
+ import { mt as QuerySpec } from "./define-BLP6XtoL.js";
4
4
  import { t as DataChanges } from "./data-engine-BWoz9lED.js";
5
- import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-gTVjLGTk.js";
6
- import { n as TopicPort } from "./watch-topic-C6HhbnVz.js";
5
+ import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-CpsKVBot.js";
6
+ import { n as TopicPort } from "./watch-topic-BaMZX139.js";
7
7
  import { StandardSchemaV1 } from "@standard-schema/spec";
8
8
  //#region src/realtime/relay.d.ts
9
9
  /** The `EventSource` the relay client reads with; the browser's fits. */
@@ -1,19 +1,19 @@
1
1
  import { b as DbError, f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
2
2
  import { $ as RecordRef } from "./types-DFdg_4yN.js";
3
- import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "./events-vcqenSYU.js";
4
- import { mt as QuerySpec } from "./define-Lf6rI2QN.js";
3
+ import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "./events-Cc9DDQWH.js";
4
+ import { mt as QuerySpec } from "./define-BLP6XtoL.js";
5
5
  import { A as TtlPreset, C as TransformOptions, E as UrlOptions, T as UploadOptions, l as ImageTransform, tt as TemplateValues, w as UploadBody } from "./bucket-vc-QRrva.js";
6
6
  import { m as RejectedChange, o as DataSyncState } from "./data-engine-BWoz9lED.js";
7
- import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-ClvuSZEz.js";
8
- import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-gTVjLGTk.js";
9
- import { t as AuthSnapshot } from "./bind-CFsctoFJ.js";
10
- import { t as AuthSession } from "./view-DyFdMCqg.js";
11
- import { r as LiveCountSeed, v as RelayClientOptions } from "./index-ByF22_C6.js";
12
- import { n as Controller } from "./controller-B6vWdKSa.js";
13
- import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-DBgDCITw.js";
14
- import { t as BlockEnv } from "./block-env-BrUNeuJ_.js";
7
+ import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-BfYDY6eh.js";
8
+ import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-CpsKVBot.js";
9
+ import { t as AuthSnapshot } from "./bind-vKDmdu_4.js";
10
+ import { t as AuthSession } from "./view-BvNA7EOC.js";
11
+ import { r as LiveCountSeed, v as RelayClientOptions } from "./index-CbUCGMqj.js";
12
+ import { n as Controller } from "./controller-CwGXms17.js";
13
+ import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-6BVg31Yp.js";
14
+ import { t as BlockEnv } from "./block-env-wVLz0KMV.js";
15
15
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-CiVa2G-J.js";
16
- import { s as RecordFormValues, t as RecordForm } from "./record-form-BbZpwsEi.js";
16
+ import { s as RecordFormValues, t as RecordForm } from "./record-form-D2-F4IwS.js";
17
17
  import { SupabaseClient } from "@supabase/supabase-js";
18
18
  import { DependencyList, ReactNode, SubmitEvent } from "react";
19
19
  import { QueryClient } from "@tanstack/query-core";
@@ -1,4 +1,4 @@
1
- import { n as RouteGuardOptions } from "./refusal-OrlI3g4H.js";
1
+ import { n as RouteGuardOptions } from "./refusal-D_tklIEb.js";
2
2
  import { t as Validated } from "./shared-CRRfQAKG.js";
3
3
  import { AnyEntry, Contributions } from "@supabase/middleware";
4
4
  import { IncomingMessage, ServerResponse } from "node:http";
@@ -1,10 +1,10 @@
1
1
  import { t as AsyncResult } from "./result-DZeA5KS6.js";
2
2
  import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
3
3
  import { l as PublicEnv } from "./index-NRMMhhEi.js";
4
- import { g as SessionEncoding } from "./resolve-CXX6DHv3.js";
5
- import { t as BetterSupabase } from "./define-Lf6rI2QN.js";
6
- import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-BbBJVyS0.js";
7
- import { i as BindClientOptions, r as BetterClient } from "./bind-CFsctoFJ.js";
4
+ import { g as SessionEncoding } from "./resolve-Bj1qD7Dy.js";
5
+ import { t as BetterSupabase } from "./define-BLP6XtoL.js";
6
+ import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-Bw7uxPd_.js";
7
+ import { i as BindClientOptions, r as BetterClient } from "./bind-vKDmdu_4.js";
8
8
  import { n as FunctionContract } from "./function-contract-DxFNOmsm.js";
9
9
  import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
10
10
  //#region src/client/functions.d.ts
package/dist/index.d.ts CHANGED
@@ -3,10 +3,10 @@ import { n as DbException, t as escapeLike } from "./escape-like-PReMbEEU.js";
3
3
  import { A as isConflict, C as DbErrorMatchers, D as ValidationIssue, E as RawDbError, F as statusOf, M as isForeignKey, N as mapDbError, O as dbError, P as matchDbError, S as DbErrorKinds, T as ErrorMapper, _ as ok, a as BetterResultOk, b as DbError, c as DbErrorClasses, d as Ok, f as Result, g as fromBetterResult, h as err, i as BetterResultErrors, j as isDbError, k as isCheck, l as Err, m as defineBetterResultErrors, n as BetterResultApi, o as BetterResultValue, r as BetterResultErr, s as DbErrorClass, t as AsyncResult, u as MappedDbError, v as toBetterResult, w as DbErrorOf, x as DbErrorKind, y as toDbError } from "./result-DZeA5KS6.js";
4
4
  import { n as validate, t as StandardSchemaV1 } from "./standard-DBV730sF.js";
5
5
  import { $ as RecordRef, A as BucketMeta, At as NoExtension, B as FunctionMeta, Bt as Executor, C as not, Ct as ApplyExtension, D as AccessTopicPolicy, Dt as HasFlag, E as AccessPolicySql, Et as ExtensionsOf, F as Codec, Ft as RequestContext, G as GeneratedColumns, H as FunctionSignature, I as ColumnMeta, It as WithExtension, J as ModelTypes, K as Insert, L as DatabaseOf, Lt as definePlugin, M as Casing, Mt as Plugin, N as CheckConstraint, Nt as RepositoryApi, O as AnyFunctions, Ot as HookArgs, P as ClaimsMeta, Pt as RepositoryExtension, Q as RealtimeTableMeta, R as Flags, Rt as ExecuteContext, S as column, St as AnyPlugin, T as AccessBucketPolicy, Tt as ExtensionOf, U as FunctionTypes, V as FunctionResult, Vt as RpcContext, W as FunctionsOf, X as PrimaryKeyColumn, Y as ModelsOf, Z as PrimaryKeyValue, _ as SelectColumn, a as CountMode, at as Schema, b as UpdateOp, c as Include, ct as SubjectTypeOf, d as MutationIntent, dt as TableMeta, et as RelationMeta, f as MutationKind, ft as UniqueConstraint, g as Quantifier, gt as WritableColumns, h as OrderTerm, ht as Update, i as Condition, it as Row, j as BucketPolicyName, jt as PLUGIN_API_VERSION, k as AnyModels, kt as MutationEvent, l as InsertOp, lt as TableFlags, m as Operation, mt as UniqueWhere, n as Aggregation, nt as Relations, o as DeleteOp, ot as SchemaMeta, p as MutationOp, pt as UniqueKeyName, q as ModelFlags, r as ColumnOp, rt as ResultColumn, s as FunctionSource, st as Simplify, t as AggregateFn, tt as RelationTypes, u as Measure, ut as TableKey, v as SelectOp, w as or, wt as CallOptions, x as and, xt as Actor, y as Selection, z as ForeignKeyConstraint, zt as ExecuteResult } from "./types-DFdg_4yN.js";
6
- import { Ct as Events, O as BlockEventType, T as BlockEvent, a as EventHandler, bt as EventMap, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent } from "./events-vcqenSYU.js";
6
+ import { Ct as Events, O as BlockEventType, T as BlockEvent, a as EventHandler, bt as EventMap, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent } from "./events-Cc9DDQWH.js";
7
7
  import { i as silentLogger, n as Logger, r as consoleLogger, t as LogFields } from "./logger-DWVYUmwi.js";
8
8
  import { a as ProblemFormat, c as fromProblem, d as toProblem, i as ProblemDetails, l as isProblem, n as PROBLEM_CONTENT_TYPE, o as ProblemOptions, r as PROBLEM_TYPE_BASE, s as ProblemResponseOptions, t as BlockProblemOptions, u as problemResponse } from "./problem-DNwN8iGz.js";
9
- import { $ as SearchArgs, $t as CacheTarget, A as OffsetPageArgs, At as GetArgs, B as Returned, Bt as OrderByInput, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, Dt as CountArg, E as ManyResult, Et as ColumnOrderByArg, F as PageOf, Ft as MeasureArg, G as UpsertArgs, Gt as SelectArg, Ht as ReadArgs, It as MeasureKey, J as WriteManyArgs, Jt as WhereArg, K as UpsertManyArgs, Kt as SortDirection, Lt as MutableWhere, Mt as IncludeArgs, Nt as JsonPathOps, Ot as CountArgs, Pt as ListArgs, Q as recordStats, Qt as CacheAdapter, R as Repository, Rt as NumericMeasureArg, S as DeleteExt, St as AggregateOrderByArg, Tt as ColumnOrderBy, U as RpcOptions, Ut as RelationMeasureArg, V as RowFilter, Vt as Payload, W as UpdateArgs, Wt as RequestArgs, X as EMPTY_STATS, Xt as BucketRegistry, Y as DbStats, Yt as WhereInput, Z as StatsRecorder, Zt as BucketsHelper, _ as CursorPage, _t as TableSpecs, a as explainPostgrest, at as ReadSetParamType, b as DbHelpers, bt as AggregateArgs, c as RpcDefinition, ct as ReadSetParams, dt as isReadSet, en as MemoryCache, f as BlocksHelper, ft as readSetTables, g as ConflictTarget, gt as Specs, h as DbOf, ht as ReadMethod, i as PostgrestExecutorOptions, in as rpcCacheTargets, it as ReadSetOptions, j as OffsetRangeArgs, jt as IncludeArg, k as OffsetPage, kt as FieldFilter, l as SupabaseOptions, lt as ReadSetResult, m as DbExtras, mt as QuerySpec, n as defineSupabase, nn as memoryCache, nt as ReadSet, o as postgrestExecutor, ot as ReadSetParamTypes, p as DbBlockSource, pt as InferResult, q as WriteArgs, qt as SortSpec, r as PostgrestClientLike, rn as rowKey, rt as ReadSetAuth, s as ConnectOptions, st as ReadSetParamValue, t as BetterSupabase, tn as cacheTargetOf, tt as InferReadSetParams, u as ApiOptions, ut as defineReadSet, v as CursorPageArgs, vt as isQuerySpec, w as GetKey, wt as AggregateRow, x as DeleteArgs, xt as AggregateOrderBy, y as Db, yt as specTables, z as RepositoryOf, zt as OrderByArg } from "./define-Lf6rI2QN.js";
9
+ import { $ as SearchArgs, $t as CacheTarget, A as OffsetPageArgs, At as GetArgs, B as Returned, Bt as OrderByInput, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, Dt as CountArg, E as ManyResult, Et as ColumnOrderByArg, F as PageOf, Ft as MeasureArg, G as UpsertArgs, Gt as SelectArg, Ht as ReadArgs, It as MeasureKey, J as WriteManyArgs, Jt as WhereArg, K as UpsertManyArgs, Kt as SortDirection, Lt as MutableWhere, Mt as IncludeArgs, Nt as JsonPathOps, Ot as CountArgs, Pt as ListArgs, Q as recordStats, Qt as CacheAdapter, R as Repository, Rt as NumericMeasureArg, S as DeleteExt, St as AggregateOrderByArg, Tt as ColumnOrderBy, U as RpcOptions, Ut as RelationMeasureArg, V as RowFilter, Vt as Payload, W as UpdateArgs, Wt as RequestArgs, X as EMPTY_STATS, Xt as BucketRegistry, Y as DbStats, Yt as WhereInput, Z as StatsRecorder, Zt as BucketsHelper, _ as CursorPage, _t as TableSpecs, a as explainPostgrest, at as ReadSetParamType, b as DbHelpers, bt as AggregateArgs, c as RpcDefinition, ct as ReadSetParams, dt as isReadSet, en as MemoryCache, f as BlocksHelper, ft as readSetTables, g as ConflictTarget, gt as Specs, h as DbOf, ht as ReadMethod, i as PostgrestExecutorOptions, in as rpcCacheTargets, it as ReadSetOptions, j as OffsetRangeArgs, jt as IncludeArg, k as OffsetPage, kt as FieldFilter, l as SupabaseOptions, lt as ReadSetResult, m as DbExtras, mt as QuerySpec, n as defineSupabase, nn as memoryCache, nt as ReadSet, o as postgrestExecutor, ot as ReadSetParamTypes, p as DbBlockSource, pt as InferResult, q as WriteArgs, qt as SortSpec, r as PostgrestClientLike, rn as rowKey, rt as ReadSetAuth, s as ConnectOptions, st as ReadSetParamValue, t as BetterSupabase, tn as cacheTargetOf, tt as InferReadSetParams, u as ApiOptions, ut as defineReadSet, v as CursorPageArgs, vt as isQuerySpec, w as GetKey, wt as AggregateRow, x as DeleteArgs, xt as AggregateOrderBy, y as Db, yt as specTables, z as RepositoryOf, zt as OrderByArg } from "./define-BLP6XtoL.js";
10
10
  import { Q as StoragePath } from "./bucket-vc-QRrva.js";
11
11
  import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-z-T0l23T.js";
12
12
  import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec, r as tableSchema, t as StandardJSONSchemaV1 } from "./table-schema-BlF6k62Q.js";