better-supabase 0.23.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 (321) hide show
  1. package/dist/{ai-schedules-7uQNMXve.d.ts → ai-schedules-yGZH-vQb.d.ts} +1 -1
  2. package/dist/ai-sdk/agents/index.d.ts +2 -2
  3. package/dist/ai-sdk/batches/index.d.ts +1 -1
  4. package/dist/ai-sdk/index.d.ts +1 -1
  5. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  6. package/dist/{api-CHObZL7m.d.ts → api-B1OkIWdx.d.ts} +3 -3
  7. package/dist/{api-keys-D5k63K6y.d.ts → api-keys-ClhKBDcc.d.ts} +1 -1
  8. package/dist/{app-tables-CJO6pWwy.d.ts → app-tables-xij_MI5H.d.ts} +1 -1
  9. package/dist/{approvals-Dh9dUXrN.d.ts → approvals-C5fmPLsH.d.ts} +1 -1
  10. package/dist/astro/index.d.ts +5 -5
  11. package/dist/{authorization-Dtwpjeuz.d.ts → authorization-BJV2i8xB.d.ts} +49 -12
  12. package/dist/{authorization-hooks-D_pwXlBs.d.ts → authorization-hooks-DtzreCAq.d.ts} +1 -1
  13. package/dist/{automations-FCnWy387.js → automations-8L3NEuoq.js} +4 -1
  14. package/dist/{availability-vguUvEK2.d.ts → availability-BdeKCHpl.d.ts} +10 -0
  15. package/dist/better-result/index.d.ts +2 -2
  16. package/dist/{bind-DaoTunvE.d.ts → bind-vKDmdu_4.d.ts} +4 -4
  17. package/dist/{block-env-DUyo2I5O.d.ts → block-env-wVLz0KMV.d.ts} +4 -4
  18. package/dist/blocks/access-requests/index.d.ts +2 -2
  19. package/dist/blocks/activities/index.d.ts +3 -3
  20. package/dist/blocks/agents/index.d.ts +2 -2
  21. package/dist/blocks/ai-cache/index.d.ts +1 -1
  22. package/dist/blocks/ai-chat/index.d.ts +5 -5
  23. package/dist/blocks/ai-files/index.d.ts +1 -1
  24. package/dist/blocks/ai-keys/index.d.ts +3 -3
  25. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  26. package/dist/blocks/announcements/index.d.ts +5 -5
  27. package/dist/blocks/api-keys/index.d.ts +5 -5
  28. package/dist/blocks/approvals/index.d.ts +3 -3
  29. package/dist/blocks/assets/index.d.ts +2 -2
  30. package/dist/blocks/assignment/index.d.ts +3 -3
  31. package/dist/blocks/attachments/index.d.ts +3 -3
  32. package/dist/blocks/audit/index.d.ts +7 -7
  33. package/dist/blocks/automations/index.d.ts +5 -5
  34. package/dist/blocks/billable-time/index.d.ts +2 -2
  35. package/dist/blocks/billing/index.d.ts +5 -5
  36. package/dist/blocks/bookings/index.d.ts +6 -6
  37. package/dist/blocks/bulk/index.d.ts +2 -2
  38. package/dist/blocks/calendar/index.d.ts +46 -13
  39. package/dist/blocks/calendar/index.js +130 -30
  40. package/dist/blocks/catalog/index.d.ts +2 -2
  41. package/dist/blocks/channels/index.d.ts +3 -3
  42. package/dist/blocks/collections/index.d.ts +3 -3
  43. package/dist/blocks/comments/index.d.ts +5 -5
  44. package/dist/blocks/compliance/index.d.ts +2 -2
  45. package/dist/blocks/connectors/index.d.ts +3 -3
  46. package/dist/blocks/contacts/index.d.ts +3 -3
  47. package/dist/blocks/content/index.d.ts +2 -2
  48. package/dist/blocks/contracts/index.d.ts +2 -2
  49. package/dist/blocks/courses/index.d.ts +2 -2
  50. package/dist/blocks/created-by/index.d.ts +1 -1
  51. package/dist/blocks/custom-fields/index.d.ts +2 -2
  52. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  53. package/dist/blocks/deals/index.d.ts +3 -3
  54. package/dist/blocks/dispatch/index.d.ts +2 -2
  55. package/dist/blocks/documents/index.d.ts +2 -2
  56. package/dist/blocks/domains/index.d.ts +2 -2
  57. package/dist/blocks/donations/index.d.ts +2 -2
  58. package/dist/blocks/drive/index.d.ts +3 -3
  59. package/dist/blocks/employees/index.d.ts +21 -6
  60. package/dist/blocks/employees/index.js +37 -2
  61. package/dist/blocks/enrichment/index.d.ts +3 -3
  62. package/dist/blocks/enrollments/index.d.ts +2 -2
  63. package/dist/blocks/entitlements/index.d.ts +3 -3
  64. package/dist/blocks/expenses/index.d.ts +2 -2
  65. package/dist/blocks/field-history/index.d.ts +1 -1
  66. package/dist/blocks/flags/index.d.ts +2 -2
  67. package/dist/blocks/forecasts/index.d.ts +3 -3
  68. package/dist/blocks/forms/index.d.ts +3 -3
  69. package/dist/blocks/goals/index.d.ts +1 -1
  70. package/dist/blocks/guests/index.d.ts +2 -2
  71. package/dist/blocks/hiring/index.d.ts +13 -6
  72. package/dist/blocks/hiring/index.js +15 -4
  73. package/dist/blocks/identities/index.d.ts +2 -2
  74. package/dist/blocks/imports/index.d.ts +2 -2
  75. package/dist/blocks/inbox/index.d.ts +6 -6
  76. package/dist/blocks/incidents/index.d.ts +2 -2
  77. package/dist/blocks/index.d.ts +4 -4
  78. package/dist/blocks/inventory/index.d.ts +2 -2
  79. package/dist/blocks/invoices/index.d.ts +3 -3
  80. package/dist/blocks/knowledge/index.d.ts +1 -1
  81. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  82. package/dist/blocks/leases/index.d.ts +2 -2
  83. package/dist/blocks/leave/index.d.ts +2 -2
  84. package/dist/blocks/ledger/index.d.ts +2 -2
  85. package/dist/blocks/mail-sync/index.d.ts +3 -3
  86. package/dist/blocks/memberships/index.d.ts +1 -1
  87. package/dist/blocks/memory/index.d.ts +1 -1
  88. package/dist/blocks/messaging/index.d.ts +7 -7
  89. package/dist/blocks/metrics/index.d.ts +2 -2
  90. package/dist/blocks/mfa/index.d.ts +2 -2
  91. package/dist/blocks/moderation/index.d.ts +2 -2
  92. package/dist/blocks/notifications/index.d.ts +7 -7
  93. package/dist/blocks/numbering/index.d.ts +2 -2
  94. package/dist/blocks/oauth-server/index.d.ts +2 -2
  95. package/dist/blocks/onboarding/index.d.ts +2 -2
  96. package/dist/blocks/orders/index.d.ts +3 -3
  97. package/dist/blocks/organizations/index.d.ts +4 -4
  98. package/dist/blocks/outbox/index.d.ts +2 -2
  99. package/dist/blocks/passes/index.d.ts +3 -3
  100. package/dist/blocks/permissions/index.d.ts +3 -3
  101. package/dist/blocks/pipelines/index.d.ts +3 -3
  102. package/dist/blocks/posts/index.d.ts +2 -2
  103. package/dist/blocks/profiles/index.d.ts +1 -1
  104. package/dist/blocks/promotions/index.d.ts +2 -2
  105. package/dist/blocks/push/index.d.ts +3 -3
  106. package/dist/blocks/queue/index.d.ts +1 -1
  107. package/dist/blocks/quotes/index.d.ts +3 -3
  108. package/dist/blocks/rank/index.d.ts +1 -1
  109. package/dist/blocks/reactions/index.d.ts +5 -5
  110. package/dist/blocks/relations/index.d.ts +2 -2
  111. package/dist/blocks/reminders/index.d.ts +3 -3
  112. package/dist/blocks/reviews/index.d.ts +2 -2
  113. package/dist/blocks/saved-views/index.d.ts +4 -4
  114. package/dist/blocks/scores/index.d.ts +2 -2
  115. package/dist/blocks/search/index.d.ts +4 -4
  116. package/dist/blocks/security-events/index.d.ts +3 -3
  117. package/dist/blocks/segments/index.d.ts +3 -3
  118. package/dist/blocks/sequences/index.d.ts +2 -2
  119. package/dist/blocks/service-accounts/index.d.ts +2 -2
  120. package/dist/blocks/sessions/index.d.ts +2 -2
  121. package/dist/blocks/settings/index.d.ts +3 -3
  122. package/dist/blocks/share-links/index.d.ts +2 -2
  123. package/dist/blocks/shipments/index.d.ts +2 -2
  124. package/dist/blocks/signatures/index.d.ts +2 -2
  125. package/dist/blocks/signing-keys/index.d.ts +2 -2
  126. package/dist/blocks/sla/index.d.ts +3 -3
  127. package/dist/blocks/sso/index.d.ts +3 -3
  128. package/dist/blocks/state-machine/index.d.ts +2 -2
  129. package/dist/blocks/subjects/index.d.ts +2 -2
  130. package/dist/blocks/tags/index.d.ts +3 -3
  131. package/dist/blocks/tasks/index.d.ts +5 -5
  132. package/dist/blocks/teams/index.d.ts +2 -2
  133. package/dist/blocks/templates/index.d.ts +4 -4
  134. package/dist/blocks/time-tracking/index.d.ts +10 -5
  135. package/dist/blocks/time-tracking/index.js +16 -9
  136. package/dist/blocks/timeline/index.d.ts +4 -4
  137. package/dist/blocks/trash/index.d.ts +2 -2
  138. package/dist/blocks/undo/index.d.ts +2 -2
  139. package/dist/blocks/updated-at/index.d.ts +1 -1
  140. package/dist/blocks/usage/index.d.ts +2 -2
  141. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  142. package/dist/blocks/versions/index.d.ts +2 -2
  143. package/dist/blocks/waitlist/index.d.ts +2 -2
  144. package/dist/blocks/webhooks/index.d.ts +6 -6
  145. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  146. package/dist/blocks/workflows/index.d.ts +5 -5
  147. package/dist/{bookings-BpCNphYp.d.ts → bookings-CVw5-Q0Z.d.ts} +1 -1
  148. package/dist/chat-sdk/index.d.ts +2 -2
  149. package/dist/cli/{add-C7lKQNBL.js → add-BTVrOGJF.js} +9 -9
  150. package/dist/cli/add-Bf1fyCWm.js +1 -0
  151. package/dist/cli/{add-DVHniZOO.js → add-C2pNvVpu.js} +2 -2
  152. package/dist/cli/{backfill-Lrn-Qp5X.js → backfill-BicVPugb.js} +1 -1
  153. package/dist/cli/bin.js +1 -1
  154. package/dist/cli/{blocks-2Yw9t-_U.js → blocks-BmYOH4T-.js} +1 -1
  155. package/dist/cli/{blocks-BKNd886C.js → blocks-sScN-ik-.js} +1 -1
  156. package/dist/cli/{cache-ByhPVMo-.js → cache-1TfBy2K4.js} +1 -1
  157. package/dist/cli/{codemod-C0eXpzFu.js → codemod-ylE6wGLo.js} +1 -1
  158. package/dist/cli/{content-mapper-qH-_YQ8H.js → content-mapper-hUW2nb92.js} +2 -2
  159. package/dist/cli/{doctor-BnxkqXGA.js → doctor-D3WKFBSv.js} +14 -14
  160. package/dist/cli/{gen-aERmP3Sw.js → gen-CqsUdsB2.js} +11 -11
  161. package/dist/cli/index.d.ts +1 -1
  162. package/dist/cli/index.js +6 -6
  163. package/dist/cli/{init-DWUqVSVW.js → init-DryZ5Mp1.js} +5 -5
  164. package/dist/cli/{live-KcdTBUij.js → live-Di45imoV.js} +2 -2
  165. package/dist/cli/{mcp-Dsjjo-LT.js → mcp-BklC-3eK.js} +2 -2
  166. package/dist/cli/{metadata-DWQSIZ59.js → metadata-7PsBF5Xw.js} +3 -3
  167. package/dist/cli/{migration-safety-Cy7xlU4G.js → migration-safety-Doy9qYO8.js} +1 -1
  168. package/dist/cli/{migrations-CUjNXokR.js → migrations-JtsPYv8g.js} +1 -1
  169. package/dist/cli/{module-migration-C6NLY9iZ.js → module-migration-ZIn1NCMi.js} +2 -2
  170. package/dist/cli/{powersync-CE_hQdgc.js → powersync-BRGXOCJ0.js} +2 -2
  171. package/dist/cli/powersync-Dq-txa0_.js +1 -0
  172. package/dist/cli/{print-Cy_ram9N.js → print-Dfqd4DB-.js} +2 -2
  173. package/dist/cli/{remove-DmwjzqaW.js → remove-CQzSCYTu.js} +5 -5
  174. package/dist/cli/{render-CF09FCra.js → render-DWRz-uPQ.js} +3 -3
  175. package/dist/cli/{run-BYpZ8FjF.js → run-DPLedqTF.js} +21 -21
  176. package/dist/cli/{run-lh-chAJW.js → run-j54rk2w-.js} +8 -8
  177. package/dist/cli/{shared-D05A6t1e.js → shared-CslNcs-R.js} +1 -1
  178. package/dist/cli/{snapshot-BITNbA5V.js → snapshot-DdN5GlhH.js} +2 -2
  179. package/dist/cli/{source-GGJHuzpH.js → source-COARbqch.js} +1 -1
  180. package/dist/cli/{spec-BGcRdlhN.js → spec-CgLNZc_C.js} +2 -2
  181. package/dist/cli/{spec-BjxXWaNQ.js → spec-DIhBQlBF.js} +1 -1
  182. package/dist/cli/{sql-layout-BoD5ynN9.js → sql-layout-8jrP5gIa.js} +2 -2
  183. package/dist/cli/{sync-_QlsTmqu.js → sync-SqyVHRSJ.js} +3 -3
  184. package/dist/cli/{upgrade-Cwhb1M7O.js → upgrade-CY-vj_qh.js} +4 -4
  185. package/dist/cli/{upgrade-n9ar1kc4.js → upgrade-D0aLhluU.js} +2 -2
  186. package/dist/cli/{version-RSpJIWDd.js → version-Bhca9D6q.js} +1 -1
  187. package/dist/client/index.d.ts +5 -5
  188. package/dist/client/native/index.d.ts +4 -4
  189. package/dist/{cloud-event-CzZTJkXv.d.ts → cloud-event-DcJwder2.d.ts} +1 -1
  190. package/dist/{composite-ChzHhSB0.d.ts → composite-CWJvZgni.d.ts} +6 -6
  191. package/dist/config/index.d.ts +2 -2
  192. package/dist/config/index.js +4 -4
  193. package/dist/{config-vHLJ8SKf.js → config-C19McoGo.js} +4 -3
  194. package/dist/{config-RwpFcPq8.js → config-CP-WaboC.js} +6 -5
  195. package/dist/{connectors-Fud4amxp.d.ts → connectors-CHGiffYH.d.ts} +1 -1
  196. package/dist/{context-CMf4OKpN.d.ts → context-BJoHD20l.d.ts} +4 -2
  197. package/dist/{controller-BGto_kYM.d.ts → controller-CwGXms17.d.ts} +1 -1
  198. package/dist/{conversion-DBgMck5U.d.ts → conversion-DlfStnln.d.ts} +1 -1
  199. package/dist/create/index.d.ts +3 -3
  200. package/dist/create/index.js +3 -3
  201. package/dist/create/lite/index.d.ts +3 -3
  202. package/dist/create/lite/index.js +2 -2
  203. package/dist/credentials/index.d.ts +3 -3
  204. package/dist/{define-Lf6rI2QN.d.ts → define-BLP6XtoL.d.ts} +1 -1
  205. package/dist/{define-block-DCAiOrNX.d.ts → define-block-DibVN37N.d.ts} +4 -4
  206. package/dist/edge/index.d.ts +8 -8
  207. package/dist/elysia/index.d.ts +1 -1
  208. package/dist/{ended-gUsMZVNg.d.ts → ended-B8RyuUXF.d.ts} +1 -1
  209. package/dist/{entitlements-CIhVQ-0u.d.ts → entitlements-CsZcfllV.d.ts} +2 -2
  210. package/dist/eve/index.d.ts +2 -2
  211. package/dist/{event-calendar-DCufbihU.d.ts → event-calendar-DVLs2wUO.d.ts} +1 -1
  212. package/dist/events/index.d.ts +3 -3
  213. package/dist/{events-vcqenSYU.d.ts → events-Cc9DDQWH.d.ts} +2 -0
  214. package/dist/{executor-DNK401lZ.d.ts → executor-C-Ox9eKq.d.ts} +1 -1
  215. package/dist/{executor-aFV7nEBs.d.ts → executor-DNPm13a9.d.ts} +2 -2
  216. package/dist/expo/index.d.ts +3 -3
  217. package/dist/{field-errors-BDhPaO0a.d.ts → field-errors-6BVg31Yp.d.ts} +7 -7
  218. package/dist/{framework-DKA3fTHl.d.ts → framework-GlxXiotm.d.ts} +6 -6
  219. package/dist/h3/index.d.ts +1 -1
  220. package/dist/h3/v1/index.d.ts +1 -1
  221. package/dist/hono/index.d.ts +8 -8
  222. package/dist/{index-ClvuSZEz.d.ts → index-BfYDY6eh.d.ts} +3 -3
  223. package/dist/{index-4MStWaeF.d.ts → index-C0QuN9_P.d.ts} +3 -3
  224. package/dist/{index-CG9rA8H8.d.ts → index-C_qlBJ3k.d.ts} +2 -2
  225. package/dist/{index-CFWlHuVY.d.ts → index-Cagz4Z2k.d.ts} +1 -1
  226. package/dist/{index--OhYKouV.d.ts → index-CbUCGMqj.d.ts} +3 -3
  227. package/dist/{index-ujNqgZ6B.d.ts → index-D01wHGSN.d.ts} +11 -11
  228. package/dist/{index-iRkFvJ7J.d.ts → index-D1ckLbUM.d.ts} +1 -1
  229. package/dist/{index-lV43eM34.d.ts → index-DOHx3JuB.d.ts} +4 -4
  230. package/dist/index.d.ts +2 -2
  231. package/dist/{instances-BPJSESPx.js → instances-qz2MCMyK.js} +84 -5
  232. package/dist/{kit-CVgQCIBO.d.ts → kit-Dxx3MT8m.d.ts} +3 -3
  233. package/dist/list/index.d.ts +1 -1
  234. package/dist/{list-query-XYfUZb0j.d.ts → list-query-XHoYDlRN.d.ts} +1 -1
  235. package/dist/mapper/bin.js +5 -5
  236. package/dist/mcp/index.d.ts +5 -5
  237. package/dist/mcp/sdk/index.d.ts +5 -5
  238. package/dist/nestjs/index.d.ts +2 -2
  239. package/dist/next/client/index.d.ts +1 -1
  240. package/dist/next/index.d.ts +21 -21
  241. package/dist/node/index.d.ts +2 -2
  242. package/dist/{operations-qSBBV5vl.d.ts → operations-CPhOcuzl.d.ts} +1 -1
  243. package/dist/{options-D4ADKTKo.js → options-BOGo1qCA.js} +4 -1
  244. package/dist/options-C4LuqmdG.js +15 -0
  245. package/dist/{options-BPp2zzsz.js → options-eTepQ1rZ.js} +2 -1
  246. package/dist/orpc/index.d.ts +7 -7
  247. package/dist/otel/index.d.ts +1 -1
  248. package/dist/otel/index.js +4 -4
  249. package/dist/{outbox-HxjZTfF6.d.ts → outbox-DxZgoKwp.d.ts} +2 -2
  250. package/dist/{pool-CrtT4dg-.d.ts → pool-wjbAMqc1.d.ts} +1 -1
  251. package/dist/{ports-DbHiNSAa.d.ts → ports-Bw7uxPd_.d.ts} +1 -1
  252. package/dist/postgres/index.d.ts +1 -1
  253. package/dist/powersync/index.d.ts +3 -3
  254. package/dist/preset/index.d.ts +3 -3
  255. package/dist/preset/index.js +3 -3
  256. package/dist/{preset-B1xXOJ0T.js → preset-BbSWLoXM.js} +2 -2
  257. package/dist/{project-BM6QMtzV.js → project-TN03XDsA.js} +5 -5
  258. package/dist/{provider-CqwEOLCA.d.ts → provider-ClrIplXa.d.ts} +1 -1
  259. package/dist/{push-token-BwF1fyjA.d.ts → push-token-vykw2JXT.d.ts} +1 -1
  260. package/dist/query/index.d.ts +1 -1
  261. package/dist/react/index.d.ts +7 -7
  262. package/dist/react/native/index.d.ts +1 -1
  263. package/dist/react/server.d.ts +8 -8
  264. package/dist/react/session.d.ts +2 -2
  265. package/dist/react-router/index.d.ts +5 -5
  266. package/dist/realtime/index.d.ts +4 -4
  267. package/dist/{record-form-BbZpwsEi.d.ts → record-form-D2-F4IwS.d.ts} +1 -1
  268. package/dist/records/index.d.ts +7 -7
  269. package/dist/{refresh-DT_ICaK-.d.ts → refresh-CCKB1Wa6.d.ts} +1 -1
  270. package/dist/{refusal-OrlI3g4H.d.ts → refusal-D_tklIEb.d.ts} +2 -2
  271. package/dist/{resolve-CXX6DHv3.d.ts → resolve-Bj1qD7Dy.d.ts} +1 -1
  272. package/dist/{resolved-names-WzRYhUez.js → resolved-names-Dsf28_Dr.js} +1 -1
  273. package/dist/{resource-execute-CUG6xUuh.d.ts → resource-execute-BSTIfp1D.d.ts} +1 -1
  274. package/dist/{resource-types-DjZ91WKA.d.ts → resource-types-D5WEvYtV.d.ts} +2 -2
  275. package/dist/{resources-6Ncdt9XT.d.ts → resources-CsZ7RhZC.d.ts} +1 -1
  276. package/dist/{respond-oZeJ342J.d.ts → respond-BzRG-0qc.d.ts} +1 -1
  277. package/dist/server/index.d.ts +20 -20
  278. package/dist/{server-types-BH6AjDBN.d.ts → server-types-BlDiY-ya.d.ts} +8 -8
  279. package/dist/{session-Y5SSYO2C.d.ts → session-BGP98Rgj.d.ts} +5 -5
  280. package/dist/{session-status-qQLm7jzh.d.ts → session-status-C4t7kbSn.d.ts} +2 -2
  281. package/dist/{sign-in-BAjR49fq.d.ts → sign-in-CAadgm33.d.ts} +2 -2
  282. package/dist/solid/index.d.ts +9 -9
  283. package/dist/solid-start/index.d.ts +5 -5
  284. package/dist/spec/index.d.ts +1 -1
  285. package/dist/sql/index.d.ts +4 -4
  286. package/dist/sql/index.js +2 -2
  287. package/dist/{sql-CNH8kjLS.js → sql-Dg3W1ENk.js} +2889 -1064
  288. package/dist/sqlite/index.d.ts +1 -1
  289. package/dist/ssr/index.d.ts +5 -5
  290. package/dist/{subject-readers-8GySC9Z8.d.ts → subject-readers-DJbzlm8a.d.ts} +1 -1
  291. package/dist/{support-B4ZBVxt3.d.ts → support-D7CMbhRT.d.ts} +4 -4
  292. package/dist/{support-view-BYOgwXsJ.d.ts → support-view-CIDXF3_H.d.ts} +1 -1
  293. package/dist/svelte/index.d.ts +8 -8
  294. package/dist/sveltekit/index.d.ts +6 -6
  295. package/dist/{tags-Cjtcp5cN.d.ts → tags-Dg4Ywmqp.d.ts} +1 -1
  296. package/dist/tanstack-db/index.d.ts +1 -1
  297. package/dist/tanstack-start/index.d.ts +5 -5
  298. package/dist/{tenant-D4BA7XQ-.d.ts → tenant-BRmKZ7aq.d.ts} +2 -2
  299. package/dist/testing/index.d.ts +16 -16
  300. package/dist/testing/index.js +1 -1
  301. package/dist/{timeline-CEzj9v1z.d.ts → timeline-Cjl-1hiA.d.ts} +3 -3
  302. package/dist/{topic-utZqhw96.d.ts → topic-CpsKVBot.d.ts} +3 -3
  303. package/dist/{types-yj8VF4oY.d.ts → types-BdaBfYIw.d.ts} +2 -2
  304. package/dist/{types-DLnBJ3ST.d.ts → types-CjRwmCRP.d.ts} +2 -2
  305. package/dist/{types-EO2crSX_.d.ts → types-DR1MHh7N.d.ts} +1 -1
  306. package/dist/{vault-O-YlAyHb.d.ts → vault-BghaujrZ.d.ts} +1 -1
  307. package/dist/vercel-connect/index.d.ts +1 -1
  308. package/dist/{verify-B0KLBb3j.d.ts → verify-CI8LgSpv.d.ts} +1 -1
  309. package/dist/{view-DyFdMCqg.d.ts → view-BvNA7EOC.d.ts} +1 -1
  310. package/dist/vue/index.d.ts +9 -9
  311. package/dist/{watch-topic-B1UCoQfz.d.ts → watch-topic-BaMZX139.d.ts} +1 -1
  312. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  313. package/dist/workflow-sdk/index.d.ts +1 -1
  314. package/dist/workflow-sdk/world/index.d.ts +1 -1
  315. package/dist/{workflow-sdk-B3Ss55Fy.d.ts → workflow-sdk-BNsZrcVg.d.ts} +1 -1
  316. package/dist/yjs/index.d.ts +1 -1
  317. package/package.json +1 -1
  318. package/schemas/config-v1.json +53 -1
  319. package/dist/cli/add-vZRn-uH0.js +0 -1
  320. package/dist/cli/powersync-BOhjVQCb.js +0 -1
  321. package/dist/options-DztCKw_f.js +0 -8
