@powerhousedao/shared 6.2.3-dev.9 → 6.2.3

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 (270) hide show
  1. package/dist/analytics/index.d.ts +4 -4
  2. package/dist/analytics/index.d.ts.map +1 -1
  3. package/dist/analytics/index.js +25 -24
  4. package/dist/analytics/index.js.map +1 -1
  5. package/dist/clis/args/{access-token-To5LaIfL.mjs → access-token-3Hqv_U8I.mjs} +2 -2
  6. package/dist/clis/args/{access-token-To5LaIfL.mjs.map → access-token-3Hqv_U8I.mjs.map} +1 -1
  7. package/dist/clis/args/access-token-C5sKsH2O.d.mts +16 -0
  8. package/dist/clis/args/access-token-C5sKsH2O.d.mts.map +1 -0
  9. package/dist/clis/args/access-token.d.mts +3 -2
  10. package/dist/clis/args/access-token.mjs +1 -1
  11. package/dist/clis/args/{common-CcYbXrBx.mjs → common-BXabdhiO.mjs} +30 -7
  12. package/dist/clis/args/common-BXabdhiO.mjs.map +1 -0
  13. package/dist/clis/args/common-Bnm859xU.d.mts +186 -0
  14. package/dist/clis/args/common-Bnm859xU.d.mts.map +1 -0
  15. package/dist/clis/args/common.d.mts +3 -2
  16. package/dist/clis/args/common.mjs +1 -1
  17. package/dist/clis/args/{connect-BVVvCmL9.mjs → connect-BG3HkYBk.mjs} +8 -3
  18. package/dist/clis/args/connect-BG3HkYBk.mjs.map +1 -0
  19. package/dist/clis/args/connect-DjeiqXus.d.mts +450 -0
  20. package/dist/clis/args/connect-DjeiqXus.d.mts.map +1 -0
  21. package/dist/clis/args/connect.d.mts +3 -2
  22. package/dist/clis/args/connect.mjs +1 -1
  23. package/dist/clis/args/{generate-CA916Fvj.mjs → generate-BOItUNvP.mjs} +40 -2
  24. package/dist/clis/args/generate-BOItUNvP.mjs.map +1 -0
  25. package/dist/clis/args/generate-BPBBLeUD.d.mts +103 -0
  26. package/dist/clis/args/generate-BPBBLeUD.d.mts.map +1 -0
  27. package/dist/clis/args/generate.d.mts +3 -2
  28. package/dist/clis/args/generate.mjs +1 -1
  29. package/dist/clis/args/{help-Bqbgbalu.mjs → help-DS1NlcJQ.mjs} +15 -15
  30. package/dist/clis/args/{help-Bqbgbalu.mjs.map → help-DS1NlcJQ.mjs.map} +1 -1
  31. package/dist/clis/args/help-DVPTARGn.d.mts +190 -0
  32. package/dist/clis/args/help-DVPTARGn.d.mts.map +1 -0
  33. package/dist/clis/args/help.d.mts +3 -2
  34. package/dist/clis/args/help.mjs +1 -1
  35. package/dist/clis/args/index.d.mts +20 -19
  36. package/dist/clis/args/index.mjs +18 -18
  37. package/dist/clis/args/init-CFeTq4Cq.d.mts +52 -0
  38. package/dist/clis/args/init-CFeTq4Cq.d.mts.map +1 -0
  39. package/dist/clis/args/{init-rz9Ei7nq.mjs → init-Dvb42Y87.mjs} +2 -2
  40. package/dist/clis/args/{init-rz9Ei7nq.mjs.map → init-Dvb42Y87.mjs.map} +1 -1
  41. package/dist/clis/args/init.d.mts +3 -2
  42. package/dist/clis/args/init.mjs +1 -1
  43. package/dist/clis/args/inspect-BjRmtB86.d.mts +13 -0
  44. package/dist/clis/args/inspect-BjRmtB86.d.mts.map +1 -0
  45. package/dist/clis/args/{inspect-tckH8mSw.mjs → inspect-UNQgtuR0.mjs} +2 -2
  46. package/dist/clis/args/{inspect-tckH8mSw.mjs.map → inspect-UNQgtuR0.mjs.map} +1 -1
  47. package/dist/clis/args/inspect.d.mts +3 -2
  48. package/dist/clis/args/inspect.mjs +1 -1
  49. package/dist/clis/args/install-B0tMyUMw.d.mts +37 -0
  50. package/dist/clis/args/install-B0tMyUMw.d.mts.map +1 -0
  51. package/dist/clis/args/{install-Sz2DlCHh.mjs → install-F-27kF6m.mjs} +2 -2
  52. package/dist/clis/args/{install-Sz2DlCHh.mjs.map → install-F-27kF6m.mjs.map} +1 -1
  53. package/dist/clis/args/install.d.mts +3 -2
  54. package/dist/clis/args/install.mjs +1 -1
  55. package/dist/clis/args/{list-DM2d6f1m.mjs → list-Bkfn8Yuo.mjs} +2 -2
  56. package/dist/clis/args/{list-DM2d6f1m.mjs.map → list-Bkfn8Yuo.mjs.map} +1 -1
  57. package/dist/clis/args/list-DrbxA7JJ.d.mts +10 -0
  58. package/dist/clis/args/list-DrbxA7JJ.d.mts.map +1 -0
  59. package/dist/clis/args/list.d.mts +3 -2
  60. package/dist/clis/args/list.mjs +1 -1
  61. package/dist/clis/args/{login-DiKT5Jfu.mjs → login-CIFkQExi.mjs} +2 -2
  62. package/dist/clis/args/{login-DiKT5Jfu.mjs.map → login-CIFkQExi.mjs.map} +1 -1
  63. package/dist/clis/args/login-CXRJXg71.d.mts +25 -0
  64. package/dist/clis/args/login-CXRJXg71.d.mts.map +1 -0
  65. package/dist/clis/args/login.d.mts +3 -2
  66. package/dist/clis/args/login.mjs +1 -1
  67. package/dist/clis/args/{magic-string.es-h_0HDQBQ.mjs → magic-string.es-BWtG0AyA.mjs} +33 -27
  68. package/dist/clis/args/magic-string.es-BWtG0AyA.mjs.map +1 -0
  69. package/dist/clis/args/migrate-DkCQRL2D.d.mts +19 -0
  70. package/dist/clis/args/migrate-DkCQRL2D.d.mts.map +1 -0
  71. package/dist/clis/args/{migrate-CG_gWc4k.mjs → migrate-DwJGhc2d.mjs} +2 -2
  72. package/dist/clis/args/{migrate-CG_gWc4k.mjs.map → migrate-DwJGhc2d.mjs.map} +1 -1
  73. package/dist/clis/args/migrate.d.mts +3 -2
  74. package/dist/clis/args/migrate.mjs +1 -1
  75. package/dist/clis/args/publish-CeW4bOrl.d.mts +16 -0
  76. package/dist/clis/args/publish-CeW4bOrl.d.mts.map +1 -0
  77. package/dist/clis/args/{publish-DDZYsUfV.mjs → publish-DHqlGWmL.mjs} +2 -2
  78. package/dist/clis/args/{publish-DDZYsUfV.mjs.map → publish-DHqlGWmL.mjs.map} +1 -1
  79. package/dist/clis/args/publish.d.mts +3 -2
  80. package/dist/clis/args/publish.mjs +1 -1
  81. package/dist/clis/args/{registry-C_OVFQmI.mjs → registry-DIwES3l2.mjs} +2 -2
  82. package/dist/clis/args/{registry-C_OVFQmI.mjs.map → registry-DIwES3l2.mjs.map} +1 -1
  83. package/dist/clis/args/registry-DNH8xuaE.d.mts +17 -0
  84. package/dist/clis/args/registry-DNH8xuaE.d.mts.map +1 -0
  85. package/dist/clis/args/registry.d.mts +3 -2
  86. package/dist/clis/args/registry.mjs +1 -1
  87. package/dist/clis/args/service-BBx5GDTc.d.mts +27 -0
  88. package/dist/clis/args/service-BBx5GDTc.d.mts.map +1 -0
  89. package/dist/clis/args/{service-CHOOr0Gg.mjs → service-Cpjlyeu5.mjs} +2 -2
  90. package/dist/clis/args/{service-CHOOr0Gg.mjs.map → service-Cpjlyeu5.mjs.map} +1 -1
  91. package/dist/clis/args/service.d.mts +3 -2
  92. package/dist/clis/args/service.mjs +1 -1
  93. package/dist/clis/args/{switchboard-Dsp7nosi.mjs → switchboard-CCaAtU56.mjs} +2 -2
  94. package/dist/clis/args/{switchboard-Dsp7nosi.mjs.map → switchboard-CCaAtU56.mjs.map} +1 -1
  95. package/dist/clis/args/switchboard-RrNb1fUH.d.mts +70 -0
  96. package/dist/clis/args/switchboard-RrNb1fUH.d.mts.map +1 -0
  97. package/dist/clis/args/switchboard.d.mts +3 -2
  98. package/dist/clis/args/switchboard.mjs +1 -1
  99. package/dist/clis/args/{uninstall-CTwTX0u_.mjs → uninstall-3U0B8g5c.mjs} +2 -2
  100. package/dist/clis/args/{uninstall-CTwTX0u_.mjs.map → uninstall-3U0B8g5c.mjs.map} +1 -1
  101. package/dist/clis/args/uninstall-CDx7lwxn.d.mts +28 -0
  102. package/dist/clis/args/uninstall-CDx7lwxn.d.mts.map +1 -0
  103. package/dist/clis/args/uninstall.d.mts +3 -2
  104. package/dist/clis/args/uninstall.mjs +1 -1
  105. package/dist/clis/args/unpublish-CEDsk6uv.d.mts +22 -0
  106. package/dist/clis/args/unpublish-CEDsk6uv.d.mts.map +1 -0
  107. package/dist/clis/args/{unpublish-BPMkGEg5.mjs → unpublish-s9zUh6Gw.mjs} +2 -2
  108. package/dist/clis/args/{unpublish-BPMkGEg5.mjs.map → unpublish-s9zUh6Gw.mjs.map} +1 -1
  109. package/dist/clis/args/unpublish.d.mts +3 -2
  110. package/dist/clis/args/unpublish.mjs +1 -1
  111. package/dist/clis/args/{vetra-b4KUu1Ax.mjs → vetra-BUNlAAPp.mjs} +2 -2
  112. package/dist/clis/args/{vetra-b4KUu1Ax.mjs.map → vetra-BUNlAAPp.mjs.map} +1 -1
  113. package/dist/clis/args/vetra-DkDaWFPi.d.mts +111 -0
  114. package/dist/clis/args/vetra-DkDaWFPi.d.mts.map +1 -0
  115. package/dist/clis/args/vetra-ports.test.d.mts +2 -1
  116. package/dist/clis/args/vetra-ports.test.mjs +285 -180
  117. package/dist/clis/args/vetra-ports.test.mjs.map +1 -1
  118. package/dist/clis/args/vetra.d.mts +3 -2
  119. package/dist/clis/args/vetra.mjs +1 -1
  120. package/dist/clis/build-config-CmdMi_wu.mjs +230 -0
  121. package/dist/clis/build-config-CmdMi_wu.mjs.map +1 -0
  122. package/dist/clis/build-config.d.mts +44 -10614
  123. package/dist/clis/build-config.d.mts.map +1 -1
  124. package/dist/clis/build-config.mjs +2 -93
  125. package/dist/clis/build-pieces.d.mts +100 -0
  126. package/dist/clis/build-pieces.d.mts.map +1 -0
  127. package/dist/clis/build-pieces.mjs +371 -0
  128. package/dist/clis/build-pieces.mjs.map +1 -0
  129. package/dist/clis/command-names.d.mts +2 -2
  130. package/dist/clis/command-names.d.mts.map +1 -1
  131. package/dist/clis/command-names.mjs.map +1 -1
  132. package/dist/clis/constants.d.mts +3 -475
  133. package/dist/clis/constants.mjs +17 -8
  134. package/dist/clis/constants.mjs.map +1 -1
  135. package/dist/clis/index-6CZwrmQi.d.mts +11154 -0
  136. package/dist/clis/index-6CZwrmQi.d.mts.map +1 -0
  137. package/dist/clis/index.d.mts +1368 -1221
  138. package/dist/clis/index.d.mts.map +1 -1
  139. package/dist/clis/index.mjs +209 -65
  140. package/dist/clis/index.mjs.map +1 -1
  141. package/dist/clis/project-env.d.mts +4 -4
  142. package/dist/clis/project-env.d.mts.map +1 -1
  143. package/dist/clis/project-env.mjs.map +1 -1
  144. package/dist/clis/project-ports.d.mts +5 -5
  145. package/dist/clis/project-ports.d.mts.map +1 -1
  146. package/dist/clis/project-ports.mjs +1 -1
  147. package/dist/clis/project-ports.mjs.map +1 -1
  148. package/dist/clis/services/telemetry.d.mts +7 -7
  149. package/dist/clis/services/telemetry.d.mts.map +1 -1
  150. package/dist/clis/services/telemetry.mjs.map +1 -1
  151. package/dist/clis/types-nzer4WIr.d.mts +541 -0
  152. package/dist/clis/types-nzer4WIr.d.mts.map +1 -0
  153. package/dist/clis/utils.d.mts +4 -4
  154. package/dist/clis/utils.d.mts.map +1 -1
  155. package/dist/clis/utils.mjs.map +1 -1
  156. package/dist/{config-loader-B845Hidf.js → config-loader-C6dZB_iX.js} +28 -8
  157. package/dist/config-loader-C6dZB_iX.js.map +1 -0
  158. package/dist/connect/config-loader.d.ts +14 -8
  159. package/dist/connect/config-loader.d.ts.map +1 -1
  160. package/dist/connect/config-loader.js +2 -2
  161. package/dist/connect/index.d.ts +190 -56
  162. package/dist/connect/index.d.ts.map +1 -1
  163. package/dist/connect/index.js +303 -30
  164. package/dist/connect/index.js.map +1 -1
  165. package/dist/connect/json-adapter.d.ts +3 -4
  166. package/dist/connect/json-adapter.d.ts.map +1 -1
  167. package/dist/connect/json-adapter.js.map +1 -1
  168. package/dist/{constants-BP_gjn8g.d.ts → constants-DO4IYxuR.d.ts} +2 -1
  169. package/dist/constants-DO4IYxuR.d.ts.map +1 -0
  170. package/dist/constants.d.ts +3 -2
  171. package/dist/constants.js.map +1 -1
  172. package/dist/document-drive/index.d.ts +104 -101
  173. package/dist/document-drive/index.d.ts.map +1 -1
  174. package/dist/document-drive/index.js +39 -19
  175. package/dist/document-drive/index.js.map +1 -1
  176. package/dist/document-model/index.d.ts +5 -4
  177. package/dist/document-model/index.js +605 -228
  178. package/dist/document-model/index.js.map +1 -1
  179. package/dist/document-model/mock.d.ts +2 -3
  180. package/dist/document-model/mock.d.ts.map +1 -1
  181. package/dist/document-model/mock.js +2 -1
  182. package/dist/document-model/mock.js.map +1 -1
  183. package/dist/document-model/utils.d.ts +3 -2
  184. package/dist/document-model/utils.js +1 -1
  185. package/dist/index-5gwOhPG5.d.ts +36 -0
  186. package/dist/index-5gwOhPG5.d.ts.map +1 -0
  187. package/dist/{index-DP3QgHTq.d.ts → index-D6833Siv.d.ts} +131 -28
  188. package/dist/index-D6833Siv.d.ts.map +1 -0
  189. package/dist/index.d.ts +7 -6
  190. package/dist/index.js.map +1 -1
  191. package/dist/processors/index.d.ts +3 -2
  192. package/dist/processors/index.js +5 -1
  193. package/dist/processors/index.js.map +1 -1
  194. package/dist/registry/index.d.ts +15 -15
  195. package/dist/registry/index.d.ts.map +1 -1
  196. package/dist/registry/index.js +14 -5
  197. package/dist/registry/index.js.map +1 -1
  198. package/dist/registry/manifest-slim.d.ts +4 -3
  199. package/dist/registry/manifest-slim.d.ts.map +1 -1
  200. package/dist/registry/manifest-slim.js +22 -2
  201. package/dist/registry/manifest-slim.js.map +1 -1
  202. package/dist/registry/updates.d.ts +3 -3
  203. package/dist/registry/updates.d.ts.map +1 -1
  204. package/dist/registry/updates.js.map +1 -1
  205. package/dist/registry/urls.d.ts +2 -2
  206. package/dist/registry/urls.d.ts.map +1 -1
  207. package/dist/registry/urls.js.map +1 -1
  208. package/dist/{types-C1in4fl3.d.ts → types-Bsp8VL2y.d.ts} +2 -2
  209. package/dist/types-Bsp8VL2y.d.ts.map +1 -0
  210. package/dist/{types-DDpRvBK_.d.ts → types-CI3ren9F.d.ts} +23 -35
  211. package/dist/types-CI3ren9F.d.ts.map +1 -0
  212. package/dist/{types-BIoOWpOT.d.ts → types-CmeoQg_J.d.ts} +602 -437
  213. package/dist/types-CmeoQg_J.d.ts.map +1 -0
  214. package/dist/{utils-DP122OSS.d.ts → utils-BrKxCmKx.d.ts} +2 -2
  215. package/dist/utils-BrKxCmKx.d.ts.map +1 -0
  216. package/dist/{utils-aaTmfxFW.js → utils-CSF716ux.js} +10 -3
  217. package/dist/utils-CSF716ux.js.map +1 -0
  218. package/package.json +10 -5
  219. package/dist/clis/args/access-token--9H57y8J.d.mts +0 -18
  220. package/dist/clis/args/access-token--9H57y8J.d.mts.map +0 -1
  221. package/dist/clis/args/common-CcYbXrBx.mjs.map +0 -1
  222. package/dist/clis/args/common-Dsf1vpHV.d.mts +0 -183
  223. package/dist/clis/args/common-Dsf1vpHV.d.mts.map +0 -1
  224. package/dist/clis/args/connect-BVVvCmL9.mjs.map +0 -1
  225. package/dist/clis/args/connect-DetTnI8g.d.mts +0 -443
  226. package/dist/clis/args/connect-DetTnI8g.d.mts.map +0 -1
  227. package/dist/clis/args/generate-CA916Fvj.mjs.map +0 -1
  228. package/dist/clis/args/generate-DnV-bfXt.d.mts +0 -87
  229. package/dist/clis/args/generate-DnV-bfXt.d.mts.map +0 -1
  230. package/dist/clis/args/help-CjAsudUn.d.mts +0 -193
  231. package/dist/clis/args/help-CjAsudUn.d.mts.map +0 -1
  232. package/dist/clis/args/init-CUXyfquF.d.mts +0 -55
  233. package/dist/clis/args/init-CUXyfquF.d.mts.map +0 -1
  234. package/dist/clis/args/inspect-DtZeoA5c.d.mts +0 -15
  235. package/dist/clis/args/inspect-DtZeoA5c.d.mts.map +0 -1
  236. package/dist/clis/args/install-CkP8zcHb.d.mts +0 -40
  237. package/dist/clis/args/install-CkP8zcHb.d.mts.map +0 -1
  238. package/dist/clis/args/list-BGf8s_gj.d.mts +0 -12
  239. package/dist/clis/args/list-BGf8s_gj.d.mts.map +0 -1
  240. package/dist/clis/args/login-DNsHwvqk.d.mts +0 -27
  241. package/dist/clis/args/login-DNsHwvqk.d.mts.map +0 -1
  242. package/dist/clis/args/magic-string.es-h_0HDQBQ.mjs.map +0 -1
  243. package/dist/clis/args/migrate-sixkWhxm.d.mts +0 -21
  244. package/dist/clis/args/migrate-sixkWhxm.d.mts.map +0 -1
  245. package/dist/clis/args/publish-Dqe5DUst.d.mts +0 -18
  246. package/dist/clis/args/publish-Dqe5DUst.d.mts.map +0 -1
  247. package/dist/clis/args/registry-C_RfTsKB.d.mts +0 -19
  248. package/dist/clis/args/registry-C_RfTsKB.d.mts.map +0 -1
  249. package/dist/clis/args/service-DhIkf8-O.d.mts +0 -22
  250. package/dist/clis/args/service-DhIkf8-O.d.mts.map +0 -1
  251. package/dist/clis/args/switchboard-BlPaq2at.d.mts +0 -72
  252. package/dist/clis/args/switchboard-BlPaq2at.d.mts.map +0 -1
  253. package/dist/clis/args/uninstall-BpA3YYbw.d.mts +0 -31
  254. package/dist/clis/args/uninstall-BpA3YYbw.d.mts.map +0 -1
  255. package/dist/clis/args/unpublish-CvwaIimG.d.mts +0 -24
  256. package/dist/clis/args/unpublish-CvwaIimG.d.mts.map +0 -1
  257. package/dist/clis/args/vetra-DLQ6lhLl.d.mts +0 -113
  258. package/dist/clis/args/vetra-DLQ6lhLl.d.mts.map +0 -1
  259. package/dist/clis/build-config.mjs.map +0 -1
  260. package/dist/clis/constants.d.mts.map +0 -1
  261. package/dist/config-loader-B845Hidf.js.map +0 -1
  262. package/dist/constants-BP_gjn8g.d.ts.map +0 -1
  263. package/dist/index-C_iVZe7f.d.ts +0 -7
  264. package/dist/index-C_iVZe7f.d.ts.map +0 -1
  265. package/dist/index-DP3QgHTq.d.ts.map +0 -1
  266. package/dist/types-BIoOWpOT.d.ts.map +0 -1
  267. package/dist/types-C1in4fl3.d.ts.map +0 -1
  268. package/dist/types-DDpRvBK_.d.ts.map +0 -1
  269. package/dist/utils-DP122OSS.d.ts.map +0 -1
  270. package/dist/utils-aaTmfxFW.js.map +0 -1
