@powerhousedao/shared 6.2.3-dev.23 → 6.2.3-dev.25

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 (264) 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-Bf1K1Fpc.mjs → access-token-3Hqv_U8I.mjs} +2 -2
  6. package/dist/clis/args/{access-token-Bf1K1Fpc.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-BpnFLR-_.mjs → common-BXabdhiO.mjs} +10 -2
  12. package/dist/clis/args/{common-BpnFLR-_.mjs.map → common-BXabdhiO.mjs.map} +1 -1
  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-ByiLv365.mjs → connect-B6xK4YI_.mjs} +2 -2
  18. package/dist/clis/args/{connect-ByiLv365.mjs.map → connect-B6xK4YI_.mjs.map} +1 -1
  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-C51i00At.mjs → generate-10dooJ-D.mjs} +2 -2
  24. package/dist/clis/args/{generate-C51i00At.mjs.map → generate-10dooJ-D.mjs.map} +1 -1
  25. package/dist/clis/args/generate-DmgiCzuf.d.mts +106 -0
  26. package/dist/clis/args/generate-DmgiCzuf.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-DVPTARGn.d.mts +190 -0
  30. package/dist/clis/args/help-DVPTARGn.d.mts.map +1 -0
  31. package/dist/clis/args/{help-D2SeQC09.mjs → help-yRmplJjW.mjs} +15 -15
  32. package/dist/clis/args/{help-D2SeQC09.mjs.map → help-yRmplJjW.mjs.map} +1 -1
  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-DBYYsV0Y.mjs → init-Dvb42Y87.mjs} +2 -2
  40. package/dist/clis/args/{init-DBYYsV0Y.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-BzBsZ0UO.mjs → inspect-UNQgtuR0.mjs} +2 -2
  46. package/dist/clis/args/{inspect-BzBsZ0UO.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-D0jaysiP.mjs → install-F-27kF6m.mjs} +2 -2
  52. package/dist/clis/args/{install-D0jaysiP.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-BaO47Btz.mjs → list-Bkfn8Yuo.mjs} +2 -2
  56. package/dist/clis/args/{list-BaO47Btz.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-DM-qhiYI.mjs → login-CIFkQExi.mjs} +2 -2
  62. package/dist/clis/args/{login-DM-qhiYI.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-CB2hOw9v.mjs} +14 -13
  68. package/dist/clis/args/{magic-string.es-h_0HDQBQ.mjs.map → magic-string.es-CB2hOw9v.mjs.map} +1 -1
  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-EitaI7jq.mjs → migrate-DwJGhc2d.mjs} +2 -2
  72. package/dist/clis/args/{migrate-EitaI7jq.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-DfMF3Nmc.mjs → publish-DHqlGWmL.mjs} +2 -2
  78. package/dist/clis/args/{publish-DfMF3Nmc.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-Di1tZqbn.mjs → registry-DIwES3l2.mjs} +2 -2
  82. package/dist/clis/args/{registry-Di1tZqbn.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-jRX2qPul.mjs → service-Cpjlyeu5.mjs} +2 -2
  90. package/dist/clis/args/{service-jRX2qPul.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-BhR-ZwGV.mjs → switchboard-CCaAtU56.mjs} +2 -2
  94. package/dist/clis/args/{switchboard-BhR-ZwGV.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-diefi70g.mjs → uninstall-3U0B8g5c.mjs} +2 -2
  100. package/dist/clis/args/{uninstall-diefi70g.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-C6eNRzsU.mjs → unpublish-s9zUh6Gw.mjs} +2 -2
  108. package/dist/clis/args/{unpublish-C6eNRzsU.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-DV0zQzba.mjs → vetra-BUNlAAPp.mjs} +2 -2
  112. package/dist/clis/args/{vetra-DV0zQzba.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 +281 -176
  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-BkfXtfV8.mjs → build-config-CmdMi_wu.mjs} +3 -3
  121. package/dist/clis/{build-config-BkfXtfV8.mjs.map → build-config-CmdMi_wu.mjs.map} +1 -1
  122. package/dist/clis/build-config.d.mts +20 -17
  123. package/dist/clis/build-config.d.mts.map +1 -1
  124. package/dist/clis/build-config.mjs +1 -1
  125. package/dist/clis/build-pieces.d.mts +43 -37
  126. package/dist/clis/build-pieces.d.mts.map +1 -1
  127. package/dist/clis/build-pieces.mjs +3 -2
  128. package/dist/clis/build-pieces.mjs.map +1 -1
  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 -2
  133. package/dist/clis/constants.mjs +3 -3
  134. package/dist/clis/constants.mjs.map +1 -1
  135. package/dist/clis/{index-CyAv0ucZ.d.mts → index-DpixpHXl.d.mts} +1800 -1265
  136. package/dist/clis/index-DpixpHXl.d.mts.map +1 -0
  137. package/dist/clis/index.d.mts +1295 -1254
  138. package/dist/clis/index.d.mts.map +1 -1
  139. package/dist/clis/index.mjs +92 -55
  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-DXhVHupa.d.mts → types-CMFHKrgv.d.mts} +67 -29
  152. package/dist/clis/types-CMFHKrgv.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-e4-qdVVI.js → config-loader-SYDWHtqk.js} +12 -7
  157. package/dist/config-loader-SYDWHtqk.js.map +1 -0
  158. package/dist/connect/config-loader.d.ts +7 -8
  159. package/dist/connect/config-loader.d.ts.map +1 -1
  160. package/dist/connect/config-loader.js +1 -1
  161. package/dist/connect/index.d.ts +75 -68
  162. package/dist/connect/index.d.ts.map +1 -1
  163. package/dist/connect/index.js +88 -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 +15 -4
  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 +440 -226
  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-CAs0TFVQ.d.ts → index-CDDyUSHE.d.ts} +40 -28
  186. package/dist/index-CDDyUSHE.d.ts.map +1 -0
  187. package/dist/index-D0JljlgO.d.ts +36 -0
  188. package/dist/index-D0JljlgO.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 +2 -1
  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.map +1 -1
  201. package/dist/registry/updates.d.ts +3 -3
  202. package/dist/registry/updates.d.ts.map +1 -1
  203. package/dist/registry/updates.js.map +1 -1
  204. package/dist/registry/urls.d.ts +2 -2
  205. package/dist/registry/urls.d.ts.map +1 -1
  206. package/dist/registry/urls.js.map +1 -1
  207. package/dist/{types-C1in4fl3.d.ts → types-Bsp8VL2y.d.ts} +2 -2
  208. package/dist/types-Bsp8VL2y.d.ts.map +1 -0
  209. package/dist/{types-ooGknils.d.ts → types-VDHUeQnm.d.ts} +17 -35
  210. package/dist/types-VDHUeQnm.d.ts.map +1 -0
  211. package/dist/{types-glwGlTGx.d.ts → types-xLPOHE23.d.ts} +532 -433
  212. package/dist/types-xLPOHE23.d.ts.map +1 -0
  213. package/dist/{utils-DP122OSS.d.ts → utils-BrKxCmKx.d.ts} +2 -2
  214. package/dist/utils-BrKxCmKx.d.ts.map +1 -0
  215. package/dist/{utils-aaTmfxFW.js → utils-XotexSsQ.js} +3 -2
  216. package/dist/{utils-aaTmfxFW.js.map → utils-XotexSsQ.js.map} +1 -1
  217. package/package.json +5 -4
  218. package/dist/clis/args/access-token--9H57y8J.d.mts +0 -18
  219. package/dist/clis/args/access-token--9H57y8J.d.mts.map +0 -1
  220. package/dist/clis/args/common-yKU4B741.d.mts +0 -186
  221. package/dist/clis/args/common-yKU4B741.d.mts.map +0 -1
  222. package/dist/clis/args/connect-BD-C5BkE.d.mts +0 -452
  223. package/dist/clis/args/connect-BD-C5BkE.d.mts.map +0 -1
  224. package/dist/clis/args/generate-rd5SAYho.d.mts +0 -108
  225. package/dist/clis/args/generate-rd5SAYho.d.mts.map +0 -1
  226. package/dist/clis/args/help-CjAsudUn.d.mts +0 -193
  227. package/dist/clis/args/help-CjAsudUn.d.mts.map +0 -1
  228. package/dist/clis/args/init-CUXyfquF.d.mts +0 -55
  229. package/dist/clis/args/init-CUXyfquF.d.mts.map +0 -1
  230. package/dist/clis/args/inspect-DtZeoA5c.d.mts +0 -15
  231. package/dist/clis/args/inspect-DtZeoA5c.d.mts.map +0 -1
  232. package/dist/clis/args/install-CkP8zcHb.d.mts +0 -40
  233. package/dist/clis/args/install-CkP8zcHb.d.mts.map +0 -1
  234. package/dist/clis/args/list-BGf8s_gj.d.mts +0 -12
  235. package/dist/clis/args/list-BGf8s_gj.d.mts.map +0 -1
  236. package/dist/clis/args/login-DNsHwvqk.d.mts +0 -27
  237. package/dist/clis/args/login-DNsHwvqk.d.mts.map +0 -1
  238. package/dist/clis/args/migrate-sixkWhxm.d.mts +0 -21
  239. package/dist/clis/args/migrate-sixkWhxm.d.mts.map +0 -1
  240. package/dist/clis/args/publish-Dqe5DUst.d.mts +0 -18
  241. package/dist/clis/args/publish-Dqe5DUst.d.mts.map +0 -1
  242. package/dist/clis/args/registry-C_RfTsKB.d.mts +0 -19
  243. package/dist/clis/args/registry-C_RfTsKB.d.mts.map +0 -1
  244. package/dist/clis/args/service-Cou6l7l8.d.mts +0 -22
  245. package/dist/clis/args/service-Cou6l7l8.d.mts.map +0 -1
  246. package/dist/clis/args/switchboard-BlPaq2at.d.mts +0 -72
  247. package/dist/clis/args/switchboard-BlPaq2at.d.mts.map +0 -1
  248. package/dist/clis/args/uninstall-BpA3YYbw.d.mts +0 -31
  249. package/dist/clis/args/uninstall-BpA3YYbw.d.mts.map +0 -1
  250. package/dist/clis/args/unpublish-CvwaIimG.d.mts +0 -24
  251. package/dist/clis/args/unpublish-CvwaIimG.d.mts.map +0 -1
  252. package/dist/clis/args/vetra-CoMvTJK7.d.mts +0 -113
  253. package/dist/clis/args/vetra-CoMvTJK7.d.mts.map +0 -1
  254. package/dist/clis/index-CyAv0ucZ.d.mts.map +0 -1
  255. package/dist/clis/types-DXhVHupa.d.mts.map +0 -1
  256. package/dist/config-loader-e4-qdVVI.js.map +0 -1
  257. package/dist/constants-BP_gjn8g.d.ts.map +0 -1
  258. package/dist/index-CAs0TFVQ.d.ts.map +0 -1
  259. package/dist/index-C_iVZe7f.d.ts +0 -7
  260. package/dist/index-C_iVZe7f.d.ts.map +0 -1
  261. package/dist/types-C1in4fl3.d.ts.map +0 -1
  262. package/dist/types-glwGlTGx.d.ts.map +0 -1
  263. package/dist/types-ooGknils.d.ts.map +0 -1
  264. package/dist/utils-DP122OSS.d.ts.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}).