@@ -1,9 +1,9 @@
1
1
  import { b as DbError, f as Result, t as AsyncResult } from "../../result-DZeA5KS6.js";
2
- import { Ct as Events, ot as StorageObjectEventData, y as AttachmentEventData } from "../../events-vcqenSYU.js";
2
+ import { Ct as Events, ot as StorageObjectEventData, y as AttachmentEventData } from "../../events-Cc9DDQWH.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
4
4
  import { t as Author } from "../../block-authors-DzXLUiIq.js";
5
- import { At as NewAttachment, Ct as AttachmentScannerOptions, Dt as AttachmentVersion, Et as AttachmentUpload, Ft as ScannedObject, It as attachmentVersionOf, Lt as createAttachmentScanner, Mt as ObjectScanner, Nt as ObjectScannerOptions, Ot as Attachments, Pt as ScanVerdict, Rt as createAttachments, Sn as EntitySchema, St as AttachmentScanner, Tt as AttachmentStorage, _t as AttachmentDownload, bt as AttachmentReplacement, c as BlockOf, gt as AttachmentBucket, ht as Attachment, jt as ObjectScanJob, kt as AttachmentsOptions, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding, vt as AttachmentImageUrlOptions, wt as AttachmentStatus, xt as AttachmentScanJob, yt as AttachmentImages, zt as createObjectScanner } from "../../define-block-DCAiOrNX.js";
6
- import { n as Controller } from "../../controller-BGto_kYM.js";
5
+ import { At as NewAttachment, Ct as AttachmentScannerOptions, Dt as AttachmentVersion, Et as AttachmentUpload, Ft as ScannedObject, It as attachmentVersionOf, Lt as createAttachmentScanner, Mt as ObjectScanner, Nt as ObjectScannerOptions, Ot as Attachments, Pt as ScanVerdict, Rt as createAttachments, Sn as EntitySchema, St as AttachmentScanner, Tt as AttachmentStorage, _t as AttachmentDownload, bt as AttachmentReplacement, c as BlockOf, gt as AttachmentBucket, ht as Attachment, jt as ObjectScanJob, kt as AttachmentsOptions, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding, vt as AttachmentImageUrlOptions, wt as AttachmentStatus, xt as AttachmentScanJob, yt as AttachmentImages, zt as createObjectScanner } from "../../define-block-DibVN37N.js";
6
+ import { n as Controller } from "../../controller-CwGXms17.js";
7
7
  //#region src/blocks/attachments/record-binding.d.ts
