@powerhousedao/shared 6.2.3-staging.0 → 6.3.0-dev.1

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 (326) hide show
  1. package/dist/action-id-DON1WCeY.d.ts +19 -0
  2. package/dist/action-id-DON1WCeY.d.ts.map +1 -0
  3. package/dist/clis/args/access-token.d.mts +14 -2
  4. package/dist/clis/args/access-token.d.mts.map +1 -0
  5. package/dist/clis/args/access-token.mjs +21 -1
  6. package/dist/clis/args/access-token.mjs.map +1 -0
  7. package/dist/clis/args/{common-BXabdhiO.mjs → common-DG_SF8fN.mjs} +39 -8
  8. package/dist/clis/args/common-DG_SF8fN.mjs.map +1 -0
  9. package/dist/clis/args/{common-Bnm859xU.d.mts → common-DmerPWXo.d.mts} +8 -4
  10. package/dist/clis/args/common-DmerPWXo.d.mts.map +1 -0
  11. package/dist/clis/args/common.d.mts +1 -1
  12. package/dist/clis/args/common.mjs +1 -1
  13. package/dist/clis/args/connect.d.mts +448 -2
  14. package/dist/clis/args/connect.d.mts.map +1 -0
  15. package/dist/clis/args/connect.mjs +202 -1
  16. package/dist/clis/args/connect.mjs.map +1 -0
  17. package/dist/clis/args/{generate-BOItUNvP.mjs → generate-DMKgc6et.mjs} +2 -21
  18. package/dist/clis/args/generate-DMKgc6et.mjs.map +1 -0
  19. package/dist/clis/args/generate.d.mts +92 -2
  20. package/dist/clis/args/generate.d.mts.map +1 -0
  21. package/dist/clis/args/generate.mjs +1 -1
  22. package/dist/clis/args/{help-DVPTARGn.d.mts → help-BnD14eCa.d.mts} +62 -2
  23. package/dist/clis/args/help-BnD14eCa.d.mts.map +1 -0
  24. package/dist/clis/args/{help-DS1NlcJQ.mjs → help-Cjoe-b7d.mjs} +55 -15
  25. package/dist/clis/args/help-Cjoe-b7d.mjs.map +1 -0
  26. package/dist/clis/args/help.d.mts +1 -1
  27. package/dist/clis/args/help.mjs +16 -1
  28. package/dist/clis/args/host.d.mts +23 -0
  29. package/dist/clis/args/host.d.mts.map +1 -0
  30. package/dist/clis/args/host.mjs +35 -0
  31. package/dist/clis/args/host.mjs.map +1 -0
  32. package/dist/clis/args/index.d.mts +23 -19
  33. package/dist/clis/args/index.mjs +23 -19
  34. package/dist/clis/args/init.d.mts +53 -2
  35. package/dist/clis/args/init.d.mts.map +1 -0
  36. package/dist/clis/args/init.mjs +77 -1
  37. package/dist/clis/args/init.mjs.map +1 -0
  38. package/dist/clis/args/inspect.d.mts +11 -2
  39. package/dist/clis/args/inspect.d.mts.map +1 -0
  40. package/dist/clis/args/inspect.mjs +14 -1
  41. package/dist/clis/args/inspect.mjs.map +1 -0
  42. package/dist/clis/args/install.d.mts +35 -2
  43. package/dist/clis/args/install.d.mts.map +1 -0
  44. package/dist/clis/args/install.mjs +31 -1
  45. package/dist/clis/args/install.mjs.map +1 -0
  46. package/dist/clis/args/{login-CXRJXg71.d.mts → keyframes.d.mts} +13 -13
  47. package/dist/clis/args/keyframes.d.mts.map +1 -0
  48. package/dist/clis/args/keyframes.mjs +42 -0
  49. package/dist/clis/args/keyframes.mjs.map +1 -0
  50. package/dist/clis/args/list.d.mts +8 -2
  51. package/dist/clis/args/list.d.mts.map +1 -0
  52. package/dist/clis/args/list.mjs +6 -1
  53. package/dist/clis/args/list.mjs.map +1 -0
  54. package/dist/clis/args/login.d.mts +23 -2
  55. package/dist/clis/args/login.d.mts.map +1 -0
  56. package/dist/clis/args/login.mjs +39 -1
  57. package/dist/clis/args/login.mjs.map +1 -0
  58. package/dist/clis/args/{access-token-C5sKsH2O.d.mts → mcp.d.mts} +6 -7
  59. package/dist/clis/args/mcp.d.mts.map +1 -0
  60. package/dist/clis/args/mcp.mjs +22 -0
  61. package/dist/clis/args/mcp.mjs.map +1 -0
  62. package/dist/clis/args/migrate.d.mts +26 -2
  63. package/dist/clis/args/migrate.d.mts.map +1 -0
  64. package/dist/clis/args/migrate.mjs +43 -1
  65. package/dist/clis/args/migrate.mjs.map +1 -0
  66. package/dist/clis/args/{uninstall-CDx7lwxn.d.mts → model.d.mts} +28 -17
  67. package/dist/clis/args/model.d.mts.map +1 -0
  68. package/dist/clis/args/model.mjs +51 -0
  69. package/dist/clis/args/model.mjs.map +1 -0
  70. package/dist/clis/args/publish.d.mts +18 -2
  71. package/dist/clis/args/publish.d.mts.map +1 -0
  72. package/dist/clis/args/publish.mjs +26 -1
  73. package/dist/clis/args/publish.mjs.map +1 -0
  74. package/dist/clis/args/registry.d.mts +15 -2
  75. package/dist/clis/args/registry.d.mts.map +1 -0
  76. package/dist/clis/args/registry.mjs +22 -1
  77. package/dist/clis/args/registry.mjs.map +1 -0
  78. package/dist/clis/args/{unpublish-CEDsk6uv.d.mts → run.d.mts} +11 -12
  79. package/dist/clis/args/run.d.mts.map +1 -0
  80. package/dist/clis/args/run.mjs +33 -0
  81. package/dist/clis/args/run.mjs.map +1 -0
  82. package/dist/clis/args/{service-BBx5GDTc.d.mts → service-CLCvH3kf.d.mts} +4 -4
  83. package/dist/clis/args/service-CLCvH3kf.d.mts.map +1 -0
  84. package/dist/clis/args/service.d.mts +1 -1
  85. package/dist/clis/args/service.mjs +10 -1
  86. package/dist/clis/args/service.mjs.map +1 -0
  87. package/dist/clis/args/switchboard.d.mts +68 -2
  88. package/dist/clis/args/switchboard.d.mts.map +1 -0
  89. package/dist/clis/args/switchboard.mjs +84 -1
  90. package/dist/clis/args/switchboard.mjs.map +1 -0
  91. package/dist/clis/args/uninstall.d.mts +26 -2
  92. package/dist/clis/args/uninstall.d.mts.map +1 -0
  93. package/dist/clis/args/uninstall.mjs +15 -1
  94. package/dist/clis/args/uninstall.mjs.map +1 -0
  95. package/dist/clis/args/unpublish.d.mts +20 -2
  96. package/dist/clis/args/unpublish.d.mts.map +1 -0
  97. package/dist/clis/args/unpublish.mjs +29 -1
  98. package/dist/clis/args/unpublish.mjs.map +1 -0
  99. package/dist/clis/args/{vetra-BUNlAAPp.mjs → vetra-BqjDopAP.mjs} +18 -2
  100. package/dist/clis/args/vetra-BqjDopAP.mjs.map +1 -0
  101. package/dist/clis/args/vetra.d.mts +112 -2
  102. package/dist/clis/args/vetra.d.mts.map +1 -0
  103. package/dist/clis/args/vetra.mjs +1 -1
  104. package/dist/clis/{build-config-CmdMi_wu.mjs → build-config-BM1RL4u_.mjs} +87 -8
  105. package/dist/clis/build-config-BM1RL4u_.mjs.map +1 -0
  106. package/dist/clis/build-config.d.mts +26 -1
  107. package/dist/clis/build-config.d.mts.map +1 -1
  108. package/dist/clis/build-config.mjs +2 -2
  109. package/dist/clis/build-pieces.d.mts +71 -4
  110. package/dist/clis/build-pieces.d.mts.map +1 -1
  111. package/dist/clis/build-pieces.mjs +249 -26
  112. package/dist/clis/build-pieces.mjs.map +1 -1
  113. package/dist/clis/command-names.d.mts +3 -1
  114. package/dist/clis/command-names.d.mts.map +1 -1
  115. package/dist/clis/command-names.mjs +8 -1
  116. package/dist/clis/command-names.mjs.map +1 -1
  117. package/dist/clis/constants.d.mts +2 -2
  118. package/dist/clis/constants.mjs +92 -20
  119. package/dist/clis/constants.mjs.map +1 -1
  120. package/dist/clis/definition-sources.d.mts +26 -0
  121. package/dist/clis/definition-sources.d.mts.map +1 -0
  122. package/dist/clis/definition-sources.mjs +27 -0
  123. package/dist/clis/definition-sources.mjs.map +1 -0
  124. package/dist/clis/deprecations.d.mts +73 -0
  125. package/dist/clis/deprecations.d.mts.map +1 -0
  126. package/dist/clis/deprecations.mjs +121 -0
  127. package/dist/clis/deprecations.mjs.map +1 -0
  128. package/dist/clis/{index-6CZwrmQi.d.mts → index-DnZYG-8g.d.mts} +2 -2
  129. package/dist/clis/{index-6CZwrmQi.d.mts.map → index-DnZYG-8g.d.mts.map} +1 -1
  130. package/dist/clis/index.d.mts +2584 -901
  131. package/dist/clis/index.d.mts.map +1 -1
  132. package/dist/clis/index.mjs +1540 -919
  133. package/dist/clis/index.mjs.map +1 -1
  134. package/dist/clis/package-style.d.mts +32 -0
  135. package/dist/clis/package-style.d.mts.map +1 -0
  136. package/dist/clis/package-style.mjs +102 -0
  137. package/dist/clis/package-style.mjs.map +1 -0
  138. package/dist/clis/ph-dir.d.mts +26 -0
  139. package/dist/clis/ph-dir.d.mts.map +1 -0
  140. package/dist/clis/ph-dir.mjs +37 -0
  141. package/dist/clis/ph-dir.mjs.map +1 -0
  142. package/dist/clis/project-env.d.mts +6 -0
  143. package/dist/clis/project-env.d.mts.map +1 -1
  144. package/dist/clis/project-env.mjs +16 -1
  145. package/dist/clis/project-env.mjs.map +1 -1
  146. package/dist/clis/real-paths.d.mts +14 -0
  147. package/dist/clis/real-paths.d.mts.map +1 -0
  148. package/dist/clis/real-paths.mjs +36 -0
  149. package/dist/clis/real-paths.mjs.map +1 -0
  150. package/dist/clis/retired-flags.d.mts +45 -0
  151. package/dist/clis/retired-flags.d.mts.map +1 -0
  152. package/dist/clis/retired-flags.mjs +55 -0
  153. package/dist/clis/retired-flags.mjs.map +1 -0
  154. package/dist/clis/rolldown-runtime-B4iAMlE-.mjs +35 -0
  155. package/dist/clis/types-CZU17kAm.d.mts +2510 -0
  156. package/dist/clis/types-CZU17kAm.d.mts.map +1 -0
  157. package/dist/clis/utils.d.mts.map +1 -1
  158. package/dist/clis/utils.mjs.map +1 -1
  159. package/dist/{config-loader-C6dZB_iX.js → config-loader-B7SqNz8z.js} +24 -6
  160. package/dist/config-loader-B7SqNz8z.js.map +1 -0
  161. package/dist/connect/app-shell.d.ts +48 -0
  162. package/dist/connect/app-shell.d.ts.map +1 -0
  163. package/dist/connect/app-shell.js +90 -0
  164. package/dist/connect/app-shell.js.map +1 -0
  165. package/dist/connect/config-loader.d.ts +8 -1
  166. package/dist/connect/config-loader.d.ts.map +1 -1
  167. package/dist/connect/config-loader.js +2 -2
  168. package/dist/connect/connect-config-schema.d.ts +3 -0
  169. package/dist/connect/connect-config-schema.js +486 -0
  170. package/dist/connect/connect-config-schema.js.map +1 -0
  171. package/dist/connect/image-ref.d.ts +32 -0
  172. package/dist/connect/image-ref.d.ts.map +1 -0
  173. package/dist/connect/image-ref.js +80 -0
  174. package/dist/connect/image-ref.js.map +1 -0
  175. package/dist/connect/index.d.ts +84 -635
  176. package/dist/connect/index.d.ts.map +1 -1
  177. package/dist/connect/index.js +216 -553
  178. package/dist/connect/index.js.map +1 -1
  179. package/dist/connect/origin-placeholder.d.ts +52 -0
  180. package/dist/connect/origin-placeholder.d.ts.map +1 -0
  181. package/dist/connect/origin-placeholder.js +101 -0
  182. package/dist/connect/origin-placeholder.js.map +1 -0
  183. package/dist/connect-config-schema-cBfkNo1b.d.ts +1872 -0
  184. package/dist/connect-config-schema-cBfkNo1b.d.ts.map +1 -0
  185. package/dist/constants-5UFY_rXh.d.ts +9 -0
  186. package/dist/constants-5UFY_rXh.d.ts.map +1 -0
  187. package/dist/constants.d.ts +1 -1
  188. package/dist/constants.js +22 -6
  189. package/dist/constants.js.map +1 -1
  190. package/dist/document-drive/index.d.ts +3 -4
  191. package/dist/document-drive/index.d.ts.map +1 -1
  192. package/dist/document-drive/index.js +2 -13
  193. package/dist/document-drive/index.js.map +1 -1
  194. package/dist/document-model/action-id.d.ts +3 -0
  195. package/dist/document-model/action-id.js +59 -0
  196. package/dist/document-model/action-id.js.map +1 -0
  197. package/dist/document-model/dispatch.d.ts +25 -0
  198. package/dist/document-model/dispatch.d.ts.map +1 -0
  199. package/dist/document-model/dispatch.js +0 -0
  200. package/dist/document-model/errors.d.ts +3 -0
  201. package/dist/document-model/errors.js +214 -0
  202. package/dist/document-model/errors.js.map +1 -0
  203. package/dist/document-model/index.d.ts +5 -4
  204. package/dist/document-model/index.js +7 -5521
  205. package/dist/document-model/utils.d.ts +3 -2
  206. package/dist/document-model/utils.js +3 -2
  207. package/dist/document-model/version.d.ts +3 -0
  208. package/dist/document-model/version.js +8 -0
  209. package/dist/document-model/version.js.map +1 -0
  210. package/dist/document-model-CqySIaKV.js +5805 -0
  211. package/dist/document-model-CqySIaKV.js.map +1 -0
  212. package/dist/host-tokens/index.d.ts +3 -0
  213. package/dist/host-tokens/index.js +2 -0
  214. package/dist/host-tokens-DOeyxqLi.js +322 -0
  215. package/dist/host-tokens-DOeyxqLi.js.map +1 -0
  216. package/dist/{index-5gwOhPG5.d.ts → index-CUZ8eWun.d.ts} +2 -2
  217. package/dist/{index-5gwOhPG5.d.ts.map → index-CUZ8eWun.d.ts.map} +1 -1
  218. package/dist/index-D58WVj_E.d.ts +246 -0
  219. package/dist/index-D58WVj_E.d.ts.map +1 -0
  220. package/dist/index.d.ts +5 -5
  221. package/dist/processors/index.d.ts +2 -2
  222. package/dist/processors/index.js +177 -68
  223. package/dist/processors/index.js.map +1 -1
  224. package/dist/processors/testing.d.ts +22 -0
  225. package/dist/processors/testing.d.ts.map +1 -0
  226. package/dist/processors/testing.js +77 -0
  227. package/dist/processors/testing.js.map +1 -0
  228. package/dist/purge-CbAV5DVh.js +631 -0
  229. package/dist/purge-CbAV5DVh.js.map +1 -0
  230. package/dist/registry/index.d.ts +3 -3
  231. package/dist/registry/index.js +52 -9
  232. package/dist/registry/index.js.map +1 -1
  233. package/dist/registry/manifest-slim.d.ts +2 -2
  234. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  235. package/dist/types-CV2j3BvH.d.ts +5709 -0
  236. package/dist/types-CV2j3BvH.d.ts.map +1 -0
  237. package/dist/{types-CI3ren9F.d.ts → types-D_6ZcaJj.d.ts} +20 -12
  238. package/dist/types-D_6ZcaJj.d.ts.map +1 -0
  239. package/dist/{utils-CSF716ux.js → utils-DiV32YIj.js} +45 -2
  240. package/dist/utils-DiV32YIj.js.map +1 -0
  241. package/dist/utils-MrLmLEVr.js +78 -0
  242. package/dist/utils-MrLmLEVr.js.map +1 -0
  243. package/dist/version-BxLITo9P.d.ts +6 -0
  244. package/dist/version-BxLITo9P.d.ts.map +1 -0
  245. package/package.json +37 -3
  246. package/dist/clis/args/access-token-3Hqv_U8I.mjs +0 -22
  247. package/dist/clis/args/access-token-3Hqv_U8I.mjs.map +0 -1
  248. package/dist/clis/args/access-token-C5sKsH2O.d.mts.map +0 -1
  249. package/dist/clis/args/common-BXabdhiO.mjs.map +0 -1
  250. package/dist/clis/args/common-Bnm859xU.d.mts.map +0 -1
  251. package/dist/clis/args/connect-BG3HkYBk.mjs +0 -203
  252. package/dist/clis/args/connect-BG3HkYBk.mjs.map +0 -1
  253. package/dist/clis/args/connect-DjeiqXus.d.mts +0 -450
  254. package/dist/clis/args/connect-DjeiqXus.d.mts.map +0 -1
  255. package/dist/clis/args/generate-BOItUNvP.mjs.map +0 -1
  256. package/dist/clis/args/generate-BPBBLeUD.d.mts +0 -103
  257. package/dist/clis/args/generate-BPBBLeUD.d.mts.map +0 -1
  258. package/dist/clis/args/help-DS1NlcJQ.mjs.map +0 -1
  259. package/dist/clis/args/help-DVPTARGn.d.mts.map +0 -1
  260. package/dist/clis/args/init-CFeTq4Cq.d.mts +0 -52
  261. package/dist/clis/args/init-CFeTq4Cq.d.mts.map +0 -1
  262. package/dist/clis/args/init-Dvb42Y87.mjs +0 -67
  263. package/dist/clis/args/init-Dvb42Y87.mjs.map +0 -1
  264. package/dist/clis/args/inspect-BjRmtB86.d.mts +0 -13
  265. package/dist/clis/args/inspect-BjRmtB86.d.mts.map +0 -1
  266. package/dist/clis/args/inspect-UNQgtuR0.mjs +0 -15
  267. package/dist/clis/args/inspect-UNQgtuR0.mjs.map +0 -1
  268. package/dist/clis/args/install-B0tMyUMw.d.mts +0 -37
  269. package/dist/clis/args/install-B0tMyUMw.d.mts.map +0 -1
  270. package/dist/clis/args/install-F-27kF6m.mjs +0 -32
  271. package/dist/clis/args/install-F-27kF6m.mjs.map +0 -1
  272. package/dist/clis/args/list-Bkfn8Yuo.mjs +0 -7
  273. package/dist/clis/args/list-Bkfn8Yuo.mjs.map +0 -1
  274. package/dist/clis/args/list-DrbxA7JJ.d.mts +0 -10
  275. package/dist/clis/args/list-DrbxA7JJ.d.mts.map +0 -1
  276. package/dist/clis/args/login-CIFkQExi.mjs +0 -40
  277. package/dist/clis/args/login-CIFkQExi.mjs.map +0 -1
  278. package/dist/clis/args/login-CXRJXg71.d.mts.map +0 -1
  279. package/dist/clis/args/magic-string.es-BWtG0AyA.mjs +0 -1019
  280. package/dist/clis/args/magic-string.es-BWtG0AyA.mjs.map +0 -1
  281. package/dist/clis/args/migrate-DkCQRL2D.d.mts +0 -19
  282. package/dist/clis/args/migrate-DkCQRL2D.d.mts.map +0 -1
  283. package/dist/clis/args/migrate-DwJGhc2d.mjs +0 -29
  284. package/dist/clis/args/migrate-DwJGhc2d.mjs.map +0 -1
  285. package/dist/clis/args/publish-CeW4bOrl.d.mts +0 -16
  286. package/dist/clis/args/publish-CeW4bOrl.d.mts.map +0 -1
  287. package/dist/clis/args/publish-DHqlGWmL.mjs +0 -19
  288. package/dist/clis/args/publish-DHqlGWmL.mjs.map +0 -1
  289. package/dist/clis/args/registry-DIwES3l2.mjs +0 -23
  290. package/dist/clis/args/registry-DIwES3l2.mjs.map +0 -1
  291. package/dist/clis/args/registry-DNH8xuaE.d.mts +0 -17
  292. package/dist/clis/args/registry-DNH8xuaE.d.mts.map +0 -1
  293. package/dist/clis/args/service-BBx5GDTc.d.mts.map +0 -1
  294. package/dist/clis/args/service-Cpjlyeu5.mjs +0 -11
  295. package/dist/clis/args/service-Cpjlyeu5.mjs.map +0 -1
  296. package/dist/clis/args/switchboard-CCaAtU56.mjs +0 -85
  297. package/dist/clis/args/switchboard-CCaAtU56.mjs.map +0 -1
  298. package/dist/clis/args/switchboard-RrNb1fUH.d.mts +0 -70
  299. package/dist/clis/args/switchboard-RrNb1fUH.d.mts.map +0 -1
  300. package/dist/clis/args/uninstall-3U0B8g5c.mjs +0 -16
  301. package/dist/clis/args/uninstall-3U0B8g5c.mjs.map +0 -1
  302. package/dist/clis/args/uninstall-CDx7lwxn.d.mts.map +0 -1
  303. package/dist/clis/args/unpublish-CEDsk6uv.d.mts.map +0 -1
  304. package/dist/clis/args/unpublish-s9zUh6Gw.mjs +0 -30
  305. package/dist/clis/args/unpublish-s9zUh6Gw.mjs.map +0 -1
  306. package/dist/clis/args/vetra-BUNlAAPp.mjs.map +0 -1
  307. package/dist/clis/args/vetra-DkDaWFPi.d.mts +0 -111
  308. package/dist/clis/args/vetra-DkDaWFPi.d.mts.map +0 -1
  309. package/dist/clis/args/vetra-ports.test.d.mts +0 -2
  310. package/dist/clis/args/vetra-ports.test.mjs +0 -13354
  311. package/dist/clis/args/vetra-ports.test.mjs.map +0 -1
  312. package/dist/clis/build-config-CmdMi_wu.mjs.map +0 -1
  313. package/dist/clis/types-nzer4WIr.d.mts +0 -541
  314. package/dist/clis/types-nzer4WIr.d.mts.map +0 -1
  315. package/dist/config-loader-C6dZB_iX.js.map +0 -1
  316. package/dist/constants-DO4IYxuR.d.ts +0 -9
  317. package/dist/constants-DO4IYxuR.d.ts.map +0 -1
  318. package/dist/document-model/index.js.map +0 -1
  319. package/dist/index-D6833Siv.d.ts +0 -939
  320. package/dist/index-D6833Siv.d.ts.map +0 -1
  321. package/dist/types-CI3ren9F.d.ts.map +0 -1
  322. package/dist/types-CmeoQg_J.d.ts +0 -3337
  323. package/dist/types-CmeoQg_J.d.ts.map +0 -1
  324. package/dist/utils-BrKxCmKx.d.ts +0 -18
  325. package/dist/utils-BrKxCmKx.d.ts.map +0 -1
  326. package/dist/utils-CSF716ux.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-id.js","names":[],"sources":["../../document-model/action-id.ts"],"sourcesContent":["export type ActionIdGeneratorOptions = {\n now?: () => number;\n random?: (bytes: Uint8Array<ArrayBuffer>) => void;\n};\n\nconst COUNTER_MAX = 0xfff;\nconst HEX = Array.from({ length: 256 }, (_, i) =>\n i.toString(16).padStart(2, \"0\"),\n);\n\n/** UUIDv7 (RFC 9562 §6.2 method 1), strictly increasing per generator. */\nexport function createActionIdGenerator(\n options: ActionIdGeneratorOptions = {},\n): () => string {\n const now = options.now ?? (() => Date.now());\n const random =\n options.random ??\n ((bytes: Uint8Array<ArrayBuffer>) => {\n globalThis.crypto.getRandomValues(bytes);\n });\n const bytes = new Uint8Array(16);\n let lastMs = -1;\n let counter = 0;\n\n return () => {\n const ms = now();\n random(bytes);\n // 11 random bits leave at least 2048 increments before an overflow.\n const seed = ((bytes[6] & 0x07) << 8) | bytes[7];\n if (ms > lastMs) {\n lastMs = ms;\n counter = seed;\n } else if (counter < COUNTER_MAX) {\n counter++;\n } else {\n lastMs++;\n counter = seed;\n }\n\n let rest = lastMs;\n for (let i = 5; i >= 0; i--) {\n bytes[i] = rest % 256;\n rest = Math.floor(rest / 256);\n }\n bytes[6] = 0x70 | (counter >> 8);\n bytes[7] = counter & 0xff;\n bytes[8] = 0x80 | (bytes[8] & 0x3f);\n\n let id = \"\";\n for (let i = 0; i < 16; i++) {\n if (i === 4 || i === 6 || i === 8 || i === 10) id += \"-\";\n id += HEX[bytes[i]];\n }\n return id;\n };\n}\n\n/** Ids from one process sort in creation order, so same-ms actions keep it. */\nexport const generateActionId: () => string = createActionIdGenerator();\n\nlet lastClockMs = 0;\nlet lastStampMs = 0;\n\n/**\n * Strictly increasing per process, as the auth scope's admission rule requires\n * of one client's auth actions. A clock that steps back is followed rather than\n * outrun.\n */\nexport function nextAuthTimestamp(): string {\n const now = Date.now();\n lastStampMs = now < lastClockMs || now > lastStampMs ? now : lastStampMs + 1;\n lastClockMs = now;\n return new Date(lastStampMs).toISOString();\n}\n"],"mappings":";AAKA,MAAM,cAAc;AACpB,MAAM,MAAM,MAAM,KAAK,EAAE,QAAQ,IAAI,IAAI,GAAG,MAC1C,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG,CAChC;;AAGA,SAAgB,wBACd,UAAoC,CAAC,GACvB;CACd,MAAM,MAAM,QAAQ,cAAc,KAAK,IAAI;CAC3C,MAAM,SACJ,QAAQ,YACN,UAAmC;EACnC,WAAW,OAAO,gBAAgB,KAAK;CACzC;CACF,MAAM,wBAAQ,IAAI,WAAW,EAAE;CAC/B,IAAI,SAAS;CACb,IAAI,UAAU;CAEd,aAAa;EACX,MAAM,KAAK,IAAI;EACf,OAAO,KAAK;EAEZ,MAAM,QAAS,MAAM,KAAK,MAAS,IAAK,MAAM;EAC9C,IAAI,KAAK,QAAQ;GACf,SAAS;GACT,UAAU;EACZ,OAAO,IAAI,UAAU,aACnB;OACK;GACL;GACA,UAAU;EACZ;EAEA,IAAI,OAAO;EACX,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,KAAK;GAC3B,MAAM,KAAK,OAAO;GAClB,OAAO,KAAK,MAAM,OAAO,GAAG;EAC9B;EACA,MAAM,KAAK,MAAQ,WAAW;EAC9B,MAAM,KAAK,UAAU;EACrB,MAAM,KAAK,MAAQ,MAAM,KAAK;EAE9B,IAAI,KAAK;EACT,KAAK,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK;GAC3B,IAAI,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,IAAI,MAAM;GACrD,MAAM,IAAI,MAAM;EAClB;EACA,OAAO;CACT;AACF;;AAGA,MAAa,mBAAiC,wBAAwB;AAEtE,IAAI,cAAc;AAClB,IAAI,cAAc;;;;;;AAOlB,SAAgB,oBAA4B;CAC1C,MAAM,MAAM,KAAK,IAAI;CACrB,cAAc,MAAM,eAAe,MAAM,cAAc,MAAM,cAAc;CAC3E,cAAc;CACd,OAAO,IAAI,KAAK,WAAW,CAAC,CAAC,YAAY;AAC3C"}
