@powerhousedao/shared 6.0.0-dev.105 → 6.0.0-dev.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/analytics/index.d.ts +42 -4
  2. package/dist/analytics/index.d.ts.map +1 -1
  3. package/dist/analytics/index.js +307 -4
  4. package/dist/analytics/index.js.map +1 -1
  5. package/dist/clis/index.d.mts +1271 -0
  6. package/dist/clis/index.d.mts.map +1 -0
  7. package/dist/clis/index.mjs +6801 -0
  8. package/dist/clis/index.mjs.map +1 -0
  9. package/dist/connect/index.d.ts +866 -1
  10. package/dist/connect/index.d.ts.map +1 -1
  11. package/dist/connect/index.js +254 -1
  12. package/dist/connect/index.js.map +1 -1
  13. package/dist/constants.d.ts +8 -0
  14. package/dist/constants.d.ts.map +1 -0
  15. package/dist/constants.js +41 -0
  16. package/dist/constants.js.map +1 -0
  17. package/dist/document-drive/index.d.ts +546 -0
  18. package/dist/document-drive/index.d.ts.map +1 -0
  19. package/dist/document-drive/index.js +956 -0
  20. package/dist/document-drive/index.js.map +1 -0
  21. package/dist/document-model/index.d.ts +3 -5
  22. package/dist/document-model/index.js +3408 -2
  23. package/dist/document-model/index.js.map +1 -1
  24. package/dist/index-dg_xL7sp.d.ts +567 -0
  25. package/dist/index-dg_xL7sp.d.ts.map +1 -0
  26. package/dist/processors/index.d.ts +2 -5
  27. package/dist/processors/index.js +116 -3
  28. package/dist/processors/index.js.map +1 -1
  29. package/dist/registry/index.d.ts +46 -0
  30. package/dist/registry/index.d.ts.map +1 -0
  31. package/dist/registry/index.js +0 -0
  32. package/dist/types-DWXYsIF1.d.ts +158 -0
  33. package/dist/types-DWXYsIF1.d.ts.map +1 -0
  34. package/dist/types-faUXKACL.d.ts +2153 -0
  35. package/dist/types-faUXKACL.d.ts.map +1 -0
  36. package/package.json +44 -4
  37. package/dist/analytics/analytics-path.d.ts +0 -36
  38. package/dist/analytics/analytics-path.d.ts.map +0 -1
  39. package/dist/analytics/analytics-path.js +0 -170
  40. package/dist/analytics/analytics-path.js.map +0 -1
  41. package/dist/analytics/analytics-period.d.ts +0 -40
  42. package/dist/analytics/analytics-period.d.ts.map +0 -1
  43. package/dist/analytics/analytics-period.js +0 -204
  44. package/dist/analytics/analytics-period.js.map +0 -1
  45. package/dist/analytics/constants.d.ts +0 -35
  46. package/dist/analytics/constants.d.ts.map +0 -1
  47. package/dist/analytics/constants.js +0 -40
  48. package/dist/analytics/constants.js.map +0 -1
  49. package/dist/analytics/types.d.ts +0 -85
  50. package/dist/analytics/types.d.ts.map +0 -1
  51. package/dist/analytics/types.js +0 -2
  52. package/dist/analytics/types.js.map +0 -1
  53. package/dist/connect/env-config.d.ts +0 -862
  54. package/dist/connect/env-config.d.ts.map +0 -1
  55. package/dist/connect/env-config.js +0 -525
  56. package/dist/connect/env-config.js.map +0 -1
  57. package/dist/document-model/core/actions.d.ts +0 -62
  58. package/dist/document-model/core/actions.d.ts.map +0 -1
  59. package/dist/document-model/core/actions.js +0 -2
  60. package/dist/document-model/core/actions.js.map +0 -1
  61. package/dist/document-model/core/constants.d.ts +0 -6
  62. package/dist/document-model/core/constants.d.ts.map +0 -1
  63. package/dist/document-model/core/constants.js +0 -8
  64. package/dist/document-model/core/constants.js.map +0 -1
  65. package/dist/document-model/core/documents.d.ts +0 -102
  66. package/dist/document-model/core/documents.d.ts.map +0 -1
  67. package/dist/document-model/core/documents.js +0 -2
  68. package/dist/document-model/core/documents.js.map +0 -1
  69. package/dist/document-model/core/operations.d.ts +0 -74
  70. package/dist/document-model/core/operations.d.ts.map +0 -1
  71. package/dist/document-model/core/operations.js +0 -2
  72. package/dist/document-model/core/operations.js.map +0 -1
  73. package/dist/document-model/core/ph-types.d.ts +0 -7
  74. package/dist/document-model/core/ph-types.d.ts.map +0 -1
  75. package/dist/document-model/core/ph-types.js +0 -2
  76. package/dist/document-model/core/ph-types.js.map +0 -1
  77. package/dist/document-model/core/signatures.d.ts +0 -52
  78. package/dist/document-model/core/signatures.d.ts.map +0 -1
  79. package/dist/document-model/core/signatures.js +0 -2
  80. package/dist/document-model/core/signatures.js.map +0 -1
  81. package/dist/document-model/core/state.d.ts +0 -38
  82. package/dist/document-model/core/state.d.ts.map +0 -1
  83. package/dist/document-model/core/state.js +0 -2
  84. package/dist/document-model/core/state.js.map +0 -1
  85. package/dist/document-model/core/types.d.ts +0 -533
  86. package/dist/document-model/core/types.d.ts.map +0 -1
  87. package/dist/document-model/core/types.js +0 -2
  88. package/dist/document-model/core/types.js.map +0 -1
  89. package/dist/document-model/core/upgrades.d.ts +0 -24
  90. package/dist/document-model/core/upgrades.d.ts.map +0 -1
  91. package/dist/document-model/core/upgrades.js +0 -2
  92. package/dist/document-model/core/upgrades.js.map +0 -1
  93. package/dist/document-model/index.d.ts.map +0 -1
  94. package/dist/document-model/types.d.ts +0 -97
  95. package/dist/document-model/types.d.ts.map +0 -1
  96. package/dist/document-model/types.js +0 -2
  97. package/dist/document-model/types.js.map +0 -1
  98. package/dist/processors/constants.d.ts +0 -4
  99. package/dist/processors/constants.d.ts.map +0 -1
  100. package/dist/processors/constants.js +0 -4
  101. package/dist/processors/constants.js.map +0 -1
  102. package/dist/processors/drive-analytics/document-processor.d.ts +0 -10
  103. package/dist/processors/drive-analytics/document-processor.d.ts.map +0 -1
  104. package/dist/processors/drive-analytics/document-processor.js +0 -43
  105. package/dist/processors/drive-analytics/document-processor.js.map +0 -1
  106. package/dist/processors/drive-analytics/drive-processor.d.ts +0 -10
  107. package/dist/processors/drive-analytics/drive-processor.d.ts.map +0 -1
  108. package/dist/processors/drive-analytics/drive-processor.js +0 -85
  109. package/dist/processors/drive-analytics/drive-processor.js.map +0 -1
  110. package/dist/processors/drive-analytics/index.d.ts +0 -10
  111. package/dist/processors/drive-analytics/index.d.ts.map +0 -1
  112. package/dist/processors/drive-analytics/index.js +0 -28
  113. package/dist/processors/drive-analytics/index.js.map +0 -1
  114. package/dist/processors/drive-analytics/types.d.ts +0 -3
  115. package/dist/processors/drive-analytics/types.d.ts.map +0 -1
  116. package/dist/processors/drive-analytics/types.js +0 -2
  117. package/dist/processors/drive-analytics/types.js.map +0 -1
  118. package/dist/processors/index.d.ts.map +0 -1
  119. package/dist/processors/relational/types.d.ts +0 -72
  120. package/dist/processors/relational/types.d.ts.map +0 -1
  121. package/dist/processors/relational/types.js +0 -45
  122. package/dist/processors/relational/types.js.map +0 -1
  123. package/dist/processors/relational/utils.d.ts +0 -29
  124. package/dist/processors/relational/utils.d.ts.map +0 -1
  125. package/dist/processors/relational/utils.js +0 -67
  126. package/dist/processors/relational/utils.js.map +0 -1
  127. package/dist/processors/types.d.ts +0 -90
  128. package/dist/processors/types.d.ts.map +0 -1
  129. package/dist/processors/types.js +0 -2
  130. package/dist/processors/types.js.map +0 -1
  131. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,862 +0,0 @@
