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