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
@@ -1,15 +1,15 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
4
- import { A as CollaborationEventData, Ct as Events } from "../../events-vcqenSYU.js";
4
+ import { A as CollaborationEventData, 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, 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
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
10
- import { p as SubscriptionStatus } from "../../topic-gTVjLGTk.js";
11
- import { n as TopicPort } from "../../watch-topic-C6HhbnVz.js";
12
- import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
9
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
10
+ import { p as SubscriptionStatus } from "../../topic-CpsKVBot.js";
11
+ import { n as TopicPort } from "../../watch-topic-BaMZX139.js";
12
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
13
13
  //#region src/blocks/reactions/reactions.d.ts
14
14
  interface ReactionsOptions extends BlockTemporalOptions, BlockTenantOptions {
15
15
  readonly transport: BlockTransport;
@@ -3,12 +3,12 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { i as RowFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
5
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
6
- import { Ct as Events, et as SaasSubjectEventData } from "../../events-vcqenSYU.js";
6
+ import { Ct as Events, et as SaasSubjectEventData } from "../../events-Cc9DDQWH.js";
7
7
  import { n as Logger } from "../../logger-DWVYUmwi.js";
8
8
  import { a as BlockTenantOptions } from "../../block-helpers-CRpAHrp_.js";
9
9
  import { t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
10
10
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
11
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
11
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DibVN37N.js";
12
12
  import { a as UndoToken } from "../../undo-B1jwnVyN.js";
13
13
  //#region src/blocks/relations/relations.d.ts
14
14
  interface LinkInput<F extends object = Record<never, never>> {
@@ -3,14 +3,14 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { i as RowFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
5
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
6
- import { Ct as Events, et as SaasSubjectEventData } from "../../events-vcqenSYU.js";
6
+ import { Ct as Events, et as SaasSubjectEventData } from "../../events-Cc9DDQWH.js";
7
7
  import { n as Logger } from "../../logger-DWVYUmwi.js";
8
8
  import { a as BlockTenantOptions } from "../../block-helpers-CRpAHrp_.js";
9
9
  import { t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
10
10
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
11
11
  import { g as JobHandler } from "../../types-Czq9Xtpa.js";
12
- import { I as Notifier, c as BlockOf } from "../../define-block-DCAiOrNX.js";
13
- import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-D_pwXlBs.js";
12
+ import { I as Notifier, c as BlockOf } from "../../define-block-DibVN37N.js";
13
+ import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-DtzreCAq.js";
14
14
  //#region src/blocks/reminders/rrule.d.ts
15
15
  interface ExpandInput {
16
16
  readonly dtstart: Temporal.ZonedDateTime;
@@ -2,12 +2,12 @@
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
- import { Ct as Events } from "../../events-vcqenSYU.js";
5
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
6
6
  import { n as Logger } from "../../logger-DWVYUmwi.js";
7
7
  import { r as BlockTemporalOptions } 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
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
10
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
11
11
  //#region src/blocks/reviews/reviews.d.ts
12
12
  interface ReviewsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
13
13
  readonly transport: BlockTransport;
@@ -1,13 +1,13 @@
1
1
  import { D as ValidationIssue, T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
2
2
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
3
3
  import { i as RowFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
4
- import { $ as SaasEventData, Ct as Events } from "../../events-vcqenSYU.js";
4
+ import { $ as SaasEventData, Ct as Events } from "../../events-Cc9DDQWH.js";
5
5
  import { n as Logger } from "../../logger-DWVYUmwi.js";
6
6
  import { t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
7
7
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
8
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
9
- import { p as ListQueryInput } from "../../list-query-XYfUZb0j.js";
10
- import { n as Controller } from "../../controller-B6vWdKSa.js";
8
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
9
+ import { p as ListQueryInput } from "../../list-query-XHoYDlRN.js";
10
+ import { n as Controller } from "../../controller-CwGXms17.js";
11
11
  import { t as RankNeighbors } from "../../rank-result-Bwe7igy-.js";
12
12
  //#region src/blocks/saved-views/saved-views.d.ts
13
13
  export declare const SAVED_VIEW_KINDS: readonly ["table", "board", "calendar", "timeline", "gantt"];
@@ -1,8 +1,8 @@
1
- import { Ct as Events } from "../../events-vcqenSYU.js";
1
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
2
2
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
3
3
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DZN2w69m.js";
4
4
  import { t as ScoresSqlOptions } from "../../options-D0bzZx9a.js";
5
- import { c as BlockOf, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
5
+ import { c as BlockOf, rn as RecordBinding } from "../../define-block-DibVN37N.js";
6
6
  import { a as ScoreMetric, c as ScoreModelInput, d as Scores, f as ScoresOptions, i as ScoreBreakdown, l as ScoreModelVersion, n as Score, o as ScoreModel, p as createScores, r as ScoreBand, s as ScoreModelDetail, t as ComputedScore, u as ScoreRule } from "../../scores-B2BiNuVJ.js";
7
7
  //#region src/blocks/scores/events.d.ts
8
8
  /** `score_model.saved` and `score_model.deleted`. */
@@ -4,10 +4,10 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
4
4
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, 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";
8
- import { i as EventSink } from "../../cloud-event-CzZTJkXv.js";
9
- import { i as KeyboardPort } from "../../ports-BbBJVyS0.js";
10
- import { n as Controller } from "../../controller-B6vWdKSa.js";
7
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
8
+ import { i as EventSink } from "../../cloud-event-DcJwder2.js";
9
+ import { i as KeyboardPort } from "../../ports-Bw7uxPd_.js";
10
+ import { n as Controller } from "../../controller-CwGXms17.js";
11
11
  //#region src/blocks/search/search.d.ts
12
12
  interface SearchOptions extends Pick<BlockOptions, "transport" | "service" | "schema" | "mappers"> {
13
13
  /** `withBlockHooks` hooks around the methods. */
@@ -24,6 +24,8 @@ interface SearchHit {
24
24
  readonly url: string | null;
25
25
  /** A fragment of the body around the match, without markup. */
26
26
  readonly snippet: string | null;
27
+ /** The record type's `search.description` column, when it declares one. */
28
+ readonly description?: string;
27
29
  readonly score: number;
28
30
  }
29
31
  interface SearchQuery {
@@ -13,7 +13,9 @@ const vectorText = (values) => {
13
13
  return `[${values.join(",")}]`;
14
14
  };
15
15
  function hitOf(row) {
16
+ const description = optionalText(row["description"]);
16
17
  return {
18
+ ...description === void 0 ? {} : { description },
17
19
  organizationId: textOf(row["organizationId"]),
18
20
  subjectType: textOf(row["subjectType"]),
19
21
  subjectId: textOf(row["subjectId"]),
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
- import { Ct as Events } from "../../events-vcqenSYU.js";
3
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
4
4
  import { n as Logger } from "../../logger-DWVYUmwi.js";
5
5
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
6
6
  import { s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
7
7
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
8
- import { n as VaultCredentials } from "../../vault-O-YlAyHb.js";
9
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
8
+ import { n as VaultCredentials } from "../../vault-BghaujrZ.js";
9
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
10
10
  import { n as Jwks } from "../../jws-D0toeQlA.js";
11
11
  import { o as Signer } from "../../signing-keys-BNDUxpQL.js";
12
12
  //#region src/blocks/security-events/set.d.ts
@@ -1,14 +1,14 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
- import { Ct as Events } from "../../events-vcqenSYU.js";
4
- import { F as SegmentEventData, I as SegmentMemberEventData } from "../../index-CG9rA8H8.js";
3
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
4
+ import { F as SegmentEventData, I as SegmentMemberEventData } from "../../index-C_qlBJ3k.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 { n as segmentsSqlOptions, t as SegmentsSqlOptions } from "../../options-D-OOO9V2.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
  //#region src/blocks/segments/segments.d.ts
13
13
  /** A saved filter over one subject type, with its materialized members. */
14
14
  interface Segment {
@@ -1,13 +1,13 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { 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 { n as BlockOptions } 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 { n as sequencesSqlOptions, t as SequencesSqlOptions } from "../../options-B0YZtAkb.js";
10
- import { F as BlockPorts, Sn as EntitySchema, V as MailSendDraft, c as BlockOf } from "../../define-block-DCAiOrNX.js";
10
+ import { F as BlockPorts, Sn as EntitySchema, V as MailSendDraft, c as BlockOf } from "../../define-block-DibVN37N.js";
11
11
  //#region src/blocks/sequences/sequences.d.ts
12
12
  declare const SEQUENCE_STATUSES: readonly ["draft", "active", "paused", "archived"];
13
13
  declare const RUN_STATUSES: readonly ["active", "paused", "completed", "exited"];
@@ -2,12 +2,12 @@
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { i as RowFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
- import { $ as SaasEventData, Ct as Events } from "../../events-vcqenSYU.js";
5
+ import { $ as SaasEventData, Ct as Events } from "../../events-Cc9DDQWH.js";
6
6
  import { n as Logger } from "../../logger-DWVYUmwi.js";
7
7
  import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.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 { c as BlockOf } from "../../define-block-DCAiOrNX.js";
10
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
11
11
  //#region src/blocks/service-accounts/service-accounts.d.ts
12
12
  /** The `app_metadata` key that marks an `auth.users` row as a service principal. */
13
13
  export declare const SERVICE_PRINCIPAL_CLAIM = "bsb_service_principal";
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { b as DbError, f as Result } from "../../result-DZeA5KS6.js";
3
- import { r as Block } from "../../define-block-DCAiOrNX.js";
4
- import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
3
+ import { r as Block } from "../../define-block-DibVN37N.js";
4
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
5
5
  import { t as AuthReply } from "../../auth-reply-Dj124sbX.js";
6
6
  //#region src/blocks/sessions/client.d.ts
7
7
  /** An OAuth client as the Auth OAuth server describes it. */
@@ -1,11 +1,11 @@
1
1
  import { b as DbError, f as Result, t as AsyncResult } from "../../result-DZeA5KS6.js";
2
- import { Ct as Events, rt as SettingEventData } from "../../events-vcqenSYU.js";
2
+ import { Ct as Events, rt as SettingEventData } from "../../events-Cc9DDQWH.js";
3
3
  import { n as Logger } from "../../logger-DWVYUmwi.js";
4
4
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, 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";
8
- import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
7
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
9
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
10
10
  //#region src/blocks/settings/settings.d.ts
11
11
  /**
@@ -3,11 +3,11 @@ import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
5
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
6
- import { $ as SaasEventData, Ct as Events, et as SaasSubjectEventData } from "../../events-vcqenSYU.js";
6
+ import { $ as SaasEventData, Ct as Events, et as SaasSubjectEventData } from "../../events-Cc9DDQWH.js";
7
7
  import { n as Logger } from "../../logger-DWVYUmwi.js";
8
8
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
9
9
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
10
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
10
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DibVN37N.js";
11
11
  //#region src/blocks/share-links/share-links.d.ts
12
12
  interface ShareLinksOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
13
13
  /**
@@ -35,6 +35,14 @@ interface ShareLink<F extends object = Record<never, never>> {
35
35
  readonly role: string;
36
36
  readonly expiresAt: Temporal.Instant | null;
37
37
  readonly revokedAt: Temporal.Instant | null;
38
+ /** With `options.fullRows`: the organization the link was created in. */
39
+ readonly organizationId?: string;
40
+ /** With `options.fullRows`: the record the link opens. */
41
+ readonly subject?: RecordRef;
42
+ /** With `options.fullRows`: who created the link. */
43
+ readonly createdBy?: string;
44
+ /** With `options.fullRows` and a `createdAt` column: when it was created. */
45
+ readonly createdAt?: Temporal.Instant;
38
46
  /** The extra columns, keyed by database name. */
39
47
  readonly fields: ExtraFields<F>;
40
48
  }
@@ -73,6 +81,10 @@ interface ResolvedShareLink {
73
81
  /** How many times the link may be opened, when it has a limit. */
74
82
  readonly maxUses?: number;
75
83
  }
84
+ /** What `find` returns: the live link, with its creator. */
85
+ interface FoundShareLink extends ResolvedShareLink {
86
+ readonly createdBy?: string;
87
+ }
76
88
  /**
77
89
  * `F` is the extra fields `options.fields` describes. `create` and `recordView`
78
90
  * act in the block's `tenant`.
@@ -91,9 +103,22 @@ interface ShareLinks<F extends object = Record<never, never>> {
91
103
  recordView(subject: RecordRef, viewerKind: string, viewer?: string): AsyncResult<boolean>;
92
104
  /**
93
105
  * The links to `subject` the caller created or may read (`share_links.read`),
94
- * revoked ones included.
106
+ * revoked ones included unless `includeRevoked` is `false` (which needs
107
+ * `options.fullRows`).
108
+ */
109
+ list(subject: RecordRef, options?: {
110
+ readonly includeRevoked?: boolean;
111
+ }): AsyncResult<readonly ShareLink<F>[]>;
112
+ /**
113
+ * With `options.tokenHash`: a link for a token the caller made, given as its
114
+ * sha256 hex. The link has no token to return.
115
+ */
116
+ createHashed(subject: RecordRef, tokenHash: string, options?: CreateShareLinkOptions<F>): AsyncResult<Omit<CreatedShareLink<F>, "token">>;
117
+ /**
118
+ * With `options.tokenHash`, for the service role: the live link a token hash
119
+ * names, or `null`. It counts no use.
95
120
  */
96
- list(subject: RecordRef): AsyncResult<readonly ShareLink<F>[]>;
121
+ find(tokenHash: string): AsyncResult<FoundShareLink | null>;
97
122
  /** Stars or unstars `subject` for the caller. */
98
123
  setState(subject: RecordRef, starred: boolean): AsyncResult<boolean>;
99
124
  }
@@ -136,4 +161,4 @@ export declare const shareLinksBinding: RecordBinding<ShareLinks, readonly Share
136
161
  /** The `share-links` block's manifest (ADR 0029). */
137
162
  export declare const shareLinksBlock: BlockOf<"share-links", typeof createShareLinks, ShareLinksEvents, Record<never, never>, never, typeof shareLinksBinding>;
138
163
  //#endregion
139
- export type { CreateShareLinkOptions, CreatedShareLink, ResolvedShareLink, ShareLink, ShareLinkInput, ShareLinks, ShareLinksEvents, ShareLinksOptions, ShareLinksWrites };
164
+ export type { CreateShareLinkOptions, CreatedShareLink, FoundShareLink, ResolvedShareLink, ShareLink, ShareLinkInput, ShareLinks, ShareLinksEvents, ShareLinksOptions, ShareLinksWrites };
@@ -1,5 +1,5 @@
1
1
  import { n as isRecord } from "../../guards-6F2bCtQR.js";
2
- import { t as shareLinksSqlOptions } from "../../options-CTv-xmbA.js";
2
+ import { t as shareLinksSqlOptions } from "../../options-BSsYXjhC.js";
3
3
  import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
4
4
  import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText, y as nullableInstant, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
5
5
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
@@ -10,6 +10,22 @@ import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
10
10
  import { i as subjectRefOf } from "../../block-subjects-DFSuFY1a.js";
11
11
  import { t as requireOrganization } from "../../block-tenant-DHp7subc.js";
12
12
  //#region src/blocks/share-links/share-links.ts
13
+ /** A resolved link row as `ResolvedShareLink`. */
14
+ function resolvedOf(value, label) {
15
+ const row = recordOf(value, label);
16
+ const versionId = optionalText(row["versionId"]);
17
+ const expiresAt = optionalInstant(row["expiresAt"]);
18
+ const maxUses = typeof row["maxUses"] === "number" ? row["maxUses"] : void 0;
19
+ return {
20
+ id: textOf(row["id"]),
21
+ organizationId: textOf(row["organizationId"]),
22
+ subject: subjectRefOf(row["subjectType"], row["subjectId"]),
23
+ role: textOf(row["role"]),
24
+ ...versionId === void 0 ? {} : { versionId },
25
+ ...expiresAt === void 0 ? {} : { expiresAt },
26
+ ...maxUses === void 0 ? {} : { maxUses }
27
+ };
28
+ }
13
29
  const fieldsOf = (row) => isRecord(row["fields"]) ? row["fields"] : {};
14
30
  /** The `share-links` SQL module as typed calls. */
15
31
  function createShareLinks(options) {
@@ -39,22 +55,32 @@ function createShareLinks(options) {
39
55
  }).andThen(fields.row)));
40
56
  },
41
57
  revoke: (id) => call("revoke_share_link", { id }, (value) => value === true),
42
- resolve: (token) => call("resolve_share_link", { token }, (value) => {
58
+ resolve: (token) => call("resolve_share_link", { token }, (value) => value === null || value === void 0 ? null : resolvedOf(value, "resolve_share_link")),
59
+ find: (tokenHash) => call("find_share_link", { token_hash: tokenHash }, (value) => {
43
60
  if (value === null || value === void 0) return null;
44
- const row = recordOf(value, "resolve_share_link");
45
- const versionId = optionalText(row["versionId"]);
46
- const expiresAt = optionalInstant(row["expiresAt"]);
47
- const maxUses = typeof row["maxUses"] === "number" ? row["maxUses"] : void 0;
61
+ const createdBy = optionalText(recordOf(value, "find_share_link")["createdBy"]);
48
62
  return {
49
- id: textOf(row["id"]),
50
- organizationId: textOf(row["organizationId"]),
51
- subject: subjectRefOf(row["subjectType"], row["subjectId"]),
52
- role: textOf(row["role"]),
53
- ...versionId === void 0 ? {} : { versionId },
54
- ...expiresAt === void 0 ? {} : { expiresAt },
55
- ...maxUses === void 0 ? {} : { maxUses }
63
+ ...resolvedOf(value, "find_share_link"),
64
+ ...createdBy === void 0 ? {} : { createdBy }
56
65
  };
57
66
  }),
67
+ createHashed: (subject, tokenHash, link = {}) => tenant().andThen((organizationId) => fields.args(link.fields).andThen((checked) => call("create_share_link", {
68
+ tenant: organizationId,
69
+ subject_type: subject.type,
70
+ subject_id: subject.id,
71
+ role: link.role ?? "view",
72
+ version_id: link.versionId ?? null,
73
+ expires_at: instantArg(link.expiresAt) ?? null,
74
+ max_uses: link.maxUses ?? null,
75
+ token_hash: tokenHash,
76
+ fields: checked
77
+ }, (value) => {
78
+ const row = recordOf(value, "create_share_link");
79
+ return {
80
+ id: textOf(row["id"]),
81
+ fields: fieldsOf(row)
82
+ };
83
+ }).andThen(fields.row))),
58
84
  recordView: (subject, viewerKind, viewer) => tenant().andThen((organizationId) => call("record_view", {
59
85
  tenant: organizationId,
60
86
  subject_type: subject.type,
@@ -62,16 +88,26 @@ function createShareLinks(options) {
62
88
  viewer_kind: viewerKind,
63
89
  viewer: viewer ?? null
64
90
  }, (value) => value === true)),
65
- list: (subject) => call("list_share_links", {
91
+ list: (subject, filter = {}) => call("list_share_links", {
66
92
  subject_type: subject.type,
67
- subject_id: subject.id
68
- }, (value) => recordsOf(value, "list_share_links").map((row) => ({
69
- id: textOf(row["id"]),
70
- role: textOf(row["role"]),
71
- expiresAt: nullableInstant(row["expiresAt"]),
72
- revokedAt: nullableInstant(row["revokedAt"]),
73
- fields: fieldsOf(row)
74
- }))).andThen(fields.rows),
93
+ subject_id: subject.id,
94
+ ...filter.includeRevoked === void 0 ? {} : { include_revoked: filter.includeRevoked }
95
+ }, (value) => recordsOf(value, "list_share_links").map((row) => {
96
+ const organizationId = optionalText(row["organizationId"]);
97
+ const createdBy = optionalText(row["createdBy"]);
98
+ const createdAt = optionalInstant(row["createdAt"]);
99
+ return {
100
+ id: textOf(row["id"]),
101
+ role: textOf(row["role"]),
102
+ expiresAt: nullableInstant(row["expiresAt"]),
103
+ revokedAt: nullableInstant(row["revokedAt"]),
104
+ ...organizationId === void 0 ? {} : { organizationId },
105
+ ...row["subjectType"] === void 0 ? {} : { subject: subjectRefOf(row["subjectType"], row["subjectId"]) },
106
+ ...createdBy === void 0 ? {} : { createdBy },
107
+ ...createdAt === void 0 ? {} : { createdAt },
108
+ fields: fieldsOf(row)
109
+ };
110
+ })).andThen(fields.rows),
75
111
  setState: (subject, starred) => call("set_user_state", {
76
112
  subject_type: subject.type,
77
113
  subject_id: subject.id,
@@ -3,13 +3,13 @@ import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
5
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
6
- import { Ct as Events } from "../../events-vcqenSYU.js";
6
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
7
7
  import { n as Logger } from "../../logger-DWVYUmwi.js";
8
8
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
9
9
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
10
10
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DZN2w69m.js";
11
11
  import { n as shipmentsSqlOptions, t as ShipmentsSqlOptions } from "../../options-BbLDAp7G.js";
12
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
12
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DibVN37N.js";
13
13
  import { n as Money } from "../../money-BNRdJQzA.js";
14
14
  import { r as WebhookInput } from "../../signatures-Dkx9OE8j.js";
15
15
  import { C as TrackingStatus, S as TRACKING_STATUSES, _ as trackingUpdatesOf, a as FlatRateCarrierOptions, b as SHIPMENT_STATUSES, c as ShipmentLabel, d as ShipmentRate, f as ShipmentRateRequest, g as shipmentCarrierOf, h as invalidShipmentRequest, i as CarrierTrackingUpdate, l as ShipmentLabelRequest, m as flatRateCarrier, n as CarrierCancelInput, o as FlatRateService, p as ShippingProvider, r as CarrierTrackingEvent, s as ShipmentAddress, t as CarrierCallOptions, u as ShipmentParcel, v as LABEL_FORMATS, x as ShipmentStatus, y as LabelFormat } from "../../carrier-KzeYXVrW.js";
@@ -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 { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
- import { Ct as Events, it as SignatureEventData } from "../../events-vcqenSYU.js";
5
+ import { Ct as Events, it as SignatureEventData } from "../../events-Cc9DDQWH.js";
6
6
  import { n as Logger } from "../../logger-DWVYUmwi.js";
7
7
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.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
10
  import { t as SignaturesSqlOptions } from "../../options-C7C5OhmL.js";
11
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
11
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
12
12
  //#region src/blocks/signatures/signatures.d.ts
13
13
  interface SignaturesOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
14
14
  /**
@@ -1,6 +1,6 @@
1
- import { Ct as Events } from "../../events-vcqenSYU.js";
1
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
2
2
  import { s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
3
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
3
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
4
4
  import { a as JwsError, c as VerifyCompactOptions, d as verifyCompact, i as JwsAlgorithm, l as jwkThumbprint, n as Jwks, o as SigningAlgorithm, s as VerifiedJws, t as Jwk, u as jwksOf } from "../../jws-D0toeQlA.js";
5
5
  import { a as Signature, c as SigningKeyOwner, d as createSigningKeys, f as jwtType, i as PLATFORM_OWNER, l as SigningKeys, n as JwksOptions, o as Signer, r as JwksResponseOptions, s as SignerOptions, t as CreatedSigningKey, u as SigningKeysOptions } from "../../signing-keys-BNDUxpQL.js";
6
6
  //#region src/blocks/signing-keys/events.d.ts
@@ -3,13 +3,13 @@ import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
5
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
6
- import { Ct as Events } from "../../events-vcqenSYU.js";
7
- import { L as SlaEventData } from "../../index-CG9rA8H8.js";
6
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
7
+ import { L as SlaEventData } from "../../index-C_qlBJ3k.js";
8
8
  import { n as Logger } from "../../logger-DWVYUmwi.js";
9
9
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
10
10
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
11
11
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DZN2w69m.js";
12
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
12
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DibVN37N.js";
13
13
  //#region src/blocks/sla/sla.d.ts
14
14
  type SlaMetric = "first_response" | "next_response" | "resolution";
15
15
  type SlaState = "running" | "paused" | "met" | "breached";
@@ -1,10 +1,10 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { f as Result } from "../../result-DZeA5KS6.js";
3
- import { Ct as Events, X as OrganizationDomainEventData, Z as OrganizationEventData, at as SsoProviderEventData, nt as ScimEventData } from "../../events-vcqenSYU.js";
3
+ import { Ct as Events, X as OrganizationDomainEventData, Z as OrganizationEventData, at as SsoProviderEventData, nt as ScimEventData } from "../../events-Cc9DDQWH.js";
4
4
  import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
6
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
7
- import { l as ApiKeys } from "../../api-keys-D5k63K6y.js";
6
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
7
+ import { l as ApiKeys } from "../../api-keys-ClhKBDcc.js";
8
8
  import { _ as dohResolver, a as SamlProviderInput, c as SsoAdmin, d as SsoDomain, f as SsoOptions, g as createSsoAdmin, h as createSso, i as SamlMetadata, l as SsoAdminOptions, m as TxtResolver, n as DomainRecord, o as Sso, p as SsoProvider, r as OrganizationDomain, s as SsoActor, t as DohResolverOptions, u as SsoAuthAdmin } from "../../sso-B0Txid2-.js";
9
9
  //#region src/blocks/sso/scim-filter.d.ts
10
10
  type CompareOp = "eq" | "ne" | "co" | "sw" | "ew" | "gt" | "ge" | "lt" | "le";
@@ -1,11 +1,11 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
4
- import { Ct as Events, et as SaasSubjectEventData } from "../../events-vcqenSYU.js";
4
+ import { Ct as Events, et as SaasSubjectEventData } from "../../events-Cc9DDQWH.js";
5
5
  import { n as Logger } from "../../logger-DWVYUmwi.js";
6
6
  import { i as CursorPageOptions, n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
7
7
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
8
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
8
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
9
9
  //#region src/blocks/state-machine/state-machine.d.ts
10
10
  interface StateMachineOptions<S extends string = string> extends BlockOptions {
11
11
  /** `withBlockHooks` hooks around the client's methods. */
@@ -1,8 +1,8 @@
1
1
  import { b as DbError } from "../../result-DZeA5KS6.js";
2
2
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
4
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
5
- import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
4
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
5
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
6
6
  import { t as subjectKey } from "../../block-subjects-CphkQPxp.js";
7
7
  import { c as Subjects, d as MY_WORK_KINDS, f as MyWorkKind, l as SubjectsOptions, n as MyWorkItem, o as ResolvedSubject, r as MyWorkOptions, s as SUBJECT_TITLES_LIMIT, t as MY_WORK_LIMIT, u as createSubjects } from "../../subjects-BpIEN1MS.js";
8
8
  //#region src/blocks/subjects/manifest.d.ts
@@ -2,12 +2,12 @@ import { b as DbError, f as Result, t as AsyncResult } from "../../result-DZeA5K
2
2
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
3
3
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
4
4
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
5
- import { $ as SaasEventData, Ct as Events, et as SaasSubjectEventData } from "../../events-vcqenSYU.js";
5
+ import { $ as SaasEventData, Ct as Events, et as SaasSubjectEventData } from "../../events-Cc9DDQWH.js";
6
6
  import { n as Logger } from "../../logger-DWVYUmwi.js";
7
7
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
8
8
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
9
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
9
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DibVN37N.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
11
11
  import { t as RankNeighbors } from "../../rank-result-Bwe7igy-.js";
12
12
  //#region src/blocks/tags/tags.d.ts
13
13
  interface TagsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
@@ -43,12 +43,24 @@ interface CreateTagInput<F extends object = Record<never, never>> {
43
43
  readonly name: string;
44
44
  readonly color?: string;
45
45
  readonly description?: string;
46
+ /**
47
+ * The slug, lowercase letters and digits joined by single hyphens. Derived
48
+ * from `name` when left out.
49
+ */
50
+ readonly slug?: string;
46
51
  /** The extra columns, validated by the `fields` schema. */
47
52
  readonly fields?: Partial<F>;
48
53
  }
49
- /** The patch `tags.update` takes. */
54
+ /**
55
+ * The patch `tags.update` takes. A key that is left out keeps its value; `null`
56
+ * clears `color` or `description`.
57
+ */
50
58
  interface UpdateTagInput<F extends object = Record<never, never>> {
51
59
  readonly name?: string;
60
+ readonly slug?: string;
61
+ readonly kind?: string;
62
+ readonly color?: string | null;
63
+ readonly description?: string | null;
52
64
  /** The extra columns to set; the others keep their values. */
53
65
  readonly fields?: Partial<F>;
54
66
  }
@@ -66,7 +78,10 @@ interface ListTagsParams {
66
78
  interface Tags<F extends object = Record<never, never>> {
67
79
  /** Creates a tag in the tenant. */
68
80
  create(input: CreateTagInput<F>): AsyncResult<Tag<F>>;
69
- /** Renames a tag and sets the extra columns `fields` names. */
81
+ /**
82
+ * Renames a tag, sets its slug, kind, color or description, and sets the
83
+ * extra columns `fields` names.
84
+ */
70
85
  update(id: string, patch: UpdateTagInput<F>): AsyncResult<boolean>;
71
86
  /**
72
87
  * Moves a tag between the tags with rank keys `previous` and `next`. Resolves