@powerhousedao/shared 6.2.2-dev.4 → 6.2.2-dev.41
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.mjs +1 -1
- package/dist/clis/args/{common-DfMf08ur.d.mts → common-B_LcTLHX.d.mts} +7 -4
- package/dist/clis/args/{common-DfMf08ur.d.mts.map → common-B_LcTLHX.d.mts.map} +1 -1
- 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.d.mts +2 -2
- package/dist/clis/args/common.mjs +2 -2
- package/dist/clis/args/connect.d.mts +14 -5
- package/dist/clis/args/connect.d.mts.map +1 -1
- package/dist/clis/args/connect.mjs +2 -1
- package/dist/clis/args/connect.mjs.map +1 -1
- package/dist/clis/args/{generate-Cs5okckF.mjs → generate-CQ78RxVS.mjs} +2 -2
- package/dist/clis/args/{generate-Cs5okckF.mjs.map → generate-CQ78RxVS.mjs.map} +1 -1
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-BkF9Cxud.mjs → help-Dk-d57W1.mjs} +3 -3
- package/dist/clis/args/{help-BkF9Cxud.mjs.map → help-Dk-d57W1.mjs.map} +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +2 -2
- package/dist/clis/args/index.mjs +4 -4
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/vetra.d.mts +1 -1
- package/dist/clis/args/vetra.mjs +1 -1
- 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 +156 -49
- package/dist/clis/constants.d.mts.map +1 -1
- package/dist/clis/constants.mjs +6 -2
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +423 -5
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +258 -3
- package/dist/clis/index.mjs.map +1 -1
- package/dist/connect/config-loader.d.ts +2 -1
- package/dist/connect/config-loader.d.ts.map +1 -1
- package/dist/connect/index.d.ts +399 -2
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +465 -1
- 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-drive/index.d.ts.map +1 -1
- package/dist/document-model/index.d.ts +5 -5
- package/dist/document-model/index.js +935 -126
- package/dist/document-model/index.js.map +1 -1
- package/dist/document-model/mock.d.ts +1 -1
- package/dist/document-model/mock.js +32 -3
- package/dist/document-model/mock.js.map +1 -1
- package/dist/document-model/utils.d.ts +2 -2
- package/dist/document-model/utils.js +1 -1
- package/dist/{index-CQDIrK1k.d.ts → index-BJU79_T5.d.ts} +1 -1
- package/dist/index-BJU79_T5.d.ts.map +1 -0
- package/dist/{index-DLx4nU83.d.ts → index-Dn1S-xxm.d.ts} +310 -3
- package/dist/index-Dn1S-xxm.d.ts.map +1 -0
- package/dist/index.d.ts +5 -6
- package/dist/mock-BcFWPQyK.d.ts +22 -0
- package/dist/mock-BcFWPQyK.d.ts.map +1 -0
- package/dist/processors/index.d.ts +1 -1
- package/dist/registry/index.d.ts +5 -4
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +5 -4
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +1 -1
- package/dist/registry/manifest-slim.d.ts.map +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-Bo4Rb8Yf.d.ts → types-C_b4aIlv.d.ts} +404 -12
- package/dist/types-C_b4aIlv.d.ts.map +1 -0
- package/dist/{types-CgGSyOl6.d.ts → types-DctifWUG.d.ts} +32 -3
- package/dist/{types-CgGSyOl6.d.ts.map → types-DctifWUG.d.ts.map} +1 -1
- package/dist/{utils-BEByNOHo.d.ts → utils-1EXU6Qr1.d.ts} +1 -1
- package/dist/utils-1EXU6Qr1.d.ts.map +1 -0
- package/dist/{utils-DKOFCM0Q.js → utils-CTt1XRn-.js} +36 -2
- package/dist/utils-CTt1XRn-.js.map +1 -0
- package/package.json +1 -1
- package/dist/clis/args/common-dbsvksvf.mjs.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-DLx4nU83.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-Bo4Rb8Yf.d.ts.map +0 -1
- package/dist/types-D0NNBVGA.d.ts +0 -167
- package/dist/types-D0NNBVGA.d.ts.map +0 -1
- package/dist/utils-BEByNOHo.d.ts.map +0 -1
- package/dist/utils-DKOFCM0Q.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as generateMock } from "../mock-
|
|
1
|
+
import { t as generateMock } from "../mock-BcFWPQyK.js";
|
|
2
2
|
export { generateMock };
|
|
@@ -1,10 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { zocker } from "zocker";
|
|
2
3
|
//#region document-model/mock.ts
|
|
4
|
+
/**
|
|
5
|
+
* Narrows to an object schema whose shape we can omit keys from. Callers may
|
|
6
|
+
* pass any `ZodType`, so this has to be checked rather than assumed.
|
|
7
|
+
*/
|
|
8
|
+
function isObjectSchema(schema) {
|
|
9
|
+
return schema instanceof z.ZodObject;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Builds a mock value for a schema, with `overrides` taking precedence.
|
|
13
|
+
*
|
|
14
|
+
* Overridden fields are removed from the schema *before* generation rather than
|
|
15
|
+
* being overwritten afterwards. That ordering is what makes overrides usable as
|
|
16
|
+
* an escape hatch: some scalars compile to `z.custom(...)` (`AttachmentRef`,
|
|
17
|
+
* `Address`), and zocker cannot synthesise a value satisfying an arbitrary
|
|
18
|
+
* predicate — it throws. Generating first meant the throw happened before the
|
|
19
|
+
* caller's value was ever applied, so an override could not rescue the field it
|
|
20
|
+
* was written for.
|
|
21
|
+
*
|
|
22
|
+
* Only the overridden keys are skipped. A `z.custom(...)` field with no
|
|
23
|
+
* override still throws, which is correct: there is no way to invent a value
|
|
24
|
+
* for it, and the caller needs to say what it should be.
|
|
25
|
+
*/
|
|
3
26
|
function generateMock(schema, overrides) {
|
|
4
|
-
|
|
5
|
-
|
|
27
|
+
if (!overrides) return zocker(schema).generate();
|
|
28
|
+
const overriddenKeys = Object.keys(overrides);
|
|
29
|
+
if (overriddenKeys.length === 0 || !isObjectSchema(schema)) return {
|
|
30
|
+
...zocker(schema).generate(),
|
|
31
|
+
...overrides
|
|
32
|
+
};
|
|
33
|
+
const omittable = overriddenKeys.filter((key) => key in schema.shape);
|
|
34
|
+
const mask = Object.fromEntries(omittable.map((key) => [key, true]));
|
|
6
35
|
return {
|
|
7
|
-
...
|
|
36
|
+
...zocker(omittable.length ? schema.omit(mask) : schema).generate(),
|
|
8
37
|
...overrides
|
|
9
38
|
};
|
|
10
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","names":[],"sources":["../../document-model/mock.ts"],"sourcesContent":["import { zocker } from \"zocker\";\nimport
|
|
1
|
+
{"version":3,"file":"mock.js","names":[],"sources":["../../document-model/mock.ts"],"sourcesContent":["import { zocker } from \"zocker\";\nimport { z } from \"zod\";\n\n/**\n * Narrows to an object schema whose shape we can omit keys from. Callers may\n * pass any `ZodType`, so this has to be checked rather than assumed.\n */\nfunction isObjectSchema(schema: z.ZodType): schema is z.ZodObject {\n return schema instanceof z.ZodObject;\n}\n\n/**\n * Builds a mock value for a schema, with `overrides` taking precedence.\n *\n * Overridden fields are removed from the schema *before* generation rather than\n * being overwritten afterwards. That ordering is what makes overrides usable as\n * an escape hatch: some scalars compile to `z.custom(...)` (`AttachmentRef`,\n * `Address`), and zocker cannot synthesise a value satisfying an arbitrary\n * predicate — it throws. Generating first meant the throw happened before the\n * caller's value was ever applied, so an override could not rescue the field it\n * was written for.\n *\n * Only the overridden keys are skipped. A `z.custom(...)` field with no\n * override still throws, which is correct: there is no way to invent a value\n * for it, and the caller needs to say what it should be.\n */\nexport function generateMock<TSchema extends z.ZodType>(\n schema: TSchema,\n overrides?: Partial<z.infer<TSchema>>,\n): z.infer<TSchema> {\n if (!overrides) return zocker(schema).generate() as z.infer<TSchema>;\n\n const overriddenKeys = Object.keys(overrides);\n if (overriddenKeys.length === 0 || !isObjectSchema(schema)) {\n // Nothing to skip, or a schema with no shape to omit from: generate the\n // whole value and let the overrides win by merge, as before.\n const generated = zocker(schema).generate() as z.infer<TSchema>;\n return { ...(generated as object), ...overrides } as z.infer<TSchema>;\n }\n\n // Omitting a key the shape does not have is an error in zod, and an override\n // for an unknown key should still pass through to the result.\n const omittable = overriddenKeys.filter((key) => key in schema.shape);\n // `omit` is typed against the shape's literal keys; ours are only known at\n // runtime, so the mask has to be asserted into that parameter type.\n const mask = Object.fromEntries(\n omittable.map((key) => [key, true]),\n ) as Parameters<typeof schema.omit>[0];\n const schemaToGenerate = omittable.length ? schema.omit(mask) : schema;\n\n const generated = zocker(schemaToGenerate).generate() as object;\n return { ...generated, ...overrides } as z.infer<TSchema>;\n}\n"],"mappings":";;;;;;;AAOA,SAAS,eAAe,QAA0C;AAChE,QAAO,kBAAkB,EAAE;;;;;;;;;;;;;;;;;AAkB7B,SAAgB,aACd,QACA,WACkB;AAClB,KAAI,CAAC,UAAW,QAAO,OAAO,OAAO,CAAC,UAAU;CAEhD,MAAM,iBAAiB,OAAO,KAAK,UAAU;AAC7C,KAAI,eAAe,WAAW,KAAK,CAAC,eAAe,OAAO,CAIxD,QAAO;EAAE,GADS,OAAO,OAAO,CAAC,UAAU;EACR,GAAG;EAAW;CAKnD,MAAM,YAAY,eAAe,QAAQ,QAAQ,OAAO,OAAO,MAAM;CAGrE,MAAM,OAAO,OAAO,YAClB,UAAU,KAAK,QAAQ,CAAC,KAAK,KAAK,CAAC,CACpC;AAID,QAAO;EAAE,GADS,OAFO,UAAU,SAAS,OAAO,KAAK,KAAK,GAAG,OAEtB,CAAC,UAAU;EAC9B,GAAG;EAAW"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as generateMock } from "../mock-
|
|
2
|
-
import { n as generateId, t as deriveOperationId } from "../utils-
|
|
1
|
+
import { t as generateMock } from "../mock-BcFWPQyK.js";
|
|
2
|
+
import { n as generateId, t as deriveOperationId } from "../utils-1EXU6Qr1.js";
|
|
3
3
|
export { deriveOperationId, generateId, generateMock };
|
|
@@ -4,4 +4,4 @@ declare function buildTreeUrl(sha: string): string | null;
|
|
|
4
4
|
declare function shortGitSha(sha: string): string;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { buildTreeUrl as n, shortGitSha as r, GITHUB_REPO_URL as t };
|
|
7
|
-
//# sourceMappingURL=index-
|
|
7
|
+
//# sourceMappingURL=index-BJU79_T5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BJU79_T5.d.ts","names":[],"sources":["../git.ts"],"mappings":";cAAa,eAAA;AAAA,iBAEG,YAAA,CAAa,GAAA;AAAA,iBAKb,WAAA,CAAY,GAAA"}
|
|
@@ -1,6 +1,246 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $l as Operation, Br as PruneActionInput, Ea as StateReducer, Gt as DocumentModelOperationErrorOperations, Ht as DocumentModelModuleOperations, I as ActionSignatureContext, It as DocumentModelHeaderOperations, Jt as DocumentModelOperationOperations, Kr as Reducer, Mt as DocumentModelDocument, Nn as MinimalBackupData, Nr as OperationSpecification, Pn as ModuleSpecification, Pt as DocumentModelGlobalState, Ql as DocumentOperations, Sa as SigningParameters, Sn as LoadFromInput, Ua as ValidationError, Wa as UpgradeManifest, Yt as DocumentModelPHState, Zs as Action, Zt as DocumentModelStateOperations, _a as SignalDispatch, cn as FileInput, dl as PHDocument, en as DocumentModelVersioningOperations, eu as OperationContext, fi as SaveToFileHandle, fl as PHDocumentHeader, fu as Grant, gn as ISigner, hu as PHBaseState, jr as OperationErrorSpecification, li as ReplayDocumentOptions, mu as PHAuthState, nn as DocumentSpecification, nt as Author, qr as ReducerOptions, qt as DocumentModelOperationExampleOperations, rt as CodeExample, wa as SkipHeaderOperations, zt as DocumentModelLocalState } from "./types-C_b4aIlv.js";
|
|
2
2
|
import { ZodIssue, z } from "zod";
|
|
3
3
|
|
|
4
|
+
//#region document-model/auth.d.ts
|
|
5
|
+
type InitializeAuthActionInput = {
|
|
6
|
+
version: number;
|
|
7
|
+
grants: Grant[];
|
|
8
|
+
};
|
|
9
|
+
type SetGrantActionInput = {
|
|
10
|
+
grant: Grant;
|
|
11
|
+
};
|
|
12
|
+
type RemoveGrantActionInput = {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
type MoveGrantActionInput = {
|
|
16
|
+
id: string; /** Target index in the grant list; clamped to the valid range. */
|
|
17
|
+
index: number;
|
|
18
|
+
};
|
|
19
|
+
type InitializeAuthAction = Action & {
|
|
20
|
+
type: "INITIALIZE_AUTH";
|
|
21
|
+
input: InitializeAuthActionInput;
|
|
22
|
+
};
|
|
23
|
+
type SetGrantAction = Action & {
|
|
24
|
+
type: "SET_GRANT";
|
|
25
|
+
input: SetGrantActionInput;
|
|
26
|
+
};
|
|
27
|
+
type RemoveGrantAction = Action & {
|
|
28
|
+
type: "REMOVE_GRANT";
|
|
29
|
+
input: RemoveGrantActionInput;
|
|
30
|
+
};
|
|
31
|
+
type MoveGrantAction = Action & {
|
|
32
|
+
type: "MOVE_GRANT";
|
|
33
|
+
input: MoveGrantActionInput;
|
|
34
|
+
};
|
|
35
|
+
type AuthAction = InitializeAuthAction | SetGrantAction | RemoveGrantAction | MoveGrantAction;
|
|
36
|
+
declare const AUTH_ACTION_TYPES: readonly ["INITIALIZE_AUTH", "SET_GRANT", "REMOVE_GRANT", "MOVE_GRANT"];
|
|
37
|
+
declare function isAuthAction(action: Action): action is AuthAction;
|
|
38
|
+
/** Highest known policy version; decide() fails closed above it. */
|
|
39
|
+
declare const MAX_SUPPORTED_AUTH_VERSION = 1;
|
|
40
|
+
declare const InitializeAuthActionInputSchema: () => z.ZodObject<{
|
|
41
|
+
version: z.ZodNumber;
|
|
42
|
+
grants: z.ZodArray<z.ZodCustom<Grant, Grant>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const SetGrantActionInputSchema: () => z.ZodObject<{
|
|
45
|
+
grant: z.ZodCustom<Grant, Grant>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
declare const RemoveGrantActionInputSchema: () => z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
declare const MoveGrantActionInputSchema: () => z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
index: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
declare const initializeAuth: (input: InitializeAuthActionInput) => InitializeAuthAction;
|
|
55
|
+
declare const setGrant: (input: SetGrantActionInput) => SetGrantAction;
|
|
56
|
+
declare const removeGrant: (input: RemoveGrantActionInput) => RemoveGrantAction;
|
|
57
|
+
declare const moveGrant: (input: MoveGrantActionInput) => MoveGrantAction;
|
|
58
|
+
/**
|
|
59
|
+
* True when `signerKey` (an ActionSigner app key, a did:key) identifies the same
|
|
60
|
+
* key recorded as the document creator. Returns false
|
|
61
|
+
* when there is no creator (empty JWK) or no signer key.
|
|
62
|
+
*/
|
|
63
|
+
declare function isDocumentCreator(creatorKey: JsonWebKey | undefined, signerKey: string | undefined): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the initial policy. Valid only while the auth scope is uninitialized
|
|
66
|
+
* (version 0). The input version is the policy language version and must be an
|
|
67
|
+
* integer >= 1; 0 is reserved for the uninitialized state. On a signed-header
|
|
68
|
+
* document it must be signed by the document creator (`header.sig.publicKey`).
|
|
69
|
+
* A creator-less policy must include a grant permitting execute on the auth
|
|
70
|
+
* scope, or it would be born locked out.
|
|
71
|
+
*/
|
|
72
|
+
declare function applyInitializeAuthAction<TState extends PHBaseState>(document: PHDocument<TState>, action: InitializeAuthAction): PHDocument<TState>;
|
|
73
|
+
/** Upserts a grant by id: replaces in place if present, otherwise appends. */
|
|
74
|
+
declare function applySetGrantAction<TState extends PHBaseState>(document: PHDocument<TState>, action: SetGrantAction): PHDocument<TState>;
|
|
75
|
+
/**
|
|
76
|
+
* Removes a grant by id; throws if the id is not present or if the removal
|
|
77
|
+
* would leave a creator-less policy with no auth-administration grant.
|
|
78
|
+
*/
|
|
79
|
+
declare function applyRemoveGrantAction<TState extends PHBaseState>(document: PHDocument<TState>, action: RemoveGrantAction): PHDocument<TState>;
|
|
80
|
+
/**
|
|
81
|
+
* Moves a grant by id to a new index. Order is load-bearing (the last
|
|
82
|
+
* applicable grant wins), so the relative order of the other grants is kept.
|
|
83
|
+
* The target index is clamped to the valid range; an unknown id throws.
|
|
84
|
+
*
|
|
85
|
+
* Order alone decides which grant wins, so a move can take administration away
|
|
86
|
+
* without changing the list's contents. It carries the same retention rule as
|
|
87
|
+
* the two mutation paths.
|
|
88
|
+
*/
|
|
89
|
+
declare function applyMoveGrantAction<TState extends PHBaseState>(document: PHDocument<TState>, action: MoveGrantAction): PHDocument<TState>;
|
|
90
|
+
/**
|
|
91
|
+
* Dispatches an auth-scope action to its handler. This is the auth scope's
|
|
92
|
+
* dedicated reducer: it is applied by the base reducer instead of the model
|
|
93
|
+
* reducer, mirroring the document-scope platform handlers. Unknown types are a
|
|
94
|
+
* no-op, matching the model-reducer default.
|
|
95
|
+
*/
|
|
96
|
+
declare function applyAuthAction<TState extends PHBaseState>(document: PHDocument<TState>, action: Action): PHDocument<TState>;
|
|
97
|
+
/**
|
|
98
|
+
* Because only creators can initialize auth scopes, we must verify that either
|
|
99
|
+
* the document has no auth or the version and creator match.
|
|
100
|
+
*/
|
|
101
|
+
declare function assertAuthPreservedOnDuplicate(documentId: string, source: PHAuthState | undefined, duplicated: PHAuthState | undefined): void;
|
|
102
|
+
/**
|
|
103
|
+
* The auth scope a state snapshot may install, given the policy already there.
|
|
104
|
+
*
|
|
105
|
+
* `applyAuthAction` is the validated door onto `state.auth`, but a whole-state
|
|
106
|
+
* snapshot (UPGRADE_DOCUMENT's `initialState`, LOAD_STATE's `data`) replaces the
|
|
107
|
+
* scope wholesale and is authorized as a `document`-scope write. Without this,
|
|
108
|
+
* a subject holding `execute` on `document` and no auth grant at all can install
|
|
109
|
+
* a policy of its choosing, name itself `creator` (which exempts the policy from
|
|
110
|
+
* the retention rule for good), or wipe an existing policy by carrying the
|
|
111
|
+
* default uninitialized one.
|
|
112
|
+
*
|
|
113
|
+
* Three cases:
|
|
114
|
+
*
|
|
115
|
+
* - the snapshot carries no policy, or an uninitialized one: the document
|
|
116
|
+
* keeps the policy it has, so a default-state upgrade cannot reset it;
|
|
117
|
+
* - the document is uninitialized and the snapshot carries a policy: the
|
|
118
|
+
* policy is installed after the same validation genesis applies, so it
|
|
119
|
+
* cannot be born locked out;
|
|
120
|
+
* - both carry a policy: they must agree. A duplicate preserves its source's
|
|
121
|
+
* policy (see {@link assertAuthPreservedOnDuplicate}), and anything else is
|
|
122
|
+
* an attempt to replace one policy with another.
|
|
123
|
+
*/
|
|
124
|
+
declare function resolveSnapshotAuth(documentId: string, documentType: string, current: PHAuthState | undefined, incoming: PHAuthState | undefined): PHAuthState;
|
|
125
|
+
/** UNDO, REDO and PRUNE are rejected on the auth scope. */
|
|
126
|
+
declare function assertAuthScopeActionAllowed(action: Action): void;
|
|
127
|
+
type AuthVerb = "read" | "execute";
|
|
128
|
+
type AuthRequest = {
|
|
129
|
+
verb: AuthVerb;
|
|
130
|
+
scope: string; /** For execute: the operation (action type) being attempted. Omitted for reads. */
|
|
131
|
+
operation?: string;
|
|
132
|
+
};
|
|
133
|
+
type AuthSubject = {
|
|
134
|
+
/** Verified signer address; undefined for an anonymous subject. */address?: string; /** The signer's app key (a did:key), used to match the document creator. */
|
|
135
|
+
key?: string;
|
|
136
|
+
};
|
|
137
|
+
type AuthDecision = "allow" | "deny";
|
|
138
|
+
/** Why the policy refused a request. */
|
|
139
|
+
type AuthRefusal = "version-unsupported" | "no-applicable-grant" | "denied-by-grant";
|
|
140
|
+
/**
|
|
141
|
+
* A decision together with why it refused. A refusal names which of the
|
|
142
|
+
* policy's rules produced it, so an operation records the reason it was refused
|
|
143
|
+
* rather than one reason standing for every refusal.
|
|
144
|
+
*/
|
|
145
|
+
type AuthEvaluation = {
|
|
146
|
+
decision: "allow";
|
|
147
|
+
} | {
|
|
148
|
+
decision: "deny";
|
|
149
|
+
refusal: AuthRefusal;
|
|
150
|
+
grantId?: string;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Evaluates the auth policy for a single request and reports why it refused.
|
|
154
|
+
* Pure and deterministic.
|
|
155
|
+
*
|
|
156
|
+
* An uninitialized policy (version 0, absent auth state, or a legacy `{}`
|
|
157
|
+
* auth scope serialized before PHAuthState had a version) leaves the document
|
|
158
|
+
* open. Once a policy exists the default is deny, and grants stack in order.
|
|
159
|
+
*/
|
|
160
|
+
declare function evaluate(auth: PHAuthState | undefined, subject: AuthSubject, request: AuthRequest): AuthEvaluation;
|
|
161
|
+
/**
|
|
162
|
+
* Evaluates the auth policy for a single request. Pure and deterministic. This
|
|
163
|
+
* is {@link evaluate} with the reason dropped.
|
|
164
|
+
*/
|
|
165
|
+
declare function decide(auth: PHAuthState | undefined, subject: AuthSubject, request: AuthRequest): AuthDecision;
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region document-model/auth-v1.d.ts
|
|
168
|
+
/** Maximum number of grants in a policy. */
|
|
169
|
+
declare const MAX_AUTH_GRANTS = 100;
|
|
170
|
+
/** Maximum nesting depth of a condition tree. */
|
|
171
|
+
declare const MAX_CONDITION_DEPTH = 10;
|
|
172
|
+
/** Maximum node count (conditions plus operands) of a condition tree. */
|
|
173
|
+
declare const MAX_CONDITION_NODES = 100;
|
|
174
|
+
/** Maximum entries in an execute capability's operation list. */
|
|
175
|
+
declare const MAX_CAPABILITY_OPERATIONS = 100;
|
|
176
|
+
/**
|
|
177
|
+
* Thrown when a grant violates the v1 validation rules. The message is stored
|
|
178
|
+
* on error operations, so it must be a pure function of the input.
|
|
179
|
+
*/
|
|
180
|
+
declare class InvalidGrantError extends Error {
|
|
181
|
+
readonly grantId: string;
|
|
182
|
+
constructor(grantId: string, problem: string);
|
|
183
|
+
}
|
|
184
|
+
/** Thrown for a `{ group }` principal on a group document: references never chain. */
|
|
185
|
+
declare class GroupPrincipalNotAllowedError extends Error {
|
|
186
|
+
readonly grantId: string;
|
|
187
|
+
constructor(grantId: string);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Thrown when a change would leave a creator-less policy with no grant
|
|
191
|
+
* permitting execute on the auth scope. Without the creator carve-out no
|
|
192
|
+
* subject could ever administer such a policy again.
|
|
193
|
+
*/
|
|
194
|
+
declare class AuthAdministrationLockoutError extends Error {
|
|
195
|
+
readonly grantId: string;
|
|
196
|
+
constructor(grantId: string);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Thrown when INITIALIZE_AUTH would create a creator-less policy with no grant
|
|
200
|
+
* permitting execute on the auth scope. Such a policy would be born with no
|
|
201
|
+
* subject able to administer it.
|
|
202
|
+
*/
|
|
203
|
+
declare class AuthAdministrationMissingError extends Error {
|
|
204
|
+
constructor();
|
|
205
|
+
}
|
|
206
|
+
declare function isPlainValue(value: unknown): value is Record<string, unknown>;
|
|
207
|
+
/** Returns the first v1-rule violation, or null. Pure, total, deterministic. */
|
|
208
|
+
declare function grantProblem(value: unknown): string | null;
|
|
209
|
+
declare const GrantSchema: () => z.ZodCustom<Grant, Grant>;
|
|
210
|
+
/** V1 shape rules plus the group-document group-principal ban. */
|
|
211
|
+
declare function assertValidGrant(grant: unknown, documentType: string): void;
|
|
212
|
+
/**
|
|
213
|
+
* Validates an initial grant list: the count cap, every grant, and — on a
|
|
214
|
+
* creator-less policy — that some grant keeps the auth scope administrable.
|
|
215
|
+
*/
|
|
216
|
+
declare function assertValidInitialGrants(grants: Grant[], documentType: string, creator: string | undefined): void;
|
|
217
|
+
/**
|
|
218
|
+
* Validates a grant upsert: the grant itself, the count cap on append, and
|
|
219
|
+
* administration retention. Retention is checked on an append as well as an
|
|
220
|
+
* in-place replace, because a grant appended after the administration grant can
|
|
221
|
+
* shadow it (evaluation is last-applicable-grant-wins) and so take
|
|
222
|
+
* administration away without removing anything.
|
|
223
|
+
*/
|
|
224
|
+
declare function assertValidGrantUpsert(grant: Grant, existing: Grant[], documentType: string, creator: string | undefined): void;
|
|
225
|
+
/**
|
|
226
|
+
* A creator-less policy must always retain a grant permitting execute on the
|
|
227
|
+
* auth scope; on a signed document the creator carve-out keeps administration
|
|
228
|
+
* reachable instead. Rejects a change that takes the last such grant away. A
|
|
229
|
+
* policy already without one is left alone: the change is not what locks it.
|
|
230
|
+
*/
|
|
231
|
+
declare function assertAuthAdministrationRetained(creator: string | undefined, previous: Grant[], next: Grant[], grantId: string): void;
|
|
232
|
+
/**
|
|
233
|
+
* Evaluates a v1 grant stack: default deny, last applicable grant wins, and
|
|
234
|
+
* reports which grant decided it. Group and match principals and `where`
|
|
235
|
+
* conditions are not evaluated yet; a grant that uses any of them never applies.
|
|
236
|
+
*/
|
|
237
|
+
declare function evaluateGrantStack(grants: Grant[], subject: AuthSubject, request: AuthRequest): AuthEvaluation;
|
|
238
|
+
/**
|
|
239
|
+
* Evaluates a v1 grant stack: default deny, last applicable grant wins. This is
|
|
240
|
+
* {@link evaluateGrantStack} with the reason dropped.
|
|
241
|
+
*/
|
|
242
|
+
declare function evaluateGrants(grants: Grant[], subject: AuthSubject, request: AuthRequest): AuthDecision;
|
|
243
|
+
//#endregion
|
|
4
244
|
//#region document-model/constants.d.ts
|
|
5
245
|
declare const documentModelFileExtension: "phdm";
|
|
6
246
|
declare const documentModelInitialLocalState: DocumentModelLocalState;
|
|
@@ -24,6 +264,28 @@ declare function buildOperationSignatureParams({
|
|
|
24
264
|
declare function buildOperationSignatureMessage(params: [string, string, string, string]): Uint8Array;
|
|
25
265
|
declare function ab2hex(ab: ArrayBuffer | ArrayBufferView): string;
|
|
26
266
|
declare function hex2ab(hex: string): Uint8Array<ArrayBuffer>;
|
|
267
|
+
/**
|
|
268
|
+
* Decodes a base58btc (Bitcoin/IPFS alphabet) string to bytes. Returns null on
|
|
269
|
+
* any character outside the alphabet.
|
|
270
|
+
*/
|
|
271
|
+
declare function base58Decode(input: string): Uint8Array | null;
|
|
272
|
+
/** Decodes a base64url string to bytes (portable across node, browsers, workers). */
|
|
273
|
+
declare function base64UrlToBytes(input: string): Uint8Array;
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region document-model/denied.d.ts
|
|
276
|
+
/**
|
|
277
|
+
* True iff authorization rejected the action.
|
|
278
|
+
*/
|
|
279
|
+
declare function isDenied(operation: Operation): boolean;
|
|
280
|
+
/**
|
|
281
|
+
* The closed set of strings persisted as `deniedReason`. Re-evaluation compares
|
|
282
|
+
* them, so they are consensus data: exact strings that embed no grant id,
|
|
283
|
+
* subject or timestamp. Changing one is history-visible.
|
|
284
|
+
*/
|
|
285
|
+
declare const DOCUMENT_DELETED_REASON = "document deleted";
|
|
286
|
+
declare const AUTH_VERSION_UNSUPPORTED_REASON = "auth policy version unsupported";
|
|
287
|
+
declare const AUTH_NO_GRANT_REASON = "no grant permits this operation";
|
|
288
|
+
declare const AUTH_DENIED_BY_GRANT_REASON = "denied by grant";
|
|
27
289
|
//#endregion
|
|
28
290
|
//#region document-model/document-schema.d.ts
|
|
29
291
|
declare const BaseDocumentHeaderSchema: z.ZodObject<{
|
|
@@ -95,6 +357,7 @@ declare function assertIsDocumentModelDocument(document: unknown): asserts docum
|
|
|
95
357
|
//#endregion
|
|
96
358
|
//#region document-model/document-type.d.ts
|
|
97
359
|
declare const documentModelDocumentType = "powerhouse/document-model";
|
|
360
|
+
declare const groupDocumentType = "@powerhousedao/document-group";
|
|
98
361
|
//#endregion
|
|
99
362
|
//#region document-model/errors.d.ts
|
|
100
363
|
declare const FileSystemError: Error;
|
|
@@ -115,6 +378,50 @@ declare class DowngradeNotSupportedError extends Error {
|
|
|
115
378
|
readonly toVersion: number;
|
|
116
379
|
constructor(documentType: string, fromVersion: number, toVersion: number);
|
|
117
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* Thrown when INITIALIZE_AUTH is applied to an already-initialized auth scope.
|
|
383
|
+
* The genesis action is valid only at auth revision zero.
|
|
384
|
+
*/
|
|
385
|
+
declare class AuthAlreadyInitializedError extends Error {
|
|
386
|
+
readonly documentId: string;
|
|
387
|
+
constructor(documentId: string);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Thrown when INITIALIZE_AUTH is not signed by the document creator (its signer
|
|
391
|
+
* does not match `header.sig.publicKey`), so it cannot set the auth policy.
|
|
392
|
+
*/
|
|
393
|
+
declare class AuthInitializerNotCreatorError extends Error {
|
|
394
|
+
readonly documentId: string;
|
|
395
|
+
constructor(documentId: string);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Thrown when INITIALIZE_AUTH carries a version below 1. Version 0 is reserved
|
|
399
|
+
* for the uninitialized auth scope.
|
|
400
|
+
*/
|
|
401
|
+
declare class InvalidAuthVersionError extends Error {
|
|
402
|
+
readonly documentId: string;
|
|
403
|
+
readonly version: number;
|
|
404
|
+
constructor(documentId: string, version: number);
|
|
405
|
+
}
|
|
406
|
+
/** Thrown when a duplicate would lose the source policy's version or creator binding. */
|
|
407
|
+
declare class AuthPolicyNotPreservedError extends Error {
|
|
408
|
+
readonly documentId: string;
|
|
409
|
+
constructor(documentId: string);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Thrown when a grant referenced by REMOVE_GRANT or MOVE_GRANT does not exist.
|
|
413
|
+
*/
|
|
414
|
+
declare class GrantNotFoundError extends Error {
|
|
415
|
+
readonly grantId: string;
|
|
416
|
+
constructor(grantId: string);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Thrown when a disallowed action (UNDO, REDO, PRUNE) targets the auth scope.
|
|
420
|
+
*/
|
|
421
|
+
declare class AuthActionNotAllowedError extends Error {
|
|
422
|
+
readonly actionType: string;
|
|
423
|
+
constructor(actionType: string);
|
|
424
|
+
}
|
|
118
425
|
declare class HashMismatchError extends Error {
|
|
119
426
|
protected _scope: string;
|
|
120
427
|
protected _document: PHDocument;
|
|
@@ -395,5 +702,5 @@ declare function assertOperationErrorIdUnique(state: DocumentModelGlobalState, i
|
|
|
395
702
|
declare function assertOperationExampleIdUnique(state: DocumentModelGlobalState, id: string): void;
|
|
396
703
|
declare function validateOperations(operations: DocumentOperations): ValidationError[];
|
|
397
704
|
//#endregion
|
|
398
|
-
export { readFileBrowser as $, documentModelVersioningReducer as A,
|
|
399
|
-
//# sourceMappingURL=index-
|
|
705
|
+
export { readFileBrowser as $, MAX_AUTH_GRANTS as $t, documentModelVersioningReducer as A, SetGrantActionInput as An, isDenied as At, createVerificationSigner as B, evaluate as Bn, HASH_ALGORITHM_SHA256 as Bt, documentModelModuleReducer as C, MoveGrantAction as Cn, assertIsDocumentModelState as Ct, documentModelReducer as D, RemoveGrantActionInput as Dn, AUTH_NO_GRANT_REASON as Dt, documentModelOperationReducer as E, RemoveGrantAction as En, AUTH_DENIED_BY_GRANT_REASON as Et, replayOperations as F, applyRemoveGrantAction as Fn, buildOperationSignatureParams as Ft, baseLoadFromInputVersioned as G, removeGrant as Gn, documentModelGlobalState as Gt, validateHeader as H, isAuthAction as Hn, HASH_ENCODING_BASE64 as Ht, updateDocument as I, applySetGrantAction as In, getUnixTimestamp as It, createZip as J, AuthAdministrationLockoutError as Jt, baseSaveToFileHandle as K, resolveSnapshotAuth as Kn, documentModelInitialGlobalState as Kt, createPresignedHeader as L, assertAuthPreservedOnDuplicate as Ln, hashBrowser as Lt, createReducer as M, applyAuthAction as Mn, base58Decode as Mt, processUndoRedo as N, applyInitializeAuthAction as Nn, base64UrlToBytes as Nt, documentModelStateReducer as O, RemoveGrantActionInputSchema as On, AUTH_VERSION_UNSUPPORTED_REASON as Ot, pruneOperation as P, applyMoveGrantAction as Pn, buildOperationSignatureMessage as Pt, getFileBrowser as Q, InvalidGrantError as Qt, createSignedHeader as R, assertAuthScopeActionAllowed as Rn, hex2ab as Rt, documentModelHeaderReducer as S, MAX_SUPPORTED_AUTH_VERSION as Sn, assertIsDocumentModelDocument as St, documentModelOperationExampleReducer as T, MoveGrantActionInputSchema as Tn, isDocumentModelState as Tt, verify as U, isDocumentCreator as Un, HASH_ENCODING_HEX as Ut, sign as V, initializeAuth as Vn, HASH_ALGORITHM_SHA512 as Vt, baseLoadFromInput as W, moveGrant as Wn, documentModelFileExtension as Wt, documentModelSaveToFileHandle as X, GrantSchema as Xt, documentModelLoadFromInput as Y, AuthAdministrationMissingError as Yt, fetchFileBrowser as Z, GroupPrincipalNotAllowedError as Zt, validateModuleOperation as _, AuthSubject as _n, BaseDocumentHeaderSchema as _t, assertOperationErrorIdUnique as a, assertValidGrantUpsert as an, AuthAlreadyInitializedError as at, validateOperations as b, InitializeAuthActionInput as bn, DocumentModelPHStateSchema as bt, findModuleOrThrow as c, evaluateGrants as cn, DowngradeNotSupportedError as ct, findOperationOrThrow as d, AUTH_ACTION_TYPES as dn, HashMismatchError as dt, MAX_CAPABILITY_OPERATIONS as en, writeFileBrowser as et, getAllOperationNames as f, AuthAction as fn, InvalidActionInputError as ft, validateModule as g, AuthRequest as gn, groupDocumentType as gt, validateInitialState as h, AuthRefusal as hn, documentModelDocumentType as ht, assertModuleIdUnique as i, assertValidGrant as in, AuthActionNotAllowedError as it, baseReducer as j, SetGrantActionInputSchema as jn, ab2hex as jt, documentModelStateSchemaReducer as k, SetGrantAction as kn, DOCUMENT_DELETED_REASON as kt, findOperationErrorOrThrow as l, grantProblem as ln, FileSystemError as lt, isValidOperationNameFormat as m, AuthEvaluation as mn, InvalidAuthVersionError as mt, RESERVED_OPERATION_NAMES as n, MAX_CONDITION_NODES as nn, VersionedReplayConfig as nt, assertOperationExampleIdUnique as o, assertValidInitialGrants as on, AuthInitializerNotCreatorError as ot, isReservedOperationName as p, AuthDecision as pn, InvalidActionInputZodError as pt, createMinimalZip as q, setGrant as qn, documentModelInitialLocalState as qt, ReservedOperationName as r, assertAuthAdministrationRetained as rn, replayDocumentVersioned as rt, assertOperationIdUnique as s, evaluateGrantStack as sn, AuthPolicyNotPreservedError as st, OPERATION_NAME_PATTERN as t, MAX_CONDITION_DEPTH as tn, VersionedReducers as tt, findOperationExampleOrThrow as u, isPlainValue as un, GrantNotFoundError as ut, validateModules as v, AuthVerb as vn, BaseDocumentStateSchema as vt, documentModelOperationErrorReducer as w, MoveGrantActionInput as wn, isDocumentModelDocument as wt, validateStateSchemaName as x, InitializeAuthActionInputSchema as xn, DocumentModelSchema as xt, validateOperationName as y, InitializeAuthAction as yn, DocumentModelHeaderSchema as yt, createSignedHeaderForSigner as z, decide as zn, HASH_ALGORITHM_SHA1 as zt };
|
|
706
|
+
//# sourceMappingURL=index-Dn1S-xxm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Dn1S-xxm.d.ts","names":[],"sources":["../document-model/auth.ts","../document-model/auth-v1.ts","../document-model/constants.ts","../document-model/crypto.ts","../document-model/denied.ts","../document-model/document-schema.ts","../document-model/document-type.ts","../document-model/errors.ts","../document-model/versioned-replay.ts","../document-model/files.ts","../document-model/header.ts","../document-model/reducer.ts","../document-model/reducers.ts","../document-model/validation.ts"],"mappings":";;;;KAgCY,yBAAA;EACV,OAAA;EACA,MAAA,EAAQ,KAAA;AAAA;AAAA,KAGE,mBAAA;EACV,KAAA,EAAO,KAAA;AAAA;AAAA,KAGG,sBAAA;EACV,EAAA;AAAA;AAAA,KAGU,oBAAA;EACV,EAAA,UARA;EAUA,KAAA;AAAA;AAAA,KAGU,oBAAA,GAAuB,MAAA;EACjC,IAAA;EACA,KAAA,EAAO,yBAAA;AAAA;AAAA,KAGG,cAAA,GAAiB,MAAA;EAC3B,IAAA;EACA,KAAA,EAAO,mBAAA;AAAA;AAAA,KAGG,iBAAA,GAAoB,MAAA;EAC9B,IAAA;EACA,KAAA,EAAO,sBAAA;AAAA;AAAA,KAGG,eAAA,GAAkB,MAAA;EAC5B,IAAA;EACA,KAAA,EAAO,oBAAA;AAAA;AAAA,KAGG,UAAA,GACR,oBAAA,GACA,cAAA,GACA,iBAAA,GACA,eAAA;AAAA,cAES,iBAAA;AAAA,iBAOG,YAAA,CAAa,MAAA,EAAQ,MAAA,GAAS,MAAA,IAAU,UAAA;AA5BxD;AAAA,cAmCa,0BAAA;AAAA,cAIA,+BAAA,QAA+B,CAAA,CAAA,SAAA;;;;cAM/B,yBAAA,QAAyB,CAAA,CAAA,SAAA;;;cAKzB,4BAAA,QAA4B,CAAA,CAAA,SAAA;;;cAK5B,0BAAA,QAA0B,CAAA,CAAA,SAAA;;;;cAQ1B,cAAA,GAAkB,KAAA,EAAO,yBAAA,KAAyB,oBAAA;AAAA,cASlD,QAAA,GAAY,KAAA,EAAO,mBAAA,KAAmB,cAAA;AAAA,cAStC,WAAA,GAAe,KAAA,EAAO,sBAAA,KAAsB,iBAAA;AAAA,cAS5C,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;;;iBayBgB,qBAAA,CACd,IAAA,UACA,KAAA,EAAO,wBAAA,EACP,kBAAA;AAAA,iBAiCc,oBAAA,CACd,YAAA,UACA,eAAA,aACC,eAAA;AAAA,iBA4Ba,uBAAA,CACd,MAAA,UACA,YAAA,UACA,KAAA,WACA,gBAAA,aACC,eAAA;AAAA,iBAqCa,eAAA,CACd,OAAA,EAAS,mBAAA,KACR,eAAA;AAAA,iBAmBa,cAAA,CAAe,GAAA,EAAK,mBAAA,GAAsB,eAAA;AAAA,iBA6B1C,uBAAA,CACd,SAAA,EAAW,sBAAA,GACV,eAAA;AbrLH;;;;;AAAA,iBakNgB,iBAAA,CACd,KAAA,EAAO,wBAAA,EACP,QAAA,WACC,mBAAA;;;;;AbhNH;iBagOgB,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,WAAA,WACC,sBAAA;;;;;;;iBAmBa,yBAAA,CACd,KAAA,EAAO,wBAAA,EACP,OAAA,WACC,2BAAA;;AbpPH;;;;iBa4QgB,2BAAA,CACd,KAAA,EAAO,wBAAA,EACP,SAAA,WACC,WAAA;;;;;;iBA0Ba,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;;;;;iBAcc,uBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;;;;;;iBAkBc,4BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;;;;AbpUF;;iBasVgB,8BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AAAA,iBAac,kBAAA,CAAmB,UAAA,EAAY,kBAAA,GAAkB,eAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { a as AnalyticsSeriesInput, c as CompoundAnalyticsExpression, d as ConversionMetric, f as IAnalyticsStore, i as AnalyticsSeries, l as CompoundAnalyticsInputs, n as AnalyticsOperand, o as AnalyticsSeriesQuery, p as MultiCurrencyConversion, r as AnalyticsQuery, s as AnalyticsUpdateCallback, t as AnalyticsDimension, u as CompoundAnalyticsQuery } from "./types-C1in4fl3.js";
|
|
2
|
-
import { C as ServiceActions, S as
|
|
3
|
-
import {
|
|
4
|
-
import { i as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, ActionErrorCallback, ActionSignatureContext, ActionSigningHandler, ActionVerificationHandler, Actions, AddChangeLogItemAction, AddChangeLogItemInput, AddFileAction, AddFileInput, AddFolderAction, AddFolderInput, AddListenerAction, AddListenerInput, AddModuleAction, AddModuleInput, AddOperationAction, AddOperationErrorAction, AddOperationErrorInput, AddOperationExampleAction, AddOperationExampleInput, AddOperationInput, AddRelationshipAction, AddRelationshipActionInput, AddStateExampleAction, AddStateExampleInput, AddTriggerAction, AddTriggerInput, AnalyticsDimension, AnalyticsOperand, AnalyticsQuery, AnalyticsSeries, AnalyticsSeriesInput, AnalyticsSeriesQuery, AnalyticsUpdateCallback, AssertIsDocumentOfType, AssertIsStateOfType, Author, CLIS_DEPENDENCIES, CodeExample, CompoundAnalyticsExpression, CompoundAnalyticsInputs, CompoundAnalyticsQuery, ConfigEntry, ConfigEntryType, ConversionMetric, CopyChildDocumentInput, CopyChildDocumentSignal, CopyNodeAction, CopyNodeInput, CreateChildDocumentInput, CreateChildDocumentSignal, CreateDocument, CreateDocumentAction, CreateDocumentActionInput, CreateState, DeleteChangeLogItemAction, DeleteChangeLogItemInput, DeleteChildDocumentInput, DeleteChildDocumentSignal, DeleteDocumentAction, DeleteDocumentActionInput, DeleteModuleAction, DeleteModuleInput, DeleteNodeAction, DeleteNodeInput, DeleteOperationAction, DeleteOperationErrorAction, DeleteOperationErrorInput, DeleteOperationExampleAction, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleAction, DeleteStateExampleInput, DocumentAction, DocumentDriveAction, DocumentDriveDocument, DocumentDriveDriveAction, DocumentDriveDriveOperations, DocumentDriveGlobalState, DocumentDriveLocalState, DocumentDriveNodeAction, DocumentDriveNodeOperations, DocumentDrivePHState, DocumentModelAction, DocumentModelDocument, DocumentModelDocumentModelModule, DocumentModelGlobalState, DocumentModelHeaderAction, DocumentModelHeaderOperations, DocumentModelInput, DocumentModelLib, DocumentModelLocalState, DocumentModelModule, DocumentModelModuleAction, DocumentModelModuleOperations, DocumentModelOperationAction, DocumentModelOperationErrorAction, DocumentModelOperationErrorOperations, DocumentModelOperationExampleAction, DocumentModelOperationExampleOperations, DocumentModelOperationOperations, DocumentModelPHState, DocumentModelStateAction, DocumentModelStateOperations, DocumentModelUtils, DocumentModelVersioningAction, DocumentModelVersioningOperations, DocumentOperationsIgnoreMap, DocumentSpecification, DriveDocumentModelModule, DriveInput, DrivePreserveStrategies, DrivePreserveStrategy, ENSInfo, EditorDispatch, EditorModule, EditorProps, Exact, FileInput, FileNode, FolderNode, GITHUB_REPO_URL, GenerateNodesCopyIdGenerator, GenerateNodesCopySrc, GetDocumentOptions, IAction, IAnalyticsStore, ID, IDocument, IOperation, IProcessor, IProcessorDispatch, IProcessorHostModule, IProcessorManager, ISignal, ISignalResult, ISigner, Incremental, InputMaybe, IsDocumentOfType, IsStateOfType, LegacyAddFileAction, LegacyAddFileInput, LegacySynchronizationUnit, Listener, ListenerCallInfo, ListenerCallInfoInput, ListenerFilter, ListenerFilterInput, ListenerInput, LoadFromFile, LoadFromInput, LoadStateAction, LoadStateActionInput, LoadStateActionStateInput, Load_State, LogLevel, LogLevels, MakeEmpty, MakeMaybe, MakeOptional, Manifest, MappedOperation, Maybe, MinimalBackupData, ModuleSpecification, MoveNodeAction, MoveNodeInput, MoveOperationAction, MoveOperationInput, MultiCurrencyConversion, Mutation, MutationAddChangeLogItemInputArgs, MutationAddModuleArgs, MutationAddOperationArgs, MutationAddOperationErrorArgs, MutationAddOperationExampleArgs, MutationAddStateExampleArgs, MutationDeleteChangeLogItemInputArgs, MutationDeleteModuleArgs, MutationDeleteOperationArgs, MutationDeleteOperationErrorArgs, MutationDeleteOperationExampleArgs, MutationDeleteStateExampleArgs, MutationLoadStateArgs, MutationMoveOperationArgs, MutationPruneArgs, MutationRedoArgs, MutationReorderChangeLogItemsInputArgs, MutationReorderModuleOperationsArgs, MutationReorderModulesArgs, MutationReorderOperationErrorsArgs, MutationReorderOperationExamplesArgs, MutationReorderStateExamplesArgs, MutationSetAuthorNameArgs, MutationSetAuthorWebsiteArgs, MutationSetInitialStateArgs, MutationSetModelDescriptionArgs, MutationSetModelExtensionArgs, MutationSetModelIdArgs, MutationSetModelNameArgs, MutationSetModuleDescriptionArgs, MutationSetModuleNameArgs, MutationSetNameArgs, MutationSetOperationDescriptionArgs, MutationSetOperationErrorCodeArgs, MutationSetOperationErrorDescriptionArgs, MutationSetOperationErrorNameArgs, MutationSetOperationErrorTemplateArgs, MutationSetOperationNameArgs, MutationSetOperationReducerArgs, MutationSetOperationSchemaArgs, MutationSetOperationTemplateArgs, MutationSetStateSchemaArgs, MutationUndoArgs, MutationUpdateChangeLogItemInputArgs, MutationUpdateOperationExampleArgs, MutationUpdateStateExampleArgs, NOOPAction, Node, OperationErrorSpecification, OperationIndex, OperationSpecification, OperationsByScope, PACKAGES_DEPENDENCIES, PHConnectApp, PHConnectBranding, PHConnectDefaultDrive, PHConnectDriveSection, PHConnectDriveSections, PHConnectDrives, PHConnectInstance, PHConnectPackages, PHConnectRenown, PHConnectRuntimeConfig, PHConnectSentry, PHPackageProvider, PackageInfo, PackageManagerArgs, ParsedCmdResult, PartialRecord, PartialState, PathValidation, PowerhouseConfig, PowerhouseModule, PowerhousePackage, ProcessorApp, ProcessorApps, ProcessorDispatchResult, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, ProcessorStatus, Prune, PruneAction, PruneActionInput, Publisher, PullResponderTriggerData, PullResponderTriggerDataInput, Query, Redo, RedoAction, RedoActionInput, Reducer, ReducerOptions, RegistryPackage, RegistryPackageList, RegistryPackageMap, RegistryPackageSource, RegistryPackageStatus, ReleaseNewVersionAction, RemoveListenerAction, RemoveListenerInput, RemoveRelationshipAction, RemoveRelationshipActionInput, RemoveTriggerAction, RemoveTriggerInput, ReorderChangeLogItemsAction, ReorderChangeLogItemsInput, ReorderModuleOperationsAction, ReorderModuleOperationsInput, ReorderModulesAction, ReorderModulesInput, ReorderOperationErrorsAction, ReorderOperationErrorsInput, ReorderOperationExamplesAction, ReorderOperationExamplesInput, ReorderStateExamplesAction, ReorderStateExamplesInput, ReplayDocumentOptions, RevisionsFilter, SaveToFile, SaveToFileHandle, Scalars, SchemaLoadStateAction, SchemaNOOPAction, SchemaPruneAction, SchemaRedoAction, SchemaSetNameAction, SchemaSetPreferredEditorAction, SchemaUndoAction, ScopeState, ServiceAction, ServiceActions, SetAuthorNameAction, SetAuthorNameInput, SetAuthorWebsiteAction, SetAuthorWebsiteInput, SetAvailableOfflineAction, SetAvailableOfflineInput, SetDriveIconAction, SetDriveIconInput, SetDriveNameAction, SetDriveNameInput, SetInitialStateAction, SetInitialStateInput, SetModelDescriptionAction, SetModelDescriptionInput, SetModelExtensionAction, SetModelExtensionInput, SetModelIdAction, SetModelIdInput, SetModelNameAction, SetModelNameInput, SetModuleDescriptionAction, SetModuleDescriptionInput, SetModuleNameAction, SetModuleNameInput, SetNameAction, SetNameActionInput, SetNameOperation, SetOperationDescriptionAction, SetOperationDescriptionInput, SetOperationErrorCodeAction, SetOperationErrorCodeInput, SetOperationErrorDescriptionAction, SetOperationErrorDescriptionInput, SetOperationErrorNameAction, SetOperationErrorNameInput, SetOperationErrorTemplateAction, SetOperationErrorTemplateInput, SetOperationNameAction, SetOperationNameInput, SetOperationReducerAction, SetOperationReducerInput, SetOperationSchemaAction, SetOperationSchemaInput, SetOperationScopeAction, SetOperationScopeInput, SetOperationTemplateAction, SetOperationTemplateInput, SetPreferredEditorAction, SetPreferredEditorActionInput, SetPreferredEditorOperation, SetSharingTypeAction, SetSharingTypeInput, SetStateSchemaAction, SetStateSchemaInput, Set_Name, Set_PreferredEditor, SharingType, Signal, SignalDispatch, SignalResult, SignalResults, SignalType, SignatureVerificationHandler, SigningParameters, SkipHeaderOperationIndex, SkipHeaderOperations, State, StateReducer, SubgraphModule, TrackedProcessor, TransmitterType, Trigger, TriggerData, TriggerInput, TriggerType, Undo, UndoAction, UndoActionInput, UndoRedoAction, UpdateChangeLogItemAction, UpdateChangeLogItemInput, UpdateFileAction, UpdateFileInput, UpdateNodeAction, UpdateNodeInput, UpdateOperationExampleAction, UpdateOperationExampleInput, UpdateRelationshipAction, UpdateRelationshipActionInput, UpdateStateExampleAction, UpdateStateExampleInput, UpgradeDocumentAction, UpgradeDocumentActionInput, User, ValidationError, buildTreeUrl, shortGitSha };
|
|
2
|
+
import { $ as AddStateExampleInput, $i as SetOperationNameAction, $n as MutationRedoArgs, $r as ReorderModuleOperationsAction, $t as DocumentModelVersioningAction, A as PowerhouseConfig, Aa as UndoActionInput, Ai as SetModelExtensionAction, An as Manifest, Ar as NOOPAction, At as DocumentAction, B as AddChangeLogItemAction, Ba as UpgradeDocumentAction, Bi as SetNameAction, Bn as MutationAddOperationArgs, Br as PruneActionInput, Bs as IProcessorHostModule, Bt as DocumentModelModule, C as PHConnectSentry, Ca as SkipHeaderOperationIndex, Ci as SetAuthorNameInput, Cn as LoadStateAction, Cr as MutationSetOperationSchemaArgs, Ct as DeleteOperationErrorAction, D as PackageManagerArgs, Da as SubgraphModule, Di as SetInitialStateInput, Dn as MakeEmpty, Dr as MutationUpdateChangeLogItemInputArgs, Dt as DeleteOperationInput, E as PHRenownRainbowAdapterConfig, Ea as StateReducer, Ei as SetInitialStateAction, En as Load_State, Er as MutationUndoArgs, Et as DeleteOperationExampleInput, F as ActionErrorCallback, Fa as UpdateOperationExampleInput, Fi as SetModelNameInput, Fn as MoveOperationAction, Fr as PartialRecord, Ft as DocumentModelHeaderAction, G as AddOperationErrorAction, Gi as SetOperationErrorCodeAction, Gn as MutationDeleteModuleArgs, Gr as RedoActionInput, Gs as ProcessorFactory, Gt as DocumentModelOperationErrorOperations, H as AddModuleAction, Ha as User, Hi as SetNameOperation, Hn as MutationAddOperationExampleArgs, Hr as Query, Hs as ProcessorApp, Ht as DocumentModelModuleOperations, I as ActionSignatureContext, Ia as UpdateRelationshipAction, Ii as SetModuleDescriptionAction, In as MoveOperationInput, Ir as PartialState, It as DocumentModelHeaderOperations, J as AddOperationExampleInput, Ji as SetOperationErrorDescriptionInput, Jn as MutationDeleteOperationExampleArgs, Jr as ReleaseNewVersionAction, Js as ProcessorRecord, Jt as DocumentModelOperationOperations, K as AddOperationErrorInput, Ki as SetOperationErrorCodeInput, Kn as MutationDeleteOperationArgs, Kr as Reducer, Ks as ProcessorFactoryBuilder, Kt as DocumentModelOperationExampleAction, L as ActionSigningHandler, La as UpdateRelationshipActionInput, Li as SetModuleDescriptionInput, Ln as Mutation, Lr as PowerhouseModule, Lt as DocumentModelInput, M as ServiceAction, Ma as UpdateChangeLogItemAction, Mi as SetModelIdAction, Mn as Maybe, Mr as OperationIndex, Mt as DocumentModelDocument, N as ServiceActions, Na as UpdateChangeLogItemInput, Ni as SetModelIdInput, Nn as MinimalBackupData, Nr as OperationSpecification, Nt as DocumentModelDocumentModelModule, O as ParsedCmdResult, Oa as Undo, Oi as SetModelDescriptionAction, On as MakeMaybe, Or as MutationUpdateOperationExampleArgs, Ot as DeleteStateExampleAction, Pa as UpdateOperationExampleAction, Pi as SetModelNameAction, Pn as ModuleSpecification, Pr as OperationsByScope, Pt as DocumentModelGlobalState, Q as AddStateExampleAction, Qi as SetOperationErrorTemplateInput, Qn as MutationPruneArgs, Qr as ReorderChangeLogItemsInput, Qt as DocumentModelUtils, R as ActionVerificationHandler, Ra as UpdateStateExampleAction, Ri as SetModuleNameAction, Rn as MutationAddChangeLogItemInputArgs, Rr as Prune, Rs as IProcessor, Rt as DocumentModelLib, S as PHConnectRuntimeConfig, Sa as SigningParameters, Si as SetAuthorNameAction, Sn as LoadFromInput, Sr as MutationSetOperationReducerArgs, St as DeleteOperationAction, T as PHRenownPrivyAdapterConfig, Ta as State, Ti as SetAuthorWebsiteInput, Tn as LoadStateActionStateInput, Tr as MutationSetStateSchemaArgs, Tt as DeleteOperationExampleAction, U as AddModuleInput, Ua as ValidationError, Ui as SetOperationDescriptionAction, Un as MutationAddStateExampleArgs, Ur as Redo, Us as ProcessorApps, Ut as DocumentModelOperationAction, V as AddChangeLogItemInput, Va as UpgradeDocumentActionInput, Vi as SetNameActionInput, Vn as MutationAddOperationErrorArgs, Vr as Publisher, Vs as IProcessorManager, Vt as DocumentModelModuleAction, W as AddOperationAction, Wi as SetOperationDescriptionInput, Wn as MutationDeleteChangeLogItemInputArgs, Wr as RedoAction, Ws as ProcessorDispatchResult, Wt as DocumentModelOperationErrorAction, X as AddRelationshipAction, Xi as SetOperationErrorNameInput, Xn as MutationLoadStateArgs, Xr as RemoveRelationshipActionInput, Xs as TrackedProcessor, Xt as DocumentModelStateAction, Y as AddOperationInput, Yi as SetOperationErrorNameAction, Yn as MutationDeleteStateExampleArgs, Yr as RemoveRelationshipAction, Ys as ProcessorStatus, Yt as DocumentModelPHState, Z as AddRelationshipActionInput, Zi as SetOperationErrorTemplateAction, Zn as MutationMoveOperationArgs, Zr as ReorderChangeLogItemsAction, Zt as DocumentModelStateOperations, _ as PHConnectPwaManifest, _a as SignalDispatch, _i as SchemaRedoAction, _n as Incremental, _r as MutationSetOperationErrorCodeArgs, _t as DeleteChildDocumentSignal, a as PHConnectApp, aa as SetOperationScopeAction, ai as ReorderOperationExamplesAction, an as EditorModule, ar as MutationReorderStateExamplesArgs, at as ConfigEntryType, b as PHConnectRenown, ba as SignalType, bi as SchemaUndoAction, bn as IsStateOfType, br as MutationSetOperationErrorTemplateArgs, bt as DeleteModuleAction, c as PHConnectDriveSection, ca as SetOperationTemplateInput, ci as ReorderStateExamplesInput, cn as FileInput, cr as MutationSetInitialStateArgs, ct as CreateChildDocumentInput, d as PHConnectInstance, da as SetPreferredEditorOperation, di as SaveToFile, dn as ID, dr as MutationSetModelIdArgs, dt as CreateDocumentAction, ea as SetOperationNameInput, ei as ReorderModuleOperationsInput, en as DocumentModelVersioningOperations, er as MutationReorderChangeLogItemsInputArgs, et as AssertIsDocumentOfType, f as PHConnectPackages, fa as SetStateSchemaAction, fi as SaveToFileHandle, fn as IDocument, fr as MutationSetModelNameArgs, ft as CreateDocumentActionInput, g as PHConnectPwaIcon, ga as Signal, gi as SchemaPruneAction, gn as ISigner, gr as MutationSetOperationDescriptionArgs, gt as DeleteChildDocumentInput, h as PHConnectPwaFileHandler, ha as Set_PreferredEditor, hi as SchemaNOOPAction, hn as ISignalResult, hr as MutationSetNameArgs, ht as DeleteChangeLogItemInput, i as LogLevels, ia as SetOperationSchemaInput, ii as ReorderOperationErrorsInput, in as EditorDispatch, ir as MutationReorderOperationExamplesArgs, it as ConfigEntry, j as PowerhousePackage, ja as UndoRedoAction, ji as SetModelExtensionInput, jn as MappedOperation, jr as OperationErrorSpecification, jt as DocumentModelAction, k as PathValidation, ka as UndoAction, ki as SetModelDescriptionInput, kn as MakeOptional, kr as MutationUpdateStateExampleArgs, kt as DeleteStateExampleInput, l as PHConnectDriveSections, la as SetPreferredEditorAction, li as ReplayDocumentOptions, ln as GetDocumentOptions, lr as MutationSetModelDescriptionArgs, lt as CreateChildDocumentSignal, m as PHConnectPwaCacheStrategy, ma as Set_Name, mi as SchemaLoadStateAction, mn as ISignal, mr as MutationSetModuleNameArgs, mt as DeleteChangeLogItemAction, n as DrivePreserveStrategy, na as SetOperationReducerInput, ni as ReorderModulesInput, nn as DocumentSpecification, nr as MutationReorderModulesArgs, nt as Author, o as PHConnectBranding, oa as SetOperationScopeInput, oi as ReorderOperationExamplesInput, on as EditorProps, or as MutationSetAuthorNameArgs, ot as CopyChildDocumentInput, p as PHConnectPwa, pa as SetStateSchemaInput, pi as Scalars, pn as IOperation, pr as MutationSetModuleDescriptionArgs, pt as CreateState, q as AddOperationExampleAction, qi as SetOperationErrorDescriptionAction, qn as MutationDeleteOperationErrorArgs, qr as ReducerOptions, qs as ProcessorFilter, qt as DocumentModelOperationExampleOperations, r as LogLevel, ra as SetOperationSchemaAction, ri as ReorderOperationErrorsAction, rn as ENSInfo, rr as MutationReorderOperationErrorsArgs, rt as CodeExample, s as PHConnectDefaultDrive, sa as SetOperationTemplateAction, si as ReorderStateExamplesAction, sn as Exact, sr as MutationSetAuthorWebsiteArgs, st as CopyChildDocumentSignal, t as DrivePreserveStrategies, ta as SetOperationReducerAction, ti as ReorderModulesAction, tn as DocumentOperationsIgnoreMap, tr as MutationReorderModuleOperationsArgs, tt as AssertIsStateOfType, u as PHConnectDrives, ua as SetPreferredEditorActionInput, ui as RevisionsFilter, un as IAction, ur as MutationSetModelExtensionArgs, ut as CreateDocument, v as PHConnectPwaRuntimeCaching, va as SignalResult, vi as SchemaSetNameAction, vn as InputMaybe, vr as MutationSetOperationErrorDescriptionArgs, vt as DeleteDocumentAction, w as PHPackageProvider, wa as SkipHeaderOperations, wi as SetAuthorWebsiteAction, wn as LoadStateActionInput, wr as MutationSetOperationTemplateArgs, wt as DeleteOperationErrorInput, x as PHConnectRenownAdapters, xa as SignatureVerificationHandler, xi as ScopeState, xn as LoadFromFile, xr as MutationSetOperationNameArgs, xt as DeleteModuleInput, y as PHConnectPwaUrlPattern, ya as SignalResults, yi as SchemaSetPreferredEditorAction, yn as IsDocumentOfType, yr as MutationSetOperationErrorNameArgs, yt as DeleteDocumentActionInput, z as Actions, za as UpdateStateExampleInput, zi as SetModuleNameInput, zn as MutationAddModuleArgs, zr as PruneAction, zs as IProcessorDispatch, zt as DocumentModelLocalState } from "./types-C_b4aIlv.js";
|
|
3
|
+
import { i as PACKAGES_DEPENDENCIES, n as APPS_DEPENDENCIES, r as CLIS_DEPENDENCIES, t as ALL_POWERHOUSE_DEPENDENCIES } from "./constants-BP_gjn8g.js";
|
|
4
|
+
import { $ as LegacySynchronizationUnit, A as TriggerData, B as RegistryPackageMap, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PackageInfo, G as DriveInput, H as RegistryPackageStatus, I as PackageListItem, J as SharingType, K as GenerateNodesCopyIdGenerator, L as PackagePage, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as RegistryPackage, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, V as RegistryPackageSource, W as DriveDocumentModelModule, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as GenerateNodesCopySrc, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node, z as RegistryPackageList } from "./types-DctifWUG.js";
|
|
5
|
+
import { n as buildTreeUrl, r as shortGitSha, t as GITHUB_REPO_URL } from "./index-BJU79_T5.js";
|
|
6
|
+
export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, ActionErrorCallback, ActionSignatureContext, ActionSigningHandler, ActionVerificationHandler, Actions, AddChangeLogItemAction, AddChangeLogItemInput, AddFileAction, AddFileInput, AddFolderAction, AddFolderInput, AddListenerAction, AddListenerInput, AddModuleAction, AddModuleInput, AddOperationAction, AddOperationErrorAction, AddOperationErrorInput, AddOperationExampleAction, AddOperationExampleInput, AddOperationInput, AddRelationshipAction, AddRelationshipActionInput, AddStateExampleAction, AddStateExampleInput, AddTriggerAction, AddTriggerInput, AnalyticsDimension, AnalyticsOperand, AnalyticsQuery, AnalyticsSeries, AnalyticsSeriesInput, AnalyticsSeriesQuery, AnalyticsUpdateCallback, AssertIsDocumentOfType, AssertIsStateOfType, Author, CLIS_DEPENDENCIES, CodeExample, CompoundAnalyticsExpression, CompoundAnalyticsInputs, CompoundAnalyticsQuery, ConfigEntry, ConfigEntryType, ConversionMetric, CopyChildDocumentInput, CopyChildDocumentSignal, CopyNodeAction, CopyNodeInput, CreateChildDocumentInput, CreateChildDocumentSignal, CreateDocument, CreateDocumentAction, CreateDocumentActionInput, CreateState, DeleteChangeLogItemAction, DeleteChangeLogItemInput, DeleteChildDocumentInput, DeleteChildDocumentSignal, DeleteDocumentAction, DeleteDocumentActionInput, DeleteModuleAction, DeleteModuleInput, DeleteNodeAction, DeleteNodeInput, DeleteOperationAction, DeleteOperationErrorAction, DeleteOperationErrorInput, DeleteOperationExampleAction, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleAction, DeleteStateExampleInput, DocumentAction, DocumentDriveAction, DocumentDriveDocument, DocumentDriveDriveAction, DocumentDriveDriveOperations, DocumentDriveGlobalState, DocumentDriveLocalState, DocumentDriveNodeAction, DocumentDriveNodeOperations, DocumentDrivePHState, DocumentModelAction, DocumentModelDocument, DocumentModelDocumentModelModule, DocumentModelGlobalState, DocumentModelHeaderAction, DocumentModelHeaderOperations, DocumentModelInput, DocumentModelLib, DocumentModelLocalState, DocumentModelModule, DocumentModelModuleAction, DocumentModelModuleOperations, DocumentModelOperationAction, DocumentModelOperationErrorAction, DocumentModelOperationErrorOperations, DocumentModelOperationExampleAction, DocumentModelOperationExampleOperations, DocumentModelOperationOperations, DocumentModelPHState, DocumentModelStateAction, DocumentModelStateOperations, DocumentModelUtils, DocumentModelVersioningAction, DocumentModelVersioningOperations, DocumentOperationsIgnoreMap, DocumentSpecification, DriveDocumentModelModule, DriveInput, DrivePreserveStrategies, DrivePreserveStrategy, ENSInfo, EditorDispatch, EditorModule, EditorProps, Exact, FileInput, FileNode, FolderNode, GITHUB_REPO_URL, GenerateNodesCopyIdGenerator, GenerateNodesCopySrc, GetDocumentOptions, IAction, IAnalyticsStore, ID, IDocument, IOperation, IProcessor, IProcessorDispatch, IProcessorHostModule, IProcessorManager, ISignal, ISignalResult, ISigner, Incremental, InputMaybe, IsDocumentOfType, IsStateOfType, LegacyAddFileAction, LegacyAddFileInput, LegacySynchronizationUnit, Listener, ListenerCallInfo, ListenerCallInfoInput, ListenerFilter, ListenerFilterInput, ListenerInput, LoadFromFile, LoadFromInput, LoadStateAction, LoadStateActionInput, LoadStateActionStateInput, Load_State, LogLevel, LogLevels, MakeEmpty, MakeMaybe, MakeOptional, Manifest, MappedOperation, Maybe, MinimalBackupData, ModuleSpecification, MoveNodeAction, MoveNodeInput, MoveOperationAction, MoveOperationInput, MultiCurrencyConversion, Mutation, MutationAddChangeLogItemInputArgs, MutationAddModuleArgs, MutationAddOperationArgs, MutationAddOperationErrorArgs, MutationAddOperationExampleArgs, MutationAddStateExampleArgs, MutationDeleteChangeLogItemInputArgs, MutationDeleteModuleArgs, MutationDeleteOperationArgs, MutationDeleteOperationErrorArgs, MutationDeleteOperationExampleArgs, MutationDeleteStateExampleArgs, MutationLoadStateArgs, MutationMoveOperationArgs, MutationPruneArgs, MutationRedoArgs, MutationReorderChangeLogItemsInputArgs, MutationReorderModuleOperationsArgs, MutationReorderModulesArgs, MutationReorderOperationErrorsArgs, MutationReorderOperationExamplesArgs, MutationReorderStateExamplesArgs, MutationSetAuthorNameArgs, MutationSetAuthorWebsiteArgs, MutationSetInitialStateArgs, MutationSetModelDescriptionArgs, MutationSetModelExtensionArgs, MutationSetModelIdArgs, MutationSetModelNameArgs, MutationSetModuleDescriptionArgs, MutationSetModuleNameArgs, MutationSetNameArgs, MutationSetOperationDescriptionArgs, MutationSetOperationErrorCodeArgs, MutationSetOperationErrorDescriptionArgs, MutationSetOperationErrorNameArgs, MutationSetOperationErrorTemplateArgs, MutationSetOperationNameArgs, MutationSetOperationReducerArgs, MutationSetOperationSchemaArgs, MutationSetOperationTemplateArgs, MutationSetStateSchemaArgs, MutationUndoArgs, MutationUpdateChangeLogItemInputArgs, MutationUpdateOperationExampleArgs, MutationUpdateStateExampleArgs, NOOPAction, Node, OperationErrorSpecification, OperationIndex, OperationSpecification, OperationsByScope, PACKAGES_DEPENDENCIES, PHConnectApp, PHConnectBranding, PHConnectDefaultDrive, PHConnectDriveSection, PHConnectDriveSections, PHConnectDrives, PHConnectInstance, PHConnectPackages, PHConnectPwa, PHConnectPwaCacheStrategy, PHConnectPwaFileHandler, PHConnectPwaIcon, PHConnectPwaManifest, PHConnectPwaRuntimeCaching, PHConnectPwaUrlPattern, PHConnectRenown, PHConnectRenownAdapters, PHConnectRuntimeConfig, PHConnectSentry, PHPackageProvider, PHRenownPrivyAdapterConfig, PHRenownRainbowAdapterConfig, PackageInfo, PackageListItem, PackageManagerArgs, PackagePage, ParsedCmdResult, PartialRecord, PartialState, PathValidation, PowerhouseConfig, PowerhouseModule, PowerhousePackage, ProcessorApp, ProcessorApps, ProcessorDispatchResult, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, ProcessorStatus, Prune, PruneAction, PruneActionInput, Publisher, PullResponderTriggerData, PullResponderTriggerDataInput, Query, Redo, RedoAction, RedoActionInput, Reducer, ReducerOptions, RegistryPackage, RegistryPackageList, RegistryPackageMap, RegistryPackageSource, RegistryPackageStatus, ReleaseNewVersionAction, RemoveListenerAction, RemoveListenerInput, RemoveRelationshipAction, RemoveRelationshipActionInput, RemoveTriggerAction, RemoveTriggerInput, ReorderChangeLogItemsAction, ReorderChangeLogItemsInput, ReorderModuleOperationsAction, ReorderModuleOperationsInput, ReorderModulesAction, ReorderModulesInput, ReorderOperationErrorsAction, ReorderOperationErrorsInput, ReorderOperationExamplesAction, ReorderOperationExamplesInput, ReorderStateExamplesAction, ReorderStateExamplesInput, ReplayDocumentOptions, RevisionsFilter, SaveToFile, SaveToFileHandle, Scalars, SchemaLoadStateAction, SchemaNOOPAction, SchemaPruneAction, SchemaRedoAction, SchemaSetNameAction, SchemaSetPreferredEditorAction, SchemaUndoAction, ScopeState, ServiceAction, ServiceActions, SetAuthorNameAction, SetAuthorNameInput, SetAuthorWebsiteAction, SetAuthorWebsiteInput, SetAvailableOfflineAction, SetAvailableOfflineInput, SetDriveIconAction, SetDriveIconInput, SetDriveNameAction, SetDriveNameInput, SetInitialStateAction, SetInitialStateInput, SetModelDescriptionAction, SetModelDescriptionInput, SetModelExtensionAction, SetModelExtensionInput, SetModelIdAction, SetModelIdInput, SetModelNameAction, SetModelNameInput, SetModuleDescriptionAction, SetModuleDescriptionInput, SetModuleNameAction, SetModuleNameInput, SetNameAction, SetNameActionInput, SetNameOperation, SetOperationDescriptionAction, SetOperationDescriptionInput, SetOperationErrorCodeAction, SetOperationErrorCodeInput, SetOperationErrorDescriptionAction, SetOperationErrorDescriptionInput, SetOperationErrorNameAction, SetOperationErrorNameInput, SetOperationErrorTemplateAction, SetOperationErrorTemplateInput, SetOperationNameAction, SetOperationNameInput, SetOperationReducerAction, SetOperationReducerInput, SetOperationSchemaAction, SetOperationSchemaInput, SetOperationScopeAction, SetOperationScopeInput, SetOperationTemplateAction, SetOperationTemplateInput, SetPreferredEditorAction, SetPreferredEditorActionInput, SetPreferredEditorOperation, SetSharingTypeAction, SetSharingTypeInput, SetStateSchemaAction, SetStateSchemaInput, Set_Name, Set_PreferredEditor, SharingType, Signal, SignalDispatch, SignalResult, SignalResults, SignalType, SignatureVerificationHandler, SigningParameters, SkipHeaderOperationIndex, SkipHeaderOperations, State, StateReducer, SubgraphModule, TrackedProcessor, TransmitterType, Trigger, TriggerData, TriggerInput, TriggerType, Undo, UndoAction, UndoActionInput, UndoRedoAction, UpdateChangeLogItemAction, UpdateChangeLogItemInput, UpdateFileAction, UpdateFileInput, UpdateNodeAction, UpdateNodeInput, UpdateOperationExampleAction, UpdateOperationExampleInput, UpdateRelationshipAction, UpdateRelationshipActionInput, UpdateStateExampleAction, UpdateStateExampleInput, UpgradeDocumentAction, UpgradeDocumentActionInput, User, ValidationError, buildTreeUrl, shortGitSha };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region document-model/mock.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Builds a mock value for a schema, with `overrides` taking precedence.
|
|
6
|
+
*
|
|
7
|
+
* Overridden fields are removed from the schema *before* generation rather than
|
|
8
|
+
* being overwritten afterwards. That ordering is what makes overrides usable as
|
|
9
|
+
* an escape hatch: some scalars compile to `z.custom(...)` (`AttachmentRef`,
|
|
10
|
+
* `Address`), and zocker cannot synthesise a value satisfying an arbitrary
|
|
11
|
+
* predicate — it throws. Generating first meant the throw happened before the
|
|
12
|
+
* caller's value was ever applied, so an override could not rescue the field it
|
|
13
|
+
* was written for.
|
|
14
|
+
*
|
|
15
|
+
* Only the overridden keys are skipped. A `z.custom(...)` field with no
|
|
16
|
+
* override still throws, which is correct: there is no way to invent a value
|
|
17
|
+
* for it, and the caller needs to say what it should be.
|
|
18
|
+
*/
|
|
19
|
+
declare function generateMock<TSchema extends z.ZodType>(schema: TSchema, overrides?: Partial<z.infer<TSchema>>): z.infer<TSchema>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { generateMock as t };
|
|
22
|
+
//# sourceMappingURL=mock-BcFWPQyK.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-BcFWPQyK.d.ts","names":[],"sources":["../document-model/mock.ts"],"mappings":";;;;;AA0BA;;;;;;;;;;;;;iBAAgB,YAAA,iBAA6B,CAAA,CAAE,OAAA,CAAA,CAC7C,MAAA,EAAQ,OAAA,EACR,SAAA,GAAY,OAAA,CAAQ,CAAA,CAAE,KAAA,CAAM,OAAA,KAC3B,CAAA,CAAE,KAAA,CAAM,OAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { As as HashAlgorithms, Bs as IProcessorHostModule, Ds as hashNamespace, Es as createRelationalDb, Fs as IRelationalQueryMethods, Gs as ProcessorFactory, Hs as ProcessorApp, Is as RelationalDbProcessor, Js as ProcessorRecord, Ks as ProcessorFactoryBuilder, Ls as RelationalDbProcessorClass, Lu as DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, Ms as IRelationalDb, Ns as IRelationalDbProcessor, Os as relationalDbToQueryBuilder, Ps as IRelationalQueryBuilder, Rs as IProcessor, Ru as DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, Ts as createNamespacedQueryBuilder, Us as ProcessorApps, Vs as IProcessorManager, Ws as ProcessorDispatchResult, Xs as TrackedProcessor, Ys as ProcessorStatus, js as IBaseRelationalDb, ks as ExtractProcessorSchemaOrSelf, qs as ProcessorFilter, ws as createNamespacedDb, zs as IProcessorDispatch, zu as PROCESSOR_APPS } from "../types-C_b4aIlv.js";
|
|
2
2
|
export { DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, ExtractProcessorSchemaOrSelf, HashAlgorithms, IBaseRelationalDb, IProcessor, IProcessorDispatch, IProcessorHostModule, IProcessorManager, IRelationalDb, IRelationalDbProcessor, IRelationalQueryBuilder, IRelationalQueryMethods, PROCESSOR_APPS, ProcessorApp, ProcessorApps, ProcessorDispatchResult, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, ProcessorStatus, RelationalDbProcessor, RelationalDbProcessorClass, TrackedProcessor, createNamespacedDb, createNamespacedQueryBuilder, createRelationalDb, hashNamespace, relationalDbToQueryBuilder };
|