8
8
  /** A pending write to a record's files, for `useOptimistic`. */
9
9
  type AttachmentsOptimisticAction = {
@@ -1,19 +1,19 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../../types-DFdg_4yN.js";
4
- import { Ct as Events, b as AuditRevealEventData } from "../../events-vcqenSYU.js";
4
+ import { Ct as Events, b as AuditRevealEventData } from "../../events-Cc9DDQWH.js";
5
5
  import { n as Logger } from "../../logger-DWVYUmwi.js";
6
6
  import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
7
7
  import { n as SqlClient } from "../../executor-hGjrop3A.js";
8
8
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
9
9
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
10
- import { Yt as WhereInput, t as BetterSupabase } from "../../define-Lf6rI2QN.js";
11
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
12
- import { i as EventSink, t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
13
- import { i as ListDefinition } from "../../list-query-XYfUZb0j.js";
14
- import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
10
+ import { Yt as WhereInput, t as BetterSupabase } from "../../define-BLP6XtoL.js";
11
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
12
+ import { i as EventSink, t as CloudEvent } from "../../cloud-event-DcJwder2.js";
13
+ import { i as ListDefinition } from "../../list-query-XHoYDlRN.js";
14
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
15
15
  import { a as UndoToken } from "../../undo-B1jwnVyN.js";
16
- import { n as AuditCategory } from "../../context-CMf4OKpN.js";
16
+ import { n as AuditCategory } from "../../context-BJoHD20l.js";
17
17
  //#region src/blocks/audit/audit.d.ts
18
18
  interface PurgeAuditLogOptions extends BlockTemporalOptions {
19
19
  /**
@@ -1,18 +1,18 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { D as ValidationIssue, T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
4
- import { Ct as Events } from "../../events-vcqenSYU.js";
4
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
5
5
  import { n as Logger } from "../../logger-DWVYUmwi.js";
6
6
  import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
8
8
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DZN2w69m.js";
9
9
  import { _ as FilterRule, d as FilterLimits, f as FilterNode, h as FilterQuery, i as FilterCombinator, m as FilterOperatorSpec, r as FilterClock } from "../../filter-query-BXLs72G9.js";
10
- import { $t as createActionRegistry, Bt as Action, Gt as ActionInfo, Ht as ActionContext, Jt as ActionRegistry, Kt as ActionOrigin, L as NotifierInput, Qt as actionKey, Ut as ActionDescriptor, Vt as ActionCall, Wt as ActionHandler, Yt as ActionSpec, Zt as DefaultAutomation, c as BlockOf, en as defineAction, qt as ActionRef } from "../../define-block-DCAiOrNX.js";
11
- import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
12
- import { o as ApprovalRequestInput } from "../../approvals-Dh9dUXrN.js";
10
+ import { $t as createActionRegistry, Bt as Action, Gt as ActionInfo, Ht as ActionContext, Jt as ActionRegistry, Kt as ActionOrigin, L as NotifierInput, Qt as actionKey, Ut as ActionDescriptor, Vt as ActionCall, Wt as ActionHandler, Yt as ActionSpec, Zt as DefaultAutomation, c as BlockOf, en as defineAction, qt as ActionRef } from "../../define-block-DibVN37N.js";
11
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
12
+ import { o as ApprovalRequestInput } from "../../approvals-C5fmPLsH.js";
13
13
  import { n as FilterRecordField, t as FilterEvaluation } from "../../filter-evaluate-CPxeae5X.js";
14
14
  import { a as checkRuleConditions, c as ruleFilterFields, i as RuleFieldDefinition, n as RuleField, o as defineRuleFields, r as RuleFieldCatalog, s as ruleFilterFieldInfo, t as RULE_LIMITS } from "../../fields-C3q2ypnO.js";
15
- import { a as ConversionRelations, i as ConversionRef, n as ConversionContext, o as ConversionSpec, r as ConversionOutcome, s as defineConversionAction, t as ConversionClients } from "../../conversion-DBgMck5U.js";
15
+ import { a as ConversionRelations, i as ConversionRef, n as ConversionContext, o as ConversionSpec, r as ConversionOutcome, s as defineConversionAction, t as ConversionClients } from "../../conversion-DlfStnln.js";
16
16
  //#region src/blocks/automations/automations.d.ts
17
17
  /** What a rule runs when it matches: an action reference (ADR 0046). */
18
18
  type RuleAction = ActionRef;
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
4
- import { Ct as Events } from "../../events-vcqenSYU.js";
4
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
5
5
  import { n as Logger } from "../../logger-DWVYUmwi.js";
6
6
  import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
8
8
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DZN2w69m.js";
9
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
9
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DibVN37N.js";
10
10
  import { n as Money } from "../../money-BNRdJQzA.js";
11
11
  //#region src/blocks/billable-time/billable-time.d.ts
12
12
  /** How `unbilled` and `invoice` turn entries into lines. */
@@ -1,16 +1,16 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
- import { C as BillingEventData, Ct as Events, O as BlockEventType, o as EventHub } from "../../events-vcqenSYU.js";
3
+ import { C as BillingEventData, Ct as Events, O as BlockEventType, o as EventHub } from "../../events-Cc9DDQWH.js";
4
4
  import { n as Logger } from "../../logger-DWVYUmwi.js";
5
5
  import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
6
6
  import { n as SqlClient } from "../../executor-hGjrop3A.js";
7
7
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
8
8
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
9
9
  import { n as StripeSource, r as StripeTaxId, t as StripeClient } from "../../stripe-X22LjuH-.js";
10
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
11
- import { i as EventSink } from "../../cloud-event-CzZTJkXv.js";
12
- import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
13
- import { d as stripeInboxVerify, f as verifyStripeWebhook, u as signStripeWebhook } from "../../verify-B0KLBb3j.js";
10
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
11
+ import { i as EventSink } from "../../cloud-event-DcJwder2.js";
12
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
13
+ import { d as stripeInboxVerify, f as verifyStripeWebhook, u as signStripeWebhook } from "../../verify-CI8LgSpv.js";
14
14
  //#region src/blocks/billing/events.d.ts
15
15
  /** The events of the `billing` block: type to data. */
16
16
  type BillingEvents = {
@@ -1,10 +1,10 @@
1
1
  import { b as DbError } from "../../result-DZeA5KS6.js";
2
- import { Ct as Events, tt as SchedulingEventData } from "../../events-vcqenSYU.js";
3
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
4
- import { n as Controller } from "../../controller-BGto_kYM.js";
5
- import { o as WeeklyHours } from "../../availability-vguUvEK2.js";
6
- import { C as bookingSeriesOf, S as BookingWeekday, T as parseRecurrence, _ as BookedSeries, a as BookingExceptionInput, b as BookingSeriesScope, c as BookingResourceInput, d as BookingStatus, f as Bookings, g as createBookings, h as PublicBookingService, i as BookingDuration, l as BookingServiceInput, m as PlacedBooking, n as Booking, o as BookingExpirePayload, p as BookingsOptions, r as BookingCustomer, s as BookingRange, t as BOOKING_EXPIRE_QUEUE, u as BookingSlot, v as BookingRecurrence, w as formatRecurrence, x as BookingSeriesStatus, y as BookingSeries } from "../../bookings-BpCNphYp.js";
7
- import { t as EventCalendarEvent } from "../../event-calendar-DCufbihU.js";
2
+ import { Ct as Events, tt as SchedulingEventData } from "../../events-Cc9DDQWH.js";
3
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
4
+ import { n as Controller } from "../../controller-CwGXms17.js";
5
+ import { o as WeeklyHours } from "../../availability-BdeKCHpl.js";
6
+ import { C as bookingSeriesOf, S as BookingWeekday, T as parseRecurrence, _ as BookedSeries, a as BookingExceptionInput, b as BookingSeriesScope, c as BookingResourceInput, d as BookingStatus, f as Bookings, g as createBookings, h as PublicBookingService, i as BookingDuration, l as BookingServiceInput, m as PlacedBooking, n as Booking, o as BookingExpirePayload, p as BookingsOptions, r as BookingCustomer, s as BookingRange, t as BOOKING_EXPIRE_QUEUE, u as BookingSlot, v as BookingRecurrence, w as formatRecurrence, x as BookingSeriesStatus, y as BookingSeries } from "../../bookings-CVw5-Q0Z.js";
7
+ import { t as EventCalendarEvent } from "../../event-calendar-DVLs2wUO.js";
8
8
  import { t as VisibleRange } from "../../range-p5V4rBhZ.js";
9
9
  //#region src/blocks/bookings/rows.d.ts
10
10
  /** A booking row as `hold_booking`, `list_bookings` and the others return it. */
@@ -1,10 +1,10 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
- import { $ as SaasEventData, Ct as Events } from "../../events-vcqenSYU.js";
3
+ import { $ as SaasEventData, Ct as Events } from "../../events-Cc9DDQWH.js";
4
4
  import { n as Logger } from "../../logger-DWVYUmwi.js";
5
5
  import { t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
6
6
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
7
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
7
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
8
8
  //#region src/blocks/bulk/bulk.d.ts
9
9
  /** The actions every install knows, when the block that owns each is installed. */
10
10
  type BuiltInBulkAction = "tags.set" | "stateMachine.transition" | "relations.link" | "trash.trash" | "collections.add" | "appTables.set";
@@ -2,14 +2,14 @@
2
2
  import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
- import { Ct as Events, tt as SchedulingEventData } from "../../events-vcqenSYU.js";
5
+ import { Ct as Events, tt as SchedulingEventData } from "../../events-Cc9DDQWH.js";
6
6
  import { n as Logger } from "../../logger-DWVYUmwi.js";
7
7
  import { t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
8
8
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
9
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DCAiOrNX.js";
10
- import { n as Controller } from "../../controller-BGto_kYM.js";
11
- import { C as IcsEvent, D as parseIcs, E as ToIcsOptions, O as toIcs, S as CalendarEventStatus, T as ParsedIcs, _ as expandOccurrences, a as FreeBusy, b as AttendeeRole, c as WorkingHoursInput, d as workingHoursOf, f as CalendarEvent, g as SplitRules, h as OccurrenceRange, i as CommonFreeTimeOptions, l as commonFreeTime, m as OccurrenceOptions, n as CalendarEventKind, o as WeeklyHours, p as CalendarOccurrence, r as CalendarTransparency, s as WorkingHours, t as BusyRange, u as freeBusyOf, v as splitRule, w as IcsSource, x as CalendarAttendee, y as AttendeeResponse } from "../../availability-vguUvEK2.js";
12
- import { a as fromEventCalendarUpdate, c as toEventCalendarResources, i as OccurrenceMove, n as EventCalendarOptions, o as seriesOf, r as EventCalendarResource, s as toEventCalendarEvents, t as EventCalendarEvent } from "../../event-calendar-DCufbihU.js";
9
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DibVN37N.js";
10
+ import { n as Controller } from "../../controller-CwGXms17.js";
11
+ import { C as IcsEvent, D as parseIcs, E as ToIcsOptions, O as toIcs, S as CalendarEventStatus, T as ParsedIcs, _ as expandOccurrences, a as FreeBusy, b as AttendeeRole, c as WorkingHoursInput, d as workingHoursOf, f as CalendarEvent, g as SplitRules, h as OccurrenceRange, i as CommonFreeTimeOptions, l as commonFreeTime, m as OccurrenceOptions, n as CalendarEventKind, o as WeeklyHours, p as CalendarOccurrence, r as CalendarTransparency, s as WorkingHours, t as BusyRange, u as freeBusyOf, v as splitRule, w as IcsSource, x as CalendarAttendee, y as AttendeeResponse } from "../../availability-BdeKCHpl.js";
12
+ import { a as fromEventCalendarUpdate, c as toEventCalendarResources, i as OccurrenceMove, n as EventCalendarOptions, o as seriesOf, r as EventCalendarResource, s as toEventCalendarEvents, t as EventCalendarEvent } from "../../event-calendar-DVLs2wUO.js";
13
13
  import { t as VisibleRange } from "../../range-p5V4rBhZ.js";
14
14
  //#region src/blocks/calendar/calendar.d.ts
15
15
  interface CalendarOptions<S extends StandardSchemaV1 | undefined = undefined> {
@@ -37,6 +37,35 @@ interface CalendarInfo {
37
37
  readonly ownerId?: string;
38
38
  /** With `options.calendarExtraColumns`: the calendar's own columns. */
39
39
  readonly fields?: Readonly<Record<string, unknown>>;
40
+ readonly visibility?: CalendarVisibility;
41
+ readonly description?: string;
42
+ readonly rank?: string;
43
+ readonly isDefault?: boolean;
44
+ }
45
+ type CalendarVisibility = "shared" | "private";
46
+ type CalendarGrantRole = "viewer" | "editor";
47
+ interface CalendarGrant {
48
+ readonly userId: string;
49
+ readonly role: CalendarGrantRole;
50
+ }
51
+ interface CalendarAttributes {
52
+ readonly name?: string;
53
+ readonly tz?: string;
54
+ readonly color?: string | null;
55
+ readonly visibility?: CalendarVisibility;
56
+ readonly description?: string | null;
57
+ readonly rank?: string | null;
58
+ readonly isDefault?: boolean;
59
+ }
60
+ interface CalendarAttendeeInput {
61
+ readonly email?: string;
62
+ readonly name?: string;
63
+ readonly userId?: string;
64
+ readonly role?: AttendeeRole;
65
+ readonly subjectType?: string;
66
+ readonly subjectId?: string;
67
+ readonly organizer?: boolean;
68
+ readonly optional?: boolean;
40
69
  }
41
70
  /** The fields of an event to write. Fields left out keep their value on update. */
42
71
  interface CalendarEventInput {
@@ -51,6 +80,8 @@ interface CalendarEventInput {
51
80
  /** An RFC 5545 `RRULE` value, or `null` to end the recurrence. */
52
81
  readonly rrule?: string | null;
53
82
  readonly exdates?: readonly Temporal.Instant[];
83
+ readonly rdates?: readonly Temporal.Instant[];
84
+ readonly visibility?: "public" | "private";
54
85
  readonly subjectType?: string | null;
55
86
  readonly subjectId?: string | null;
56
87
  readonly color?: string | null;
@@ -85,9 +116,10 @@ interface Calendar<F extends object = Record<never, never>> {
85
116
  readonly ownerId?: string;
86
117
  /** With `options.calendarExtraColumns`: values for those columns. */
87
118
  readonly fields?: Readonly<Record<string, unknown>>;
88
- }): AsyncResult<{
119
+ } & Omit<CalendarAttributes, "name" | "tz">): AsyncResult<{
89
120
  readonly id: string;
90
121
  }>;
122
+ updateCalendar(id: string, attributes: CalendarAttributes): AsyncResult<boolean>;
91
123
  deleteCalendar(id: string): AsyncResult<boolean>;
92
124
  listCalendars(organizationId: string): AsyncResult<CalendarInfo[]>;
93
125
  /**
@@ -113,13 +145,12 @@ interface Calendar<F extends object = Record<never, never>> {
113
145
  }>;
114
146
  /** Removes one occurrence of a series (an `EXDATE`), or a single event. */
115
147
  cancelOccurrence(occurrence: CalendarOccurrence): AsyncResult<boolean>;
116
- setAttendee(eventId: string, attendee: {
117
- readonly email: string;
118
- readonly name?: string;
119
- readonly userId?: string;
120
- readonly role?: AttendeeRole;
121
- }): AsyncResult<boolean>;
148
+ setAttendee(eventId: string, attendee: CalendarAttendeeInput): AsyncResult<boolean>;
122
149
  removeAttendee(eventId: string, email: string): AsyncResult<boolean>;
150
+ removeAttendeeById(attendeeId: string): AsyncResult<boolean>;
151
+ setGrant(calendarId: string, userId: string, role: CalendarGrantRole): AsyncResult<boolean>;
152
+ removeGrant(calendarId: string, userId: string): AsyncResult<boolean>;
153
+ grants(calendarId: string): AsyncResult<CalendarGrant[]>;
123
154
  /** The signed-in user answers an invitation. */
124
155
  respond(eventId: string, response: AttendeeResponse): AsyncResult<boolean>;
125
156
  /** Upserts the events of an iCalendar file by UID. */
@@ -131,6 +162,7 @@ interface Calendar<F extends object = Record<never, never>> {
131
162
  * "calendar"`), or `null` when the token is unknown, revoked or expired.
132
163
  */
133
164
  feed(token: string): AsyncResult<string | null>;
165
+ userFeed(token: string): AsyncResult<string | null>;
134
166
  /** Replaces a member's weekly working hours. Returns how many stretches. */
135
167
  setWorkingHours(organizationId: string, input: WorkingHoursInput): AsyncResult<number>;
136
168
  /** The working hours of the members that set them (all when omitted). */
@@ -184,6 +216,7 @@ export declare function createCalendarController(options: CalendarControllerOpti
184
216
  /** The events of the `calendar` block: type to data. */
185
217
  type CalendarEvents = {
186
218
  readonly "calendar.created": SchedulingEventData;
219
+ readonly "calendar.updated": SchedulingEventData;
187
220
  readonly "calendar_event.created": SchedulingEventData;
188
221
  readonly "calendar_event.updated": SchedulingEventData;
189
222
  readonly "calendar_event.deleted": SchedulingEventData;
@@ -202,4 +235,4 @@ export declare const calendarBlock: BlockOf<"calendar", typeof createCalendar, C
202
235
  */
203
236
  export declare const calendarEventInputSchema: EntitySchema<CalendarEventInput>;
204
237
  //#endregion
205
- export { type AttendeeResponse, type AttendeeRole, type BusyRange, type Calendar, type CalendarActions, type CalendarAttendee, type CalendarController, type CalendarControllerOptions, type CalendarEvent, type CalendarEventInput, type CalendarEventKind, type CalendarEventStatus, type CalendarEvents, type CalendarImport, type CalendarInfo, type CalendarOccurrence, type CalendarOptions, type CalendarSnapshot, type CalendarTransparency, type CommonFreeTimeOptions, type EventCalendarEvent, type EventCalendarOptions, type EventCalendarResource, type FreeBusy, type IcsEvent, type IcsSource, type OccurrenceMove, type OccurrenceOptions, type OccurrenceRange, type ParsedIcs, type SavedCalendarEvent, type SplitRules, type ToIcsOptions, type WeeklyHours, type WorkingHours, type WorkingHoursInput, commonFreeTime, expandOccurrences, freeBusyOf, fromEventCalendarUpdate, parseIcs, seriesOf, splitRule, toEventCalendarEvents, toEventCalendarResources, toIcs, workingHoursOf };
238
+ export { type AttendeeResponse, type AttendeeRole, type BusyRange, type Calendar, type CalendarActions, type CalendarAttendee, type CalendarAttendeeInput, type CalendarAttributes, type CalendarController, type CalendarControllerOptions, type CalendarEvent, type CalendarEventInput, type CalendarEventKind, type CalendarEventStatus, type CalendarEvents, type CalendarGrant, type CalendarGrantRole, type CalendarImport, type CalendarInfo, type CalendarOccurrence, type CalendarOptions, type CalendarSnapshot, type CalendarTransparency, type CalendarVisibility, type CommonFreeTimeOptions, type EventCalendarEvent, type EventCalendarOptions, type EventCalendarResource, type FreeBusy, type IcsEvent, type IcsSource, type OccurrenceMove, type OccurrenceOptions, type OccurrenceRange, type ParsedIcs, type SavedCalendarEvent, type SplitRules, type ToIcsOptions, type WeeklyHours, type WorkingHours, type WorkingHoursInput, commonFreeTime, expandOccurrences, freeBusyOf, fromEventCalendarUpdate, parseIcs, seriesOf, splitRule, toEventCalendarEvents, toEventCalendarResources, toIcs, workingHoursOf };
@@ -2,7 +2,7 @@ import { n as dbError } from "../../errors-BVFgt8BZ.js";
2
2
  import { n as isRecord } from "../../guards-6F2bCtQR.js";
3
3
  import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
4
4
  import { t as AsyncResult } from "../../result-ntFBW2p2.js";
5
- import { t as calendarSqlOptions } from "../../options-DztCKw_f.js";
5
+ import { t as calendarSqlOptions } from "../../options-C4LuqmdG.js";
6
6
  import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
7
7
  import { t as defineController } from "../../controller-BEliOBOv.js";
8
8
  import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, j as requiredInstant, o as blockCall, w as optionalText, x as oneOf } from "../../block-helpers-B0f0ZVb5.js";
@@ -264,6 +264,7 @@ function eventOf(lines, fallback) {
264
264
  let rrule;
265
265
  let originalStart;
266
266
  const exdates = [];
267
+ const rdates = [];
267
268
  const attendees = [];
268
269
  for (const line of lines) switch (line.name) {
269
270
  case "UID":
@@ -308,6 +309,12 @@ function eventOf(lines, fallback) {
308
309
  if (date !== void 0) exdates.push(date.instant);
309
310
  }
310
311
  break;
312
+ case "RDATE":
313
+ for (const value of line.value.split(",")) {
314
+ const date = value.includes("/") ? void 0 : dateValue(value.trim(), line.params, fallback);
315
+ if (date !== void 0) rdates.push(date.instant);
316
+ }
317
+ break;
311
318
  case "RECURRENCE-ID":
312
319
  originalStart = dateValue(line.value, line.params, fallback)?.instant;
313
320
  break;
@@ -332,6 +339,7 @@ function eventOf(lines, fallback) {
332
339
  status,
333
340
  ...rrule === void 0 ? {} : { rrule },
334
341
  exdates,
342
+ ...rdates.length === 0 ? {} : { rdates },
335
343
  ...originalStart === void 0 ? {} : { originalStart },
336
344
  attendees,
337
345
  ...transparent ? { transparency: "transparent" } : {}
@@ -472,12 +480,14 @@ function eventLines(event, stamp) {
472
480
  if (event.originalStart !== void 0) lines.push(timeProperty("RECURRENCE-ID", event.originalStart, event));
473
481
  if (event.rrule !== void 0) lines.push(`RRULE:${event.rrule}`);
474
482
  for (const exdate of event.exdates) lines.push(timeProperty("EXDATE", exdate, event));
483
+ for (const rdate of event.rdates ?? []) lines.push(timeProperty("RDATE", rdate, event));
475
484
  lines.push(`SUMMARY:${escapeText(event.title)}`);
476
485
  if (event.description !== void 0) lines.push(`DESCRIPTION:${escapeText(event.description)}`);
477
486
  if (event.location !== void 0) lines.push(`LOCATION:${escapeText(event.location)}`);
478
487
  lines.push(`STATUS:${event.status.toUpperCase()}`);
479
488
  if (event.transparency === "transparent") lines.push("TRANSP:TRANSPARENT");
480
489
  for (const attendee of event.attendees ?? []) {
490
+ if (attendee.email === "") continue;
481
491
  const cn = attendee.name === void 0 ? "" : `;CN=${paramValue(attendee.name)}`;
482
492
  lines.push(`ATTENDEE${cn};ROLE=${ROLE_OUT[attendee.role]};PARTSTAT=${attendee.response.toUpperCase()}:mailto:${attendee.email}`);
483
493
  }
@@ -496,7 +506,7 @@ function toIcs(events, options = {}) {
496
506
  for (const event of events) {
497
507
  if (event.allDay || event.tz === "UTC") continue;
498
508
  const from = event.startsAt.subtract({ hours: 24 });
499
- const until = event.rrule === void 0 ? event.endsAt.add({ hours: 24 }) : event.startsAt.add({ hours: 26352 });
509
+ const until = event.rrule === void 0 && (event.rdates ?? []).length === 0 ? event.endsAt.add({ hours: 24 }) : event.startsAt.add({ hours: 26352 });
500
510
  const known = zones.get(event.tz);
501
511
  zones.set(event.tz, {
502
512
  from: known === void 0 || time.Instant.compare(from, known.from) < 0 ? from : known.from,
@@ -519,6 +529,23 @@ function toIcs(events, options = {}) {
519
529
  //#endregion
520
530
  //#region src/blocks/calendar/occurrences.ts
521
531
  const keyOf = (id, start) => `${id}::${start.toString()}`;
532
+ const recurs = (event) => event.rrule !== void 0 || (event.rdates ?? []).length > 0;
533
+ function seriesStarts(event, zoned, window) {
534
+ const ruled = event.rrule === void 0 ? [zoned] : expandRule({
535
+ dtstart: zoned,
536
+ rrule: event.rrule,
537
+ window
538
+ });
539
+ if ((event.rdates ?? []).length === 0) return ruled;
540
+ const time = temporal();
541
+ const seen = new Set(ruled.map((when) => when.epochMilliseconds));
542
+ const all = [...ruled];
543
+ for (const rdate of event.rdates ?? []) if (!seen.has(rdate.epochMilliseconds) && time.Instant.compare(rdate, window.until) < 0) {
544
+ seen.add(rdate.epochMilliseconds);
545
+ all.push(rdate.toZonedDateTimeISO(event.tz));
546
+ }
547
+ return all.toSorted((a, b) => time.ZonedDateTime.compare(a, b));
548
+ }
522
549
  function overlaps(start, end, range) {
523
550
  const time = temporal();
524
551
  return time.Instant.compare(start, range.until) < 0 && (time.Instant.compare(end, range.from) > 0 || time.Instant.compare(start, end) === 0 && time.Instant.compare(start, range.from) >= 0);
@@ -536,7 +563,7 @@ function expandOccurrences(events, range, options = {}) {
536
563
  const series = /* @__PURE__ */ new Map();
537
564
  const overrides = /* @__PURE__ */ new Map();
538
565
  for (const event of events) if (event.recurrenceId !== void 0 && event.originalStart !== void 0) overrides.set(keyOf(event.recurrenceId, event.originalStart), event);
539
- else if (event.rrule !== void 0) series.set(event.id, event);
566
+ else if (recurs(event)) series.set(event.id, event);
540
567
  const found = [];
541
568
  for (const event of events) {
542
569
  if (event.recurrenceId !== void 0) {
@@ -553,7 +580,7 @@ function expandOccurrences(events, range, options = {}) {
553
580
  });
554
581
  continue;
555
582
  }
556
- if (event.rrule === void 0) {
583
+ if (!recurs(event)) {
557
584
  if (keep(event) && overlaps(event.startsAt, event.endsAt, range)) found.push({
558
585
  key: keyOf(event.id, event.startsAt),
559
586
  event,
@@ -570,13 +597,9 @@ function expandOccurrences(events, range, options = {}) {
570
597
  const length = zoned.until(event.endsAt.toZonedDateTimeISO(event.tz), { largestUnit: event.allDay ? "days" : "hours" });
571
598
  const reach = event.endsAt.since(event.startsAt).add({ hours: 25 });
572
599
  const skipped = new Set(event.exdates.map((date) => date.epochMilliseconds));
573
- for (const when of expandRule({
574
- dtstart: zoned,
575
- rrule: event.rrule,
576
- window: {
577
- from: range.from.subtract(reach),
578
- until: range.until
579
- }
600
+ for (const when of seriesStarts(event, zoned, {
601
+ from: range.from.subtract(reach),
602
+ until: range.until
580
603
  })) {
581
604
  const start = when.toInstant();
582
605
  if (skipped.has(start.epochMilliseconds)) continue;
@@ -659,14 +682,22 @@ const STATUSES = [
659
682
  "cancelled"
660
683
  ];
661
684
  function attendeeOf(value) {
662
- const name = optionalText(value["name"]);
663
- const userId = optionalText(value["userId"]);
685
+ const text = (key) => {
686
+ const found = optionalText(value[key]);
687
+ return found === void 0 ? {} : { [key]: found };
688
+ };
689
+ const flag = (key) => typeof value[key] === "boolean" ? { [key]: value[key] } : {};
664
690
  return {
665
- email: textOf(value["email"]),
666
- ...name === void 0 ? {} : { name },
667
- ...userId === void 0 ? {} : { userId },
691
+ email: optionalText(value["email"]) ?? "",
692
+ ...text("name"),
693
+ ...text("userId"),
668
694
  role: oneOf(value["role"], ROLES, "required"),
669
- response: oneOf(value["response"], RESPONSES, "needs-action")
695
+ response: oneOf(value["response"], RESPONSES, "needs-action"),
696
+ ...text("id"),
697
+ ...text("subjectType"),
698
+ ...text("subjectId"),
699
+ ...flag("organizer"),
700
+ ...flag("optional")
670
701
  };
671
702
  }
672
703
  /** A `list_calendar_events` or `calendar_feed` row as an event. */
@@ -679,6 +710,7 @@ function calendarEventOf(value) {
679
710
  const originalStart = optionalInstant(row["originalStart"]);
680
711
  const updatedAt = optionalInstant(row["updatedAt"]);
681
712
  const exdates = Array.isArray(row["exdates"]) ? row["exdates"] : [];
713
+ const rdates = Array.isArray(row["rdates"]) ? row["rdates"] : void 0;
682
714
  return {
683
715
  id: textOf(row["id"]),
684
716
  calendarId: textOf(row["calendarId"]),
@@ -702,7 +734,10 @@ function calendarEventOf(value) {
702
734
  ...row["transparency"] === void 0 ? {} : { transparency: oneOf(row["transparency"], CALENDAR_TRANSPARENCIES, "opaque") },
703
735
  ...typeof row["autoDecline"] === "boolean" ? { autoDecline: row["autoDecline"] } : {},
704
736
  attendees: recordsOf(row["attendees"], "attendees").map(attendeeOf),
705
- ...updatedAt === void 0 ? {} : { updatedAt }
737
+ ...updatedAt === void 0 ? {} : { updatedAt },
738
+ ...rdates === void 0 ? {} : { rdates: rdates.map((date) => requiredInstant(date, "rdate")) },
739
+ ...row["visibility"] === void 0 ? {} : { visibility: oneOf(row["visibility"], ["public", "private"], "public") },
740
+ ...text("ownerId")
706
741
  };
707
742
  }
708
743
  /** The jsonb `save_calendar_event` takes. */
@@ -710,7 +745,7 @@ function itemOf(input) {
710
745
  const item = {};
711
746
  for (const [key, value] of Object.entries(input)) {
712
747
  if (value === void 0) continue;
713
- if (key === "exdates" && Array.isArray(value)) item[key] = value.map(String);
748
+ if ((key === "exdates" || key === "rdates") && Array.isArray(value)) item[key] = value.map(String);
714
749
  else if (key === "startsAt" || key === "endsAt" || key === "originalStart") item[key] = String(value);
715
750
  else item[key] = value;
716
751
  }
@@ -730,6 +765,7 @@ function importItem(event) {
730
765
  status: event.status,
731
766
  rrule: event.rrule ?? null,
732
767
  exdates: event.exdates,
768
+ ...event.rdates === void 0 ? {} : { rdates: event.rdates },
733
769
  ...event.originalStart === void 0 ? {} : { originalStart: event.originalStart },
734
770
  ...event.transparency === void 0 ? {} : { transparency: event.transparency }
735
771
  });
@@ -748,13 +784,25 @@ function copyOf(event) {
748
784
  ...event.color === void 0 ? {} : { color: event.color },
749
785
  ...event.kind === void 0 ? {} : { kind: event.kind },
750
786
  ...event.transparency === void 0 ? {} : { transparency: event.transparency },
751
- ...event.autoDecline === void 0 ? {} : { autoDecline: event.autoDecline }
787
+ ...event.autoDecline === void 0 ? {} : { autoDecline: event.autoDecline },
788
+ ...event.visibility === void 0 ? {} : { visibility: event.visibility }
752
789
  };
753
790
  }
754
791
  const INFINITE = {
755
792
  from: "-infinity",
756
793
  until: "infinity"
757
794
  };
795
+ function attributesOf(input) {
796
+ const attrs = {};
797
+ for (const key of [
798
+ "color",
799
+ "visibility",
800
+ "description",
801
+ "rank",
802
+ "isDefault"
803
+ ]) if (input[key] !== void 0) attrs[key] = input[key];
804
+ return attrs;
805
+ }
758
806
  /** The keys of an event write the block types itself. */
759
807
  const EVENT_INPUT = /* @__PURE__ */ new Set([
760
808
  "id",
@@ -768,6 +816,8 @@ const EVENT_INPUT = /* @__PURE__ */ new Set([
768
816
  "status",
769
817
  "rrule",
770
818
  "exdates",
819
+ "rdates",
820
+ "visibility",
771
821
  "subjectType",
772
822
  "subjectId",
773
823
  "color",
@@ -804,21 +854,35 @@ function createCalendar(options) {
804
854
  range_end: range.until.toString()
805
855
  }, (value) => recordsOf(value, "list_calendar_events").map((raw) => [raw, calendarEventOf(raw)])).andThen((rows) => allWithFields(fields, rows));
806
856
  return withBlockHooks({
807
- createCalendar: (organizationId, name, extra = {}) => call("create_calendar", {
808
- tenant: organizationId,
809
- name,
810
- tz: extra.tz ?? "UTC",
811
- owner_type: extra.ownerType ?? null,
812
- owner_id: extra.ownerId ?? null,
813
- ...extra.fields === void 0 ? {} : { fields: extra.fields }
814
- }, (value) => ({ id: textOf(recordOf(value, "create_calendar")["id"]) })),
857
+ createCalendar: (organizationId, name, extra = {}) => {
858
+ const attrs = attributesOf(extra);
859
+ return call("create_calendar", {
860
+ tenant: organizationId,
861
+ name,
862
+ tz: extra.tz ?? "UTC",
863
+ owner_type: extra.ownerType ?? null,
864
+ owner_id: extra.ownerId ?? null,
865
+ ...extra.fields === void 0 ? {} : { fields: extra.fields },
866
+ ...Object.keys(attrs).length === 0 ? {} : { attrs }
867
+ }, (value) => ({ id: textOf(recordOf(value, "create_calendar")["id"]) }));
868
+ },
869
+ updateCalendar: (id, attributes) => call("update_calendar", {
870
+ calendar_id: id,
871
+ attrs: {
872
+ ...attributesOf(attributes),
873
+ ...attributes.name === void 0 ? {} : { name: attributes.name },
874
+ ...attributes.tz === void 0 ? {} : { tz: attributes.tz }
875
+ }
876
+ }, (value) => value === true),
815
877
  deleteCalendar: (id) => call("delete_calendar", { calendar_id: id }, (value) => value === true),
816
878
  listCalendars: (organizationId) => call("list_calendars", { tenant: organizationId }, (value) => recordsOf(value, "list_calendars").map((row) => {
817
879
  const extra = {};
818
880
  for (const key of [
819
881
  "color",
820
882
  "ownerType",
821
- "ownerId"
883
+ "ownerId",
884
+ "description",
885
+ "rank"
822
886
  ]) {
823
887
  const found = optionalText(row[key]);
824
888
  if (found !== void 0) extra[key] = found;
@@ -828,6 +892,8 @@ function createCalendar(options) {
828
892
  name: textOf(row["name"]),
829
893
  tz: optionalText(row["tz"]) ?? "UTC",
830
894
  ...extra,
895
+ ...row["visibility"] === void 0 ? {} : { visibility: oneOf(row["visibility"], ["shared", "private"], "shared") },
896
+ ...typeof row["isDefault"] === "boolean" ? { isDefault: row["isDefault"] } : {},
831
897
  ...isRecord(row["fields"]) ? { fields: { ...row["fields"] } } : {}
832
898
  };
833
899
  })),
@@ -852,6 +918,7 @@ function createCalendar(options) {
852
918
  ...changes,
853
919
  rrule: null,
854
920
  exdates: [],
921
+ ...series.rdates === void 0 ? {} : { rdates: [] },
855
922
  recurrenceId: series.id,
856
923
  originalStart: occurrence.originalStart
857
924
  });
@@ -894,7 +961,10 @@ function createCalendar(options) {
894
961
  original_start: occurrence.originalStart.toString()
895
962
  }, (value) => value === true);
896
963
  },
897
- setAttendee: (eventId, attendee) => call("set_calendar_attendee", {
964
+ setAttendee: (eventId, attendee) => attendee.email === void 0 || attendee.subjectType !== void 0 || attendee.subjectId !== void 0 || attendee.organizer !== void 0 || attendee.optional !== void 0 ? call("set_calendar_attendee", {
965
+ event_id: eventId,
966
+ attendee: { ...attendee }
967
+ }, (value) => isRecord(value) && typeof value["id"] === "string") : call("set_calendar_attendee", {
898
968
  event_id: eventId,
899
969
  email: attendee.email,
900
970
  name: attendee.name ?? null,
@@ -905,6 +975,20 @@ function createCalendar(options) {
905
975
  event_id: eventId,
906
976
  email
907
977
  }, (value) => value === true),
978
+ removeAttendeeById: (attendeeId) => call("remove_calendar_attendee", { attendee_id: attendeeId }, (value) => value === true),
979
+ setGrant: (calendarId, userId, role) => call("set_calendar_grant", {
980
+ calendar_id: calendarId,
981
+ user_id: userId,
982
+ role
983
+ }, (value) => value === true),
984
+ removeGrant: (calendarId, userId) => call("remove_calendar_grant", {
985
+ calendar_id: calendarId,
986
+ user_id: userId
987
+ }, (value) => value === true),
988
+ grants: (calendarId) => call("list_calendar_grants", { calendar_id: calendarId }, (value) => recordsOf(value, "list_calendar_grants").map((row) => ({
989
+ userId: textOf(row["userId"]),
990
+ role: oneOf(row["role"], ["viewer", "editor"], "viewer")
991
+ }))),
908
992
  respond: (eventId, response) => call("respond_calendar_event", {
909
993
  event_id: eventId,
910
994
  response
@@ -936,6 +1020,11 @@ function createCalendar(options) {
936
1020
  tz: optionalText(info["tz"]) ?? "UTC"
937
1021
  });
938
1022
  }),
1023
+ userFeed: (token) => call("calendar_user_feed", { token }, (value) => {
1024
+ if (value === null || value === void 0) return null;
1025
+ const row = recordOf(value, "calendar_user_feed");
1026
+ return toIcs(recordsOf(row["events"], "calendar_user_feed").map(calendarEventOf));
1027
+ }),
939
1028
  setWorkingHours: (organizationId, input) => call("set_calendar_working_hours", {
940
1029
  tenant: organizationId,
941
1030
  user_id: input.userId ?? null,
@@ -1079,6 +1168,7 @@ function createCalendarController(options) {
1079
1168
  /** The `calendar` block's event types, for its manifest and `onBlockEvent`. */
1080
1169
  const calendarEvents = defineEvents({
1081
1170
  "calendar.created": event(),
1171
+ "calendar.updated": event(),
1082
1172
  "calendar_event.created": event(),
1083
1173
  "calendar_event.updated": event(),
1084
1174
  "calendar_event.deleted": event()
@@ -1144,6 +1234,16 @@ const calendarEventInputSchema = entitySchema({
1144
1234
  optional: true,
1145
1235
  array: true
1146
1236
  },
1237
+ rdates: {
1238
+ kind: "instant",
1239
+ optional: true,
1240
+ array: true
1241
+ },
1242
+ visibility: {
1243
+ kind: "enum",
1244
+ values: ["public", "private"],
1245
+ optional: true
1246
+ },
1147
1247
  subjectType: {
1148
1248
  kind: "string",
1149
1249
  optional: true,
@@ -2,13 +2,13 @@
2
2
  import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
- import { Ct as Events, j as CommerceEventData } from "../../events-vcqenSYU.js";
5
+ import { Ct as Events, j as CommerceEventData } from "../../events-Cc9DDQWH.js";
6
6
  import { n as Logger } from "../../logger-DWVYUmwi.js";
7
7
  import { i as CursorPageOptions, n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DZN2w69m.js";
10
10
  import { h as FilterQuery } from "../../filter-query-BXLs72G9.js";
11
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DCAiOrNX.js";
11
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DibVN37N.js";
12
12
  import { n as Money } from "../../money-BNRdJQzA.js";
13
13
  import { t as RankNeighbors } from "../../rank-result-Bwe7igy-.js";
14
14
  //#region src/blocks/catalog/catalog.d.ts