508
571
  */
509
- declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(createState: CreateState<TState>, initialState?: Partial<TState>, documentType?: string): PHDocument<TState>;
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.
580
+ */
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 {
@@ -1341,16 +1407,62 @@ declare function createNamespacedQueryBuilder<Schema>(db: IBaseRelationalDb<any>
1341
1407
  */
1342
1408
  declare function relationalDbToQueryBuilder<TSchema>(query: IBaseRelationalDb<TSchema>): IRelationalQueryBuilder<TSchema>;
1343
1409
  //#endregion
1410
+ //#region document-model/action-signature.d.ts
1411
+ declare const ACTION_SIGNATURE_V2_PREFIX = "v2:";
1412
+ /** The log an operation is stored in, which a v2 tuple is bound to. */
1413
+ type ActionSigningTarget = {
1414
+ documentId: string;
1415
+ branch: string;
1416
+ };
1417
+ /** Who a v2 tuple attributes the action to; both halves are in the preimage. */
1418
+ type ActionSignerIdentity = {
1419
+ user: UserActionSigner;
1420
+ app: AppActionSigner;
1421
+ };
1422
+ /** A value that would not survive a JSON store round trip unchanged. */
1423
+ declare class CanonicalJsonError extends Error {
1424
+ constructor(path: string, detail: string);
1425
+ }
1426
+ /** Sorted-key JSON, as the state hash encodes; drops `undefined` properties. */
1427
+ declare function canonicalJson(value: unknown, label?: string): string;
1428
+ /** Actions the reactor reduces itself, onto the document scope. */
1429
+ declare const DOCUMENT_SCOPE_ACTION_TYPES: ReadonlySet<string>;
1430
+ /** Where a document-scope action writes: `sourceId` or `documentId`. */
1431
+ declare function targetDocumentId(action: {
1432
+ type: string;
1433
+ input: unknown;
1434
+ }, fallback: string): string;
1435
+ /** The log an action submitted to a job on `documentId` is stored in. */
1436
+ declare function actionSigningTarget(action: {
1437
+ type: string;
1438
+ input: unknown;
1439
+ }, documentId: string, branch: string): ActionSigningTarget;
1440
+ /** The identity a signer writes into `context.signer`, and signs over. */
1441
+ declare function actionSignerIdentity(signer: {
1442
+ user?: UserActionSigner;
1443
+ app?: AppActionSigner;
1444
+ }): ActionSignerIdentity;
1445
+ /** The v2 preimage; throws `CanonicalJsonError` on an unsignable action. */
1446
+ declare function actionPreimageV2(action: Action, target: ActionSigningTarget, signer: ActionSignerIdentity): string;
1447
+ /** `"v2:" + base64url(sha256(preimage))`, unpadded. */
1448
+ declare function hashActionV2(action: Action, target: ActionSigningTarget, signer: ActionSignerIdentity): Promise<string>;
1449
+ /** Signs `action` as a v2 tuple; the message layout is the legacy one. */
1450
+ declare function signActionV2(params: {
1451
+ action: Action;
1452
+ target: ActionSigningTarget;
1453
+ signer: ActionSignerIdentity;
1454
+ sign: ActionSigningHandler;
1455
+ previousStateHash?: string;
1456
+ }): Promise<Signature>;
1457
+ /** Element [2] carries the v2 prefix, whether or not it is well formed. */
1458
+ declare function isV2ActionHash(hash: string): boolean;
1459
+ /** The strict shape of a v2 tuple, apart from what its hash covers. */
1460
+ declare function v2TupleProblem(tuple: Signature): string | undefined;
1461
+ //#endregion
1344
1462
  //#region document-model/schemas.d.ts
1345
1463
  type definedNonNullAny = {};
1346
1464
  declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
1347
1465
  declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
1348
- declare const Load_StateSchema: z.ZodEnum<{
1349
- LOAD_STATE: "LOAD_STATE";
1350
- }>;
1351
- declare const PruneSchema: z.ZodEnum<{
1352
- PRUNE: "PRUNE";
1353
- }>;
1354
1466
  declare const RedoSchema: z.ZodEnum<{
1355
1467
  REDO: "REDO";
1356
1468
  }>;
@@ -1365,18 +1477,6 @@ declare const UndoSchema: z.ZodEnum<{
1365
1477
  }>;
1366
1478
  declare function OperationScopeSchema(): z.ZodString;
1367
1479
  declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
1368
- id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1369
- timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1370
- input: z.ZodType<LoadStateActionInput, LoadStateActionInput, z.core.$ZodTypeInternals<LoadStateActionInput, LoadStateActionInput>>;
1371
- type: z.ZodType<"LOAD_STATE", "LOAD_STATE", z.core.$ZodTypeInternals<"LOAD_STATE", "LOAD_STATE">>;
1372
- scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1373
- }>, z.core.$strip>, z.ZodObject<Required<{
1374
- id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1375
- timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1376
- input: z.ZodType<PruneActionInput, PruneActionInput, z.core.$ZodTypeInternals<PruneActionInput, PruneActionInput>>;
1377
- type: z.ZodType<"PRUNE", "PRUNE", z.core.$ZodTypeInternals<"PRUNE", "PRUNE">>;
1378
- scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1379
- }>, z.core.$strip>, z.ZodObject<Required<{
1380
1480
  id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1381
1481
  timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1382
1482
  input: z.ZodType<RedoActionInput, RedoActionInput, z.core.$ZodTypeInternals<RedoActionInput, RedoActionInput>>;
@@ -1401,11 +1501,6 @@ declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject<Requir
1401
1501
  type: z.ZodType<"UNDO", "UNDO", z.core.$ZodTypeInternals<"UNDO", "UNDO">>;
1402
1502
  scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1403
1503
  }>, z.core.$strip>]>;
1404
- declare function LoadStateActionSchema(): z.ZodObject<Properties<SchemaLoadStateAction>>;
1405
- declare function LoadStateActionInputSchema(): z.ZodObject<Properties<LoadStateActionInput>>;
1406
- declare function LoadStateActionStateInputSchema(): z.ZodObject<Properties<LoadStateActionStateInput>>;
1407
- declare function PruneActionSchema(): z.ZodObject<Properties<SchemaPruneAction>>;
1408
- declare function PruneActionInputSchema(): z.ZodObject<Properties<PruneActionInput>>;
1409
1504
  declare function RedoActionInputSchema(): z.ZodObject<{
1410
1505
  count: z.ZodNumber;
1411
1506
  }, z.core.$strip>;
@@ -1422,7 +1517,7 @@ declare function UndoActionInputSchema(): z.ZodObject<{
1422
1517
  count: z.ZodNumber;
1423
1518
  }, z.core.$strip>;
1424
1519
  declare function UndoActionSchema(): z.ZodObject<Properties<SchemaUndoAction>>;
1425
- type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]> }>;
1520
+ type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]>; }>;
1426
1521
  declare function AddChangeLogItemInputSchema(): z.ZodObject<Properties<AddChangeLogItemInput>>;
1427
1522
  declare function AddModuleInputSchema(): z.ZodObject<Properties<AddModuleInput>>;
1428
1523
  declare function AddOperationErrorInputSchema(): z.ZodObject<Properties<AddOperationErrorInput>>;
@@ -1715,7 +1810,7 @@ type UpgradeManifest<TVersions extends readonly number[]> = {
1715
1810
  documentType: string;
1716
1811
  latestVersion: TupleMember<TVersions>;
1717
1812
  supportedVersions: TVersions;
1718
- upgrades: { [V in Exclude<TupleMember<TVersions>, 1> as `v${V}`]: UpgradeTransition };
1813
+ upgrades: { [V in Exclude<TupleMember<TVersions>, 1> as `v${V}`]: UpgradeTransition; };
1719
1814
  };
1720
1815
  /**
1721
1816
  * Canonical document-model version normalization: documents stamped with 0
@@ -1736,6 +1831,8 @@ declare function normalizeDocumentModelVersion(version: number | undefined | nul
1736
1831
  * - All other cases: Apply upgradePath transitions (if provided), then apply initialState, set version
1737
1832
  */
1738
1833
  declare function applyUpgradeDocumentAction(document: PHDocument, action: UpgradeDocumentAction, upgradePath?: UpgradeTransition[]): PHDocument;