@@ -1,26 +1,22 @@
1
- import { f as IAnalyticsStore } from "./types-C1in4fl3.js";
1
+ import { f as IAnalyticsStore } from "./types-Bsp8VL2y.js";
2
2
  import { ZodRawShape, z } from "zod";
3
3
  import { Draft } from "mutative";
4
- import * as cmd_ts_dist_cjs_argparser_js0 from "cmd-ts/dist/cjs/argparser.js";
5
4
  import { ArgParser } from "cmd-ts/dist/cjs/argparser.js";
6
- import * as cmd_ts_dist_cjs_helpdoc_js0 from "cmd-ts/dist/cjs/helpdoc.js";
7
- import * as cmd_ts_dist_cjs_runner_js0 from "cmd-ts/dist/cjs/runner.js";
8
5
  import { Agent } from "package-manager-detector";
9
6
  import { OperationWithContext } from "@powerhousedao/shared/document-model";
10
7
  import { Kysely, QueryCreator } from "kysely";
11
8
  import { IncomingMessage, ServerResponse } from "node:http";
12
9
  import { FC, ReactNode } from "react";
13
-
14
10
  //#region clis/args/common.d.ts
15
- declare const getPackageManagerCommand: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
16
- parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<{
11
+ declare const getPackageManagerCommand: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
12
+ parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
17
13
  packageManager: Agent | undefined;
18
14
  npm: boolean | undefined;
19
15
  pnpm: boolean | undefined;
20
16
  yarn: boolean | undefined;
21
17
  bun: boolean | undefined;
22
18
  }>>;
23
- } & cmd_ts_dist_cjs_helpdoc_js0.PrintHelp & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & cmd_ts_dist_cjs_helpdoc_js0.Named & Partial<cmd_ts_dist_cjs_helpdoc_js0.Versioned> & cmd_ts_dist_cjs_argparser_js0.Register & cmd_ts_dist_cjs_runner_js0.Handling<{
19
+ } & import("cmd-ts/dist/cjs/helpdoc.js").PrintHelp & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/helpdoc.js").Named & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned> & import("cmd-ts/dist/cjs/argparser.js").Register & import("cmd-ts/dist/cjs/runner.js").Handling<{
24
20
  packageManager: Agent | undefined;
25
21
  npm: boolean | undefined;
26
22
  pnpm: boolean | undefined;
@@ -33,14 +29,14 @@ declare const getPackageManagerCommand: Partial<cmd_ts_dist_cjs_argparser_js0.Re
33
29
  yarn: boolean | undefined;
34
30
  bun: boolean | undefined;
35
31
  }> & {
36
- run(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<{
32
+ run(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
37
33
  packageManager: Agent | undefined;
38
34
  npm: boolean | undefined;
39
35
  pnpm: boolean | undefined;
40
36
  yarn: boolean | undefined;
41
37
  bun: boolean | undefined;
42
38
  }>>;
43
- } & Partial<cmd_ts_dist_cjs_helpdoc_js0.Versioned & cmd_ts_dist_cjs_helpdoc_js0.Descriptive & cmd_ts_dist_cjs_helpdoc_js0.Aliased>;
39
+ } & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned & import("cmd-ts/dist/cjs/helpdoc.js").Descriptive & import("cmd-ts/dist/cjs/helpdoc.js").Aliased>;
44
40
  //#endregion
45
41
  //#region processors/constants.d.ts
46
42
  declare const PROCESSOR_APPS: readonly ["connect", "switchboard"];
@@ -79,7 +75,8 @@ type PHDocumentSignatureInfo = {
79
75
  /**
80
76
  * The public key of the document creator.
81
77
  **/
82
- publicKey: JsonWebKey; /** The nonce that was appended to the message to create the signature. */
78
+ publicKey: JsonWebKey;
79
+ /** The nonce that was appended to the message to create the signature. */
83
80
  nonce: string;
84
81
  };
85
82
  /** Joins a signature's params for transport. Already-joined input passes through. */
@@ -96,11 +93,200 @@ declare function deserializeSignature(signature: Signature | string): Signature;
96
93
  * Configuration for hashing document state in operations.
97
94
  */
98
95
  type HashConfig = {
99
- /** The hashing algorithm to use (e.g., "sha1", "sha256") */algorithm: string; /** The encoding format for the hash output (e.g., "base64", "hex") */
100
- encoding: string; /** Optional algorithm-specific parameters */
96
+ /** The hashing algorithm to use (e.g., "sha1", "sha256") */
97
+ algorithm: string;
98
+ /** The encoding format for the hash output (e.g., "base64", "hex") */
99
+ encoding: string;
100
+ /** Optional algorithm-specific parameters */
101
101
  params?: Record<string, unknown>;
102
102
  };
103
103
  //#endregion
104
+ //#region document-model/operations.d.ts
105
+ declare function setNameOperation<TDocument extends PHDocument>(document: TDocument, input: {
106
+ name: string;
107
+ }): TDocument & {
108
+ header: {
109
+ name: string;
110
+ id: string;
111
+ sig: PHDocumentSignatureInfo;
112
+ documentType: string;
113
+ createdAtUtcIso: string;
114
+ slug: string;
115
+ branch: string;
116
+ revision: {
117
+ [scope: string]: number;
118
+ };
119
+ lastModifiedAtUtcIso: string;
120
+ protocolVersions?: {
121
+ [key: string]: number;
122
+ };
123
+ meta?: PHDocumentMeta;
124
+ };
125
+ };
126
+ declare function setPreferredEditorOperation<TDocument extends PHDocument>(document: TDocument, input: {
127
+ preferredEditor: string | null;
128
+ }): TDocument;
129
+ declare function undoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
130
+ document: TDocument;
131
+ action: Action;
132
+ skip: number;
133
+ reuseLastOperationIndex: boolean;
134
+ };
135
+ /**
136
+ * V2 of undoOperation for protocol version 2+.
137
+ * Key differences from undoOperation:
138
+ * - Never reuses operation index (always increments)
139
+ * - Always sets skip=1 (consecutive NOOPs are handled during rebuild/GC)
140
+ * - No complex skip calculation - simpler model where each UNDO is independent
141
+ */
142
+ declare function undoOperationV2<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
143
+ document: TDocument;
144
+ action: Action;
145
+ skip: number;
146
+ reuseLastOperationIndex: false;
147
+ };
148
+ declare function redoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
149
+ document: TDocument;
150
+ action: Action;
151
+ skip: number;
152
+ reuseLastOperationIndex: boolean;
153
+ };
154
+ /**
155
+ * An operation that was applied to a {@link BaseDocument}.
156
+ *
157
+ * @remarks
158
+ * Wraps an action with an index, to be added to the operations history of a Document.
159
+ * The `index` field is used to keep all operations in order and enable replaying the
160
+ * document's history from the beginning. Note that indices and skips are relative to
161
+ * a specific reactor. Example below:
162
+ *
163
+ * For (index, skip, ts, action)
164
+ * A - [(0, 0, 1, "A0"), (1, 0, 2, "A1")]
165
+ * B - [(0, 0, 0, "B0"), (1, 0, 3, "B1")]
166
+ * ...
167
+ * B gets A's Operations Scenario:
168
+ * B' - [(0, 0, 0, "B0"), (1, 0, 3, "B1"), (2, 1, 1, "A0"), (3, 0, 2, "A1"), (4, 0, 3, "B1")]
169
+ * Then A needs to end up with:
170
+ * A' - [(0, 0, 1, "A0"), (1, 0, 2, "A1"), (2, 2, 0, "B0"), (3, 0, 1, "A0"), (4, 0, 2, "A1"), (5, 0, 3, "B1")]
171
+ * So that both A and B end up with the stream of actions (action):
172
+ * [("B0"), ("A0"), ("A1"), ("B1")]
173
+ *
174
+ * @typeParam A - The type of the action.
175
+ */
176
+ type Operation = {
177
+ /**
178
+ * This is a stable id, derived from various document and action properties
179
+ * in deriveOperationId().
180
+ *
181
+ * It _cannot_ be an arbitrary string.
182
+ *
183
+ * It it also not unique per operation, as reshuffled operations will keep'
184
+ * the same id they had before they were reshuffled. This means that the
185
+ * IOperationStore may have multiple operations with the same operation id.
186
+ **/
187
+ id: string;
188
+ /** Position of the operation in the history. This is relative to a specific reactor -- they may not all agree on this value. */
189
+ index: number;
190
+ /** The number of operations skipped with this Operation. This is relative to a specific reactor -- they may not all agree on this value. */
191
+ skip: number;
192
+ /** Timestamp of when the operation was added */
193
+ timestampUtcMs: string;
194
+ /** Hash of the resulting document data after the operation */
195
+ hash: string;
196
+ /** Error message for a failed action */
197
+ error?: string;
198
+ /**
199
+ * If authorization rejected the action, this records the reason why.
200
+ */
201
+ deniedReason?: string;
202
+ /** The resulting state after the operation */
203
+ resultingState?: string;
204
+ /**
205
+ * The action that was applied to the document to produce this operation.
206
+ */
207
+ action: Action;
208
+ };
209
+ /**
210
+ * The operations history of the document by scope.
211
+ *
212
+ * This will be removed in a future release.
213
+ *
214
+ * TODO: Type should be Partial<Record<string, Operation[]>>,
215
+ * but that is a breaking change for codegen + external doc models.
216
+ */
217
+ type DocumentOperations = Record<string, Operation[]>;
218
+ /**
219
+ * What happened to an operation. An operation that is not `applied` still
220
+ * occupies its index but contributes nothing to the document's state.
221
+ */
222
+ type OperationOutcome = {
223
+ kind: "applied";
224
+ } | {
225
+ kind: "reducer-error";
226
+ message: string;
227
+ } | {
228
+ kind: "denied";
229
+ reason: string;
230
+ };
231
+ /**
232
+ * Reads an operation's outcome. A denial takes precedence over a reducer
233
+ * error, since a denied operation never reaches its reducer.
234
+ */
235
+ declare function operationOutcome(operation: Operation): OperationOutcome;
236
+ type OperationContext = {
237
+ documentId: string;
238
+ documentType: string;
239
+ scope: string;
240
+ branch: string;
241
+ resultingState?: string;
242
+ ordinal: number;
243
+ };
244
+ type OperationWithContext$1 = {
245
+ operation: Operation;
246
+ context: OperationContext;
247
+ };
248
+ //#endregion
249
+ //#region document-model/signature-policy.d.ts
250
+ /** The `protocolVersions` key that fixes a document's signature requirement. */
251
+ declare const SIGNATURE_PROTOCOL = "signature";
252
+ /** `protocolVersions.signature` of a document that requires v2 tuples. */
253
+ declare const SIGNATURE_PROTOCOL_V2 = 2;
254
+ /** `v2-required`: v2 tuples only and a content-addressed id. */
255
+ type SignaturePolicy$1 = "legacy" | "v2-required";
256
+ /** What a new document is created as unless the caller or host says otherwise. */
257
+ declare const DEFAULT_SIGNATURE_POLICY: SignaturePolicy$1;
258
+ declare function isSignaturePolicy(value: unknown): value is SignaturePolicy$1;
259
+ type ProtocolVersions = {
260
+ [protocol: string]: number;
261
+ };
262
+ /** Read from a header, a CREATE_DOCUMENT input or a bare map. */
263
+ declare function signaturePolicyOf(source: {
264
+ protocolVersions?: ProtocolVersions | null;
265
+ } | ProtocolVersions | null | undefined): SignaturePolicy$1;
266
+ /** `protocolVersions` for a new v2-required document. */
267
+ declare function v2RequiredProtocolVersions(base?: ProtocolVersions): ProtocolVersions;
268
+ /**
269
+ * The policy a create call asks for: `signaturePolicy`, else the `signature`
270
+ * key of its `protocolVersions`, else `fallback`, the host's default.
271
+ */
272
+ declare function requestedSignaturePolicy(request: {
273
+ signaturePolicy?: SignaturePolicy$1;
274
+ protocolVersions?: ProtocolVersions;
275
+ } | undefined, fallback: SignaturePolicy$1): SignaturePolicy$1;
276
+ /** `protocolVersions` for a new document under `policy`, over `base`. */
277
+ declare function protocolVersionsFor(policy: SignaturePolicy$1, base?: ProtocolVersions): ProtocolVersions;
278
+ /** What the id of a v2-required document is a hash of. */
279
+ type DocumentIdParams = {
280
+ documentType: string;
281
+ createdAtUtcIso: string;
282
+ nonce: string;
283
+ protocolVersions: ProtocolVersions;
284
+ };
285
+ /** `base64url(sha256(canonicalJson(params)))`, unpadded. */
286
+ declare function deriveDocumentId(params: DocumentIdParams): string;
287
+ /** Whether `id` has the shape `deriveDocumentId` produces. */
288
+ declare function isDerivedDocumentId(id: string): boolean;
289
+ //#endregion
104
290
  //#region document-model/state.d.ts
105
291
  /**
106
292
  * Creates a default PHAuthState
@@ -140,11 +326,16 @@ type PHDocumentState = {
140
326
  * with the UPGRADE_DOCUMENT operation to specify the DocumentModelModule
141
327
  * version to use for reducer execution.
142
328
  */
143
- version: number; /** Hash configuration for operation state verification */
144
- hash: HashConfig; /** True if and only if the document has been deleted */
145
- isDeleted?: boolean; /** The timestamp when the document was deleted, in UTC ISO format */
146
- deletedAtUtcIso?: string; /** Optional: who deleted the document */
147
- deletedBy?: string; /** Optional: reason for deletion */
329
+ version: number;
330
+ /** Hash configuration for operation state verification */
331
+ hash: HashConfig;
332
+ /** True if and only if the document has been deleted */
333
+ isDeleted?: boolean;
334
+ /** The timestamp when the document was deleted, in UTC ISO format */
335
+ deletedAtUtcIso?: string;
336
+ /** Optional: who deleted the document */
337
+ deletedBy?: string;
338
+ /** Optional: reason for deletion */
148
339
  deletionReason?: string;
149
340
  };
150
341
  /**
@@ -167,7 +358,8 @@ type PHAuthState = {
167
358
  creator?: string;
168
359
  };
169
360
  type Grant = {
170
- /** Stable id. */id: string;
361
+ /** Stable id. */
362
+ id: string;
171
363
  description: string;
172
364
  effect: "allow" | "deny";
173
365
  principal: Principal;