1
- import { z } from "zod/v3";
2
- /**
3
- * Build-time configuration schema
4
- */
5
- declare const buildEnvSchema: z.ZodObject<{
6
- /**
7
- * Path to powerhouse config file
8
- * @default "powerhouse.config.json"
9
- */
10
- PH_CONFIG_PATH: z.ZodOptional<z.ZodString>;
11
- /**
12
- * Comma-separated list of package names to load
13
- * @example "package1,package2"
14
- */
15
- PH_PACKAGES: z.ZodOptional<z.ZodString>;
16
- /**
17
- * Path to local package to load during development
18
- */
19
- PH_LOCAL_PACKAGE: z.ZodOptional<z.ZodString>;
20
- /**
21
- * Disable loading of local package
22
- * @default false
23
- */
24
- PH_DISABLE_LOCAL_PACKAGE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
25
- /**
26
- * Amount of time to wait before a file is considered changed
27
- * @default 300
28
- */
29
- PH_WATCH_TIMEOUT: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
30
- /**
31
- * Sentry authentication token for uploading source maps
32
- */
33
- PH_SENTRY_AUTH_TOKEN: z.ZodOptional<z.ZodString>;
34
- /**
35
- * Sentry organization slug
36
- */
37
- PH_SENTRY_ORG: z.ZodOptional<z.ZodString>;
38
- /**
39
- * Sentry project slug
40
- */
41
- PH_SENTRY_PROJECT: z.ZodOptional<z.ZodString>;
42
- }, "strip", z.ZodTypeAny, {
43
- PH_DISABLE_LOCAL_PACKAGE: boolean;
44
- PH_WATCH_TIMEOUT: number;
45
- PH_CONFIG_PATH?: string | undefined;
46
- PH_PACKAGES?: string | undefined;
47
- PH_LOCAL_PACKAGE?: string | undefined;
48
- PH_SENTRY_AUTH_TOKEN?: string | undefined;
49
- PH_SENTRY_ORG?: string | undefined;
50
- PH_SENTRY_PROJECT?: string | undefined;
51
- }, {
52
- PH_CONFIG_PATH?: string | undefined;
53
- PH_PACKAGES?: string | undefined;
54
- PH_LOCAL_PACKAGE?: string | undefined;
55
- PH_DISABLE_LOCAL_PACKAGE?: boolean | "true" | "false" | undefined;
56
- PH_WATCH_TIMEOUT?: string | number | undefined;
57
- PH_SENTRY_AUTH_TOKEN?: string | undefined;
58
- PH_SENTRY_ORG?: string | undefined;
59
- PH_SENTRY_PROJECT?: string | undefined;
60
- }>;
61
- /**
62
- * Complete runtime environment schema (all PH_CONNECT_* vars)
63
- */
64
- export declare const runtimeEnvSchema: z.ZodObject<{
65
- /**
66
- * Application version number
67
- * @default "unknown"
68
- */
69
- PH_CONNECT_VERSION: z.ZodDefault<z.ZodString>;
70
- /**
71
- * Log level for the application
72
- * @default "info"
73
- */
74
- PH_CONNECT_LOG_LEVEL: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
75
- /**
76
- * Whether app requires hard refresh on updates
77
- * @default true
78
- */
79
- PH_CONNECT_REQUIRES_HARD_REFRESH: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
80
- /**
81
- * Show warning when app version is outdated
82
- * @default false
83
- */
84
- PH_CONNECT_WARN_OUTDATED_APP: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
85
- /**
86
- * Enable studio mode features
87
- * @default false
88
- */
89
- PH_CONNECT_STUDIO_MODE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
90
- /**
91
- * Base path for the Connect router, defaults to import.meta.env.BASE_URL
92
- */
93
- PH_CONNECT_BASE_PATH: z.ZodOptional<z.ZodString>;
94
- /**
95
- * Default drives URL to load on startup
96
- */
97
- PH_CONNECT_DEFAULT_DRIVES_URL: z.ZodOptional<z.ZodString>;
98
- /**
99
- * URL(s) of the packages registry CDN endpoint.
100
- * Supports comma-separated URLs for multiple registries.
101
- * @example "http://localhost:8080/-/cdn/"
102
- * @example "https://registry.powerhouse.io/-/cdn/,http://localhost:8080/-/cdn/"
103
- */
104
- PH_CONNECT_PACKAGES_REGISTRY: z.ZodOptional<z.ZodString>;
105
- /**
106
- * Strategy for preserving drives
107
- */
108
- PH_CONNECT_DRIVES_PRESERVE_STRATEGY: z.ZodOptional<z.ZodString>;
109
- /**
110
- * Interval in milliseconds to check for version updates
111
- * @default 3600000 (1 hour)
112
- */
113
- PH_CONNECT_VERSION_CHECK_INTERVAL: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
114
- /**
115
- * CLI version number
116
- */
117
- PH_CONNECT_CLI_VERSION: z.ZodOptional<z.ZodString>;
118
- /**
119
- * Chunk size for file upload operations
120
- * @default 50
121
- */
122
- PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
123
- } & {
124
- /**
125
- * Hide the "Add Drive" button completely
126
- * @default false
127
- */
128
- PH_CONNECT_DISABLE_ADD_DRIVE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
129
- /**
130
- * Show search bar in the UI
131
- * @default false
132
- */
133
- PH_CONNECT_SEARCH_BAR_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
134
- /**
135
- * Show inspector button in the sidebar
136
- * @default false
137
- */
138
- PH_CONNECT_INSPECTOR_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
139
- /**
140
- * Hide document model selection in settings
141
- * @default true
142
- */
143
- PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
144
- /**
145
- * Comma-separated list of enabled editor types
146
- * Use "*" to enable all editors
147
- * @example "editor1,editor2" or "*"
148
- */
149
- PH_CONNECT_ENABLED_EDITORS: z.ZodOptional<z.ZodString>;
150
- /**
151
- * Comma-separated list of disabled editor types
152
- * @default "powerhouse/document-drive"
153
- */
154
- PH_CONNECT_DISABLED_EDITORS: z.ZodDefault<z.ZodString>;
155
- /**
156
- * Google Analytics tracking ID
157
- */
158
- PH_CONNECT_GA_TRACKING_ID: z.ZodOptional<z.ZodString>;
159
- /**
160
- * Disable loading of external packages
161
- * @default false
162
- */
163
- PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
164
- } & {
165
- /**
166
- * Enable public drives section
167
- * @default true
168
- */
169
- PH_CONNECT_PUBLIC_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
170
- /**
171
- * Allow adding public drives
172
- * @default true
173
- */
174
- PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
175
- /**
176
- * Allow deleting public drives
177
- * @default true
178
- */
179
- PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
180
- /**
181
- * Enable cloud drives section
182
- * @default true
183
- */
184
- PH_CONNECT_CLOUD_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
185
- /**
186
- * Allow adding cloud drives
187
- * @default true
188
- */
189
- PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
190
- /**
191
- * Allow deleting cloud drives
192
- * @default true
193
- */
194
- PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
195
- /**
196
- * Enable local drives section
197
- * @default true
198
- */
199
- PH_CONNECT_LOCAL_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
200
- /**
201
- * Allow adding local drives
202
- * @default true
203
- */
204
- PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
205
- /**
206
- * Allow deleting local drives
207
- * @default true
208
- */
209
- PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
210
- } & {
211
- /**
212
- * Enable processors
213
- * @default true
214
- */
215
- PH_CONNECT_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
216
- /**
217
- * Enable external processors
218
- * @default true
219
- */
220
- PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
221
- } & {
222
- /**
223
- * Enable analytics
224
- * @default true
225
- */
226
- PH_CONNECT_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
227
- /**
228
- * Name of the analytics database
229
- * Defaults to basename + ":analytics"
230
- */
231
- PH_CONNECT_ANALYTICS_DATABASE_NAME: z.ZodOptional<z.ZodString>;
232
- /**
233
- * Disable analytics database worker
234
- * @default false
235
- */
236
- PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
237
- /**
238
- * Enable diff analytics tracking
239
- * @default false
240
- */
241
- PH_CONNECT_DIFF_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
242
- /**
243
- * Enable drive analytics tracking
244
- * @default true
245
- */
246
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
247
- /**
248
- * Enable external analytics processors
249
- * @default true
250
- */
251
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
252
- } & {
253
- /**
254
- * Enable relational processors
255
- * @default true
256
- */
257
- PH_CONNECT_RELATIONAL_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
258
- /**
259
- * Enable external relational processors
260
- * @default true
261
- */
262
- PH_CONNECT_EXTERNAL_RELATIONAL_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
263
- } & {
264
- /**
265
- * Sentry release identifier
266
- * Defaults to app version
267
- */
268
- PH_CONNECT_SENTRY_RELEASE: z.ZodOptional<z.ZodString>;
269
- /**
270
- * Sentry DSN for error reporting
271
- */
272
- PH_CONNECT_SENTRY_DSN: z.ZodOptional<z.ZodString>;
273
- /**
274
- * Sentry environment name
275
- * @default "prod"
276
- */
277
- PH_CONNECT_SENTRY_ENV: z.ZodDefault<z.ZodString>;
278
- /**
279
- * Enable Sentry performance tracing
280
- * @default false
281
- */
282
- PH_CONNECT_SENTRY_TRACING_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
283
- } & {
284
- /**
285
- * Renown authentication service URL
286
- * @default "https://www.renown.id"
287
- */
288
- PH_CONNECT_RENOWN_URL: z.ZodDefault<z.ZodString>;
289
- /**
290
- * Renown network ID
291
- * @default "eip155"
292
- */
293
- PH_CONNECT_RENOWN_NETWORK_ID: z.ZodDefault<z.ZodString>;
294
- /**
295
- * Renown chain ID
296
- * @default 1
297
- */
298
- PH_CONNECT_RENOWN_CHAIN_ID: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
299
- }, "strip", z.ZodTypeAny, {
300
- PH_CONNECT_VERSION: string;
301
- PH_CONNECT_LOG_LEVEL: "debug" | "info" | "warn" | "error";
302
- PH_CONNECT_REQUIRES_HARD_REFRESH: boolean;
303
- PH_CONNECT_WARN_OUTDATED_APP: boolean;
304
- PH_CONNECT_STUDIO_MODE: boolean;
305
- PH_CONNECT_VERSION_CHECK_INTERVAL: number;
306
- PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: number;
307
- PH_CONNECT_DISABLE_ADD_DRIVE: boolean;
308
- PH_CONNECT_SEARCH_BAR_ENABLED: boolean;
309
- PH_CONNECT_INSPECTOR_ENABLED: boolean;
310
- PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: boolean;
311
- PH_CONNECT_DISABLED_EDITORS: string;
312
- PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: boolean;
313
- PH_CONNECT_PUBLIC_DRIVES_ENABLED: boolean;
314
- PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: boolean;
315
- PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: boolean;
316
- PH_CONNECT_CLOUD_DRIVES_ENABLED: boolean;
317
- PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: boolean;
318
- PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: boolean;
319
- PH_CONNECT_LOCAL_DRIVES_ENABLED: boolean;
320
- PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: boolean;
321
- PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: boolean;
322
- PH_CONNECT_ANALYTICS_ENABLED: boolean;
323
- PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: boolean;
324
- PH_CONNECT_DIFF_ANALYTICS_ENABLED: boolean;
325
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED: boolean;
326
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: boolean;
327
- PH_CONNECT_RELATIONAL_PROCESSORS_ENABLED: boolean;
328
- PH_CONNECT_EXTERNAL_RELATIONAL_PROCESSORS_ENABLED: boolean;
329
- PH_CONNECT_PROCESSORS_ENABLED: boolean;
330
- PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: boolean;
331
- PH_CONNECT_SENTRY_ENV: string;
332
- PH_CONNECT_SENTRY_TRACING_ENABLED: boolean;
333
- PH_CONNECT_RENOWN_URL: string;
334
- PH_CONNECT_RENOWN_NETWORK_ID: string;
335
- PH_CONNECT_RENOWN_CHAIN_ID: number;
336
- PH_CONNECT_BASE_PATH?: string | undefined;
337
- PH_CONNECT_DEFAULT_DRIVES_URL?: string | undefined;
338
- PH_CONNECT_PACKAGES_REGISTRY?: string | undefined;
339
- PH_CONNECT_DRIVES_PRESERVE_STRATEGY?: string | undefined;
340
- PH_CONNECT_CLI_VERSION?: string | undefined;
341
- PH_CONNECT_ENABLED_EDITORS?: string | undefined;
342
- PH_CONNECT_GA_TRACKING_ID?: string | undefined;
343
- PH_CONNECT_ANALYTICS_DATABASE_NAME?: string | undefined;
344
- PH_CONNECT_SENTRY_RELEASE?: string | undefined;
345
- PH_CONNECT_SENTRY_DSN?: string | undefined;
346
- }, {
347
- PH_CONNECT_VERSION?: string | undefined;
348
- PH_CONNECT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | undefined;
349
- PH_CONNECT_REQUIRES_HARD_REFRESH?: boolean | "true" | "false" | undefined;
350
- PH_CONNECT_WARN_OUTDATED_APP?: boolean | "true" | "false" | undefined;
351
- PH_CONNECT_STUDIO_MODE?: boolean | "true" | "false" | undefined;
352
- PH_CONNECT_BASE_PATH?: string | undefined;
353
- PH_CONNECT_DEFAULT_DRIVES_URL?: string | undefined;
354
- PH_CONNECT_PACKAGES_REGISTRY?: string | undefined;
355
- PH_CONNECT_DRIVES_PRESERVE_STRATEGY?: string | undefined;
356
- PH_CONNECT_VERSION_CHECK_INTERVAL?: string | number | undefined;
357
- PH_CONNECT_CLI_VERSION?: string | undefined;
358
- PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE?: string | number | undefined;
359
- PH_CONNECT_DISABLE_ADD_DRIVE?: boolean | "true" | "false" | undefined;
360
- PH_CONNECT_SEARCH_BAR_ENABLED?: boolean | "true" | "false" | undefined;
361
- PH_CONNECT_INSPECTOR_ENABLED?: boolean | "true" | "false" | undefined;
362
- PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS?: boolean | "true" | "false" | undefined;
363
- PH_CONNECT_ENABLED_EDITORS?: string | undefined;
364
- PH_CONNECT_DISABLED_EDITORS?: string | undefined;
365
- PH_CONNECT_GA_TRACKING_ID?: string | undefined;
366
- PH_CONNECT_EXTERNAL_PACKAGES_DISABLED?: boolean | "true" | "false" | undefined;
367
- PH_CONNECT_PUBLIC_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
368
- PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES?: boolean | "true" | "false" | undefined;
369
- PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES?: boolean | "true" | "false" | undefined;
370
- PH_CONNECT_CLOUD_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
371
- PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES?: boolean | "true" | "false" | undefined;
372
- PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES?: boolean | "true" | "false" | undefined;
373
- PH_CONNECT_LOCAL_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
374
- PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES?: boolean | "true" | "false" | undefined;
375
- PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES?: boolean | "true" | "false" | undefined;
376
- PH_CONNECT_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
377
- PH_CONNECT_ANALYTICS_DATABASE_NAME?: string | undefined;
378
- PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED?: boolean | "true" | "false" | undefined;
379
- PH_CONNECT_DIFF_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
380
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
381
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
382
- PH_CONNECT_RELATIONAL_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
383
- PH_CONNECT_EXTERNAL_RELATIONAL_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
384
- PH_CONNECT_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
385
- PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
386
- PH_CONNECT_SENTRY_RELEASE?: string | undefined;
387
- PH_CONNECT_SENTRY_DSN?: string | undefined;
388
- PH_CONNECT_SENTRY_ENV?: string | undefined;
389
- PH_CONNECT_SENTRY_TRACING_ENABLED?: boolean | "true" | "false" | undefined;
390
- PH_CONNECT_RENOWN_URL?: string | undefined;
391
- PH_CONNECT_RENOWN_NETWORK_ID?: string | undefined;
392
- PH_CONNECT_RENOWN_CHAIN_ID?: string | number | undefined;
393
- }>;
394
- /**
395
- * Complete environment schema (build + runtime)
396
- */
397
- export declare const connectEnvSchema: z.ZodObject<{
398
- /**
399
- * Path to powerhouse config file
400
- * @default "powerhouse.config.json"
401
- */
402
- PH_CONFIG_PATH: z.ZodOptional<z.ZodString>;
403
- /**
404
- * Comma-separated list of package names to load
405
- * @example "package1,package2"
406
- */
407
- PH_PACKAGES: z.ZodOptional<z.ZodString>;
408
- /**
409
- * Path to local package to load during development
410
- */
411
- PH_LOCAL_PACKAGE: z.ZodOptional<z.ZodString>;
412
- /**
413
- * Disable loading of local package
414
- * @default false
415
- */
416
- PH_DISABLE_LOCAL_PACKAGE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
417
- /**
418
- * Amount of time to wait before a file is considered changed
419
- * @default 300
420
- */
421
- PH_WATCH_TIMEOUT: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
422
- /**
423
- * Sentry authentication token for uploading source maps
424
- */
425
- PH_SENTRY_AUTH_TOKEN: z.ZodOptional<z.ZodString>;
426
- /**
427
- * Sentry organization slug
428
- */
429
- PH_SENTRY_ORG: z.ZodOptional<z.ZodString>;
430
- /**
431
- * Sentry project slug
432
- */
433
- PH_SENTRY_PROJECT: z.ZodOptional<z.ZodString>;
434
- } & {
435
- /**
436
- * Application version number
437
- * @default "unknown"
438
- */
439
- PH_CONNECT_VERSION: z.ZodDefault<z.ZodString>;
440
- /**
441
- * Log level for the application
442
- * @default "info"
443
- */
444
- PH_CONNECT_LOG_LEVEL: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
445
- /**
446
- * Whether app requires hard refresh on updates
447
- * @default true
448
- */
449
- PH_CONNECT_REQUIRES_HARD_REFRESH: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
450
- /**
451
- * Show warning when app version is outdated
452
- * @default false
453
- */
454
- PH_CONNECT_WARN_OUTDATED_APP: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
455
- /**
456
- * Enable studio mode features
457
- * @default false
458
- */
459
- PH_CONNECT_STUDIO_MODE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
460
- /**
461
- * Base path for the Connect router, defaults to import.meta.env.BASE_URL
462
- */
463
- PH_CONNECT_BASE_PATH: z.ZodOptional<z.ZodString>;
464
- /**
465
- * Default drives URL to load on startup
466
- */
467
- PH_CONNECT_DEFAULT_DRIVES_URL: z.ZodOptional<z.ZodString>;
468
- /**
469
- * URL(s) of the packages registry CDN endpoint.
470
- * Supports comma-separated URLs for multiple registries.
471
- * @example "http://localhost:8080/-/cdn/"
472
- * @example "https://registry.powerhouse.io/-/cdn/,http://localhost:8080/-/cdn/"
473
- */
474
- PH_CONNECT_PACKAGES_REGISTRY: z.ZodOptional<z.ZodString>;
475
- /**
476
- * Strategy for preserving drives
477
- */
478
- PH_CONNECT_DRIVES_PRESERVE_STRATEGY: z.ZodOptional<z.ZodString>;
479
- /**
480
- * Interval in milliseconds to check for version updates
481
- * @default 3600000 (1 hour)
482
- */
483
- PH_CONNECT_VERSION_CHECK_INTERVAL: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
484
- /**
485
- * CLI version number
486
- */
487
- PH_CONNECT_CLI_VERSION: z.ZodOptional<z.ZodString>;
488
- /**
489
- * Chunk size for file upload operations
490
- * @default 50
491
- */
492
- PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
493
- } & {
494
- /**
495
- * Hide the "Add Drive" button completely
496
- * @default false
497
- */
498
- PH_CONNECT_DISABLE_ADD_DRIVE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
499
- /**
500
- * Show search bar in the UI
501
- * @default false
502
- */
503
- PH_CONNECT_SEARCH_BAR_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
504
- /**
505
- * Show inspector button in the sidebar
506
- * @default false
507
- */
508
- PH_CONNECT_INSPECTOR_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
509
- /**
510
- * Hide document model selection in settings
511
- * @default true
512
- */
513
- PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
514
- /**
515
- * Comma-separated list of enabled editor types
516
- * Use "*" to enable all editors
517
- * @example "editor1,editor2" or "*"
518
- */
519
- PH_CONNECT_ENABLED_EDITORS: z.ZodOptional<z.ZodString>;
520
- /**
521
- * Comma-separated list of disabled editor types
522
- * @default "powerhouse/document-drive"
523
- */
524
- PH_CONNECT_DISABLED_EDITORS: z.ZodDefault<z.ZodString>;
525
- /**
526
- * Google Analytics tracking ID
527
- */
528
- PH_CONNECT_GA_TRACKING_ID: z.ZodOptional<z.ZodString>;
529
- /**
530
- * Disable loading of external packages
531
- * @default false
532
- */
533
- PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
534
- } & {
535
- /**
536
- * Enable public drives section
537
- * @default true
538
- */
539
- PH_CONNECT_PUBLIC_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
540
- /**
541
- * Allow adding public drives
542
- * @default true
543
- */
544
- PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
545
- /**
546
- * Allow deleting public drives
547
- * @default true
548
- */
549
- PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
550
- /**
551
- * Enable cloud drives section
552
- * @default true
553
- */
554
- PH_CONNECT_CLOUD_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
555
- /**
556
- * Allow adding cloud drives
557
- * @default true
558
- */
559
- PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
560
- /**
561
- * Allow deleting cloud drives
562
- * @default true
563
- */
564
- PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
565
- /**
566
- * Enable local drives section
567
- * @default true
568
- */
569
- PH_CONNECT_LOCAL_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
570
- /**
571
- * Allow adding local drives
572
- * @default true
573
- */
574
- PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
575
- /**
576
- * Allow deleting local drives
577
- * @default true
578
- */
579
- PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
580
- } & {
581
- /**
582
- * Enable processors
583
- * @default true
584
- */
585
- PH_CONNECT_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
586
- /**
587
- * Enable external processors
588
- * @default true
589
- */
590
- PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
591
- } & {
592
- /**
593
- * Enable analytics
594
- * @default true
595
- */
596
- PH_CONNECT_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
597
- /**
598
- * Name of the analytics database
599
- * Defaults to basename + ":analytics"
600
- */
601
- PH_CONNECT_ANALYTICS_DATABASE_NAME: z.ZodOptional<z.ZodString>;
602
- /**
603
- * Disable analytics database worker
604
- * @default false
605
- */
606
- PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
607
- /**
608
- * Enable diff analytics tracking
609
- * @default false
610
- */
611
- PH_CONNECT_DIFF_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
612
- /**
613
- * Enable drive analytics tracking
614
- * @default true
615
- */
616
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
617
- /**
618
- * Enable external analytics processors
619
- * @default true
620
- */
621
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
622
- } & {
623
- /**
624
- * Enable relational processors
625
- * @default true
626
- */
627
- PH_CONNECT_RELATIONAL_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
628
- /**
629
- * Enable external relational processors
630
- * @default true
631
- */
632
- PH_CONNECT_EXTERNAL_RELATIONAL_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
633
- } & {
634
- /**
635
- * Sentry release identifier
636
- * Defaults to app version
637
- */
638
- PH_CONNECT_SENTRY_RELEASE: z.ZodOptional<z.ZodString>;
639
- /**
640
- * Sentry DSN for error reporting
641
- */
642
- PH_CONNECT_SENTRY_DSN: z.ZodOptional<z.ZodString>;
643
- /**
644
- * Sentry environment name
645
- * @default "prod"
646
- */
647
- PH_CONNECT_SENTRY_ENV: z.ZodDefault<z.ZodString>;
648
- /**
649
- * Enable Sentry performance tracing
650
- * @default false
651
- */
652
- PH_CONNECT_SENTRY_TRACING_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
653
- } & {
654
- /**
655
- * Renown authentication service URL
656
- * @default "https://www.renown.id"
657
- */
658
- PH_CONNECT_RENOWN_URL: z.ZodDefault<z.ZodString>;
659
- /**
660
- * Renown network ID
661
- * @default "eip155"
662
- */
663
- PH_CONNECT_RENOWN_NETWORK_ID: z.ZodDefault<z.ZodString>;
664
- /**
665
- * Renown chain ID
666
- * @default 1
667
- */
668
- PH_CONNECT_RENOWN_CHAIN_ID: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
669
- }, "strip", z.ZodTypeAny, {
670
- PH_DISABLE_LOCAL_PACKAGE: boolean;
671
- PH_WATCH_TIMEOUT: number;
672
- PH_CONNECT_VERSION: string;
673
- PH_CONNECT_LOG_LEVEL: "debug" | "info" | "warn" | "error";
674
- PH_CONNECT_REQUIRES_HARD_REFRESH: boolean;
675
- PH_CONNECT_WARN_OUTDATED_APP: boolean;
676
- PH_CONNECT_STUDIO_MODE: boolean;
677
- PH_CONNECT_VERSION_CHECK_INTERVAL: number;
678
- PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: number;
679
- PH_CONNECT_DISABLE_ADD_DRIVE: boolean;
680
- PH_CONNECT_SEARCH_BAR_ENABLED: boolean;
681
- PH_CONNECT_INSPECTOR_ENABLED: boolean;
682
- PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: boolean;
683
- PH_CONNECT_DISABLED_EDITORS: string;
684
- PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: boolean;
685
- PH_CONNECT_PUBLIC_DRIVES_ENABLED: boolean;
686
- PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: boolean;
687
- PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: boolean;
688
- PH_CONNECT_CLOUD_DRIVES_ENABLED: boolean;
689
- PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: boolean;
690
- PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: boolean;
691
- PH_CONNECT_LOCAL_DRIVES_ENABLED: boolean;
692
- PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: boolean;
693
- PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: boolean;
694
- PH_CONNECT_ANALYTICS_ENABLED: boolean;
695
- PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: boolean;
696
- PH_CONNECT_DIFF_ANALYTICS_ENABLED: boolean;
697
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED: boolean;
698
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: boolean;
699
- PH_CONNECT_RELATIONAL_PROCESSORS_ENABLED: boolean;
700
- PH_CONNECT_EXTERNAL_RELATIONAL_PROCESSORS_ENABLED: boolean;
701
- PH_CONNECT_PROCESSORS_ENABLED: boolean;
702
- PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: boolean;
703
- PH_CONNECT_SENTRY_ENV: string;
704
- PH_CONNECT_SENTRY_TRACING_ENABLED: boolean;
705
- PH_CONNECT_RENOWN_URL: string;
706
- PH_CONNECT_RENOWN_NETWORK_ID: string;
707
- PH_CONNECT_RENOWN_CHAIN_ID: number;
708
- PH_CONFIG_PATH?: string | undefined;
709
- PH_PACKAGES?: string | undefined;
710
- PH_LOCAL_PACKAGE?: string | undefined;
711
- PH_SENTRY_AUTH_TOKEN?: string | undefined;
712
- PH_SENTRY_ORG?: string | undefined;
713
- PH_SENTRY_PROJECT?: string | undefined;
714
- PH_CONNECT_BASE_PATH?: string | undefined;
715
- PH_CONNECT_DEFAULT_DRIVES_URL?: string | undefined;
716
- PH_CONNECT_PACKAGES_REGISTRY?: string | undefined;
717
- PH_CONNECT_DRIVES_PRESERVE_STRATEGY?: string | undefined;
718
- PH_CONNECT_CLI_VERSION?: string | undefined;
719
- PH_CONNECT_ENABLED_EDITORS?: string | undefined;
720
- PH_CONNECT_GA_TRACKING_ID?: string | undefined;
721
- PH_CONNECT_ANALYTICS_DATABASE_NAME?: string | undefined;
722
- PH_CONNECT_SENTRY_RELEASE?: string | undefined;
723
- PH_CONNECT_SENTRY_DSN?: string | undefined;
724
- }, {
725
- PH_CONFIG_PATH?: string | undefined;
726
- PH_PACKAGES?: string | undefined;
727
- PH_LOCAL_PACKAGE?: string | undefined;
728
- PH_DISABLE_LOCAL_PACKAGE?: boolean | "true" | "false" | undefined;
729
- PH_WATCH_TIMEOUT?: string | number | undefined;
730
- PH_SENTRY_AUTH_TOKEN?: string | undefined;
731
- PH_SENTRY_ORG?: string | undefined;
732
- PH_SENTRY_PROJECT?: string | undefined;
733
- PH_CONNECT_VERSION?: string | undefined;
734
- PH_CONNECT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | undefined;
735
- PH_CONNECT_REQUIRES_HARD_REFRESH?: boolean | "true" | "false" | undefined;
736
- PH_CONNECT_WARN_OUTDATED_APP?: boolean | "true" | "false" | undefined;
737
- PH_CONNECT_STUDIO_MODE?: boolean | "true" | "false" | undefined;
738
- PH_CONNECT_BASE_PATH?: string | undefined;
739
- PH_CONNECT_DEFAULT_DRIVES_URL?: string | undefined;
740
- PH_CONNECT_PACKAGES_REGISTRY?: string | undefined;
741
- PH_CONNECT_DRIVES_PRESERVE_STRATEGY?: string | undefined;
742
- PH_CONNECT_VERSION_CHECK_INTERVAL?: string | number | undefined;
743
- PH_CONNECT_CLI_VERSION?: string | undefined;
744
- PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE?: string | number | undefined;
745
- PH_CONNECT_DISABLE_ADD_DRIVE?: boolean | "true" | "false" | undefined;
746
- PH_CONNECT_SEARCH_BAR_ENABLED?: boolean | "true" | "false" | undefined;
747
- PH_CONNECT_INSPECTOR_ENABLED?: boolean | "true" | "false" | undefined;
748
- PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS?: boolean | "true" | "false" | undefined;
749
- PH_CONNECT_ENABLED_EDITORS?: string | undefined;
750
- PH_CONNECT_DISABLED_EDITORS?: string | undefined;
751
- PH_CONNECT_GA_TRACKING_ID?: string | undefined;
752
- PH_CONNECT_EXTERNAL_PACKAGES_DISABLED?: boolean | "true" | "false" | undefined;
753
- PH_CONNECT_PUBLIC_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
754
- PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES?: boolean | "true" | "false" | undefined;
755
- PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES?: boolean | "true" | "false" | undefined;
756
- PH_CONNECT_CLOUD_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
757
- PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES?: boolean | "true" | "false" | undefined;
758
- PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES?: boolean | "true" | "false" | undefined;
759
- PH_CONNECT_LOCAL_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
760
- PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES?: boolean | "true" | "false" | undefined;
761
- PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES?: boolean | "true" | "false" | undefined;
762
- PH_CONNECT_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
763
- PH_CONNECT_ANALYTICS_DATABASE_NAME?: string | undefined;
764
- PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED?: boolean | "true" | "false" | undefined;
765
- PH_CONNECT_DIFF_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
766
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
767
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
768
- PH_CONNECT_RELATIONAL_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
769
- PH_CONNECT_EXTERNAL_RELATIONAL_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
770
- PH_CONNECT_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
771
- PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
772
- PH_CONNECT_SENTRY_RELEASE?: string | undefined;
773
- PH_CONNECT_SENTRY_DSN?: string | undefined;
774
- PH_CONNECT_SENTRY_ENV?: string | undefined;
775
- PH_CONNECT_SENTRY_TRACING_ENABLED?: boolean | "true" | "false" | undefined;
776
- PH_CONNECT_RENOWN_URL?: string | undefined;
777
- PH_CONNECT_RENOWN_NETWORK_ID?: string | undefined;
778
- PH_CONNECT_RENOWN_CHAIN_ID?: string | number | undefined;
779
- }>;
780
- /**
781
- * Inferred TypeScript types from schemas
782
- */
783
- export type ConnectBuildEnv = z.infer<typeof buildEnvSchema>;
784
- export type ConnectRuntimeEnv = z.infer<typeof runtimeEnvSchema>;
785
- export type ConnectEnv = z.infer<typeof connectEnvSchema>;
786
- /**
787
- * Options for loading environment variables
788
- */
789
- export interface LoadEnvOptions {
790
- /**
791
- * Environment variables from process.env (highest priority)
792
- */
793
- processEnv?: Record<string, string | undefined>;
794
- /**
795
- * Environment variables from options (medium priority)
796
- */
797
- optionsEnv?: Partial<ConnectEnv>;
798
- /**
799
- * Environment variables from .env file (lowest priority)
800
- */
801
- fileEnv?: Record<string, string | undefined>;
802
- }
803
- /**
804
- * Loads and validates environment variables with priority:
805
- * 1. process.env (highest)
806
- * 2. options
807
- * 3. fileEnv
808
- * 4. defaults from schema (lowest)
809
- *
810
- * @param options - Environment sources in priority order
811
- * @returns Validated and typed environment configuration
812
- */
813
- export declare function loadConnectEnv(options?: LoadEnvOptions): ConnectEnv;
814
- /**
815
- * Loads only runtime environment variables
816
- *
817
- * @param options - Environment sources in priority order
818
- * @returns Validated runtime environment configuration
819
- */
820
- export declare function loadRuntimeEnv(options?: LoadEnvOptions): ConnectRuntimeEnv;
821
- /**
822
- * Loads only build-time environment variables
823
- *
824
- * @param options - Environment sources in priority order
825
- * @returns Validated build environment configuration
826
- */
827
- export declare function loadBuildEnv(options?: LoadEnvOptions): ConnectBuildEnv;
828
- /**
829
- * Safely sets Connect environment variables with validation.
830
- * Invalid values will log a warning and be skipped.
831
- *
832
- * @param values - Type-safe object with key-value pairs to set
833
- *
834
- * @example
835
- * ```ts
836
- * setConnectEnv({
837
- * PH_CONNECT_LOG_LEVEL: "debug",
838
- * PH_CONNECT_VERSION: "1.2.3",
839
- * PH_CONNECT_STUDIO_MODE: true,
840
- * });
841
- * ```
842
- */
843
- export declare function setConnectEnv(values: Partial<ConnectEnv>): void;
844
- /**
845
- * Normalizes a base path to ensure it:
846
- * - Starts with a forward slash (/)
847
- * - Ends with a forward slash (/)
848
- * - Has no relative path prefix (.)
849
- *
850
- * @param basePath - The base path to normalize
851
- * @returns The normalized base path
852
- *
853
- * @example
854
- * normalizeBasePath('/app') // '/app/'
855
- * normalizeBasePath('./app/') // '/app/'
856
- * normalizeBasePath('app') // '/app/'
857
- * normalizeBasePath('/') // '/'
858
- * normalizeBasePath('') // '/'
859
- */
860
- export declare function normalizeBasePath(basePath: string): string;
861
- export {};
862
- //# sourceMappingURL=env-config.d.ts.map