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