@@ -252,7 +444,9 @@ type Operand = {
252
444
  * The base state of the document.
253
445
  */
254
446
  type PHBaseState = {
255
- /** Carries authentication information. */auth: PHAuthState; /** Carries information about the document. */
447
+ /** Carries authentication information. */
448
+ auth: PHAuthState;
449
+ /** Carries information about the document. */
256
450
  document: PHDocumentState;
257
451
  };
258
452
  declare function defaultGlobalState(): DocumentModelGlobalState;
@@ -262,150 +456,11 @@ declare function createGlobalState(state?: Partial<DocumentModelGlobalState>): D
262
456
  declare function createLocalState(state?: Partial<DocumentModelLocalState>): DocumentModelLocalState;
263
457
  declare function createState(baseState?: Partial<PHBaseState>, globalState?: Partial<DocumentModelGlobalState>, localState?: Partial<DocumentModelLocalState>): DocumentModelPHState;
264
458
  //#endregion
265
- //#region document-model/operations.d.ts
266
- declare function setNameOperation<TDocument extends PHDocument>(document: TDocument, input: {
267
- name: string;
268
- }): TDocument & {
269
- header: {
270
- name: string;
271
- id: string;
272
- sig: PHDocumentSignatureInfo;
273
- documentType: string;
274
- createdAtUtcIso: string;
275
- slug: string;
276
- branch: string;
277
- revision: {
278
- [scope: string]: number;
279
- };
280
- lastModifiedAtUtcIso: string;
281
- protocolVersions?: {
282
- [key: string]: number;
283
- };
284
- meta?: PHDocumentMeta;
285
- };
286
- };
287
- declare function setPreferredEditorOperation<TDocument extends PHDocument>(document: TDocument, input: {
288
- preferredEditor: string | null;
289
- }): TDocument;
290
- declare function undoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
291
- document: TDocument;
292
- action: Action;
293
- skip: number;
294
- reuseLastOperationIndex: boolean;
295
- };
296
- /**
297
- * V2 of undoOperation for protocol version 2+.
298
- * Key differences from undoOperation:
299
- * - Never reuses operation index (always increments)
300
- * - Always sets skip=1 (consecutive NOOPs are handled during rebuild/GC)
301
- * - No complex skip calculation - simpler model where each UNDO is independent
302
- */
303
- declare function undoOperationV2<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
304
- document: TDocument;
305
- action: Action;
306
- skip: number;
307
- reuseLastOperationIndex: false;
308
- };
309
- declare function redoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
310
- document: TDocument;
311
- action: Action;
312
- skip: number;
313
- reuseLastOperationIndex: boolean;
314
- };
315
- declare function loadStateOperation<TState extends PHBaseState>(document: PHDocument<TState>, action: LoadStateActionInput): PHDocument<TState>;
316
- /**
317
- * An operation that was applied to a {@link BaseDocument}.
318
- *
319
- * @remarks
320
- * Wraps an action with an index, to be added to the operations history of a Document.
321
- * The `index` field is used to keep all operations in order and enable replaying the
322
- * document's history from the beginning. Note that indices and skips are relative to
323
- * a specific reactor. Example below:
324
- *
325
- * For (index, skip, ts, action)
326
- * A - [(0, 0, 1, "A0"), (1, 0, 2, "A1")]
327
- * B - [(0, 0, 0, "B0"), (1, 0, 3, "B1")]
328
- * ...
329
- * B gets A's Operations Scenario:
330
- * B' - [(0, 0, 0, "B0"), (1, 0, 3, "B1"), (2, 1, 1, "A0"), (3, 0, 2, "A1"), (4, 0, 3, "B1")]
331
- * Then A needs to end up with:
332
- * A' - [(0, 0, 1, "A0"), (1, 0, 2, "A1"), (2, 2, 0, "B0"), (3, 0, 1, "A0"), (4, 0, 2, "A1"), (5, 0, 3, "B1")]
333
- * So that both A and B end up with the stream of actions (action):
334
- * [("B0"), ("A0"), ("A1"), ("B1")]
335
- *
336
- * @typeParam A - The type of the action.
337
- */
338
- type Operation = {
339
- /**
340
- * This is a stable id, derived from various document and action properties
341
- * in deriveOperationId().
342
- *
343
- * It _cannot_ be an arbitrary string.
344
- *
345
- * It it also not unique per operation, as reshuffled operations will keep'
346
- * the same id they had before they were reshuffled. This means that the
347
- * IOperationStore may have multiple operations with the same operation id.
348
- **/
349
- id: string; /** Position of the operation in the history. This is relative to a specific reactor -- they may not all agree on this value. */
350
- index: number; /** The number of operations skipped with this Operation. This is relative to a specific reactor -- they may not all agree on this value. */
351
- skip: number; /** Timestamp of when the operation was added */
352
- timestampUtcMs: string; /** Hash of the resulting document data after the operation */
353
- hash: string; /** Error message for a failed action */
354
- error?: string;
355
- /**
356
- * If authorization rejected the action, this records the reason why.
357
- */
358
- deniedReason?: string; /** The resulting state after the operation */
359
- resultingState?: string;
360
- /**
361
- * The action that was applied to the document to produce this operation.
362
- */
363
- action: Action;
364
- };
365
- /**
366
- * The operations history of the document by scope.
367
- *
368
- * This will be removed in a future release.
369
- *
370
- * TODO: Type should be Partial<Record<string, Operation[]>>,
371
- * but that is a breaking change for codegen + external doc models.
372
- */
373
- type DocumentOperations = Record<string, Operation[]>;
374
- /**
375
- * What happened to an operation. An operation that is not `applied` still
376
- * occupies its index but contributes nothing to the document's state.
377
- */
378
- type OperationOutcome = {
379
- kind: "applied";
380
- } | {
381
- kind: "reducer-error";
382
- message: string;
383
- } | {
384
- kind: "denied";
385
- reason: string;
386
- };
387
- /**
388
- * Reads an operation's outcome. A denial takes precedence over a reducer
389
- * error, since a denied operation never reaches its reducer.
390
- */
391
- declare function operationOutcome(operation: Operation): OperationOutcome;
392
- type OperationContext = {
393
- documentId: string;
394
- documentType: string;
395
- scope: string;
396
- branch: string;
397
- resultingState?: string;
398
- ordinal: number;
399
- };
400
- type OperationWithContext$1 = {
401
- operation: Operation;
402
- context: OperationContext;
403
- };
404
- //#endregion
405
459
  //#region document-model/documents.d.ts
406
460
  /** Meta information about the document. */
407
461
  type PHDocumentMeta = {
408
- /** The preferred editor for the document. */preferredEditor?: string;
462
+ /** The preferred editor for the document. */
463
+ preferredEditor?: string;
409
464
  };
410
465
  /**
411
466
  * The header of a document.
@@ -436,9 +491,12 @@ type PHDocumentHeader = {
436
491
  * This is used as part of the signature payload and thus, cannot be changed
437
492
  * after the document header has been created.
438
493
  **/
439
- createdAtUtcIso: string; /** The slug of the document. */
440
- slug: string; /** The name of the document. */
441
- name: string; /** The branch of this document. */
494
+ createdAtUtcIso: string;
495
+ /** The slug of the document. */
496
+ slug: string;
497
+ /** The name of the document. */
498
+ name: string;
499
+ /** The branch of this document. */
442
500
  branch: string;
443
501
  /**
444
502
  * The revision of each scope of the document. This object is updated every
@@ -461,7 +519,8 @@ type PHDocumentHeader = {
461
519
  */
462
520
  protocolVersions?: {
463
521
  [key: string]: number;
464
- }; /** Meta information about the document. */
522
+ };
523
+ /** Meta information about the document. */
465
524
  meta?: PHDocumentMeta;
466
525
  };
467
526
  /**
@@ -473,7 +532,9 @@ type PHDocumentHeader = {
473
532
  * @typeParam TState - The type of the document state.
474
533
  */
