@powerhousedao/shared 6.2.2-dev.8 → 6.2.2-dev.81
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/clis/args/access-token--9H57y8J.d.mts +18 -0
- package/dist/clis/args/access-token--9H57y8J.d.mts.map +1 -0
- package/dist/clis/args/access-token-To5LaIfL.mjs +22 -0
- package/dist/clis/args/access-token-To5LaIfL.mjs.map +1 -0
- package/dist/clis/args/access-token.d.mts +2 -18
- package/dist/clis/args/access-token.mjs +1 -21
- package/dist/clis/args/{common-dbsvksvf.mjs → common-CcYbXrBx.mjs} +7 -2
- package/dist/clis/args/common-CcYbXrBx.mjs.map +1 -0
- package/dist/clis/args/{common-DfMf08ur.d.mts → common-Dsf1vpHV.d.mts} +7 -4
- package/dist/clis/args/{common-DfMf08ur.d.mts.map → common-Dsf1vpHV.d.mts.map} +1 -1
- package/dist/clis/args/common.d.mts +2 -2
- package/dist/clis/args/common.mjs +2 -2
- package/dist/clis/args/connect-BVVvCmL9.mjs +198 -0
- package/dist/clis/args/connect-BVVvCmL9.mjs.map +1 -0
- package/dist/clis/args/connect-DetTnI8g.d.mts +443 -0
- package/dist/clis/args/connect-DetTnI8g.d.mts.map +1 -0
- package/dist/clis/args/connect.d.mts +2 -434
- package/dist/clis/args/connect.mjs +1 -196
- package/dist/clis/args/{generate-Cs5okckF.mjs → generate-CA916Fvj.mjs} +2 -2
- package/dist/clis/args/{generate-Cs5okckF.mjs.map → generate-CA916Fvj.mjs.map} +1 -1
- package/dist/clis/args/generate-DnV-bfXt.d.mts +87 -0
- package/dist/clis/args/generate-DnV-bfXt.d.mts.map +1 -0
- package/dist/clis/args/generate.d.mts +2 -87
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-BkF9Cxud.mjs → help-Bqbgbalu.mjs} +15 -15
- package/dist/clis/args/{help-BkF9Cxud.mjs.map → help-Bqbgbalu.mjs.map} +1 -1
- package/dist/clis/args/{help-CYjFrzIJ.d.mts → help-CjAsudUn.d.mts} +1 -1
- package/dist/clis/args/{help-CYjFrzIJ.d.mts.map → help-CjAsudUn.d.mts.map} +1 -1
- package/dist/clis/args/help.d.mts +1 -1
- package/dist/clis/args/help.mjs +1 -13
- package/dist/clis/args/index.d.mts +19 -19
- package/dist/clis/args/index.mjs +19 -19
- package/dist/clis/args/init-CUXyfquF.d.mts +55 -0
- package/dist/clis/args/init-CUXyfquF.d.mts.map +1 -0
- package/dist/clis/args/init-rz9Ei7nq.mjs +67 -0
- package/dist/clis/args/init-rz9Ei7nq.mjs.map +1 -0
- package/dist/clis/args/init.d.mts +2 -55
- package/dist/clis/args/init.mjs +1 -66
- package/dist/clis/args/inspect-DtZeoA5c.d.mts +15 -0
- package/dist/clis/args/inspect-DtZeoA5c.d.mts.map +1 -0
- package/dist/clis/args/inspect-tckH8mSw.mjs +15 -0
- package/dist/clis/args/inspect-tckH8mSw.mjs.map +1 -0
- package/dist/clis/args/inspect.d.mts +2 -15
- package/dist/clis/args/inspect.mjs +1 -14
- package/dist/clis/args/install-CkP8zcHb.d.mts +40 -0
- package/dist/clis/args/install-CkP8zcHb.d.mts.map +1 -0
- package/dist/clis/args/install-Sz2DlCHh.mjs +32 -0
- package/dist/clis/args/install-Sz2DlCHh.mjs.map +1 -0
- package/dist/clis/args/install.d.mts +2 -40
- package/dist/clis/args/install.mjs +1 -31
- package/dist/clis/args/list-BGf8s_gj.d.mts +12 -0
- package/dist/clis/args/list-BGf8s_gj.d.mts.map +1 -0
- package/dist/clis/args/list-DM2d6f1m.mjs +7 -0
- package/dist/clis/args/list-DM2d6f1m.mjs.map +1 -0
- package/dist/clis/args/list.d.mts +2 -12
- package/dist/clis/args/list.mjs +1 -6
- package/dist/clis/args/login-DNsHwvqk.d.mts +27 -0
- package/dist/clis/args/login-DNsHwvqk.d.mts.map +1 -0
- package/dist/clis/args/login-DiKT5Jfu.mjs +40 -0
- package/dist/clis/args/login-DiKT5Jfu.mjs.map +1 -0
- package/dist/clis/args/login.d.mts +2 -27
- package/dist/clis/args/login.mjs +1 -39
- package/dist/clis/args/magic-string.es-h_0HDQBQ.mjs +1013 -0
- package/dist/clis/args/magic-string.es-h_0HDQBQ.mjs.map +1 -0
- package/dist/clis/args/migrate-CG_gWc4k.mjs +29 -0
- package/dist/clis/args/migrate-CG_gWc4k.mjs.map +1 -0
- package/dist/clis/args/migrate-sixkWhxm.d.mts +21 -0
- package/dist/clis/args/migrate-sixkWhxm.d.mts.map +1 -0
- package/dist/clis/args/migrate.d.mts +2 -21
- package/dist/clis/args/migrate.mjs +1 -28
- package/dist/clis/args/publish-DDZYsUfV.mjs +19 -0
- package/dist/clis/args/publish-DDZYsUfV.mjs.map +1 -0
- package/dist/clis/args/publish-Dqe5DUst.d.mts +18 -0
- package/dist/clis/args/publish-Dqe5DUst.d.mts.map +1 -0
- package/dist/clis/args/publish.d.mts +2 -18
- package/dist/clis/args/publish.mjs +1 -18
- package/dist/clis/args/registry-C_OVFQmI.mjs +23 -0
- package/dist/clis/args/registry-C_OVFQmI.mjs.map +1 -0
- package/dist/clis/args/registry-C_RfTsKB.d.mts +19 -0
- package/dist/clis/args/registry-C_RfTsKB.d.mts.map +1 -0
- package/dist/clis/args/registry.d.mts +2 -19
- package/dist/clis/args/registry.mjs +1 -22
- package/dist/clis/args/service-CHOOr0Gg.mjs +11 -0
- package/dist/clis/args/service-CHOOr0Gg.mjs.map +1 -0
- package/dist/clis/args/{service-C88bN_g_.d.mts → service-DhIkf8-O.d.mts} +1 -1
- package/dist/clis/args/{service-C88bN_g_.d.mts.map → service-DhIkf8-O.d.mts.map} +1 -1
- package/dist/clis/args/service.d.mts +1 -1
- package/dist/clis/args/service.mjs +1 -10
- package/dist/clis/args/switchboard-BlPaq2at.d.mts +72 -0
- package/dist/clis/args/switchboard-BlPaq2at.d.mts.map +1 -0
- package/dist/clis/args/switchboard-Dsp7nosi.mjs +85 -0
- package/dist/clis/args/switchboard-Dsp7nosi.mjs.map +1 -0
- package/dist/clis/args/switchboard.d.mts +2 -72
- package/dist/clis/args/switchboard.mjs +1 -84
- package/dist/clis/args/uninstall-BpA3YYbw.d.mts +31 -0
- package/dist/clis/args/uninstall-BpA3YYbw.d.mts.map +1 -0
- package/dist/clis/args/uninstall-CTwTX0u_.mjs +16 -0
- package/dist/clis/args/uninstall-CTwTX0u_.mjs.map +1 -0
- package/dist/clis/args/uninstall.d.mts +2 -31
- package/dist/clis/args/uninstall.mjs +1 -15
- package/dist/clis/args/unpublish-BPMkGEg5.mjs +30 -0
- package/dist/clis/args/unpublish-BPMkGEg5.mjs.map +1 -0
- package/dist/clis/args/unpublish-CvwaIimG.d.mts +24 -0
- package/dist/clis/args/unpublish-CvwaIimG.d.mts.map +1 -0
- package/dist/clis/args/unpublish.d.mts +2 -24
- package/dist/clis/args/unpublish.mjs +1 -29
- package/dist/clis/args/vetra-DLQ6lhLl.d.mts +113 -0
- package/dist/clis/args/vetra-DLQ6lhLl.d.mts.map +1 -0
- package/dist/clis/args/vetra-b4KUu1Ax.mjs +126 -0
- package/dist/clis/args/vetra-b4KUu1Ax.mjs.map +1 -0
- package/dist/clis/args/vetra-ports.test.d.mts +1 -0
- package/dist/clis/args/vetra-ports.test.mjs +13249 -0
- package/dist/clis/args/vetra-ports.test.mjs.map +1 -0
- package/dist/clis/args/vetra.d.mts +2 -102
- package/dist/clis/args/vetra.mjs +2 -75
- package/dist/clis/build-config.d.mts +1 -1
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/constants.d.mts +189 -53
- package/dist/clis/constants.d.mts.map +1 -1
- package/dist/clis/constants.mjs +11 -3
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +543 -16
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +389 -14
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/project-env.d.mts +27 -0
- package/dist/clis/project-env.d.mts.map +1 -0
- package/dist/clis/project-env.mjs +44 -0
- package/dist/clis/project-env.mjs.map +1 -0
- package/dist/clis/project-ports.d.mts +40 -0
- package/dist/clis/project-ports.d.mts.map +1 -0
- package/dist/clis/project-ports.mjs +90 -0
- package/dist/clis/project-ports.mjs.map +1 -0
- package/dist/{config-loader-19K8n4DO.js → config-loader-B845Hidf.js} +11 -14
- package/dist/config-loader-B845Hidf.js.map +1 -0
- package/dist/connect/config-loader.d.ts +2 -1
- package/dist/connect/config-loader.d.ts.map +1 -1
- package/dist/connect/config-loader.js +1 -1
- package/dist/connect/index.d.ts +447 -14
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +508 -2
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/json-adapter.d.ts.map +1 -1
- package/dist/{constants-C_EQX4DY.d.ts → constants-BP_gjn8g.d.ts} +1 -1
- package/dist/constants-BP_gjn8g.d.ts.map +1 -0
- package/dist/constants.d.ts +1 -1
- package/dist/document-drive/index.d.ts +2 -2
- package/dist/document-model/index.d.ts +4 -5
- package/dist/document-model/index.js +1301 -133
- package/dist/document-model/index.js.map +1 -1
- package/dist/document-model/mock.d.ts +22 -2
- package/dist/document-model/mock.d.ts.map +1 -0
- package/dist/document-model/mock.js +32 -3
- package/dist/document-model/mock.js.map +1 -1
- package/dist/document-model/utils.d.ts +1 -2
- package/dist/document-model/utils.js +1 -2
- package/dist/{index-CQDIrK1k.d.ts → index-C_iVZe7f.d.ts} +1 -1
- package/dist/index-C_iVZe7f.d.ts.map +1 -0
- package/dist/index-h-fhfCG7.d.ts +814 -0
- package/dist/index-h-fhfCG7.d.ts.map +1 -0
- package/dist/index.d.ts +5 -6
- package/dist/processors/index.d.ts +2 -2
- package/dist/registry/index.d.ts +5 -4
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +9 -8
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +1 -1
- package/dist/registry/urls.d.ts +11 -0
- package/dist/registry/urls.d.ts.map +1 -0
- package/dist/registry/urls.js +15 -0
- package/dist/registry/urls.js.map +1 -0
- package/dist/{types-DvWPqxJr.d.ts → types-ByzmqLEu.d.ts} +29 -3
- package/dist/{types-DvWPqxJr.d.ts.map → types-ByzmqLEu.d.ts.map} +1 -1
- package/dist/{types-DXsYu6Tq.d.ts → types-DBj2HxyL.d.ts} +499 -16
- package/dist/types-DBj2HxyL.d.ts.map +1 -0
- package/dist/utils-DP122OSS.d.ts +18 -0
- package/dist/utils-DP122OSS.d.ts.map +1 -0
- package/dist/{utils-DKOFCM0Q.js → utils-aaTmfxFW.js} +45 -2
- package/dist/utils-aaTmfxFW.js.map +1 -0
- package/package.json +12 -1
- package/dist/clis/args/access-token.d.mts.map +0 -1
- package/dist/clis/args/access-token.mjs.map +0 -1
- package/dist/clis/args/common-dbsvksvf.mjs.map +0 -1
- package/dist/clis/args/connect.d.mts.map +0 -1
- package/dist/clis/args/connect.mjs.map +0 -1
- package/dist/clis/args/generate.d.mts.map +0 -1
- package/dist/clis/args/init.d.mts.map +0 -1
- package/dist/clis/args/init.mjs.map +0 -1
- package/dist/clis/args/inspect.d.mts.map +0 -1
- package/dist/clis/args/inspect.mjs.map +0 -1
- package/dist/clis/args/install.d.mts.map +0 -1
- package/dist/clis/args/install.mjs.map +0 -1
- package/dist/clis/args/list.d.mts.map +0 -1
- package/dist/clis/args/list.mjs.map +0 -1
- package/dist/clis/args/login.d.mts.map +0 -1
- package/dist/clis/args/login.mjs.map +0 -1
- package/dist/clis/args/migrate.d.mts.map +0 -1
- package/dist/clis/args/migrate.mjs.map +0 -1
- package/dist/clis/args/publish.d.mts.map +0 -1
- package/dist/clis/args/publish.mjs.map +0 -1
- package/dist/clis/args/registry.d.mts.map +0 -1
- package/dist/clis/args/registry.mjs.map +0 -1
- package/dist/clis/args/service.mjs.map +0 -1
- package/dist/clis/args/switchboard.d.mts.map +0 -1
- package/dist/clis/args/switchboard.mjs.map +0 -1
- package/dist/clis/args/uninstall.d.mts.map +0 -1
- package/dist/clis/args/uninstall.mjs.map +0 -1
- package/dist/clis/args/unpublish.d.mts.map +0 -1
- package/dist/clis/args/unpublish.mjs.map +0 -1
- package/dist/clis/args/vetra.d.mts.map +0 -1
- package/dist/clis/args/vetra.mjs.map +0 -1
- package/dist/config-loader-19K8n4DO.js.map +0 -1
- package/dist/constants-C_EQX4DY.d.ts.map +0 -1
- package/dist/index-CQDIrK1k.d.ts.map +0 -1
- package/dist/index-Dz7JrBXs.d.ts +0 -399
- package/dist/index-Dz7JrBXs.d.ts.map +0 -1
- package/dist/mock-CBcf78ra.d.ts +0 -7
- package/dist/mock-CBcf78ra.d.ts.map +0 -1
- package/dist/types-D0NNBVGA.d.ts +0 -167
- package/dist/types-D0NNBVGA.d.ts.map +0 -1
- package/dist/types-DXsYu6Tq.d.ts.map +0 -1
- package/dist/utils-BEByNOHo.d.ts +0 -9
- package/dist/utils-BEByNOHo.d.ts.map +0 -1
- package/dist/utils-DKOFCM0Q.js.map +0 -1
|
@@ -1,21 +1,52 @@
|
|
|
1
1
|
import { f as IAnalyticsStore } from "./types-C1in4fl3.js";
|
|
2
|
-
import { z } from "zod";
|
|
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
|
+
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
|
+
import { Agent } from "package-manager-detector";
|
|
4
9
|
import { OperationWithContext } from "@powerhousedao/shared/document-model";
|
|
5
10
|
import { Kysely, QueryCreator } from "kysely";
|
|
6
11
|
import { FC, ReactNode } from "react";
|
|
7
12
|
|
|
13
|
+
//#region clis/args/common.d.ts
|
|
14
|
+
declare const getPackageManagerCommand: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
|
|
15
|
+
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<{
|
|
16
|
+
packageManager: Agent | undefined;
|
|
17
|
+
npm: boolean | undefined;
|
|
18
|
+
pnpm: boolean | undefined;
|
|
19
|
+
yarn: boolean | undefined;
|
|
20
|
+
bun: boolean | undefined;
|
|
21
|
+
}>>;
|
|
22
|
+
} & cmd_ts_dist_cjs_helpdoc_js0.PrintHelp & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & cmd_ts_dist_cjs_helpdoc_js0.Named & Partial<cmd_ts_dist_cjs_helpdoc_js0.Versioned> & cmd_ts_dist_cjs_argparser_js0.Register & cmd_ts_dist_cjs_runner_js0.Handling<{
|
|
23
|
+
packageManager: Agent | undefined;
|
|
24
|
+
npm: boolean | undefined;
|
|
25
|
+
pnpm: boolean | undefined;
|
|
26
|
+
yarn: boolean | undefined;
|
|
27
|
+
bun: boolean | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
packageManager: Agent | undefined;
|
|
30
|
+
npm: boolean | undefined;
|
|
31
|
+
pnpm: boolean | undefined;
|
|
32
|
+
yarn: boolean | undefined;
|
|
33
|
+
bun: boolean | undefined;
|
|
34
|
+
}> & {
|
|
35
|
+
run(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<{
|
|
36
|
+
packageManager: Agent | undefined;
|
|
37
|
+
npm: boolean | undefined;
|
|
38
|
+
pnpm: boolean | undefined;
|
|
39
|
+
yarn: boolean | undefined;
|
|
40
|
+
bun: boolean | undefined;
|
|
41
|
+
}>>;
|
|
42
|
+
} & Partial<cmd_ts_dist_cjs_helpdoc_js0.Versioned & cmd_ts_dist_cjs_helpdoc_js0.Descriptive & cmd_ts_dist_cjs_helpdoc_js0.Aliased>;
|
|
43
|
+
//#endregion
|
|
8
44
|
//#region processors/constants.d.ts
|
|
9
45
|
declare const PROCESSOR_APPS: readonly ["connect", "switchboard"];
|
|
10
46
|
declare const DEFAULT_RELATIONAL_PROCESSOR_DB_NAME = "relational-db";
|
|
11
47
|
declare const DEFAULT_ANALYTICS_PROCESSOR_DB_NAME = "analytics-db";
|
|
12
48
|
//#endregion
|
|
13
49
|
//#region document-model/signatures.d.ts
|
|
14
|
-
/**
|
|
15
|
-
* A signature of an action.
|
|
16
|
-
*
|
|
17
|
-
* This will be refactored in a future release.
|
|
18
|
-
*/
|
|
19
50
|
type Signature = [string, string, string, string, string];
|
|
20
51
|
/**
|
|
21
52
|
* A user action signer.
|
|
@@ -50,6 +81,16 @@ type PHDocumentSignatureInfo = {
|
|
|
50
81
|
publicKey: JsonWebKey; /** The nonce that was appended to the message to create the signature. */
|
|
51
82
|
nonce: string;
|
|
52
83
|
};
|
|
84
|
+
/** Joins a signature's params for transport. Already-joined input passes through. */
|
|
85
|
+
declare function serializeSignature(signature: Signature | string): string;
|
|
86
|
+
/**
|
|
87
|
+
* Splits a transported signature back into its params. A tuple passes through.
|
|
88
|
+
*
|
|
89
|
+
* Short input is padded rather than refused: verification reads the params by
|
|
90
|
+
* position and fails on a wrong one, which says more than a length complaint
|
|
91
|
+
* raised here would.
|
|
92
|
+
*/
|
|
93
|
+
declare function deserializeSignature(signature: Signature | string): Signature;
|
|
53
94
|
/**
|
|
54
95
|
* Configuration for hashing document state in operations.
|
|
55
96
|
*/
|
|
@@ -84,6 +125,11 @@ declare function createDocumentState(document?: Partial<PHDocumentState>): PHDoc
|
|
|
84
125
|
* Creates a PHBaseState with the given auth and document properties
|
|
85
126
|
*/
|
|
86
127
|
declare function createBaseState(auth?: Partial<PHAuthState>, document?: Partial<PHDocumentState>): PHBaseState;
|
|
128
|
+
/**
|
|
129
|
+
* Backfills the auth scope to the default for legacy documents serialized with
|
|
130
|
+
* an empty `auth`. Replaces only `state.auth`. Idempotent.
|
|
131
|
+
*/
|
|
132
|
+
declare function backfillAuthState<TState extends PHBaseState>(state: TState): TState;
|
|
87
133
|
/**
|
|
88
134
|
* The document state of the document.
|
|
89
135
|
*/
|
|
@@ -101,11 +147,106 @@ type PHDocumentState = {
|
|
|
101
147
|
deletionReason?: string;
|
|
102
148
|
};
|
|
103
149
|
/**
|
|
104
|
-
* The
|
|
105
|
-
*
|
|
106
|
-
*
|
|
150
|
+
* The document's authorization policy: an ordered, stacked list of grants,
|
|
151
|
+
* where the last matching grant wins. `{ version: 0, grants: [] }` is
|
|
152
|
+
* uninitialized and leaves the document open.
|
|
153
|
+
*/
|
|
154
|
+
type PHAuthState = {
|
|
155
|
+
/**
|
|
156
|
+
* Policy language version. 0 is the uninitialized state; INITIALIZE_AUTH
|
|
157
|
+
* sets an integer >= 1.
|
|
158
|
+
*/
|
|
159
|
+
version: number;
|
|
160
|
+
grants: Grant[];
|
|
161
|
+
/**
|
|
162
|
+
* The did:key of the auth-policy creator, captured from the INITIALIZE_AUTH
|
|
163
|
+
* signer. The creator may always administer the auth scope, so a grant policy
|
|
164
|
+
* can never lock administration out of itself. Absent for an unsigned genesis.
|
|
165
|
+
*/
|
|
166
|
+
creator?: string;
|
|
167
|
+
};
|
|
168
|
+
type Grant = {
|
|
169
|
+
/** Stable id. */id: string;
|
|
170
|
+
description: string;
|
|
171
|
+
effect: "allow" | "deny";
|
|
172
|
+
principal: Principal;
|
|
173
|
+
capability: Capability;
|
|
174
|
+
/**
|
|
175
|
+
* The grant applies only when this condition holds. Until conditions are
|
|
176
|
+
* evaluated, a grant carrying one never applies.
|
|
177
|
+
*/
|
|
178
|
+
where?: Condition;
|
|
179
|
+
};
|
|
180
|
+
type Principal = {
|
|
181
|
+
anyone: true;
|
|
182
|
+
} | {
|
|
183
|
+
address: string;
|
|
184
|
+
} | {
|
|
185
|
+
group: string;
|
|
186
|
+
} | {
|
|
187
|
+
match: Condition;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* The folded global state of a PHGroup (powerhouse/reactor-group) document,
|
|
191
|
+
* narrowed to what auth evaluation reads. Membership is matched
|
|
192
|
+
* case-insensitively against the subject's address.
|
|
193
|
+
*/
|
|
194
|
+
type PHGroupState = {
|
|
195
|
+
members: string[];
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Folded group states keyed by group document id, as the groups projection
|
|
199
|
+
* provides them. A group id a policy names but the map does not hold fails
|
|
200
|
+
* closed: the principal does not match.
|
|
201
|
+
*/
|
|
202
|
+
type AuthGroups = Record<string, PHGroupState>;
|
|
203
|
+
type Capability = {
|
|
204
|
+
can: "read";
|
|
205
|
+
scope?: string;
|
|
206
|
+
} | {
|
|
207
|
+
can: "execute";
|
|
208
|
+
scope?: string;
|
|
209
|
+
operation?: string[];
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Boolean condition language for grants: deterministic, total, and
|
|
213
|
+
* JSON-serializable, versioned by `PHAuthState.version`. Defined now but not
|
|
214
|
+
* yet evaluated or enforced.
|
|
107
215
|
*/
|
|
108
|
-
type
|
|
216
|
+
type Condition = {
|
|
217
|
+
eq: [Operand, Operand];
|
|
218
|
+
} | {
|
|
219
|
+
ne: [Operand, Operand];
|
|
220
|
+
} | {
|
|
221
|
+
in: [Operand, Operand[]];
|
|
222
|
+
} | {
|
|
223
|
+
notIn: [Operand, Operand[]];
|
|
224
|
+
} | {
|
|
225
|
+
lt: [Operand, Operand];
|
|
226
|
+
} | {
|
|
227
|
+
lte: [Operand, Operand];
|
|
228
|
+
} | {
|
|
229
|
+
gt: [Operand, Operand];
|
|
230
|
+
} | {
|
|
231
|
+
gte: [Operand, Operand];
|
|
232
|
+
} | {
|
|
233
|
+
exists: Operand;
|
|
234
|
+
} | {
|
|
235
|
+
and: Condition[];
|
|
236
|
+
} | {
|
|
237
|
+
or: Condition[];
|
|
238
|
+
} | {
|
|
239
|
+
not: Condition;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* A condition operand: `attr` is a dotted path into the decision context
|
|
243
|
+
* (e.g. "doc.global.status", "subject.address"); `lit` is a constant value.
|
|
244
|
+
*/
|
|
245
|
+
type Operand = {
|
|
246
|
+
attr: string;
|
|
247
|
+
} | {
|
|
248
|
+
lit: string | number | boolean | null;
|
|
249
|
+
};
|
|
109
250
|
/**
|
|
110
251
|
* The base state of the document.
|
|
111
252
|
*/
|
|
@@ -209,7 +350,11 @@ type Operation = {
|
|
|
209
350
|
skip: number; /** Timestamp of when the operation was added */
|
|
210
351
|
timestampUtcMs: string; /** Hash of the resulting document data after the operation */
|
|
211
352
|
hash: string; /** Error message for a failed action */
|
|
212
|
-
error?: string;
|
|
353
|
+
error?: string;
|
|
354
|
+
/**
|
|
355
|
+
* If authorization rejected the action, this records the reason why.
|
|
356
|
+
*/
|
|
357
|
+
deniedReason?: string; /** The resulting state after the operation */
|
|
213
358
|
resultingState?: string;
|
|
214
359
|
/**
|
|
215
360
|
* The action that was applied to the document to produce this operation.
|
|
@@ -225,6 +370,24 @@ type Operation = {
|
|
|
225
370
|
* but that is a breaking change for codegen + external doc models.
|
|
226
371
|
*/
|
|
227
372
|
type DocumentOperations = Record<string, Operation[]>;
|
|
373
|
+
/**
|
|
374
|
+
* What happened to an operation. An operation that is not `applied` still
|
|
375
|
+
* occupies its index but contributes nothing to the document's state.
|
|
376
|
+
*/
|
|
377
|
+
type OperationOutcome = {
|
|
378
|
+
kind: "applied";
|
|
379
|
+
} | {
|
|
380
|
+
kind: "reducer-error";
|
|
381
|
+
message: string;
|
|
382
|
+
} | {
|
|
383
|
+
kind: "denied";
|
|
384
|
+
reason: string;
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* Reads an operation's outcome. A denial takes precedence over a reducer
|
|
388
|
+
* error, since a denied operation never reaches its reducer.
|
|
389
|
+
*/
|
|
390
|
+
declare function operationOutcome(operation: Operation): OperationOutcome;
|
|
228
391
|
type OperationContext = {
|
|
229
392
|
documentId: string;
|
|
230
393
|
documentType: string;
|
|
@@ -375,8 +538,24 @@ declare function mapSkippedOperationsV2(operations: Operation[]): MappedOperatio
|
|
|
375
538
|
* Uses the V2 model where consecutive NOOPs form chains.
|
|
376
539
|
* Unlike V1 garbageCollect, this preserves ALL operations but marks which to apply.
|
|
377
540
|
*/
|
|
541
|
+
/**
|
|
542
|
+
* The base-reducer protocol version a document is written against. Every
|
|
543
|
+
* document carries one, set from the CREATE_DOCUMENT input. A header without
|
|
544
|
+
* one was built outside that path, and choosing a version on its behalf would
|
|
545
|
+
* replay the document through a reducer it was not written for, so it is an
|
|
546
|
+
* error rather than a default.
|
|
547
|
+
*/
|
|
548
|
+
declare function baseReducerVersion(header: PHDocumentHeader): number;
|
|
378
549
|
declare function garbageCollectV2<TOpIndex extends OperationIndex>(sortedOperations: TOpIndex[]): TOpIndex[];
|
|
379
550
|
declare function sortMappedOperations(operations: DocumentOperationsIgnoreMap): MappedOperation[];
|
|
551
|
+
/**
|
|
552
|
+
* Records an operation in the history without applying it, which is what a
|
|
553
|
+
* denied operation needs: it occupies its index and contributes no state.
|
|
554
|
+
*
|
|
555
|
+
* The scope defaults to the action's own, and is passed explicitly by a rebuild
|
|
556
|
+
* that is walking one stream and does not want to trust the action's copy.
|
|
557
|
+
*/
|
|
558
|
+
declare function appendWithoutApplying<TState extends PHBaseState>(document: PHDocument<TState>, operation: Operation, scope?: string): PHDocument<TState>;
|
|
380
559
|
declare function replayDocument<TState extends PHBaseState = PHBaseState>(initialState: TState, operations: DocumentOperations, reducer: Reducer<TState>, header: PHDocumentHeader, dispatch?: SignalDispatch, skipHeaderOperations?: SkipHeaderOperations, options?: ReplayDocumentOptions): PHDocument<TState>;
|
|
381
560
|
declare function parseResultingState<TState>(state: string | null | undefined): TState;
|
|
382
561
|
declare enum IntegrityIssueType {
|
|
@@ -449,6 +628,7 @@ declare function filterDocumentOperationsResultingState(documentOperations?: Doc
|
|
|
449
628
|
timestampUtcMs: string;
|
|
450
629
|
hash: string;
|
|
451
630
|
error?: string;
|
|
631
|
+
deniedReason?: string;
|
|
452
632
|
action: Action;
|
|
453
633
|
}[];
|
|
454
634
|
};
|
|
@@ -766,7 +946,7 @@ type ProcessorDispatchResult = {
|
|
|
766
946
|
interface IProcessorDispatch {
|
|
767
947
|
execute(docId: string, branch: string, actions: Action[], signal?: AbortSignal, meta?: Record<string, unknown>): Promise<ProcessorDispatchResult>;
|
|
768
948
|
}
|
|
769
|
-
interface
|
|
949
|
+
interface IProcessorHostModuleBase {
|
|
770
950
|
analyticsStore: IAnalyticsStore;
|
|
771
951
|
relationalDb: IRelationalDb;
|
|
772
952
|
processorApp: ProcessorApp;
|
|
@@ -807,14 +987,17 @@ type ProcessorRecord = {
|
|
|
807
987
|
processor: IProcessor;
|
|
808
988
|
filter: ProcessorFilter;
|
|
809
989
|
startFrom?: "beginning" | "current";
|
|
990
|
+
id?: string;
|
|
810
991
|
};
|
|
811
992
|
/**
|
|
812
993
|
* A factory function that creates processor records for a given drive.
|
|
813
994
|
* Called once per drive when the drive is first detected or when the factory is registered.
|
|
814
995
|
*/
|
|
815
996
|
type ProcessorFactory = (driveHeader: PHDocumentHeader, processorApp?: ProcessorApp) => Promise<ProcessorRecord[]> | ProcessorRecord[];
|
|
816
|
-
/** Takes a processor host module and builds processor factories using its context */
|
|
817
|
-
type ProcessorFactoryBuilder
|
|
997
|
+
/** Takes a processor host module and builds processor factories using its context. */
|
|
998
|
+
type ProcessorFactoryBuilder<TModule extends IProcessorHostModuleBase = IProcessorHostModuleBase> = {
|
|
999
|
+
bivarianceHack(module: TModule): Promise<ProcessorFactory> | ProcessorFactory;
|
|
1000
|
+
}["bivarianceHack"];
|
|
818
1001
|
type ProcessorStatus = "active" | "errored";
|
|
819
1002
|
type TrackedProcessor = {
|
|
820
1003
|
processorId: string;
|
|
@@ -1236,6 +1419,7 @@ declare const ConfigEntrySchema: z.ZodObject<{
|
|
|
1236
1419
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1237
1420
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
1238
1421
|
}, z.core.$strip>;
|
|
1422
|
+
declare const PwaConfigSchema: z.ZodType<PHConnectPwa>;
|
|
1239
1423
|
declare const ManifestSchema: z.ZodObject<{
|
|
1240
1424
|
name: z.ZodString;
|
|
1241
1425
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1277,6 +1461,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
1277
1461
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1278
1462
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
1279
1463
|
}, z.core.$strip>>>;
|
|
1464
|
+
pwa: z.ZodOptional<z.ZodType<PHConnectPwa, unknown, z.core.$ZodTypeInternals<PHConnectPwa, unknown>>>;
|
|
1280
1465
|
}, z.core.$strip>;
|
|
1281
1466
|
//#endregion
|
|
1282
1467
|
//#region document-model/upgrades.d.ts
|
|
@@ -1297,6 +1482,15 @@ type UpgradeManifest<TVersions extends readonly number[]> = {
|
|
|
1297
1482
|
supportedVersions: TVersions;
|
|
1298
1483
|
upgrades: { [V in Exclude<TupleMember<TVersions>, 1> as `v${V}`]: UpgradeTransition };
|
|
1299
1484
|
};
|
|
1485
|
+
/**
|
|
1486
|
+
* Canonical document-model version normalization: documents stamped with 0
|
|
1487
|
+
* or nothing at all predate versioning and are treated as version 1, the
|
|
1488
|
+
* same version the registry assigns unversioned modules. Every consumer
|
|
1489
|
+
* that resolves a module or compares versions must use this rule; resolving
|
|
1490
|
+
* 0 to "latest" instead re-pins a legacy document's history to whichever
|
|
1491
|
+
* module happens to be newest.
|
|
1492
|
+
*/
|
|
1493
|
+
declare function normalizeDocumentModelVersion(version: number | undefined | null): number;
|
|
1300
1494
|
/**
|
|
1301
1495
|
* Applies an UPGRADE_DOCUMENT action to a document.
|
|
1302
1496
|
* Handles all upgrade scenarios including initial upgrades, no-ops, and multi-step upgrades.
|
|
@@ -2467,6 +2661,31 @@ type DocumentModelUtils<TState extends PHBaseState = PHBaseState> = {
|
|
|
2467
2661
|
assertIsDocumentOfType: AssertIsDocumentOfType<TState>;
|
|
2468
2662
|
};
|
|
2469
2663
|
type Actions = Record<string, (...args: any[]) => Action>;
|
|
2664
|
+
/** MCP-compatible annotation hints; structural, no MCP SDK dependency. */
|
|
2665
|
+
type PhAiToolAnnotations = {
|
|
2666
|
+
title?: string;
|
|
2667
|
+
readOnlyHint?: boolean;
|
|
2668
|
+
destructiveHint?: boolean;
|
|
2669
|
+
idempotentHint?: boolean;
|
|
2670
|
+
openWorldHint?: boolean;
|
|
2671
|
+
};
|
|
2672
|
+
/**
|
|
2673
|
+
* Provider-agnostic tool descriptor a package can offer to the in-browser
|
|
2674
|
+
* AI assistant (see `DocumentModelLib.aiTools`).
|
|
2675
|
+
*
|
|
2676
|
+
* Structurally compatible with the MCP tool records produced by
|
|
2677
|
+
* `createReactorMcpProvider`: the callback parameter is `never` so any
|
|
2678
|
+
* per-tool-args function type is assignable, and the result is `unknown`
|
|
2679
|
+
* because the envelope shape (MCP `CallToolResult`) is unwrapped at the
|
|
2680
|
+
* adapter boundary.
|
|
2681
|
+
*/
|
|
2682
|
+
type PhAiToolDescriptor = {
|
|
2683
|
+
name: string;
|
|
2684
|
+
description?: string;
|
|
2685
|
+
inputSchema: ZodRawShape;
|
|
2686
|
+
annotations?: PhAiToolAnnotations;
|
|
2687
|
+
callback: (args: never) => Promise<unknown>;
|
|
2688
|
+
};
|
|
2470
2689
|
type DocumentModelModule<TState extends PHBaseState = PHBaseState> = {
|
|
2471
2690
|
/** optional version field, should be made required */version?: number;
|
|
2472
2691
|
reducer: Reducer<TState>;
|
|
@@ -2481,6 +2700,11 @@ type DocumentModelLib<TState extends PHBaseState = PHBaseState> = {
|
|
|
2481
2700
|
subgraphs?: readonly SubgraphModule[];
|
|
2482
2701
|
upgradeManifests?: readonly UpgradeManifest<readonly number[]>[] | undefined;
|
|
2483
2702
|
processorFactory?: ProcessorFactoryBuilder;
|
|
2703
|
+
/**
|
|
2704
|
+
* Optional: tool descriptors this package offers to the in-browser AI
|
|
2705
|
+
* assistant (merged into the chat agent's tool set by the host app).
|
|
2706
|
+
*/
|
|
2707
|
+
aiTools?: readonly PhAiToolDescriptor[];
|
|
2484
2708
|
};
|
|
2485
2709
|
type DocumentModelDocumentModelModule = DocumentModelModule<DocumentModelPHState>;
|
|
2486
2710
|
type ConfigEntryType = z.infer<typeof ConfigEntryTypeSchema>;
|
|
@@ -2489,5 +2713,264 @@ type PowerhouseModule = z.infer<typeof PowerhouseModuleSchema>;
|
|
|
2489
2713
|
type Publisher = z.infer<typeof PublisherSchema>;
|
|
2490
2714
|
type Manifest = z.infer<typeof ManifestSchema>;
|
|
2491
2715
|
//#endregion
|
|
2492
|
-
export { DocumentModelDocumentModelModule as $, RedoActionSchema as $a, merge as $c, UpdateChangeLogItemInput as $i, OperationSpecification as $n, IRelationalQueryBuilder as $o, SetModelIdInput as $r, reorderOperationExamples as $s, MinimalBackupData as $t, CreateDocument as A, DeleteOperationInputSchema as Aa, PHDocument as Ac, SetPreferredEditorActionInput as Ai, createDocumentState as Al, MutationSetModelExtensionArgs as An, SetPreferredEditorActionSchema as Ao, RevisionsFilter as Ar, buildSignedAction as As, IAction as At, DeleteModuleAction as B, ManifestSchema as Ba, filterDuplicatedOperations as Bc, SignalType as Bi, ActionSigner as Bl, MutationSetOperationErrorTemplateArgs as Bn, UpdateStateExampleInputSchema as Bo, SchemaUndoAction as Br, moveOperation as Bs, IsStateOfType as Bt, CodeExample as C, CodeExampleSchema as Ca, undo as Cc, SetOperationSchemaAction as Ci, undoOperation as Cl, MutationReorderOperationErrorsArgs as Cn, SetOperationErrorTemplateInputSchema as Co, ReorderOperationErrorsAction as Cr, addModule as Cs, ENSInfo as Ct, CopyChildDocumentSignal as D, DeleteModuleInputSchema as Da, verifyOperationSignature as Dc, SetOperationTemplateAction as Di, PHDocumentState as Dl, MutationSetAuthorWebsiteArgs as Dn, SetOperationScopeInputSchema as Do, ReorderStateExamplesAction as Dr, addStateExample as Ds, Exact as Dt, CopyChildDocumentInput as E, DeleteChangeLogItemInputSchema as Ea, updateStateExample as Ec, SetOperationScopeInput as Ei, PHBaseState as El, MutationSetAuthorNameArgs as En, SetOperationSchemaInputSchema as Eo, ReorderOperationExamplesInput as Er, addOperationExample as Es, EditorProps as Et, DeleteChangeLogItemInput as F, DocumentSpecificationSchema as Fa, baseCreateDocument as Fc, Set_PreferredEditor as Fi, defaultBaseState as Fl, MutationSetNameArgs as Fn, UndoActionInputSchema as Fo, SchemaNOOPAction as Fr, deleteOperationError as Fs, ISignalResult as Ft, DeleteOperationExampleAction as G, OperationSpecificationSchema as Ga, groupOperationsByScope as Gc, State as Gi, UserActionSigner as Gl, MutationSetStateSchemaArgs as Gn, createRelationalDb as Go, SetAuthorWebsiteInput as Gr, operationWithContext as Gs, LoadStateActionStateInput as Gt, DeleteOperationAction as H, MoveOperationInputSchema as Ha, garbageCollectDocumentOperations as Hc, SigningParameters as Hi, HashConfig as Hl, MutationSetOperationReducerArgs as Hn, isDefinedNonNullAny as Ho, SetAuthorNameAction as Hr, operationExampleCreators as Hs, LoadFromInput as Ht, DeleteChildDocumentInput as I, LoadStateActionInputSchema as Ia, checkCleanedOperationsIntegrity as Ic, Signal as Ii, defaultDocumentState as Il, MutationSetOperationDescriptionArgs as In, UndoActionSchema as Io, SchemaPruneAction as Ir, deleteOperationExample as Is, ISigner as It, DeleteStateExampleAction as J, PruneActionInputSchema as Ja, isNoopOperation as Jc, Undo as Ji, PROCESSOR_APPS as Jl, MutationUpdateOperationExampleArgs as Jn, ExtractProcessorSchemaOrSelf as Jo, SetModelDescriptionAction as Jr, releaseNewVersion as Js, MakeMaybe as Jt, DeleteOperationExampleInput as K, PowerhouseModuleSchema as Ka, hashDocumentStateForScope as Kc, StateReducer as Ki, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Kl, MutationUndoArgs as Kn, hashNamespace as Ko, SetInitialStateAction as Kr, prune as Ks, Load_State as Kt, DeleteChildDocumentSignal as L, LoadStateActionSchema as La, checkOperationsIntegrity as Lc, SignalDispatch as Li, defaultGlobalState as Ll, MutationSetOperationErrorCodeArgs as Ln, UndoSchema as Lo, SchemaRedoAction as Lr, deleteStateExample as Ls, Incremental as Lt, CreateDocumentActionInput as M, DocumentActionSchema as Ma, PHDocumentMeta as Mc, SetStateSchemaAction as Mi, createLocalState as Ml, MutationSetModelNameArgs as Mn, Set_NameSchema as Mo, SaveToFileHandle as Mr, deleteChangeLogItem as Ms, IDocument as Mt, CreateState as N, DocumentModelGlobalStateSchema as Na, addUndo as Nc, SetStateSchemaInput as Ni, createState as Nl, MutationSetModuleDescriptionArgs as Nn, Set_PreferredEditorSchema as No, Scalars as Nr, deleteModule as Ns, IOperation as Nt, CreateChildDocumentInput as O, DeleteOperationErrorInputSchema as Oa, IntegrityIssueSubType as Oc, SetOperationTemplateInput as Oi, createAuthState as Ol, MutationSetInitialStateArgs as On, SetOperationTemplateInputSchema as Oo, ReorderStateExamplesInput as Or, baseActions as Os, FileInput as Ot, DeleteChangeLogItemAction as P, DocumentModelInputSchema as Pa, attachBranch as Pc, Set_Name as Pi, defaultAuthState as Pl, MutationSetModuleNameArgs as Pn, StateSchema as Po, SchemaLoadStateAction as Pr, deleteOperation as Ps, ISignal as Pt, DocumentModelDocument as Q, RedoActionInputSchema as Qa, mapSkippedOperationsV2 as Qc, UpdateChangeLogItemAction as Qi, OperationIndex as Qn, IRelationalDbProcessor as Qo, SetModelIdAction as Qr, reorderOperationErrors as Qs, Maybe as Qt, DeleteDocumentAction as R, LoadStateActionStateInputSchema as Ra, diffOperations as Rc, SignalResult as Ri, defaultLocalState as Rl, MutationSetOperationErrorDescriptionArgs as Rn, UpdateChangeLogItemInputSchema as Ro, SchemaSetNameAction as Rr, documentModelActions as Rs, InputMaybe as Rt, Author as S, AuthorSchema as Sa, setStateSchema as Sc, SetOperationReducerInput as Si, setPreferredEditorOperation as Sl, MutationReorderModulesArgs as Sn, SetOperationErrorNameInputSchema as So, ReorderModulesInput as Sr, addChangeLogItem as Ss, DocumentSpecification as St, ConfigEntryType as T, ConfigEntryTypeSchema as Ta, updateOperationExample as Tc, SetOperationScopeAction as Ti, PHAuthState as Tl, MutationReorderStateExamplesArgs as Tn, SetOperationReducerInputSchema as To, ReorderOperationExamplesAction as Tr, addOperationError as Ts, EditorModule as Tt, DeleteOperationErrorAction as U, OperationErrorSchema as Ua, garbageCollectV2 as Uc, SkipHeaderOperationIndex as Ui, PHDocumentSignatureInfo as Ul, MutationSetOperationSchemaArgs as Un, createNamespacedDb as Uo, SetAuthorNameInput as Ur, operationFromAction as Us, LoadStateAction as Ut, DeleteModuleInput as V, ModuleSchema as Va, garbageCollect as Vc, SignatureVerificationHandler as Vi, AppActionSigner as Vl, MutationSetOperationNameArgs as Vn, definedNonNullAnySchema as Vo, ScopeState as Vr, noop as Vs, LoadFromFile as Vt, DeleteOperationErrorInput as W, OperationScopeSchema as Wa, getDocumentLastModified as Wc, SkipHeaderOperations as Wi, Signature as Wl, MutationSetOperationTemplateArgs as Wn, createNamespacedQueryBuilder as Wo, SetAuthorWebsiteAction as Wr, operationFromOperation as Ws, LoadStateActionInput as Wt, DocumentAction as X, PruneSchema as Xa, isUndoRedo as Xc, UndoActionInput as Xi, NOOPAction as Xn, IBaseRelationalDb as Xo, SetModelExtensionAction as Xr, reorderModuleOperations as Xs, Manifest as Xt, DeleteStateExampleInput as Y, PruneActionSchema as Ya, isUndo as Yc, UndoAction as Yi, MutationUpdateStateExampleArgs as Yn, HashAlgorithms as Yo, SetModelDescriptionInput as Yr, reorderChangeLogItems as Ys, MakeOptional as Yt, DocumentModelAction as Z, PublisherSchema as Za, mapSkippedOperations as Zc, UndoRedoAction as Zi, OperationErrorSpecification as Zn, IRelationalDb as Zo, SetModelExtensionInput as Zr, reorderModules as Zs, MappedOperation as Zt, AddRelationshipActionInput as _, AddModuleInputSchema as _a, setOperationReducer as _c, SetOperationErrorTemplateAction as _i, OperationContext as _l, MutationMoveOperationArgs as _n, SetNameActionInputSchema as _o, ReorderChangeLogItemsAction as _r, ActionContext as _s, DocumentModelStateOperations as _t, Actions as a, UpdateStateExampleInput as aa, setModelExtension as ac, SetModuleNameInput as ai, readOnly as al, MutationAddModuleArgs as an, ReorderOperationExamplesInputSchema as ao, PruneAction as ar, IProcessorHostModule as as, DocumentModelLocalState as at, AssertIsDocumentOfType as b, AddOperationInputSchema as ba, setOperationTemplate as bc, SetOperationNameInput as bi, redoOperation as bl, MutationReorderChangeLogItemsInputArgs as bn, SetOperationErrorCodeInputSchema as bo, ReorderModuleOperationsInput as br, actionSigner as bs, DocumentModelVersioningOperations as bt, AddModuleAction as c, User as ca, setModuleDescription as cc, SetNameOperation as ci, reshuffleByTimestamp as cl, MutationAddOperationExampleArgs as cn, SetAuthorNameInputSchema as co, Query as cr, ProcessorApps as cs, DocumentModelModuleOperations as ct, AddOperationErrorAction as d, UpgradeReducer as da, setOperationDescription as dc, SetOperationErrorCodeAction as di, sortMappedOperations as dl, MutationDeleteModuleArgs as dn, SetModelDescriptionInputSchema as do, RedoActionInput as dr, ProcessorFactoryBuilder as ds, DocumentModelOperationErrorOperations as dt, UpdateOperationExampleAction as ea, reorderStateExamples as ec, SetModelNameAction as ei, nextSkipNumber as el, ModuleSpecification as en, RedoSchema as eo, OperationsByScope as er, IRelationalQueryMethods as es, DocumentModelGlobalState as et, AddOperationErrorInput as f, UpgradeTransition as fa, setOperationErrorCode as fc, SetOperationErrorCodeInput as fi, sortOperations as fl, MutationDeleteOperationArgs as fn, SetModelExtensionInputSchema as fo, Reducer as fr, ProcessorFilter as fs, DocumentModelOperationExampleAction as ft, AddRelationshipAction as g, AddChangeLogItemInputSchema as ga, setOperationName as gc, SetOperationErrorNameInput as gi, Operation as gl, MutationLoadStateArgs as gn, SetModuleNameInputSchema as go, RemoveRelationshipActionInput as gr, Action as gs, DocumentModelStateAction as gt, AddOperationInput as h, computeUpgradeTransitions as ha, setOperationErrorTemplate as hc, SetOperationErrorNameAction as hi, DocumentOperations as hl, MutationDeleteStateExampleArgs as hn, SetModuleDescriptionInputSchema as ho, RemoveRelationshipAction as hr, TrackedProcessor as hs, DocumentModelPHState as ht, ActionVerificationHandler as i, UpdateStateExampleAction as ia, setModelDescription as ic, SetModuleNameAction as ii, prepareOperations as il, MutationAddChangeLogItemInputArgs as in, ReorderOperationErrorsInputSchema as io, Prune as ir, IProcessorDispatch as is, DocumentModelLib as it, CreateDocumentAction as j, DeleteStateExampleInputSchema as ja, PHDocumentHeader as jc, SetPreferredEditorOperation as ji, createGlobalState as jl, MutationSetModelIdArgs as jn, SetStateSchemaInputSchema as jo, SaveToFile as jr, createAction as js, ID as jt, CreateChildDocumentSignal as k, DeleteOperationExampleInputSchema as ka, IntegrityIssueType as kc, SetPreferredEditorAction as ki, createBaseState as kl, MutationSetModelDescriptionArgs as kn, SetPreferredEditorActionInputSchema as ko, ReplayDocumentOptions as kr, buildOperationSignature as ks, GetDocumentOptions as kt, AddModuleInput as l, ValidationError as la, setModuleName as lc, SetOperationDescriptionAction as li, reshuffleByTimestampAndIndex as ll, MutationAddStateExampleArgs as ln, SetAuthorWebsiteInputSchema as lo, Redo as lr, ProcessorDispatchResult as ls, DocumentModelOperationAction as lt, AddOperationExampleInput as m, applyUpgradeDocumentAction as ma, setOperationErrorName as mc, SetOperationErrorDescriptionInput as mi, updateHeaderRevision as ml, MutationDeleteOperationExampleArgs as mn, SetModelNameInputSchema as mo, ReleaseNewVersionAction as mr, ProcessorStatus as ms, DocumentModelOperationOperations as mt, ActionSignatureContext as n, UpdateRelationshipAction as na, setAuthorWebsite as nc, SetModuleDescriptionAction as ni, parseResultingState as nl, MoveOperationInput as nn, ReorderModuleOperationsInputSchema as no, PartialState as nr, RelationalDbProcessorClass as ns, DocumentModelHeaderOperations as nt, AddChangeLogItemAction as o, UpgradeDocumentAction as oa, setModelId as oc, SetNameAction as oi, removeExistingOperations as ol, MutationAddOperationArgs as on, ReorderStateExamplesInputSchema as oo, PruneActionInput as or, IProcessorManager as os, DocumentModelModule as ot, AddOperationExampleAction as p, applyDeleteDocumentAction as pa, setOperationErrorDescription as pc, SetOperationErrorDescriptionAction as pi, split as pl, MutationDeleteOperationErrorArgs as pn, SetModelIdInputSchema as po, ReducerOptions as pr, ProcessorRecord as ps, DocumentModelOperationExampleOperations as pt, DeleteOperationInput as q, PowerhouseModulesSchema as qa, isDocumentAction as qc, SubgraphModule as qi, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as ql, MutationUpdateChangeLogItemInputArgs as qn, relationalDbToQueryBuilder as qo, SetInitialStateInput as qr, redo as qs, MakeEmpty as qt, ActionSigningHandler as r, UpdateRelationshipActionInput as ra, setInitialState as rc, SetModuleDescriptionInput as ri, precedes as rl, Mutation as rn, ReorderModulesInputSchema as ro, PowerhouseModule as rr, IProcessor as rs, DocumentModelInput as rt, AddChangeLogItemInput as s, UpgradeDocumentActionInput as sa, setModelName as sc, SetNameActionInput as si, replayDocument as sl, MutationAddOperationErrorArgs as sn, ScopeStateSchema as so, Publisher as sr, ProcessorApp as ss, DocumentModelModuleAction as st, ActionErrorCallback as t, UpdateOperationExampleInput as ta, setAuthorName as tc, SetModelNameInput as ti, operationsAreEqual as tl, MoveOperationAction as tn, ReorderChangeLogItemsInputSchema as to, PartialRecord as tr, RelationalDbProcessor as ts, DocumentModelHeaderAction as tt, AddOperationAction as u, UpgradeManifest as ua, setName as uc, SetOperationDescriptionInput as ui, skipHeaderOperations as ul, MutationDeleteChangeLogItemInputArgs as un, SetInitialStateInputSchema as uo, RedoAction as ur, ProcessorFactory as us, DocumentModelOperationErrorAction as ut, AddStateExampleAction as v, AddOperationErrorInputSchema as va, setOperationSchema as vc, SetOperationErrorTemplateInput as vi, OperationWithContext$1 as vl, MutationPruneArgs as vn, SetNameActionSchema as vo, ReorderChangeLogItemsInput as vr, actionContext as vs, DocumentModelUtils as vt, ConfigEntry as w, ConfigEntrySchema as wa, updateChangeLogItem as wc, SetOperationSchemaInput as wi, undoOperationV2 as wl, MutationReorderOperationExamplesArgs as wn, SetOperationNameInputSchema as wo, ReorderOperationErrorsInput as wr, addOperation as ws, EditorDispatch as wt, AssertIsStateOfType as x, AddStateExampleInputSchema as xa, setPreferredEditor as xc, SetOperationReducerAction as xi, setNameOperation as xl, MutationReorderModuleOperationsArgs as xn, SetOperationErrorDescriptionInputSchema as xo, ReorderModulesAction as xr, actions as xs, DocumentOperationsIgnoreMap as xt, AddStateExampleInput as y, AddOperationExampleInputSchema as ya, setOperationScope as yc, SetOperationNameAction as yi, loadStateOperation as yl, MutationRedoArgs as yn, SetOperationDescriptionInputSchema as yo, ReorderModuleOperationsAction as yr, actionFromAction as ys, DocumentModelVersioningAction as yt, DeleteDocumentActionInput as z, Load_StateSchema as za, filterDocumentOperationsResultingState as zc, SignalResults as zi, defaultPHState as zl, MutationSetOperationErrorNameArgs as zn, UpdateOperationExampleInputSchema as zo, SchemaSetPreferredEditorAction as zr, loadState as zs, IsDocumentOfType as zt };
|
|
2493
|
-
|
|
2716
|
+
//#region clis/constants.d.ts
|
|
2717
|
+
declare const SERVICE_ACTIONS: readonly ["start", "stop", "status", "setup", "restart"];
|
|
2718
|
+
declare const DRIVES_PRESERVE_STRATEGIES: readonly ["preserve-all", "preserve-by-url-and-detach"];
|
|
2719
|
+
declare const LOG_LEVELS: readonly ["debug", "info", "warn", "error", "verbose"];
|
|
2720
|
+
declare const DEFAULT_REGISTRY_URL: "https://registry.vetra.io";
|
|
2721
|
+
//#endregion
|
|
2722
|
+
//#region clis/types.d.ts
|
|
2723
|
+
type ServiceActions = typeof SERVICE_ACTIONS;
|
|
2724
|
+
type ServiceAction = ServiceActions[number];
|
|
2725
|
+
type DrivePreserveStrategies = typeof DRIVES_PRESERVE_STRATEGIES;
|
|
2726
|
+
type DrivePreserveStrategy = DrivePreserveStrategies[number];
|
|
2727
|
+
type LogLevels = typeof LOG_LEVELS;
|
|
2728
|
+
type LogLevel = LogLevels[number];
|
|
2729
|
+
type ParsedCmdResult<P> = P extends ArgParser<infer Out> ? Out : never;
|
|
2730
|
+
type PackageManagerArgs = ParsedCmdResult<typeof getPackageManagerCommand>;
|
|
2731
|
+
type PHPackageProvider = "npm" | "github" | "local" | "registry";
|
|
2732
|
+
type PathValidation = (dir: string) => boolean;
|
|
2733
|
+
type PowerhousePackage = {
|
|
2734
|
+
packageName: string;
|
|
2735
|
+
version?: string;
|
|
2736
|
+
provider?: PHPackageProvider;
|
|
2737
|
+
url?: string;
|
|
2738
|
+
};
|
|
2739
|
+
type PHConnectBranding = {
|
|
2740
|
+
appName?: string;
|
|
2741
|
+
homeBackground?: string | null;
|
|
2742
|
+
};
|
|
2743
|
+
type PHConnectDefaultDrive = {
|
|
2744
|
+
url: string;
|
|
2745
|
+
name?: string | null;
|
|
2746
|
+
icon?: string | null;
|
|
2747
|
+
};
|
|
2748
|
+
type PHConnectDriveSection = {
|
|
2749
|
+
enabled?: boolean;
|
|
2750
|
+
allowAdd?: boolean;
|
|
2751
|
+
allowDelete?: boolean;
|
|
2752
|
+
};
|
|
2753
|
+
type PHConnectDriveSections = {
|
|
2754
|
+
remote?: PHConnectDriveSection;
|
|
2755
|
+
local?: PHConnectDriveSection;
|
|
2756
|
+
};
|
|
2757
|
+
type PHConnectDrives = {
|
|
2758
|
+
allowAddDrive?: boolean;
|
|
2759
|
+
defaultDrives?: PHConnectDefaultDrive[];
|
|
2760
|
+
preserveStrategy?: DrivePreserveStrategy;
|
|
2761
|
+
sections?: PHConnectDriveSections;
|
|
2762
|
+
};
|
|
2763
|
+
type PHConnectApp = {
|
|
2764
|
+
logLevel?: "debug" | "info" | "warn" | "error";
|
|
2765
|
+
basePath?: string;
|
|
2766
|
+
offline?: boolean;
|
|
2767
|
+
studioMode?: boolean;
|
|
2768
|
+
};
|
|
2769
|
+
type PHConnectAi = {
|
|
2770
|
+
/** Enables the in-browser AI assistant (chat FAB + window). Off by default. */assistantEnabled?: boolean;
|
|
2771
|
+
};
|
|
2772
|
+
type PHConnectPackages = {
|
|
2773
|
+
externalEnabled?: boolean; /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
|
|
2774
|
+
liveReload?: boolean;
|
|
2775
|
+
};
|
|
2776
|
+
type PHRenownRainbowAdapterConfig = {
|
|
2777
|
+
/** WalletConnect project id; required for the rainbow adapter to function. */walletConnectProjectId?: string; /** Optional Infura project id used to build RPC transports. */
|
|
2778
|
+
infuraProjectId?: string;
|
|
2779
|
+
};
|
|
2780
|
+
type PHRenownPrivyAdapterConfig = {
|
|
2781
|
+
/** Privy application id; required for the privy adapter to function. */appId?: string; /** Optional Privy client id. */
|
|
2782
|
+
clientId?: string; /** Login methods this adapter offers; defaults per adapter when omitted. */
|
|
2783
|
+
methods?: string[];
|
|
2784
|
+
};
|
|
2785
|
+
type PHConnectRenownAdapters = {
|
|
2786
|
+
rainbow?: PHRenownRainbowAdapterConfig;
|
|
2787
|
+
privy?: PHRenownPrivyAdapterConfig;
|
|
2788
|
+
};
|
|
2789
|
+
type PHConnectRenown = {
|
|
2790
|
+
url?: string;
|
|
2791
|
+
networkId?: string;
|
|
2792
|
+
chainId?: number; /** Renown localStorage namespace; share it across Connects to share login. */
|
|
2793
|
+
namespace?: string; /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
|
|
2794
|
+
switchboardUrl?: string; /** Per-adapter wallet config; presence of a key enables that adapter. */
|
|
2795
|
+
adapters?: PHConnectRenownAdapters;
|
|
2796
|
+
};
|
|
2797
|
+
type PHConnectSentry = {
|
|
2798
|
+
/** Sentry DSN URL. `null` disables Sentry entirely. */dsn?: string | null; /** Sentry environment label. */
|
|
2799
|
+
env?: string; /** Enable Sentry performance tracing. */
|
|
2800
|
+
tracing?: boolean;
|
|
2801
|
+
};
|
|
2802
|
+
type PHConnectInstance = {
|
|
2803
|
+
namespace: string | null;
|
|
2804
|
+
reactorWorker: boolean;
|
|
2805
|
+
};
|
|
2806
|
+
/** Each flag implies its predecessors, and must match the fleet Connect syncs
|
|
2807
|
+
* with or the two compute different replay outcomes. */
|
|
2808
|
+
type PHConnectReactorFeatureFlags = {
|
|
2809
|
+
/** Decide writes from the document stream instead of the meta cache. */documentDecisions?: boolean; /** Enforce the auth scope's policy at admission, replay, and read. */
|
|
2810
|
+
authEnforcement?: boolean; /** Let `{ group }` principals match, via the group documents' rosters. */
|
|
2811
|
+
authGroups?: boolean; /** Evaluate `where` / `match` conditions on grants. */
|
|
2812
|
+
authConditions?: boolean;
|
|
2813
|
+
};
|
|
2814
|
+
type PHConnectReactor = {
|
|
2815
|
+
featureFlags?: PHConnectReactorFeatureFlags;
|
|
2816
|
+
};
|
|
2817
|
+
/**
|
|
2818
|
+
* A URL-matching pattern for a service-worker runtime-caching rule, in
|
|
2819
|
+
* JSON-serialisable form. A plain string is handed to Workbox verbatim (exact
|
|
2820
|
+
* URL or same-origin path match). `{ source, flags }` is reconstructed into a
|
|
2821
|
+
* `RegExp` at build time — use it for prefix/suffix/origin matches (e.g.
|
|
2822
|
+
* `{ source: "^https://api\\.acme\\.io/" }`). Function-valued patterns aren't
|
|
2823
|
+
* expressible here; regex covers the realistic package cases.
|
|
2824
|
+
*/
|
|
2825
|
+
type PHConnectPwaUrlPattern = string | {
|
|
2826
|
+
source: string;
|
|
2827
|
+
flags?: string;
|
|
2828
|
+
};
|
|
2829
|
+
type PHConnectPwaCacheStrategy = "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
|
|
2830
|
+
/** Serialisable subset of a Workbox `RuntimeCaching` rule. */
|
|
2831
|
+
type PHConnectPwaRuntimeCaching = {
|
|
2832
|
+
urlPattern: PHConnectPwaUrlPattern;
|
|
2833
|
+
handler: PHConnectPwaCacheStrategy;
|
|
2834
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "PATCH";
|
|
2835
|
+
options?: {
|
|
2836
|
+
cacheName?: string;
|
|
2837
|
+
/** Seconds a NetworkFirst rule waits for the network before falling back
|
|
2838
|
+
* to the cache. */
|
|
2839
|
+
networkTimeoutSeconds?: number;
|
|
2840
|
+
expiration?: {
|
|
2841
|
+
maxEntries?: number;
|
|
2842
|
+
maxAgeSeconds?: number;
|
|
2843
|
+
};
|
|
2844
|
+
cacheableResponse?: {
|
|
2845
|
+
statuses?: number[];
|
|
2846
|
+
headers?: Record<string, string>;
|
|
2847
|
+
};
|
|
2848
|
+
};
|
|
2849
|
+
};
|
|
2850
|
+
type PHConnectPwaIcon = {
|
|
2851
|
+
src: string;
|
|
2852
|
+
sizes?: string;
|
|
2853
|
+
type?: string;
|
|
2854
|
+
purpose?: string;
|
|
2855
|
+
};
|
|
2856
|
+
/**
|
|
2857
|
+
* A File Handling API entry a package or project contributes: the OS-level
|
|
2858
|
+
* file types the installed Connect PWA offers to open. There is deliberately
|
|
2859
|
+
* no `action` field — consuming launched files requires runtime code that
|
|
2860
|
+
* lives in Connect itself, so every handler (built-in or contributed) opens
|
|
2861
|
+
* at Connect's app root, injected at build time.
|
|
2862
|
+
*/
|
|
2863
|
+
type PHConnectPwaFileHandler = {
|
|
2864
|
+
/** MIME type → file extensions (each must start with "."). */accept: Record<string, string[]>; /** OS-level file-type icons. */
|
|
2865
|
+
icons?: PHConnectPwaIcon[];
|
|
2866
|
+
launch_type?: "single-client" | "multiple-clients";
|
|
2867
|
+
};
|
|
2868
|
+
/** Web-app-manifest fields a package or project may override. */
|
|
2869
|
+
type PHConnectPwaManifest = {
|
|
2870
|
+
name?: string;
|
|
2871
|
+
short_name?: string;
|
|
2872
|
+
description?: string;
|
|
2873
|
+
theme_color?: string;
|
|
2874
|
+
background_color?: string;
|
|
2875
|
+
display?: "fullscreen" | "standalone" | "minimal-ui" | "browser";
|
|
2876
|
+
start_url?: string;
|
|
2877
|
+
scope?: string;
|
|
2878
|
+
icons?: PHConnectPwaIcon[]; /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
|
|
2879
|
+
file_handlers?: PHConnectPwaFileHandler[]; /** How the OS launches the app for handled files/links. */
|
|
2880
|
+
launch_handler?: {
|
|
2881
|
+
client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
|
|
2882
|
+
};
|
|
2883
|
+
/** App-store-style categories. NOT authored under `connect.pwa` — derived at
|
|
2884
|
+
* build/runtime from the `category` field of every contributing
|
|
2885
|
+
* `powerhouse.manifest.json` (project + packages), unioned across them. */
|
|
2886
|
+
categories?: string[];
|
|
2887
|
+
};
|
|
2888
|
+
/**
|
|
2889
|
+
* PWA / service-worker overrides contributed by a package or the project.
|
|
2890
|
+
* Layered on top of Connect's hardcoded PWA defaults at build time. Scalar
|
|
2891
|
+
* fields deep-merge (later layer wins); every array member — the manifest
|
|
2892
|
+
* arrays (`icons`, `file_handlers`, and the derived `categories`) plus the
|
|
2893
|
+
* top-level `globPatterns`, `globIgnores`, `runtimeCaching` and
|
|
2894
|
+
* `navigateFallbackDenylist` — is additive (concatenated/unioned);
|
|
2895
|
+
* `maximumFileSizeToCacheInBytes` takes the max across contributors.
|
|
2896
|
+
* Precedence: defaults < package fragments < project config.
|
|
2897
|
+
*/
|
|
2898
|
+
type PHConnectPwa = {
|
|
2899
|
+
manifest?: PHConnectPwaManifest; /** Extra Workbox precache globs, unioned with the built-in patterns. */
|
|
2900
|
+
globPatterns?: string[]; /** Extra Workbox precache ignore globs, unioned with the built-in list. */
|
|
2901
|
+
globIgnores?: string[]; /** Raise the precache file-size ceiling; the max across contributors wins. */
|
|
2902
|
+
maximumFileSizeToCacheInBytes?: number; /** Additional runtime-caching rules, appended after the built-in rules. */
|
|
2903
|
+
runtimeCaching?: PHConnectPwaRuntimeCaching[]; /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
|
|
2904
|
+
navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
|
|
2905
|
+
};
|
|
2906
|
+
type PHConnectRuntimeConfig = {
|
|
2907
|
+
branding?: PHConnectBranding;
|
|
2908
|
+
app?: PHConnectApp;
|
|
2909
|
+
ai?: PHConnectAi;
|
|
2910
|
+
packages?: PHConnectPackages;
|
|
2911
|
+
drives?: PHConnectDrives;
|
|
2912
|
+
renown?: PHConnectRenown;
|
|
2913
|
+
sentry?: PHConnectSentry;
|
|
2914
|
+
instance?: PHConnectInstance;
|
|
2915
|
+
reactor?: PHConnectReactor;
|
|
2916
|
+
pwa?: PHConnectPwa;
|
|
2917
|
+
};
|
|
2918
|
+
/** Which Renown instance a reactor authenticates against, server-side. */
|
|
2919
|
+
type PHReactorRenown = {
|
|
2920
|
+
/** "self" reads this reactor's own renown read model; "remote" (default)
|
|
2921
|
+
* queries a Renown or Switchboard instance. */
|
|
2922
|
+
source?: "remote" | "self"; /** Renown base URL; also the instance this reactor's own identity uses. */
|
|
2923
|
+
url?: string; /** Switchboard GraphQL endpoint to read credentials from directly. */
|
|
2924
|
+
switchboardUrl?: string;
|
|
2925
|
+
};
|
|
2926
|
+
type PowerhouseConfig = {
|
|
2927
|
+
logLevel: LogLevel;
|
|
2928
|
+
documentModelsDir: string;
|
|
2929
|
+
editorsDir: string;
|
|
2930
|
+
processorsDir: string;
|
|
2931
|
+
subgraphsDir: string;
|
|
2932
|
+
importScriptsDir: string;
|
|
2933
|
+
skipFormat: boolean;
|
|
2934
|
+
interactive?: boolean;
|
|
2935
|
+
watch?: boolean;
|
|
2936
|
+
reactor?: {
|
|
2937
|
+
port?: number;
|
|
2938
|
+
https?: undefined | boolean | {
|
|
2939
|
+
keyPath: string;
|
|
2940
|
+
certPath: string;
|
|
2941
|
+
};
|
|
2942
|
+
storage?: {
|
|
2943
|
+
type: "filesystem" | "memory" | "postgres" | "browser";
|
|
2944
|
+
filesystemPath?: string;
|
|
2945
|
+
postgresUrl?: string;
|
|
2946
|
+
};
|
|
2947
|
+
};
|
|
2948
|
+
auth?: {
|
|
2949
|
+
enabled?: boolean;
|
|
2950
|
+
admins: string[];
|
|
2951
|
+
renown?: PHReactorRenown;
|
|
2952
|
+
};
|
|
2953
|
+
switchboard?: {
|
|
2954
|
+
database?: {
|
|
2955
|
+
url?: string;
|
|
2956
|
+
};
|
|
2957
|
+
port?: number;
|
|
2958
|
+
};
|
|
2959
|
+
studio?: {
|
|
2960
|
+
port?: number;
|
|
2961
|
+
host?: string;
|
|
2962
|
+
https: boolean;
|
|
2963
|
+
openBrowser?: boolean;
|
|
2964
|
+
};
|
|
2965
|
+
packages?: PowerhousePackage[];
|
|
2966
|
+
vetra?: {
|
|
2967
|
+
driveId?: string;
|
|
2968
|
+
driveUrl?: string;
|
|
2969
|
+
connectPort?: number;
|
|
2970
|
+
};
|
|
2971
|
+
packageRegistryUrl?: string;
|
|
2972
|
+
connect?: PHConnectRuntimeConfig;
|
|
2973
|
+
};
|
|
2974
|
+
//#endregion
|
|
2975
|
+
export { AddOperationInput as $, applyDeleteDocumentAction as $a, setOperationDescription as $c, SetOperationErrorDescriptionAction as $i, reshuffleByTimestampAndIndex as $l, MutationDeleteStateExampleArgs as $n, SetModelDescriptionInputSchema as $o, ReducerOptions as $r, ProcessorFactoryBuilder as $s, DocumentModelPHState as $t, PHRenownRainbowAdapterConfig as A, SkipHeaderOperations as Aa, operationExampleCreators as Ac, SetAuthorWebsiteAction as Ai, filterDuplicatedOperations as Al, Load_State as An, OperationErrorSchema as Ao, MutationUndoArgs as Ar, isDefinedNonNullAny as As, DeleteOperationExampleInput as At, createDocumentState as Au, ActionSignatureContext as B, UpdateOperationExampleAction as Ba, reorderOperationErrors as Bc, SetModelNameAction as Bi, isUndoRedo as Bl, MoveOperationInput as Bn, RedoActionInputSchema as Bo, PartialState as Br, IRelationalDbProcessor as Bs, DocumentModelHeaderOperations as Bt, ActionSigner as Bu, PHConnectRenown as C, SignalDispatch as Ca, deleteOperationError as Cc, SchemaRedoAction as Ci, attachBranch as Cl, IsDocumentOfType as Cn, LoadStateActionInputSchema as Co, MutationSetOperationErrorNameArgs as Cr, UndoActionInputSchema as Cs, DeleteDocumentActionInput as Ct, PHBaseState as Cu, PHPackageProvider as D, SignatureVerificationHandler as Da, loadState as Dc, ScopeState as Di, checkOperationsIntegrity as Dl, LoadStateAction as Dn, ManifestSchema as Do, MutationSetOperationSchemaArgs as Dr, UpdateOperationExampleInputSchema as Ds, DeleteOperationErrorAction as Dt, backfillAuthState as Du, PHConnectSentry as E, SignalType as Ea, documentModelActions as Ec, SchemaUndoAction as Ei, checkCleanedOperationsIntegrity as El, LoadFromInput as En, Load_StateSchema as Eo, MutationSetOperationReducerArgs as Er, UpdateChangeLogItemInputSchema as Es, DeleteOperationAction as Et, Principal as Eu, PowerhousePackage as F, UndoAction as Fa, redo as Fc, SetModelDescriptionInput as Fi, groupOperationsByScope as Fl, MappedOperation as Fn, PruneActionInputSchema as Fo, OperationErrorSpecification as Fr, relationalDbToQueryBuilder as Fs, DocumentModelAction as Ft, defaultBaseState as Fu, AddChangeLogItemInput as G, UpdateStateExampleInput as Ga, setInitialState as Gc, SetModuleNameInput as Gi, operationsAreEqual as Gl, MutationAddOperationErrorArgs as Gn, ReorderModulesInputSchema as Go, PruneAction as Gr, IProcessor as Gs, DocumentModelModuleAction as Gt, UserActionSigner as Gu, ActionVerificationHandler as H, UpdateRelationshipAction as Ha, reorderStateExamples as Hc, SetModuleDescriptionAction as Hi, mapSkippedOperationsV2 as Hl, MutationAddChangeLogItemInputArgs as Hn, RedoSchema as Ho, PhAiToolDescriptor as Hr, IRelationalQueryMethods as Hs, DocumentModelLib as Ht, HashConfig as Hu, ServiceAction as I, UndoActionInput as Ia, releaseNewVersion as Ic, SetModelExtensionAction as Ii, hashDocumentStateForScope as Il, Maybe as In, PruneActionSchema as Io, OperationIndex as Ir, ExtractProcessorSchemaOrSelf as Is, DocumentModelDocument as It, defaultDocumentState as Iu, AddOperationAction as J, User as Ja, setModelId as Jc, SetNameOperation as Ji, prepareOperations as Jl, MutationDeleteChangeLogItemInputArgs as Jn, ReorderStateExamplesInputSchema as Jo, Query as Jr, IProcessorManager as Js, DocumentModelOperationErrorAction as Jt, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Ju, AddModuleAction as K, UpgradeDocumentAction as Ka, setModelDescription as Kc, SetNameAction as Ki, parseResultingState as Kl, MutationAddOperationExampleArgs as Kn, ReorderOperationErrorsInputSchema as Ko, PruneActionInput as Kr, IProcessorDispatch as Ks, DocumentModelModuleOperations as Kt, deserializeSignature as Ku, ServiceActions as L, UndoRedoAction as La, reorderChangeLogItems as Lc, SetModelExtensionInput as Li, isDocumentAction as Ll, MinimalBackupData as Ln, PruneSchema as Lo, OperationSpecification as Lr, HashAlgorithms as Ls, DocumentModelDocumentModelModule as Lt, defaultGlobalState as Lu, ParsedCmdResult as M, StateReducer as Ma, operationFromOperation as Mc, SetInitialStateAction as Mi, garbageCollectDocumentOperations as Ml, MakeMaybe as Mn, OperationSpecificationSchema as Mo, MutationUpdateOperationExampleArgs as Mr, createNamespacedQueryBuilder as Ms, DeleteStateExampleAction as Mt, createLocalState as Mu, PathValidation as N, SubgraphModule as Na, operationWithContext as Nc, SetInitialStateInput as Ni, garbageCollectV2 as Nl, MakeOptional as Nn, PowerhouseModuleSchema as No, MutationUpdateStateExampleArgs as Nr, createRelationalDb as Ns, DeleteStateExampleInput as Nt, createState as Nu, PHReactorRenown as O, SigningParameters as Oa, moveOperation as Oc, SetAuthorNameAction as Oi, diffOperations as Ol, LoadStateActionInput as On, ModuleSchema as Oo, MutationSetOperationTemplateArgs as Or, UpdateStateExampleInputSchema as Os, DeleteOperationErrorInput as Ot, createAuthState as Ou, PowerhouseConfig as P, Undo as Pa, prune as Pc, SetModelDescriptionAction as Pi, getDocumentLastModified as Pl, Manifest as Pn, PowerhouseModulesSchema as Po, NOOPAction as Pr, hashNamespace as Ps, DocumentAction as Pt, defaultAuthState as Pu, AddOperationExampleInput as Q, UpgradeTransition as Qa, setName as Qc, SetOperationErrorCodeInput as Qi, reshuffleByTimestamp as Ql, MutationDeleteOperationExampleArgs as Qn, SetInitialStateInputSchema as Qo, Reducer as Qr, ProcessorFactory as Qs, DocumentModelOperationOperations as Qt, DEFAULT_REGISTRY_URL as R, UpdateChangeLogItemAction as Ra, reorderModuleOperations as Rc, SetModelIdAction as Ri, isNoopOperation as Rl, ModuleSpecification as Rn, PublisherSchema as Ro, OperationsByScope as Rr, IBaseRelationalDb as Rs, DocumentModelGlobalState as Rt, defaultLocalState as Ru, PHConnectReactorFeatureFlags as S, Signal as Sa, deleteOperation as Sc, SchemaPruneAction as Si, appendWithoutApplying as Sl, InputMaybe as Sn, DocumentSpecificationSchema as So, MutationSetOperationErrorDescriptionArgs as Sr, StateSchema as Ss, DeleteDocumentAction as St, PHAuthState as Su, PHConnectRuntimeConfig as T, SignalResults as Ta, deleteStateExample as Tc, SchemaSetPreferredEditorAction as Ti, baseReducerVersion as Tl, LoadFromFile as Tn, LoadStateActionStateInputSchema as To, MutationSetOperationNameArgs as Tr, UndoSchema as Ts, DeleteModuleInput as Tt, PHGroupState as Tu, Actions as U, UpdateRelationshipActionInput as Ua, setAuthorName as Uc, SetModuleDescriptionInput as Ui, merge as Ul, MutationAddModuleArgs as Un, ReorderChangeLogItemsInputSchema as Uo, PowerhouseModule as Ur, RelationalDbProcessor as Us, DocumentModelLocalState as Ut, PHDocumentSignatureInfo as Uu, ActionSigningHandler as V, UpdateOperationExampleInput as Va, reorderOperationExamples as Vc, SetModelNameInput as Vi, mapSkippedOperations as Vl, Mutation as Vn, RedoActionSchema as Vo, PhAiToolAnnotations as Vr, IRelationalQueryBuilder as Vs, DocumentModelInput as Vt, AppActionSigner as Vu, AddChangeLogItemAction as W, UpdateStateExampleAction as Wa, setAuthorWebsite as Wc, SetModuleNameAction as Wi, nextSkipNumber as Wl, MutationAddOperationArgs as Wn, ReorderModuleOperationsInputSchema as Wo, Prune as Wr, RelationalDbProcessorClass as Ws, DocumentModelModule as Wt, Signature as Wu, AddOperationErrorInput as X, UpgradeManifest as Xa, setModuleDescription as Xc, SetOperationDescriptionInput as Xi, removeExistingOperations as Xl, MutationDeleteOperationArgs as Xn, SetAuthorNameInputSchema as Xo, RedoAction as Xr, ProcessorApps as Xs, DocumentModelOperationExampleAction as Xt, PROCESSOR_APPS as Xu, AddOperationErrorAction as Y, ValidationError as Ya, setModelName as Yc, SetOperationDescriptionAction as Yi, readOnly as Yl, MutationDeleteModuleArgs as Yn, ScopeStateSchema as Yo, Redo as Yr, ProcessorApp as Ys, DocumentModelOperationErrorOperations as Yt, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Yu, AddOperationExampleAction as Z, UpgradeReducer as Za, setModuleName as Zc, SetOperationErrorCodeAction as Zi, replayDocument as Zl, MutationDeleteOperationErrorArgs as Zn, SetAuthorWebsiteInputSchema as Zo, RedoActionInput as Zr, ProcessorDispatchResult as Zs, DocumentModelOperationExampleOperations as Zt, PHConnectPwaIcon as _, SetPreferredEditorOperation as _a, buildOperationSignature as _c, SaveToFile as _i, IntegrityIssueType as _l, IOperation as _n, DeleteOperationInputSchema as _o, MutationSetModuleDescriptionArgs as _r, SetPreferredEditorActionInputSchema as _s, CreateState as _t, AuthGroups as _u, PHConnectAi as a, SetOperationNameAction as aa, ActionContext as ac, ReorderModuleOperationsAction as ai, setOperationReducer as al, DocumentOperationsIgnoreMap as an, AddOperationErrorInputSchema as ao, MutationReorderModuleOperationsArgs as ar, SetNameActionInputSchema as as, AssertIsStateOfType as at, DocumentOperations as au, PHConnectPwaUrlPattern as b, Set_Name as ba, deleteChangeLogItem as bc, SchemaLoadStateAction as bi, PHDocumentMeta as bl, ISigner as bn, DocumentModelGlobalStateSchema as bo, MutationSetOperationDescriptionArgs as br, Set_NameSchema as bs, DeleteChildDocumentInput as bt, Grant as bu, PHConnectDefaultDrive as c, SetOperationReducerInput as ca, actionSigner as cc, ReorderModulesInput as ci, setOperationTemplate as cl, EditorDispatch as cn, AddStateExampleInputSchema as co, MutationReorderOperationExamplesArgs as cr, SetOperationErrorCodeInputSchema as cs, ConfigEntry as ct, OperationOutcome as cu, PHConnectDrives as d, SetOperationScopeAction as da, addModule as dc, ReorderOperationExamplesAction as di, undo as dl, Exact as dn, ConfigEntrySchema as do, MutationSetAuthorWebsiteArgs as dr, SetOperationErrorTemplateInputSchema as ds, CopyChildDocumentSignal as dt, operationOutcome as du, SetOperationErrorDescriptionInput as ea, ProcessorFilter as ec, ReleaseNewVersionAction as ei, setOperationErrorCode as el, DocumentModelStateAction as en, applyUpgradeDocumentAction as eo, MutationLoadStateArgs as er, SetModelExtensionInputSchema as es, AddRelationshipAction as et, skipHeaderOperations as eu, PHConnectInstance as f, SetOperationScopeInput as fa, addOperation as fc, ReorderOperationExamplesInput as fi, updateChangeLogItem as fl, FileInput as fn, ConfigEntryTypeSchema as fo, MutationSetInitialStateArgs as fr, SetOperationNameInputSchema as fs, CreateChildDocumentInput as ft, redoOperation as fu, PHConnectPwaFileHandler as g, SetPreferredEditorActionInput as ga, baseActions as gc, RevisionsFilter as gi, IntegrityIssueSubType as gl, IDocument as gn, DeleteOperationExampleInputSchema as go, MutationSetModelNameArgs as gr, SetOperationTemplateInputSchema as gs, CreateDocumentActionInput as gt, undoOperationV2 as gu, PHConnectPwaCacheStrategy as h, SetPreferredEditorAction as ha, addStateExample as hc, ReplayDocumentOptions as hi, verifyOperationSignature as hl, ID as hn, DeleteOperationErrorInputSchema as ho, MutationSetModelIdArgs as hr, SetOperationScopeInputSchema as hs, CreateDocumentAction as ht, undoOperation as hu, LogLevels as i, SetOperationErrorTemplateInput as ia, Action as ic, ReorderChangeLogItemsInput as ii, setOperationName as il, DocumentModelVersioningOperations as in, AddModuleInputSchema as io, MutationReorderChangeLogItemsInputArgs as ir, SetModuleNameInputSchema as is, AssertIsDocumentOfType as it, updateHeaderRevision as iu, PackageManagerArgs as j, State as ja, operationFromAction as jc, SetAuthorWebsiteInput as ji, garbageCollect as jl, MakeEmpty as jn, OperationScopeSchema as jo, MutationUpdateChangeLogItemInputArgs as jr, createNamespacedDb as js, DeleteOperationInput as jt, createGlobalState as ju, PHRenownPrivyAdapterConfig as k, SkipHeaderOperationIndex as ka, noop as kc, SetAuthorNameInput as ki, filterDocumentOperationsResultingState as kl, LoadStateActionStateInput as kn, MoveOperationInputSchema as ko, MutationSetStateSchemaArgs as kr, definedNonNullAnySchema as ks, DeleteOperationExampleAction as kt, createBaseState as ku, PHConnectDriveSection as l, SetOperationSchemaAction as la, actions as lc, ReorderOperationErrorsAction as li, setPreferredEditor as ll, EditorModule as ln, AuthorSchema as lo, MutationReorderStateExamplesArgs as lr, SetOperationErrorDescriptionInputSchema as ls, ConfigEntryType as lt, OperationWithContext$1 as lu, PHConnectPwa as m, SetOperationTemplateInput as ma, addOperationExample as mc, ReorderStateExamplesInput as mi, updateStateExample as ml, IAction as mn, DeleteModuleInputSchema as mo, MutationSetModelExtensionArgs as mr, SetOperationSchemaInputSchema as ms, CreateDocument as mt, setPreferredEditorOperation as mu, DrivePreserveStrategy as n, SetOperationErrorNameInput as na, ProcessorStatus as nc, RemoveRelationshipActionInput as ni, setOperationErrorName as nl, DocumentModelUtils as nn, normalizeDocumentModelVersion as no, MutationPruneArgs as nr, SetModelNameInputSchema as ns, AddStateExampleAction as nt, sortOperations as nu, PHConnectApp as o, SetOperationNameInput as oa, actionContext as oc, ReorderModuleOperationsInput as oi, setOperationSchema as ol, DocumentSpecification as on, AddOperationExampleInputSchema as oo, MutationReorderModulesArgs as or, SetNameActionSchema as os, Author as ot, Operation as ou, PHConnectPackages as p, SetOperationTemplateAction as pa, addOperationError as pc, ReorderStateExamplesAction as pi, updateOperationExample as pl, GetDocumentOptions as pn, DeleteChangeLogItemInputSchema as po, MutationSetModelDescriptionArgs as pr, SetOperationReducerInputSchema as ps, CreateChildDocumentSignal as pt, setNameOperation as pu, AddModuleInput as q, UpgradeDocumentActionInput as qa, setModelExtension as qc, SetNameActionInput as qi, precedes as ql, MutationAddStateExampleArgs as qn, ReorderOperationExamplesInputSchema as qo, Publisher as qr, IProcessorHostModuleBase as qs, DocumentModelOperationAction as qt, serializeSignature as qu, LogLevel as r, SetOperationErrorTemplateAction as ra, TrackedProcessor as rc, ReorderChangeLogItemsAction as ri, setOperationErrorTemplate as rl, DocumentModelVersioningAction as rn, AddChangeLogItemInputSchema as ro, MutationRedoArgs as rr, SetModuleDescriptionInputSchema as rs, AddStateExampleInput as rt, split as ru, PHConnectBranding as s, SetOperationReducerAction as sa, actionFromAction as sc, ReorderModulesAction as si, setOperationScope as sl, ENSInfo as sn, AddOperationInputSchema as so, MutationReorderOperationErrorsArgs as sr, SetOperationDescriptionInputSchema as ss, CodeExample as st, OperationContext as su, DrivePreserveStrategies as t, SetOperationErrorNameAction as ta, ProcessorRecord as tc, RemoveRelationshipAction as ti, setOperationErrorDescription as tl, DocumentModelStateOperations as tn, computeUpgradeTransitions as to, MutationMoveOperationArgs as tr, SetModelIdInputSchema as ts, AddRelationshipActionInput as tt, sortMappedOperations as tu, PHConnectDriveSections as u, SetOperationSchemaInput as ua, addChangeLogItem as uc, ReorderOperationErrorsInput as ui, setStateSchema as ul, EditorProps as un, CodeExampleSchema as uo, MutationSetAuthorNameArgs as ur, SetOperationErrorNameInputSchema as us, CopyChildDocumentInput as ut, loadStateOperation as uu, PHConnectPwaManifest as v, SetStateSchemaAction as va, buildSignedAction as vc, SaveToFileHandle as vi, PHDocument as vl, ISignal as vn, DeleteStateExampleInputSchema as vo, MutationSetModuleNameArgs as vr, SetPreferredEditorActionSchema as vs, DeleteChangeLogItemAction as vt, Capability as vu, PHConnectRenownAdapters as w, SignalResult as wa, deleteOperationExample as wc, SchemaSetNameAction as wi, baseCreateDocument as wl, IsStateOfType as wn, LoadStateActionSchema as wo, MutationSetOperationErrorTemplateArgs as wr, UndoActionSchema as ws, DeleteModuleAction as wt, PHDocumentState as wu, PHConnectReactor as x, Set_PreferredEditor as xa, deleteModule as xc, SchemaNOOPAction as xi, addUndo as xl, Incremental as xn, DocumentModelInputSchema as xo, MutationSetOperationErrorCodeArgs as xr, Set_PreferredEditorSchema as xs, DeleteChildDocumentSignal as xt, Operand as xu, PHConnectPwaRuntimeCaching as y, SetStateSchemaInput as ya, createAction as yc, Scalars as yi, PHDocumentHeader as yl, ISignalResult as yn, DocumentActionSchema as yo, MutationSetNameArgs as yr, SetStateSchemaInputSchema as ys, DeleteChangeLogItemInput as yt, Condition as yu, ActionErrorCallback as z, UpdateChangeLogItemInput as za, reorderModules as zc, SetModelIdInput as zi, isUndo as zl, MoveOperationAction as zn, PwaConfigSchema as zo, PartialRecord as zr, IRelationalDb as zs, DocumentModelHeaderAction as zt, defaultPHState as zu };
|
|
2976
|
+
//# sourceMappingURL=types-DBj2HxyL.d.ts.map
|