@powerhousedao/shared 6.2.3-dev.13 → 6.2.3-dev.14
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-zW_7Brog.mjs → access-token-Bf1K1Fpc.mjs} +2 -2
- package/dist/clis/args/{access-token-zW_7Brog.mjs.map → access-token-Bf1K1Fpc.mjs.map} +1 -1
- package/dist/clis/args/access-token.mjs +1 -1
- package/dist/clis/args/{common-BT8ABM57.mjs → common-BpnFLR-_.mjs} +13 -5
- package/dist/clis/args/common-BpnFLR-_.mjs.map +1 -0
- package/dist/clis/args/{common-rEpM4Oqq.d.mts → common-yKU4B741.d.mts} +3 -3
- package/dist/clis/args/{common-rEpM4Oqq.d.mts.map → common-yKU4B741.d.mts.map} +1 -1
- package/dist/clis/args/common.d.mts +1 -1
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/{connect-Du3Us5tQ.mjs → connect-ByiLv365.mjs} +2 -2
- package/dist/clis/args/{connect-Du3Us5tQ.mjs.map → connect-ByiLv365.mjs.map} +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{generate-DkFqeNX3.mjs → generate-0aR1N6J5.mjs} +2 -2
- package/dist/clis/args/{generate-DkFqeNX3.mjs.map → generate-0aR1N6J5.mjs.map} +1 -1
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-stFOz1hp.mjs → help-CEw7OZ9E.mjs} +15 -15
- package/dist/clis/args/{help-stFOz1hp.mjs.map → help-CEw7OZ9E.mjs.map} +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +3 -3
- package/dist/clis/args/index.mjs +18 -18
- package/dist/clis/args/{init-Bu8-Ovk8.mjs → init-DBYYsV0Y.mjs} +2 -2
- package/dist/clis/args/{init-Bu8-Ovk8.mjs.map → init-DBYYsV0Y.mjs.map} +1 -1
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/{inspect-GjiR0Qqd.mjs → inspect-BzBsZ0UO.mjs} +2 -2
- package/dist/clis/args/{inspect-GjiR0Qqd.mjs.map → inspect-BzBsZ0UO.mjs.map} +1 -1
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/{install-B2hLryPk.mjs → install-D0jaysiP.mjs} +2 -2
- package/dist/clis/args/{install-B2hLryPk.mjs.map → install-D0jaysiP.mjs.map} +1 -1
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/{list-O6VmV3Cw.mjs → list-BaO47Btz.mjs} +2 -2
- package/dist/clis/args/{list-O6VmV3Cw.mjs.map → list-BaO47Btz.mjs.map} +1 -1
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/{login-BWXdMfMX.mjs → login-DM-qhiYI.mjs} +2 -2
- package/dist/clis/args/{login-BWXdMfMX.mjs.map → login-DM-qhiYI.mjs.map} +1 -1
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/{migrate-3MTmDiXt.mjs → migrate-EitaI7jq.mjs} +2 -2
- package/dist/clis/args/{migrate-3MTmDiXt.mjs.map → migrate-EitaI7jq.mjs.map} +1 -1
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/{publish--zdKYIOl.mjs → publish-DfMF3Nmc.mjs} +2 -2
- package/dist/clis/args/{publish--zdKYIOl.mjs.map → publish-DfMF3Nmc.mjs.map} +1 -1
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/{registry-BNVeE6qR.mjs → registry-Di1tZqbn.mjs} +2 -2
- package/dist/clis/args/{registry-BNVeE6qR.mjs.map → registry-Di1tZqbn.mjs.map} +1 -1
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/{service-Cou6l7l8.d.mts → service-DhIkf8-O.d.mts} +2 -2
- package/dist/clis/args/{service-Cou6l7l8.d.mts.map → service-DhIkf8-O.d.mts.map} +1 -1
- package/dist/clis/args/{service-x6wsNujS.mjs → service-jRX2qPul.mjs} +2 -2
- package/dist/clis/args/{service-x6wsNujS.mjs.map → service-jRX2qPul.mjs.map} +1 -1
- package/dist/clis/args/service.d.mts +1 -1
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/{switchboard-Cryy_3Qc.mjs → switchboard-BhR-ZwGV.mjs} +2 -2
- package/dist/clis/args/{switchboard-Cryy_3Qc.mjs.map → switchboard-BhR-ZwGV.mjs.map} +1 -1
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/{uninstall-DQUsLzCG.mjs → uninstall-diefi70g.mjs} +2 -2
- package/dist/clis/args/{uninstall-DQUsLzCG.mjs.map → uninstall-diefi70g.mjs.map} +1 -1
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/{unpublish-CeDsvgMv.mjs → unpublish-C6eNRzsU.mjs} +2 -2
- package/dist/clis/args/{unpublish-CeDsvgMv.mjs.map → unpublish-C6eNRzsU.mjs.map} +1 -1
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/{vetra-DLQ6lhLl.d.mts → vetra-CoMvTJK7.d.mts} +2 -2
- package/dist/clis/args/{vetra-DLQ6lhLl.d.mts.map → vetra-CoMvTJK7.d.mts.map} +1 -1
- package/dist/clis/args/{vetra-pYJXVf_o.mjs → vetra-DV0zQzba.mjs} +2 -2
- package/dist/clis/args/{vetra-pYJXVf_o.mjs.map → vetra-DV0zQzba.mjs.map} +1 -1
- package/dist/clis/args/vetra-ports.test.mjs +4 -4
- package/dist/clis/args/vetra-ports.test.mjs.map +1 -1
- package/dist/clis/args/vetra.d.mts +1 -1
- package/dist/clis/args/vetra.mjs +1 -1
- package/dist/clis/build-config-BkfXtfV8.mjs +230 -0
- package/dist/clis/build-config-BkfXtfV8.mjs.map +1 -0
- package/dist/clis/build-config.d.mts +16 -10617
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/build-config.mjs +2 -208
- package/dist/clis/build-pieces.d.mts +95 -0
- package/dist/clis/build-pieces.d.mts.map +1 -0
- package/dist/clis/build-pieces.mjs +363 -0
- package/dist/clis/build-pieces.mjs.map +1 -0
- package/dist/clis/constants.d.mts +2 -479
- package/dist/clis/constants.mjs +14 -5
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index-CyAv0ucZ.d.mts +10619 -0
- package/dist/clis/index-CyAv0ucZ.d.mts.map +1 -0
- package/dist/clis/index.d.mts +21 -10
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +14 -5
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/types-D17YQuYG.d.mts +490 -0
- package/dist/clis/types-D17YQuYG.d.mts.map +1 -0
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/document-drive/index.d.ts +2 -2
- package/dist/document-model/index.d.ts +3 -3
- package/dist/document-model/index.js +9 -2
- package/dist/document-model/index.js.map +1 -1
- package/dist/{index-DWS2M59v.d.ts → index-B6CAmhxM.d.ts} +2 -2
- package/dist/{index-DWS2M59v.d.ts.map → index-B6CAmhxM.d.ts.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/processors/index.d.ts +1 -1
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/index.js +12 -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/manifest-slim.js +22 -2
- package/dist/registry/manifest-slim.js.map +1 -1
- package/dist/{types-KwFsKkFJ.d.ts → types-BRWMm6VM.d.ts} +2 -2
- package/dist/{types-KwFsKkFJ.d.ts.map → types-BRWMm6VM.d.ts.map} +1 -1
- package/dist/{types-DX5QXaOU.d.ts → types-CtCDvH7x.d.ts} +25 -2
- package/dist/types-CtCDvH7x.d.ts.map +1 -0
- package/package.json +5 -1
- package/dist/clis/args/common-BT8ABM57.mjs.map +0 -1
- package/dist/clis/build-config.mjs.map +0 -1
- package/dist/clis/constants.d.mts.map +0 -1
- package/dist/types-DX5QXaOU.d.ts.map +0 -1
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region clis/constants.d.ts
|
|
4
|
+
declare const SERVICE_ACTIONS: readonly ["start", "stop", "status", "setup", "restart"];
|
|
5
|
+
declare const SECONDS_IN_DAY: number;
|
|
6
|
+
declare const DEFAULT_EXPIRY_DAYS = 7;
|
|
7
|
+
declare const DEFAULT_EXPIRY_SECONDS: number;
|
|
8
|
+
declare const DRIVES_PRESERVE_STRATEGIES: readonly ["preserve-all", "preserve-by-url-and-detach"];
|
|
9
|
+
declare const LOG_LEVELS: readonly ["debug", "info", "warn", "error", "verbose"];
|
|
10
|
+
declare const DEFAULT_TIMEOUT: 300;
|
|
11
|
+
declare const DEFAULT_CONNECT_STUDIO_PORT: 3000;
|
|
12
|
+
declare const DEFAULT_VETRA_CONNECT_PORT: 3001;
|
|
13
|
+
declare const DEFAULT_CONNECT_PREVIEW_PORT: 4173;
|
|
14
|
+
declare const DEFAULT_CONNECT_OUTDIR: ".ph/connect-build/dist/";
|
|
15
|
+
declare const DEFAULT_RENOWN_URL: "https://www.renown.id";
|
|
16
|
+
declare const DEFAULT_REGISTRY_URL: "https://registry.vetra.io";
|
|
17
|
+
declare const DEFAULT_SWITCHBOARD_PORT: 4001;
|
|
18
|
+
declare const PROJECT_PORT_BAND_SIZE: 1000;
|
|
19
|
+
declare const PROJECT_PORT_BAND_SWITCHBOARD: 7000;
|
|
20
|
+
declare const PROJECT_PORT_BAND_STUDIO: 6000;
|
|
21
|
+
declare const PROJECT_PORT_BAND_VETRA_CONNECT: 2000;
|
|
22
|
+
declare const DEFAULT_VETRA_DRIVE_ID: "vetra";
|
|
23
|
+
declare const MINIMUM_NODE_VERSION: "24.0.0";
|
|
24
|
+
declare const PH_BIN: "ph-cli-legacy";
|
|
25
|
+
declare const POWERHOUSE_CONFIG_FILE: "powerhouse.config.json";
|
|
26
|
+
declare const PH_GLOBAL_DIR_NAME: ".ph";
|
|
27
|
+
declare const PH_GLOBAL_PROJECT_NAME: ".ph";
|
|
28
|
+
declare const HOME_DIR: string;
|
|
29
|
+
declare const POWERHOUSE_GLOBAL_DIR: string;
|
|
30
|
+
declare const VERSIONED_PEER_DEPENDENCIES: string[];
|
|
31
|
+
declare const REACTOR_API_PACKAGE = "@powerhousedao/reactor-api";
|
|
32
|
+
declare const ANALYTICS_ENGINE_CORE_PACKAGE = "@powerhousedao/analytics-engine-core";
|
|
33
|
+
declare const GRAPHQL_PACKAGE = "graphql";
|
|
34
|
+
declare const GRAPHQL_TAG_PACKAGE = "graphql-tag";
|
|
35
|
+
declare const PIECES_FRAMEWORK_PACKAGE = "@powerhousedao/pieces-framework";
|
|
36
|
+
declare const PEER_EXTERNAL_DEPENDENCIES: {
|
|
37
|
+
readonly graphql: {
|
|
38
|
+
readonly peer: "^16";
|
|
39
|
+
readonly dev: "16.12.0";
|
|
40
|
+
};
|
|
41
|
+
readonly "graphql-tag": {
|
|
42
|
+
readonly peer: "^2";
|
|
43
|
+
readonly dev: "2.12.6";
|
|
44
|
+
};
|
|
45
|
+
readonly react: {
|
|
46
|
+
readonly peer: "^19";
|
|
47
|
+
readonly dev: "19.2.6";
|
|
48
|
+
};
|
|
49
|
+
readonly "react-dom": {
|
|
50
|
+
readonly peer: "^19";
|
|
51
|
+
readonly dev: "19.2.6";
|
|
52
|
+
};
|
|
53
|
+
readonly zod: {
|
|
54
|
+
readonly peer: "^4";
|
|
55
|
+
readonly dev: "4.3.6";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
declare const FEATURE_DEPENDENCIES: {
|
|
59
|
+
readonly analyticsProcessor: {
|
|
60
|
+
readonly peerVersioned: readonly ["@powerhousedao/analytics-engine-core"];
|
|
61
|
+
readonly peerExternal: {};
|
|
62
|
+
readonly devVersioned: readonly [];
|
|
63
|
+
};
|
|
64
|
+
readonly piece: {
|
|
65
|
+
readonly peerVersioned: readonly [];
|
|
66
|
+
readonly peerExternal: {};
|
|
67
|
+
readonly devVersioned: readonly ["@powerhousedao/pieces-framework"];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
declare const VERSIONED_DEPENDENCIES: string[];
|
|
71
|
+
declare const BOILERPLATE_ALLOWED_BUILDS: readonly ["@apollo/protobufjs", "@datadog/pprof", "@parcel/watcher", "@reown/appkit", "bufferutil", "esbuild", "keccak", "protobufjs", "utf-8-validate"];
|
|
72
|
+
declare const BOILERPLATE_DEPENDENCY_OVERRIDES: {
|
|
73
|
+
readonly "date-fns": "4.3.0";
|
|
74
|
+
readonly vite: "8.0.14";
|
|
75
|
+
readonly rolldown: "1.0.2";
|
|
76
|
+
};
|
|
77
|
+
declare const VERSIONED_DEV_DEPENDENCIES: string[];
|
|
78
|
+
declare const packageJsonExports: {
|
|
79
|
+
readonly ".": {
|
|
80
|
+
readonly types: "./dist/types/index.d.ts";
|
|
81
|
+
readonly browser: "./dist/browser/index.js";
|
|
82
|
+
readonly node: "./dist/node/index.mjs";
|
|
83
|
+
};
|
|
84
|
+
readonly "./reactor": {
|
|
85
|
+
readonly types: "./dist/types/reactor/index.d.ts";
|
|
86
|
+
readonly browser: "./dist/browser/reactor/index.js";
|
|
87
|
+
};
|
|
88
|
+
readonly "./document-models": {
|
|
89
|
+
readonly types: "./dist/types/document-models/index.d.ts";
|
|
90
|
+
readonly browser: "./dist/browser/document-models/index.js";
|
|
91
|
+
readonly node: "./dist/node/document-models/index.mjs";
|
|
92
|
+
};
|
|
93
|
+
readonly "./document-models/*": {
|
|
94
|
+
readonly types: "./dist/types/document-models/*/index.d.ts";
|
|
95
|
+
readonly browser: "./dist/browser/document-models/*/index.js";
|
|
96
|
+
readonly node: "./dist/node/document-models/*/index.mjs";
|
|
97
|
+
};
|
|
98
|
+
readonly "./editors": {
|
|
99
|
+
readonly types: "./dist/types/editors/index.d.ts";
|
|
100
|
+
readonly browser: "./dist/browser/editors/index.js";
|
|
101
|
+
readonly node: "./dist/node/editors/index.mjs";
|
|
102
|
+
};
|
|
103
|
+
readonly "./editors/*": {
|
|
104
|
+
readonly types: "./dist/types/editors/*/editor.d.ts";
|
|
105
|
+
readonly browser: "./dist/browser/editors/*/editor.js";
|
|
106
|
+
readonly node: "./dist/node/editors/*/editor.mjs";
|
|
107
|
+
};
|
|
108
|
+
readonly "./subgraphs": {
|
|
109
|
+
readonly types: "./dist/types/subgraphs/index.d.ts";
|
|
110
|
+
readonly browser: "./dist/browser/subgraphs/index.js";
|
|
111
|
+
readonly node: "./dist/node/subgraphs/index.mjs";
|
|
112
|
+
};
|
|
113
|
+
readonly "./processors": {
|
|
114
|
+
readonly types: "./dist/types/processors/index.d.ts";
|
|
115
|
+
readonly browser: "./dist/browser/processors/index.js";
|
|
116
|
+
readonly node: "./dist/node/processors/index.mjs";
|
|
117
|
+
};
|
|
118
|
+
readonly "./pieces": {
|
|
119
|
+
readonly types: "./dist/types/pieces/index.d.ts";
|
|
120
|
+
readonly node: "./dist/node/pieces/index.mjs";
|
|
121
|
+
};
|
|
122
|
+
readonly "./pieces/*": {
|
|
123
|
+
readonly types: "./dist/types/pieces/*/index.d.ts";
|
|
124
|
+
readonly node: "./dist/node/pieces/*/index.mjs";
|
|
125
|
+
};
|
|
126
|
+
readonly "./manifest": "./dist/powerhouse.manifest.json";
|
|
127
|
+
readonly "./style.css": "./dist/style.css";
|
|
128
|
+
};
|
|
129
|
+
declare const packageScripts: {
|
|
130
|
+
readonly "test:watch": "vitest";
|
|
131
|
+
readonly lint: "oxlint --type-aware --type-check";
|
|
132
|
+
readonly "lint:fix": "oxlint --type-aware --type-check --fix";
|
|
133
|
+
readonly format: "oxfmt";
|
|
134
|
+
readonly "format:check": "oxfmt --check";
|
|
135
|
+
readonly tsc: "tsc";
|
|
136
|
+
readonly "tsc:watch": "tsc --watch";
|
|
137
|
+
readonly generate: "ph-cli generate";
|
|
138
|
+
readonly connect: "ph-cli connect";
|
|
139
|
+
readonly build: "ph-cli build";
|
|
140
|
+
readonly reactor: "ph-cli reactor";
|
|
141
|
+
readonly service: "ph-cli service";
|
|
142
|
+
readonly vetra: "ph-cli vetra";
|
|
143
|
+
readonly "service-startup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh";
|
|
144
|
+
readonly "service-unstartup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh";
|
|
145
|
+
};
|
|
146
|
+
declare const externalDependencies: {};
|
|
147
|
+
declare const LEGACY_LINT_FORMAT_DEPENDENCIES: readonly ["@eslint/js", "eslint", "eslint-config-prettier", "eslint-plugin-prettier", "eslint-plugin-react", "eslint-plugin-react-hooks", "globals", "prettier", "typescript-eslint"];
|
|
148
|
+
declare const LEGACY_LINT_FORMAT_FILES: readonly ["eslint.config.js", "eslint.config.mjs", "eslint.config.cjs", "eslint.config.ts", ".eslintrc", ".eslintrc.js", ".eslintrc.cjs", ".eslintrc.json", ".eslintrc.yml", ".eslintrc.yaml", ".eslintignore", ".prettierrc", ".prettierrc.js", ".prettierrc.cjs", ".prettierrc.json", ".prettierrc.yml", ".prettierrc.yaml", "prettier.config.js", "prettier.config.cjs", "prettier.config.mjs", ".prettierignore"];
|
|
149
|
+
declare const externalDevDependencies: {
|
|
150
|
+
readonly "@electric-sql/pglite": "0.3.15";
|
|
151
|
+
readonly "@electric-sql/pglite-tools": "0.2.20";
|
|
152
|
+
readonly "@powerhousedao/document-engineering": "1.40.5";
|
|
153
|
+
readonly "@tailwindcss/cli": "^4.1.18";
|
|
154
|
+
readonly "@tailwindcss/vite": "^4.1.18";
|
|
155
|
+
readonly "@types/node": "^24.9.2";
|
|
156
|
+
readonly "@types/react": "^19.2.3";
|
|
157
|
+
readonly "@types/react-dom": "^19.2.3";
|
|
158
|
+
readonly "@vitejs/plugin-react": "^6.0.1";
|
|
159
|
+
readonly "@vitest/coverage-v8": "4.1.1";
|
|
160
|
+
readonly oxfmt: "0.55.0";
|
|
161
|
+
readonly oxlint: "1.70.0";
|
|
162
|
+
readonly "oxlint-tsgolint": "0.23.0";
|
|
163
|
+
readonly tailwindcss: "^4.1.16";
|
|
164
|
+
readonly typescript: "^5.9.3";
|
|
165
|
+
readonly vite: "^8.0.10";
|
|
166
|
+
readonly "vite-tsconfig-paths": "6.1.1";
|
|
167
|
+
readonly vitest: "4.1.1";
|
|
168
|
+
};
|
|
169
|
+
declare const defaultManifest: Manifest;
|
|
170
|
+
declare const DEFAULT_CONFIG: PowerhouseConfig;
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region clis/types.d.ts
|
|
173
|
+
type DrivePreserveStrategies = typeof DRIVES_PRESERVE_STRATEGIES;
|
|
174
|
+
type DrivePreserveStrategy = DrivePreserveStrategies[number];
|
|
175
|
+
type LogLevels = typeof LOG_LEVELS;
|
|
176
|
+
type LogLevel = LogLevels[number];
|
|
177
|
+
type PHPackageProvider = "npm" | "github" | "local" | "registry";
|
|
178
|
+
type PowerhousePackage = {
|
|
179
|
+
packageName: string;
|
|
180
|
+
version?: string;
|
|
181
|
+
provider?: PHPackageProvider;
|
|
182
|
+
url?: string;
|
|
183
|
+
};
|
|
184
|
+
type PHConnectBranding = {
|
|
185
|
+
appName?: string;
|
|
186
|
+
homeBackground?: string | null;
|
|
187
|
+
};
|
|
188
|
+
type PHConnectDefaultDriveRemote = {
|
|
189
|
+
url: string;
|
|
190
|
+
name?: string | null;
|
|
191
|
+
icon?: string | null;
|
|
192
|
+
};
|
|
193
|
+
type PHConnectDefaultDriveLocal = {
|
|
194
|
+
/** Discriminator: this entry is a local drive created on first boot. */local: true; /** Stable drive id; the drive is not re-created on later boots. */
|
|
195
|
+
id: string;
|
|
196
|
+
name?: string | null;
|
|
197
|
+
icon?: string | null; /** Drive app (preferred editor) to open on the drive. */
|
|
198
|
+
app?: string;
|
|
199
|
+
};
|
|
200
|
+
type PHConnectDefaultDrive = PHConnectDefaultDriveRemote | PHConnectDefaultDriveLocal;
|
|
201
|
+
type PHConnectDriveSection = {
|
|
202
|
+
enabled?: boolean;
|
|
203
|
+
allowAdd?: boolean;
|
|
204
|
+
allowDelete?: boolean;
|
|
205
|
+
};
|
|
206
|
+
type PHConnectDriveSections = {
|
|
207
|
+
remote?: PHConnectDriveSection;
|
|
208
|
+
local?: PHConnectDriveSection;
|
|
209
|
+
};
|
|
210
|
+
type PHConnectDrives = {
|
|
211
|
+
allowAddDrive?: boolean;
|
|
212
|
+
defaultDrives?: PHConnectDefaultDrive[];
|
|
213
|
+
preserveStrategy?: DrivePreserveStrategy;
|
|
214
|
+
sections?: PHConnectDriveSections;
|
|
215
|
+
};
|
|
216
|
+
type PHConnectApp = {
|
|
217
|
+
logLevel?: "debug" | "info" | "warn" | "error";
|
|
218
|
+
basePath?: string;
|
|
219
|
+
offline?: boolean;
|
|
220
|
+
studioMode?: boolean;
|
|
221
|
+
workflowsEnabled?: boolean;
|
|
222
|
+
};
|
|
223
|
+
type PHConnectAi = {
|
|
224
|
+
/** Enables the in-browser AI assistant (chat FAB + window). Off by default. */assistantEnabled?: boolean;
|
|
225
|
+
};
|
|
226
|
+
type PHConnectPackages = {
|
|
227
|
+
externalEnabled?: boolean; /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
|
|
228
|
+
liveReload?: boolean;
|
|
229
|
+
};
|
|
230
|
+
type PHRenownRainbowAdapterConfig = {
|
|
231
|
+
/** WalletConnect project id; required for the rainbow adapter to function. */walletConnectProjectId?: string; /** Optional Infura project id used to build RPC transports. */
|
|
232
|
+
infuraProjectId?: string;
|
|
233
|
+
};
|
|
234
|
+
type PHRenownPrivyAdapterConfig = {
|
|
235
|
+
/** Privy application id; required for the privy adapter to function. */appId?: string; /** Optional Privy client id. */
|
|
236
|
+
clientId?: string; /** Login methods this adapter offers; defaults per adapter when omitted. */
|
|
237
|
+
methods?: string[];
|
|
238
|
+
};
|
|
239
|
+
type PHConnectRenownAdapters = {
|
|
240
|
+
rainbow?: PHRenownRainbowAdapterConfig;
|
|
241
|
+
privy?: PHRenownPrivyAdapterConfig;
|
|
242
|
+
};
|
|
243
|
+
type PHConnectRenown = {
|
|
244
|
+
url?: string;
|
|
245
|
+
networkId?: string;
|
|
246
|
+
chainId?: number; /** Renown localStorage namespace; share it across Connects to share login. */
|
|
247
|
+
namespace?: string; /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
|
|
248
|
+
switchboardUrl?: string; /** Per-adapter wallet config; presence of a key enables that adapter. */
|
|
249
|
+
adapters?: PHConnectRenownAdapters;
|
|
250
|
+
};
|
|
251
|
+
type PHConnectSentry = {
|
|
252
|
+
/** Sentry DSN URL. `null` disables Sentry entirely. */dsn?: string | null; /** Sentry environment label. */
|
|
253
|
+
env?: string; /** Enable Sentry performance tracing. */
|
|
254
|
+
tracing?: boolean;
|
|
255
|
+
};
|
|
256
|
+
type PHConnectInstance = {
|
|
257
|
+
namespace: string | null;
|
|
258
|
+
reactorWorker: boolean;
|
|
259
|
+
};
|
|
260
|
+
/** Each flag implies its predecessors, and must match the fleet Connect syncs
|
|
261
|
+
* with or the two compute different replay outcomes. */
|
|
262
|
+
type PHConnectReactorFeatureFlags = {
|
|
263
|
+
/** Decide writes from the document stream instead of the meta cache. */documentDecisions?: boolean; /** Enforce the auth scope's policy at admission, replay, and read. */
|
|
264
|
+
authEnforcement?: boolean; /** Let `{ group }` principals match, via the group documents' rosters. */
|
|
265
|
+
authGroups?: boolean; /** Evaluate `where` / `match` conditions on grants. */
|
|
266
|
+
authConditions?: boolean;
|
|
267
|
+
};
|
|
268
|
+
type PHConnectReactor = {
|
|
269
|
+
featureFlags?: PHConnectReactorFeatureFlags;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* A URL-matching pattern for a service-worker runtime-caching rule, in
|
|
273
|
+
* JSON-serialisable form. A plain string is handed to Workbox verbatim (exact
|
|
274
|
+
* URL or same-origin path match). `{ source, flags }` is reconstructed into a
|
|
275
|
+
* `RegExp` at build time — use it for prefix/suffix/origin matches (e.g.
|
|
276
|
+
* `{ source: "^https://api\\.acme\\.io/" }`). Function-valued patterns aren't
|
|
277
|
+
* expressible here; regex covers the realistic package cases.
|
|
278
|
+
*/
|
|
279
|
+
type PHConnectPwaUrlPattern = string | {
|
|
280
|
+
source: string;
|
|
281
|
+
flags?: string;
|
|
282
|
+
};
|
|
283
|
+
type PHConnectPwaCacheStrategy = "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
|
|
284
|
+
/** Serialisable subset of a Workbox `RuntimeCaching` rule. */
|
|
285
|
+
type PHConnectPwaRuntimeCaching = {
|
|
286
|
+
urlPattern: PHConnectPwaUrlPattern;
|
|
287
|
+
handler: PHConnectPwaCacheStrategy;
|
|
288
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "PATCH";
|
|
289
|
+
options?: {
|
|
290
|
+
cacheName?: string;
|
|
291
|
+
/** Seconds a NetworkFirst rule waits for the network before falling back
|
|
292
|
+
* to the cache. */
|
|
293
|
+
networkTimeoutSeconds?: number;
|
|
294
|
+
expiration?: {
|
|
295
|
+
maxEntries?: number;
|
|
296
|
+
maxAgeSeconds?: number;
|
|
297
|
+
};
|
|
298
|
+
cacheableResponse?: {
|
|
299
|
+
statuses?: number[];
|
|
300
|
+
headers?: Record<string, string>;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
type PHConnectPwaIcon = {
|
|
305
|
+
src: string;
|
|
306
|
+
sizes?: string;
|
|
307
|
+
type?: string;
|
|
308
|
+
purpose?: string;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* A File Handling API entry a package or project contributes: the OS-level
|
|
312
|
+
* file types the installed Connect PWA offers to open. There is deliberately
|
|
313
|
+
* no `action` field — consuming launched files requires runtime code that
|
|
314
|
+
* lives in Connect itself, so every handler (built-in or contributed) opens
|
|
315
|
+
* at Connect's app root, injected at build time.
|
|
316
|
+
*/
|
|
317
|
+
type PHConnectPwaFileHandler = {
|
|
318
|
+
/** MIME type → file extensions (each must start with "."). */accept: Record<string, string[]>; /** OS-level file-type icons. */
|
|
319
|
+
icons?: PHConnectPwaIcon[];
|
|
320
|
+
launch_type?: "single-client" | "multiple-clients";
|
|
321
|
+
};
|
|
322
|
+
/** Web-app-manifest fields a package or project may override. */
|
|
323
|
+
type PHConnectPwaManifest = {
|
|
324
|
+
name?: string;
|
|
325
|
+
short_name?: string;
|
|
326
|
+
description?: string;
|
|
327
|
+
theme_color?: string;
|
|
328
|
+
background_color?: string;
|
|
329
|
+
display?: "fullscreen" | "standalone" | "minimal-ui" | "browser";
|
|
330
|
+
start_url?: string;
|
|
331
|
+
scope?: string;
|
|
332
|
+
icons?: PHConnectPwaIcon[]; /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
|
|
333
|
+
file_handlers?: PHConnectPwaFileHandler[]; /** How the OS launches the app for handled files/links. */
|
|
334
|
+
launch_handler?: {
|
|
335
|
+
client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
|
|
336
|
+
};
|
|
337
|
+
/** App-store-style categories. NOT authored under `connect.pwa` — derived at
|
|
338
|
+
* build/runtime from the `category` field of every contributing
|
|
339
|
+
* `powerhouse.manifest.json` (project + packages), unioned across them. */
|
|
340
|
+
categories?: string[];
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* PWA / service-worker overrides contributed by a package or the project.
|
|
344
|
+
* Layered on top of Connect's hardcoded PWA defaults at build time. Scalar
|
|
345
|
+
* fields deep-merge (later layer wins); every array member — the manifest
|
|
346
|
+
* arrays (`icons`, `file_handlers`, and the derived `categories`) plus the
|
|
347
|
+
* top-level `globPatterns`, `globIgnores`, `runtimeCaching` and
|
|
348
|
+
* `navigateFallbackDenylist` — is additive (concatenated/unioned);
|
|
349
|
+
* `maximumFileSizeToCacheInBytes` takes the max across contributors.
|
|
350
|
+
* Precedence: defaults < package fragments < project config.
|
|
351
|
+
*/
|
|
352
|
+
type PHConnectPwa = {
|
|
353
|
+
manifest?: PHConnectPwaManifest; /** Extra Workbox precache globs, unioned with the built-in patterns. */
|
|
354
|
+
globPatterns?: string[]; /** Extra Workbox precache ignore globs, unioned with the built-in list. */
|
|
355
|
+
globIgnores?: string[]; /** Raise the precache file-size ceiling; the max across contributors wins. */
|
|
356
|
+
maximumFileSizeToCacheInBytes?: number; /** Additional runtime-caching rules, appended after the built-in rules. */
|
|
357
|
+
runtimeCaching?: PHConnectPwaRuntimeCaching[]; /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
|
|
358
|
+
navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
|
|
359
|
+
};
|
|
360
|
+
type PHConnectRuntimeConfig = {
|
|
361
|
+
branding?: PHConnectBranding;
|
|
362
|
+
app?: PHConnectApp;
|
|
363
|
+
ai?: PHConnectAi;
|
|
364
|
+
packages?: PHConnectPackages;
|
|
365
|
+
drives?: PHConnectDrives;
|
|
366
|
+
renown?: PHConnectRenown;
|
|
367
|
+
sentry?: PHConnectSentry;
|
|
368
|
+
instance?: PHConnectInstance;
|
|
369
|
+
reactor?: PHConnectReactor;
|
|
370
|
+
pwa?: PHConnectPwa;
|
|
371
|
+
};
|
|
372
|
+
/** Which Renown instance a reactor authenticates against, server-side. */
|
|
373
|
+
type PHReactorRenown = {
|
|
374
|
+
/** "self" reads this reactor's own renown read model; "remote" (default)
|
|
375
|
+
* queries a Renown or Switchboard instance. */
|
|
376
|
+
source?: "remote" | "self"; /** Renown base URL; also the instance this reactor's own identity uses. */
|
|
377
|
+
url?: string; /** Switchboard GraphQL endpoint to read credentials from directly. */
|
|
378
|
+
switchboardUrl?: string;
|
|
379
|
+
};
|
|
380
|
+
type PowerhouseConfig = {
|
|
381
|
+
logLevel: LogLevel;
|
|
382
|
+
documentModelsDir: string;
|
|
383
|
+
editorsDir: string;
|
|
384
|
+
processorsDir: string;
|
|
385
|
+
subgraphsDir: string;
|
|
386
|
+
importScriptsDir: string;
|
|
387
|
+
skipFormat: boolean;
|
|
388
|
+
interactive?: boolean;
|
|
389
|
+
watch?: boolean;
|
|
390
|
+
reactor?: {
|
|
391
|
+
port?: number;
|
|
392
|
+
https?: undefined | boolean | {
|
|
393
|
+
keyPath: string;
|
|
394
|
+
certPath: string;
|
|
395
|
+
};
|
|
396
|
+
storage?: {
|
|
397
|
+
type: "filesystem" | "memory" | "postgres" | "browser";
|
|
398
|
+
filesystemPath?: string;
|
|
399
|
+
postgresUrl?: string;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
auth?: {
|
|
403
|
+
enabled?: boolean;
|
|
404
|
+
admins: string[];
|
|
405
|
+
renown?: PHReactorRenown;
|
|
406
|
+
};
|
|
407
|
+
switchboard?: {
|
|
408
|
+
database?: {
|
|
409
|
+
url?: string;
|
|
410
|
+
};
|
|
411
|
+
port?: number;
|
|
412
|
+
};
|
|
413
|
+
studio?: {
|
|
414
|
+
port?: number;
|
|
415
|
+
host?: string;
|
|
416
|
+
https: boolean;
|
|
417
|
+
openBrowser?: boolean;
|
|
418
|
+
};
|
|
419
|
+
packages?: PowerhousePackage[];
|
|
420
|
+
vetra?: {
|
|
421
|
+
driveId?: string;
|
|
422
|
+
driveUrl?: string;
|
|
423
|
+
connectPort?: number;
|
|
424
|
+
};
|
|
425
|
+
workflows?: {
|
|
426
|
+
enabled?: boolean;
|
|
427
|
+
};
|
|
428
|
+
packageRegistryUrl?: string;
|
|
429
|
+
connect?: PHConnectRuntimeConfig;
|
|
430
|
+
};
|
|
431
|
+
//#endregion
|
|
432
|
+
//#region document-model/schemas.d.ts
|
|
433
|
+
declare const ManifestSchema: z.ZodObject<{
|
|
434
|
+
name: z.ZodString;
|
|
435
|
+
description: z.ZodOptional<z.ZodString>;
|
|
436
|
+
category: z.ZodOptional<z.ZodString>;
|
|
437
|
+
image: z.ZodOptional<z.ZodString>;
|
|
438
|
+
publisher: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
name: z.ZodOptional<z.ZodString>;
|
|
440
|
+
url: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strip>>;
|
|
442
|
+
documentModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
name: z.ZodString;
|
|
445
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
446
|
+
}, z.core.$strip>>>;
|
|
447
|
+
apps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
448
|
+
id: z.ZodString;
|
|
449
|
+
name: z.ZodString;
|
|
450
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
451
|
+
}, z.core.$strip>>>;
|
|
452
|
+
editors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
453
|
+
id: z.ZodString;
|
|
454
|
+
name: z.ZodString;
|
|
455
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
456
|
+
}, z.core.$strip>>>;
|
|
457
|
+
processors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
458
|
+
id: z.ZodString;
|
|
459
|
+
name: z.ZodString;
|
|
460
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
461
|
+
}, z.core.$strip>>>;
|
|
462
|
+
subgraphs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
463
|
+
id: z.ZodString;
|
|
464
|
+
name: z.ZodString;
|
|
465
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
466
|
+
}, z.core.$strip>>>;
|
|
467
|
+
pieces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
468
|
+
id: z.ZodString;
|
|
469
|
+
name: z.ZodString;
|
|
470
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
471
|
+
version: z.ZodOptional<z.ZodString>;
|
|
472
|
+
description: z.ZodOptional<z.ZodString>;
|
|
473
|
+
bundle: z.ZodOptional<z.ZodString>;
|
|
474
|
+
descriptor: z.ZodOptional<z.ZodString>;
|
|
475
|
+
}, z.core.$strip>>>;
|
|
476
|
+
config: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
477
|
+
name: z.ZodString;
|
|
478
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
|
|
479
|
+
description: z.ZodOptional<z.ZodString>;
|
|
480
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
481
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
482
|
+
}, z.core.$strip>>>;
|
|
483
|
+
pwa: z.ZodOptional<z.ZodType<PHConnectPwa, unknown, z.core.$ZodTypeInternals<PHConnectPwa, unknown>>>;
|
|
484
|
+
}, z.core.$strip>;
|
|
485
|
+
//#endregion
|
|
486
|
+
//#region document-model/types.d.ts
|
|
487
|
+
type Manifest = z.infer<typeof ManifestSchema>;
|
|
488
|
+
//#endregion
|
|
489
|
+
export { PIECES_FRAMEWORK_PACKAGE as A, VERSIONED_DEPENDENCIES as B, LEGACY_LINT_FORMAT_FILES as C, PH_BIN as D, PEER_EXTERNAL_DEPENDENCIES as E, PROJECT_PORT_BAND_SWITCHBOARD as F, externalDevDependencies as G, VERSIONED_PEER_DEPENDENCIES as H, PROJECT_PORT_BAND_VETRA_CONNECT as I, packageJsonExports as K, REACTOR_API_PACKAGE as L, POWERHOUSE_GLOBAL_DIR as M, PROJECT_PORT_BAND_SIZE as N, PH_GLOBAL_DIR_NAME as O, PROJECT_PORT_BAND_STUDIO as P, SECONDS_IN_DAY as R, LEGACY_LINT_FORMAT_DEPENDENCIES as S, MINIMUM_NODE_VERSION as T, defaultManifest as U, VERSIONED_DEV_DEPENDENCIES as V, externalDependencies as W, DRIVES_PRESERVE_STRATEGIES as _, DEFAULT_CONFIG as a, GRAPHQL_TAG_PACKAGE as b, DEFAULT_CONNECT_STUDIO_PORT as c, DEFAULT_REGISTRY_URL as d, DEFAULT_RENOWN_URL as f, DEFAULT_VETRA_DRIVE_ID as g, DEFAULT_VETRA_CONNECT_PORT as h, BOILERPLATE_DEPENDENCY_OVERRIDES as i, POWERHOUSE_CONFIG_FILE as j, PH_GLOBAL_PROJECT_NAME as k, DEFAULT_EXPIRY_DAYS as l, DEFAULT_TIMEOUT as m, ANALYTICS_ENGINE_CORE_PACKAGE as n, DEFAULT_CONNECT_OUTDIR as o, DEFAULT_SWITCHBOARD_PORT as p, packageScripts as q, BOILERPLATE_ALLOWED_BUILDS as r, DEFAULT_CONNECT_PREVIEW_PORT as s, Manifest as t, DEFAULT_EXPIRY_SECONDS as u, FEATURE_DEPENDENCIES as v, LOG_LEVELS as w, HOME_DIR as x, GRAPHQL_PACKAGE as y, SERVICE_ACTIONS as z };
|
|
490
|
+
//# sourceMappingURL=types-D17YQuYG.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-D17YQuYG.d.mts","names":[],"sources":["../../clis/constants.ts","../../clis/types.ts","../../document-model/schemas.ts","../../document-model/types.ts"],"mappings":";;;cAKa,eAAA;AAAA,cAQA,cAAA;AAAA,cACA,mBAAA;AAAA,cACA,sBAAA;AAAA,cAEA,0BAAA;AAAA,cAKA,UAAA;AAAA,cAQA,eAAA;AAAA,cAEA,2BAAA;AAAA,cAEA,0BAAA;AAAA,cAEA,4BAAA;AAAA,cAEA,sBAAA;AAAA,cAEA,kBAAA;AAAA,cAEA,oBAAA;AAAA,cAEA,wBAAA;AAAA,cAqBA,sBAAA;AAAA,cACA,6BAAA;AAAA,cACA,wBAAA;AAAA,cACA,+BAAA;AAAA,cAEA,sBAAA;AAAA,cAEA,oBAAA;AAAA,cACA,MAAA;AAAA,cACA,sBAAA;AAAA,cACA,kBAAA;AAAA,cAEA,sBAAA;AAAA,cAEA,QAAA;AAAA,cAEA,qBAAA;AAAA,cAGA,2BAAA;AAAA,cAOA,mBAAA;AAAA,cACA,6BAAA;AAAA,cAEA,eAAA;AAAA,cACA,mBAAA;AAAA,cACA,wBAAA;AAAA,cAQA,0BAAA;EAAA;;;;;;;;;;;;;;;;;;;;;cAUA,oBAAA;EAAA;;;;;;;;;;;cAsBA,sBAAA;AAAA,cAUA,0BAAA;AAAA,cAiBA,gCAAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KCg0Bf,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA"}
|
package/dist/connect/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as PHConnectRuntimeConfig, I as PowerhouseConfig, L as PowerhousePackage, S as PHConnectPwaUrlPattern, _ as PHConnectPwaCacheStrategy, b as PHConnectPwaManifest, g as PHConnectPwa, v as PHConnectPwaFileHandler, x as PHConnectPwaRuntimeCaching, y as PHConnectPwaIcon } from "../types-
|
|
1
|
+
import { D as PHConnectRuntimeConfig, I as PowerhouseConfig, L as PowerhousePackage, S as PHConnectPwaUrlPattern, _ as PHConnectPwaCacheStrategy, b as PHConnectPwaManifest, g as PHConnectPwa, v as PHConnectPwaFileHandler, x as PHConnectPwaRuntimeCaching, y as PHConnectPwaIcon } from "../types-CtCDvH7x.js";
|
|
2
2
|
import { ConfigAdapter, ConfigLoader, ConfigShape, DeepPartial, deepMerge } from "./config-loader.js";
|
|
3
3
|
import { JsonConfigAdapter, JsonConfigAdapterOptions } from "./json-adapter.js";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bt as DocumentModelGlobalState, En as IsStateOfType, On as LoadFromInput,
|
|
2
|
-
import { $ as LegacySynchronizationUnit, A as TriggerData, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, G as DriveInput, J as SharingType, K as GenerateNodesCopyIdGenerator, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, 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, l as DocumentDrivePHState$1, 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 } from "../types-
|
|
1
|
+
import { Bt as DocumentModelGlobalState, En as IsStateOfType, On as LoadFromInput, Rn as Maybe, Tn as IsDocumentOfType, gt as CreateDocument, ot as AssertIsDocumentOfType, st as AssertIsStateOfType, td as PHBaseState, ti as Reducer, xi as SaveToFileHandle, yt as CreateState } from "../types-CtCDvH7x.js";
|
|
2
|
+
import { $ as LegacySynchronizationUnit, A as TriggerData, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, G as DriveInput, J as SharingType, K as GenerateNodesCopyIdGenerator, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, 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, l as DocumentDrivePHState$1, 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 } from "../types-BRWMm6VM.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region document-drive/constants.d.ts
|