475
534
  type PHDocument<TState extends PHBaseState = PHBaseState> = {
476
- /** The header of the document. */header: PHDocumentHeader; /** The document model specific state. */
535
+ /** The header of the document. */
536
+ header: PHDocumentHeader;
537
+ /** The document model specific state. */
477
538
  state: TState;
478
539
  /**
479
540
  * The initial state of the document, enabling replaying operations.
@@ -504,9 +565,23 @@ declare function isUndo(action: Action): action is UndoAction;
504
565
  declare function isDocumentAction(action: Action): action is DocumentAction;
505
566
  /**
506
567
  * Creates a new document. When `documentType` is given the header is stamped
507
- * with it and the document-scope operations are seeded.
568
+ * with it and the document-scope operations are seeded. Without
569
+ * `protocolVersions` the document is v2-required and takes a derived id; with
570
+ * them it is v2-required only if they say so (see {@link protocolVersionsFor}).
571
+ */
572
+ declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(createState: CreateState<TState>, initialState?: Partial<TState>, documentType?: string, protocolVersions?: ProtocolVersions): PHDocument<TState>;
573
+ /**
574
+ * `document`, not yet created, under a fresh header for `policy`. A legacy
575
+ * header takes `id` when given; a v2-required one ignores `id` and derives its
576
+ * own, so a caller that needs a fixed id must ask for legacy.
577
+ * `protocolVersions` are merged over the document's. Name, slug, branch and
578
+ * meta carry over. A document already under `policy` is returned as is unless
579
+ * a legacy `id` or `protocolVersions` are given.
508
580
  */
509
- declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(createState: CreateState<TState>, initialState?: Partial<TState>, documentType?: string): PHDocument<TState>;
581
+ declare function withSignaturePolicy<TDocument extends PHDocument>(document: TDocument, policy: SignaturePolicy$1, options?: {
582
+ id?: string;
583
+ protocolVersions?: ProtocolVersions;
584
+ }): TDocument;
510
585
  declare function hashDocumentStateForScope(document: {
511
586
  state: {
512
587
  [key: string]: unknown;
@@ -670,31 +745,6 @@ declare const undo: (count?: number, scope?: string) => UndoAction;
670
745
  * @category Actions
671
746
  */
672
747
  declare const redo: (count?: number, scope?: string) => RedoAction;
673
- /**
674
- * Joins multiple operations into a single {@link loadState | LOAD_STATE} operation.
675
- *
676
- * @remarks
677
- * Useful to keep operations history smaller. Operations to prune are selected by index,
678
- * similar to the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | slice} method in Arrays.
679
- *
680
- * @param start - Index of the first operation to prune
681
- * @param end - Index of the last operation to prune
682
- * @category Actions
683
- */
684
- declare const prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
685
- /**
686
- * Replaces the state of the document.
687
- *
688
- * @remarks
689
- * This action shouldn't be used directly. It is dispatched by the {@link prune} action.
690
- *
691
- * @param state - State to be set in the document.
692
- * @param operations - Number of operations that were removed from the previous state.
693
- * @category Actions
694
- */
695
- declare const loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
696
- name: string;
697
- }, operations: number) => LoadStateAction;
698
748
  declare const noop: (scope?: string) => NOOPAction;
699
749
  /**
700
750
  * Helper function to be used by action creators.
@@ -730,7 +780,9 @@ declare const operationWithContext: (operation: Operation, context: ActionContex
730
780
  declare const actionContext: () => ActionContext;
731
781
  declare const actionSigner: (user: UserActionSigner, app: AppActionSigner, signatures?: Signature[]) => ActionSigner;
732
782
  declare function buildOperationSignature(context: ActionSignatureContext, signMethod: ActionSigningHandler): Promise<Signature>;
783
+ /** @deprecated Emits a legacy SHA-1 tuple; sign through `ISigner.signAction`. */
733
784
  declare function buildSignedAction<TState extends PHBaseState = PHBaseState>(action: Action, reducer: Reducer<TState>, document: PHDocument<TState>, signer: ActionSigner, signHandler: ActionSigningHandler): Promise<Operation>;
785
+ /** @deprecated Use `verifyActionSignature` from `@powerhousedao/reactor`. */
734
786
  declare function verifyOperationSignature(signature: Signature, signer: Omit<ActionSigner, "signatures">, verifyHandler: ActionVerificationHandler): Promise<boolean>;
735
787
  /**
736
788
  * Changes the name of the document.
@@ -784,10 +836,10 @@ declare const updateOperationExample: (input: UpdateOperationExampleInput) => Up
784
836
  declare const deleteOperationExample: (input: DeleteOperationExampleInput) => DeleteOperationExampleAction;
785
837
  declare const reorderOperationExamples: (input: ReorderOperationExamplesInput) => ReorderOperationExamplesAction;
786
838
  declare const operationExampleCreators: {
787
- addOperationExample: (input: AddOperationExampleInput) => AddOperationExampleAction;
788
- updateOperationExample: (input: UpdateOperationExampleInput) => UpdateOperationExampleAction;
789
- deleteOperationExample: (input: DeleteOperationExampleInput) => DeleteOperationExampleAction;
790
- reorderOperationExamples: (input: ReorderOperationExamplesInput) => ReorderOperationExamplesAction;
839
+ addOperationExample: typeof addOperationExample;
840
+ updateOperationExample: typeof updateOperationExample;
841
+ deleteOperationExample: typeof deleteOperationExample;
842
+ reorderOperationExamples: typeof reorderOperationExamples;
791
843
  };
792
844
  declare const setStateSchema: (input: SetStateSchemaInput) => SetStateSchemaAction;
793
845
  declare const setInitialState: (input: SetInitialStateInput) => SetInitialStateAction;
@@ -801,141 +853,135 @@ declare const deleteChangeLogItem: (input: DeleteChangeLogItemInput) => DeleteCh
801
853
  declare const reorderChangeLogItems: (input: ReorderChangeLogItemsInput) => ReorderChangeLogItemsAction;
802
854
  declare const releaseNewVersion: () => ReleaseNewVersionAction;
803
855
  declare const baseActions: {
804
- setName: (name: string | {
805
- name: string;
806
- }) => SetNameAction;
807
- setPreferredEditor: (input: string | null | {
808
- preferredEditor: string | null;
809
- }) => SetPreferredEditorAction;
810
- undo: (count?: number, scope?: string) => UndoAction;
811
- redo: (count?: number, scope?: string) => RedoAction;
812
- prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
813
- loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
814
- name: string;
815
- }, operations: number) => LoadStateAction;
816
- noop: (scope?: string) => NOOPAction;
856
+ setName: typeof setName;
857
+ setPreferredEditor: typeof setPreferredEditor;
858
+ undo: typeof undo;
859
+ redo: typeof redo;
860
+ noop: typeof noop;
817
861
  };
818
862
  declare const documentModelActions: {
819
- setModelName: (input: SetModelNameInput) => SetModelNameAction;
820
- setModelId: (input: SetModelIdInput) => SetModelIdAction;
821
- setModelExtension: (input: SetModelExtensionInput) => SetModelExtensionAction;
822
- setModelDescription: (input: SetModelDescriptionInput) => SetModelDescriptionAction;
823
- setAuthorName: (input: SetAuthorNameInput) => SetAuthorNameAction;
824
- setAuthorWebsite: (input: SetAuthorWebsiteInput) => SetAuthorWebsiteAction;
825
- addModule: (input: AddModuleInput) => AddModuleAction;
826
- setModuleName: (input: SetModuleNameInput) => SetModuleNameAction;
827
- setModuleDescription: (input: SetModuleDescriptionInput) => SetModuleDescriptionAction;
828
- deleteModule: (input: DeleteModuleInput) => DeleteModuleAction;
829
- reorderModules: (input: ReorderModulesInput) => ReorderModulesAction;
830
- addOperation: (input: AddOperationInput) => AddOperationAction;
831
- setOperationName: (input: SetOperationNameInput) => SetOperationNameAction;
832
- setOperationScope: (input: SetOperationScopeInput) => SetOperationScopeAction;
833
- setOperationSchema: (input: SetOperationSchemaInput) => SetOperationSchemaAction;
834
- setOperationDescription: (input: SetOperationDescriptionInput) => SetOperationDescriptionAction;
835
- setOperationTemplate: (input: SetOperationTemplateInput) => SetOperationTemplateAction;
836
- setOperationReducer: (input: SetOperationReducerInput) => SetOperationReducerAction;
837
- moveOperation: (input: MoveOperationInput) => MoveOperationAction;
838
- deleteOperation: (input: DeleteOperationInput) => DeleteOperationAction;
839
- reorderModuleOperations: (input: ReorderModuleOperationsInput) => ReorderModuleOperationsAction;
840
- addOperationError: (input: AddOperationErrorInput) => AddOperationErrorAction;
841
- setOperationErrorCode: (input: SetOperationErrorCodeInput) => SetOperationErrorCodeAction;
842
- setOperationErrorName: (input: SetOperationErrorNameInput) => SetOperationErrorNameAction;
843
- setOperationErrorDescription: (input: SetOperationErrorDescriptionInput) => SetOperationErrorDescriptionAction;
844
- setOperationErrorTemplate: (input: SetOperationErrorTemplateInput) => SetOperationErrorTemplateAction;
845
- deleteOperationError: (input: DeleteOperationErrorInput) => DeleteOperationErrorAction;
846
- reorderOperationErrors: (input: ReorderOperationErrorsInput) => ReorderOperationErrorsAction;
847
- addOperationExample: (input: AddOperationExampleInput) => AddOperationExampleAction;
848
- updateOperationExample: (input: UpdateOperationExampleInput) => UpdateOperationExampleAction;
849
- deleteOperationExample: (input: DeleteOperationExampleInput) => DeleteOperationExampleAction;
850
- reorderOperationExamples: (input: ReorderOperationExamplesInput) => ReorderOperationExamplesAction;
851
- setStateSchema: (input: SetStateSchemaInput) => SetStateSchemaAction;
852
- setInitialState: (input: SetInitialStateInput) => SetInitialStateAction;
853
- addStateExample: (input: AddStateExampleInput) => AddStateExampleAction;
854
- updateStateExample: (input: UpdateStateExampleInput) => UpdateStateExampleAction;
855
- deleteStateExample: (input: DeleteStateExampleInput) => DeleteStateExampleAction;
856
- reorderStateExamples: (input: ReorderStateExamplesInput) => ReorderStateExamplesAction;
857
- addChangeLogItem: (input: AddChangeLogItemInput) => AddChangeLogItemAction;
858
- updateChangeLogItem: (input: UpdateChangeLogItemInput) => UpdateChangeLogItemAction;
859
- deleteChangeLogItem: (input: DeleteChangeLogItemInput) => DeleteChangeLogItemAction;
860
- reorderChangeLogItems: (input: ReorderChangeLogItemsInput) => ReorderChangeLogItemsAction;
861
- releaseNewVersion: () => ReleaseNewVersionAction;
863
+ setModelName: typeof setModelName;
864
+ setModelId: typeof setModelId;
865
+ setModelExtension: typeof setModelExtension;
866
+ setModelDescription: typeof setModelDescription;
867
+ setAuthorName: typeof setAuthorName;
868
+ setAuthorWebsite: typeof setAuthorWebsite;
869
+ addModule: typeof addModule;
870
+ setModuleName: typeof setModuleName;
871
+ setModuleDescription: typeof setModuleDescription;
872
+ deleteModule: typeof deleteModule;
873
+ reorderModules: typeof reorderModules;
874
+ addOperation: typeof addOperation;
875
+ setOperationName: typeof setOperationName;
876
+ setOperationScope: typeof setOperationScope;
877
+ setOperationSchema: typeof setOperationSchema;
878
+ setOperationDescription: typeof setOperationDescription;
879
+ setOperationTemplate: typeof setOperationTemplate;
880
+ setOperationReducer: typeof setOperationReducer;
881
+ moveOperation: typeof moveOperation;
882
+ deleteOperation: typeof deleteOperation;
883
+ reorderModuleOperations: typeof reorderModuleOperations;
884
+ addOperationError: typeof addOperationError;
885
+ setOperationErrorCode: typeof setOperationErrorCode;
886
+ setOperationErrorName: typeof setOperationErrorName;
887
+ setOperationErrorDescription: typeof setOperationErrorDescription;
888
+ setOperationErrorTemplate: typeof setOperationErrorTemplate;
889
+ deleteOperationError: typeof deleteOperationError;
890
+ reorderOperationErrors: typeof reorderOperationErrors;
891
+ addOperationExample: typeof addOperationExample;
892
+ updateOperationExample: typeof updateOperationExample;
893
+ deleteOperationExample: typeof deleteOperationExample;
894
+ reorderOperationExamples: typeof reorderOperationExamples;
895
+ setStateSchema: typeof setStateSchema;
896
+ setInitialState: typeof setInitialState;
897
+ addStateExample: typeof addStateExample;
898
+ updateStateExample: typeof updateStateExample;
899
+ deleteStateExample: typeof deleteStateExample;
900
+ reorderStateExamples: typeof reorderStateExamples;
901
+ addChangeLogItem: typeof addChangeLogItem;
902
+ updateChangeLogItem: typeof updateChangeLogItem;
903
+ deleteChangeLogItem: typeof deleteChangeLogItem;
904
+ reorderChangeLogItems: typeof reorderChangeLogItems;
905
+ releaseNewVersion: typeof releaseNewVersion;
862
906
  };
863
907
  declare const actions: {
864
- setModelName: (input: SetModelNameInput) => SetModelNameAction;
865
- setModelId: (input: SetModelIdInput) => SetModelIdAction;
866
- setModelExtension: (input: SetModelExtensionInput) => SetModelExtensionAction;
867
- setModelDescription: (input: SetModelDescriptionInput) => SetModelDescriptionAction;
868
- setAuthorName: (input: SetAuthorNameInput) => SetAuthorNameAction;
869
- setAuthorWebsite: (input: SetAuthorWebsiteInput) => SetAuthorWebsiteAction;
870
- addModule: (input: AddModuleInput) => AddModuleAction;
871
- setModuleName: (input: SetModuleNameInput) => SetModuleNameAction;
872
- setModuleDescription: (input: SetModuleDescriptionInput) => SetModuleDescriptionAction;
873
- deleteModule: (input: DeleteModuleInput) => DeleteModuleAction;
874
- reorderModules: (input: ReorderModulesInput) => ReorderModulesAction;
875
- addOperation: (input: AddOperationInput) => AddOperationAction;
876
- setOperationName: (input: SetOperationNameInput) => SetOperationNameAction;
877
- setOperationScope: (input: SetOperationScopeInput) => SetOperationScopeAction;
878
- setOperationSchema: (input: SetOperationSchemaInput) => SetOperationSchemaAction;
879
- setOperationDescription: (input: SetOperationDescriptionInput) => SetOperationDescriptionAction;
880
- setOperationTemplate: (input: SetOperationTemplateInput) => SetOperationTemplateAction;
881
- setOperationReducer: (input: SetOperationReducerInput) => SetOperationReducerAction;
882
- moveOperation: (input: MoveOperationInput) => MoveOperationAction;
883
- deleteOperation: (input: DeleteOperationInput) => DeleteOperationAction;
884
- reorderModuleOperations: (input: ReorderModuleOperationsInput) => ReorderModuleOperationsAction;
885
- addOperationError: (input: AddOperationErrorInput) => AddOperationErrorAction;
886
- setOperationErrorCode: (input: SetOperationErrorCodeInput) => SetOperationErrorCodeAction;
887
- setOperationErrorName: (input: SetOperationErrorNameInput) => SetOperationErrorNameAction;
888
- setOperationErrorDescription: (input: SetOperationErrorDescriptionInput) => SetOperationErrorDescriptionAction;
889
- setOperationErrorTemplate: (input: SetOperationErrorTemplateInput) => SetOperationErrorTemplateAction;
890
- deleteOperationError: (input: DeleteOperationErrorInput) => DeleteOperationErrorAction;
891
- reorderOperationErrors: (input: ReorderOperationErrorsInput) => ReorderOperationErrorsAction;
892
- addOperationExample: (input: AddOperationExampleInput) => AddOperationExampleAction;
893
- updateOperationExample: (input: UpdateOperationExampleInput) => UpdateOperationExampleAction;
894
- deleteOperationExample: (input: DeleteOperationExampleInput) => DeleteOperationExampleAction;
895
- reorderOperationExamples: (input: ReorderOperationExamplesInput) => ReorderOperationExamplesAction;
896
- setStateSchema: (input: SetStateSchemaInput) => SetStateSchemaAction;
897
- setInitialState: (input: SetInitialStateInput) => SetInitialStateAction;
898
- addStateExample: (input: AddStateExampleInput) => AddStateExampleAction;
899
- updateStateExample: (input: UpdateStateExampleInput) => UpdateStateExampleAction;
900
- deleteStateExample: (input: DeleteStateExampleInput) => DeleteStateExampleAction;
901
- reorderStateExamples: (input: ReorderStateExamplesInput) => ReorderStateExamplesAction;
902
- addChangeLogItem: (input: AddChangeLogItemInput) => AddChangeLogItemAction;
903
- updateChangeLogItem: (input: UpdateChangeLogItemInput) => UpdateChangeLogItemAction;
904
- deleteChangeLogItem: (input: DeleteChangeLogItemInput) => DeleteChangeLogItemAction;
905
- reorderChangeLogItems: (input: ReorderChangeLogItemsInput) => ReorderChangeLogItemsAction;
906
- releaseNewVersion: () => ReleaseNewVersionAction;
907
- setName: (name: string | {
908
- name: string;
909
- }) => SetNameAction;
910
- setPreferredEditor: (input: string | null | {
911
- preferredEditor: string | null;
912
- }) => SetPreferredEditorAction;
913
- undo: (count?: number, scope?: string) => UndoAction;
914
- redo: (count?: number, scope?: string) => RedoAction;
915
- prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
916
- loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
917
- name: string;
918
- }, operations: number) => LoadStateAction;
919
- noop: (scope?: string) => NOOPAction;
908
+ setName: typeof setName;
909
+ setPreferredEditor: typeof setPreferredEditor;
910
+ undo: typeof undo;
911
+ redo: typeof redo;
912
+ noop: typeof noop;
913
+ setModelName: typeof setModelName;
914
+ setModelId: typeof setModelId;
915
+ setModelExtension: typeof setModelExtension;
916
+ setModelDescription: typeof setModelDescription;
917
+ setAuthorName: typeof setAuthorName;
918
+ setAuthorWebsite: typeof setAuthorWebsite;
919
+ addModule: typeof addModule;
920
+ setModuleName: typeof setModuleName;
921
+ setModuleDescription: typeof setModuleDescription;
922
+ deleteModule: typeof deleteModule;
923
+ reorderModules: typeof reorderModules;
924
+ addOperation: typeof addOperation;
925
+ setOperationName: typeof setOperationName;
926
+ setOperationScope: typeof setOperationScope;
927
+ setOperationSchema: typeof setOperationSchema;
928
+ setOperationDescription: typeof setOperationDescription;
929
+ setOperationTemplate: typeof setOperationTemplate;
930
+ setOperationReducer: typeof setOperationReducer;
931
+ moveOperation: typeof moveOperation;
932
+ deleteOperation: typeof deleteOperation;
933
+ reorderModuleOperations: typeof reorderModuleOperations;
934
+ addOperationError: typeof addOperationError;
935
+ setOperationErrorCode: typeof setOperationErrorCode;
936
+ setOperationErrorName: typeof setOperationErrorName;
937
+ setOperationErrorDescription: typeof setOperationErrorDescription;
938
+ setOperationErrorTemplate: typeof setOperationErrorTemplate;
939
+ deleteOperationError: typeof deleteOperationError;
940
+ reorderOperationErrors: typeof reorderOperationErrors;
941
+ addOperationExample: typeof addOperationExample;
942
+ updateOperationExample: typeof updateOperationExample;
943
+ deleteOperationExample: typeof deleteOperationExample;
944
+ reorderOperationExamples: typeof reorderOperationExamples;
945
+ setStateSchema: typeof setStateSchema;
946
+ setInitialState: typeof setInitialState;
947
+ addStateExample: typeof addStateExample;
948
+ updateStateExample: typeof updateStateExample;
949
+ deleteStateExample: typeof deleteStateExample;
950
+ reorderStateExamples: typeof reorderStateExamples;
951
+ addChangeLogItem: typeof addChangeLogItem;
952
+ updateChangeLogItem: typeof updateChangeLogItem;
953
+ deleteChangeLogItem: typeof deleteChangeLogItem;
954
+ reorderChangeLogItems: typeof reorderChangeLogItems;
955
+ releaseNewVersion: typeof releaseNewVersion;
920
956
  };
921
957
  /**
922
958
  * The context of an action.
923
959
  */
924
960
  type ActionContext = {
925
- /** The index of the previous operation, showing intended ordering. */prevOpIndex?: number; /** The hash of the previous operation, showing intended state. */
926
- prevOpHash?: string; /** A nonce, to cover specific signing attacks and to prevent replay attacks from no-ops. */
927
- nonce?: string; /** The signer of the action. */
961
+ /** The index of the previous operation, showing intended ordering. */
962
+ prevOpIndex?: number;
963
+ /** The hash of the previous operation, showing intended state. */
964
+ prevOpHash?: string;
965
+ /** A nonce, to cover specific signing attacks and to prevent replay attacks from no-ops. */
966
+ nonce?: string;
967
+ /** The signer of the action. */
928
968
  signer?: ActionSigner;
929
969
  };
930
970
  /**
931
971
  * Defines the basic structure of an action.
932
972
  */
933
973
  type Action = {
934
- /** The id of the action. This is distinct from the operation id. */id: string; /** The name of the action. */
935
- type: string; /** The timestamp of the action. */
936
- timestampUtcMs: string; /** The payload of the action. */
937
- input: unknown; /** The scope of the action */
938
- scope: string; /** The context of the action. */
974
+ /** The id of the action. This is distinct from the operation id. */
975
+ id: string;
976
+ /** The name of the action. */
977
+ type: string;
978
+ /** The timestamp of the action. */
979
+ timestampUtcMs: string;
980
+ /** The payload of the action. */
981
+ input: unknown;
982
+ /** The scope of the action */
983
+ scope: string;
984
+ /** The context of the action. */
939
985
  context?: ActionContext;
940
986
  };
941
987
  //#endregion
@@ -954,7 +1000,9 @@ type RouteActor = {
954
1000
  };
955
1001
  type AuthorizerResult = {
956
1002
  authorized: true;
957
- } /** Refused; the scope answers with its own JSON error envelope. */ | {
1003
+ } |
1004
+ /** Refused; the scope answers with its own JSON error envelope. */
1005
+ {
958
1006
  authorized: false;
959
1007
  status: number;
960
1008
  message: string;
@@ -965,9 +1013,19 @@ type AuthorizerResult = {
965
1013
  /** A route-specific gate, for policies the standard modes cannot express. */
966
1014
  type RouteAuthorizer = (req: IncomingMessage) => Promise<AuthorizerResult> | AuthorizerResult;
967
1015
  /** How a route authenticates. */
968
- type RouteAuth = /** Default. A verifiable bearer is required; a caller without one gets 401. */"renown" | "renown-optional" | "public" | RouteAuthorizer;
1016
+ type RouteAuth =
1017
+ /** Default. A verifiable bearer is required; a caller without one gets 401. */
1018
+ "renown" | "renown-optional" | "public" | RouteAuthorizer;
969
1019
  /** How the request body reaches the handler. */
970
- type RouteBody = /** Default. Buffered, and readable through the Fetch Request. */"parsed" /** Buffered and also handed over as `ctx.rawBody`, byte for byte. */ | "raw" /** Not buffered; the Fetch Request body is the live request stream. */ | "stream" /** The body is not read at all. */ | "none";
1020
+ type RouteBody =
1021
+ /** Default. Buffered, and readable through the Fetch Request. */
1022
+ "parsed" |
1023
+ /** Buffered and also handed over as `ctx.rawBody`, byte for byte. */
1024
+ "raw" |
1025
+ /** Not buffered; the Fetch Request body is the live request stream. */
1026
+ "stream" |
1027
+ /** The body is not read at all. */
1028
+ "none";
971
1029
  interface RouteOptions {
972
1030
  auth?: RouteAuth;
973
1031
  body?: RouteBody;
@@ -1011,7 +1069,13 @@ interface ScopedRouteHandle {
1011
1069
  readonly url: string;
1012
1070
  dispose(): void;
1013
1071
  }
1014
- type WebhookScheme = "none" /** A shared secret presented verbatim. No digest, so no digest options. */ | "token" /** The digest of the body, alone. */ | "hmac" /** That digest behind a label, `sha256=<digest>`. */ | "hmac-prefixed" | "hmac-timestamped";
1072
+ type WebhookScheme = "none" |
1073
+ /** A shared secret presented verbatim. No digest, so no digest options. */
1074
+ "token" |
1075
+ /** The digest of the body, alone. */
1076
+ "hmac" |
1077
+ /** That digest behind a label, `sha256=<digest>`. */
1078
+ "hmac-prefixed" | "hmac-timestamped";
1015
1079
  /** Hashes a sender may compute the digest with. */
1016
1080
  type WebhookHashAlgorithm = "sha1" | "sha256" | "sha512";
1017
1081
  /** How the digest is written into the header. */
@@ -1031,7 +1095,9 @@ interface WebhookVerification {
1031
1095
  }
1032
1096
  type WebhookField = string | {
1033
1097
  header: string;
1034
- } /** Dot-separated path into the parsed body, e.g. `data.object.id`. */ | {
1098
+ } |
1099
+ /** Dot-separated path into the parsed body, e.g. `data.object.id`. */
1100
+ {
1035
1101
  body: string;
1036
1102
  };
1037
1103
  interface WebhookRequest {
@@ -1155,6 +1221,13 @@ interface IProcessor {
1155
1221
  /**
1156
1222
  * Processes a list of operations with context.
1157
1223
  * Called when operations match this processor's filter.
1224
+ *
1225
+ * Delivery is at-least-once. Within a document's scope and branch, each
1226
+ * call is in ordinal order, and an operation delivered late comes with
1227
+ * every later operation of its stream this processor was already given.
1228
+ * Across documents there is no ordering guarantee. A processor receives one
1229
+ * `onOperations` call at a time; the next call begins after the previous
1230
+ * resolves.
1158
1231
  */
1159
1232
  onOperations(operations: OperationWithContext[]): Promise<void>;
1160
1233
  /**
@@ -1192,6 +1265,12 @@ type TrackedProcessor = {
1192
1265
  status: ProcessorStatus;
1193
1266
  lastError: string | undefined;
1194
1267
  lastErrorTimestamp: Date | undefined;
1268
+ /**
1269
+ * Clears the error and resolves once the replay from the cursor completes.
1270
+ * Safe from anywhere, but awaiting it from this processor's own
1271
+ * `onOperations` waits on itself: the replay runs after that call returns.
1272
+ * A no-op once the processor has been removed.
1273
+ */
1195
1274
  retry: () => Promise<void>;
1196
1275
  };
1197
1276
  /**
@@ -1200,11 +1279,21 @@ type TrackedProcessor = {
1200
1279
  interface IProcessorManager {
1201
1280
  /**
1202
1281
  * Registers a processor factory.
1203
- * Immediately creates processors for all existing drives.
1282
+ * Immediately creates processors for all existing drives and resolves once
1283
+ * every factory run has completed and its processors are bound. Their
1284
+ * backfills run afterwards, on each processor's own queue. If processors
1285
+ * from an earlier registration under the same identifier are still
1286
+ * draining, or a call of the previous factory is still in flight, the
1287
+ * factory runs after they have settled, so awaiting a re-registration of
1288
+ * a factory from inside that factory or one of its processors'
1289
+ * `onOperations` waits on itself.
1204
1290
  */
1205
1291
  registerFactory(identifier: string, factory: ProcessorFactory): Promise<void>;
1206
1292
  /**
1207
- * Unregisters a processor factory and disconnects all processors it created.
1293
+ * Unregisters a processor factory. Resolves once its processors receive no
1294
+ * new deliveries and their cursors are deleted; each one's in-flight
1295
+ * delivery finishes first, then `onDisconnect` runs. Safe to call from
1296
+ * inside a processor's own `onOperations`.
1208
1297
  */
1209
1298
  unregisterFactory(identifier: string): Promise<void>;
1210
1299
  /**
@@ -1316,16 +1405,62 @@ declare function createNamespacedQueryBuilder<Schema>(db: IBaseRelationalDb<any>
1316
1405
  */
1317
1406
  declare function relationalDbToQueryBuilder<TSchema>(query: IBaseRelationalDb<TSchema>): IRelationalQueryBuilder<TSchema>;
1318
1407
  //#endregion
1408
+ //#region document-model/action-signature.d.ts
1409
+ declare const ACTION_SIGNATURE_V2_PREFIX = "v2:";
1410
+ /** The log an operation is stored in, which a v2 tuple is bound to. */
1411
+ type ActionSigningTarget = {
1412
+ documentId: string;
1413
+ branch: string;
1414
+ };
1415
+ /** Who a v2 tuple attributes the action to; both halves are in the preimage. */
1416
+ type ActionSignerIdentity = {
1417
+ user: UserActionSigner;
1418
+ app: AppActionSigner;
1419
+ };
1420
+ /** A value that would not survive a JSON store round trip unchanged. */
1421
+ declare class CanonicalJsonError extends Error {
1422
+ constructor(path: string, detail: string);
1423
+ }
1424
+ /** Sorted-key JSON, as the state hash encodes; drops `undefined` properties. */
1425
+ declare function canonicalJson(value: unknown, label?: string): string;
1426
+ /** Actions the reactor reduces itself, onto the document scope. */
1427
+ declare const DOCUMENT_SCOPE_ACTION_TYPES: ReadonlySet<string>;
1428
+ /** Where a document-scope action writes: `sourceId` or `documentId`. */
1429
+ declare function targetDocumentId(action: {
1430
+ type: string;
1431
+ input: unknown;
1432
+ }, fallback: string): string;
1433
+ /** The log an action submitted to a job on `documentId` is stored in. */
1434
+ declare function actionSigningTarget(action: {
1435
+ type: string;
1436
+ input: unknown;
1437
+ }, documentId: string, branch: string): ActionSigningTarget;
1438
+ /** The identity a signer writes into `context.signer`, and signs over. */
1439
+ declare function actionSignerIdentity(signer: {
1440
+ user?: UserActionSigner;
1441
+ app?: AppActionSigner;
1442
+ }): ActionSignerIdentity;
1443
+ /** The v2 preimage; throws `CanonicalJsonError` on an unsignable action. */
1444
+ declare function actionPreimageV2(action: Action, target: ActionSigningTarget, signer: ActionSignerIdentity): string;
1445
+ /** `"v2:" + base64url(sha256(preimage))`, unpadded. */
1446
+ declare function hashActionV2(action: Action, target: ActionSigningTarget, signer: ActionSignerIdentity): Promise<string>;
1447
+ /** Signs `action` as a v2 tuple; the message layout is the legacy one. */
1448
+ declare function signActionV2(params: {
1449
+ action: Action;
1450
+ target: ActionSigningTarget;
1451
+ signer: ActionSignerIdentity;
1452
+ sign: ActionSigningHandler;
1453
+ previousStateHash?: string;
1454
+ }): Promise<Signature>;
1455
+ /** Element [2] carries the v2 prefix, whether or not it is well formed. */
1456
+ declare function isV2ActionHash(hash: string): boolean;
1457
+ /** The strict shape of a v2 tuple, apart from what its hash covers. */
1458
+ declare function v2TupleProblem(tuple: Signature): string | undefined;
1459
+ //#endregion
1319
1460
  //#region document-model/schemas.d.ts
1320
1461
  type definedNonNullAny = {};
1321
1462
  declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
1322
1463
  declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
1323
- declare const Load_StateSchema: z.ZodEnum<{
1324
- LOAD_STATE: "LOAD_STATE";
1325
- }>;
1326
- declare const PruneSchema: z.ZodEnum<{
1327
- PRUNE: "PRUNE";
1328
- }>;
1329
1464
  declare const RedoSchema: z.ZodEnum<{
1330
1465
  REDO: "REDO";
1331
1466
  }>;
@@ -1340,18 +1475,6 @@ declare const UndoSchema: z.ZodEnum<{
1340
1475
  }>;
1341
1476
  declare function OperationScopeSchema(): z.ZodString;
1342
1477
  declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
1343
- id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1344
- timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1345
- input: z.ZodType<LoadStateActionInput, LoadStateActionInput, z.core.$ZodTypeInternals<LoadStateActionInput, LoadStateActionInput>>;
1346
- type: z.ZodType<"LOAD_STATE", "LOAD_STATE", z.core.$ZodTypeInternals<"LOAD_STATE", "LOAD_STATE">>;
1347
- scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1348
- }>, z.core.$strip>, z.ZodObject<Required<{
1349
- id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1350
- timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1351
- input: z.ZodType<PruneActionInput, PruneActionInput, z.core.$ZodTypeInternals<PruneActionInput, PruneActionInput>>;
1352
- type: z.ZodType<"PRUNE", "PRUNE", z.core.$ZodTypeInternals<"PRUNE", "PRUNE">>;
1353
- scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1354
- }>, z.core.$strip>, z.ZodObject<Required<{
1355
1478
  id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1356
1479
  timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1357
1480
  input: z.ZodType<RedoActionInput, RedoActionInput, z.core.$ZodTypeInternals<RedoActionInput, RedoActionInput>>;
@@ -1376,11 +1499,6 @@ declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject<Requir
1376
1499
  type: z.ZodType<"UNDO", "UNDO", z.core.$ZodTypeInternals<"UNDO", "UNDO">>;
1377
1500
  scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1378
1501
  }>, z.core.$strip>]>;
1379
- declare function LoadStateActionSchema(): z.ZodObject<Properties<SchemaLoadStateAction>>;
1380
- declare function LoadStateActionInputSchema(): z.ZodObject<Properties<LoadStateActionInput>>;
1381
- declare function LoadStateActionStateInputSchema(): z.ZodObject<Properties<LoadStateActionStateInput>>;
1382
- declare function PruneActionSchema(): z.ZodObject<Properties<SchemaPruneAction>>;
1383
- declare function PruneActionInputSchema(): z.ZodObject<Properties<PruneActionInput>>;
1384
1502
  declare function RedoActionInputSchema(): z.ZodObject<{
1385
1503
  count: z.ZodNumber;
1386
1504
  }, z.core.$strip>;
@@ -1397,7 +1515,7 @@ declare function UndoActionInputSchema(): z.ZodObject<{
1397
1515
  count: z.ZodNumber;
1398
1516
  }, z.core.$strip>;
1399
1517
  declare function UndoActionSchema(): z.ZodObject<Properties<SchemaUndoAction>>;
1400
- type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]> }>;
1518
+ type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]>; }>;
1401
1519
  declare function AddChangeLogItemInputSchema(): z.ZodObject<Properties<AddChangeLogItemInput>>;