1834
+ /** CREATE_DOCUMENT fixes `protocolVersions`; this puts them back after a reducer. */
1835
+ declare function withProtocolVersions<TDocument extends PHDocument>(document: TDocument, protocolVersions: PHDocument["header"]["protocolVersions"]): TDocument;
1739
1836
  /**
1740
1837
  * Applies a DELETE_DOCUMENT action to a document.
1741
1838
  * Marks the document as deleted in the document scope state.
@@ -2394,11 +2491,11 @@ interface DocumentModelVersioningOperations {
2394
2491
  }
2395
2492
  type Maybe<T> = T | null;
2396
2493
  type InputMaybe<T> = T | null | undefined;
2397
- type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K] };
2398
- type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
2399
- type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
2400
- type MakeEmpty<T extends Record<string, unknown>, K extends keyof T> = { [_ in K]?: never };
2401
- type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
2494
+ type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K]; };
2495
+ type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]>; };
2496
+ type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]>; };
2497
+ type MakeEmpty<T extends Record<string, unknown>, K extends keyof T> = { [_ in K]?: never; };
2498
+ type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never; };
2402
2499
  /** All built-in and custom scalars, mapped to their actual values */
2403
2500
  type Scalars = {
2404
2501
  ID: {
@@ -2459,28 +2556,6 @@ type IOperation = {
2459
2556
  timestampUtcMs: Scalars["DateTime"]["output"];
2460
2557
  type: Scalars["String"]["output"];
2461
2558
  };
2462
- type Load_State = "LOAD_STATE";
2463
- type SchemaLoadStateAction = {
2464
- id: Scalars["String"]["output"];
2465
- timestampUtcMs: Scalars["DateTime"]["output"];
2466
- input: LoadStateActionInput;
2467
- type: Load_State;
2468
- scope: string;
2469
- };
2470
- type LoadStateActionInput = {
2471
- operations: Scalars["Int"]["input"];
2472
- state: LoadStateActionStateInput;
2473
- };
2474
- type LoadStateActionStateInput = {
2475
- data?: InputMaybe<Scalars["Unknown"]["input"]>;
2476
- name: Scalars["String"]["input"];
2477
- };
2478
- type MutationLoadStateArgs = {
2479
- input: SchemaLoadStateAction;
2480
- };
2481
- type MutationPruneArgs = {
2482
- input: SchemaPruneAction;
2483
- };
2484
2559
  type MutationRedoArgs = {
2485
2560
  input: SchemaRedoAction;
2486
2561
  };
@@ -2490,18 +2565,6 @@ type MutationSetNameArgs = {
2490
2565
  type MutationUndoArgs = {
2491
2566
  input: SchemaUndoAction;
2492
2567
  };
2493
- type Prune = "PRUNE";
2494
- type SchemaPruneAction = {
2495
- id: Scalars["String"]["output"];
2496
- timestampUtcMs: Scalars["DateTime"]["output"];
2497
- input: PruneActionInput;
2498
- type: Prune;
2499
- scope: string;
2500
- };
2501
- type PruneActionInput = {
2502
- end?: InputMaybe<Scalars["Int"]["input"]>;
2503
- start?: InputMaybe<Scalars["Int"]["input"]>;
2504
- };
2505
2568
  type Query = {
2506
2569
  __typename?: "Query";
2507
2570
  document: Maybe<IDocument>;
@@ -2573,14 +2636,6 @@ type SchemaNOOPAction = {
2573
2636
  timestampUtcMs: Scalars["DateTime"]["output"];
2574
2637
  type: "NOOP";
2575
2638
  };
2576
- type LoadStateAction = Action & {
2577
- type: "LOAD_STATE";
2578
- input: LoadStateActionInput;
2579
- };
2580
- type PruneAction = Action & {
2581
- type: "PRUNE";
2582
- input: PruneActionInput;
2583
- };
2584
2639
  type RedoAction = Action & {
2585
2640
  type: "REDO";
2586
2641
  input: SchemaRedoAction["input"];
@@ -2678,7 +2733,7 @@ type UpdateRelationshipAction = Action & {
2678
2733
  type: "UPDATE_RELATIONSHIP";
2679
2734
  input: UpdateRelationshipActionInput;
2680
2735
  };
2681
- type DocumentAction = LoadStateAction | PruneAction | RedoAction | SetNameAction | SetPreferredEditorAction | UndoAction | NOOPAction;
2736
+ type DocumentAction = RedoAction | SetNameAction | SetPreferredEditorAction | UndoAction | NOOPAction;
2682
2737
  interface ISignal<TType extends string, TInput> {
2683
2738
  type: TType;
2684
2739
  input: TInput;
@@ -2715,19 +2770,27 @@ type SignalResults = {
2715
2770
  type SignalType<T extends Signal> = T["type"];
2716
2771
  type FileInput = string | number[] | Uint8Array | ArrayBuffer | Blob;
2717
2772
  type ReducerOptions = {
2718
- /** 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 */
2719
- ignoreSkipOperations?: boolean; /** if true reuses the provided action resulting state instead of replaying it */
2720
- reuseOperationResultingState?: boolean; /** if true checks the hashes of the operations */
2721
- checkHashes?: boolean; /** Options for performing a replay. */
2773
+ /** The number of operations to skip before this new action is applied. This overrides the skip count in the operation. */
2774
+ skip?: number;
2775
+ /** When true the skip count is ignored and the action is applied regardless of the skip count */
2776
+ ignoreSkipOperations?: boolean;
2777
+ /** if true reuses the provided action resulting state instead of replaying it */
2778
+ reuseOperationResultingState?: boolean;
2779
+ /** if true checks the hashes of the operations */
2780
+ checkHashes?: boolean;
2781
+ /** Options for performing a replay. */
2722
2782
  replayOptions?: {
2723
- /** The previously created operation to verify against. */operation: Operation;
2724
- }; /** Optional parser for the operation resulting state, uses JSON.parse by default */
2783
+ /** The previously created operation to verify against. */
2784
+ operation: Operation;
2785
+ };
2786
+ /** Optional parser for the operation resulting state, uses JSON.parse by default */
2725
2787
  operationResultingStateParser?: <TState>(state: string | null | undefined) => TState;
2726
2788
  /**
2727
2789
  * When true (default), the reducer will prune operations (garbage collect) when processing a skip.
2728
2790
  * When false, it will recompute state for the skip but preserve the existing operations history.
2729
2791
  */
2730
- pruneOnSkip?: boolean; /** The branch being operated on. Defaults to "main". */
2792
+ pruneOnSkip?: boolean;
2793
+ /** The branch being operated on. Defaults to "main". */
2731
2794
  branch?: string;
2732
2795
  /**
2733
2796
  * Protocol version controlling undo/redo behavior.
@@ -2778,7 +2841,7 @@ type User = {
2778
2841
  chainId: number;
2779
2842
  ens?: ENSInfo;
2780
2843
  };
2781
- type PartialRecord<K extends keyof any, T> = { [P in K]?: T };
2844
+ type PartialRecord<K extends keyof any, T> = { [P in K]?: T; };
2782
2845
  type RevisionsFilter = PartialRecord<string, number>;
2783
2846
  type GetDocumentOptions = ReducerOptions & {
2784
2847
  revisions?: RevisionsFilter;
@@ -2858,13 +2921,14 @@ interface ISigner {
2858
2921
  */
2859
2922
  verify: (data: Uint8Array, signature: Uint8Array) => Promise<void>;
2860
2923
  /**
2861
- * Signs an action (used for operation signing).
2924
+ * Signs an action for the log it is written to.
2862
2925
  *
2863
2926
  * @param action - The action to sign.
2927
+ * @param target - The document and branch whose log stores the action.
2864
2928
  * @param abortSignal - Optional abort signal to cancel the signing.
2865
2929
  * @returns The signature tuple.
2866
2930
  */
2867
- signAction: (action: Action, abortSignal?: AbortSignal) => Promise<Signature>;
2931
+ signAction: (action: Action, target: ActionSigningTarget, abortSignal?: AbortSignal) => Promise<Signature>;
2868
2932
  }
2869
2933
  type IsStateOfType<TState> = (state: unknown) => state is TState;
2870
2934
  type AssertIsStateOfType<TState> = (state: unknown) => asserts state is TState;
@@ -2922,7 +2986,8 @@ type PhAiToolDescriptor = {
2922
2986
  callback: (args: never) => Promise<unknown>;
2923
2987
  };
2924
2988
  type DocumentModelModule<TState extends PHBaseState = PHBaseState> = {
2925
- /** optional version field, should be made required */version?: number;
2989
+ /** optional version field, should be made required */
2990
+ version?: number;
2926
2991
  reducer: Reducer<TState>;
2927
2992
  actions: Actions;
2928
2993
  utils: DocumentModelUtils<TState>;
@@ -2982,10 +3047,13 @@ type PHConnectDefaultDriveRemote = {
2982
3047
  icon?: string | null;
2983
3048
  };
2984
3049
  type PHConnectDefaultDriveLocal = {
2985
- /** 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. */
3050
+ /** Discriminator: this entry is a local drive created on first boot. */
3051
+ local: true;
3052
+ /** Stable drive id; the drive is not re-created on later boots. */
2986
3053
  id: string;
2987
3054
  name?: string | null;
2988
- icon?: string | null; /** Drive app (preferred editor) to open on the drive. */
3055
+ icon?: string | null;
3056
+ /** Drive app (preferred editor) to open on the drive. */
2989
3057
  app?: string;
2990
3058
  };
2991
3059
  type PHConnectDefaultDrive = PHConnectDefaultDriveRemote | PHConnectDefaultDriveLocal;
@@ -3012,19 +3080,26 @@ type PHConnectApp = {
3012
3080
  workflowsEnabled?: boolean;
3013
3081
  };
3014
3082
  type PHConnectAi = {
3015
- /** Enables the in-browser AI assistant (chat FAB + window). Off by default. */assistantEnabled?: boolean;
3083
+ /** Enables the in-browser AI assistant (chat FAB + window). Off by default. */
3084
+ assistantEnabled?: boolean;
3016
3085
  };
3017
3086
  type PHConnectPackages = {
3018
- externalEnabled?: boolean; /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
3087
+ externalEnabled?: boolean;
3088
+ /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
3019
3089
  liveReload?: boolean;
3020
3090
  };
3021
3091
  type PHRenownRainbowAdapterConfig = {
3022
- /** WalletConnect project id; required for the rainbow adapter to function. */walletConnectProjectId?: string; /** Optional Infura project id used to build RPC transports. */
3092
+ /** WalletConnect project id; required for the rainbow adapter to function. */
3093
+ walletConnectProjectId?: string;
3094
+ /** Optional Infura project id used to build RPC transports. */
3023
3095
  infuraProjectId?: string;
3024
3096
  };
3025
3097
  type PHRenownPrivyAdapterConfig = {
3026
- /** Privy application id; required for the privy adapter to function. */appId?: string; /** Optional Privy client id. */
3027
- clientId?: string; /** Login methods this adapter offers; defaults per adapter when omitted. */
3098
+ /** Privy application id; required for the privy adapter to function. */
3099
+ appId?: string;
3100
+ /** Optional Privy client id. */
3101
+ clientId?: string;
3102
+ /** Login methods this adapter offers; defaults per adapter when omitted. */
3028
3103
  methods?: string[];
3029
3104
  };
3030
3105
  type PHConnectRenownAdapters = {
@@ -3034,14 +3109,20 @@ type PHConnectRenownAdapters = {
3034
3109
  type PHConnectRenown = {
3035
3110
  url?: string;
3036
3111
  networkId?: string;
3037
- chainId?: number; /** Renown localStorage namespace; share it across Connects to share login. */
3038
- namespace?: string; /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
3039
- switchboardUrl?: string; /** Per-adapter wallet config; presence of a key enables that adapter. */
3112
+ chainId?: number;
3113
+ /** Renown localStorage namespace; share it across Connects to share login. */
3114
+ namespace?: string;
3115
+ /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
3116
+ switchboardUrl?: string;
3117
+ /** Per-adapter wallet config; presence of a key enables that adapter. */
3040
3118
  adapters?: PHConnectRenownAdapters;
3041
3119
  };
3042
3120
  type PHConnectSentry = {
3043
- /** Sentry DSN URL. `null` disables Sentry entirely. */dsn?: string | null; /** Sentry environment label. */
3044
- env?: string; /** Enable Sentry performance tracing. */
3121
+ /** Sentry DSN URL. `null` disables Sentry entirely. */
3122
+ dsn?: string | null;
3123
+ /** Sentry environment label. */
3124
+ env?: string;
3125
+ /** Enable Sentry performance tracing. */
3045
3126
  tracing?: boolean;
3046
3127
  };
3047
3128
  type PHConnectInstance = {
@@ -3051,13 +3132,19 @@ type PHConnectInstance = {
3051
3132
  /** Each flag implies its predecessors, and must match the fleet Connect syncs
3052
3133
  * with or the two compute different replay outcomes. */
3053
3134
  type PHConnectReactorFeatureFlags = {
3054
- /** Decide writes from the document stream instead of the meta cache. */documentDecisions?: boolean; /** Enforce the auth scope's policy at admission, replay, and read. */
3055
- authEnforcement?: boolean; /** Let `{ group }` principals match, via the group documents' rosters. */
3056
- authGroups?: boolean; /** Evaluate `where` / `match` conditions on grants. */
3135
+ /** Decide writes from the document stream instead of the meta cache. */
3136
+ documentDecisions?: boolean;
3137
+ /** Enforce the auth scope's policy at admission, replay, and read. */
3138
+ authEnforcement?: boolean;
3139
+ /** Let `{ group }` principals match, via the group documents' rosters. */
3140
+ authGroups?: boolean;
3141
+ /** Evaluate `where` / `match` conditions on grants. */
3057
3142
  authConditions?: boolean;
3058
3143
  };
3059
3144
  type PHConnectReactor = {
3060
3145
  featureFlags?: PHConnectReactorFeatureFlags;
3146
+ /** What new documents are created as; `legacy` while peers predate v2-required documents. */
3147
+ createSignaturePolicy?: "legacy" | "v2-required";
3061
3148
  };
3062
3149
  /**
3063
3150
  * A URL-matching pattern for a service-worker runtime-caching rule, in
@@ -3106,7 +3193,9 @@ type PHConnectPwaIcon = {
3106
3193
  * at Connect's app root, injected at build time.
3107
3194
  */
3108
3195
  type PHConnectPwaFileHandler = {
3109
- /** MIME type → file extensions (each must start with "."). */accept: Record<string, string[]>; /** OS-level file-type icons. */
3196
+ /** MIME type → file extensions (each must start with "."). */
3197
+ accept: Record<string, string[]>;
3198
+ /** OS-level file-type icons. */
3110
3199
  icons?: PHConnectPwaIcon[];
3111
3200
  launch_type?: "single-client" | "multiple-clients";
3112
3201
  };
@@ -3120,8 +3209,10 @@ type PHConnectPwaManifest = {
3120
3209
  display?: "fullscreen" | "standalone" | "minimal-ui" | "browser";
3121
3210
  start_url?: string;
3122
3211
  scope?: string;
3123
- icons?: PHConnectPwaIcon[]; /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
3124
- file_handlers?: PHConnectPwaFileHandler[]; /** How the OS launches the app for handled files/links. */
3212
+ icons?: PHConnectPwaIcon[];
3213
+ /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
3214
+ file_handlers?: PHConnectPwaFileHandler[];
3215
+ /** How the OS launches the app for handled files/links. */
3125
3216
  launch_handler?: {
3126
3217
  client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
3127
3218
  };
@@ -3141,11 +3232,16 @@ type PHConnectPwaManifest = {
3141
3232
  * Precedence: defaults < package fragments < project config.
3142
3233
  */
3143
3234
  type PHConnectPwa = {
3144
- manifest?: PHConnectPwaManifest; /** Extra Workbox precache globs, unioned with the built-in patterns. */
3145
- globPatterns?: string[]; /** Extra Workbox precache ignore globs, unioned with the built-in list. */
3146
- globIgnores?: string[]; /** Raise the precache file-size ceiling; the max across contributors wins. */
3147
- maximumFileSizeToCacheInBytes?: number; /** Additional runtime-caching rules, appended after the built-in rules. */
3148
- runtimeCaching?: PHConnectPwaRuntimeCaching[]; /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
3235
+ manifest?: PHConnectPwaManifest;
3236
+ /** Extra Workbox precache globs, unioned with the built-in patterns. */
3237
+ globPatterns?: string[];
3238
+ /** Extra Workbox precache ignore globs, unioned with the built-in list. */
3239
+ globIgnores?: string[];
3240
+ /** Raise the precache file-size ceiling; the max across contributors wins. */
3241
+ maximumFileSizeToCacheInBytes?: number;
3242
+ /** Additional runtime-caching rules, appended after the built-in rules. */
3243
+ runtimeCaching?: PHConnectPwaRuntimeCaching[];
3244
+ /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
3149
3245
  navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
3150
3246
  };
3151
3247
  type PHConnectRuntimeConfig = {
@@ -3164,8 +3260,10 @@ type PHConnectRuntimeConfig = {
3164
3260
  type PHReactorRenown = {
3165
3261
  /** "self" reads this reactor's own renown read model; "remote" (default)
3166
3262
  * queries a Renown or Switchboard instance. */
3167
- source?: "remote" | "self"; /** Renown base URL; also the instance this reactor's own identity uses. */
3168
- url?: string; /** Switchboard GraphQL endpoint to read credentials from directly. */
3263
+ source?: "remote" | "self";
3264
+ /** Renown base URL; also the instance this reactor's own identity uses. */
3265
+ url?: string;
3266
+ /** Switchboard GraphQL endpoint to read credentials from directly. */
3169
3267
  switchboardUrl?: string;
3170
3268
  };
3171
3269
  type PowerhouseConfig = {
@@ -3220,5 +3318,6 @@ type PowerhouseConfig = {
3220
3318
  connect?: PHConnectRuntimeConfig;
3221
3319
  };
3222
3320
  //#endregion
3223
- export { AddOperationExampleAction as $, UpgradeManifest as $a, deleteModule as $c, SetOperationDescriptionInput as $i, addUndo as $l, MutationDeleteOperationErrorArgs as $n, ReorderStateExamplesInputSchema as $o, RedoAction as $r, IProcessorManager as $s, DocumentModelOperationExampleOperations as $t, Operand as $u, PHReactorRenown as A, SignatureVerificationHandler as Aa, WebhookReply as Ac, ScopeState as Ai, setName as Al, LoadStateActionInput as An, ManifestSchema as Ao, MutationSetOperationTemplateArgs as Ar, UndoSchema as As, DeleteOperationErrorInput as At, reshuffleByTimestamp as Au, DEFAULT_REGISTRY_URL as B, UndoRedoAction as Ba, actionSigner as Bc, SetModelExtensionInput as Bi, setOperationTemplate as Bl, ModuleSpecification as Bn, PruneActionInputSchema as Bo, OperationsByScope as Br, relationalDbToQueryBuilder as Bs, DocumentModelGlobalState as Bt, OperationOutcome as Bu, PHConnectReactor as C, Set_Name as Ca, RouteTransport as Cc, UserActionSigner as Cd, SchemaLoadStateAction as Ci, setInitialState as Cl, Incremental as Cn, DocumentModelGlobalStateSchema as Co, MutationSetOperationErrorCodeArgs as Cr, SetPreferredEditorActionSchema as Cs, DeleteChildDocumentSignal as Ct, operationsAreEqual as Cu, PHConnectRuntimeConfig as D, SignalResult as Da, WebhookField as Dc, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Dd, SchemaSetNameAction as Di, setModelName as Dl, LoadFromFile as Dn, LoadStateActionSchema as Do, MutationSetOperationNameArgs as Dr, StateSchema as Ds, DeleteModuleInput as Dt, readOnly as Du, PHConnectRenownAdapters as E, SignalDispatch as Ea, WebhookEndpointInfo as Ec, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Ed, SchemaRedoAction as Ei, setModelId as El, IsStateOfType as En, LoadStateActionInputSchema as Eo, MutationSetOperationErrorTemplateArgs as Er, Set_PreferredEditorSchema as Es, DeleteModuleAction as Et, prepareOperations as Eu, PathValidation as F, StateReducer as Fa, WebhookVerification as Fc, SetInitialStateAction as Fi, setOperationErrorTemplate as Fl, MakeOptional as Fn, OperationSpecificationSchema as Fo, MutationUpdateStateExampleArgs as Fr, isDefinedNonNullAny as Fs, DeleteStateExampleInput as Ft, split as Fu, Actions as G, UpdateRelationshipAction as Ga, addOperationError as Gc, SetModuleDescriptionAction as Gi, updateOperationExample as Gl, MutationAddModuleArgs as Gn, RedoActionInputSchema as Go, PieceModule as Gr, IRelationalDbProcessor as Gs, DocumentModelLocalState as Gt, setNameOperation as Gu, ActionSignatureContext as H, UpdateChangeLogItemInput as Ha, addChangeLogItem as Hc, SetModelIdInput as Hi, setStateSchema as Hl, MoveOperationInput as Hn, PruneSchema as Ho, PartialState as Hr, HashAlgorithms as Hs, DocumentModelHeaderOperations as Ht, loadStateOperation as Hu, PowerhouseConfig as I, SubgraphModule as Ia, Action as Ic, SetInitialStateInput as Ii, setOperationName as Il, Manifest as In, PieceModuleSchema as Io, NOOPAction as Ir, createNamespacedDb as Is, DocumentAction as It, updateHeaderRevision as Iu, AddModuleAction as J, UpdateStateExampleInput as Ja, baseActions as Jc, SetModuleNameInput as Ji, IntegrityIssueSubType as Jl, MutationAddOperationExampleArgs as Jn, ReorderChangeLogItemsInputSchema as Jo, PruneAction as Jr, RelationalDbProcessor as Js, DocumentModelModuleOperations as Jt, undoOperationV2 as Ju, AddChangeLogItemAction as K, UpdateRelationshipActionInput as Ka, addOperationExample as Kc, SetModuleDescriptionInput as Ki, updateStateExample as Kl, MutationAddOperationArgs as Kn, RedoActionSchema as Ko, PowerhouseModule as Kr, IRelationalQueryBuilder as Ks, DocumentModelModule as Kt, setPreferredEditorOperation as Ku, PowerhousePackage as L, Undo as La, ActionContext as Lc, SetModelDescriptionAction as Li, setOperationReducer as Ll, MappedOperation as Ln, PieceModulesSchema as Lo, OperationErrorSpecification as Lr, createNamespacedQueryBuilder as Ls, DocumentModelAction as Lt, DocumentOperations as Lu, PHRenownRainbowAdapterConfig as M, SkipHeaderOperationIndex as Ma, WebhookScheme as Mc, SetAuthorNameInput as Mi, setOperationErrorCode as Ml, Load_State as Mn, MoveOperationInputSchema as Mo, MutationUndoArgs as Mr, UpdateOperationExampleInputSchema as Ms, DeleteOperationExampleInput as Mt, skipHeaderOperations as Mu, PackageManagerArgs as N, SkipHeaderOperations as Na, WebhookSignatureEncoding as Nc, SetAuthorWebsiteAction as Ni, setOperationErrorDescription as Nl, MakeEmpty as Nn, OperationErrorSchema as No, MutationUpdateChangeLogItemInputArgs as Nr, UpdateStateExampleInputSchema as Ns, DeleteOperationInput as Nt, sortMappedOperations as Nu, PHConnectSentry as O, SignalResults as Oa, WebhookHashAlgorithm as Oc, PROCESSOR_APPS as Od, SchemaSetPreferredEditorAction as Oi, setModuleDescription as Ol, LoadFromInput as On, LoadStateActionStateInputSchema as Oo, MutationSetOperationReducerArgs as Or, UndoActionInputSchema as Os, DeleteOperationAction as Ot, removeExistingOperations as Ou, ParsedCmdResult as P, State as Pa, WebhookSpec as Pc, SetAuthorWebsiteInput as Pi, setOperationErrorName as Pl, MakeMaybe as Pn, OperationScopeSchema as Po, MutationUpdateOperationExampleArgs as Pr, definedNonNullAnySchema as Ps, DeleteStateExampleAction as Pt, sortOperations as Pu, AddOperationErrorInput as Q, ValidationError as Qa, deleteChangeLogItem as Qc, SetOperationDescriptionAction as Qi, PHDocumentMeta as Ql, MutationDeleteOperationArgs as Qn, ReorderOperationExamplesInputSchema as Qo, Redo as Qr, IProcessorHostModuleBase as Qs, DocumentModelOperationExampleAction as Qt, Grant as Qu, ServiceAction as R, UndoAction as Ra, actionContext as Rc, SetModelDescriptionInput as Ri, setOperationSchema as Rl, Maybe as Rn, PowerhouseModuleSchema as Ro, OperationIndex as Rr, createRelationalDb as Rs, DocumentModelDocument as Rt, Operation as Ru, PHConnectPwaUrlPattern as S, SetStateSchemaInput as Sa, RouteSpec as Sc, Signature as Sd, Scalars as Si, setAuthorWebsite as Sl, ISigner as Sn, DocumentActionSchema as So, MutationSetOperationDescriptionArgs as Sr, SetPreferredEditorActionInputSchema as Ss, DeleteChildDocumentInput as St, nextSkipNumber as Su, PHConnectRenown as T, Signal as Ta, ScopedRouteHandle as Tc, serializeSignature as Td, SchemaPruneAction as Ti, setModelExtension as Tl, IsDocumentOfType as Tn, DocumentSpecificationSchema as To, MutationSetOperationErrorNameArgs as Tr, Set_NameSchema as Ts, DeleteDocumentActionInput as Tt, precedes as Tu, ActionSigningHandler as U, UpdateOperationExampleAction as Ua, addModule as Uc, SetModelNameAction as Ui, undo as Ul, Mutation as Un, PublisherSchema as Uo, PhAiToolAnnotations as Ur, IBaseRelationalDb as Us, DocumentModelInput as Ut, operationOutcome as Uu, ActionErrorCallback as V, UpdateChangeLogItemAction as Va, actions as Vc, SetModelIdAction as Vi, setPreferredEditor as Vl, MoveOperationAction as Vn, PruneActionSchema as Vo, PartialRecord as Vr, ExtractProcessorSchemaOrSelf as Vs, DocumentModelHeaderAction as Vt, OperationWithContext$1 as Vu, ActionVerificationHandler as W, UpdateOperationExampleInput as Wa, addOperation as Wc, SetModelNameInput as Wi, updateChangeLogItem as Wl, MutationAddChangeLogItemInputArgs as Wn, PwaConfigSchema as Wo, PhAiToolDescriptor as Wr, IRelationalDb as Ws, DocumentModelLib as Wt, redoOperation as Wu, AddOperationAction as X, UpgradeDocumentActionInput as Xa, buildSignedAction as Xc, SetNameActionInput as Xi, PHDocument as Xl, MutationDeleteChangeLogItemInputArgs as Xn, ReorderModulesInputSchema as Xo, Publisher as Xr, IProcessor as Xs, DocumentModelOperationErrorAction as Xt, Capability as Xu, AddModuleInput as Y, UpgradeDocumentAction as Ya, buildOperationSignature as Yc, SetNameAction as Yi, IntegrityIssueType as Yl, MutationAddStateExampleArgs as Yn, ReorderModuleOperationsInputSchema as Yo, PruneActionInput as Yr, RelationalDbProcessorClass as Ys, DocumentModelOperationAction as Yt, AuthGroups as Yu, AddOperationErrorAction as Z, User as Za, createAction as Zc, SetNameOperation as Zi, PHDocumentHeader as Zl, MutationDeleteModuleArgs as Zn, ReorderOperationErrorsInputSchema as Zo, Query as Zr, IProcessorDispatch as Zs, DocumentModelOperationErrorOperations as Zt, Condition as Zu, PHConnectPwaCacheStrategy as _, SetOperationTemplateInput as _a, RouteBody as _c, defaultPHState as _d, ReorderStateExamplesInput as _i, reorderModules as _l, ID as _n, DeleteModuleInputSchema as _o, MutationSetModelIdArgs as _r, SetOperationNameInputSchema as _s, CreateDocumentAction as _t, isUndo as _u, PHConnectAi as a, SetOperationErrorNameInput as aa, ProcessorFilter as ac, backfillAuthState as ad, RemoveRelationshipActionInput as ai, loadState as al, DocumentModelVersioningAction as an, normalizeDocumentModelVersion as ao, MutationRedoArgs as ar, SetModelExtensionInputSchema as as, AddStateExampleInput as at, checkOperationsIntegrity as au, PHConnectPwaManifest as b, SetPreferredEditorOperation as ba, RouteMethod as bc, HashConfig as bd, SaveToFile as bi, reorderStateExamples as bl, ISignal as bn, DeleteOperationInputSchema as bo, MutationSetModuleNameArgs as br, SetOperationScopeInputSchema as bs, DeleteChangeLogItemAction as bt, mapSkippedOperationsV2 as bu, PHConnectDefaultDrive as c, SetOperationNameAction as ca, TrackedProcessor as cc, createDocumentState as cd, ReorderModuleOperationsAction as ci, operationExampleCreators as cl, DocumentSpecification as cn, AddOperationErrorInputSchema as co, MutationReorderModulesArgs as cr, SetModuleDescriptionInputSchema as cs, Author as ct, filterDuplicatedOperations as cu, PHConnectDriveSection as d, SetOperationReducerInput as da, IWebhookEndpoints as dc, createState as dd, ReorderModulesInput as di, operationWithContext as dl, EditorModule as dn, AddStateExampleInputSchema as do, MutationReorderStateExamplesArgs as dr, SetNameActionSchema as ds, ConfigEntryType as dt, garbageCollectV2 as du, SetOperationErrorCodeAction as ea, ProcessorApp as ec, PHAuthState as ed, RedoActionInput as ei, deleteOperation as el, DocumentModelOperationOperations as en, UpgradeReducer as eo, MutationDeleteOperationExampleArgs as er, ScopeStateSchema as es, AddOperationExampleInput as et, appendWithoutApplying as eu, PHConnectDriveSections as f, SetOperationSchemaAction as fa, IWebhookScope as fc, defaultAuthState as fd, ReorderOperationErrorsAction as fi, prune as fl, EditorProps as fn, AuthorSchema as fo, MutationSetAuthorNameArgs as fr, SetOperationDescriptionInputSchema as fs, CopyChildDocumentInput as ft, getDocumentLastModified as fu, PHConnectPwa as g, SetOperationTemplateAction as ga, RouteAuthorizer as gc, defaultLocalState as gd, ReorderStateExamplesAction as gi, reorderModuleOperations as gl, IAction as gn, DeleteChangeLogItemInputSchema as go, MutationSetModelExtensionArgs as gr, SetOperationErrorTemplateInputSchema as gs, CreateDocument as gt, isNoopOperation as gu, PHConnectPackages as h, SetOperationScopeInput as ha, RouteAuth as hc, defaultGlobalState as hd, ReorderOperationExamplesInput as hi, reorderChangeLogItems as hl, GetDocumentOptions as hn, ConfigEntryTypeSchema as ho, MutationSetModelDescriptionArgs as hr, SetOperationErrorNameInputSchema as hs, CreateChildDocumentSignal as ht, isDocumentAction as hu, LogLevels as i, SetOperationErrorNameAction as ia, ProcessorFactoryBuilder as ic, Principal as id, RemoveRelationshipAction as ii, documentModelActions as il, DocumentModelUtils as in, computeUpgradeTransitions as io, MutationPruneArgs as ir, SetModelDescriptionInputSchema as is, AddStateExampleAction as it, checkCleanedOperationsIntegrity as iu, PHRenownPrivyAdapterConfig as j, SigningParameters as ja, WebhookRequest as jc, SetAuthorNameAction as ji, setOperationDescription as jl, LoadStateActionStateInput as jn, ModuleSchema as jo, MutationSetStateSchemaArgs as jr, UpdateChangeLogItemInputSchema as js, DeleteOperationExampleAction as jt, reshuffleByTimestampAndIndex as ju, PHPackageProvider as k, SignalType as ka, WebhookPolicy as kc, SchemaUndoAction as ki, setModuleName as kl, LoadStateAction as kn, Load_StateSchema as ko, MutationSetOperationSchemaArgs as kr, UndoActionSchema as ks, DeleteOperationErrorAction as kt, replayDocument as ku, PHConnectDefaultDriveLocal as l, SetOperationNameInput as la, AuthorizerResult as lc, createGlobalState as ld, ReorderModuleOperationsInput as li, operationFromAction as ll, ENSInfo as ln, AddOperationExampleInputSchema as lo, MutationReorderOperationErrorsArgs as lr, SetModuleNameInputSchema as ls, CodeExample as lt, garbageCollect as lu, PHConnectInstance as m, SetOperationScopeAction as ma, RouteActor as mc, defaultDocumentState as md, ReorderOperationExamplesAction as mi, releaseNewVersion as ml, FileInput as mn, ConfigEntrySchema as mo, MutationSetInitialStateArgs as mr, SetOperationErrorDescriptionInputSchema as ms, CreateChildDocumentInput as mt, hashDocumentStateForScope as mu, DrivePreserveStrategy as n, SetOperationErrorDescriptionAction as na, ProcessorDispatchResult as nc, PHDocumentState as nd, ReducerOptions as ni, deleteOperationExample as nl, DocumentModelStateAction as nn, applyDeleteDocumentAction as no, MutationLoadStateArgs as nr, SetAuthorWebsiteInputSchema as ns, AddRelationshipAction as nt, baseCreateDocument as nu, PHConnectApp as o, SetOperationErrorTemplateAction as oa, ProcessorRecord as oc, createAuthState as od, ReorderChangeLogItemsAction as oi, moveOperation as ol, DocumentModelVersioningOperations as on, AddChangeLogItemInputSchema as oo, MutationReorderChangeLogItemsInputArgs as or, SetModelIdInputSchema as os, AssertIsDocumentOfType as ot, diffOperations as ou, PHConnectDrives as p, SetOperationSchemaInput as pa, NodeRouteSpec as pc, defaultBaseState as pd, ReorderOperationErrorsInput as pi, redo as pl, Exact as pn, CodeExampleSchema as po, MutationSetAuthorWebsiteArgs as pr, SetOperationErrorCodeInputSchema as ps, CopyChildDocumentSignal as pt, groupOperationsByScope as pu, AddChangeLogItemInput as q, UpdateStateExampleAction as qa, addStateExample as qc, SetModuleNameAction as qi, verifyOperationSignature as ql, MutationAddOperationErrorArgs as qn, RedoSchema as qo, Prune as qr, IRelationalQueryMethods as qs, DocumentModelModuleAction as qt, undoOperation as qu, LogLevel as r, SetOperationErrorDescriptionInput as ra, ProcessorFactory as rc, PHGroupState as rd, ReleaseNewVersionAction as ri, deleteStateExample as rl, DocumentModelStateOperations as rn, applyUpgradeDocumentAction as ro, MutationMoveOperationArgs as rr, SetInitialStateInputSchema as rs, AddRelationshipActionInput as rt, baseReducerVersion as ru, PHConnectBranding as s, SetOperationErrorTemplateInput as sa, ProcessorStatus as sc, createBaseState as sd, ReorderChangeLogItemsInput as si, noop as sl, DocumentOperationsIgnoreMap as sn, AddModuleInputSchema as so, MutationReorderModuleOperationsArgs as sr, SetModelNameInputSchema as ss, AssertIsStateOfType as st, filterDocumentOperationsResultingState as su, DrivePreserveStrategies as t, SetOperationErrorCodeInput as ta, ProcessorApps as tc, PHBaseState as td, Reducer as ti, deleteOperationError as tl, DocumentModelPHState as tn, UpgradeTransition as to, MutationDeleteStateExampleArgs as tr, SetAuthorNameInputSchema as ts, AddOperationInput as tt, attachBranch as tu, PHConnectDefaultDriveRemote as u, SetOperationReducerAction as ua, IHttpScope as uc, createLocalState as ud, ReorderModulesAction as ui, operationFromOperation as ul, EditorDispatch as un, AddOperationInputSchema as uo, MutationReorderOperationExamplesArgs as ur, SetNameActionInputSchema as us, ConfigEntry as ut, garbageCollectDocumentOperations as uu, PHConnectPwaFileHandler as v, SetPreferredEditorAction as va, RouteContext as vc, ActionSigner as vd, ReplayDocumentOptions as vi, reorderOperationErrors as vl, IDocument as vn, DeleteOperationErrorInputSchema as vo, MutationSetModelNameArgs as vr, SetOperationReducerInputSchema as vs, CreateDocumentActionInput as vt, isUndoRedo as vu, PHConnectReactorFeatureFlags as w, Set_PreferredEditor as wa, RouteUser as wc, deserializeSignature as wd, SchemaNOOPAction as wi, setModelDescription as wl, InputMaybe as wn, DocumentModelInputSchema as wo, MutationSetOperationErrorDescriptionArgs as wr, SetStateSchemaInputSchema as ws, DeleteDocumentAction as wt, parseResultingState as wu, PHConnectPwaRuntimeCaching as x, SetStateSchemaAction as xa, RouteOptions as xc, PHDocumentSignatureInfo as xd, SaveToFileHandle as xi, setAuthorName as xl, ISignalResult as xn, DeleteStateExampleInputSchema as xo, MutationSetNameArgs as xr, SetOperationTemplateInputSchema as xs, DeleteChangeLogItemInput as xt, merge as xu, PHConnectPwaIcon as y, SetPreferredEditorActionInput as ya, RouteHandler as yc, AppActionSigner as yd, RevisionsFilter as yi, reorderOperationExamples as yl, IOperation as yn, DeleteOperationExampleInputSchema as yo, MutationSetModuleDescriptionArgs as yr, SetOperationSchemaInputSchema as ys, CreateState as yt, mapSkippedOperations as yu, ServiceActions as z, UndoActionInput as za, actionFromAction as zc, SetModelExtensionAction as zi, setOperationScope as zl, MinimalBackupData as zn, PowerhouseModulesSchema as zo, OperationSpecification as zr, hashNamespace as zs, DocumentModelDocumentModelModule as zt, OperationContext as zu };
3224
- //# sourceMappingURL=types-glwGlTGx.d.ts.map
3321
+ export { AddOperationExampleAction as $, AddOperationExampleInputSchema as $a, deleteOperationExample as $c, SetOperationReducerAction as $i, checkCleanedOperationsIntegrity as $l, MutationRedoArgs as $n, SetOperationErrorTemplateInputSchema as $o, ReorderModuleOperationsAction as $r, ProcessorDispatchResult as $s, DocumentModelOperationExampleOperations as $t, defaultGlobalState as $u, PHReactorRenown as A, UpdateChangeLogItemAction as Aa, WebhookSignatureEncoding as Ac, Signature as Ad, SetModelIdAction as Ai, setOperationErrorTemplate as Al, MakeMaybe as An, RedoSchema as Ao, NOOPAction as Ar, signActionV2 as As, DeleteOperationErrorInput as At, split as Au, DEFAULT_REGISTRY_URL as B, User as Ba, addModule as Bc, SetNameOperation as Bi, updateOperationExample as Bl, MutationAddChangeLogItemInputArgs as Bn, SetInitialStateInputSchema as Bo, PowerhouseModule as Br, IBaseRelationalDb as Bs, DocumentModelGlobalState as Bt, PHDocumentState as Bu, PHConnectReactor as C, State as Ca, WebhookEndpointInfo as Cc, setPreferredEditorOperation as Cd, SetAuthorWebsiteInput as Ci, setModuleDescription as Cl, Incremental as Cn, PieceModulesSchema as Co, MutationSetOperationSchemaArgs as Cr, DOCUMENT_SCOPE_ACTION_TYPES as Cs, DeleteChildDocumentSignal as Ct, removeExistingOperations as Cu, PHConnectRuntimeConfig as D, UndoAction as Da, WebhookReply as Dc, AppActionSigner as Dd, SetModelDescriptionInput as Di, setOperationErrorCode as Dl, LoadFromFile as Dn, PwaConfigSchema as Do, MutationUpdateChangeLogItemInputArgs as Dr, canonicalJson as Ds, DeleteModuleInput as Dt, skipHeaderOperations as Du, PHConnectRenownAdapters as E, Undo as Ea, WebhookPolicy as Ec, ActionSigner as Ed, SetModelDescriptionAction as Ei, setOperationDescription as El, IsStateOfType as En, PublisherSchema as Eo, MutationUndoArgs as Er, actionSigningTarget as Es, DeleteModuleAction as Et, reshuffleByTimestampAndIndex as Eu, PathValidation as F, UpdateRelationshipActionInput as Fa, actionContext as Fc, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Fd, SetModuleDescriptionInput as Fi, setOperationTemplate as Fl, MinimalBackupData as Fn, ReorderOperationExamplesInputSchema as Fo, PartialRecord as Fr, createRelationalDb as Fs, DeleteStateExampleInput as Ft, Condition as Fu, Actions as G, applyDeleteDocumentAction as Ga, baseActions as Gc, SetOperationErrorDescriptionAction as Gi, PHDocument as Gl, MutationAddStateExampleArgs as Gn, SetModuleDescriptionInputSchema as Go, RedoActionInput as Gr, RelationalDbProcessor as Gs, DocumentModelLocalState as Gt, createBaseState as Gu, ActionSignatureContext as H, UpgradeManifest as Ha, addOperationError as Hc, SetOperationDescriptionInput as Hi, verifyOperationSignature as Hl, MutationAddOperationArgs as Hn, SetModelExtensionInputSchema as Ho, Query as Hr, IRelationalDbProcessor as Hs, DocumentModelHeaderOperations as Ht, Principal as Hu, PowerhouseConfig as I, UpdateStateExampleAction as Ia, actionFromAction as Ic, PROCESSOR_APPS as Id, SetModuleNameAction as Ii, setPreferredEditor as Il, ModuleSpecification as In, ReorderStateExamplesInputSchema as Io, PartialState as Ir, hashNamespace as Is, DocumentAction as It, Grant as Iu, AddModuleAction as J, normalizeDocumentModelVersion as Ja, createAction as Jc, SetOperationErrorNameInput as Ji, addUndo as Jl, MutationDeleteOperationArgs as Jn, SetNameActionSchema as Jo, ReleaseNewVersionAction as Jr, IProcessorDispatch as Js, DocumentModelModuleOperations as Jt, createLocalState as Ju, AddChangeLogItemAction as K, applyUpgradeDocumentAction as Ka, buildOperationSignature as Kc, SetOperationErrorDescriptionInput as Ki, PHDocumentHeader as Kl, MutationDeleteChangeLogItemInputArgs as Kn, SetModuleNameInputSchema as Ko, Reducer as Kr, RelationalDbProcessorClass as Ks, DocumentModelModule as Kt, createDocumentState as Ku, PowerhousePackage as L, UpdateStateExampleInput as La, actionSigner as Lc, SetModuleNameInput as Li, setStateSchema as Ll, MoveOperationAction as Ln, ScopeStateSchema as Lo, PhAiToolAnnotations as Lr, relationalDbToQueryBuilder as Ls, DocumentModelAction as Lt, Operand as Lu, PHRenownRainbowAdapterConfig as M, UpdateOperationExampleAction as Ma, WebhookVerification as Mc, deserializeSignature as Md, SetModelNameAction as Mi, setOperationReducer as Ml, Manifest as Mn, ReorderModuleOperationsInputSchema as Mo, OperationIndex as Mr, v2TupleProblem as Ms, DeleteOperationExampleInput as Mt, withSignaturePolicy as Mu, PackageManagerArgs as N, UpdateOperationExampleInput as Na, Action as Nc, serializeSignature as Nd, SetModelNameInput as Ni, setOperationSchema as Nl, MappedOperation as Nn, ReorderModulesInputSchema as No, OperationSpecification as Nr, createNamespacedDb as Ns, DeleteOperationInput as Nt, AuthGroups as Nu, PHConnectSentry as O, UndoActionInput as Oa, WebhookRequest as Oc, HashConfig as Od, SetModelExtensionAction as Oi, setOperationErrorDescription as Ol, LoadFromInput as On, RedoActionInputSchema as Oo, MutationUpdateOperationExampleArgs as Or, hashActionV2 as Os, DeleteOperationAction as Ot, sortMappedOperations as Ou, ParsedCmdResult as P, UpdateRelationshipAction as Pa, ActionContext as Pc, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Pd, SetModuleDescriptionAction as Pi, setOperationScope as Pl, Maybe as Pn, ReorderOperationErrorsInputSchema as Po, OperationsByScope as Pr, createNamespacedQueryBuilder as Ps, DeleteStateExampleAction as Pt, Capability as Pu, AddOperationErrorInput as Q, AddOperationErrorInputSchema as Qa, deleteOperationError as Qc, SetOperationNameInput as Qi, baseReducerVersion as Ql, MutationMoveOperationArgs as Qn, SetOperationErrorNameInputSchema as Qo, ReorderChangeLogItemsInput as Qr, ProcessorApps as Qs, DocumentModelOperationExampleAction as Qt, defaultDocumentState as Qu, ServiceAction as R, UpgradeDocumentAction as Ra, actions as Rc, SetNameAction as Ri, undo as Rl, MoveOperationInput as Rn, SetAuthorNameInputSchema as Ro, PhAiToolDescriptor as Rr, ExtractProcessorSchemaOrSelf as Rs, DocumentModelDocument as Rt, PHAuthState as Ru, PHConnectPwaUrlPattern as S, SkipHeaderOperations as Sa, ScopedRouteHandle as Sc, setNameOperation as Sd, SetAuthorWebsiteAction as Si, setModelName as Sl, ISigner as Sn, PieceModuleSchema as So, MutationSetOperationReducerArgs as Sr, CanonicalJsonError as Ss, DeleteChildDocumentInput as St, readOnly as Su, PHConnectRenown as T, SubgraphModule as Ta, WebhookHashAlgorithm as Tc, undoOperationV2 as Td, SetInitialStateInput as Ti, setName as Tl, IsDocumentOfType as Tn, PowerhouseModulesSchema as To, MutationSetStateSchemaArgs as Tr, actionSignerIdentity as Ts, DeleteDocumentActionInput as Tt, reshuffleByTimestamp as Tu, ActionSigningHandler as U, UpgradeReducer as Ua, addOperationExample as Uc, SetOperationErrorCodeAction as Ui, IntegrityIssueSubType as Ul, MutationAddOperationErrorArgs as Un, SetModelIdInputSchema as Uo, Redo as Ur, IRelationalQueryBuilder as Us, DocumentModelInput as Ut, backfillAuthState as Uu, ActionErrorCallback as V, ValidationError as Va, addOperation as Vc, SetOperationDescriptionAction as Vi, updateStateExample as Vl, MutationAddModuleArgs as Vn, SetModelDescriptionInputSchema as Vo, Publisher as Vr, IRelationalDb as Vs, DocumentModelHeaderAction as Vt, PHGroupState as Vu, ActionVerificationHandler as W, UpgradeTransition as Wa, addStateExample as Wc, SetOperationErrorCodeInput as Wi, IntegrityIssueType as Wl, MutationAddOperationExampleArgs as Wn, SetModelNameInputSchema as Wo, RedoAction as Wr, IRelationalQueryMethods as Ws, DocumentModelLib as Wt, createAuthState as Wu, AddOperationAction as X, AddChangeLogItemInputSchema as Xa, deleteModule as Xc, SetOperationErrorTemplateInput as Xi, attachBranch as Xl, MutationDeleteOperationExampleArgs as Xn, SetOperationErrorCodeInputSchema as Xo, RemoveRelationshipActionInput as Xr, IProcessorManager as Xs, DocumentModelOperationErrorAction as Xt, defaultAuthState as Xu, AddModuleInput as Y, withProtocolVersions as Ya, deleteChangeLogItem as Yc, SetOperationErrorTemplateAction as Yi, appendWithoutApplying as Yl, MutationDeleteOperationErrorArgs as Yn, SetOperationDescriptionInputSchema as Yo, RemoveRelationshipAction as Yr, IProcessorHostModuleBase as Ys, DocumentModelOperationAction as Yt, createState as Yu, AddOperationErrorAction as Z, AddModuleInputSchema as Za, deleteOperation as Zc, SetOperationNameAction as Zi, baseCreateDocument as Zl, MutationDeleteStateExampleArgs as Zn, SetOperationErrorDescriptionInputSchema as Zo, ReorderChangeLogItemsAction as Zr, ProcessorApp as Zs, DocumentModelOperationErrorOperations as Zt, defaultBaseState as Zu, PHConnectPwaCacheStrategy as _, SignalResults as _a, RouteMethod as _c, OperationContext as _d, SchemaSetPreferredEditorAction as _i, setAuthorWebsite as _l, ID as _n, ModuleSchema as _o, MutationSetOperationErrorCodeArgs as _r, definedNonNullAnySchema as _s, CreateDocumentAction as _t, nextSkipNumber as _u, PHConnectAi as a, SetOperationTemplateAction as aa, TrackedProcessor as ac, SIGNATURE_PROTOCOL as ad, ReorderOperationExamplesAction as ai, operationFromAction as al, DocumentModelVersioningAction as an, ConfigEntryTypeSchema as ao, MutationReorderStateExamplesArgs as ar, SetPreferredEditorActionInputSchema as as, AddStateExampleInput as at, garbageCollectDocumentOperations as au, PHConnectPwaManifest as b, SigningParameters as ba, RouteTransport as bc, operationOutcome as bd, SetAuthorNameAction as bi, setModelExtension as bl, ISignal as bn, OperationScopeSchema as bo, MutationSetOperationErrorTemplateArgs as br, ActionSignerIdentity as bs, DeleteChangeLogItemAction as bt, precedes as bu, PHConnectDefaultDrive as c, SetPreferredEditorActionInput as ca, IWebhookEndpoints as cc, deriveDocumentId as cd, ReorderStateExamplesInput as ci, redo as cl, DocumentSpecification as cn, DeleteOperationErrorInputSchema as co, MutationSetInitialStateArgs as cr, Set_NameSchema as cs, Author as ct, groupOperationsByScope as cu, PHConnectDriveSection as d, SetStateSchemaInput as da, RouteActor as dc, protocolVersionsFor as dd, SaveToFile as di, reorderModuleOperations as dl, EditorModule as dn, DeleteStateExampleInputSchema as do, MutationSetModelIdArgs as dr, UndoActionInputSchema as ds, ConfigEntryType as dt, isNoopOperation as du, SetOperationReducerInput as ea, ProcessorFactory as ec, defaultLocalState as ed, ReorderModuleOperationsInput as ei, deleteStateExample as el, DocumentModelOperationOperations as en, AddOperationInputSchema as eo, MutationReorderChangeLogItemsInputArgs as er, SetOperationNameInputSchema as es, AddOperationExampleInput as et, checkOperationsIntegrity as eu, PHConnectDriveSections as f, Set_Name as fa, RouteAuth as fc, requestedSignaturePolicy as fd, SaveToFileHandle as fi, reorderModules as fl, EditorProps as fn, DocumentActionSchema as fo, MutationSetModelNameArgs as fr, UndoActionSchema as fs, CopyChildDocumentInput as ft, isUndo as fu, PHConnectPwa as g, SignalResult as ga, RouteHandler as gc, Operation as gd, SchemaSetNameAction as gi, setAuthorName as gl, IAction as gn, ManifestSchema as go, MutationSetOperationDescriptionArgs as gr, UpdateStateExampleInputSchema as gs, CreateDocument as gt, merge as gu, PHConnectPackages as h, SignalDispatch as ha, RouteContext as hc, DocumentOperations as hd, SchemaRedoAction as hi, reorderStateExamples as hl, GetDocumentOptions as hn, DocumentSpecificationSchema as ho, MutationSetNameArgs as hr, UpdateOperationExampleInputSchema as hs, CreateChildDocumentSignal as ht, mapSkippedOperationsV2 as hu, LogLevels as i, SetOperationScopeInput as ia, ProcessorStatus as ic, ProtocolVersions as id, ReorderOperationErrorsInput as ii, operationExampleCreators as il, DocumentModelUtils as in, ConfigEntrySchema as io, MutationReorderOperationExamplesArgs as ir, SetOperationTemplateInputSchema as is, AddStateExampleAction as it, garbageCollect as iu, PHRenownPrivyAdapterConfig as j, UpdateChangeLogItemInput as ja, WebhookSpec as jc, UserActionSigner as jd, SetModelIdInput as ji, setOperationName as jl, MakeOptional as jn, ReorderChangeLogItemsInputSchema as jo, OperationErrorSpecification as jr, targetDocumentId as js, DeleteOperationExampleAction as jt, updateHeaderRevision as ju, PHPackageProvider as k, UndoRedoAction as ka, WebhookScheme as kc, PHDocumentSignatureInfo as kd, SetModelExtensionInput as ki, setOperationErrorName as kl, MakeEmpty as kn, RedoActionSchema as ko, MutationUpdateStateExampleArgs as kr, isV2ActionHash as ks, DeleteOperationErrorAction as kt, sortOperations as ku, PHConnectDefaultDriveLocal as l, SetPreferredEditorOperation as la, IWebhookScope as lc, isDerivedDocumentId as ld, ReplayDocumentOptions as li, releaseNewVersion as ll, ENSInfo as ln, DeleteOperationExampleInputSchema as lo, MutationSetModelDescriptionArgs as lr, Set_PreferredEditorSchema as ls, CodeExample as lt, hashDocumentStateForScope as lu, PHConnectInstance as m, Signal as ma, RouteBody as mc, v2RequiredProtocolVersions as md, SchemaNOOPAction as mi, reorderOperationExamples as ml, FileInput as mn, DocumentModelInputSchema as mo, MutationSetModuleNameArgs as mr, UpdateChangeLogItemInputSchema as ms, CreateChildDocumentInput as mt, mapSkippedOperations as mu, DrivePreserveStrategy as n, SetOperationSchemaInput as na, ProcessorFilter as nc, DEFAULT_SIGNATURE_POLICY as nd, ReorderModulesInput as ni, moveOperation as nl, DocumentModelStateAction as nn, AuthorSchema as no, MutationReorderModulesArgs as nr, SetOperationSchemaInputSchema as ns, AddRelationshipAction as nt, filterDocumentOperationsResultingState as nu, PHConnectApp as o, SetOperationTemplateInput as oa, AuthorizerResult as oc, SIGNATURE_PROTOCOL_V2 as od, ReorderOperationExamplesInput as oi, operationFromOperation as ol, DocumentModelVersioningOperations as on, DeleteChangeLogItemInputSchema as oo, MutationSetAuthorNameArgs as or, SetPreferredEditorActionSchema as os, AssertIsDocumentOfType as ot, garbageCollectV2 as ou, PHConnectDrives as p, Set_PreferredEditor as pa, RouteAuthorizer as pc, signaturePolicyOf as pd, Scalars as pi, reorderOperationErrors as pl, Exact as pn, DocumentModelGlobalStateSchema as po, MutationSetModuleDescriptionArgs as pr, UndoSchema as ps, CopyChildDocumentSignal as pt, isUndoRedo as pu, AddChangeLogItemInput as q, computeUpgradeTransitions as qa, buildSignedAction as qc, SetOperationErrorNameAction as qi, PHDocumentMeta as ql, MutationDeleteModuleArgs as qn, SetNameActionInputSchema as qo, ReducerOptions as qr, IProcessor as qs, DocumentModelModuleAction as qt, createGlobalState as qu, LogLevel as r, SetOperationScopeAction as ra, ProcessorRecord as rc, DocumentIdParams as rd, ReorderOperationErrorsAction as ri, noop as rl, DocumentModelStateOperations as rn, CodeExampleSchema as ro, MutationReorderOperationErrorsArgs as rr, SetOperationScopeInputSchema as rs, AddRelationshipActionInput as rt, filterDuplicatedOperations as ru, PHConnectBranding as s, SetPreferredEditorAction as sa, IHttpScope as sc, SignaturePolicy$1 as sd, ReorderStateExamplesAction as si, operationWithContext as sl, DocumentOperationsIgnoreMap as sn, DeleteModuleInputSchema as so, MutationSetAuthorWebsiteArgs as sr, SetStateSchemaInputSchema as ss, AssertIsStateOfType as st, getDocumentLastModified as su, DrivePreserveStrategies as t, SetOperationSchemaAction as ta, ProcessorFactoryBuilder as tc, defaultPHState as td, ReorderModulesAction as ti, documentModelActions as tl, DocumentModelPHState as tn, AddStateExampleInputSchema as to, MutationReorderModuleOperationsArgs as tr, SetOperationReducerInputSchema as ts, AddOperationInput as tt, diffOperations as tu, PHConnectDefaultDriveRemote as u, SetStateSchemaAction as ua, NodeRouteSpec as uc, isSignaturePolicy as ud, RevisionsFilter as ui, reorderChangeLogItems as ul, EditorDispatch as un, DeleteOperationInputSchema as uo, MutationSetModelExtensionArgs as ur, StateSchema as us, ConfigEntry as ut, isDocumentAction as uu, PHConnectPwaFileHandler as v, SignalType as va, RouteOptions as vc, OperationOutcome as vd, SchemaUndoAction as vi, setInitialState as vl, IDocument as vn, MoveOperationInputSchema as vo, MutationSetOperationErrorDescriptionArgs as vr, isDefinedNonNullAny as vs, CreateDocumentActionInput as vt, operationsAreEqual as vu, PHConnectReactorFeatureFlags as w, StateReducer as wa, WebhookField as wc, undoOperation as wd, SetInitialStateAction as wi, setModuleName as wl, InputMaybe as wn, PowerhouseModuleSchema as wo, MutationSetOperationTemplateArgs as wr, actionPreimageV2 as ws, DeleteDocumentAction as wt, replayDocument as wu, PHConnectPwaRuntimeCaching as x, SkipHeaderOperationIndex as xa, RouteUser as xc, redoOperation as xd, SetAuthorNameInput as xi, setModelId as xl, ISignalResult as xn, OperationSpecificationSchema as xo, MutationSetOperationNameArgs as xr, ActionSigningTarget as xs, DeleteChangeLogItemInput as xt, prepareOperations as xu, PHConnectPwaIcon as y, SignatureVerificationHandler as ya, RouteSpec as yc, OperationWithContext$1 as yd, ScopeState as yi, setModelDescription as yl, IOperation as yn, OperationErrorSchema as yo, MutationSetOperationErrorNameArgs as yr, ACTION_SIGNATURE_V2_PREFIX as ys, CreateState as yt, parseResultingState as yu, ServiceActions as z, UpgradeDocumentActionInput as za, addChangeLogItem as zc, SetNameActionInput as zi, updateChangeLogItem as zl, Mutation as zn, SetAuthorWebsiteInputSchema as zo, PieceModule as zr, HashAlgorithms as zs, DocumentModelDocumentModelModule as zt, PHBaseState as zu };
3322
+ export {};
3323
+ //# sourceMappingURL=types-xLPOHE23.d.ts.map