@@ -0,0 +1,25 @@
1
+ import { a_ as Action, in as DocumentAction, yv as PHDocument } from "../types-CV2j3BvH.js";
2
+ //#region document-model/dispatch.d.ts
3
+ /** An action the document did not apply; in Connect, an `OperationRejectedError`. */
4
+ export type RejectedAction = Error & {
5
+ documentId: string;
6
+ scope: string;
7
+ actionId: string;
8
+ actionType: string;
9
+ /** The operation index the rejected action took. */
10
+ index: number;
11
+ kind: "reducer-error" | "denied";
12
+ };
13
+ /** What `onSuccess` gets besides the document. */
14
+ export type DispatchOutcome = {
15
+ /** The actions the document did not apply, as `onErrors` got them; empty when all applied. */
16
+ rejected: RejectedAction[];
17
+ };
18
+ /** Dispatches actions to a document; `onErrors`/`onSuccess` report the outcome.
19
+ * In Connect, `onErrors` gets an `OperationRejectedError` per rejected action and runs
20
+ * first; `onSuccess` then gets the document whether or not an action was rejected.
21
+ * Its second argument tells them apart: `outcome.rejected.length === 0` when all applied. */
22
+ export type DocumentDispatch<TAction extends Action = Action> = (actionOrActions: TAction | TAction[] | DocumentAction | DocumentAction[] | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument, outcome: DispatchOutcome) => void) => void;
23
+ //#endregion
24
+ export {};
25
+ //# sourceMappingURL=dispatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatch.d.ts","names":[],"sources":["../../document-model/dispatch.ts"],"mappings":";;;YAKY,iBAAiB;EAC3B;EACA;EACA;EACA;;EAEA;EACA;;;YAIU;;EAEV,UAAU;;;;;;YAOA,iBAAiB,gBAAgB,SAAS,WACpD,iBACI,UACA,YACA,iBACA,8BAEJ,YAAY,QAAQ,kBACpB,aAAa,QAAQ,YAAY,SAAS"}
File without changes
@@ -0,0 +1,3 @@
1
+ import { $d as UndoOperationRefusedError, Bd as AuthAlreadyInitializedError, Gd as GrantNotFoundError, Hd as AuthPolicyNotPreservedError, Jd as InvalidActionInputZodError, Kd as HashMismatchError, Qd as SubmittedUndoRefusedError, Ud as DowngradeNotSupportedError, Vd as AuthInitializerNotCreatorError, Wd as FileSystemError, Xd as MissingStateReducerError, Yd as InvalidAuthVersionError, Zd as NoUndoRedoTargetError, ef as UnsupportedDocumentModelVersionError, qd as InvalidActionInputError, zd as AuthActionNotAllowedError } from "../types-CV2j3BvH.js";
2
+ export { AuthActionNotAllowedError, AuthAlreadyInitializedError, AuthInitializerNotCreatorError, AuthPolicyNotPreservedError, DowngradeNotSupportedError, FileSystemError, GrantNotFoundError, HashMismatchError, InvalidActionInputError, InvalidActionInputZodError, InvalidAuthVersionError, MissingStateReducerError, NoUndoRedoTargetError, SubmittedUndoRefusedError, UndoOperationRefusedError, UnsupportedDocumentModelVersionError };
3
+ export {};
@@ -0,0 +1,214 @@
1
+ //#region document-model/errors.ts
2
+ const FileSystemError = /* @__PURE__ */ new Error("File system not available.");
3
+ var InvalidActionInputError = class extends Error {
4
+ data;
5
+ constructor(data) {
6
+ super();
7
+ this.name = "InvalidActionInputError";
8
+ this.data = data;
9
+ this.message = this.message || `Invalid action input: ${JSON.stringify(data, null, 2)}`;
10
+ }
11
+ };
12
+ var InvalidActionInputZodError = class extends InvalidActionInputError {
13
+ issues;
14
+ constructor(issues) {
15
+ super(issues);
16
+ this.issues = issues;
17
+ this.name = "InvalidActionInputZodError";
18
+ }
19
+ };
20
+ /** A model version a rule derivation needs, whose reducer createReducer did not build. */
21
+ var MissingStateReducerError = class extends Error {
22
+ documentType;
23
+ version;
24
+ constructor(documentType, version) {
25
+ const model = version === void 0 ? documentType : `${documentType} v${version}`;
26
+ super(`Cannot replay ${model} on base-reducer 3: its reducer was not built by createReducer`);
27
+ this.name = "MissingStateReducerError";
28
+ this.documentType = documentType;
29
+ this.version = version;
30
+ }
31
+ static isError(error) {
32
+ return error instanceof Error && error.name === "MissingStateReducerError";
33
+ }
34
+ };
35
+ /**
36
+ * An UNDO or REDO, submitted or loaded from a peer, into a document whose base
37
+ * reducer undoes by retraction. Its client resolves the target and submits a
38
+ * RETRACT of it, signed by the author, as IReactorClient.undo does.
39
+ */
40
+ var SubmittedUndoRefusedError = class extends Error {
41
+ documentId;
42
+ actionType;
43
+ constructor(documentId, actionType) {
44
+ super(`${actionType} cannot be submitted to document ${documentId}: its base reducer undoes by RETRACT of a target, which IReactorClient.undo and redo resolve and sign`);
45
+ this.name = "SubmittedUndoRefusedError";
46
+ this.documentId = documentId;
47
+ this.actionType = actionType;
48
+ }
49
+ static isError(error) {
50
+ return error instanceof Error && error.name === "SubmittedUndoRefusedError";
51
+ }
52
+ };
53
+ /** A base-reducer 3 UNDO or REDO of a scope with no row to retract. */
54
+ var NoUndoRedoTargetError = class extends Error {
55
+ actionType;
56
+ scope;
57
+ constructor(actionType, scope) {
58
+ const verb = actionType === "UNDO" ? "undo" : "redo";
59
+ super(`Cannot ${verb}: nothing to ${verb} in scope history`);
60
+ this.name = "NoUndoRedoTargetError";
61
+ this.actionType = actionType;
62
+ this.scope = scope;
63
+ }
64
+ static isError(error) {
65
+ return error instanceof Error && error.name === "NoUndoRedoTargetError";
66
+ }
67
+ };
68
+ /** A loaded UNDO row; base-reducer 1 and 2 store an undo as a NOOP. */
69
+ var UndoOperationRefusedError = class extends Error {
70
+ documentId;
71
+ scope;
72
+ constructor(documentId, scope) {
73
+ super(`UNDO operation in scope ${scope} cannot be applied to document ${documentId}: its base reducer stores an undo as a NOOP marker, never as an UNDO operation`);
74
+ this.name = "UndoOperationRefusedError";
75
+ this.documentId = documentId;
76
+ this.scope = scope;
77
+ }
78
+ static isError(error) {
79
+ return error instanceof Error && error.name === "UndoOperationRefusedError";
80
+ }
81
+ };
82
+ /**
83
+ * Error thrown when attempting to downgrade a document version.
84
+ */
85
+ var DowngradeNotSupportedError = class extends Error {
86
+ documentType;
87
+ fromVersion;
88
+ toVersion;
89
+ constructor(documentType, fromVersion, toVersion) {
90
+ super(`Downgrade not supported for ${documentType}: cannot upgrade from version ${fromVersion} to ${toVersion}`);
91
+ this.name = "DowngradeNotSupportedError";
92
+ this.documentType = documentType;
93
+ this.fromVersion = fromVersion;
94
+ this.toVersion = toVersion;
95
+ }
96
+ };
97
+ /**
98
+ * Thrown when INITIALIZE_AUTH is applied to an already-initialized auth scope.
99
+ * The genesis action is valid only at auth revision zero.
100
+ */
101
+ var AuthAlreadyInitializedError = class extends Error {
102
+ documentId;
103
+ constructor(documentId) {
104
+ super(`Auth scope already initialized for document ${documentId}: INITIALIZE_AUTH is valid only at auth revision zero`);
105
+ this.name = "AuthAlreadyInitializedError";
106
+ this.documentId = documentId;
107
+ }
108
+ };
109
+ /**
110
+ * Thrown when INITIALIZE_AUTH is not signed by the document creator (its signer
111
+ * does not match `header.sig.publicKey`), so it cannot set the auth policy.
112
+ */
113
+ var AuthInitializerNotCreatorError = class extends Error {
114
+ documentId;
115
+ constructor(documentId) {
116
+ super(`INITIALIZE_AUTH for document ${documentId} must be signed by the document creator`);
117
+ this.name = "AuthInitializerNotCreatorError";
118
+ this.documentId = documentId;
119
+ }
120
+ };
121
+ /**
122
+ * Thrown when INITIALIZE_AUTH carries a version below 1. Version 0 is reserved
123
+ * for the uninitialized auth scope.
124
+ */
125
+ var InvalidAuthVersionError = class extends Error {
126
+ documentId;
127
+ version;
128
+ constructor(documentId, version) {
129
+ super(`Invalid auth policy version ${version} for document ${documentId}: INITIALIZE_AUTH requires an integer version >= 1`);
130
+ this.name = "InvalidAuthVersionError";
131
+ this.documentId = documentId;
132
+ this.version = version;
133
+ }
134
+ };
135
+ /** Thrown when a duplicate would lose the source policy's version or creator binding. */
136
+ var AuthPolicyNotPreservedError = class extends Error {
137
+ documentId;
138
+ constructor(documentId) {
139
+ super(`Duplicating document ${documentId} would not preserve its auth policy: the copy loses the policy version or its creator binding`);
140
+ this.name = "AuthPolicyNotPreservedError";
141
+ this.documentId = documentId;
142
+ }
143
+ };
144
+ /**
145
+ * Thrown when a grant referenced by REMOVE_GRANT or MOVE_GRANT does not exist.
146
+ */
147
+ var GrantNotFoundError = class extends Error {
148
+ grantId;
149
+ constructor(grantId) {
150
+ super(`Grant not found in auth scope: ${grantId}`);
151
+ this.name = "GrantNotFoundError";
152
+ this.grantId = grantId;
153
+ }
154
+ };
155
+ /**
156
+ * Thrown when a disallowed action (UNDO, REDO) targets the auth scope.
157
+ */
158
+ var AuthActionNotAllowedError = class extends Error {
159
+ actionType;
160
+ constructor(actionType) {
161
+ super(`${actionType} is not permitted on the auth scope`);
162
+ this.name = "AuthActionNotAllowedError";
163
+ this.actionType = actionType;
164
+ }
165
+ };
166
+ var HashMismatchError = class extends Error {
167
+ _scope;
168
+ _document;
169
+ _operation;
170
+ constructor(scope, document, operation) {
171
+ super();
172
+ this.name = "HashMismatchError";
173
+ this._document = document;
174
+ this._scope = scope;
175
+ this._operation = operation;
176
+ this.message = JSON.stringify({
177
+ error: `Hash mismatch on document ${document.header.id}, scope ${scope}, index ${operation.index}`,
178
+ document,
179
+ operation
180
+ }, null, 1);
181
+ }
182
+ get document() {
183
+ return this._document;
184
+ }
185
+ get scope() {
186
+ return this._scope;
187
+ }
188
+ get operation() {
189
+ return this._operation;
190
+ }
191
+ };
192
+ /**
193
+ * Thrown when replay or import requires a document model version that is not
194
+ * registered. Carries the data the UI needs to explain the mismatch.
195
+ */
196
+ var UnsupportedDocumentModelVersionError = class extends Error {
197
+ documentType;
198
+ requiredVersion;
199
+ availableVersions;
200
+ constructor(documentType, requiredVersion, availableVersions) {
201
+ super(`No reducer registered for document version ${requiredVersion}. Available versions: ${availableVersions.join(", ")}`);
202
+ this.name = "UnsupportedDocumentModelVersionError";
203
+ this.documentType = documentType;
204
+ this.requiredVersion = requiredVersion;
205
+ this.availableVersions = availableVersions;
206
+ }
207
+ static isError(error) {
208
+ return Error.isError(error) && error.name === "UnsupportedDocumentModelVersionError";
209
+ }
210
+ };
211
+ //#endregion
212
+ export { AuthActionNotAllowedError, AuthAlreadyInitializedError, AuthInitializerNotCreatorError, AuthPolicyNotPreservedError, DowngradeNotSupportedError, FileSystemError, GrantNotFoundError, HashMismatchError, InvalidActionInputError, InvalidActionInputZodError, InvalidAuthVersionError, MissingStateReducerError, NoUndoRedoTargetError, SubmittedUndoRefusedError, UndoOperationRefusedError, UnsupportedDocumentModelVersionError };
213
+
214
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","names":[],"sources":["../../document-model/errors.ts"],"sourcesContent":["import type { ZodIssue } from \"zod\";\nimport type { PHDocument } from \"./documents.js\";\nimport type { Operation } from \"./operations.js\";\n\nexport const FileSystemError = new Error(\"File system not available.\");\n\nexport class InvalidActionInputError extends Error {\n public data: unknown;\n constructor(data: unknown) {\n super();\n this.name = \"InvalidActionInputError\";\n this.data = data;\n this.message =\n this.message || `Invalid action input: ${JSON.stringify(data, null, 2)}`;\n }\n}\n\nexport class InvalidActionInputZodError extends InvalidActionInputError {\n public issues: ZodIssue[];\n\n constructor(issues: ZodIssue[]) {\n super(issues);\n this.issues = issues;\n this.name = \"InvalidActionInputZodError\";\n }\n}\n\n/** A model version a rule derivation needs, whose reducer createReducer did not build. */\nexport class MissingStateReducerError extends Error {\n public readonly documentType: string;\n public readonly version?: number;\n\n constructor(documentType: string, version?: number) {\n const model =\n version === undefined ? documentType : `${documentType} v${version}`;\n super(\n `Cannot replay ${model} on base-reducer 3: its reducer was not built by createReducer`,\n );\n this.name = \"MissingStateReducerError\";\n this.documentType = documentType;\n this.version = version;\n }\n\n static override isError(error: unknown): error is MissingStateReducerError {\n return error instanceof Error && error.name === \"MissingStateReducerError\";\n }\n}\n\n/**\n * An UNDO or REDO, submitted or loaded from a peer, into a document whose base\n * reducer undoes by retraction. Its client resolves the target and submits a\n * RETRACT of it, signed by the author, as IReactorClient.undo does.\n */\nexport class SubmittedUndoRefusedError extends Error {\n public readonly documentId: string;\n public readonly actionType: string;\n\n constructor(documentId: string, actionType: string) {\n super(\n `${actionType} cannot be submitted to document ${documentId}: its base reducer undoes by RETRACT of a target, which IReactorClient.undo and redo resolve and sign`,\n );\n this.name = \"SubmittedUndoRefusedError\";\n this.documentId = documentId;\n this.actionType = actionType;\n }\n\n static override isError(error: unknown): error is SubmittedUndoRefusedError {\n return error instanceof Error && error.name === \"SubmittedUndoRefusedError\";\n }\n}\n\n/** A base-reducer 3 UNDO or REDO of a scope with no row to retract. */\nexport class NoUndoRedoTargetError extends Error {\n public readonly actionType: \"UNDO\" | \"REDO\";\n public readonly scope: string;\n\n constructor(actionType: \"UNDO\" | \"REDO\", scope: string) {\n const verb = actionType === \"UNDO\" ? \"undo\" : \"redo\";\n super(`Cannot ${verb}: nothing to ${verb} in scope history`);\n this.name = \"NoUndoRedoTargetError\";\n this.actionType = actionType;\n this.scope = scope;\n }\n\n static override isError(error: unknown): error is NoUndoRedoTargetError {\n return error instanceof Error && error.name === \"NoUndoRedoTargetError\";\n }\n}\n\n/** A loaded UNDO row; base-reducer 1 and 2 store an undo as a NOOP. */\nexport class UndoOperationRefusedError extends Error {\n public readonly documentId: string;\n public readonly scope: string;\n\n constructor(documentId: string, scope: string) {\n super(\n `UNDO operation in scope ${scope} cannot be applied to document ${documentId}: its base reducer stores an undo as a NOOP marker, never as an UNDO operation`,\n );\n this.name = \"UndoOperationRefusedError\";\n this.documentId = documentId;\n this.scope = scope;\n }\n\n static override isError(error: unknown): error is UndoOperationRefusedError {\n return error instanceof Error && error.name === \"UndoOperationRefusedError\";\n }\n}\n\n/**\n * Error thrown when attempting to downgrade a document version.\n */\nexport class DowngradeNotSupportedError extends Error {\n public readonly documentType: string;\n public readonly fromVersion: number;\n public readonly toVersion: number;\n\n constructor(documentType: string, fromVersion: number, toVersion: number) {\n super(\n `Downgrade not supported for ${documentType}: cannot upgrade from version ${fromVersion} to ${toVersion}`,\n );\n this.name = \"DowngradeNotSupportedError\";\n this.documentType = documentType;\n this.fromVersion = fromVersion;\n this.toVersion = toVersion;\n }\n}\n\n/**\n * Thrown when INITIALIZE_AUTH is applied to an already-initialized auth scope.\n * The genesis action is valid only at auth revision zero.\n */\nexport class AuthAlreadyInitializedError extends Error {\n public readonly documentId: string;\n\n constructor(documentId: string) {\n super(\n `Auth scope already initialized for document ${documentId}: INITIALIZE_AUTH is valid only at auth revision zero`,\n );\n this.name = \"AuthAlreadyInitializedError\";\n this.documentId = documentId;\n }\n}\n\n/**\n * Thrown when INITIALIZE_AUTH is not signed by the document creator (its signer\n * does not match `header.sig.publicKey`), so it cannot set the auth policy.\n */\nexport class AuthInitializerNotCreatorError extends Error {\n public readonly documentId: string;\n\n constructor(documentId: string) {\n super(\n `INITIALIZE_AUTH for document ${documentId} must be signed by the document creator`,\n );\n this.name = \"AuthInitializerNotCreatorError\";\n this.documentId = documentId;\n }\n}\n\n/**\n * Thrown when INITIALIZE_AUTH carries a version below 1. Version 0 is reserved\n * for the uninitialized auth scope.\n */\nexport class InvalidAuthVersionError extends Error {\n public readonly documentId: string;\n public readonly version: number;\n\n constructor(documentId: string, version: number) {\n super(\n `Invalid auth policy version ${version} for document ${documentId}: INITIALIZE_AUTH requires an integer version >= 1`,\n );\n this.name = \"InvalidAuthVersionError\";\n this.documentId = documentId;\n this.version = version;\n }\n}\n\n/** Thrown when a duplicate would lose the source policy's version or creator binding. */\nexport class AuthPolicyNotPreservedError extends Error {\n public readonly documentId: string;\n\n constructor(documentId: string) {\n super(\n `Duplicating document ${documentId} would not preserve its auth policy: the copy loses the policy version or its creator binding`,\n );\n this.name = \"AuthPolicyNotPreservedError\";\n this.documentId = documentId;\n }\n}\n\n/**\n * Thrown when a grant referenced by REMOVE_GRANT or MOVE_GRANT does not exist.\n */\nexport class GrantNotFoundError extends Error {\n public readonly grantId: string;\n\n constructor(grantId: string) {\n super(`Grant not found in auth scope: ${grantId}`);\n this.name = \"GrantNotFoundError\";\n this.grantId = grantId;\n }\n}\n\n/**\n * Thrown when a disallowed action (UNDO, REDO) targets the auth scope.\n */\nexport class AuthActionNotAllowedError extends Error {\n public readonly actionType: string;\n\n constructor(actionType: string) {\n super(`${actionType} is not permitted on the auth scope`);\n this.name = \"AuthActionNotAllowedError\";\n this.actionType = actionType;\n }\n}\n\nexport class HashMismatchError extends Error {\n protected _scope: string;\n protected _document: PHDocument;\n protected _operation: Operation;\n\n constructor(scope: string, document: PHDocument, operation: Operation) {\n super();\n this.name = \"HashMismatchError\";\n this._document = document;\n this._scope = scope;\n this._operation = operation;\n\n this.message = JSON.stringify(\n {\n error: `Hash mismatch on document ${document.header.id}, scope ${scope}, index ${operation.index}`,\n document,\n operation,\n },\n null,\n 1,\n );\n }\n\n get document() {\n return this._document;\n }\n\n get scope() {\n return this._scope;\n }\n\n get operation() {\n return this._operation;\n }\n}\n\n/**\n * Thrown when replay or import requires a document model version that is not\n * registered. Carries the data the UI needs to explain the mismatch.\n */\nexport class UnsupportedDocumentModelVersionError extends Error {\n public readonly documentType: string;\n public readonly requiredVersion: number;\n public readonly availableVersions: number[];\n\n constructor(\n documentType: string,\n requiredVersion: number,\n availableVersions: number[],\n ) {\n super(\n `No reducer registered for document version ${requiredVersion}. Available versions: ${availableVersions.join(\", \")}`,\n );\n this.name = \"UnsupportedDocumentModelVersionError\";\n this.documentType = documentType;\n this.requiredVersion = requiredVersion;\n this.availableVersions = availableVersions;\n }\n\n static override isError(\n error: unknown,\n ): error is UnsupportedDocumentModelVersionError {\n return (\n Error.isError(error) &&\n error.name === \"UnsupportedDocumentModelVersionError\"\n );\n }\n}\n"],"mappings":";AAIA,MAAa,kCAAkB,IAAI,MAAM,4BAA4B;AAErE,IAAa,0BAAb,cAA6C,MAAM;CACjD;CACA,YAAY,MAAe;EACzB,MAAM;EACN,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,UACH,KAAK,WAAW,yBAAyB,KAAK,UAAU,MAAM,MAAM,CAAC;CACzE;AACF;AAEA,IAAa,6BAAb,cAAgD,wBAAwB;CACtE;CAEA,YAAY,QAAoB;EAC9B,MAAM,MAAM;EACZ,KAAK,SAAS;EACd,KAAK,OAAO;CACd;AACF;;AAGA,IAAa,2BAAb,cAA8C,MAAM;CAClD;CACA;CAEA,YAAY,cAAsB,SAAkB;EAClD,MAAM,QACJ,YAAY,KAAA,IAAY,eAAe,GAAG,aAAa,IAAI;EAC7D,MACE,iBAAiB,MAAM,+DACzB;EACA,KAAK,OAAO;EACZ,KAAK,eAAe;EACpB,KAAK,UAAU;CACjB;CAEA,OAAgB,QAAQ,OAAmD;EACzE,OAAO,iBAAiB,SAAS,MAAM,SAAS;CAClD;AACF;;;;;;AAOA,IAAa,4BAAb,cAA+C,MAAM;CACnD;CACA;CAEA,YAAY,YAAoB,YAAoB;EAClD,MACE,GAAG,WAAW,mCAAmC,WAAW,sGAC9D;EACA,KAAK,OAAO;EACZ,KAAK,aAAa;EAClB,KAAK,aAAa;CACpB;CAEA,OAAgB,QAAQ,OAAoD;EAC1E,OAAO,iBAAiB,SAAS,MAAM,SAAS;CAClD;AACF;;AAGA,IAAa,wBAAb,cAA2C,MAAM;CAC/C;CACA;CAEA,YAAY,YAA6B,OAAe;EACtD,MAAM,OAAO,eAAe,SAAS,SAAS;EAC9C,MAAM,UAAU,KAAK,eAAe,KAAK,kBAAkB;EAC3D,KAAK,OAAO;EACZ,KAAK,aAAa;EAClB,KAAK,QAAQ;CACf;CAEA,OAAgB,QAAQ,OAAgD;EACtE,OAAO,iBAAiB,SAAS,MAAM,SAAS;CAClD;AACF;;AAGA,IAAa,4BAAb,cAA+C,MAAM;CACnD;CACA;CAEA,YAAY,YAAoB,OAAe;EAC7C,MACE,2BAA2B,MAAM,iCAAiC,WAAW,+EAC/E;EACA,KAAK,OAAO;EACZ,KAAK,aAAa;EAClB,KAAK,QAAQ;CACf;CAEA,OAAgB,QAAQ,OAAoD;EAC1E,OAAO,iBAAiB,SAAS,MAAM,SAAS;CAClD;AACF;;;;AAKA,IAAa,6BAAb,cAAgD,MAAM;CACpD;CACA;CACA;CAEA,YAAY,cAAsB,aAAqB,WAAmB;EACxE,MACE,+BAA+B,aAAa,gCAAgC,YAAY,MAAM,WAChG;EACA,KAAK,OAAO;EACZ,KAAK,eAAe;EACpB,KAAK,cAAc;EACnB,KAAK,YAAY;CACnB;AACF;;;;;AAMA,IAAa,8BAAb,cAAiD,MAAM;CACrD;CAEA,YAAY,YAAoB;EAC9B,MACE,+CAA+C,WAAW,sDAC5D;EACA,KAAK,OAAO;EACZ,KAAK,aAAa;CACpB;AACF;;;;;AAMA,IAAa,iCAAb,cAAoD,MAAM;CACxD;CAEA,YAAY,YAAoB;EAC9B,MACE,gCAAgC,WAAW,wCAC7C;EACA,KAAK,OAAO;EACZ,KAAK,aAAa;CACpB;AACF;;;;;AAMA,IAAa,0BAAb,cAA6C,MAAM;CACjD;CACA;CAEA,YAAY,YAAoB,SAAiB;EAC/C,MACE,+BAA+B,QAAQ,gBAAgB,WAAW,mDACpE;EACA,KAAK,OAAO;EACZ,KAAK,aAAa;EAClB,KAAK,UAAU;CACjB;AACF;;AAGA,IAAa,8BAAb,cAAiD,MAAM;CACrD;CAEA,YAAY,YAAoB;EAC9B,MACE,wBAAwB,WAAW,8FACrC;EACA,KAAK,OAAO;EACZ,KAAK,aAAa;CACpB;AACF;;;;AAKA,IAAa,qBAAb,cAAwC,MAAM;CAC5C;CAEA,YAAY,SAAiB;EAC3B,MAAM,kCAAkC,SAAS;EACjD,KAAK,OAAO;EACZ,KAAK,UAAU;CACjB;AACF;;;;AAKA,IAAa,4BAAb,cAA+C,MAAM;CACnD;CAEA,YAAY,YAAoB;EAC9B,MAAM,GAAG,WAAW,oCAAoC;EACxD,KAAK,OAAO;EACZ,KAAK,aAAa;CACpB;AACF;AAEA,IAAa,oBAAb,cAAuC,MAAM;CAC3C;CACA;CACA;CAEA,YAAY,OAAe,UAAsB,WAAsB;EACrE,MAAM;EACN,KAAK,OAAO;EACZ,KAAK,YAAY;EACjB,KAAK,SAAS;EACd,KAAK,aAAa;EAElB,KAAK,UAAU,KAAK,UAClB;GACE,OAAO,6BAA6B,SAAS,OAAO,GAAG,UAAU,MAAM,UAAU,UAAU;GAC3F;GACA;EACF,GACA,MACA,CACF;CACF;CAEA,IAAI,WAAW;EACb,OAAO,KAAK;CACd;CAEA,IAAI,QAAQ;EACV,OAAO,KAAK;CACd;CAEA,IAAI,YAAY;EACd,OAAO,KAAK;CACd;AACF;;;;;AAMA,IAAa,uCAAb,cAA0D,MAAM;CAC9D;CACA;CACA;CAEA,YACE,cACA,iBACA,mBACA;EACA,MACE,8CAA8C,gBAAgB,wBAAwB,kBAAkB,KAAK,IAAI,GACnH;EACA,KAAK,OAAO;EACZ,KAAK,eAAe;EACpB,KAAK,kBAAkB;EACvB,KAAK,oBAAoB;CAC3B;CAEA,OAAgB,QACd,OAC+C;EAC/C,OACE,MAAM,QAAQ,KAAK,KACnB,MAAM,SAAS;CAEnB;AACF"}
@@ -1,5 +1,6 @@
1
- import { $ as AddOperationErrorInput, $a as AddOperationErrorInputSchema, $c as deleteOperationError, $i as SetOperationNameInput, $l as baseReducerVersion, $n as MutationMoveOperationArgs, $o as SetOperationErrorNameInputSchema, $r as ReorderChangeLogItemsInput, $t as DocumentModelOperationExampleAction, $u as defaultDocumentState, Aa as UndoRedoAction, Ad as PHDocumentSignatureInfo, Ai as SetModelExtensionInput, Al as setOperationErrorName, An as MakeEmpty, Ao as RedoActionSchema, Ar as MutationUpdateStateExampleArgs, As as isV2ActionHash, At as DeleteOperationErrorAction, Au as sortOperations, Ba as UpgradeDocumentActionInput, Bc as addChangeLogItem, Bi as SetNameActionInput, Bl as updateChangeLogItem, Bn as Mutation, Bo as SetAuthorWebsiteInputSchema, Br as PieceModule, Bt as DocumentModelDocumentModelModule, Bu as PHBaseState, Ca as SkipHeaderOperations, Cd as setNameOperation, Ci as SetAuthorWebsiteAction, Cl as setModelName, Cn as ISigner, Co as PieceModuleSchema, Cr as MutationSetOperationReducerArgs, Cs as CanonicalJsonError, Ct as DeleteChildDocumentInput, Cu as readOnly, Da as Undo, Dd as ActionSigner, Di as SetModelDescriptionAction, Dl as setOperationDescription, Dn as IsStateOfType, Do as PublisherSchema, Dr as MutationUndoArgs, Ds as actionSigningTarget, Dt as DeleteModuleAction, Du as reshuffleByTimestampAndIndex, Ea as SubgraphModule, Ed as undoOperationV2, Ei as SetInitialStateInput, El as setName, En as IsDocumentOfType, Eo as PowerhouseModulesSchema, Er as MutationSetStateSchemaArgs, Es as actionSignerIdentity, Et as DeleteDocumentActionInput, Eu as reshuffleByTimestamp, Fa as UpdateRelationshipAction, Fc as ActionContext, Fi as SetModuleDescriptionAction, Fl as setOperationScope, Fn as Maybe, Fo as ReorderOperationErrorsInputSchema, Fr as OperationsByScope, Ft as DeleteStateExampleAction, Fu as Capability, G as ActionVerificationHandler, Ga as UpgradeTransition, Gc as addStateExample, Gi as SetOperationErrorCodeInput, Gl as IntegrityIssueType, Gn as MutationAddOperationExampleArgs, Go as SetModelNameInputSchema, Gr as RedoAction, Gt as DocumentModelLib, Gu as createAuthState, H as ActionErrorCallback, Ha as ValidationError, Hc as addOperation, Hi as SetOperationDescriptionAction, Hl as updateStateExample, Hn as MutationAddModuleArgs, Ho as SetModelDescriptionInputSchema, Hr as Publisher, Ht as DocumentModelHeaderAction, Hu as PHGroupState, Ia as UpdateRelationshipActionInput, Ic as actionContext, Ii as SetModuleDescriptionInput, Il as setOperationTemplate, In as MinimalBackupData, Io as ReorderOperationExamplesInputSchema, Ir as PartialRecord, It as DeleteStateExampleInput, Iu as Condition, J as AddChangeLogItemInput, Ja as computeUpgradeTransitions, Jc as buildSignedAction, Ji as SetOperationErrorNameAction, Jl as PHDocumentMeta, Jn as MutationDeleteModuleArgs, Jo as SetNameActionInputSchema, Jr as ReducerOptions, Jt as DocumentModelModuleAction, Ju as createGlobalState, K as Actions, Ka as applyDeleteDocumentAction, Kc as baseActions, Ki as SetOperationErrorDescriptionAction, Kl as PHDocument, Kn as MutationAddStateExampleArgs, Ko as SetModuleDescriptionInputSchema, Kr as RedoActionInput, Kt as DocumentModelLocalState, Ku as createBaseState, La as UpdateStateExampleAction, Lc as actionFromAction, Li as SetModuleNameAction, Ll as setPreferredEditor, Ln as ModuleSpecification, Lo as ReorderStateExamplesInputSchema, Lr as PartialState, Lt as DocumentAction, Lu as Grant, Ma as UpdateChangeLogItemInput, Md as UserActionSigner, Mi as SetModelIdInput, Ml as setOperationName, Mn as MakeOptional, Mo as ReorderChangeLogItemsInputSchema, Mr as OperationErrorSpecification, Ms as targetDocumentId, Mt as DeleteOperationExampleAction, Mu as updateHeaderRevision, Na as UpdateOperationExampleAction, Nd as deserializeSignature, Ni as SetModelNameAction, Nl as setOperationReducer, Nn as Manifest, No as ReorderModuleOperationsInputSchema, Nr as OperationIndex, Ns as v2TupleProblem, Nt as DeleteOperationExampleInput, Nu as withSignaturePolicy, Oa as UndoAction, Od as AppActionSigner, Oi as SetModelDescriptionInput, Ol as setOperationErrorCode, On as LoadFromFile, Oo as PwaConfigSchema, Or as MutationUpdateChangeLogItemInputArgs, Os as canonicalJson, Ot as DeleteModuleInput, Ou as skipHeaderOperations, Pa as UpdateOperationExampleInput, Pc as Action, Pd as serializeSignature, Pi as SetModelNameInput, Pl as setOperationSchema, Pn as MappedOperation, Po as ReorderModulesInputSchema, Pr as OperationSpecification, Pt as DeleteOperationInput, Pu as AuthGroups, Q as AddOperationErrorAction, Qa as AddModuleInputSchema, Qc as deleteOperation, Qi as SetOperationNameAction, Ql as baseCreateDocument, Qn as MutationDeleteStateExampleArgs, Qo as SetOperationErrorDescriptionInputSchema, Qr as ReorderChangeLogItemsAction, Qt as DocumentModelOperationErrorOperations, Qu as defaultBaseState, Ra as UpdateStateExampleInput, Rc as actionSigner, Ri as SetModuleNameInput, Rl as setStateSchema, Rn as MoveOperationAction, Ro as ScopeStateSchema, Rr as PhAiToolAnnotations, Rt as DocumentModelAction, Ru as Operand, Sa as SkipHeaderOperationIndex, Sd as redoOperation, Si as SetAuthorNameInput, Sl as setModelId, Sn as ISignalResult, So as OperationSpecificationSchema, Sr as MutationSetOperationNameArgs, Ss as ActionSigningTarget, St as DeleteChangeLogItemInput, Su as prepareOperations, Ta as StateReducer, Td as undoOperation, Ti as SetInitialStateAction, Tl as setModuleName, Tn as InputMaybe, To as PowerhouseModuleSchema, Tr as MutationSetOperationTemplateArgs, Ts as actionPreimageV2, Tt as DeleteDocumentAction, Tu as replayDocument, U as ActionSignatureContext, Ua as UpgradeManifest, Uc as addOperationError, Ui as SetOperationDescriptionInput, Ul as verifyOperationSignature, Un as MutationAddOperationArgs, Uo as SetModelExtensionInputSchema, Ur as Query, Ut as DocumentModelHeaderOperations, Uu as Principal, Va as User, Vc as addModule, Vi as SetNameOperation, Vl as updateOperationExample, Vn as MutationAddChangeLogItemInputArgs, Vo as SetInitialStateInputSchema, Vr as PowerhouseModule, Vt as DocumentModelGlobalState, Vu as PHDocumentState, W as ActionSigningHandler, Wa as UpgradeReducer, Wc as addOperationExample, Wi as SetOperationErrorCodeAction, Wl as IntegrityIssueSubType, Wn as MutationAddOperationErrorArgs, Wo as SetModelIdInputSchema, Wr as Redo, Wt as DocumentModelInput, Wu as backfillAuthState, X as AddModuleInput, Xa as withProtocolVersions, Xc as deleteChangeLogItem, Xi as SetOperationErrorTemplateAction, Xl as appendWithoutApplying, Xn as MutationDeleteOperationErrorArgs, Xo as SetOperationDescriptionInputSchema, Xr as RemoveRelationshipAction, Xt as DocumentModelOperationAction, Xu as createState, Y as AddModuleAction, Ya as normalizeDocumentModelVersion, Yc as createAction, Yi as SetOperationErrorNameInput, Yl as addUndo, Yn as MutationDeleteOperationArgs, Yo as SetNameActionSchema, Yr as ReleaseNewVersionAction, Yt as DocumentModelModuleOperations, Yu as createLocalState, Z as AddOperationAction, Za as AddChangeLogItemInputSchema, Zc as deleteModule, Zi as SetOperationErrorTemplateInput, Zl as attachBranch, Zn as MutationDeleteOperationExampleArgs, Zo as SetOperationErrorCodeInputSchema, Zr as RemoveRelationshipActionInput, Zt as DocumentModelOperationErrorAction, Zu as defaultAuthState, _a as SignalResult, _d as Operation, _i as SchemaSetNameAction, _l as setAuthorName, _n as IAction, _o as ManifestSchema, _r as MutationSetOperationDescriptionArgs, _s as UpdateStateExampleInputSchema, _t as CreateDocument, _u as merge, aa as SetOperationScopeInput, ad as ProtocolVersions, ai as ReorderOperationErrorsInput, al as operationExampleCreators, an as DocumentModelUtils, ao as ConfigEntrySchema, ar as MutationReorderOperationExamplesArgs, as as SetOperationTemplateInputSchema, at as AddStateExampleAction, au as garbageCollect, ba as SignatureVerificationHandler, bd as OperationWithContext, bi as ScopeState, bl as setModelDescription, bn as IOperation, bo as OperationErrorSchema, br as MutationSetOperationErrorNameArgs, bs as ACTION_SIGNATURE_V2_PREFIX, bt as CreateState, bu as parseResultingState, ca as SetPreferredEditorAction, cd as SignaturePolicy, ci as ReorderStateExamplesAction, cl as operationWithContext, cn as DocumentOperationsIgnoreMap, co as DeleteModuleInputSchema, cr as MutationSetAuthorWebsiteArgs, cs as SetStateSchemaInputSchema, ct as AssertIsStateOfType, cu as getDocumentLastModified, da as SetStateSchemaAction, dd as isSignaturePolicy, di as RevisionsFilter, dl as reorderChangeLogItems, dn as EditorDispatch, do as DeleteOperationInputSchema, dr as MutationSetModelExtensionArgs, ds as StateSchema, dt as ConfigEntry, du as isDocumentAction, ea as SetOperationReducerAction, ed as defaultGlobalState, ei as ReorderModuleOperationsAction, el as deleteOperationExample, en as DocumentModelOperationExampleOperations, eo as AddOperationExampleInputSchema, er as MutationRedoArgs, es as SetOperationErrorTemplateInputSchema, et as AddOperationExampleAction, eu as checkCleanedOperationsIntegrity, fa as SetStateSchemaInput, fd as protocolVersionsFor, fi as SaveToFile, fl as reorderModuleOperations, fn as EditorModule, fo as DeleteStateExampleInputSchema, fr as MutationSetModelIdArgs, fs as UndoActionInputSchema, ft as ConfigEntryType, fu as isNoopOperation, ga as SignalDispatch, gd as DocumentOperations, gi as SchemaRedoAction, gl as reorderStateExamples, gn as GetDocumentOptions, go as DocumentSpecificationSchema, gr as MutationSetNameArgs, gs as UpdateOperationExampleInputSchema, gt as CreateChildDocumentSignal, gu as mapSkippedOperationsV2, ha as Signal, hd as v2RequiredProtocolVersions, hi as SchemaNOOPAction, hl as reorderOperationExamples, hn as FileInput, ho as DocumentModelInputSchema, hr as MutationSetModuleNameArgs, hs as UpdateChangeLogItemInputSchema, ht as CreateChildDocumentInput, hu as mapSkippedOperations, ia as SetOperationScopeAction, id as DocumentIdParams, ii as ReorderOperationErrorsAction, il as noop, in as DocumentModelStateOperations, io as CodeExampleSchema, ir as MutationReorderOperationErrorsArgs, is as SetOperationScopeInputSchema, it as AddRelationshipActionInput, iu as filterDuplicatedOperations, ja as UpdateChangeLogItemAction, jd as Signature, ji as SetModelIdAction, jl as setOperationErrorTemplate, jn as MakeMaybe, jo as RedoSchema, jr as NOOPAction, js as signActionV2, jt as DeleteOperationErrorInput, ju as split, ka as UndoActionInput, kd as HashConfig, ki as SetModelExtensionAction, kl as setOperationErrorDescription, kn as LoadFromInput, ko as RedoActionInputSchema, kr as MutationUpdateOperationExampleArgs, ks as hashActionV2, kt as DeleteOperationAction, ku as sortMappedOperations, la as SetPreferredEditorActionInput, ld as deriveDocumentId, li as ReorderStateExamplesInput, ll as redo, ln as DocumentSpecification, lo as DeleteOperationErrorInputSchema, lr as MutationSetInitialStateArgs, ls as Set_NameSchema, lt as Author, lu as groupOperationsByScope, ma as Set_PreferredEditor, md as signaturePolicyOf, mi as Scalars, ml as reorderOperationErrors, mn as Exact, mo as DocumentModelGlobalStateSchema, mr as MutationSetModuleDescriptionArgs, ms as UndoSchema, mt as CopyChildDocumentSignal, mu as isUndoRedo, na as SetOperationSchemaAction, nd as defaultPHState, ni as ReorderModulesAction, nl as documentModelActions, nn as DocumentModelPHState, no as AddStateExampleInputSchema, nr as MutationReorderModuleOperationsArgs, ns as SetOperationReducerInputSchema, nt as AddOperationInput, nu as diffOperations, oa as SetOperationTemplateAction, od as SIGNATURE_PROTOCOL, oi as ReorderOperationExamplesAction, ol as operationFromAction, on as DocumentModelVersioningAction, oo as ConfigEntryTypeSchema, or as MutationReorderStateExamplesArgs, os as SetPreferredEditorActionInputSchema, ot as AddStateExampleInput, ou as garbageCollectDocumentOperations, pa as Set_Name, pd as requestedSignaturePolicy, pi as SaveToFileHandle, pl as reorderModules, pn as EditorProps, po as DocumentActionSchema, pr as MutationSetModelNameArgs, ps as UndoActionSchema, pt as CopyChildDocumentInput, pu as isUndo, q as AddChangeLogItemAction, qa as applyUpgradeDocumentAction, qc as buildOperationSignature, qi as SetOperationErrorDescriptionInput, ql as PHDocumentHeader, qn as MutationDeleteChangeLogItemInputArgs, qo as SetModuleNameInputSchema, qr as Reducer, qt as DocumentModelModule, qu as createDocumentState, ra as SetOperationSchemaInput, rd as DEFAULT_SIGNATURE_POLICY, ri as ReorderModulesInput, rl as moveOperation, rn as DocumentModelStateAction, ro as AuthorSchema, rr as MutationReorderModulesArgs, rs as SetOperationSchemaInputSchema, rt as AddRelationshipAction, ru as filterDocumentOperationsResultingState, sa as SetOperationTemplateInput, sd as SIGNATURE_PROTOCOL_V2, si as ReorderOperationExamplesInput, sl as operationFromOperation, sn as DocumentModelVersioningOperations, so as DeleteChangeLogItemInputSchema, sr as MutationSetAuthorNameArgs, ss as SetPreferredEditorActionSchema, st as AssertIsDocumentOfType, su as garbageCollectV2, ta as SetOperationReducerInput, td as defaultLocalState, ti as ReorderModuleOperationsInput, tl as deleteStateExample, tn as DocumentModelOperationOperations, to as AddOperationInputSchema, tr as MutationReorderChangeLogItemsInputArgs, ts as SetOperationNameInputSchema, tt as AddOperationExampleInput, tu as checkOperationsIntegrity, ua as SetPreferredEditorOperation, ud as isDerivedDocumentId, ui as ReplayDocumentOptions, ul as releaseNewVersion, un as ENSInfo, uo as DeleteOperationExampleInputSchema, ur as MutationSetModelDescriptionArgs, us as Set_PreferredEditorSchema, ut as CodeExample, uu as hashDocumentStateForScope, va as SignalResults, vd as OperationContext, vi as SchemaSetPreferredEditorAction, vl as setAuthorWebsite, vn as ID, vo as ModuleSchema, vr as MutationSetOperationErrorCodeArgs, vs as definedNonNullAnySchema, vt as CreateDocumentAction, vu as nextSkipNumber, wa as State, wd as setPreferredEditorOperation, wi as SetAuthorWebsiteInput, wl as setModuleDescription, wn as Incremental, wo as PieceModulesSchema, wr as MutationSetOperationSchemaArgs, ws as DOCUMENT_SCOPE_ACTION_TYPES, wt as DeleteChildDocumentSignal, wu as removeExistingOperations, xa as SigningParameters, xd as operationOutcome, xi as SetAuthorNameAction, xl as setModelExtension, xn as ISignal, xo as OperationScopeSchema, xr as MutationSetOperationErrorTemplateArgs, xs as ActionSignerIdentity, xt as DeleteChangeLogItemAction, xu as precedes, ya as SignalType, yd as OperationOutcome, yi as SchemaUndoAction, yl as setInitialState, yn as IDocument, yo as MoveOperationInputSchema, yr as MutationSetOperationErrorDescriptionArgs, ys as isDefinedNonNullAny, yt as CreateDocumentActionInput, yu as operationsAreEqual, za as UpgradeDocumentAction, zc as actions, zi as SetNameAction, zl as undo, zn as MoveOperationInput, zo as SetAuthorNameInputSchema, zr as PhAiToolDescriptor, zt as DocumentModelDocument, zu as PHAuthState } from "../types-CmeoQg_J.js";
2
- import { $ as peerSupports, $n as MAX_SUPPORTED_AUTH_VERSION, $t as AUTH_DENIED_BY_GRANT_REASON, A as documentModelVersioningReducer, An as MAX_CONDITION_NODES, At as AuthAlreadyInitializedError, B as PeerCapability, Bn as referencedGroupIds, Bt as UnsupportedDocumentModelVersionError, C as documentModelModuleReducer, Cn as AuthAdministrationMissingError, Cr as removeGrant, Ct as readFileBrowser, D as documentModelReducer, Dn as MAX_AUTH_GRANTS, Dr as TransportActionContext, Dt as VersionedReplayConfig, E as documentModelOperationReducer, En as InvalidGrantError, Er as TransportAction, Et as VersionedReducers, F as updateDocument, Fn as evaluateCondition, Ft as GrantNotFoundError, G as coversLocal, Gn as AuthRefusal, Gt as BaseDocumentStateSchema, H as PeerManifest, Hn as AuthAction, Ht as groupDocumentType, I as FeatureCapability, In as evaluateGrantStack, It as HashMismatchError, J as legacySupports, Jn as AuthVerb, Jt as DocumentModelSchema, K as holdReason, Kn as AuthRequest, Kt as DocumentModelHeaderSchema, L as HoldReason, Ln as evaluateGrants, Lt as InvalidActionInputError, M as createReducer, Mn as assertValidGrant, Mt as AuthPolicyNotPreservedError, N as processUndoRedo, Nn as assertValidGrantUpsert, Nt as DowngradeNotSupportedError, O as documentModelStateReducer, On as MAX_CAPABILITY_OPERATIONS, Or as TransportSigner, Ot as replayDocumentVersioned, P as replayOperations, Pn as assertValidInitialGrants, Pt as FileSystemError, Q as mergePeerCapabilities, Qn as InitializeAuthActionInputSchema, Qt as isDocumentModelState, R as PEER_CAPABILITIES, Rn as grantProblem, Rt as InvalidActionInputZodError, S as documentModelHeaderReducer, Sn as AuthAdministrationLockoutError, Sr as moveGrant, St as parseBulkArchive, T as documentModelOperationExampleReducer, Tn as GroupPrincipalNotAllowedError, Tr as setGrant, Tt as zipEntries, U as ProtocolCapability, Un as AuthDecision, Ut as groupMembershipActionTypes, V as PeerCapabilityFlags, Vn as AUTH_ACTION_TYPES, Vt as documentModelDocumentType, W as Supports, Wn as AuthEvaluation, Wt as BaseDocumentHeaderSchema, X as localSupports, Xn as InitializeAuthAction, Xt as assertIsDocumentModelState, Y as localPeerManifest, Yn as ConditionContext, Yt as assertIsDocumentModelDocument, Z as manifestRevision, Zn as InitializeAuthActionInput, Zt as isDocumentModelDocument, _ as validateModuleOperation, _n as HASH_ENCODING_HEX, _r as evaluate, _t as documentModelLoadFromInput, a as assertOperationErrorIdUnique, an as base58Decode, ar as RemoveGrantActionInputSchema, at as createSignedHeaderForSigner, b as validateOperations, bn as documentModelInitialGlobalState, br as isDocumentCreator, bt as getFileBrowser, c as findModuleOrThrow, cn as buildOperationSignatureParams, cr as SetGrantActionInputSchema, ct as sign, d as findOperationOrThrow, dn as hashBrowser, dr as applyMoveGrantAction, dt as BulkArchiveEntry, en as AUTH_NO_GRANT_REASON, er as MoveGrantAction, et as readPeerManifest, f as getAllOperationNames, fn as hex2ab, fr as applyRemoveGrantAction, ft as baseLoadFromInput, g as validateModule, gn as HASH_ENCODING_BASE64, gr as decide, gt as createZip, h as validateInitialState, hn as HASH_ALGORITHM_SHA512, hr as assertAuthScopeActionAllowed, ht as createMinimalZip, i as assertModuleIdUnique, in as ab2hex, ir as RemoveGrantActionInput, it as createSignedHeader, j as baseReducer, jn as assertAuthAdministrationRetained, jt as AuthInitializerNotCreatorError, k as documentModelStateSchemaReducer, kn as MAX_CONDITION_DEPTH, kr as toTransportAction, kt as AuthActionNotAllowedError, l as findOperationErrorOrThrow, ln as bytesToBase64Url, lr as applyAuthAction, lt as validateHeader, m as isValidOperationNameFormat, mn as HASH_ALGORITHM_SHA256, mr as assertAuthPreservedOnDuplicate, mt as baseSaveToFileHandle, n as RESERVED_OPERATION_NAMES, nn as DOCUMENT_DELETED_REASON, nr as MoveGrantActionInputSchema, nt as createCopyHeader, o as assertOperationExampleIdUnique, on as base64UrlToBytes, or as SetGrantAction, ot as createVerificationSigner, p as isReservedOperationName, pn as HASH_ALGORITHM_SHA1, pr as applySetGrantAction, pt as baseLoadFromInputVersioned, q as isOlderManifest, qn as AuthSubject, qt as DocumentModelPHStateSchema, r as ReservedOperationName, rn as isDenied, rr as RemoveGrantAction, rt as createPresignedHeader, s as assertOperationIdUnique, sn as buildOperationSignatureMessage, sr as SetGrantActionInput, st as hasDerivedDocumentId, t as OPERATION_NAME_PATTERN, tn as AUTH_VERSION_UNSUPPORTED_REASON, tr as MoveGrantActionInput, tt as selectProtocolVersions, u as findOperationExampleOrThrow, un as getUnixTimestamp, ur as applyInitializeAuthAction, ut as verify, v as validateModules, vn as documentModelFileExtension, vr as initializeAuth, vt as documentModelSaveToFileHandle, w as documentModelOperationErrorReducer, wn as GrantSchema, wr as resolveSnapshotAuth, wt as writeFileBrowser, x as validateStateSchemaName, xn as documentModelInitialLocalState, xr as mentionedGroupIds, xt as isDocumentZip, y as validateOperationName, yn as documentModelGlobalState, yr as isAuthAction, yt as fetchFileBrowser, z as PEER_MANIFEST_FORMAT, zn as isPlainValue, zt as InvalidAuthVersionError } from "../index-D6833Siv.js";
3
- import { n as generateId, r as generateMock, t as deriveOperationId } from "../utils-BrKxCmKx.js";
4
- export { ACTION_SIGNATURE_V2_PREFIX, AUTH_ACTION_TYPES, AUTH_DENIED_BY_GRANT_REASON, AUTH_NO_GRANT_REASON, AUTH_VERSION_UNSUPPORTED_REASON, Action, ActionContext, type ActionErrorCallback, type ActionSignatureContext, ActionSigner, ActionSignerIdentity, type ActionSigningHandler, ActionSigningTarget, type ActionVerificationHandler, type Actions, type AddChangeLogItemAction, type AddChangeLogItemInput, AddChangeLogItemInputSchema, type AddModuleAction, type AddModuleInput, AddModuleInputSchema, type AddOperationAction, type AddOperationErrorAction, type AddOperationErrorInput, AddOperationErrorInputSchema, type AddOperationExampleAction, type AddOperationExampleInput, AddOperationExampleInputSchema, type AddOperationInput, AddOperationInputSchema, type AddRelationshipAction, type AddRelationshipActionInput, type AddStateExampleAction, type AddStateExampleInput, AddStateExampleInputSchema, AppActionSigner, type AssertIsDocumentOfType, type AssertIsStateOfType, AuthAction, AuthActionNotAllowedError, AuthAdministrationLockoutError, AuthAdministrationMissingError, AuthAlreadyInitializedError, AuthDecision, AuthEvaluation, AuthGroups, AuthInitializerNotCreatorError, AuthPolicyNotPreservedError, AuthRefusal, AuthRequest, AuthSubject, AuthVerb, type Author, AuthorSchema, BaseDocumentHeaderSchema, BaseDocumentStateSchema, BulkArchiveEntry, CanonicalJsonError, Capability, type CodeExample, CodeExampleSchema, Condition, ConditionContext, type ConfigEntry, ConfigEntrySchema, type ConfigEntryType, ConfigEntryTypeSchema, type CopyChildDocumentInput, type CopyChildDocumentSignal, type CreateChildDocumentInput, type CreateChildDocumentSignal, type CreateDocument, type CreateDocumentAction, type CreateDocumentActionInput, type CreateState, DEFAULT_SIGNATURE_POLICY, DOCUMENT_DELETED_REASON, DOCUMENT_SCOPE_ACTION_TYPES, type DeleteChangeLogItemAction, type DeleteChangeLogItemInput, DeleteChangeLogItemInputSchema, type DeleteChildDocumentInput, type DeleteChildDocumentSignal, type DeleteDocumentAction, type DeleteDocumentActionInput, type DeleteModuleAction, type DeleteModuleInput, DeleteModuleInputSchema, type DeleteOperationAction, type DeleteOperationErrorAction, type DeleteOperationErrorInput, DeleteOperationErrorInputSchema, type DeleteOperationExampleAction, type DeleteOperationExampleInput, DeleteOperationExampleInputSchema, type DeleteOperationInput, DeleteOperationInputSchema, type DeleteStateExampleAction, type DeleteStateExampleInput, DeleteStateExampleInputSchema, type DocumentAction, DocumentActionSchema, DocumentIdParams, type DocumentModelAction, type DocumentModelDocument, type DocumentModelDocumentModelModule, type DocumentModelGlobalState, DocumentModelGlobalStateSchema, type DocumentModelHeaderAction, type DocumentModelHeaderOperations, DocumentModelHeaderSchema, type DocumentModelInput, DocumentModelInputSchema, type DocumentModelLib, type DocumentModelLocalState, type DocumentModelModule, type DocumentModelModuleAction, type DocumentModelModuleOperations, type DocumentModelOperationAction, type DocumentModelOperationErrorAction, type DocumentModelOperationErrorOperations, type DocumentModelOperationExampleAction, type DocumentModelOperationExampleOperations, type DocumentModelOperationOperations, type DocumentModelPHState, DocumentModelPHStateSchema, DocumentModelSchema, type DocumentModelStateAction, type DocumentModelStateOperations, type DocumentModelUtils, type DocumentModelVersioningAction, type DocumentModelVersioningOperations, DocumentOperations, type DocumentOperationsIgnoreMap, type DocumentSpecification, DocumentSpecificationSchema, DowngradeNotSupportedError, type ENSInfo, type EditorDispatch, type EditorModule, type EditorProps, type Exact, FeatureCapability, type FileInput, FileSystemError, type GetDocumentOptions, Grant, GrantNotFoundError, GrantSchema, GroupPrincipalNotAllowedError, HASH_ALGORITHM_SHA1, HASH_ALGORITHM_SHA256, HASH_ALGORITHM_SHA512, HASH_ENCODING_BASE64, HASH_ENCODING_HEX, HashConfig, HashMismatchError, HoldReason, type IAction, type ID, type IDocument, type IOperation, type ISignal, type ISignalResult, type ISigner, type Incremental, InitializeAuthAction, InitializeAuthActionInput, InitializeAuthActionInputSchema, type InputMaybe, IntegrityIssueSubType, IntegrityIssueType, InvalidActionInputError, InvalidActionInputZodError, InvalidAuthVersionError, InvalidGrantError, type IsDocumentOfType, type IsStateOfType, type LoadFromFile, type LoadFromInput, MAX_AUTH_GRANTS, MAX_CAPABILITY_OPERATIONS, MAX_CONDITION_DEPTH, MAX_CONDITION_NODES, MAX_SUPPORTED_AUTH_VERSION, type MakeEmpty, type MakeMaybe, type MakeOptional, type Manifest, ManifestSchema, type MappedOperation, type Maybe, type MinimalBackupData, ModuleSchema, type ModuleSpecification, MoveGrantAction, MoveGrantActionInput, MoveGrantActionInputSchema, type MoveOperationAction, type MoveOperationInput, MoveOperationInputSchema, type Mutation, type MutationAddChangeLogItemInputArgs, type MutationAddModuleArgs, type MutationAddOperationArgs, type MutationAddOperationErrorArgs, type MutationAddOperationExampleArgs, type MutationAddStateExampleArgs, type MutationDeleteChangeLogItemInputArgs, type MutationDeleteModuleArgs, type MutationDeleteOperationArgs, type MutationDeleteOperationErrorArgs, type MutationDeleteOperationExampleArgs, type MutationDeleteStateExampleArgs, type MutationMoveOperationArgs, type MutationRedoArgs, type MutationReorderChangeLogItemsInputArgs, type MutationReorderModuleOperationsArgs, type MutationReorderModulesArgs, type MutationReorderOperationErrorsArgs, type MutationReorderOperationExamplesArgs, type MutationReorderStateExamplesArgs, type MutationSetAuthorNameArgs, type MutationSetAuthorWebsiteArgs, type MutationSetInitialStateArgs, type MutationSetModelDescriptionArgs, type MutationSetModelExtensionArgs, type MutationSetModelIdArgs, type MutationSetModelNameArgs, type MutationSetModuleDescriptionArgs, type MutationSetModuleNameArgs, type MutationSetNameArgs, type MutationSetOperationDescriptionArgs, type MutationSetOperationErrorCodeArgs, type MutationSetOperationErrorDescriptionArgs, type MutationSetOperationErrorNameArgs, type MutationSetOperationErrorTemplateArgs, type MutationSetOperationNameArgs, type MutationSetOperationReducerArgs, type MutationSetOperationSchemaArgs, type MutationSetOperationTemplateArgs, type MutationSetStateSchemaArgs, type MutationUndoArgs, type MutationUpdateChangeLogItemInputArgs, type MutationUpdateOperationExampleArgs, type MutationUpdateStateExampleArgs, type NOOPAction, OPERATION_NAME_PATTERN, Operand, Operation, OperationContext, OperationErrorSchema, type OperationErrorSpecification, type OperationIndex, OperationOutcome, OperationScopeSchema, type OperationSpecification, OperationSpecificationSchema, OperationWithContext, type OperationsByScope, PEER_CAPABILITIES, PEER_MANIFEST_FORMAT, PHAuthState, PHBaseState, PHDocument, PHDocumentHeader, PHDocumentMeta, PHDocumentSignatureInfo, PHDocumentState, PHGroupState, type PartialRecord, type PartialState, PeerCapability, PeerCapabilityFlags, PeerManifest, type PhAiToolAnnotations, type PhAiToolDescriptor, type PieceModule, PieceModuleSchema, PieceModulesSchema, type PowerhouseModule, PowerhouseModuleSchema, PowerhouseModulesSchema, Principal, ProtocolCapability, ProtocolVersions, type Publisher, PublisherSchema, PwaConfigSchema, type Query, RESERVED_OPERATION_NAMES, type Redo, type RedoAction, type RedoActionInput, RedoActionInputSchema, RedoActionSchema, RedoSchema, type Reducer, type ReducerOptions, type ReleaseNewVersionAction, RemoveGrantAction, RemoveGrantActionInput, RemoveGrantActionInputSchema, type RemoveRelationshipAction, type RemoveRelationshipActionInput, type ReorderChangeLogItemsAction, type ReorderChangeLogItemsInput, ReorderChangeLogItemsInputSchema, type ReorderModuleOperationsAction, type ReorderModuleOperationsInput, ReorderModuleOperationsInputSchema, type ReorderModulesAction, type ReorderModulesInput, ReorderModulesInputSchema, type ReorderOperationErrorsAction, type ReorderOperationErrorsInput, ReorderOperationErrorsInputSchema, type ReorderOperationExamplesAction, type ReorderOperationExamplesInput, ReorderOperationExamplesInputSchema, type ReorderStateExamplesAction, type ReorderStateExamplesInput, ReorderStateExamplesInputSchema, type ReplayDocumentOptions, ReservedOperationName, type RevisionsFilter, SIGNATURE_PROTOCOL, SIGNATURE_PROTOCOL_V2, type SaveToFile, type SaveToFileHandle, type Scalars, type SchemaNOOPAction, type SchemaRedoAction, type SchemaSetNameAction, type SchemaSetPreferredEditorAction, type SchemaUndoAction, type ScopeState, ScopeStateSchema, type SetAuthorNameAction, type SetAuthorNameInput, SetAuthorNameInputSchema, type SetAuthorWebsiteAction, type SetAuthorWebsiteInput, SetAuthorWebsiteInputSchema, SetGrantAction, SetGrantActionInput, SetGrantActionInputSchema, type SetInitialStateAction, type SetInitialStateInput, SetInitialStateInputSchema, type SetModelDescriptionAction, type SetModelDescriptionInput, SetModelDescriptionInputSchema, type SetModelExtensionAction, type SetModelExtensionInput, SetModelExtensionInputSchema, type SetModelIdAction, type SetModelIdInput, SetModelIdInputSchema, type SetModelNameAction, type SetModelNameInput, SetModelNameInputSchema, type SetModuleDescriptionAction, type SetModuleDescriptionInput, SetModuleDescriptionInputSchema, type SetModuleNameAction, type SetModuleNameInput, SetModuleNameInputSchema, type SetNameAction, type SetNameActionInput, SetNameActionInputSchema, SetNameActionSchema, type SetNameOperation, type SetOperationDescriptionAction, type SetOperationDescriptionInput, SetOperationDescriptionInputSchema, type SetOperationErrorCodeAction, type SetOperationErrorCodeInput, SetOperationErrorCodeInputSchema, type SetOperationErrorDescriptionAction, type SetOperationErrorDescriptionInput, SetOperationErrorDescriptionInputSchema, type SetOperationErrorNameAction, type SetOperationErrorNameInput, SetOperationErrorNameInputSchema, type SetOperationErrorTemplateAction, type SetOperationErrorTemplateInput, SetOperationErrorTemplateInputSchema, type SetOperationNameAction, type SetOperationNameInput, SetOperationNameInputSchema, type SetOperationReducerAction, type SetOperationReducerInput, SetOperationReducerInputSchema, type SetOperationSchemaAction, type SetOperationSchemaInput, SetOperationSchemaInputSchema, type SetOperationScopeAction, type SetOperationScopeInput, SetOperationScopeInputSchema, type SetOperationTemplateAction, type SetOperationTemplateInput, SetOperationTemplateInputSchema, type SetPreferredEditorAction, type SetPreferredEditorActionInput, SetPreferredEditorActionInputSchema, SetPreferredEditorActionSchema, type SetPreferredEditorOperation, type SetStateSchemaAction, type SetStateSchemaInput, SetStateSchemaInputSchema, type Set_Name, Set_NameSchema, type Set_PreferredEditor, Set_PreferredEditorSchema, type Signal, type SignalDispatch, type SignalResult, type SignalResults, type SignalType, Signature, SignaturePolicy, type SignatureVerificationHandler, type SigningParameters, type SkipHeaderOperationIndex, type SkipHeaderOperations, type State, type StateReducer, StateSchema, type SubgraphModule, Supports, TransportAction, TransportActionContext, TransportSigner, type Undo, type UndoAction, type UndoActionInput, UndoActionInputSchema, UndoActionSchema, type UndoRedoAction, UndoSchema, UnsupportedDocumentModelVersionError, type UpdateChangeLogItemAction, type UpdateChangeLogItemInput, UpdateChangeLogItemInputSchema, type UpdateOperationExampleAction, type UpdateOperationExampleInput, UpdateOperationExampleInputSchema, type UpdateRelationshipAction, type UpdateRelationshipActionInput, type UpdateStateExampleAction, type UpdateStateExampleInput, UpdateStateExampleInputSchema, type UpgradeDocumentAction, type UpgradeDocumentActionInput, UpgradeManifest, UpgradeReducer, UpgradeTransition, type User, UserActionSigner, type ValidationError, VersionedReducers, VersionedReplayConfig, ab2hex, actionContext, actionFromAction, actionPreimageV2, actionSigner, actionSignerIdentity, actionSigningTarget, actions, addChangeLogItem, addModule, addOperation, addOperationError, addOperationExample, addStateExample, addUndo, appendWithoutApplying, applyAuthAction, applyDeleteDocumentAction, applyInitializeAuthAction, applyMoveGrantAction, applyRemoveGrantAction, applySetGrantAction, applyUpgradeDocumentAction, assertAuthAdministrationRetained, assertAuthPreservedOnDuplicate, assertAuthScopeActionAllowed, assertIsDocumentModelDocument, assertIsDocumentModelState, assertModuleIdUnique, assertOperationErrorIdUnique, assertOperationExampleIdUnique, assertOperationIdUnique, assertValidGrant, assertValidGrantUpsert, assertValidInitialGrants, attachBranch, backfillAuthState, base58Decode, base64UrlToBytes, baseActions, baseCreateDocument, baseLoadFromInput, baseLoadFromInputVersioned, baseReducer, baseReducerVersion, baseSaveToFileHandle, buildOperationSignature, buildOperationSignatureMessage, buildOperationSignatureParams, buildSignedAction, bytesToBase64Url, canonicalJson, checkCleanedOperationsIntegrity, checkOperationsIntegrity, computeUpgradeTransitions, coversLocal, createAction, createAuthState, createBaseState, createCopyHeader, createDocumentState, createGlobalState, createLocalState, createMinimalZip, createPresignedHeader, createReducer, createSignedHeader, createSignedHeaderForSigner, createState, createVerificationSigner, createZip, decide, defaultAuthState, defaultBaseState, defaultDocumentState, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, deleteChangeLogItem, deleteModule, deleteOperation, deleteOperationError, deleteOperationExample, deleteStateExample, deriveDocumentId, deriveOperationId, deserializeSignature, diffOperations, documentModelActions, documentModelDocumentType, documentModelFileExtension, documentModelGlobalState, documentModelHeaderReducer, documentModelInitialGlobalState, documentModelInitialLocalState, documentModelLoadFromInput, documentModelModuleReducer, documentModelOperationErrorReducer, documentModelOperationExampleReducer, documentModelOperationReducer, documentModelReducer, documentModelSaveToFileHandle, documentModelStateReducer, documentModelStateSchemaReducer, documentModelVersioningReducer, evaluate, evaluateCondition, evaluateGrantStack, evaluateGrants, fetchFileBrowser, filterDocumentOperationsResultingState, filterDuplicatedOperations, findModuleOrThrow, findOperationErrorOrThrow, findOperationExampleOrThrow, findOperationOrThrow, garbageCollect, garbageCollectDocumentOperations, garbageCollectV2, generateId, generateMock, getAllOperationNames, getDocumentLastModified, getFileBrowser, getUnixTimestamp, grantProblem, groupDocumentType, groupMembershipActionTypes, groupOperationsByScope, hasDerivedDocumentId, hashActionV2, hashBrowser, hashDocumentStateForScope, hex2ab, holdReason, initializeAuth, isAuthAction, isDefinedNonNullAny, isDenied, isDerivedDocumentId, isDocumentAction, isDocumentCreator, isDocumentModelDocument, isDocumentModelState, isDocumentZip, isNoopOperation, isOlderManifest, isPlainValue, isReservedOperationName, isSignaturePolicy, isUndo, isUndoRedo, isV2ActionHash, isValidOperationNameFormat, legacySupports, localPeerManifest, localSupports, manifestRevision, mapSkippedOperations, mapSkippedOperationsV2, mentionedGroupIds, merge, mergePeerCapabilities, moveGrant, moveOperation, nextSkipNumber, noop, normalizeDocumentModelVersion, operationExampleCreators, operationFromAction, operationFromOperation, operationOutcome, operationWithContext, operationsAreEqual, parseBulkArchive, parseResultingState, peerSupports, precedes, prepareOperations, processUndoRedo, protocolVersionsFor, readFileBrowser, readOnly, readPeerManifest, redo, redoOperation, referencedGroupIds, releaseNewVersion, removeExistingOperations, removeGrant, reorderChangeLogItems, reorderModuleOperations, reorderModules, reorderOperationErrors, reorderOperationExamples, reorderStateExamples, replayDocument, replayDocumentVersioned, replayOperations, requestedSignaturePolicy, reshuffleByTimestamp, reshuffleByTimestampAndIndex, resolveSnapshotAuth, selectProtocolVersions, serializeSignature, setAuthorName, setAuthorWebsite, setGrant, setInitialState, setModelDescription, setModelExtension, setModelId, setModelName, setModuleDescription, setModuleName, setName, setNameOperation, setOperationDescription, setOperationErrorCode, setOperationErrorDescription, setOperationErrorName, setOperationErrorTemplate, setOperationName, setOperationReducer, setOperationSchema, setOperationScope, setOperationTemplate, setPreferredEditor, setPreferredEditorOperation, setStateSchema, sign, signActionV2, signaturePolicyOf, skipHeaderOperations, sortMappedOperations, sortOperations, split, targetDocumentId, toTransportAction, undo, undoOperation, undoOperationV2, updateChangeLogItem, updateDocument, updateHeaderRevision, updateOperationExample, updateStateExample, v2RequiredProtocolVersions, v2TupleProblem, validateHeader, validateInitialState, validateModule, validateModuleOperation, validateModules, validateOperationName, validateOperations, validateStateSchemaName, verify, verifyOperationSignature, withProtocolVersions, withSignaturePolicy, writeFileBrowser, zipEntries };
1
+ import { $_ as setOperationDescription, $a as SignalType, $c as ModuleSchema, $d as UndoOperationRefusedError, $f as GraphQLDirectiveDefinitionNode, $g as canonicalJson, $h as grantProblem, $i as SetAuthorNameInput, $l as UndoSchema, $m as createdCapabilities, $n as MakeEmpty, $p as ab2hex, $r as MutationUpdateStateExampleArgs, $s as assertOperationErrorIdUnique, $t as DeleteOperationInput, $u as CreateProtocolVersionsOptions, $v as reshuffleByTimestampAndIndex, $y as setNameOperation, A_ as operationExampleCreators, Aa as SetOperationNameInput, Ac as UndoRedoBatch, Ad as replayDocumentVersioned, Af as DefinitionDiagnostic, Ag as assertAuthScopeActionAllowed, Ah as localPeerManifest, Ai as ReorderModulesAction, Al as SetNameActionInputSchema, Am as RULE_EXEMPT_SCOPES, An as DocumentOperationsIgnoreMap, Ap as NamedGraphQLTypeDefinition, Ar as MutationSetAuthorNameArgs, At as ConfigEntry, Au as undoRedoActions, Av as diffOperations, Ay as DocumentIdParams, B_ as reorderOperationExamples, Ba as SetPreferredEditorActionInput, Bc as ConfigEntrySchema, Bd as AuthAlreadyInitializedError, Bf as DirectiveUseDefinition, Bg as setGrant, Bh as GroupPrincipalNotAllowedError, Bi as RetractActionInput, Bl as SetOperationScopeInputSchema, Bm as TieOrderValues, Bn as IAction, Bp as ScalarTypeReferenceDefinition, Br as MutationSetOperationDescriptionArgs, Bt as DeleteChangeLogItemAction, Bu as documentModelVersioningReducer, Bv as isUndoRedo, By as signaturePolicyOf, C_ as deleteOperation, Ca as SetOperationErrorDescriptionAction, Cc as compareActionIds, Cd as isDocumentZip, Cf as CatalogScalarName, Cg as SetGrantActionInputSchema, Ch as ProtocolSelectionRule, Ci as ReleaseNewVersionAction, Cl as SetInitialStateInputSchema, Cm as DerivationModel, Cn as DocumentModelOperationOperations, Cp as InterfaceTypeDefinition, Cr as MutationRedoArgs, Ct as AddRelationshipActionInput, Cu as undoTarget, Cv as appendRows, Cy as defaultAuthState, D_ as documentModelActions, Da as SetOperationErrorTemplateAction, Dc as legacyIdOrder, Dd as zipEntries, Df as DefinitionCheckReport, Dg as applyRemoveGrantAction, Dh as holdReason, Di as ReorderChangeLogItemsInput, Dl as SetModelNameInputSchema, Dm as GatingFlagValues, Dn as DocumentModelUtils, Dp as ListTypeReferenceDefinition, Dr as MutationReorderOperationErrorsArgs, Dt as AssertIsStateOfType, Du as serializeByKey, Dv as baseCreateDocument, Dy as defaultLocalState, E_ as deleteStateExample, Ea as SetOperationErrorNameInput, Ec as idOrderFor, Ed as writeFileBrowser, Ef as DefinitionCheckProfile, Eg as applyMoveGrantAction, Eh as coversLocal, Ei as ReorderChangeLogItemsAction, El as SetModelIdInputSchema, Em as GatingFlag, En as DocumentModelStateOperations, Ep as JsonValue, Er as MutationReorderModulesArgs, Et as AssertIsDocumentOfType, Eu as UndoRedoTargets, Ev as attachBranch, Ey as defaultGlobalState, F_ as releaseNewVersion, Fa as SetOperationScopeAction, Fc as AddOperationExampleInputSchema, Fd as applyUpgradeDocumentAction, Ff as DefinitionPath, Fg as isDocumentCreator, Fh as readPeerManifest, Fi as ReorderOperationExamplesInput, Fl as SetOperationErrorNameInputSchema, Fm as SkipMeaning, Fn as EditorProps, Fp as PowerhouseScalarName, Fr as MutationSetModelIdArgs, Ft as CreateChildDocumentSignal, Fu as documentModelOperationExampleReducer, Fv as getDocumentLastModified, Fy as deriveDocumentId, G_ as setInitialState, Ga as SetStateSchemaInput, Gc as DeleteOperationExampleInputSchema, Gd as GrantNotFoundError, Gf as DocumentScalarReferenceDefinition, Gg as ACTION_SIGNATURE_V2_PREFIX, Gh as MAX_CONDITION_NODES, Gi as SchemaNOOPAction, Gl as SetSlugActionSchema, Gm as appliesRewind, Gn as ISignalResult, Gp as StoredScalarDefinition, Gr as MutationSetOperationNameArgs, Gt as DeleteDocumentActionInput, Gu as updateDocument, Gv as parseResultingState, Gy as sortOperations, H_ as retract, Ha as SetSlugAction, Hc as DeleteChangeLogItemInputSchema, Hd as AuthPolicyNotPreservedError, Hf as DocumentModelModuleDefinition, Hg as TransportActionContext, Hh as MAX_AUTH_GRANTS, Hi as SaveToFile, Hl as SetPreferredEditorActionInputSchema, Hm as UndoModelValues, Hn as IDocument, Hp as SchemaFirstGraphQLDocumentCompatibility, Hr as MutationSetOperationErrorDescriptionArgs, Ht as DeleteChildDocumentInput, Hu as createReducer, Hv as mapSkippedOperationsV2, Hy as garbageCollect, I_ as reorderChangeLogItems, Ia as SetOperationScopeInput, Ic as AddOperationInputSchema, Id as computeUpgradeTransitions, If as DefinitionRef, Ig as mentionedGroupIds, Ih as selectProtocolVersions, Ii as ReorderStateExamplesAction, Il as SetOperationErrorTemplateInputSchema, Im as SkipMeaningValues, In as Exact, Ip as ResolverCoordinateDefinition, Ir as MutationSetModelNameArgs, It as CreateDocument, Iu as documentModelOperationReducer, Iv as groupOperationsByScope, Iy as isDerivedDocumentId, J_ as setModelId, Ja as Set_Slug, Jc as DocumentActionSchema, Jd as InvalidActionInputZodError, Jf as EnumValueDefinition, Jg as CanonicalJsonError, Jh as assertValidGrantUpsert, Ji as SchemaSetPreferredEditorAction, Jl as Set_PreferredEditorSchema, Jm as baseReducerVersion, Jn as InputMaybe, Jp as SubgraphEntryAccess, Jr as MutationSetOperationTemplateArgs, Jt as DeleteOperationAction, Ju as PurgeMarkerOperation, Jv as readOnly, Jy as OperationContext, K_ as setModelDescription, Ka as Set_Name, Kc as DeleteOperationInputSchema, Kd as HashMismatchError, Kf as EmptyLocalStateDefinition, Kg as ActionSignerIdentity, Kh as assertAuthAdministrationRetained, Ki as SchemaRedoAction, Kl as SetStateSchemaInputSchema, Km as assertNever, Kn as ISigner, Kp as SubgraphDefinition, Kr as MutationSetOperationReducerArgs, Kt as DeleteModuleAction, Ku as stateReducerOf, Kv as precedes, Ky as DocumentOperations, L_ as reorderModuleOperations, La as SetOperationTemplateAction, Lc as AddStateExampleInputSchema, Ld as latestVersionOf, Lf as DefinitionRelatedLocation, Lg as moveGrant, Lh as AuthAdministrationLockoutError, Li as ReorderStateExamplesInput, Ll as SetOperationNameInputSchema, Lm as SynthesizedIdForm, Ln as FileInput, Lp as ScalarGraphQLProfile, Lr as MutationSetModuleDescriptionArgs, Lt as CreateDocumentAction, Lu as documentModelReducer, Lv as hashDocumentStateForScope, Ly as isSignaturePolicy, M_ as operationFromOperation, Ma as SetOperationReducerInput, Mc as AddChangeLogItemInputSchema, Md as UpgradeReducer, Mf as DefinitionDiagnosticSeverity, Mg as evaluate, Mh as manifestRevision, Mi as ReorderOperationErrorsAction, Ml as SetOperationDescriptionInputSchema, Mm as ReducerContractValues, Mn as ENSInfo, Mp as NonEmptyStateDefinition, Mr as MutationSetInitialStateArgs, Mt as CopyChildDocumentInput, Mu as documentModelHeaderReducer, Mv as filterDuplicatedOperations, My as SIGNATURE_PROTOCOL, N_ as operationWithContext, Na as SetOperationSchemaAction, Nc as AddModuleInputSchema, Nd as UpgradeTransition, Nf as DefinitionExample, Ng as initializeAuth, Nh as mergePeerCapabilities, Ni as ReorderOperationErrorsInput, Nl as SetOperationErrorCodeInputSchema, Nm as ReplayHash, Nn as EditorDispatch, Np as ObjectTypeDefinition, Nr as MutationSetModelDescriptionArgs, Nt as CopyChildDocumentSignal, Nu as documentModelModuleReducer, Nv as garbageCollectDocumentOperations, Ny as SIGNATURE_PROTOCOL_V2, O_ as moveOperation, Oa as SetOperationErrorTemplateInput, Oc as synthesizedActionId, Od as VersionedReducers, Of as DefinitionCheckSkipReason, Og as applySetGrantAction, Oh as isOlderManifest, Oi as ReorderModuleOperationsAction, Ol as SetModuleDescriptionInputSchema, Om as ProtocolRefusal, On as DocumentModelVersioningAction, Op as LocationFreeGraphQLDocumentNode, Or as MutationReorderOperationExamplesArgs, Ot as Author, Ou as undoCapabilitiesOf, Ov as checkCleanedOperationsIntegrity, Oy as defaultPHState, P_ as redo, Pa as SetOperationSchemaInput, Pc as AddOperationErrorInputSchema, Pd as applyDeleteDocumentAction, Pf as DefinitionKind, Pg as isAuthAction, Ph as peerSupports, Pi as ReorderOperationExamplesAction, Pl as SetOperationErrorDescriptionInputSchema, Pm as ReplayHashValues, Pn as EditorModule, Pp as PackageScalarReferenceDefinition, Pr as MutationSetModelExtensionArgs, Pt as CreateChildDocumentInput, Pu as documentModelOperationErrorReducer, Pv as garbageCollectV2, Py as SignaturePolicy, Q_ as setName, Qa as SignalResults, Qc as ManifestSchema, Qd as SubmittedUndoRefusedError, Qf as GraphQLConstValueNode, Qg as actionSigningTarget, Qh as evaluateGrants, Qi as SetAuthorNameAction, Ql as UndoActionSchema, Qm as conflictWindowMovesEveryRow, Qn as LoadFromInput, Qp as UnionTypeDefinition, Qr as MutationUpdateOperationExampleArgs, Qs as assertModuleIdUnique, Qt as DeleteOperationExampleInput, Qu as purgedProtocolVersions, Qv as reshuffleByTimestamp, Qy as redoOperation, R_ as reorderModules, Ra as SetOperationTemplateInput, Rc as AuthorSchema, Rd as withProtocolVersions, Rf as DefinitionSource, Rg as removeGrant, Rh as AuthAdministrationMissingError, Ri as ReplayDocumentOptions, Rl as SetOperationReducerInputSchema, Rm as SynthesizedIdFormValues, Rn as GetDocumentOptions, Rp as ScalarName, Rr as MutationSetModuleNameArgs, Rt as CreateDocumentActionInput, Ru as documentModelStateReducer, Rv as isNoopOperation, Ry as protocolVersionsFor, S_ as deleteModule, Sa as SetOperationErrorCodeInput, Sc as UNDO_GROUP_MARK, Sd as getFileBrowser, Sf as upgradeDocumentAction, Sg as SetGrantActionInput, Sh as ProtocolCapability, Si as RejectedAction, Sl as SetAuthorWebsiteInputSchema, Sm as CAPABILITY_DECISIONS, Sn as DocumentModelOperationExampleOperations, So as ValidationError, Sp as InputTypeDefinition, Sr as MutationMoveOperationArgs, St as AddRelationshipAction, Su as undoRedoTargetsOf, Sv as addUndo, Sy as createState, T_ as deleteOperationExample, Ta as SetOperationErrorNameAction, Tc as groupedActionId, Td as readFileBrowser, Tf as CompiledErrorDefinition, Tg as applyInitializeAuthAction, Th as capSelection, Ti as RemoveRelationshipActionInput, Tl as SetModelExtensionInputSchema, Tm as FLAGS_FOR_EVERY_VERSION, Tn as DocumentModelStateAction, Tp as JsonPrimitive, Tr as MutationReorderModuleOperationsArgs, Tt as AddStateExampleInput, Tu as UndoRedoAvailability, Tv as assertReplayIndices, Ty as defaultDocumentState, U_ as setAuthorName, Ua as SetSlugActionInput, Uc as DeleteModuleInputSchema, Ud as DowngradeNotSupportedError, Uf as DocumentModelOperationDefinition, Ug as TransportSigner, Uh as MAX_CAPABILITY_OPERATIONS, Ui as SaveToFileHandle, Ul as SetPreferredEditorActionSchema, Um as acceptsSubmittedRetract, Un as IOperation, Up as Sha256Digest, Ur as MutationSetOperationErrorNameArgs, Ut as DeleteChildDocumentSignal, Uu as processUndoRedo, Uv as merge, Uy as isDocumentAction, V_ as reorderStateExamples, Va as SetPreferredEditorOperation, Vc as ConfigEntryTypeSchema, Vd as AuthInitializerNotCreatorError, Vf as DocumentModelDefinition, Vg as TransportAction, Vh as InvalidGrantError, Vi as RevisionsFilter, Vl as SetOperationTemplateInputSchema, Vm as UndoModel, Vn as ID, Vp as ScalarValidationProfile, Vr as MutationSetOperationErrorCodeArgs, Vt as DeleteChangeLogItemInput, Vu as baseReducer, Vv as mapSkippedOperations, Vy as v2RequiredProtocolVersions, W_ as setAuthorWebsite, Wa as SetStateSchemaAction, Wc as DeleteOperationErrorInputSchema, Wd as FileSystemError, Wf as DocumentModelSpecificationDefinition, Wg as toTransportAction, Wh as MAX_CONDITION_DEPTH, Wi as Scalars, Wl as SetSlugActionInputSchema, Wm as acceptsSubmittedUndoRedo, Wn as ISignal, Wp as StateDefinition, Wr as MutationSetOperationErrorTemplateArgs, Wt as DeleteDocumentAction, Wu as replayOperations, Wv as operationsAreEqual, Wy as nextSkipNumber, X_ as setModuleDescription, Xa as SignalDispatch, Xc as DocumentModelInputSchema, Xd as MissingStateReducerError, Xf as GraphQLArgumentNode, Xg as actionPreimageV2, Xh as evaluateCondition, Xi as SchemaUndoAction, Xl as StateSchema, Xm as capabilitiesFor, Xn as IsStateOfType, Xp as SubgraphScalarReferenceDefinition, Xr as MutationUndoArgs, Xs as RESERVED_OPERATION_NAMES, Xt as DeleteOperationErrorInput, Xu as purgeDocumentAction, Xv as replayDocument, Xy as OperationWithContext, Y_ as setModelName, Ya as Signal, Yc as DocumentModelGlobalStateSchema, Yd as InvalidAuthVersionError, Yf as FieldDefinition, Yg as DOCUMENT_SCOPE_ACTION_TYPES, Yh as assertValidInitialGrants, Yi as SchemaSetSlugAction, Yl as Set_SlugSchema, Ym as baseReducerVersionsFor, Yn as IsDocumentOfType, Yp as SubgraphEntryDefinition, Yr as MutationSetStateSchemaArgs, Ys as OPERATION_NAME_PATTERN, Yt as DeleteOperationErrorAction, Yu as isPurgeMarker, Yv as removeExistingOperations, Yy as OperationOutcome, Z_ as setModuleName, Za as SignalResult, Zc as DocumentSpecificationSchema, Zd as NoUndoRedoTargetError, Zf as GraphQLBuiltInScalarName, Zg as actionSignerIdentity, Zh as evaluateGrantStack, Zi as ScopeState, Zl as UndoActionInputSchema, Zm as capabilitiesOf, Zn as LoadFromFile, Zp as TypeReferenceDefinition, Zr as MutationUpdateChangeLogItemInputArgs, Zs as ReservedOperationName, Zt as DeleteOperationExampleAction, Zu as purgeMarkerOperation, Zv as requireStateReducer, Zy as operationOutcome, __ as baseActions, _a as SetNameActionInput, _c as generateId, _d as createMinimalZip, _f as isDenied, _g as MoveGrantActionInputSchema, _h as PEER_CAPABILITIES, _i as Redo, _l as ReorderOperationExamplesInputSchema, _m as documentModelInitialGlobalState, _n as DocumentModelModuleOperations, _o as UpdateStateExampleAction, _p as GraphQLTypeNode, _r as MutationDeleteModuleArgs, _t as AddOperationErrorAction, _u as reduceOne, _v as IntegrityIssueSubType, _y as createAuthState, a_ as Action, aa as SetModelDescriptionInput, ab as AppActionSigner, ac as findOperationOrThrow, ad as createPresignedHeader, af as BaseDocumentStateSchema, ag as AuthEvaluation, ah as optionalBaseReducerCapabilities, ai as PartialRecord, al as PieceModulesSchema, am as getUnixTimestamp, an as DocumentDispatch, ao as StateReducer, ap as GraphQLInputValueDefinitionNode, ar as MinimalBackupData, au as OnThrow, av as setOperationReducer, ay as withSignaturePolicy, b_ as createAction, ba as SetOperationDescriptionInput, bc as IdOrder, bd as documentModelSaveToFileHandle, bf as creationState, bg as RemoveGrantActionInputSchema, bh as PeerCapabilityFlags, bi as Reducer, bl as ScopeStateSchema, bm as BaseReducerCapabilities, bn as DocumentModelOperationErrorOperations, bo as UpgradeDocumentActionInput, bp as GraphQLUnionTypeDefinitionNode, br as MutationDeleteOperationExampleArgs, bt as AddOperationExampleInput, bu as retractionTarget, bv as PHDocumentHeader, by as createGlobalState, c_ as actionFromAction, ca as SetModelIdAction, cb as Signature, cc as isValidOperationNameFormat, cd as createVerificationSigner, cf as DocumentModelSchema, cg as AuthSubject, ch as skipMayUndo, ci as PhAiToolAnnotations, cl as PublisherSchema, cm as CreateBaseReducerLogger, cn as DocumentModelDocumentModelModule, co as UndoAction, cp as GraphQLNameNode, cr as MoveOperationInput, ct as ActionSignatureContext, cu as TailBase, cv as setOperationTemplate, cy as Condition, d_ as addChangeLogItem, da as SetModelNameInput, db as serializeSignature, dc as validateModuleOperation, dd as validateHeader, df as isDocumentModelDocument, dg as InitializeAuthAction, dh as usesRetractionRule, di as PieceModule, dl as RedoActionSchema, dm as HASH_ALGORITHM_SHA256, dn as DocumentModelHeaderOperations, do as UpdateChangeLogItemAction, dp as GraphQLObjectFieldNode, dr as MutationAddModuleArgs, dt as Actions, du as advanceUndoTargets, dv as setStateSchema, dy as PHAuthState, e_ as hashActionV2, ea as SetAuthorWebsiteAction, eb as setPreferredEditorOperation, ec as assertOperationExampleIdUnique, ed as NewDocumentHeaderOptions, ef as UnsupportedDocumentModelVersionError, eg as isPlainValue, eh as derivesByRule, ei as NOOPAction, el as MoveOperationInputSchema, em as base58Decode, en as DeleteStateExampleAction, eo as SignatureVerificationHandler, ep as GraphQLDirectiveNode, er as MakeMaybe, eu as UpdateChangeLogItemInputSchema, ev as setOperationErrorCode, ey as skipHeaderOperations, f_ as addModule, fa as SetModuleDescriptionAction, fc as validateModules, fd as verify, ff as isDocumentModelState, fg as InitializeAuthActionInput, fh as DOCUMENT_PURGE_PROTOCOL, fi as PowerhouseModule, fl as RedoSchema, fm as HASH_ALGORITHM_SHA512, fn as DocumentModelInput, fo as UpdateChangeLogItemInput, fp as GraphQLObjectTypeDefinitionNode, fr as MutationAddOperationArgs, ft as AddChangeLogItemAction, fu as appliedOperations, fv as undo, fy as PHBaseState, g_ as addStateExample, ga as SetNameAction, gc as deriveOperationId, gd as baseSaveToFileHandle, gf as DOCUMENT_DELETED_REASON, gg as MoveGrantActionInput, gh as MARKER_REFUSAL_FEATURE, gi as Query, gl as ReorderOperationErrorsInputSchema, gm as documentModelGlobalState, gn as DocumentModelModuleAction, go as UpdateRelationshipActionInput, gp as GraphQLStringValueNode, gr as MutationDeleteChangeLogItemInputArgs, gt as AddOperationAction, gu as redoTarget, gv as verifyOperationSignature, gy as backfillAuthState, h_ as addOperationExample, ha as SetModuleNameInput, hc as validateStateSchemaName, hd as baseLoadFromInputVersioned, hf as AUTH_VERSION_UNSUPPORTED_REASON, hg as MoveGrantAction, hh as HoldReason, hi as PurgeDocumentActionInput, hl as ReorderModulesInputSchema, hm as documentModelFileExtension, hn as DocumentModelModule, ho as UpdateRelationshipAction, hp as GraphQLSchemaDefinitionNode, hr as MutationAddStateExampleArgs, ht as AddModuleInput, hu as positionalOperations, hv as updateStateExample, hy as Principal, i_ as v2TupleProblem, ia as SetModelDescriptionAction, ib as ActionSigner, ic as findOperationExampleOrThrow, id as createCopyHeader, if as BaseDocumentHeaderSchema, ig as AuthDecision, ih as needsTaggedModel, ii as OperationsByScope, il as PieceModuleSchema, im as bytesToBase64Url, in as DocumentAction, io as State, ip as GraphQLInputObjectTypeDefinitionNode, ir as Maybe, iu as isDefinedNonNullAny, iv as setOperationName, iy as withScopeRevisions, j_ as operationFromAction, ja as SetOperationReducerAction, jc as undoRedoBatch, jd as UpgradeManifest, jf as DefinitionDiagnosticPhase, jg as decide, jh as localSupports, ji as ReorderModulesInput, jl as SetNameActionSchema, jm as ReducerContract, jn as DocumentSpecification, jp as NamedTypeReferenceDefinition, jr as MutationSetAuthorWebsiteArgs, jt as ConfigEntryType, ju as undoRedoAvailabilityOf, jv as filterDocumentOperationsResultingState, jy as ProtocolVersions, k_ as noop, ka as SetOperationNameAction, kc as undoGroupOfId, kd as VersionedReplayConfig, kf as DefinitionCompatibilitySelection, kg as assertAuthPreservedOnDuplicate, kh as legacySupports, ki as ReorderModuleOperationsInput, kl as SetModuleNameInputSchema, km as ProtocolSupport, kn as DocumentModelVersioningOperations, kp as MaterializedStateDefinition, kr as MutationReorderStateExamplesArgs, kt as CodeExample, ku as undoNeedsTargets, kv as checkOperationsIntegrity, ky as DEFAULT_SIGNATURE_POLICY, l_ as actionSigner, la as SetModelIdInput, lb as UserActionSigner, lc as validateInitialState, ld as hasDerivedDocumentId, lf as assertIsDocumentModelDocument, lg as AuthVerb, lh as sortsJobsCanonically, li as PhAiToolContext, ll as PwaConfigSchema, lm as fitCreateBaseReducer, ln as DocumentModelGlobalState, lo as UndoActionInput, lp as GraphQLNamedTypeNode, lr as Mutation, lt as ActionSigningHandler, lu as UndoTargetsBase, lv as setPreferredEditor, ly as Grant, m_ as addOperationError, ma as SetModuleNameAction, mc as validateOperations, md as baseLoadFromInput, mf as AUTH_NO_GRANT_REASON, mg as MAX_SUPPORTED_AUTH_VERSION, mh as FeatureCapability, mi as PurgeDocumentAction, ml as ReorderModuleOperationsInputSchema, mm as HASH_ENCODING_HEX, mn as DocumentModelLocalState, mo as UpdateOperationExampleInput, mp as GraphQLScalarTypeDefinitionNode, mr as MutationAddOperationExampleArgs, mt as AddModuleAction, mu as deriveScopeVersioned, mv as updateOperationExample, my as PHGroupState, n_ as signActionV2, na as SetInitialStateAction, nb as undoOperation, nc as findModuleOrThrow, nd as headNewDocument, nf as groupDocumentType, ng as AUTH_ACTION_TYPES, nh as isBaseReducerVersion, ni as OperationIndex, nl as OperationScopeSchema, nm as buildOperationSignatureMessage, nn as DeriveScope, no as SkipHeaderOperationIndex, np as GraphQLEnumValueDefinitionNode, nr as Manifest, nu as UpdateStateExampleInputSchema, nv as setOperationErrorName, ny as split, o_ as ActionContext, oa as SetModelExtensionAction, ob as HashConfig, oc as getAllOperationNames, od as createSignedHeader, of as DocumentModelHeaderSchema, og as AuthRefusal, oh as refusalFor, oi as PartialState, ol as PowerhouseModuleSchema, om as hashBrowser, on as DocumentModelAction, oo as SubgraphModule, op as GraphQLInterfaceTypeDefinitionNode, or as ModuleSpecification, ou as ReducerFor, ov as setOperationSchema, oy as AuthGroups, p_ as addOperation, pa as SetModuleDescriptionInput, pc as validateOperationName, pd as BulkArchiveEntry, pf as AUTH_DENIED_BY_GRANT_REASON, pg as InitializeAuthActionInputSchema, ph as FLAGLESS_BASE_REDUCER_VERSION, pi as Publisher, pl as ReorderChangeLogItemsInputSchema, pm as HASH_ENCODING_BASE64, pn as DocumentModelLib, po as UpdateOperationExampleAction, pp as GraphQLOperationTypeDefinitionNode, pr as MutationAddOperationErrorArgs, pt as AddChangeLogItemInput, pu as deriveScope, pv as updateChangeLogItem, py as PHDocumentState, q_ as setModelExtension, qa as Set_PreferredEditor, qc as DeleteStateExampleInputSchema, qd as InvalidActionInputError, qf as EnumTypeDefinition, qg as ActionSigningTarget, qh as assertValidGrant, qi as SchemaSetNameAction, ql as Set_NameSchema, qm as baseReducerCapabilities, qn as Incremental, qp as SubgraphDefinitionBase, qr as MutationSetOperationSchemaArgs, qt as DeleteModuleInput, qu as PURGE_DOCUMENT, qv as prepareOperations, qy as Operation, r_ as targetDocumentId, ra as SetInitialStateInput, rb as undoOperationV2, rc as findOperationErrorOrThrow, rd as selectDocumentModelModule, rf as groupMembershipActionTypes, rg as AuthAction, rh as modelRunsBaseReducer, ri as OperationSpecification, rl as OperationSpecificationSchema, rm as buildOperationSignatureParams, rn as DispatchOutcome, ro as SkipHeaderOperations, rp as GraphQLFieldDefinitionNode, rr as MappedOperation, ru as definedNonNullAnySchema, rv as setOperationErrorTemplate, ry as updateHeaderRevision, s_ as actionContext, sa as SetModelExtensionInput, sb as PHDocumentSignatureInfo, sc as isReservedOperationName, sd as createSignedHeaderForSigner, sf as DocumentModelPHStateSchema, sg as AuthRequest, sh as resolveBaseReducerVersion, si as PhAiChatImage, sl as PowerhouseModulesSchema, sm as hex2ab, sn as DocumentModelDocument, so as Undo, sp as GraphQLListTypeNode, sr as MoveOperationAction, st as ActionErrorCallback, su as ScopeVersions, sv as setOperationScope, sy as Capability, t_ as isV2ActionHash, ta as SetAuthorWebsiteInput, tb as setSlugOperation, tc as assertOperationIdUnique, td as createVersionsOf, tf as documentModelDocumentType, tg as referencedGroupIds, th as documentDerivesByRule, ti as OperationErrorSpecification, tl as OperationErrorSchema, tm as base64UrlToBytes, tn as DeleteStateExampleInput, to as SigningParameters, tp as GraphQLEnumTypeDefinitionNode, tr as MakeOptional, tu as UpdateOperationExampleInputSchema, tv as setOperationErrorDescription, ty as sortMappedOperations, u_ as actions, ua as SetModelNameAction, ub as deserializeSignature, uc as validateModule, ud as sign, uf as assertIsDocumentModelState, ug as ConditionContext, uh as tieOrderOf, ui as PhAiToolDescriptor, ul as RedoActionInputSchema, um as HASH_ALGORITHM_SHA1, un as DocumentModelHeaderAction, uo as UndoRedoAction, up as GraphQLNonNullTypeNode, ur as MutationAddChangeLogItemInputArgs, ut as ActionVerificationHandler, uu as actionReferences, uv as setSlug, uy as Operand, v_ as buildOperationSignature, va as SetNameOperation, vc as generateMock, vd as createZip, vf as createDocumentAction, vg as RemoveGrantAction, vh as PEER_MANIFEST_FORMAT, vi as RedoAction, vl as ReorderStateExamplesInputSchema, vm as documentModelInitialLocalState, vn as DocumentModelOperationAction, vo as UpdateStateExampleInput, vp as GraphQLTypeSystemDefinitionNode, vr as MutationDeleteOperationArgs, vt as AddOperationErrorInput, vu as retractedActionIds, vv as IntegrityIssueType, vy as createBaseState, w_ as deleteOperationError, wa as SetOperationErrorDescriptionInput, wc as compareCanonical, wd as parseBulkArchive, wf as CatalogScalarReferenceDefinition, wg as applyAuthAction, wh as Supports, wi as RemoveRelationshipAction, wl as SetModelDescriptionInputSchema, wm as DerivationModelValues, wn as DocumentModelPHState, wp as InternalScalarName, wr as MutationReorderChangeLogItemsInputArgs, wt as AddStateExampleAction, wu as undoTargetsBase, wv as appendWithoutApplying, wy as defaultBaseState, x_ as deleteChangeLogItem, xa as SetOperationErrorCodeAction, xc as LEGACY_UNDO_GROUP_PREFIX, xd as fetchFileBrowser, xf as documentFromCreation, xg as SetGrantAction, xh as PeerManifest, xi as ReducerOptions, xl as SetAuthorNameInputSchema, xm as BaseReducerVersion, xn as DocumentModelOperationExampleAction, xo as User, xp as InputFieldDefinition, xr as MutationDeleteStateExampleArgs, xt as AddOperationInput, xu as tailAppliesIncrementally, xv as PHDocumentMeta, xy as createLocalState, y_ as buildSignedAction, ya as SetOperationDescriptionAction, yc as CanonicalKey, yd as documentModelLoadFromInput, yf as creationActions, yg as RemoveGrantActionInput, yh as PeerCapability, yi as RedoActionInput, yl as RetractActionInputSchema, ym as BASE_REDUCER_VERSIONS, yn as DocumentModelOperationErrorAction, yo as UpgradeDocumentAction, yp as GraphQLTypeSystemExtensionNode, yr as MutationDeleteOperationErrorArgs, yt as AddOperationExampleAction, yu as retractionRewrites, yv as PHDocument, yy as createDocumentState, z_ as reorderOperationErrors, za as SetPreferredEditorAction, zc as CodeExampleSchema, zd as AuthActionNotAllowedError, zf as DefinitionSourceSet, zg as resolveSnapshotAuth, zh as GrantSchema, zi as RetractAction, zl as SetOperationSchemaInputSchema, zm as TieOrder, zn as HostedEditorProps, zp as ScalarRepresentation, zr as MutationSetNameArgs, zt as CreateState, zu as documentModelStateSchemaReducer, zv as isUndo, zy as requestedSignaturePolicy } from "../types-CV2j3BvH.js";
2
+ import { i as nextAuthTimestamp, n as createActionIdGenerator, r as generateActionId, t as ActionIdGeneratorOptions } from "../action-id-DON1WCeY.js";
3
+ import { t as normalizeDocumentModelVersion } from "../version-BxLITo9P.js";
4
+ export type * from "@powerhousedao/shared/document-model/dispatch";
5
+ export { ACTION_SIGNATURE_V2_PREFIX, AUTH_ACTION_TYPES, AUTH_DENIED_BY_GRANT_REASON, AUTH_NO_GRANT_REASON, AUTH_VERSION_UNSUPPORTED_REASON, Action, ActionContext, type ActionErrorCallback, type ActionIdGeneratorOptions, type ActionSignatureContext, ActionSigner, ActionSignerIdentity, type ActionSigningHandler, ActionSigningTarget, type ActionVerificationHandler, type Actions, type AddChangeLogItemAction, type AddChangeLogItemInput, AddChangeLogItemInputSchema, type AddModuleAction, type AddModuleInput, AddModuleInputSchema, type AddOperationAction, type AddOperationErrorAction, type AddOperationErrorInput, AddOperationErrorInputSchema, type AddOperationExampleAction, type AddOperationExampleInput, AddOperationExampleInputSchema, type AddOperationInput, AddOperationInputSchema, type AddRelationshipAction, type AddRelationshipActionInput, type AddStateExampleAction, type AddStateExampleInput, AddStateExampleInputSchema, AppActionSigner, type AssertIsDocumentOfType, type AssertIsStateOfType, AuthAction, AuthActionNotAllowedError, AuthAdministrationLockoutError, AuthAdministrationMissingError, AuthAlreadyInitializedError, AuthDecision, AuthEvaluation, AuthGroups, AuthInitializerNotCreatorError, AuthPolicyNotPreservedError, AuthRefusal, AuthRequest, AuthSubject, AuthVerb, type Author, AuthorSchema, BASE_REDUCER_VERSIONS, BaseDocumentHeaderSchema, BaseDocumentStateSchema, BaseReducerCapabilities, BaseReducerVersion, BulkArchiveEntry, CAPABILITY_DECISIONS, CanonicalJsonError, CanonicalKey, Capability, type CatalogScalarName, type CatalogScalarReferenceDefinition, type CodeExample, CodeExampleSchema, type CompiledErrorDefinition, Condition, ConditionContext, type ConfigEntry, ConfigEntrySchema, type ConfigEntryType, ConfigEntryTypeSchema, type CopyChildDocumentInput, type CopyChildDocumentSignal, CreateBaseReducerLogger, type CreateChildDocumentInput, type CreateChildDocumentSignal, type CreateDocument, type CreateDocumentAction, type CreateDocumentActionInput, CreateProtocolVersionsOptions, type CreateState, DEFAULT_SIGNATURE_POLICY, DOCUMENT_DELETED_REASON, DOCUMENT_PURGE_PROTOCOL, DOCUMENT_SCOPE_ACTION_TYPES, type DefinitionCheckProfile, type DefinitionCheckReport, type DefinitionCheckSkipReason, type DefinitionCompatibilitySelection, type DefinitionDiagnostic, type DefinitionDiagnosticPhase, type DefinitionDiagnosticSeverity, type DefinitionExample, type DefinitionKind, type DefinitionPath, type DefinitionRef, type DefinitionRelatedLocation, type DefinitionSource, type DefinitionSourceSet, type DeleteChangeLogItemAction, type DeleteChangeLogItemInput, DeleteChangeLogItemInputSchema, type DeleteChildDocumentInput, type DeleteChildDocumentSignal, type DeleteDocumentAction, type DeleteDocumentActionInput, type DeleteModuleAction, type DeleteModuleInput, DeleteModuleInputSchema, type DeleteOperationAction, type DeleteOperationErrorAction, type DeleteOperationErrorInput, DeleteOperationErrorInputSchema, type DeleteOperationExampleAction, type DeleteOperationExampleInput, DeleteOperationExampleInputSchema, type DeleteOperationInput, DeleteOperationInputSchema, type DeleteStateExampleAction, type DeleteStateExampleInput, DeleteStateExampleInputSchema, DerivationModel, DerivationModelValues, type DeriveScope, type DirectiveUseDefinition, type DispatchOutcome, type DocumentAction, DocumentActionSchema, type DocumentDispatch, DocumentIdParams, type DocumentModelAction, type DocumentModelDefinition, type DocumentModelDocument, type DocumentModelDocumentModelModule, type DocumentModelGlobalState, DocumentModelGlobalStateSchema, type DocumentModelHeaderAction, type DocumentModelHeaderOperations, DocumentModelHeaderSchema, type DocumentModelInput, DocumentModelInputSchema, type DocumentModelLib, type DocumentModelLocalState, type DocumentModelModule, type DocumentModelModuleAction, type DocumentModelModuleDefinition, type DocumentModelModuleOperations, type DocumentModelOperationAction, type DocumentModelOperationDefinition, type DocumentModelOperationErrorAction, type DocumentModelOperationErrorOperations, type DocumentModelOperationExampleAction, type DocumentModelOperationExampleOperations, type DocumentModelOperationOperations, type DocumentModelPHState, DocumentModelPHStateSchema, DocumentModelSchema, type DocumentModelSpecificationDefinition, type DocumentModelStateAction, type DocumentModelStateOperations, type DocumentModelUtils, type DocumentModelVersioningAction, type DocumentModelVersioningOperations, DocumentOperations, type DocumentOperationsIgnoreMap, type DocumentScalarReferenceDefinition, type DocumentSpecification, DocumentSpecificationSchema, DowngradeNotSupportedError, type ENSInfo, type EditorDispatch, type EditorModule, type EditorProps, type EmptyLocalStateDefinition, type EnumTypeDefinition, type EnumValueDefinition, type Exact, FLAGLESS_BASE_REDUCER_VERSION, FLAGS_FOR_EVERY_VERSION, FeatureCapability, type FieldDefinition, type FileInput, FileSystemError, GatingFlag, GatingFlagValues, type GetDocumentOptions, Grant, GrantNotFoundError, GrantSchema, type GraphQLArgumentNode, type GraphQLBuiltInScalarName, type GraphQLConstValueNode, type GraphQLDirectiveDefinitionNode, type GraphQLDirectiveNode, type GraphQLEnumTypeDefinitionNode, type GraphQLEnumValueDefinitionNode, type GraphQLFieldDefinitionNode, type GraphQLInputObjectTypeDefinitionNode, type GraphQLInputValueDefinitionNode, type GraphQLInterfaceTypeDefinitionNode, type GraphQLListTypeNode, type GraphQLNameNode, type GraphQLNamedTypeNode, type GraphQLNonNullTypeNode, type GraphQLObjectFieldNode, type GraphQLObjectTypeDefinitionNode, type GraphQLOperationTypeDefinitionNode, type GraphQLScalarTypeDefinitionNode, type GraphQLSchemaDefinitionNode, type GraphQLStringValueNode, type GraphQLTypeNode, type GraphQLTypeSystemDefinitionNode, type GraphQLTypeSystemExtensionNode, type GraphQLUnionTypeDefinitionNode, GroupPrincipalNotAllowedError, HASH_ALGORITHM_SHA1, HASH_ALGORITHM_SHA256, HASH_ALGORITHM_SHA512, HASH_ENCODING_BASE64, HASH_ENCODING_HEX, HashConfig, HashMismatchError, HoldReason, type HostedEditorProps, type IAction, type ID, type IDocument, type IOperation, type ISignal, type ISignalResult, type ISigner, IdOrder, type Incremental, InitializeAuthAction, InitializeAuthActionInput, InitializeAuthActionInputSchema, type InputFieldDefinition, type InputMaybe, type InputTypeDefinition, IntegrityIssueSubType, IntegrityIssueType, type InterfaceTypeDefinition, type InternalScalarName, InvalidActionInputError, InvalidActionInputZodError, InvalidAuthVersionError, InvalidGrantError, type IsDocumentOfType, type IsStateOfType, type JsonPrimitive, type JsonValue, LEGACY_UNDO_GROUP_PREFIX, type ListTypeReferenceDefinition, type LoadFromFile, type LoadFromInput, type LocationFreeGraphQLDocumentNode, MARKER_REFUSAL_FEATURE, MAX_AUTH_GRANTS, MAX_CAPABILITY_OPERATIONS, MAX_CONDITION_DEPTH, MAX_CONDITION_NODES, MAX_SUPPORTED_AUTH_VERSION, type MakeEmpty, type MakeMaybe, type MakeOptional, type Manifest, ManifestSchema, type MappedOperation, type MaterializedStateDefinition, type Maybe, type MinimalBackupData, MissingStateReducerError, ModuleSchema, type ModuleSpecification, MoveGrantAction, MoveGrantActionInput, MoveGrantActionInputSchema, type MoveOperationAction, type MoveOperationInput, MoveOperationInputSchema, type Mutation, type MutationAddChangeLogItemInputArgs, type MutationAddModuleArgs, type MutationAddOperationArgs, type MutationAddOperationErrorArgs, type MutationAddOperationExampleArgs, type MutationAddStateExampleArgs, type MutationDeleteChangeLogItemInputArgs, type MutationDeleteModuleArgs, type MutationDeleteOperationArgs, type MutationDeleteOperationErrorArgs, type MutationDeleteOperationExampleArgs, type MutationDeleteStateExampleArgs, type MutationMoveOperationArgs, type MutationRedoArgs, type MutationReorderChangeLogItemsInputArgs, type MutationReorderModuleOperationsArgs, type MutationReorderModulesArgs, type MutationReorderOperationErrorsArgs, type MutationReorderOperationExamplesArgs, type MutationReorderStateExamplesArgs, type MutationSetAuthorNameArgs, type MutationSetAuthorWebsiteArgs, type MutationSetInitialStateArgs, type MutationSetModelDescriptionArgs, type MutationSetModelExtensionArgs, type MutationSetModelIdArgs, type MutationSetModelNameArgs, type MutationSetModuleDescriptionArgs, type MutationSetModuleNameArgs, type MutationSetNameArgs, type MutationSetOperationDescriptionArgs, type MutationSetOperationErrorCodeArgs, type MutationSetOperationErrorDescriptionArgs, type MutationSetOperationErrorNameArgs, type MutationSetOperationErrorTemplateArgs, type MutationSetOperationNameArgs, type MutationSetOperationReducerArgs, type MutationSetOperationSchemaArgs, type MutationSetOperationTemplateArgs, type MutationSetStateSchemaArgs, type MutationUndoArgs, type MutationUpdateChangeLogItemInputArgs, type MutationUpdateOperationExampleArgs, type MutationUpdateStateExampleArgs, type NOOPAction, type NamedGraphQLTypeDefinition, type NamedTypeReferenceDefinition, NewDocumentHeaderOptions, NoUndoRedoTargetError, type NonEmptyStateDefinition, OPERATION_NAME_PATTERN, type ObjectTypeDefinition, type OnThrow, Operand, Operation, OperationContext, OperationErrorSchema, type OperationErrorSpecification, type OperationIndex, OperationOutcome, OperationScopeSchema, type OperationSpecification, OperationSpecificationSchema, OperationWithContext, type OperationsByScope, PEER_CAPABILITIES, PEER_MANIFEST_FORMAT, PHAuthState, PHBaseState, PHDocument, PHDocumentHeader, PHDocumentMeta, PHDocumentSignatureInfo, PHDocumentState, PHGroupState, PURGE_DOCUMENT, type PackageScalarReferenceDefinition, type PartialRecord, type PartialState, PeerCapability, PeerCapabilityFlags, PeerManifest, type PhAiChatImage, type PhAiToolAnnotations, type PhAiToolContext, type PhAiToolDescriptor, type PieceModule, PieceModuleSchema, PieceModulesSchema, type PowerhouseModule, PowerhouseModuleSchema, PowerhouseModulesSchema, type PowerhouseScalarName, Principal, ProtocolCapability, ProtocolRefusal, ProtocolSelectionRule, ProtocolSupport, ProtocolVersions, type Publisher, PublisherSchema, type PurgeDocumentAction, type PurgeDocumentActionInput, PurgeMarkerOperation, PwaConfigSchema, type Query, RESERVED_OPERATION_NAMES, RULE_EXEMPT_SCOPES, type Redo, type RedoAction, type RedoActionInput, RedoActionInputSchema, RedoActionSchema, RedoSchema, type Reducer, ReducerContract, ReducerContractValues, type ReducerFor, type ReducerOptions, type RejectedAction, type ReleaseNewVersionAction, RemoveGrantAction, RemoveGrantActionInput, RemoveGrantActionInputSchema, type RemoveRelationshipAction, type RemoveRelationshipActionInput, type ReorderChangeLogItemsAction, type ReorderChangeLogItemsInput, ReorderChangeLogItemsInputSchema, type ReorderModuleOperationsAction, type ReorderModuleOperationsInput, ReorderModuleOperationsInputSchema, type ReorderModulesAction, type ReorderModulesInput, ReorderModulesInputSchema, type ReorderOperationErrorsAction, type ReorderOperationErrorsInput, ReorderOperationErrorsInputSchema, type ReorderOperationExamplesAction, type ReorderOperationExamplesInput, ReorderOperationExamplesInputSchema, type ReorderStateExamplesAction, type ReorderStateExamplesInput, ReorderStateExamplesInputSchema, type ReplayDocumentOptions, ReplayHash, ReplayHashValues, ReservedOperationName, type ResolverCoordinateDefinition, type RetractAction, type RetractActionInput, RetractActionInputSchema, type RevisionsFilter, SIGNATURE_PROTOCOL, SIGNATURE_PROTOCOL_V2, type SaveToFile, type SaveToFileHandle, type ScalarGraphQLProfile, type ScalarName, type ScalarRepresentation, type ScalarTypeReferenceDefinition, type ScalarValidationProfile, type Scalars, type SchemaFirstGraphQLDocumentCompatibility, type SchemaNOOPAction, type SchemaRedoAction, type SchemaSetNameAction, type SchemaSetPreferredEditorAction, type SchemaSetSlugAction, type SchemaUndoAction, type ScopeState, ScopeStateSchema, type ScopeVersions, type SetAuthorNameAction, type SetAuthorNameInput, SetAuthorNameInputSchema, type SetAuthorWebsiteAction, type SetAuthorWebsiteInput, SetAuthorWebsiteInputSchema, SetGrantAction, SetGrantActionInput, SetGrantActionInputSchema, type SetInitialStateAction, type SetInitialStateInput, SetInitialStateInputSchema, type SetModelDescriptionAction, type SetModelDescriptionInput, SetModelDescriptionInputSchema, type SetModelExtensionAction, type SetModelExtensionInput, SetModelExtensionInputSchema, type SetModelIdAction, type SetModelIdInput, SetModelIdInputSchema, type SetModelNameAction, type SetModelNameInput, SetModelNameInputSchema, type SetModuleDescriptionAction, type SetModuleDescriptionInput, SetModuleDescriptionInputSchema, type SetModuleNameAction, type SetModuleNameInput, SetModuleNameInputSchema, type SetNameAction, type SetNameActionInput, SetNameActionInputSchema, SetNameActionSchema, type SetNameOperation, type SetOperationDescriptionAction, type SetOperationDescriptionInput, SetOperationDescriptionInputSchema, type SetOperationErrorCodeAction, type SetOperationErrorCodeInput, SetOperationErrorCodeInputSchema, type SetOperationErrorDescriptionAction, type SetOperationErrorDescriptionInput, SetOperationErrorDescriptionInputSchema, type SetOperationErrorNameAction, type SetOperationErrorNameInput, SetOperationErrorNameInputSchema, type SetOperationErrorTemplateAction, type SetOperationErrorTemplateInput, SetOperationErrorTemplateInputSchema, type SetOperationNameAction, type SetOperationNameInput, SetOperationNameInputSchema, type SetOperationReducerAction, type SetOperationReducerInput, SetOperationReducerInputSchema, type SetOperationSchemaAction, type SetOperationSchemaInput, SetOperationSchemaInputSchema, type SetOperationScopeAction, type SetOperationScopeInput, SetOperationScopeInputSchema, type SetOperationTemplateAction, type SetOperationTemplateInput, SetOperationTemplateInputSchema, type SetPreferredEditorAction, type SetPreferredEditorActionInput, SetPreferredEditorActionInputSchema, SetPreferredEditorActionSchema, type SetPreferredEditorOperation, type SetSlugAction, type SetSlugActionInput, SetSlugActionInputSchema, SetSlugActionSchema, type SetStateSchemaAction, type SetStateSchemaInput, SetStateSchemaInputSchema, type Set_Name, Set_NameSchema, type Set_PreferredEditor, Set_PreferredEditorSchema, type Set_Slug, Set_SlugSchema, type Sha256Digest, type Signal, type SignalDispatch, type SignalResult, type SignalResults, type SignalType, Signature, SignaturePolicy, type SignatureVerificationHandler, type SigningParameters, type SkipHeaderOperationIndex, type SkipHeaderOperations, SkipMeaning, SkipMeaningValues, type State, type StateDefinition, type StateReducer, StateSchema, type StoredScalarDefinition, type SubgraphDefinition, type SubgraphDefinitionBase, type SubgraphEntryAccess, type SubgraphEntryDefinition, type SubgraphModule, type SubgraphScalarReferenceDefinition, SubmittedUndoRefusedError, Supports, SynthesizedIdForm, SynthesizedIdFormValues, type TailBase, TieOrder, TieOrderValues, TransportAction, TransportActionContext, TransportSigner, type TypeReferenceDefinition, UNDO_GROUP_MARK, type Undo, type UndoAction, type UndoActionInput, UndoActionInputSchema, UndoActionSchema, UndoModel, UndoModelValues, UndoOperationRefusedError, type UndoRedoAction, UndoRedoAvailability, type UndoRedoBatch, UndoRedoTargets, UndoSchema, type UndoTargetsBase, type UnionTypeDefinition, UnsupportedDocumentModelVersionError, type UpdateChangeLogItemAction, type UpdateChangeLogItemInput, UpdateChangeLogItemInputSchema, type UpdateOperationExampleAction, type UpdateOperationExampleInput, UpdateOperationExampleInputSchema, type UpdateRelationshipAction, type UpdateRelationshipActionInput, type UpdateStateExampleAction, type UpdateStateExampleInput, UpdateStateExampleInputSchema, type UpgradeDocumentAction, type UpgradeDocumentActionInput, UpgradeManifest, UpgradeReducer, UpgradeTransition, type User, UserActionSigner, type ValidationError, VersionedReducers, VersionedReplayConfig, ab2hex, acceptsSubmittedRetract, acceptsSubmittedUndoRedo, actionContext, actionFromAction, actionPreimageV2, actionReferences, actionSigner, actionSignerIdentity, actionSigningTarget, actions, addChangeLogItem, addModule, addOperation, addOperationError, addOperationExample, addStateExample, addUndo, advanceUndoTargets, appendRows, appendWithoutApplying, appliedOperations, appliesRewind, applyAuthAction, applyDeleteDocumentAction, applyInitializeAuthAction, applyMoveGrantAction, applyRemoveGrantAction, applySetGrantAction, applyUpgradeDocumentAction, assertAuthAdministrationRetained, assertAuthPreservedOnDuplicate, assertAuthScopeActionAllowed, assertIsDocumentModelDocument, assertIsDocumentModelState, assertModuleIdUnique, assertNever, assertOperationErrorIdUnique, assertOperationExampleIdUnique, assertOperationIdUnique, assertReplayIndices, assertValidGrant, assertValidGrantUpsert, assertValidInitialGrants, attachBranch, backfillAuthState, base58Decode, base64UrlToBytes, baseActions, baseCreateDocument, baseLoadFromInput, baseLoadFromInputVersioned, baseReducer, baseReducerCapabilities, baseReducerVersion, baseReducerVersionsFor, baseSaveToFileHandle, buildOperationSignature, buildOperationSignatureMessage, buildOperationSignatureParams, buildSignedAction, bytesToBase64Url, canonicalJson, capSelection, capabilitiesFor, capabilitiesOf, checkCleanedOperationsIntegrity, checkOperationsIntegrity, compareActionIds, compareCanonical, computeUpgradeTransitions, conflictWindowMovesEveryRow, coversLocal, createAction, createActionIdGenerator, createAuthState, createBaseState, createCopyHeader, createDocumentAction, createDocumentState, createGlobalState, createLocalState, createMinimalZip, createPresignedHeader, createReducer, createSignedHeader, createSignedHeaderForSigner, createState, createVerificationSigner, createVersionsOf, createZip, createdCapabilities, creationActions, creationState, decide, defaultAuthState, defaultBaseState, defaultDocumentState, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, deleteChangeLogItem, deleteModule, deleteOperation, deleteOperationError, deleteOperationExample, deleteStateExample, deriveDocumentId, deriveOperationId, deriveScope, deriveScopeVersioned, derivesByRule, deserializeSignature, diffOperations, documentDerivesByRule, documentFromCreation, documentModelActions, documentModelDocumentType, documentModelFileExtension, documentModelGlobalState, documentModelHeaderReducer, documentModelInitialGlobalState, documentModelInitialLocalState, documentModelLoadFromInput, documentModelModuleReducer, documentModelOperationErrorReducer, documentModelOperationExampleReducer, documentModelOperationReducer, documentModelReducer, documentModelSaveToFileHandle, documentModelStateReducer, documentModelStateSchemaReducer, documentModelVersioningReducer, evaluate, evaluateCondition, evaluateGrantStack, evaluateGrants, fetchFileBrowser, filterDocumentOperationsResultingState, filterDuplicatedOperations, findModuleOrThrow, findOperationErrorOrThrow, findOperationExampleOrThrow, findOperationOrThrow, fitCreateBaseReducer, garbageCollect, garbageCollectDocumentOperations, garbageCollectV2, generateActionId, generateId, generateMock, getAllOperationNames, getDocumentLastModified, getFileBrowser, getUnixTimestamp, grantProblem, groupDocumentType, groupMembershipActionTypes, groupOperationsByScope, groupedActionId, hasDerivedDocumentId, hashActionV2, hashBrowser, hashDocumentStateForScope, headNewDocument, hex2ab, holdReason, idOrderFor, initializeAuth, isAuthAction, isBaseReducerVersion, isDefinedNonNullAny, isDenied, isDerivedDocumentId, isDocumentAction, isDocumentCreator, isDocumentModelDocument, isDocumentModelState, isDocumentZip, isNoopOperation, isOlderManifest, isPlainValue, isPurgeMarker, isReservedOperationName, isSignaturePolicy, isUndo, isUndoRedo, isV2ActionHash, isValidOperationNameFormat, latestVersionOf, legacyIdOrder, legacySupports, localPeerManifest, localSupports, manifestRevision, mapSkippedOperations, mapSkippedOperationsV2, mentionedGroupIds, merge, mergePeerCapabilities, modelRunsBaseReducer, moveGrant, moveOperation, needsTaggedModel, nextAuthTimestamp, nextSkipNumber, noop, normalizeDocumentModelVersion, operationExampleCreators, operationFromAction, operationFromOperation, operationOutcome, operationWithContext, operationsAreEqual, optionalBaseReducerCapabilities, parseBulkArchive, parseResultingState, peerSupports, positionalOperations, precedes, prepareOperations, processUndoRedo, protocolVersionsFor, purgeDocumentAction, purgeMarkerOperation, purgedProtocolVersions, readFileBrowser, readOnly, readPeerManifest, redo, redoOperation, redoTarget, reduceOne, referencedGroupIds, refusalFor, releaseNewVersion, removeExistingOperations, removeGrant, reorderChangeLogItems, reorderModuleOperations, reorderModules, reorderOperationErrors, reorderOperationExamples, reorderStateExamples, replayDocument, replayDocumentVersioned, replayOperations, requestedSignaturePolicy, requireStateReducer, reshuffleByTimestamp, reshuffleByTimestampAndIndex, resolveBaseReducerVersion, resolveSnapshotAuth, retract, retractedActionIds, retractionRewrites, retractionTarget, selectDocumentModelModule, selectProtocolVersions, serializeByKey, serializeSignature, setAuthorName, setAuthorWebsite, setGrant, setInitialState, setModelDescription, setModelExtension, setModelId, setModelName, setModuleDescription, setModuleName, setName, setNameOperation, setOperationDescription, setOperationErrorCode, setOperationErrorDescription, setOperationErrorName, setOperationErrorTemplate, setOperationName, setOperationReducer, setOperationSchema, setOperationScope, setOperationTemplate, setPreferredEditor, setPreferredEditorOperation, setSlug, setSlugOperation, setStateSchema, sign, signActionV2, signaturePolicyOf, skipHeaderOperations, skipMayUndo, sortMappedOperations, sortOperations, sortsJobsCanonically, split, stateReducerOf, synthesizedActionId, tailAppliesIncrementally, targetDocumentId, tieOrderOf, toTransportAction, undo, undoCapabilitiesOf, undoGroupOfId, undoNeedsTargets, undoOperation, undoOperationV2, undoRedoActions, undoRedoAvailabilityOf, undoRedoBatch, undoRedoTargetsOf, undoTarget, undoTargetsBase, updateChangeLogItem, updateDocument, updateHeaderRevision, updateOperationExample, updateStateExample, upgradeDocumentAction, usesRetractionRule, v2RequiredProtocolVersions, v2TupleProblem, validateHeader, validateInitialState, validateModule, validateModuleOperation, validateModules, validateOperationName, validateOperations, validateStateSchemaName, verify, verifyOperationSignature, withProtocolVersions, withScopeRevisions, withSignaturePolicy, writeFileBrowser, zipEntries };
5
6
  export {};