1402
1520
  declare function AddModuleInputSchema(): z.ZodObject<Properties<AddModuleInput>>;
1403
1521
  declare function AddOperationErrorInputSchema(): z.ZodObject<Properties<AddOperationErrorInput>>;
@@ -1590,6 +1708,24 @@ declare const PowerhouseModulesSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1590
1708
  name: z.ZodString;
1591
1709
  documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1592
1710
  }, z.core.$strip>>>;
1711
+ declare const PieceModuleSchema: z.ZodObject<{
1712
+ id: z.ZodString;
1713
+ name: z.ZodString;
1714
+ documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1715
+ version: z.ZodOptional<z.ZodString>;
1716
+ description: z.ZodOptional<z.ZodString>;
1717
+ bundle: z.ZodOptional<z.ZodString>;
1718
+ descriptor: z.ZodOptional<z.ZodString>;
1719
+ }, z.core.$strip>;
1720
+ declare const PieceModulesSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1721
+ id: z.ZodString;
1722
+ name: z.ZodString;
1723
+ documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1724
+ version: z.ZodOptional<z.ZodString>;
1725
+ description: z.ZodOptional<z.ZodString>;
1726
+ bundle: z.ZodOptional<z.ZodString>;
1727
+ descriptor: z.ZodOptional<z.ZodString>;
1728
+ }, z.core.$strip>>>;
1593
1729
  declare const PublisherSchema: z.ZodObject<{
1594
1730
  name: z.ZodOptional<z.ZodString>;
1595
1731
  url: z.ZodOptional<z.ZodString>;
@@ -1600,7 +1736,7 @@ declare const ConfigEntrySchema: z.ZodObject<{
1600
1736
  type: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
1601
1737
  description: z.ZodOptional<z.ZodString>;
1602
1738
  required: z.ZodOptional<z.ZodBoolean>;
1603
- default: z.ZodOptional<z.ZodBoolean>;
1739
+ default: z.ZodOptional<z.ZodString>;
1604
1740
  }, z.core.$strip>;
1605
1741
  declare const PwaConfigSchema: z.ZodType<PHConnectPwa>;
1606
1742
  declare const ManifestSchema: z.ZodObject<{
@@ -1641,13 +1777,17 @@ declare const ManifestSchema: z.ZodObject<{
1641
1777
  id: z.ZodString;
1642
1778
  name: z.ZodString;
1643
1779
  documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1780
+ version: z.ZodOptional<z.ZodString>;
1781
+ description: z.ZodOptional<z.ZodString>;
1782
+ bundle: z.ZodOptional<z.ZodString>;
1783
+ descriptor: z.ZodOptional<z.ZodString>;
1644
1784
  }, z.core.$strip>>>;
1645
1785
  config: z.ZodOptional<z.ZodArray<z.ZodObject<{
1646
1786
  name: z.ZodString;
1647
1787
  type: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
1648
1788
  description: z.ZodOptional<z.ZodString>;
1649
1789
  required: z.ZodOptional<z.ZodBoolean>;
1650
- default: z.ZodOptional<z.ZodBoolean>;
1790
+ default: z.ZodOptional<z.ZodString>;
1651
1791
  }, z.core.$strip>>>;
1652
1792
  pwa: z.ZodOptional<z.ZodType<PHConnectPwa, unknown, z.core.$ZodTypeInternals<PHConnectPwa, unknown>>>;
1653
1793
  }, z.core.$strip>;
@@ -1668,7 +1808,7 @@ type UpgradeManifest<TVersions extends readonly number[]> = {
1668
1808
  documentType: string;
1669
1809
  latestVersion: TupleMember<TVersions>;
1670
1810
  supportedVersions: TVersions;
1671
- upgrades: { [V in Exclude<TupleMember<TVersions>, 1> as `v${V}`]: UpgradeTransition };
1811
+ upgrades: { [V in Exclude<TupleMember<TVersions>, 1> as `v${V}`]: UpgradeTransition; };
1672
1812
  };
1673
1813
  /**
1674
1814
  * Canonical document-model version normalization: documents stamped with 0
@@ -1689,6 +1829,8 @@ declare function normalizeDocumentModelVersion(version: number | undefined | nul
1689
1829
  * - All other cases: Apply upgradePath transitions (if provided), then apply initialState, set version
1690
1830
  */
1691
1831
  declare function applyUpgradeDocumentAction(document: PHDocument, action: UpgradeDocumentAction, upgradePath?: UpgradeTransition[]): PHDocument;
1832
+ /** CREATE_DOCUMENT fixes `protocolVersions`; this puts them back after a reducer. */
1833
+ declare function withProtocolVersions<TDocument extends PHDocument>(document: TDocument, protocolVersions: PHDocument["header"]["protocolVersions"]): TDocument;
1692
1834
  /**
1693
1835
  * Applies a DELETE_DOCUMENT action to a document.
1694
1836
  * Marks the document as deleted in the document scope state.
@@ -2347,11 +2489,11 @@ interface DocumentModelVersioningOperations {
2347
2489
  }
2348
2490
  type Maybe<T> = T | null;
2349
2491
  type InputMaybe<T> = T | null | undefined;
2350
- type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K] };
2351
- type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
2352
- type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
2353
- type MakeEmpty<T extends Record<string, unknown>, K extends keyof T> = { [_ in K]?: never };
2354
- type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
2492
+ type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K]; };
2493
+ type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]>; };
2494
+ type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]>; };
2495
+ type MakeEmpty<T extends Record<string, unknown>, K extends keyof T> = { [_ in K]?: never; };
2496
+ type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never; };
2355
2497
  /** All built-in and custom scalars, mapped to their actual values */
2356
2498
  type Scalars = {
2357
2499
  ID: {
@@ -2412,28 +2554,6 @@ type IOperation = {
2412
2554
  timestampUtcMs: Scalars["DateTime"]["output"];
2413
2555
  type: Scalars["String"]["output"];
2414
2556
  };
2415
- type Load_State = "LOAD_STATE";
2416
- type SchemaLoadStateAction = {
2417
- id: Scalars["String"]["output"];
2418
- timestampUtcMs: Scalars["DateTime"]["output"];
2419
- input: LoadStateActionInput;
2420
- type: Load_State;
2421
- scope: string;
2422
- };
2423
- type LoadStateActionInput = {
2424
- operations: Scalars["Int"]["input"];
2425
- state: LoadStateActionStateInput;
2426
- };
2427
- type LoadStateActionStateInput = {
2428
- data?: InputMaybe<Scalars["Unknown"]["input"]>;
2429
- name: Scalars["String"]["input"];
2430
- };
2431
- type MutationLoadStateArgs = {
2432
- input: SchemaLoadStateAction;
2433
- };
2434
- type MutationPruneArgs = {
2435
- input: SchemaPruneAction;
2436
- };
2437
2557
  type MutationRedoArgs = {
2438
2558
  input: SchemaRedoAction;
2439
2559
  };
@@ -2443,18 +2563,6 @@ type MutationSetNameArgs = {
2443
2563
  type MutationUndoArgs = {
2444
2564
  input: SchemaUndoAction;
2445
2565
  };
2446
- type Prune = "PRUNE";
2447
- type SchemaPruneAction = {
2448
- id: Scalars["String"]["output"];
2449
- timestampUtcMs: Scalars["DateTime"]["output"];
2450
- input: PruneActionInput;
2451
- type: Prune;
2452
- scope: string;
2453
- };
2454
- type PruneActionInput = {
2455
- end?: InputMaybe<Scalars["Int"]["input"]>;
2456
- start?: InputMaybe<Scalars["Int"]["input"]>;
2457
- };
2458
2566
  type Query = {
2459
2567
  __typename?: "Query";
2460
2568
  document: Maybe<IDocument>;
@@ -2526,14 +2634,6 @@ type SchemaNOOPAction = {
2526
2634
  timestampUtcMs: Scalars["DateTime"]["output"];
2527
2635
  type: "NOOP";
2528
2636
  };
2529
- type LoadStateAction = Action & {
2530
- type: "LOAD_STATE";
2531
- input: LoadStateActionInput;
2532
- };
2533
- type PruneAction = Action & {
2534
- type: "PRUNE";
2535
- input: PruneActionInput;
2536
- };
2537
2637
  type RedoAction = Action & {
2538
2638
  type: "REDO";
2539
2639
  input: SchemaRedoAction["input"];
@@ -2631,7 +2731,7 @@ type UpdateRelationshipAction = Action & {
2631
2731
  type: "UPDATE_RELATIONSHIP";
2632
2732
  input: UpdateRelationshipActionInput;
2633
2733
  };
2634
- type DocumentAction = LoadStateAction | PruneAction | RedoAction | SetNameAction | SetPreferredEditorAction | UndoAction | NOOPAction;
2734
+ type DocumentAction = RedoAction | SetNameAction | SetPreferredEditorAction | UndoAction | NOOPAction;
2635
2735
  interface ISignal<TType extends string, TInput> {
2636
2736
  type: TType;
2637
2737
  input: TInput;
@@ -2668,19 +2768,27 @@ type SignalResults = {
2668
2768
  type SignalType<T extends Signal> = T["type"];
2669
2769
  type FileInput = string | number[] | Uint8Array | ArrayBuffer | Blob;
2670
2770
  type ReducerOptions = {
2671
- /** The number of operations to skip before this new action is applied. This overrides the skip count in the operation. */skip?: number; /** When true the skip count is ignored and the action is applied regardless of the skip count */
2672
- ignoreSkipOperations?: boolean; /** if true reuses the provided action resulting state instead of replaying it */
2673
- reuseOperationResultingState?: boolean; /** if true checks the hashes of the operations */
2674
- checkHashes?: boolean; /** Options for performing a replay. */
2771
+ /** The number of operations to skip before this new action is applied. This overrides the skip count in the operation. */
2772
+ skip?: number;
2773
+ /** When true the skip count is ignored and the action is applied regardless of the skip count */
2774
+ ignoreSkipOperations?: boolean;
2775
+ /** if true reuses the provided action resulting state instead of replaying it */
2776
+ reuseOperationResultingState?: boolean;
2777
+ /** if true checks the hashes of the operations */
2778
+ checkHashes?: boolean;
2779
+ /** Options for performing a replay. */
2675
2780
  replayOptions?: {
2676
- /** The previously created operation to verify against. */operation: Operation;
2677
- }; /** Optional parser for the operation resulting state, uses JSON.parse by default */
2781
+ /** The previously created operation to verify against. */
2782
+ operation: Operation;
2783
+ };
2784
+ /** Optional parser for the operation resulting state, uses JSON.parse by default */
2678
2785
  operationResultingStateParser?: <TState>(state: string | null | undefined) => TState;
2679
2786
  /**
2680
2787
  * When true (default), the reducer will prune operations (garbage collect) when processing a skip.
2681
2788
  * When false, it will recompute state for the skip but preserve the existing operations history.
2682
2789
  */
2683
- pruneOnSkip?: boolean; /** The branch being operated on. Defaults to "main". */
2790
+ pruneOnSkip?: boolean;
2791
+ /** The branch being operated on. Defaults to "main". */
2684
2792
  branch?: string;
2685
2793
  /**
2686
2794
  * Protocol version controlling undo/redo behavior.
@@ -2731,7 +2839,7 @@ type User = {
2731
2839
  chainId: number;
2732
2840
  ens?: ENSInfo;
2733
2841
  };
2734
- type PartialRecord<K extends keyof any, T> = { [P in K]?: T };
2842
+ type PartialRecord<K extends keyof any, T> = { [P in K]?: T; };
2735
2843
  type RevisionsFilter = PartialRecord<string, number>;
2736
2844
  type GetDocumentOptions = ReducerOptions & {
2737
2845
  revisions?: RevisionsFilter;
@@ -2811,13 +2919,14 @@ interface ISigner {
2811
2919
  */
2812
2920
  verify: (data: Uint8Array, signature: Uint8Array) => Promise<void>;
2813
2921
  /**
2814
- * Signs an action (used for operation signing).
2922
+ * Signs an action for the log it is written to.
2815
2923
  *
2816
2924
  * @param action - The action to sign.
2925
+ * @param target - The document and branch whose log stores the action.
2817
2926
  * @param abortSignal - Optional abort signal to cancel the signing.
2818
2927
  * @returns The signature tuple.
2819
2928
  */
2820
- signAction: (action: Action, abortSignal?: AbortSignal) => Promise<Signature>;
2929
+ signAction: (action: Action, target: ActionSigningTarget, abortSignal?: AbortSignal) => Promise<Signature>;
2821
2930
  }
2822
2931
  type IsStateOfType<TState> = (state: unknown) => state is TState;
2823
2932
  type AssertIsStateOfType<TState> = (state: unknown) => asserts state is TState;
@@ -2836,6 +2945,9 @@ type MinimalBackupData = {
2836
2945
  branch: string;
2837
2946
  state: PHBaseState;
2838
2947
  name: string;
2948
+ protocolVersions?: {
2949
+ [key: string]: number;
2950
+ };
2839
2951
  };
2840
2952
  type DocumentModelUtils<TState extends PHBaseState = PHBaseState> = {
2841
2953
  fileExtension: string;
@@ -2875,7 +2987,8 @@ type PhAiToolDescriptor = {
2875
2987
  callback: (args: never) => Promise<unknown>;
2876
2988
  };
2877
2989
  type DocumentModelModule<TState extends PHBaseState = PHBaseState> = {
2878
- /** optional version field, should be made required */version?: number;
2990
+ /** optional version field, should be made required */
2991
+ version?: number;
2879
2992
  reducer: Reducer<TState>;
2880
2993
  actions: Actions;
2881
2994
  utils: DocumentModelUtils<TState>;
@@ -2898,6 +3011,7 @@ type DocumentModelDocumentModelModule = DocumentModelModule<DocumentModelPHState
2898
3011
  type ConfigEntryType = z.infer<typeof ConfigEntryTypeSchema>;
2899
3012
  type ConfigEntry = z.infer<typeof ConfigEntrySchema>;
2900
3013
  type PowerhouseModule = z.infer<typeof PowerhouseModuleSchema>;
3014
+ type PieceModule = z.infer<typeof PieceModuleSchema>;
2901
3015
  type Publisher = z.infer<typeof PublisherSchema>;
2902
3016
  type Manifest = z.infer<typeof ManifestSchema>;
2903
3017
  //#endregion
@@ -2934,10 +3048,13 @@ type PHConnectDefaultDriveRemote = {
2934
3048
  icon?: string | null;
2935
3049
  };
2936
3050
  type PHConnectDefaultDriveLocal = {
2937
- /** Discriminator: this entry is a local drive created on first boot. */local: true; /** Stable drive id; the drive is not re-created on later boots. */
3051
+ /** Discriminator: this entry is a local drive created on first boot. */
3052
+ local: true;
3053
+ /** Stable drive id; the drive is not re-created on later boots. */
2938
3054
  id: string;
2939
3055
  name?: string | null;
2940
- icon?: string | null; /** Drive app (preferred editor) to open on the drive. */
3056
+ icon?: string | null;
3057
+ /** Drive app (preferred editor) to open on the drive. */
2941
3058
  app?: string;
2942
3059
  };
2943
3060
  type PHConnectDefaultDrive = PHConnectDefaultDriveRemote | PHConnectDefaultDriveLocal;
@@ -2961,21 +3078,29 @@ type PHConnectApp = {
2961
3078
  basePath?: string;
2962
3079
  offline?: boolean;
2963
3080
  studioMode?: boolean;
3081
+ workflowsEnabled?: boolean;
2964
3082
  };
2965
3083
  type PHConnectAi = {
2966
- /** Enables the in-browser AI assistant (chat FAB + window). Off by default. */assistantEnabled?: boolean;
3084
+ /** Enables the in-browser AI assistant (chat FAB + window). Off by default. */
3085
+ assistantEnabled?: boolean;
2967
3086
  };
2968
3087
  type PHConnectPackages = {
2969
- externalEnabled?: boolean; /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
3088
+ externalEnabled?: boolean;
3089
+ /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
2970
3090
  liveReload?: boolean;
2971
3091
  };
2972
3092
  type PHRenownRainbowAdapterConfig = {
2973
- /** WalletConnect project id; required for the rainbow adapter to function. */walletConnectProjectId?: string; /** Optional Infura project id used to build RPC transports. */
3093
+ /** WalletConnect project id; required for the rainbow adapter to function. */
3094
+ walletConnectProjectId?: string;
3095
+ /** Optional Infura project id used to build RPC transports. */
2974
3096
  infuraProjectId?: string;
2975
3097
  };
2976
3098
  type PHRenownPrivyAdapterConfig = {
2977
- /** Privy application id; required for the privy adapter to function. */appId?: string; /** Optional Privy client id. */
2978
- clientId?: string; /** Login methods this adapter offers; defaults per adapter when omitted. */
3099
+ /** Privy application id; required for the privy adapter to function. */
3100
+ appId?: string;
3101
+ /** Optional Privy client id. */
3102
+ clientId?: string;
3103
+ /** Login methods this adapter offers; defaults per adapter when omitted. */
2979
3104
  methods?: string[];
2980
3105
  };
2981
3106
  type PHConnectRenownAdapters = {
@@ -2985,16 +3110,32 @@ type PHConnectRenownAdapters = {
2985
3110
  type PHConnectRenown = {
2986
3111
  url?: string;
2987
3112
  networkId?: string;
2988
- chainId?: number; /** Renown localStorage namespace; share it across Connects to share login. */
2989
- namespace?: string; /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
2990
- switchboardUrl?: string; /** Per-adapter wallet config; presence of a key enables that adapter. */
3113
+ chainId?: number;
3114
+ /** Renown localStorage namespace; share it across Connects to share login. */
3115
+ namespace?: string;
3116
+ /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
3117
+ switchboardUrl?: string;
3118
+ /** Per-adapter wallet config; presence of a key enables that adapter. */
2991
3119
  adapters?: PHConnectRenownAdapters;
2992
3120
  };
2993
3121
  type PHConnectSentry = {
2994
- /** Sentry DSN URL. `null` disables Sentry entirely. */dsn?: string | null; /** Sentry environment label. */
2995
- env?: string; /** Enable Sentry performance tracing. */
3122
+ /** Sentry DSN URL. `null` disables Sentry entirely. */
3123
+ dsn?: string | null;
3124
+ /** Sentry environment label. */
3125
+ env?: string;
3126
+ /** Enable Sentry performance tracing. */
2996
3127
  tracing?: boolean;
2997
3128
  };
3129
+ type PHConnectOpenPanel = {
3130
+ /** OpenPanel client id. Empty string (the default) disables OpenPanel. */
3131
+ clientId?: string;
3132
+ /** OpenPanel API URL, for self-hosted instances. */
3133
+ apiUrl?: string;
3134
+ /** Track UI events. */
3135
+ trackUiEvents?: boolean;
3136
+ /** Track document operations. */
3137
+ trackOperations?: boolean;
3138
+ };
2998
3139
  type PHConnectInstance = {
2999
3140
  namespace: string | null;
3000
3141
  reactorWorker: boolean;
@@ -3002,13 +3143,21 @@ type PHConnectInstance = {
3002
3143
  /** Each flag implies its predecessors, and must match the fleet Connect syncs
3003
3144
  * with or the two compute different replay outcomes. */
3004
3145
  type PHConnectReactorFeatureFlags = {
3005
- /** Decide writes from the document stream instead of the meta cache. */documentDecisions?: boolean; /** Enforce the auth scope's policy at admission, replay, and read. */
3006
- authEnforcement?: boolean; /** Let `{ group }` principals match, via the group documents' rosters. */
3007
- authGroups?: boolean; /** Evaluate `where` / `match` conditions on grants. */
3146
+ /** Decide writes from the document stream instead of the meta cache. */
3147
+ documentDecisions?: boolean;
3148
+ /** Enforce the auth scope's policy at admission, replay, and read. */
3149
+ authEnforcement?: boolean;
3150
+ /** Let `{ group }` principals match, via the group documents' rosters. */
3151
+ authGroups?: boolean;
3152
+ /** Evaluate `where` / `match` conditions on grants. */
3008
3153
  authConditions?: boolean;
3009
3154
  };
3010
3155
  type PHConnectReactor = {
3011
3156
  featureFlags?: PHConnectReactorFeatureFlags;
3157
+ /** What new documents are created as; `legacy` while peers predate v2-required documents. */
3158
+ createSignaturePolicy?: "legacy" | "v2-required";
3159
+ /** Stored documents at protocol versions this build does not run: refuse to boot, or keep them read-only. */
3160
+ unsupportedStoredDocuments?: "refuse" | "read-only";
3012
3161
  };
3013
3162
  /**
3014
3163
  * A URL-matching pattern for a service-worker runtime-caching rule, in
@@ -3057,7 +3206,9 @@ type PHConnectPwaIcon = {
3057
3206
  * at Connect's app root, injected at build time.
3058
3207
  */
3059
3208
  type PHConnectPwaFileHandler = {
3060
- /** MIME type → file extensions (each must start with "."). */accept: Record<string, string[]>; /** OS-level file-type icons. */
3209
+ /** MIME type → file extensions (each must start with "."). */
3210
+ accept: Record<string, string[]>;
3211
+ /** OS-level file-type icons. */
3061
3212
  icons?: PHConnectPwaIcon[];
3062
3213
  launch_type?: "single-client" | "multiple-clients";
3063
3214
  };
@@ -3071,8 +3222,10 @@ type PHConnectPwaManifest = {
3071
3222
  display?: "fullscreen" | "standalone" | "minimal-ui" | "browser";
3072
3223
  start_url?: string;
3073
3224
  scope?: string;
3074
- icons?: PHConnectPwaIcon[]; /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
3075
- file_handlers?: PHConnectPwaFileHandler[]; /** How the OS launches the app for handled files/links. */
3225
+ icons?: PHConnectPwaIcon[];
3226
+ /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
3227
+ file_handlers?: PHConnectPwaFileHandler[];
3228
+ /** How the OS launches the app for handled files/links. */
3076
3229
  launch_handler?: {
3077
3230
  client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
3078
3231
  };
@@ -3092,11 +3245,16 @@ type PHConnectPwaManifest = {
3092
3245
  * Precedence: defaults < package fragments < project config.
3093
3246
  */
3094
3247
  type PHConnectPwa = {
3095
- manifest?: PHConnectPwaManifest; /** Extra Workbox precache globs, unioned with the built-in patterns. */
3096
- globPatterns?: string[]; /** Extra Workbox precache ignore globs, unioned with the built-in list. */
3097
- globIgnores?: string[]; /** Raise the precache file-size ceiling; the max across contributors wins. */
3098
- maximumFileSizeToCacheInBytes?: number; /** Additional runtime-caching rules, appended after the built-in rules. */
3099
- runtimeCaching?: PHConnectPwaRuntimeCaching[]; /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
3248
+ manifest?: PHConnectPwaManifest;
3249
+ /** Extra Workbox precache globs, unioned with the built-in patterns. */
3250
+ globPatterns?: string[];
3251
+ /** Extra Workbox precache ignore globs, unioned with the built-in list. */
3252
+ globIgnores?: string[];
3253
+ /** Raise the precache file-size ceiling; the max across contributors wins. */
3254
+ maximumFileSizeToCacheInBytes?: number;
3255
+ /** Additional runtime-caching rules, appended after the built-in rules. */
3256
+ runtimeCaching?: PHConnectPwaRuntimeCaching[];
3257
+ /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
3100
3258
  navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
3101
3259
  };
3102
3260
  type PHConnectRuntimeConfig = {
@@ -3107,6 +3265,7 @@ type PHConnectRuntimeConfig = {
3107
3265
  drives?: PHConnectDrives;
3108
3266
  renown?: PHConnectRenown;
3109
3267
  sentry?: PHConnectSentry;
3268
+ openPanel?: PHConnectOpenPanel;
3110
3269
  instance?: PHConnectInstance;
3111
3270
  reactor?: PHConnectReactor;
3112
3271
  pwa?: PHConnectPwa;
@@ -3115,8 +3274,10 @@ type PHConnectRuntimeConfig = {
3115
3274
  type PHReactorRenown = {
3116
3275
  /** "self" reads this reactor's own renown read model; "remote" (default)
3117
3276
  * queries a Renown or Switchboard instance. */
3118
- source?: "remote" | "self"; /** Renown base URL; also the instance this reactor's own identity uses. */
3119
- url?: string; /** Switchboard GraphQL endpoint to read credentials from directly. */
3277
+ source?: "remote" | "self";
3278
+ /** Renown base URL; also the instance this reactor's own identity uses. */
3279
+ url?: string;
3280
+ /** Switchboard GraphQL endpoint to read credentials from directly. */
3120
3281
  switchboardUrl?: string;
3121
3282
  };
3122
3283
  type PowerhouseConfig = {
@@ -3164,9 +3325,13 @@ type PowerhouseConfig = {
3164
3325
  driveUrl?: string;
3165
3326
  connectPort?: number;
3166
3327
  };
3328
+ workflows?: {
3329
+ enabled?: boolean;
3330
+ };
3167
3331
  packageRegistryUrl?: string;
3168
3332
  connect?: PHConnectRuntimeConfig;
3169
3333
  };
3170
3334
  //#endregion
3171
- export { AddOperationExampleAction as $, UpgradeReducer as $a, deleteOperationExample as $c, SetOperationErrorCodeAction as $i, baseCreateDocument as $l, MutationDeleteOperationErrorArgs as $n, SetAuthorWebsiteInputSchema as $o, RedoActionInput as $r, ProcessorDispatchResult as $s, DocumentModelOperationExampleOperations as $t, PHDocumentState as $u, PHReactorRenown as A, SigningParameters as Aa, WebhookSignatureEncoding as Ac, SetAuthorNameAction as Ai, setOperationErrorDescription as Al, LoadStateActionInput as An, ModuleSchema as Ao, MutationSetOperationTemplateArgs as Ar, UpdateStateExampleInputSchema as As, DeleteOperationErrorInput as At, sortMappedOperations as Au, DEFAULT_REGISTRY_URL as B, UpdateChangeLogItemAction as Ba, addModule as Bc, SetModelIdAction as Bi, undo as Bl, ModuleSpecification as Bn, PublisherSchema as Bo, OperationsByScope as Br, IBaseRelationalDb as Bs, DocumentModelGlobalState as Bt, operationOutcome as Bu, PHConnectReactor as C, Set_PreferredEditor as Ca, WebhookEndpointInfo as Cc, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Cd, SchemaNOOPAction as Ci, setModelId as Cl, Incremental as Cn, DocumentModelInputSchema as Co, MutationSetOperationErrorCodeArgs as Cr, Set_PreferredEditorSchema as Cs, DeleteChildDocumentSignal as Ct, prepareOperations as Cu, PHConnectRuntimeConfig as D, SignalResults as Da, WebhookReply as Dc, SchemaSetPreferredEditorAction as Di, setName as Dl, LoadFromFile as Dn, LoadStateActionStateInputSchema as Do, MutationSetOperationNameArgs as Dr, UndoSchema as Ds, DeleteModuleInput as Dt, reshuffleByTimestamp as Du, PHConnectRenownAdapters as E, SignalResult as Ea, WebhookPolicy as Ec, SchemaSetNameAction as Ei, setModuleName as El, IsStateOfType as En, LoadStateActionSchema as Eo, MutationSetOperationErrorTemplateArgs as Er, UndoActionSchema as Es, DeleteModuleAction as Et, replayDocument as Eu, PathValidation as F, SubgraphModule as Fa, actionContext as Fc, SetInitialStateInput as Fi, setOperationSchema as Fl, MakeOptional as Fn, PowerhouseModuleSchema as Fo, MutationUpdateStateExampleArgs as Fr, createRelationalDb as Fs, DeleteStateExampleInput as Ft, Operation as Fu, Actions as G, UpdateRelationshipActionInput as Ga, baseActions as Gc, SetModuleDescriptionInput as Gi, IntegrityIssueSubType as Gl, MutationAddModuleArgs as Gn, ReorderChangeLogItemsInputSchema as Go, PowerhouseModule as Gr, RelationalDbProcessor as Gs, DocumentModelLocalState as Gt, undoOperationV2 as Gu, ActionSignatureContext as H, UpdateOperationExampleAction as Ha, addOperationError as Hc, SetModelNameAction as Hi, updateOperationExample as Hl, MoveOperationInput as Hn, RedoActionInputSchema as Ho, PartialState as Hr, IRelationalDbProcessor as Hs, DocumentModelHeaderOperations as Ht, setNameOperation as Hu, PowerhouseConfig as I, Undo as Ia, actionFromAction as Ic, SetModelDescriptionAction as Ii, setOperationScope as Il, Manifest as In, PowerhouseModulesSchema as Io, NOOPAction as Ir, hashNamespace as Is, DocumentAction as It, OperationContext as Iu, AddModuleAction as J, UpgradeDocumentAction as Ja, createAction as Jc, SetNameAction as Ji, PHDocumentHeader as Jl, MutationAddOperationExampleArgs as Jn, ReorderOperationErrorsInputSchema as Jo, PruneActionInput as Jr, IProcessorDispatch as Js, DocumentModelModuleOperations as Jt, Condition as Ju, AddChangeLogItemAction as K, UpdateStateExampleAction as Ka, buildOperationSignature as Kc, SetModuleNameAction as Ki, IntegrityIssueType as Kl, MutationAddOperationArgs as Kn, ReorderModuleOperationsInputSchema as Ko, Prune as Kr, RelationalDbProcessorClass as Ks, DocumentModelModule as Kt, AuthGroups as Ku, PowerhousePackage as L, UndoAction as La, actionSigner as Lc, SetModelDescriptionInput as Li, setOperationTemplate as Ll, MappedOperation as Ln, PruneActionInputSchema as Lo, OperationErrorSpecification as Lr, relationalDbToQueryBuilder as Ls, DocumentModelAction as Lt, OperationOutcome as Lu, PHRenownRainbowAdapterConfig as M, SkipHeaderOperations as Ma, WebhookVerification as Mc, SetAuthorWebsiteAction as Mi, setOperationErrorTemplate as Ml, Load_State as Mn, OperationErrorSchema as Mo, MutationUndoArgs as Mr, isDefinedNonNullAny as Ms, DeleteOperationExampleInput as Mt, split as Mu, PackageManagerArgs as N, State as Na, Action as Nc, SetAuthorWebsiteInput as Ni, setOperationName as Nl, MakeEmpty as Nn, OperationScopeSchema as No, MutationUpdateChangeLogItemInputArgs as Nr, createNamespacedDb as Ns, DeleteOperationInput as Nt, updateHeaderRevision as Nu, PHConnectSentry as O, SignalType as Oa, WebhookRequest as Oc, SchemaUndoAction as Oi, setOperationDescription as Ol, LoadFromInput as On, Load_StateSchema as Oo, MutationSetOperationReducerArgs as Or, UpdateChangeLogItemInputSchema as Os, DeleteOperationAction as Ot, reshuffleByTimestampAndIndex as Ou, ParsedCmdResult as P, StateReducer as Pa, ActionContext as Pc, SetInitialStateAction as Pi, setOperationReducer as Pl, MakeMaybe as Pn, OperationSpecificationSchema as Po, MutationUpdateOperationExampleArgs as Pr, createNamespacedQueryBuilder as Ps, DeleteStateExampleAction as Pt, DocumentOperations as Pu, AddOperationErrorInput as Q, UpgradeManifest as Qa, deleteOperationError as Qc, SetOperationDescriptionInput as Qi, attachBranch as Ql, MutationDeleteOperationArgs as Qn, SetAuthorNameInputSchema as Qo, RedoAction as Qr, ProcessorApps as Qs, DocumentModelOperationExampleAction as Qt, PHBaseState as Qu, ServiceAction as R, UndoActionInput as Ra, actions as Rc, SetModelExtensionAction as Ri, setPreferredEditor as Rl, Maybe as Rn, PruneActionSchema as Ro, OperationIndex as Rr, ExtractProcessorSchemaOrSelf as Rs, DocumentModelDocument as Rt, OperationWithContext$1 as Ru, PHConnectPwaUrlPattern as S, Set_Name as Sa, ScopedRouteHandle as Sc, serializeSignature as Sd, SchemaLoadStateAction as Si, setModelExtension as Sl, ISigner as Sn, DocumentModelGlobalStateSchema as So, MutationSetOperationDescriptionArgs as Sr, Set_NameSchema as Ss, DeleteChildDocumentInput as St, precedes as Su, PHConnectRenown as T, SignalDispatch as Ta, WebhookHashAlgorithm as Tc, PROCESSOR_APPS as Td, SchemaRedoAction as Ti, setModuleDescription as Tl, IsDocumentOfType as Tn, LoadStateActionInputSchema as To, MutationSetOperationErrorNameArgs as Tr, UndoActionInputSchema as Ts, DeleteDocumentActionInput as Tt, removeExistingOperations as Tu, ActionSigningHandler as U, UpdateOperationExampleInput as Ua, addOperationExample as Uc, SetModelNameInput as Ui, updateStateExample as Ul, Mutation as Un, RedoActionSchema as Uo, PhAiToolAnnotations as Ur, IRelationalQueryBuilder as Us, DocumentModelInput as Ut, setPreferredEditorOperation as Uu, ActionErrorCallback as V, UpdateChangeLogItemInput as Va, addOperation as Vc, SetModelIdInput as Vi, updateChangeLogItem as Vl, MoveOperationAction as Vn, PwaConfigSchema as Vo, PartialRecord as Vr, IRelationalDb as Vs, DocumentModelHeaderAction as Vt, redoOperation as Vu, ActionVerificationHandler as W, UpdateRelationshipAction as Wa, addStateExample as Wc, SetModuleDescriptionAction as Wi, verifyOperationSignature as Wl, MutationAddChangeLogItemInputArgs as Wn, RedoSchema as Wo, PhAiToolDescriptor as Wr, IRelationalQueryMethods as Ws, DocumentModelLib as Wt, undoOperation as Wu, AddOperationAction as X, User as Xa, deleteModule as Xc, SetNameOperation as Xi, addUndo as Xl, MutationDeleteChangeLogItemInputArgs as Xn, ReorderStateExamplesInputSchema as Xo, Query as Xr, IProcessorManager as Xs, DocumentModelOperationErrorAction as Xt, Operand as Xu, AddModuleInput as Y, UpgradeDocumentActionInput as Ya, deleteChangeLogItem as Yc, SetNameActionInput as Yi, PHDocumentMeta as Yl, MutationAddStateExampleArgs as Yn, ReorderOperationExamplesInputSchema as Yo, Publisher as Yr, IProcessorHostModuleBase as Ys, DocumentModelOperationAction as Yt, Grant as Yu, AddOperationErrorAction as Z, ValidationError as Za, deleteOperation as Zc, SetOperationDescriptionAction as Zi, appendWithoutApplying as Zl, MutationDeleteModuleArgs as Zn, ScopeStateSchema as Zo, Redo as Zr, ProcessorApp as Zs, DocumentModelOperationErrorOperations as Zt, PHAuthState as Zu, PHConnectPwaCacheStrategy as _, SetPreferredEditorAction as _a, RouteMethod as _c, HashConfig as _d, ReplayDocumentOptions as _i, reorderStateExamples as _l, ID as _n, DeleteOperationErrorInputSchema as _o, MutationSetModelIdArgs as _r, SetOperationScopeInputSchema as _s, CreateDocumentAction as _t, mapSkippedOperationsV2 as _u, PHConnectAi as a, SetOperationErrorTemplateAction as aa, TrackedProcessor as ac, createDocumentState as ad, ReorderChangeLogItemsAction as ai, operationExampleCreators as al, DocumentModelVersioningAction as an, AddChangeLogItemInputSchema as ao, MutationRedoArgs as ar, SetModuleDescriptionInputSchema as as, AddStateExampleInput as at, filterDuplicatedOperations as au, PHConnectPwaManifest as b, SetStateSchemaAction as ba, RouteTransport as bc, UserActionSigner as bd, SaveToFileHandle as bi, setInitialState as bl, ISignal as bn, DeleteStateExampleInputSchema as bo, MutationSetModuleNameArgs as br, SetPreferredEditorActionSchema as bs, DeleteChangeLogItemAction as bt, operationsAreEqual as bu, PHConnectDefaultDrive as c, SetOperationNameInput as ca, IWebhookEndpoints as cc, createState as cd, ReorderModuleOperationsInput as ci, operationWithContext as cl, DocumentSpecification as cn, AddOperationExampleInputSchema as co, MutationReorderModulesArgs as cr, SetNameActionSchema as cs, Author as ct, garbageCollectV2 as cu, PHConnectDriveSection as d, SetOperationSchemaAction as da, RouteActor as dc, defaultDocumentState as dd, ReorderOperationErrorsAction as di, releaseNewVersion as dl, EditorModule as dn, AuthorSchema as do, MutationReorderStateExamplesArgs as dr, SetOperationErrorDescriptionInputSchema as ds, ConfigEntryType as dt, hashDocumentStateForScope as du, SetOperationErrorCodeInput as ea, ProcessorFactory as ec, PHGroupState as ed, Reducer as ei, deleteStateExample as el, DocumentModelOperationOperations as en, UpgradeTransition as eo, MutationDeleteOperationExampleArgs as er, SetInitialStateInputSchema as es, AddOperationExampleInput as et, baseReducerVersion as eu, PHConnectDriveSections as f, SetOperationSchemaInput as fa, RouteAuth as fc, defaultGlobalState as fd, ReorderOperationErrorsInput as fi, reorderChangeLogItems as fl, EditorProps as fn, CodeExampleSchema as fo, MutationSetAuthorNameArgs as fr, SetOperationErrorNameInputSchema as fs, CopyChildDocumentInput as ft, isDocumentAction as fu, PHConnectPwa as g, SetOperationTemplateInput as ga, RouteHandler as gc, AppActionSigner as gd, ReorderStateExamplesInput as gi, reorderOperationExamples as gl, IAction as gn, DeleteModuleInputSchema as go, MutationSetModelExtensionArgs as gr, SetOperationSchemaInputSchema as gs, CreateDocument as gt, mapSkippedOperations as gu, PHConnectPackages as h, SetOperationTemplateAction as ha, RouteContext as hc, ActionSigner as hd, ReorderStateExamplesAction as hi, reorderOperationErrors as hl, GetDocumentOptions as hn, DeleteChangeLogItemInputSchema as ho, MutationSetModelDescriptionArgs as hr, SetOperationReducerInputSchema as hs, CreateChildDocumentSignal as ht, isUndoRedo as hu, LogLevels as i, SetOperationErrorNameInput as ia, ProcessorStatus as ic, createBaseState as id, RemoveRelationshipActionInput as ii, noop as il, DocumentModelUtils as in, normalizeDocumentModelVersion as io, MutationPruneArgs as ir, SetModelNameInputSchema as is, AddStateExampleAction as it, filterDocumentOperationsResultingState as iu, PHRenownPrivyAdapterConfig as j, SkipHeaderOperationIndex as ja, WebhookSpec as jc, SetAuthorNameInput as ji, setOperationErrorName as jl, LoadStateActionStateInput as jn, MoveOperationInputSchema as jo, MutationSetStateSchemaArgs as jr, definedNonNullAnySchema as js, DeleteOperationExampleAction as jt, sortOperations as ju, PHPackageProvider as k, SignatureVerificationHandler as ka, WebhookScheme as kc, ScopeState as ki, setOperationErrorCode as kl, LoadStateAction as kn, ManifestSchema as ko, MutationSetOperationSchemaArgs as kr, UpdateOperationExampleInputSchema as ks, DeleteOperationErrorAction as kt, skipHeaderOperations as ku, PHConnectDefaultDriveLocal as l, SetOperationReducerAction as la, IWebhookScope as lc, defaultAuthState as ld, ReorderModulesAction as li, prune as ll, ENSInfo as ln, AddOperationInputSchema as lo, MutationReorderOperationErrorsArgs as lr, SetOperationDescriptionInputSchema as ls, CodeExample as lt, getDocumentLastModified as lu, PHConnectInstance as m, SetOperationScopeInput as ma, RouteBody as mc, defaultPHState as md, ReorderOperationExamplesInput as mi, reorderModules as ml, FileInput as mn, ConfigEntryTypeSchema as mo, MutationSetInitialStateArgs as mr, SetOperationNameInputSchema as ms, CreateChildDocumentInput as mt, isUndo as mu, DrivePreserveStrategy as n, SetOperationErrorDescriptionInput as na, ProcessorFilter as nc, backfillAuthState as nd, ReleaseNewVersionAction as ni, loadState as nl, DocumentModelStateAction as nn, applyUpgradeDocumentAction as no, MutationLoadStateArgs as nr, SetModelExtensionInputSchema as ns, AddRelationshipAction as nt, checkOperationsIntegrity as nu, PHConnectApp as o, SetOperationErrorTemplateInput as oa, AuthorizerResult as oc, createGlobalState as od, ReorderChangeLogItemsInput as oi, operationFromAction as ol, DocumentModelVersioningOperations as on, AddModuleInputSchema as oo, MutationReorderChangeLogItemsInputArgs as or, SetModuleNameInputSchema as os, AssertIsDocumentOfType as ot, garbageCollect as ou, PHConnectDrives as p, SetOperationScopeAction as pa, RouteAuthorizer as pc, defaultLocalState as pd, ReorderOperationExamplesAction as pi, reorderModuleOperations as pl, Exact as pn, ConfigEntrySchema as po, MutationSetAuthorWebsiteArgs as pr, SetOperationErrorTemplateInputSchema as ps, CopyChildDocumentSignal as pt, isNoopOperation as pu, AddChangeLogItemInput as q, UpdateStateExampleInput as qa, buildSignedAction as qc, SetModuleNameInput as qi, PHDocument as ql, MutationAddOperationErrorArgs as qn, ReorderModulesInputSchema as qo, PruneAction as qr, IProcessor as qs, DocumentModelModuleAction as qt, Capability as qu, LogLevel as r, SetOperationErrorNameAction as ra, ProcessorRecord as rc, createAuthState as rd, RemoveRelationshipAction as ri, moveOperation as rl, DocumentModelStateOperations as rn, computeUpgradeTransitions as ro, MutationMoveOperationArgs as rr, SetModelIdInputSchema as rs, AddRelationshipActionInput as rt, diffOperations as ru, PHConnectBranding as s, SetOperationNameAction as sa, IHttpScope as sc, createLocalState as sd, ReorderModuleOperationsAction as si, operationFromOperation as sl, DocumentOperationsIgnoreMap as sn, AddOperationErrorInputSchema as so, MutationReorderModuleOperationsArgs as sr, SetNameActionInputSchema as ss, AssertIsStateOfType as st, garbageCollectDocumentOperations as su, DrivePreserveStrategies as t, SetOperationErrorDescriptionAction as ta, ProcessorFactoryBuilder as tc, Principal as td, ReducerOptions as ti, documentModelActions as tl, DocumentModelPHState as tn, applyDeleteDocumentAction as to, MutationDeleteStateExampleArgs as tr, SetModelDescriptionInputSchema as ts, AddOperationInput as tt, checkCleanedOperationsIntegrity as tu, PHConnectDefaultDriveRemote as u, SetOperationReducerInput as ua, NodeRouteSpec as uc, defaultBaseState as ud, ReorderModulesInput as ui, redo as ul, EditorDispatch as un, AddStateExampleInputSchema as uo, MutationReorderOperationExamplesArgs as ur, SetOperationErrorCodeInputSchema as us, ConfigEntry as ut, groupOperationsByScope as uu, PHConnectPwaFileHandler as v, SetPreferredEditorActionInput as va, RouteOptions as vc, PHDocumentSignatureInfo as vd, RevisionsFilter as vi, setAuthorName as vl, IDocument as vn, DeleteOperationExampleInputSchema as vo, MutationSetModelNameArgs as vr, SetOperationTemplateInputSchema as vs, CreateDocumentActionInput as vt, merge as vu, PHConnectReactorFeatureFlags as w, Signal as wa, WebhookField as wc, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as wd, SchemaPruneAction as wi, setModelName as wl, InputMaybe as wn, DocumentSpecificationSchema as wo, MutationSetOperationErrorDescriptionArgs as wr, StateSchema as ws, DeleteDocumentAction as wt, readOnly as wu, PHConnectPwaRuntimeCaching as x, SetStateSchemaInput as xa, RouteUser as xc, deserializeSignature as xd, Scalars as xi, setModelDescription as xl, ISignalResult as xn, DocumentActionSchema as xo, MutationSetNameArgs as xr, SetStateSchemaInputSchema as xs, DeleteChangeLogItemInput as xt, parseResultingState as xu, PHConnectPwaIcon as y, SetPreferredEditorOperation as ya, RouteSpec as yc, Signature as yd, SaveToFile as yi, setAuthorWebsite as yl, IOperation as yn, DeleteOperationInputSchema as yo, MutationSetModuleDescriptionArgs as yr, SetPreferredEditorActionInputSchema as ys, CreateState as yt, nextSkipNumber as yu, ServiceActions as z, UndoRedoAction as za, addChangeLogItem as zc, SetModelExtensionInput as zi, setStateSchema as zl, MinimalBackupData as zn, PruneSchema as zo, OperationSpecification as zr, HashAlgorithms as zs, DocumentModelDocumentModelModule as zt, loadStateOperation as zu };
3172
- //# sourceMappingURL=types-BIoOWpOT.d.ts.map
3335
+ export { AddOperationErrorInput as $, AddOperationErrorInputSchema as $a, deleteOperationError as $c, SetOperationNameInput as $i, baseReducerVersion as $l, MutationMoveOperationArgs as $n, SetOperationErrorNameInputSchema as $o, ReorderChangeLogItemsInput as $r, ProcessorApps as $s, DocumentModelOperationExampleAction as $t, defaultDocumentState as $u, PHPackageProvider as A, UndoRedoAction as Aa, WebhookScheme as Ac, PHDocumentSignatureInfo as Ad, SetModelExtensionInput as Ai, setOperationErrorName as Al, MakeEmpty as An, RedoActionSchema as Ao, MutationUpdateStateExampleArgs as Ar, isV2ActionHash as As, DeleteOperationErrorAction as At, sortOperations as Au, ServiceActions as B, UpgradeDocumentActionInput as Ba, addChangeLogItem as Bc, SetNameActionInput as Bi, updateChangeLogItem as Bl, Mutation as Bn, SetAuthorWebsiteInputSchema as Bo, PieceModule as Br, HashAlgorithms as Bs, DocumentModelDocumentModelModule as Bt, PHBaseState as Bu, PHConnectPwaUrlPattern as C, SkipHeaderOperations as Ca, ScopedRouteHandle as Cc, setNameOperation as Cd, SetAuthorWebsiteAction as Ci, setModelName as Cl, ISigner as Cn, PieceModuleSchema as Co, MutationSetOperationReducerArgs as Cr, CanonicalJsonError as Cs, DeleteChildDocumentInput as Ct, readOnly as Cu, PHConnectRenownAdapters as D, Undo as Da, WebhookPolicy as Dc, ActionSigner as Dd, SetModelDescriptionAction as Di, setOperationDescription as Dl, IsStateOfType as Dn, PublisherSchema as Do, MutationUndoArgs as Dr, actionSigningTarget as Ds, DeleteModuleAction as Dt, reshuffleByTimestampAndIndex as Du, PHConnectRenown as E, SubgraphModule as Ea, WebhookHashAlgorithm as Ec, undoOperationV2 as Ed, SetInitialStateInput as Ei, setName as El, IsDocumentOfType as En, PowerhouseModulesSchema as Eo, MutationSetStateSchemaArgs as Er, actionSignerIdentity as Es, DeleteDocumentActionInput as Et, reshuffleByTimestamp as Eu, ParsedCmdResult as F, UpdateRelationshipAction as Fa, ActionContext as Fc, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Fd, SetModuleDescriptionAction as Fi, setOperationScope as Fl, Maybe as Fn, ReorderOperationErrorsInputSchema as Fo, OperationsByScope as Fr, createNamespacedQueryBuilder as Fs, DeleteStateExampleAction as Ft, Capability as Fu, ActionVerificationHandler as G, UpgradeTransition as Ga, addStateExample as Gc, SetOperationErrorCodeInput as Gi, IntegrityIssueType as Gl, MutationAddOperationExampleArgs as Gn, SetModelNameInputSchema as Go, RedoAction as Gr, IRelationalQueryMethods as Gs, DocumentModelLib as Gt, createAuthState as Gu, ActionErrorCallback as H, ValidationError as Ha, addOperation as Hc, SetOperationDescriptionAction as Hi, updateStateExample as Hl, MutationAddModuleArgs as Hn, SetModelDescriptionInputSchema as Ho, Publisher as Hr, IRelationalDb as Hs, DocumentModelHeaderAction as Ht, PHGroupState as Hu, PathValidation as I, UpdateRelationshipActionInput as Ia, actionContext as Ic, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Id, SetModuleDescriptionInput as Ii, setOperationTemplate as Il, MinimalBackupData as In, ReorderOperationExamplesInputSchema as Io, PartialRecord as Ir, createRelationalDb as Is, DeleteStateExampleInput as It, Condition as Iu, AddChangeLogItemInput as J, computeUpgradeTransitions as Ja, buildSignedAction as Jc, SetOperationErrorNameAction as Ji, PHDocumentMeta as Jl, MutationDeleteModuleArgs as Jn, SetNameActionInputSchema as Jo, ReducerOptions as Jr, IProcessor as Js, DocumentModelModuleAction as Jt, createGlobalState as Ju, Actions as K, applyDeleteDocumentAction as Ka, baseActions as Kc, SetOperationErrorDescriptionAction as Ki, PHDocument as Kl, MutationAddStateExampleArgs as Kn, SetModuleDescriptionInputSchema as Ko, RedoActionInput as Kr, RelationalDbProcessor as Ks, DocumentModelLocalState as Kt, createBaseState as Ku, PowerhouseConfig as L, UpdateStateExampleAction as La, actionFromAction as Lc, PROCESSOR_APPS as Ld, SetModuleNameAction as Li, setPreferredEditor as Ll, ModuleSpecification as Ln, ReorderStateExamplesInputSchema as Lo, PartialState as Lr, hashNamespace as Ls, DocumentAction as Lt, Grant as Lu, PHRenownPrivyAdapterConfig as M, UpdateChangeLogItemInput as Ma, WebhookSpec as Mc, UserActionSigner as Md, SetModelIdInput as Mi, setOperationName as Ml, MakeOptional as Mn, ReorderChangeLogItemsInputSchema as Mo, OperationErrorSpecification as Mr, targetDocumentId as Ms, DeleteOperationExampleAction as Mt, updateHeaderRevision as Mu, PHRenownRainbowAdapterConfig as N, UpdateOperationExampleAction as Na, WebhookVerification as Nc, deserializeSignature as Nd, SetModelNameAction as Ni, setOperationReducer as Nl, Manifest as Nn, ReorderModuleOperationsInputSchema as No, OperationIndex as Nr, v2TupleProblem as Ns, DeleteOperationExampleInput as Nt, withSignaturePolicy as Nu, PHConnectRuntimeConfig as O, UndoAction as Oa, WebhookReply as Oc, AppActionSigner as Od, SetModelDescriptionInput as Oi, setOperationErrorCode as Ol, LoadFromFile as On, PwaConfigSchema as Oo, MutationUpdateChangeLogItemInputArgs as Or, canonicalJson as Os, DeleteModuleInput as Ot, skipHeaderOperations as Ou, PackageManagerArgs as P, UpdateOperationExampleInput as Pa, Action as Pc, serializeSignature as Pd, SetModelNameInput as Pi, setOperationSchema as Pl, MappedOperation as Pn, ReorderModulesInputSchema as Po, OperationSpecification as Pr, createNamespacedDb as Ps, DeleteOperationInput as Pt, AuthGroups as Pu, AddOperationErrorAction as Q, AddModuleInputSchema as Qa, deleteOperation as Qc, SetOperationNameAction as Qi, baseCreateDocument as Ql, MutationDeleteStateExampleArgs as Qn, SetOperationErrorDescriptionInputSchema as Qo, ReorderChangeLogItemsAction as Qr, ProcessorApp as Qs, DocumentModelOperationErrorOperations as Qt, defaultBaseState as Qu, PowerhousePackage as R, UpdateStateExampleInput as Ra, actionSigner as Rc, SetModuleNameInput as Ri, setStateSchema as Rl, MoveOperationAction as Rn, ScopeStateSchema as Ro, PhAiToolAnnotations as Rr, relationalDbToQueryBuilder as Rs, DocumentModelAction as Rt, Operand as Ru, PHConnectPwaRuntimeCaching as S, SkipHeaderOperationIndex as Sa, RouteUser as Sc, redoOperation as Sd, SetAuthorNameInput as Si, setModelId as Sl, ISignalResult as Sn, OperationSpecificationSchema as So, MutationSetOperationNameArgs as Sr, ActionSigningTarget as Ss, DeleteChangeLogItemInput as St, prepareOperations as Su, PHConnectReactorFeatureFlags as T, StateReducer as Ta, WebhookField as Tc, undoOperation as Td, SetInitialStateAction as Ti, setModuleName as Tl, InputMaybe as Tn, PowerhouseModuleSchema as To, MutationSetOperationTemplateArgs as Tr, actionPreimageV2 as Ts, DeleteDocumentAction as Tt, replayDocument as Tu, ActionSignatureContext as U, UpgradeManifest as Ua, addOperationError as Uc, SetOperationDescriptionInput as Ui, verifyOperationSignature as Ul, MutationAddOperationArgs as Un, SetModelExtensionInputSchema as Uo, Query as Ur, IRelationalDbProcessor as Us, DocumentModelHeaderOperations as Ut, Principal as Uu, DEFAULT_REGISTRY_URL as V, User as Va, addModule as Vc, SetNameOperation as Vi, updateOperationExample as Vl, MutationAddChangeLogItemInputArgs as Vn, SetInitialStateInputSchema as Vo, PowerhouseModule as Vr, IBaseRelationalDb as Vs, DocumentModelGlobalState as Vt, PHDocumentState as Vu, ActionSigningHandler as W, UpgradeReducer as Wa, addOperationExample as Wc, SetOperationErrorCodeAction as Wi, IntegrityIssueSubType as Wl, MutationAddOperationErrorArgs as Wn, SetModelIdInputSchema as Wo, Redo as Wr, IRelationalQueryBuilder as Ws, DocumentModelInput as Wt, backfillAuthState as Wu, AddModuleInput as X, withProtocolVersions as Xa, deleteChangeLogItem as Xc, SetOperationErrorTemplateAction as Xi, appendWithoutApplying as Xl, MutationDeleteOperationErrorArgs as Xn, SetOperationDescriptionInputSchema as Xo, RemoveRelationshipAction as Xr, IProcessorHostModuleBase as Xs, DocumentModelOperationAction as Xt, createState as Xu, AddModuleAction as Y, normalizeDocumentModelVersion as Ya, createAction as Yc, SetOperationErrorNameInput as Yi, addUndo as Yl, MutationDeleteOperationArgs as Yn, SetNameActionSchema as Yo, ReleaseNewVersionAction as Yr, IProcessorDispatch as Ys, DocumentModelModuleOperations as Yt, createLocalState as Yu, AddOperationAction as Z, AddChangeLogItemInputSchema as Za, deleteModule as Zc, SetOperationErrorTemplateInput as Zi, attachBranch as Zl, MutationDeleteOperationExampleArgs as Zn, SetOperationErrorCodeInputSchema as Zo, RemoveRelationshipActionInput as Zr, IProcessorManager as Zs, DocumentModelOperationErrorAction as Zt, defaultAuthState as Zu, PHConnectPwa as _, SignalResult as _a, RouteHandler as _c, Operation as _d, SchemaSetNameAction as _i, setAuthorName as _l, IAction as _n, ManifestSchema as _o, MutationSetOperationDescriptionArgs as _r, UpdateStateExampleInputSchema as _s, CreateDocument as _t, merge as _u, PHConnectAi as a, SetOperationScopeInput as aa, ProcessorStatus as ac, ProtocolVersions as ad, ReorderOperationErrorsInput as ai, operationExampleCreators as al, DocumentModelUtils as an, ConfigEntrySchema as ao, MutationReorderOperationExamplesArgs as ar, SetOperationTemplateInputSchema as as, AddStateExampleAction as at, garbageCollect as au, PHConnectPwaIcon as b, SignatureVerificationHandler as ba, RouteSpec as bc, OperationWithContext$1 as bd, ScopeState as bi, setModelDescription as bl, IOperation as bn, OperationErrorSchema as bo, MutationSetOperationErrorNameArgs as br, ACTION_SIGNATURE_V2_PREFIX as bs, CreateState as bt, parseResultingState as bu, PHConnectDefaultDrive as c, SetPreferredEditorAction as ca, IHttpScope as cc, SignaturePolicy$1 as cd, ReorderStateExamplesAction as ci, operationWithContext as cl, DocumentOperationsIgnoreMap as cn, DeleteModuleInputSchema as co, MutationSetAuthorWebsiteArgs as cr, SetStateSchemaInputSchema as cs, AssertIsStateOfType as ct, getDocumentLastModified as cu, PHConnectDriveSection as d, SetStateSchemaAction as da, NodeRouteSpec as dc, isSignaturePolicy as dd, RevisionsFilter as di, reorderChangeLogItems as dl, EditorDispatch as dn, DeleteOperationInputSchema as do, MutationSetModelExtensionArgs as dr, StateSchema as ds, ConfigEntry as dt, isDocumentAction as du, SetOperationReducerAction as ea, ProcessorDispatchResult as ec, defaultGlobalState as ed, ReorderModuleOperationsAction as ei, deleteOperationExample as el, DocumentModelOperationExampleOperations as en, AddOperationExampleInputSchema as eo, MutationRedoArgs as er, SetOperationErrorTemplateInputSchema as es, AddOperationExampleAction as et, checkCleanedOperationsIntegrity as eu, PHConnectDriveSections as f, SetStateSchemaInput as fa, RouteActor as fc, protocolVersionsFor as fd, SaveToFile as fi, reorderModuleOperations as fl, EditorModule as fn, DeleteStateExampleInputSchema as fo, MutationSetModelIdArgs as fr, UndoActionInputSchema as fs, ConfigEntryType as ft, isNoopOperation as fu, PHConnectPackages as g, SignalDispatch as ga, RouteContext as gc, DocumentOperations as gd, SchemaRedoAction as gi, reorderStateExamples as gl, GetDocumentOptions as gn, DocumentSpecificationSchema as go, MutationSetNameArgs as gr, UpdateOperationExampleInputSchema as gs, CreateChildDocumentSignal as gt, mapSkippedOperationsV2 as gu, PHConnectOpenPanel as h, Signal as ha, RouteBody as hc, v2RequiredProtocolVersions as hd, SchemaNOOPAction as hi, reorderOperationExamples as hl, FileInput as hn, DocumentModelInputSchema as ho, MutationSetModuleNameArgs as hr, UpdateChangeLogItemInputSchema as hs, CreateChildDocumentInput as ht, mapSkippedOperations as hu, LogLevels as i, SetOperationScopeAction as ia, ProcessorRecord as ic, DocumentIdParams as id, ReorderOperationErrorsAction as ii, noop as il, DocumentModelStateOperations as in, CodeExampleSchema as io, MutationReorderOperationErrorsArgs as ir, SetOperationScopeInputSchema as is, AddRelationshipActionInput as it, filterDuplicatedOperations as iu, PHReactorRenown as j, UpdateChangeLogItemAction as ja, WebhookSignatureEncoding as jc, Signature as jd, SetModelIdAction as ji, setOperationErrorTemplate as jl, MakeMaybe as jn, RedoSchema as jo, NOOPAction as jr, signActionV2 as js, DeleteOperationErrorInput as jt, split as ju, PHConnectSentry as k, UndoActionInput as ka, WebhookRequest as kc, HashConfig as kd, SetModelExtensionAction as ki, setOperationErrorDescription as kl, LoadFromInput as kn, RedoActionInputSchema as ko, MutationUpdateOperationExampleArgs as kr, hashActionV2 as ks, DeleteOperationAction as kt, sortMappedOperations as ku, PHConnectDefaultDriveLocal as l, SetPreferredEditorActionInput as la, IWebhookEndpoints as lc, deriveDocumentId as ld, ReorderStateExamplesInput as li, redo as ll, DocumentSpecification as ln, DeleteOperationErrorInputSchema as lo, MutationSetInitialStateArgs as lr, Set_NameSchema as ls, Author as lt, groupOperationsByScope as lu, PHConnectInstance as m, Set_PreferredEditor as ma, RouteAuthorizer as mc, signaturePolicyOf as md, Scalars as mi, reorderOperationErrors as ml, Exact as mn, DocumentModelGlobalStateSchema as mo, MutationSetModuleDescriptionArgs as mr, UndoSchema as ms, CopyChildDocumentSignal as mt, isUndoRedo as mu, DrivePreserveStrategy as n, SetOperationSchemaAction as na, ProcessorFactoryBuilder as nc, defaultPHState as nd, ReorderModulesAction as ni, documentModelActions as nl, DocumentModelPHState as nn, AddStateExampleInputSchema as no, MutationReorderModuleOperationsArgs as nr, SetOperationReducerInputSchema as ns, AddOperationInput as nt, diffOperations as nu, PHConnectApp as o, SetOperationTemplateAction as oa, TrackedProcessor as oc, SIGNATURE_PROTOCOL as od, ReorderOperationExamplesAction as oi, operationFromAction as ol, DocumentModelVersioningAction as on, ConfigEntryTypeSchema as oo, MutationReorderStateExamplesArgs as or, SetPreferredEditorActionInputSchema as os, AddStateExampleInput as ot, garbageCollectDocumentOperations as ou, PHConnectDrives as p, Set_Name as pa, RouteAuth as pc, requestedSignaturePolicy as pd, SaveToFileHandle as pi, reorderModules as pl, EditorProps as pn, DocumentActionSchema as po, MutationSetModelNameArgs as pr, UndoActionSchema as ps, CopyChildDocumentInput as pt, isUndo as pu, AddChangeLogItemAction as q, applyUpgradeDocumentAction as qa, buildOperationSignature as qc, SetOperationErrorDescriptionInput as qi, PHDocumentHeader as ql, MutationDeleteChangeLogItemInputArgs as qn, SetModuleNameInputSchema as qo, Reducer as qr, RelationalDbProcessorClass as qs, DocumentModelModule as qt, createDocumentState as qu, LogLevel as r, SetOperationSchemaInput as ra, ProcessorFilter as rc, DEFAULT_SIGNATURE_POLICY as rd, ReorderModulesInput as ri, moveOperation as rl, DocumentModelStateAction as rn, AuthorSchema as ro, MutationReorderModulesArgs as rr, SetOperationSchemaInputSchema as rs, AddRelationshipAction as rt, filterDocumentOperationsResultingState as ru, PHConnectBranding as s, SetOperationTemplateInput as sa, AuthorizerResult as sc, SIGNATURE_PROTOCOL_V2 as sd, ReorderOperationExamplesInput as si, operationFromOperation as sl, DocumentModelVersioningOperations as sn, DeleteChangeLogItemInputSchema as so, MutationSetAuthorNameArgs as sr, SetPreferredEditorActionSchema as ss, AssertIsDocumentOfType as st, garbageCollectV2 as su, DrivePreserveStrategies as t, SetOperationReducerInput as ta, ProcessorFactory as tc, defaultLocalState as td, ReorderModuleOperationsInput as ti, deleteStateExample as tl, DocumentModelOperationOperations as tn, AddOperationInputSchema as to, MutationReorderChangeLogItemsInputArgs as tr, SetOperationNameInputSchema as ts, AddOperationExampleInput as tt, checkOperationsIntegrity as tu, PHConnectDefaultDriveRemote as u, SetPreferredEditorOperation as ua, IWebhookScope as uc, isDerivedDocumentId as ud, ReplayDocumentOptions as ui, releaseNewVersion as ul, ENSInfo as un, DeleteOperationExampleInputSchema as uo, MutationSetModelDescriptionArgs as ur, Set_PreferredEditorSchema as us, CodeExample as ut, hashDocumentStateForScope as uu, PHConnectPwaCacheStrategy as v, SignalResults as va, RouteMethod as vc, OperationContext as vd, SchemaSetPreferredEditorAction as vi, setAuthorWebsite as vl, ID as vn, ModuleSchema as vo, MutationSetOperationErrorCodeArgs as vr, definedNonNullAnySchema as vs, CreateDocumentAction as vt, nextSkipNumber as vu, PHConnectReactor as w, State as wa, WebhookEndpointInfo as wc, setPreferredEditorOperation as wd, SetAuthorWebsiteInput as wi, setModuleDescription as wl, Incremental as wn, PieceModulesSchema as wo, MutationSetOperationSchemaArgs as wr, DOCUMENT_SCOPE_ACTION_TYPES as ws, DeleteChildDocumentSignal as wt, removeExistingOperations as wu, PHConnectPwaManifest as x, SigningParameters as xa, RouteTransport as xc, operationOutcome as xd, SetAuthorNameAction as xi, setModelExtension as xl, ISignal as xn, OperationScopeSchema as xo, MutationSetOperationErrorTemplateArgs as xr, ActionSignerIdentity as xs, DeleteChangeLogItemAction as xt, precedes as xu, PHConnectPwaFileHandler as y, SignalType as ya, RouteOptions as yc, OperationOutcome as yd, SchemaUndoAction as yi, setInitialState as yl, IDocument as yn, MoveOperationInputSchema as yo, MutationSetOperationErrorDescriptionArgs as yr, isDefinedNonNullAny as ys, CreateDocumentActionInput as yt, operationsAreEqual as yu, ServiceAction as z, UpgradeDocumentAction as za, actions as zc, SetNameAction as zi, undo as zl, MoveOperationInput as zn, SetAuthorNameInputSchema as zo, PhAiToolDescriptor as zr, ExtractProcessorSchemaOrSelf as zs, DocumentModelDocument as zt, PHAuthState as zu };
3336
+ export {};
3337
+ //# sourceMappingURL=types-CmeoQg_J.d.ts.map