@powerhousedao/ph-run 0.0.0-stage → 6.2.3-dev.101

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 (48) hide show
  1. package/LICENSE +661 -0
  2. package/dist/classic-args-BYccyIIC.mjs +36 -0
  3. package/dist/classic-args-BYccyIIC.mjs.map +1 -0
  4. package/dist/classic-args-Dm0_3O5p.d.mts +194 -0
  5. package/dist/classic-args-Dm0_3O5p.d.mts.map +1 -0
  6. package/dist/cli.d.mts +2 -0
  7. package/dist/cli.mjs +32 -0
  8. package/dist/cli.mjs.map +1 -0
  9. package/dist/connect-plugin-configs-CPRA8hQJ.mjs +50 -0
  10. package/dist/connect-plugin-configs-CPRA8hQJ.mjs.map +1 -0
  11. package/dist/connect-serve-1WAi0KJL.mjs +201 -0
  12. package/dist/connect-serve-1WAi0KJL.mjs.map +1 -0
  13. package/dist/connect-serve-COWXf_41.d.mts +64 -0
  14. package/dist/connect-serve-COWXf_41.d.mts.map +1 -0
  15. package/dist/member-config-Bs3yOT6y.mjs +161 -0
  16. package/dist/member-config-Bs3yOT6y.mjs.map +1 -0
  17. package/dist/runners/connect.d.mts +1271 -0
  18. package/dist/runners/connect.d.mts.map +1 -0
  19. package/dist/runners/connect.mjs +273 -0
  20. package/dist/runners/connect.mjs.map +1 -0
  21. package/dist/runners/member-config.d.mts +796 -0
  22. package/dist/runners/member-config.d.mts.map +1 -0
  23. package/dist/runners/member-config.mjs +4 -0
  24. package/dist/runners/switchboard.d.mts +1754 -0
  25. package/dist/runners/switchboard.d.mts.map +1 -0
  26. package/dist/runners/switchboard.mjs +714 -0
  27. package/dist/runners/switchboard.mjs.map +1 -0
  28. package/dist/services/classic-args.d.mts +3 -0
  29. package/dist/services/classic-args.mjs +4 -0
  30. package/dist/services/connect-serve.d.mts +3 -0
  31. package/dist/services/connect-serve.mjs +4 -0
  32. package/dist/services/connect-server.d.mts +26 -0
  33. package/dist/services/connect-server.d.mts.map +1 -0
  34. package/dist/services/connect-server.mjs +219 -0
  35. package/dist/services/connect-server.mjs.map +1 -0
  36. package/dist/services/run/start-run.d.mts +29 -0
  37. package/dist/services/run/start-run.d.mts.map +1 -0
  38. package/dist/services/run/start-run.mjs +4 -0
  39. package/dist/services/switchboard.d.mts +79 -0
  40. package/dist/services/switchboard.d.mts.map +1 -0
  41. package/dist/services/switchboard.mjs +191 -0
  42. package/dist/services/switchboard.mjs.map +1 -0
  43. package/dist/start-run-DWn2cVyi.mjs +125 -0
  44. package/dist/start-run-DWn2cVyi.mjs.map +1 -0
  45. package/dist/superseded-config-CpHrCuNq.mjs +53 -0
  46. package/dist/superseded-config-CpHrCuNq.mjs.map +1 -0
  47. package/package.json +93 -3
  48. package/README.md +0 -3
@@ -0,0 +1,1754 @@
1
+ import { n as SwitchboardArgs } from "../classic-args-Dm0_3O5p.mjs";
2
+ import { BootCheckContext, BootIssue, RunnerContext, RunnerHandle } from "@powerhousedao/host-core";
3
+ import { z } from "zod";
4
+ //#region src/runners/switchboard.d.ts
5
+ /**
6
+ * BRIDGE runner for Switchboard hosts (uniform-runners phase 0): maps a
7
+ * hosts/switchboard/host.js definition onto the SAME `startSwitchboard`
8
+ * service the classic command calls. `run` = production loaders, `dev` =
9
+ * Vite package loader (worker pools refused by the server, as always).
10
+ */
11
+ export declare const kind = "reactor";
12
+ export declare const declaredHostSchema: z.ZodObject<{
13
+ name: z.ZodString;
14
+ profile: z.ZodOptional<z.ZodObject<{
15
+ appId: z.ZodOptional<z.ZodString>;
16
+ name: z.ZodOptional<z.ZodString>;
17
+ description: z.ZodOptional<z.ZodString>;
18
+ icon: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strict>>;
20
+ reactor: z.ZodOptional<z.ZodObject<{
21
+ backends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
22
+ kind: z.ZodEnum<{
23
+ "in-process": "in-process";
24
+ remote: "remote";
25
+ worker: "worker";
26
+ }>;
27
+ storage: z.ZodOptional<z.ZodObject<{
28
+ kind: z.ZodEnum<{
29
+ idb: "idb";
30
+ memory: "memory";
31
+ path: "path";
32
+ postgres: "postgres";
33
+ }>;
34
+ dataDir: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodString, import("@powerhousedao/host-core").EnvToken>>;
35
+ url: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strict>>;
37
+ readModel: z.ZodOptional<z.ZodObject<{
38
+ url: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strict>>;
40
+ packages: z.ZodOptional<z.ZodObject<{
41
+ cdnUrl: z.ZodOptional<z.ZodString>;
42
+ specs: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ dynamic: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strict>>;
45
+ remote: z.ZodOptional<z.ZodObject<{
46
+ url: import("@powerhousedao/host-core").TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
47
+ requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
48
+ breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
49
+ failures: z.ZodOptional<z.ZodNumber>;
50
+ openMs: z.ZodOptional<z.ZodNumber>;
51
+ }, z.core.$strict>]>>;
52
+ realtime: z.ZodOptional<z.ZodBoolean>;
53
+ }, z.core.$strict>>;
54
+ }, z.core.$strict>>>;
55
+ placement: z.ZodOptional<z.ZodObject<{
56
+ primary: z.ZodOptional<z.ZodString>;
57
+ drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
58
+ newDrives: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strict>>;
60
+ router: z.ZodOptional<z.ZodObject<{
61
+ probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
62
+ provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
63
+ }, z.core.$strict>>;
64
+ protocol: z.ZodOptional<z.ZodObject<{
65
+ featureFlags: z.ZodOptional<z.ZodObject<{
66
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
67
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
68
+ authGroups: z.ZodOptional<z.ZodBoolean>;
69
+ authConditions: z.ZodOptional<z.ZodBoolean>;
70
+ undoV3: z.ZodOptional<z.ZodBoolean>;
71
+ }, z.core.$strict>>;
72
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
73
+ legacy: "legacy";
74
+ "v2-required": "v2-required";
75
+ }>>;
76
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
77
+ "read-only": "read-only";
78
+ refuse: "refuse";
79
+ }>>;
80
+ }, z.core.$strict>>;
81
+ workflows: z.ZodOptional<z.ZodBoolean>;
82
+ renown: z.ZodOptional<z.ZodObject<{
83
+ url: z.ZodOptional<z.ZodString>;
84
+ networkId: z.ZodOptional<z.ZodString>;
85
+ chainId: z.ZodOptional<z.ZodNumber>;
86
+ }, z.core.$strict>>;
87
+ namespace: z.ZodOptional<z.ZodString>;
88
+ drives: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodArray<z.ZodObject<{
89
+ slug: z.ZodString;
90
+ id: z.ZodOptional<z.ZodString>;
91
+ projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
92
+ documentType: z.ZodOptional<z.ZodEnum<{
93
+ "powerhouse/document-drive": "powerhouse/document-drive";
94
+ "powerhouse/reactor-drive": "powerhouse/reactor-drive";
95
+ }>>;
96
+ name: z.ZodOptional<z.ZodString>;
97
+ icon: z.ZodOptional<z.ZodString>;
98
+ preferredEditor: z.ZodOptional<z.ZodString>;
99
+ sharingType: z.ZodOptional<z.ZodEnum<{
100
+ private: "private";
101
+ public: "public";
102
+ shared: "shared";
103
+ }>>;
104
+ availableOffline: z.ZodOptional<z.ZodBoolean>;
105
+ remote: z.ZodOptional<z.ZodObject<{
106
+ url: import("@powerhousedao/host-core").TokenableSchema<z.ZodString>;
107
+ }, z.core.$strict>>;
108
+ }, z.core.$strict>>>>;
109
+ }, z.core.$strict>>;
110
+ runner: z.ZodObject<{
111
+ module: z.ZodString;
112
+ defaultVerb: z.ZodOptional<z.ZodString>;
113
+ host: z.ZodOptional<z.ZodString>;
114
+ plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
115
+ module: z.ZodString;
116
+ enabled: z.ZodOptional<z.ZodBoolean>;
117
+ verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
118
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
119
+ }, z.core.$strict>]>>>;
120
+ port: z.ZodOptional<z.ZodNumber>;
121
+ dev: z.ZodOptional<z.ZodBoolean>;
122
+ outDir: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strict>;
124
+ config: z.ZodOptional<z.ZodObject<{
125
+ switchboard: z.ZodOptional<z.ZodType<{
126
+ logLevel?: "debug" | "error" | "info" | "verbose" | "warn" | undefined;
127
+ server?: {
128
+ port?: number | undefined;
129
+ strictPort?: boolean | undefined;
130
+ basePath?: string | undefined;
131
+ publicUrl?: string | undefined;
132
+ host?: string | undefined;
133
+ gatewayAdapter?: "apollo" | "mercurius" | "stitching" | undefined;
134
+ https?: boolean | {
135
+ keyPath: string;
136
+ certPath: string;
137
+ } | undefined;
138
+ dev?: boolean | undefined;
139
+ } | undefined;
140
+ storage?: {
141
+ reactor?: {
142
+ url?: string | undefined;
143
+ } | undefined;
144
+ readModel?: {
145
+ url?: string | undefined;
146
+ } | undefined;
147
+ inMemory?: boolean | undefined;
148
+ userDataDir?: string | undefined;
149
+ pglite?: {
150
+ fsync?: boolean | undefined;
151
+ workers?: boolean | undefined;
152
+ workerMemoryMb?: number | undefined;
153
+ vacuumFull?: {
154
+ mode?: "forced" | "off" | "quiet" | undefined;
155
+ aboveMb?: number | undefined;
156
+ quietMs?: number | undefined;
157
+ maxDeferMs?: number | undefined;
158
+ } | undefined;
159
+ } | undefined;
160
+ migratePglite?: boolean | undefined;
161
+ forcePgVersion?: 16 | 17 | undefined;
162
+ keyframes?: {
163
+ default?: {
164
+ interval?: number | undefined;
165
+ keep?: number | null | undefined;
166
+ } | undefined;
167
+ types?: Record<string, {
168
+ interval?: number | undefined;
169
+ keep?: number | null | undefined;
170
+ }> | undefined;
171
+ } | undefined;
172
+ } | undefined;
173
+ protocol?: {
174
+ featureFlags?: {
175
+ documentDecisions?: boolean | undefined;
176
+ authEnforcement?: boolean | undefined;
177
+ authGroups?: boolean | undefined;
178
+ authConditions?: boolean | undefined;
179
+ undoV3?: boolean | undefined;
180
+ } | undefined;
181
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
182
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
183
+ legacyProcessorIds?: boolean | undefined;
184
+ maxSkipThreshold?: number | undefined;
185
+ catchUpPriority?: number | "dynamic" | undefined;
186
+ processorTiming?: "basic" | "detailed" | "off" | undefined;
187
+ processorTimingWindowMs?: number | undefined;
188
+ processorSlowBatchMs?: number | undefined;
189
+ processorTimingLogMs?: number | undefined;
190
+ } | undefined;
191
+ telemetry?: {
192
+ memory?: {
193
+ enabled?: boolean | undefined;
194
+ intervalMs?: number | undefined;
195
+ outputs?: ("console" | "file" | "memory")[] | undefined;
196
+ file?: {
197
+ path?: string | undefined;
198
+ maxMb?: number | undefined;
199
+ keep?: number | undefined;
200
+ } | undefined;
201
+ ringSize?: number | undefined;
202
+ consoleIntervalMs?: number | undefined;
203
+ workers?: boolean | undefined;
204
+ windowMin?: number | undefined;
205
+ } | undefined;
206
+ dir?: string | undefined;
207
+ heapSnapshotDir?: string | undefined;
208
+ } | undefined;
209
+ auth?: {
210
+ enabled?: boolean | undefined;
211
+ resolveIdentity?: boolean | undefined;
212
+ requireAuthenticatedCaller?: boolean | undefined;
213
+ requireAuthenticatedCallerExemptPaths?: string[] | undefined;
214
+ admins?: string[] | undefined;
215
+ defaultProtection?: boolean | undefined;
216
+ attachmentReadsFollowDocumentPolicy?: boolean | undefined;
217
+ documentPermissions?: {
218
+ enabled?: boolean | undefined;
219
+ cacheTtlMs?: number | undefined;
220
+ } | undefined;
221
+ skipCredentialVerification?: boolean | undefined;
222
+ credentialCacheTtlMs?: number | undefined;
223
+ wsRecheckMs?: number | undefined;
224
+ ownerClaim?: boolean | undefined;
225
+ offlineCredentials?: boolean | undefined;
226
+ renown?: {
227
+ source?: "kept" | "remote" | "self" | undefined;
228
+ url?: string | undefined;
229
+ switchboardUrl?: string | undefined;
230
+ } | undefined;
231
+ } | undefined;
232
+ inspection?: {
233
+ enabled?: boolean | undefined;
234
+ admin?: boolean | undefined;
235
+ callsPerMinute?: number | undefined;
236
+ } | undefined;
237
+ workers?: {
238
+ executor?: {
239
+ count?: number | "auto" | undefined;
240
+ poolSize?: number | undefined;
241
+ acquireTimeoutMs?: number | undefined;
242
+ } | undefined;
243
+ hostPoolSize?: number | undefined;
244
+ projection?: {
245
+ enabled?: boolean | undefined;
246
+ poolSize?: number | undefined;
247
+ } | undefined;
248
+ } | undefined;
249
+ packages?: {
250
+ registryUrl?: string | undefined;
251
+ registryPackages?: string[] | undefined;
252
+ dynamic?: boolean | undefined;
253
+ list?: string[] | undefined;
254
+ disableLocal?: boolean | undefined;
255
+ hostValidation?: "log" | "refuse" | undefined;
256
+ } | undefined;
257
+ features?: {
258
+ mcp?: boolean | undefined;
259
+ workflows?: boolean | undefined;
260
+ documentModelSubgraphs?: boolean | undefined;
261
+ pluginHost?: boolean | undefined;
262
+ privacy?: {
263
+ enabled?: boolean | undefined;
264
+ deploymentSecret?: string | undefined;
265
+ intervalMs?: number | undefined;
266
+ deadlineMs?: number | undefined;
267
+ markerGraceMs?: number | undefined;
268
+ purgeTimeoutMs?: number | undefined;
269
+ } | undefined;
270
+ } | undefined;
271
+ attachments?: {
272
+ storage?: {
273
+ kind: "filesystem";
274
+ } | {
275
+ kind: "s3";
276
+ s3: {
277
+ endpoint: string;
278
+ region: string;
279
+ bucket: string;
280
+ accessKeyId: string;
281
+ secretAccessKey: string;
282
+ prefix: string;
283
+ forcePathStyle: boolean;
284
+ uploadTtlSeconds: number;
285
+ downloadTtlSeconds: number;
286
+ };
287
+ } | undefined;
288
+ urlSigningSecret?: string | undefined;
289
+ downloadTargetMaxTtlSeconds?: number | undefined;
290
+ serviceUrl?: string | undefined;
291
+ } | undefined;
292
+ identity?: {
293
+ keypairPath?: string | undefined;
294
+ requireExisting?: boolean | undefined;
295
+ baseUrl?: string | undefined;
296
+ } | undefined;
297
+ drive?: {
298
+ [x: string]: unknown;
299
+ id?: string | undefined;
300
+ slug?: string | undefined;
301
+ documentType?: "powerhouse/document-drive" | "powerhouse/reactor-drive" | undefined;
302
+ } | undefined;
303
+ remoteDrives?: string[] | undefined;
304
+ configFile?: string | undefined;
305
+ processorConfig?: Map<string, unknown> | undefined;
306
+ }, {
307
+ logLevel?: "debug" | "error" | "info" | "verbose" | "warn" | undefined;
308
+ server?: {
309
+ port?: number | undefined;
310
+ strictPort?: boolean | undefined;
311
+ basePath?: string | undefined;
312
+ publicUrl?: string | undefined;
313
+ host?: string | undefined;
314
+ gatewayAdapter?: "apollo" | "mercurius" | "stitching" | undefined;
315
+ https?: boolean | {
316
+ keyPath: string;
317
+ certPath: string;
318
+ } | undefined;
319
+ dev?: boolean | undefined;
320
+ } | undefined;
321
+ storage?: {
322
+ reactor?: {
323
+ url?: string | undefined;
324
+ } | undefined;
325
+ readModel?: {
326
+ url?: string | undefined;
327
+ } | undefined;
328
+ inMemory?: boolean | undefined;
329
+ userDataDir?: string | undefined;
330
+ pglite?: {
331
+ fsync?: boolean | undefined;
332
+ workers?: boolean | undefined;
333
+ workerMemoryMb?: number | undefined;
334
+ vacuumFull?: {
335
+ mode?: "forced" | "off" | "quiet" | undefined;
336
+ aboveMb?: number | undefined;
337
+ quietMs?: number | undefined;
338
+ maxDeferMs?: number | undefined;
339
+ } | undefined;
340
+ } | undefined;
341
+ migratePglite?: boolean | undefined;
342
+ forcePgVersion?: 16 | 17 | undefined;
343
+ keyframes?: {
344
+ default?: {
345
+ interval?: number | undefined;
346
+ keep?: number | null | undefined;
347
+ } | undefined;
348
+ types?: Record<string, {
349
+ interval?: number | undefined;
350
+ keep?: number | null | undefined;
351
+ }> | undefined;
352
+ } | undefined;
353
+ } | undefined;
354
+ protocol?: {
355
+ featureFlags?: {
356
+ documentDecisions?: boolean | undefined;
357
+ authEnforcement?: boolean | undefined;
358
+ authGroups?: boolean | undefined;
359
+ authConditions?: boolean | undefined;
360
+ undoV3?: boolean | undefined;
361
+ } | undefined;
362
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
363
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
364
+ legacyProcessorIds?: boolean | undefined;
365
+ maxSkipThreshold?: number | undefined;
366
+ catchUpPriority?: number | "dynamic" | undefined;
367
+ processorTiming?: "basic" | "detailed" | "off" | undefined;
368
+ processorTimingWindowMs?: number | undefined;
369
+ processorSlowBatchMs?: number | undefined;
370
+ processorTimingLogMs?: number | undefined;
371
+ } | undefined;
372
+ telemetry?: {
373
+ memory?: {
374
+ enabled?: boolean | undefined;
375
+ intervalMs?: number | undefined;
376
+ outputs?: ("console" | "file" | "memory")[] | undefined;
377
+ file?: {
378
+ path?: string | undefined;
379
+ maxMb?: number | undefined;
380
+ keep?: number | undefined;
381
+ } | undefined;
382
+ ringSize?: number | undefined;
383
+ consoleIntervalMs?: number | undefined;
384
+ workers?: boolean | undefined;
385
+ windowMin?: number | undefined;
386
+ } | undefined;
387
+ dir?: string | undefined;
388
+ heapSnapshotDir?: string | undefined;
389
+ } | undefined;
390
+ auth?: {
391
+ enabled?: boolean | undefined;
392
+ resolveIdentity?: boolean | undefined;
393
+ requireAuthenticatedCaller?: boolean | undefined;
394
+ requireAuthenticatedCallerExemptPaths?: string[] | undefined;
395
+ admins?: string[] | undefined;
396
+ defaultProtection?: boolean | undefined;
397
+ attachmentReadsFollowDocumentPolicy?: boolean | undefined;
398
+ documentPermissions?: {
399
+ enabled?: boolean | undefined;
400
+ cacheTtlMs?: number | undefined;
401
+ } | undefined;
402
+ skipCredentialVerification?: boolean | undefined;
403
+ credentialCacheTtlMs?: number | undefined;
404
+ wsRecheckMs?: number | undefined;
405
+ ownerClaim?: boolean | undefined;
406
+ offlineCredentials?: boolean | undefined;
407
+ renown?: {
408
+ source?: "kept" | "remote" | "self" | undefined;
409
+ url?: string | undefined;
410
+ switchboardUrl?: string | undefined;
411
+ } | undefined;
412
+ } | undefined;
413
+ inspection?: {
414
+ enabled?: boolean | undefined;
415
+ admin?: boolean | undefined;
416
+ callsPerMinute?: number | undefined;
417
+ } | undefined;
418
+ workers?: {
419
+ executor?: {
420
+ count?: number | "auto" | undefined;
421
+ poolSize?: number | undefined;
422
+ acquireTimeoutMs?: number | undefined;
423
+ } | undefined;
424
+ hostPoolSize?: number | undefined;
425
+ projection?: {
426
+ enabled?: boolean | undefined;
427
+ poolSize?: number | undefined;
428
+ } | undefined;
429
+ } | undefined;
430
+ packages?: {
431
+ registryUrl?: string | undefined;
432
+ registryPackages?: string[] | undefined;
433
+ dynamic?: boolean | undefined;
434
+ list?: string[] | undefined;
435
+ disableLocal?: boolean | undefined;
436
+ hostValidation?: "log" | "refuse" | undefined;
437
+ } | undefined;
438
+ features?: {
439
+ mcp?: boolean | undefined;
440
+ workflows?: boolean | undefined;
441
+ documentModelSubgraphs?: boolean | undefined;
442
+ pluginHost?: boolean | undefined;
443
+ privacy?: {
444
+ enabled?: boolean | undefined;
445
+ deploymentSecret?: string | undefined;
446
+ intervalMs?: number | undefined;
447
+ deadlineMs?: number | undefined;
448
+ markerGraceMs?: number | undefined;
449
+ purgeTimeoutMs?: number | undefined;
450
+ } | undefined;
451
+ } | undefined;
452
+ attachments?: {
453
+ storage?: {
454
+ kind: "filesystem";
455
+ } | {
456
+ kind: "s3";
457
+ s3: {
458
+ endpoint: string;
459
+ region: string;
460
+ bucket: string;
461
+ accessKeyId: string;
462
+ secretAccessKey: string;
463
+ prefix: string;
464
+ forcePathStyle: boolean;
465
+ uploadTtlSeconds: number;
466
+ downloadTtlSeconds: number;
467
+ };
468
+ } | undefined;
469
+ urlSigningSecret?: string | undefined;
470
+ downloadTargetMaxTtlSeconds?: number | undefined;
471
+ serviceUrl?: string | undefined;
472
+ } | undefined;
473
+ identity?: {
474
+ keypairPath?: string | undefined;
475
+ requireExisting?: boolean | undefined;
476
+ baseUrl?: string | undefined;
477
+ } | undefined;
478
+ drive?: {
479
+ [x: string]: unknown;
480
+ id?: string | undefined;
481
+ slug?: string | undefined;
482
+ documentType?: "powerhouse/document-drive" | "powerhouse/reactor-drive" | undefined;
483
+ } | undefined;
484
+ remoteDrives?: string[] | undefined;
485
+ configFile?: string | undefined;
486
+ processorConfig?: Map<string, unknown> | undefined;
487
+ }, z.core.$ZodTypeInternals<{
488
+ logLevel?: "debug" | "error" | "info" | "verbose" | "warn" | undefined;
489
+ server?: {
490
+ port?: number | undefined;
491
+ strictPort?: boolean | undefined;
492
+ basePath?: string | undefined;
493
+ publicUrl?: string | undefined;
494
+ host?: string | undefined;
495
+ gatewayAdapter?: "apollo" | "mercurius" | "stitching" | undefined;
496
+ https?: boolean | {
497
+ keyPath: string;
498
+ certPath: string;
499
+ } | undefined;
500
+ dev?: boolean | undefined;
501
+ } | undefined;
502
+ storage?: {
503
+ reactor?: {
504
+ url?: string | undefined;
505
+ } | undefined;
506
+ readModel?: {
507
+ url?: string | undefined;
508
+ } | undefined;
509
+ inMemory?: boolean | undefined;
510
+ userDataDir?: string | undefined;
511
+ pglite?: {
512
+ fsync?: boolean | undefined;
513
+ workers?: boolean | undefined;
514
+ workerMemoryMb?: number | undefined;
515
+ vacuumFull?: {
516
+ mode?: "forced" | "off" | "quiet" | undefined;
517
+ aboveMb?: number | undefined;
518
+ quietMs?: number | undefined;
519
+ maxDeferMs?: number | undefined;
520
+ } | undefined;
521
+ } | undefined;
522
+ migratePglite?: boolean | undefined;
523
+ forcePgVersion?: 16 | 17 | undefined;
524
+ keyframes?: {
525
+ default?: {
526
+ interval?: number | undefined;
527
+ keep?: number | null | undefined;
528
+ } | undefined;
529
+ types?: Record<string, {
530
+ interval?: number | undefined;
531
+ keep?: number | null | undefined;
532
+ }> | undefined;
533
+ } | undefined;
534
+ } | undefined;
535
+ protocol?: {
536
+ featureFlags?: {
537
+ documentDecisions?: boolean | undefined;
538
+ authEnforcement?: boolean | undefined;
539
+ authGroups?: boolean | undefined;
540
+ authConditions?: boolean | undefined;
541
+ undoV3?: boolean | undefined;
542
+ } | undefined;
543
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
544
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
545
+ legacyProcessorIds?: boolean | undefined;
546
+ maxSkipThreshold?: number | undefined;
547
+ catchUpPriority?: number | "dynamic" | undefined;
548
+ processorTiming?: "basic" | "detailed" | "off" | undefined;
549
+ processorTimingWindowMs?: number | undefined;
550
+ processorSlowBatchMs?: number | undefined;
551
+ processorTimingLogMs?: number | undefined;
552
+ } | undefined;
553
+ telemetry?: {
554
+ memory?: {
555
+ enabled?: boolean | undefined;
556
+ intervalMs?: number | undefined;
557
+ outputs?: ("console" | "file" | "memory")[] | undefined;
558
+ file?: {
559
+ path?: string | undefined;
560
+ maxMb?: number | undefined;
561
+ keep?: number | undefined;
562
+ } | undefined;
563
+ ringSize?: number | undefined;
564
+ consoleIntervalMs?: number | undefined;
565
+ workers?: boolean | undefined;
566
+ windowMin?: number | undefined;
567
+ } | undefined;
568
+ dir?: string | undefined;
569
+ heapSnapshotDir?: string | undefined;
570
+ } | undefined;
571
+ auth?: {
572
+ enabled?: boolean | undefined;
573
+ resolveIdentity?: boolean | undefined;
574
+ requireAuthenticatedCaller?: boolean | undefined;
575
+ requireAuthenticatedCallerExemptPaths?: string[] | undefined;
576
+ admins?: string[] | undefined;
577
+ defaultProtection?: boolean | undefined;
578
+ attachmentReadsFollowDocumentPolicy?: boolean | undefined;
579
+ documentPermissions?: {
580
+ enabled?: boolean | undefined;
581
+ cacheTtlMs?: number | undefined;
582
+ } | undefined;
583
+ skipCredentialVerification?: boolean | undefined;
584
+ credentialCacheTtlMs?: number | undefined;
585
+ wsRecheckMs?: number | undefined;
586
+ ownerClaim?: boolean | undefined;
587
+ offlineCredentials?: boolean | undefined;
588
+ renown?: {
589
+ source?: "kept" | "remote" | "self" | undefined;
590
+ url?: string | undefined;
591
+ switchboardUrl?: string | undefined;
592
+ } | undefined;
593
+ } | undefined;
594
+ inspection?: {
595
+ enabled?: boolean | undefined;
596
+ admin?: boolean | undefined;
597
+ callsPerMinute?: number | undefined;
598
+ } | undefined;
599
+ workers?: {
600
+ executor?: {
601
+ count?: number | "auto" | undefined;
602
+ poolSize?: number | undefined;
603
+ acquireTimeoutMs?: number | undefined;
604
+ } | undefined;
605
+ hostPoolSize?: number | undefined;
606
+ projection?: {
607
+ enabled?: boolean | undefined;
608
+ poolSize?: number | undefined;
609
+ } | undefined;
610
+ } | undefined;
611
+ packages?: {
612
+ registryUrl?: string | undefined;
613
+ registryPackages?: string[] | undefined;
614
+ dynamic?: boolean | undefined;
615
+ list?: string[] | undefined;
616
+ disableLocal?: boolean | undefined;
617
+ hostValidation?: "log" | "refuse" | undefined;
618
+ } | undefined;
619
+ features?: {
620
+ mcp?: boolean | undefined;
621
+ workflows?: boolean | undefined;
622
+ documentModelSubgraphs?: boolean | undefined;
623
+ pluginHost?: boolean | undefined;
624
+ privacy?: {
625
+ enabled?: boolean | undefined;
626
+ deploymentSecret?: string | undefined;
627
+ intervalMs?: number | undefined;
628
+ deadlineMs?: number | undefined;
629
+ markerGraceMs?: number | undefined;
630
+ purgeTimeoutMs?: number | undefined;
631
+ } | undefined;
632
+ } | undefined;
633
+ attachments?: {
634
+ storage?: {
635
+ kind: "filesystem";
636
+ } | {
637
+ kind: "s3";
638
+ s3: {
639
+ endpoint: string;
640
+ region: string;
641
+ bucket: string;
642
+ accessKeyId: string;
643
+ secretAccessKey: string;
644
+ prefix: string;
645
+ forcePathStyle: boolean;
646
+ uploadTtlSeconds: number;
647
+ downloadTtlSeconds: number;
648
+ };
649
+ } | undefined;
650
+ urlSigningSecret?: string | undefined;
651
+ downloadTargetMaxTtlSeconds?: number | undefined;
652
+ serviceUrl?: string | undefined;
653
+ } | undefined;
654
+ identity?: {
655
+ keypairPath?: string | undefined;
656
+ requireExisting?: boolean | undefined;
657
+ baseUrl?: string | undefined;
658
+ } | undefined;
659
+ drive?: {
660
+ [x: string]: unknown;
661
+ id?: string | undefined;
662
+ slug?: string | undefined;
663
+ documentType?: "powerhouse/document-drive" | "powerhouse/reactor-drive" | undefined;
664
+ } | undefined;
665
+ remoteDrives?: string[] | undefined;
666
+ configFile?: string | undefined;
667
+ processorConfig?: Map<string, unknown> | undefined;
668
+ }, {
669
+ logLevel?: "debug" | "error" | "info" | "verbose" | "warn" | undefined;
670
+ server?: {
671
+ port?: number | undefined;
672
+ strictPort?: boolean | undefined;
673
+ basePath?: string | undefined;
674
+ publicUrl?: string | undefined;
675
+ host?: string | undefined;
676
+ gatewayAdapter?: "apollo" | "mercurius" | "stitching" | undefined;
677
+ https?: boolean | {
678
+ keyPath: string;
679
+ certPath: string;
680
+ } | undefined;
681
+ dev?: boolean | undefined;
682
+ } | undefined;
683
+ storage?: {
684
+ reactor?: {
685
+ url?: string | undefined;
686
+ } | undefined;
687
+ readModel?: {
688
+ url?: string | undefined;
689
+ } | undefined;
690
+ inMemory?: boolean | undefined;
691
+ userDataDir?: string | undefined;
692
+ pglite?: {
693
+ fsync?: boolean | undefined;
694
+ workers?: boolean | undefined;
695
+ workerMemoryMb?: number | undefined;
696
+ vacuumFull?: {
697
+ mode?: "forced" | "off" | "quiet" | undefined;
698
+ aboveMb?: number | undefined;
699
+ quietMs?: number | undefined;
700
+ maxDeferMs?: number | undefined;
701
+ } | undefined;
702
+ } | undefined;
703
+ migratePglite?: boolean | undefined;
704
+ forcePgVersion?: 16 | 17 | undefined;
705
+ keyframes?: {
706
+ default?: {
707
+ interval?: number | undefined;
708
+ keep?: number | null | undefined;
709
+ } | undefined;
710
+ types?: Record<string, {
711
+ interval?: number | undefined;
712
+ keep?: number | null | undefined;
713
+ }> | undefined;
714
+ } | undefined;
715
+ } | undefined;
716
+ protocol?: {
717
+ featureFlags?: {
718
+ documentDecisions?: boolean | undefined;
719
+ authEnforcement?: boolean | undefined;
720
+ authGroups?: boolean | undefined;
721
+ authConditions?: boolean | undefined;
722
+ undoV3?: boolean | undefined;
723
+ } | undefined;
724
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
725
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
726
+ legacyProcessorIds?: boolean | undefined;
727
+ maxSkipThreshold?: number | undefined;
728
+ catchUpPriority?: number | "dynamic" | undefined;
729
+ processorTiming?: "basic" | "detailed" | "off" | undefined;
730
+ processorTimingWindowMs?: number | undefined;
731
+ processorSlowBatchMs?: number | undefined;
732
+ processorTimingLogMs?: number | undefined;
733
+ } | undefined;
734
+ telemetry?: {
735
+ memory?: {
736
+ enabled?: boolean | undefined;
737
+ intervalMs?: number | undefined;
738
+ outputs?: ("console" | "file" | "memory")[] | undefined;
739
+ file?: {
740
+ path?: string | undefined;
741
+ maxMb?: number | undefined;
742
+ keep?: number | undefined;
743
+ } | undefined;
744
+ ringSize?: number | undefined;
745
+ consoleIntervalMs?: number | undefined;
746
+ workers?: boolean | undefined;
747
+ windowMin?: number | undefined;
748
+ } | undefined;
749
+ dir?: string | undefined;
750
+ heapSnapshotDir?: string | undefined;
751
+ } | undefined;
752
+ auth?: {
753
+ enabled?: boolean | undefined;
754
+ resolveIdentity?: boolean | undefined;
755
+ requireAuthenticatedCaller?: boolean | undefined;
756
+ requireAuthenticatedCallerExemptPaths?: string[] | undefined;
757
+ admins?: string[] | undefined;
758
+ defaultProtection?: boolean | undefined;
759
+ attachmentReadsFollowDocumentPolicy?: boolean | undefined;
760
+ documentPermissions?: {
761
+ enabled?: boolean | undefined;
762
+ cacheTtlMs?: number | undefined;
763
+ } | undefined;
764
+ skipCredentialVerification?: boolean | undefined;
765
+ credentialCacheTtlMs?: number | undefined;
766
+ wsRecheckMs?: number | undefined;
767
+ ownerClaim?: boolean | undefined;
768
+ offlineCredentials?: boolean | undefined;
769
+ renown?: {
770
+ source?: "kept" | "remote" | "self" | undefined;
771
+ url?: string | undefined;
772
+ switchboardUrl?: string | undefined;
773
+ } | undefined;
774
+ } | undefined;
775
+ inspection?: {
776
+ enabled?: boolean | undefined;
777
+ admin?: boolean | undefined;
778
+ callsPerMinute?: number | undefined;
779
+ } | undefined;
780
+ workers?: {
781
+ executor?: {
782
+ count?: number | "auto" | undefined;
783
+ poolSize?: number | undefined;
784
+ acquireTimeoutMs?: number | undefined;
785
+ } | undefined;
786
+ hostPoolSize?: number | undefined;
787
+ projection?: {
788
+ enabled?: boolean | undefined;
789
+ poolSize?: number | undefined;
790
+ } | undefined;
791
+ } | undefined;
792
+ packages?: {
793
+ registryUrl?: string | undefined;
794
+ registryPackages?: string[] | undefined;
795
+ dynamic?: boolean | undefined;
796
+ list?: string[] | undefined;
797
+ disableLocal?: boolean | undefined;
798
+ hostValidation?: "log" | "refuse" | undefined;
799
+ } | undefined;
800
+ features?: {
801
+ mcp?: boolean | undefined;
802
+ workflows?: boolean | undefined;
803
+ documentModelSubgraphs?: boolean | undefined;
804
+ pluginHost?: boolean | undefined;
805
+ privacy?: {
806
+ enabled?: boolean | undefined;
807
+ deploymentSecret?: string | undefined;
808
+ intervalMs?: number | undefined;
809
+ deadlineMs?: number | undefined;
810
+ markerGraceMs?: number | undefined;
811
+ purgeTimeoutMs?: number | undefined;
812
+ } | undefined;
813
+ } | undefined;
814
+ attachments?: {
815
+ storage?: {
816
+ kind: "filesystem";
817
+ } | {
818
+ kind: "s3";
819
+ s3: {
820
+ endpoint: string;
821
+ region: string;
822
+ bucket: string;
823
+ accessKeyId: string;
824
+ secretAccessKey: string;
825
+ prefix: string;
826
+ forcePathStyle: boolean;
827
+ uploadTtlSeconds: number;
828
+ downloadTtlSeconds: number;
829
+ };
830
+ } | undefined;
831
+ urlSigningSecret?: string | undefined;
832
+ downloadTargetMaxTtlSeconds?: number | undefined;
833
+ serviceUrl?: string | undefined;
834
+ } | undefined;
835
+ identity?: {
836
+ keypairPath?: string | undefined;
837
+ requireExisting?: boolean | undefined;
838
+ baseUrl?: string | undefined;
839
+ } | undefined;
840
+ drive?: {
841
+ [x: string]: unknown;
842
+ id?: string | undefined;
843
+ slug?: string | undefined;
844
+ documentType?: "powerhouse/document-drive" | "powerhouse/reactor-drive" | undefined;
845
+ } | undefined;
846
+ remoteDrives?: string[] | undefined;
847
+ configFile?: string | undefined;
848
+ processorConfig?: Map<string, unknown> | undefined;
849
+ }>>>;
850
+ }, z.core.$strict>>;
851
+ }, z.core.$strict>;
852
+ export declare const hostSchema: z.ZodObject<{
853
+ name: z.ZodString;
854
+ profile: z.ZodOptional<z.ZodObject<{
855
+ appId: z.ZodOptional<z.ZodString>;
856
+ name: z.ZodOptional<z.ZodString>;
857
+ description: z.ZodOptional<z.ZodString>;
858
+ icon: z.ZodOptional<z.ZodString>;
859
+ }, z.core.$strict>>;
860
+ reactor: z.ZodOptional<z.ZodObject<{
861
+ backends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
862
+ kind: z.ZodEnum<{
863
+ "in-process": "in-process";
864
+ remote: "remote";
865
+ worker: "worker";
866
+ }>;
867
+ storage: z.ZodOptional<z.ZodObject<{
868
+ kind: z.ZodEnum<{
869
+ idb: "idb";
870
+ memory: "memory";
871
+ path: "path";
872
+ postgres: "postgres";
873
+ }>;
874
+ dataDir: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodString, import("@powerhousedao/host-core").EnvToken>>;
875
+ url: z.ZodOptional<z.ZodString>;
876
+ }, z.core.$strict>>;
877
+ readModel: z.ZodOptional<z.ZodObject<{
878
+ url: z.ZodOptional<z.ZodString>;
879
+ }, z.core.$strict>>;
880
+ packages: z.ZodOptional<z.ZodObject<{
881
+ cdnUrl: z.ZodOptional<z.ZodString>;
882
+ specs: z.ZodOptional<z.ZodArray<z.ZodString>>;
883
+ dynamic: z.ZodOptional<z.ZodBoolean>;
884
+ }, z.core.$strict>>;
885
+ remote: z.ZodOptional<z.ZodObject<{
886
+ url: import("@powerhousedao/host-core").TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
887
+ requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
888
+ breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
889
+ failures: z.ZodOptional<z.ZodNumber>;
890
+ openMs: z.ZodOptional<z.ZodNumber>;
891
+ }, z.core.$strict>]>>;
892
+ realtime: z.ZodOptional<z.ZodBoolean>;
893
+ }, z.core.$strict>>;
894
+ }, z.core.$strict>>>;
895
+ placement: z.ZodOptional<z.ZodObject<{
896
+ primary: z.ZodOptional<z.ZodString>;
897
+ drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
898
+ newDrives: z.ZodOptional<z.ZodString>;
899
+ }, z.core.$strict>>;
900
+ router: z.ZodOptional<z.ZodObject<{
901
+ probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
902
+ provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
903
+ }, z.core.$strict>>;
904
+ protocol: z.ZodOptional<z.ZodObject<{
905
+ featureFlags: z.ZodOptional<z.ZodObject<{
906
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
907
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
908
+ authGroups: z.ZodOptional<z.ZodBoolean>;
909
+ authConditions: z.ZodOptional<z.ZodBoolean>;
910
+ undoV3: z.ZodOptional<z.ZodBoolean>;
911
+ }, z.core.$strict>>;
912
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
913
+ legacy: "legacy";
914
+ "v2-required": "v2-required";
915
+ }>>;
916
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
917
+ "read-only": "read-only";
918
+ refuse: "refuse";
919
+ }>>;
920
+ }, z.core.$strict>>;
921
+ workflows: z.ZodOptional<z.ZodBoolean>;
922
+ renown: z.ZodOptional<z.ZodObject<{
923
+ url: z.ZodOptional<z.ZodString>;
924
+ networkId: z.ZodOptional<z.ZodString>;
925
+ chainId: z.ZodOptional<z.ZodNumber>;
926
+ }, z.core.$strict>>;
927
+ namespace: z.ZodOptional<z.ZodString>;
928
+ drives: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodArray<z.ZodObject<{
929
+ slug: z.ZodString;
930
+ id: z.ZodOptional<z.ZodString>;
931
+ projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
932
+ documentType: z.ZodOptional<z.ZodEnum<{
933
+ "powerhouse/document-drive": "powerhouse/document-drive";
934
+ "powerhouse/reactor-drive": "powerhouse/reactor-drive";
935
+ }>>;
936
+ name: z.ZodOptional<z.ZodString>;
937
+ icon: z.ZodOptional<z.ZodString>;
938
+ preferredEditor: z.ZodOptional<z.ZodString>;
939
+ sharingType: z.ZodOptional<z.ZodEnum<{
940
+ private: "private";
941
+ public: "public";
942
+ shared: "shared";
943
+ }>>;
944
+ availableOffline: z.ZodOptional<z.ZodBoolean>;
945
+ remote: z.ZodOptional<z.ZodObject<{
946
+ url: import("@powerhousedao/host-core").TokenableSchema<z.ZodString>;
947
+ }, z.core.$strict>>;
948
+ }, z.core.$strict>>>>;
949
+ }, z.core.$strict>>;
950
+ runner: z.ZodObject<{
951
+ module: z.ZodString;
952
+ defaultVerb: z.ZodOptional<z.ZodString>;
953
+ host: z.ZodOptional<z.ZodString>;
954
+ plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
955
+ module: z.ZodString;
956
+ enabled: z.ZodOptional<z.ZodBoolean>;
957
+ verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
958
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
959
+ }, z.core.$strict>]>>>;
960
+ port: z.ZodOptional<z.ZodNumber>;
961
+ dev: z.ZodOptional<z.ZodBoolean>;
962
+ outDir: z.ZodOptional<z.ZodString>;
963
+ }, z.core.$strict>;
964
+ config: z.ZodOptional<z.ZodObject<{
965
+ switchboard: z.ZodOptional<z.ZodType<{
966
+ logLevel?: "debug" | "error" | "info" | "verbose" | "warn" | undefined;
967
+ server?: {
968
+ port?: number | undefined;
969
+ strictPort?: boolean | undefined;
970
+ basePath?: string | undefined;
971
+ publicUrl?: string | undefined;
972
+ host?: string | undefined;
973
+ gatewayAdapter?: "apollo" | "mercurius" | "stitching" | undefined;
974
+ https?: boolean | {
975
+ keyPath: string;
976
+ certPath: string;
977
+ } | undefined;
978
+ dev?: boolean | undefined;
979
+ } | undefined;
980
+ storage?: {
981
+ reactor?: {
982
+ url?: string | undefined;
983
+ } | undefined;
984
+ readModel?: {
985
+ url?: string | undefined;
986
+ } | undefined;
987
+ inMemory?: boolean | undefined;
988
+ userDataDir?: string | undefined;
989
+ pglite?: {
990
+ fsync?: boolean | undefined;
991
+ workers?: boolean | undefined;
992
+ workerMemoryMb?: number | undefined;
993
+ vacuumFull?: {
994
+ mode?: "forced" | "off" | "quiet" | undefined;
995
+ aboveMb?: number | undefined;
996
+ quietMs?: number | undefined;
997
+ maxDeferMs?: number | undefined;
998
+ } | undefined;
999
+ } | undefined;
1000
+ migratePglite?: boolean | undefined;
1001
+ forcePgVersion?: 16 | 17 | undefined;
1002
+ keyframes?: {
1003
+ default?: {
1004
+ interval?: number | undefined;
1005
+ keep?: number | null | undefined;
1006
+ } | undefined;
1007
+ types?: Record<string, {
1008
+ interval?: number | undefined;
1009
+ keep?: number | null | undefined;
1010
+ }> | undefined;
1011
+ } | undefined;
1012
+ } | undefined;
1013
+ protocol?: {
1014
+ featureFlags?: {
1015
+ documentDecisions?: boolean | undefined;
1016
+ authEnforcement?: boolean | undefined;
1017
+ authGroups?: boolean | undefined;
1018
+ authConditions?: boolean | undefined;
1019
+ undoV3?: boolean | undefined;
1020
+ } | undefined;
1021
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
1022
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
1023
+ legacyProcessorIds?: boolean | undefined;
1024
+ maxSkipThreshold?: number | undefined;
1025
+ catchUpPriority?: number | "dynamic" | undefined;
1026
+ processorTiming?: "basic" | "detailed" | "off" | undefined;
1027
+ processorTimingWindowMs?: number | undefined;
1028
+ processorSlowBatchMs?: number | undefined;
1029
+ processorTimingLogMs?: number | undefined;
1030
+ } | undefined;
1031
+ telemetry?: {
1032
+ memory?: {
1033
+ enabled?: boolean | undefined;
1034
+ intervalMs?: number | undefined;
1035
+ outputs?: ("console" | "file" | "memory")[] | undefined;
1036
+ file?: {
1037
+ path?: string | undefined;
1038
+ maxMb?: number | undefined;
1039
+ keep?: number | undefined;
1040
+ } | undefined;
1041
+ ringSize?: number | undefined;
1042
+ consoleIntervalMs?: number | undefined;
1043
+ workers?: boolean | undefined;
1044
+ windowMin?: number | undefined;
1045
+ } | undefined;
1046
+ dir?: string | undefined;
1047
+ heapSnapshotDir?: string | undefined;
1048
+ } | undefined;
1049
+ auth?: {
1050
+ enabled?: boolean | undefined;
1051
+ resolveIdentity?: boolean | undefined;
1052
+ requireAuthenticatedCaller?: boolean | undefined;
1053
+ requireAuthenticatedCallerExemptPaths?: string[] | undefined;
1054
+ admins?: string[] | undefined;
1055
+ defaultProtection?: boolean | undefined;
1056
+ attachmentReadsFollowDocumentPolicy?: boolean | undefined;
1057
+ documentPermissions?: {
1058
+ enabled?: boolean | undefined;
1059
+ cacheTtlMs?: number | undefined;
1060
+ } | undefined;
1061
+ skipCredentialVerification?: boolean | undefined;
1062
+ credentialCacheTtlMs?: number | undefined;
1063
+ wsRecheckMs?: number | undefined;
1064
+ ownerClaim?: boolean | undefined;
1065
+ offlineCredentials?: boolean | undefined;
1066
+ renown?: {
1067
+ source?: "kept" | "remote" | "self" | undefined;
1068
+ url?: string | undefined;
1069
+ switchboardUrl?: string | undefined;
1070
+ } | undefined;
1071
+ } | undefined;
1072
+ inspection?: {
1073
+ enabled?: boolean | undefined;
1074
+ admin?: boolean | undefined;
1075
+ callsPerMinute?: number | undefined;
1076
+ } | undefined;
1077
+ workers?: {
1078
+ executor?: {
1079
+ count?: number | "auto" | undefined;
1080
+ poolSize?: number | undefined;
1081
+ acquireTimeoutMs?: number | undefined;
1082
+ } | undefined;
1083
+ hostPoolSize?: number | undefined;
1084
+ projection?: {
1085
+ enabled?: boolean | undefined;
1086
+ poolSize?: number | undefined;
1087
+ } | undefined;
1088
+ } | undefined;
1089
+ packages?: {
1090
+ registryUrl?: string | undefined;
1091
+ registryPackages?: string[] | undefined;
1092
+ dynamic?: boolean | undefined;
1093
+ list?: string[] | undefined;
1094
+ disableLocal?: boolean | undefined;
1095
+ hostValidation?: "log" | "refuse" | undefined;
1096
+ } | undefined;
1097
+ features?: {
1098
+ mcp?: boolean | undefined;
1099
+ workflows?: boolean | undefined;
1100
+ documentModelSubgraphs?: boolean | undefined;
1101
+ pluginHost?: boolean | undefined;
1102
+ privacy?: {
1103
+ enabled?: boolean | undefined;
1104
+ deploymentSecret?: string | undefined;
1105
+ intervalMs?: number | undefined;
1106
+ deadlineMs?: number | undefined;
1107
+ markerGraceMs?: number | undefined;
1108
+ purgeTimeoutMs?: number | undefined;
1109
+ } | undefined;
1110
+ } | undefined;
1111
+ attachments?: {
1112
+ storage?: {
1113
+ kind: "filesystem";
1114
+ } | {
1115
+ kind: "s3";
1116
+ s3: {
1117
+ endpoint: string;
1118
+ region: string;
1119
+ bucket: string;
1120
+ accessKeyId: string;
1121
+ secretAccessKey: string;
1122
+ prefix: string;
1123
+ forcePathStyle: boolean;
1124
+ uploadTtlSeconds: number;
1125
+ downloadTtlSeconds: number;
1126
+ };
1127
+ } | undefined;
1128
+ urlSigningSecret?: string | undefined;
1129
+ downloadTargetMaxTtlSeconds?: number | undefined;
1130
+ serviceUrl?: string | undefined;
1131
+ } | undefined;
1132
+ identity?: {
1133
+ keypairPath?: string | undefined;
1134
+ requireExisting?: boolean | undefined;
1135
+ baseUrl?: string | undefined;
1136
+ } | undefined;
1137
+ drive?: {
1138
+ [x: string]: unknown;
1139
+ id?: string | undefined;
1140
+ slug?: string | undefined;
1141
+ documentType?: "powerhouse/document-drive" | "powerhouse/reactor-drive" | undefined;
1142
+ } | undefined;
1143
+ remoteDrives?: string[] | undefined;
1144
+ configFile?: string | undefined;
1145
+ processorConfig?: Map<string, unknown> | undefined;
1146
+ }, {
1147
+ logLevel?: "debug" | "error" | "info" | "verbose" | "warn" | undefined;
1148
+ server?: {
1149
+ port?: number | undefined;
1150
+ strictPort?: boolean | undefined;
1151
+ basePath?: string | undefined;
1152
+ publicUrl?: string | undefined;
1153
+ host?: string | undefined;
1154
+ gatewayAdapter?: "apollo" | "mercurius" | "stitching" | undefined;
1155
+ https?: boolean | {
1156
+ keyPath: string;
1157
+ certPath: string;
1158
+ } | undefined;
1159
+ dev?: boolean | undefined;
1160
+ } | undefined;
1161
+ storage?: {
1162
+ reactor?: {
1163
+ url?: string | undefined;
1164
+ } | undefined;
1165
+ readModel?: {
1166
+ url?: string | undefined;
1167
+ } | undefined;
1168
+ inMemory?: boolean | undefined;
1169
+ userDataDir?: string | undefined;
1170
+ pglite?: {
1171
+ fsync?: boolean | undefined;
1172
+ workers?: boolean | undefined;
1173
+ workerMemoryMb?: number | undefined;
1174
+ vacuumFull?: {
1175
+ mode?: "forced" | "off" | "quiet" | undefined;
1176
+ aboveMb?: number | undefined;
1177
+ quietMs?: number | undefined;
1178
+ maxDeferMs?: number | undefined;
1179
+ } | undefined;
1180
+ } | undefined;
1181
+ migratePglite?: boolean | undefined;
1182
+ forcePgVersion?: 16 | 17 | undefined;
1183
+ keyframes?: {
1184
+ default?: {
1185
+ interval?: number | undefined;
1186
+ keep?: number | null | undefined;
1187
+ } | undefined;
1188
+ types?: Record<string, {
1189
+ interval?: number | undefined;
1190
+ keep?: number | null | undefined;
1191
+ }> | undefined;
1192
+ } | undefined;
1193
+ } | undefined;
1194
+ protocol?: {
1195
+ featureFlags?: {
1196
+ documentDecisions?: boolean | undefined;
1197
+ authEnforcement?: boolean | undefined;
1198
+ authGroups?: boolean | undefined;
1199
+ authConditions?: boolean | undefined;
1200
+ undoV3?: boolean | undefined;
1201
+ } | undefined;
1202
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
1203
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
1204
+ legacyProcessorIds?: boolean | undefined;
1205
+ maxSkipThreshold?: number | undefined;
1206
+ catchUpPriority?: number | "dynamic" | undefined;
1207
+ processorTiming?: "basic" | "detailed" | "off" | undefined;
1208
+ processorTimingWindowMs?: number | undefined;
1209
+ processorSlowBatchMs?: number | undefined;
1210
+ processorTimingLogMs?: number | undefined;
1211
+ } | undefined;
1212
+ telemetry?: {
1213
+ memory?: {
1214
+ enabled?: boolean | undefined;
1215
+ intervalMs?: number | undefined;
1216
+ outputs?: ("console" | "file" | "memory")[] | undefined;
1217
+ file?: {
1218
+ path?: string | undefined;
1219
+ maxMb?: number | undefined;
1220
+ keep?: number | undefined;
1221
+ } | undefined;
1222
+ ringSize?: number | undefined;
1223
+ consoleIntervalMs?: number | undefined;
1224
+ workers?: boolean | undefined;
1225
+ windowMin?: number | undefined;
1226
+ } | undefined;
1227
+ dir?: string | undefined;
1228
+ heapSnapshotDir?: string | undefined;
1229
+ } | undefined;
1230
+ auth?: {
1231
+ enabled?: boolean | undefined;
1232
+ resolveIdentity?: boolean | undefined;
1233
+ requireAuthenticatedCaller?: boolean | undefined;
1234
+ requireAuthenticatedCallerExemptPaths?: string[] | undefined;
1235
+ admins?: string[] | undefined;
1236
+ defaultProtection?: boolean | undefined;
1237
+ attachmentReadsFollowDocumentPolicy?: boolean | undefined;
1238
+ documentPermissions?: {
1239
+ enabled?: boolean | undefined;
1240
+ cacheTtlMs?: number | undefined;
1241
+ } | undefined;
1242
+ skipCredentialVerification?: boolean | undefined;
1243
+ credentialCacheTtlMs?: number | undefined;
1244
+ wsRecheckMs?: number | undefined;
1245
+ ownerClaim?: boolean | undefined;
1246
+ offlineCredentials?: boolean | undefined;
1247
+ renown?: {
1248
+ source?: "kept" | "remote" | "self" | undefined;
1249
+ url?: string | undefined;
1250
+ switchboardUrl?: string | undefined;
1251
+ } | undefined;
1252
+ } | undefined;
1253
+ inspection?: {
1254
+ enabled?: boolean | undefined;
1255
+ admin?: boolean | undefined;
1256
+ callsPerMinute?: number | undefined;
1257
+ } | undefined;
1258
+ workers?: {
1259
+ executor?: {
1260
+ count?: number | "auto" | undefined;
1261
+ poolSize?: number | undefined;
1262
+ acquireTimeoutMs?: number | undefined;
1263
+ } | undefined;
1264
+ hostPoolSize?: number | undefined;
1265
+ projection?: {
1266
+ enabled?: boolean | undefined;
1267
+ poolSize?: number | undefined;
1268
+ } | undefined;
1269
+ } | undefined;
1270
+ packages?: {
1271
+ registryUrl?: string | undefined;
1272
+ registryPackages?: string[] | undefined;
1273
+ dynamic?: boolean | undefined;
1274
+ list?: string[] | undefined;
1275
+ disableLocal?: boolean | undefined;
1276
+ hostValidation?: "log" | "refuse" | undefined;
1277
+ } | undefined;
1278
+ features?: {
1279
+ mcp?: boolean | undefined;
1280
+ workflows?: boolean | undefined;
1281
+ documentModelSubgraphs?: boolean | undefined;
1282
+ pluginHost?: boolean | undefined;
1283
+ privacy?: {
1284
+ enabled?: boolean | undefined;
1285
+ deploymentSecret?: string | undefined;
1286
+ intervalMs?: number | undefined;
1287
+ deadlineMs?: number | undefined;
1288
+ markerGraceMs?: number | undefined;
1289
+ purgeTimeoutMs?: number | undefined;
1290
+ } | undefined;
1291
+ } | undefined;
1292
+ attachments?: {
1293
+ storage?: {
1294
+ kind: "filesystem";
1295
+ } | {
1296
+ kind: "s3";
1297
+ s3: {
1298
+ endpoint: string;
1299
+ region: string;
1300
+ bucket: string;
1301
+ accessKeyId: string;
1302
+ secretAccessKey: string;
1303
+ prefix: string;
1304
+ forcePathStyle: boolean;
1305
+ uploadTtlSeconds: number;
1306
+ downloadTtlSeconds: number;
1307
+ };
1308
+ } | undefined;
1309
+ urlSigningSecret?: string | undefined;
1310
+ downloadTargetMaxTtlSeconds?: number | undefined;
1311
+ serviceUrl?: string | undefined;
1312
+ } | undefined;
1313
+ identity?: {
1314
+ keypairPath?: string | undefined;
1315
+ requireExisting?: boolean | undefined;
1316
+ baseUrl?: string | undefined;
1317
+ } | undefined;
1318
+ drive?: {
1319
+ [x: string]: unknown;
1320
+ id?: string | undefined;
1321
+ slug?: string | undefined;
1322
+ documentType?: "powerhouse/document-drive" | "powerhouse/reactor-drive" | undefined;
1323
+ } | undefined;
1324
+ remoteDrives?: string[] | undefined;
1325
+ configFile?: string | undefined;
1326
+ processorConfig?: Map<string, unknown> | undefined;
1327
+ }, z.core.$ZodTypeInternals<{
1328
+ logLevel?: "debug" | "error" | "info" | "verbose" | "warn" | undefined;
1329
+ server?: {
1330
+ port?: number | undefined;
1331
+ strictPort?: boolean | undefined;
1332
+ basePath?: string | undefined;
1333
+ publicUrl?: string | undefined;
1334
+ host?: string | undefined;
1335
+ gatewayAdapter?: "apollo" | "mercurius" | "stitching" | undefined;
1336
+ https?: boolean | {
1337
+ keyPath: string;
1338
+ certPath: string;
1339
+ } | undefined;
1340
+ dev?: boolean | undefined;
1341
+ } | undefined;
1342
+ storage?: {
1343
+ reactor?: {
1344
+ url?: string | undefined;
1345
+ } | undefined;
1346
+ readModel?: {
1347
+ url?: string | undefined;
1348
+ } | undefined;
1349
+ inMemory?: boolean | undefined;
1350
+ userDataDir?: string | undefined;
1351
+ pglite?: {
1352
+ fsync?: boolean | undefined;
1353
+ workers?: boolean | undefined;
1354
+ workerMemoryMb?: number | undefined;
1355
+ vacuumFull?: {
1356
+ mode?: "forced" | "off" | "quiet" | undefined;
1357
+ aboveMb?: number | undefined;
1358
+ quietMs?: number | undefined;
1359
+ maxDeferMs?: number | undefined;
1360
+ } | undefined;
1361
+ } | undefined;
1362
+ migratePglite?: boolean | undefined;
1363
+ forcePgVersion?: 16 | 17 | undefined;
1364
+ keyframes?: {
1365
+ default?: {
1366
+ interval?: number | undefined;
1367
+ keep?: number | null | undefined;
1368
+ } | undefined;
1369
+ types?: Record<string, {
1370
+ interval?: number | undefined;
1371
+ keep?: number | null | undefined;
1372
+ }> | undefined;
1373
+ } | undefined;
1374
+ } | undefined;
1375
+ protocol?: {
1376
+ featureFlags?: {
1377
+ documentDecisions?: boolean | undefined;
1378
+ authEnforcement?: boolean | undefined;
1379
+ authGroups?: boolean | undefined;
1380
+ authConditions?: boolean | undefined;
1381
+ undoV3?: boolean | undefined;
1382
+ } | undefined;
1383
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
1384
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
1385
+ legacyProcessorIds?: boolean | undefined;
1386
+ maxSkipThreshold?: number | undefined;
1387
+ catchUpPriority?: number | "dynamic" | undefined;
1388
+ processorTiming?: "basic" | "detailed" | "off" | undefined;
1389
+ processorTimingWindowMs?: number | undefined;
1390
+ processorSlowBatchMs?: number | undefined;
1391
+ processorTimingLogMs?: number | undefined;
1392
+ } | undefined;
1393
+ telemetry?: {
1394
+ memory?: {
1395
+ enabled?: boolean | undefined;
1396
+ intervalMs?: number | undefined;
1397
+ outputs?: ("console" | "file" | "memory")[] | undefined;
1398
+ file?: {
1399
+ path?: string | undefined;
1400
+ maxMb?: number | undefined;
1401
+ keep?: number | undefined;
1402
+ } | undefined;
1403
+ ringSize?: number | undefined;
1404
+ consoleIntervalMs?: number | undefined;
1405
+ workers?: boolean | undefined;
1406
+ windowMin?: number | undefined;
1407
+ } | undefined;
1408
+ dir?: string | undefined;
1409
+ heapSnapshotDir?: string | undefined;
1410
+ } | undefined;
1411
+ auth?: {
1412
+ enabled?: boolean | undefined;
1413
+ resolveIdentity?: boolean | undefined;
1414
+ requireAuthenticatedCaller?: boolean | undefined;
1415
+ requireAuthenticatedCallerExemptPaths?: string[] | undefined;
1416
+ admins?: string[] | undefined;
1417
+ defaultProtection?: boolean | undefined;
1418
+ attachmentReadsFollowDocumentPolicy?: boolean | undefined;
1419
+ documentPermissions?: {
1420
+ enabled?: boolean | undefined;
1421
+ cacheTtlMs?: number | undefined;
1422
+ } | undefined;
1423
+ skipCredentialVerification?: boolean | undefined;
1424
+ credentialCacheTtlMs?: number | undefined;
1425
+ wsRecheckMs?: number | undefined;
1426
+ ownerClaim?: boolean | undefined;
1427
+ offlineCredentials?: boolean | undefined;
1428
+ renown?: {
1429
+ source?: "kept" | "remote" | "self" | undefined;
1430
+ url?: string | undefined;
1431
+ switchboardUrl?: string | undefined;
1432
+ } | undefined;
1433
+ } | undefined;
1434
+ inspection?: {
1435
+ enabled?: boolean | undefined;
1436
+ admin?: boolean | undefined;
1437
+ callsPerMinute?: number | undefined;
1438
+ } | undefined;
1439
+ workers?: {
1440
+ executor?: {
1441
+ count?: number | "auto" | undefined;
1442
+ poolSize?: number | undefined;
1443
+ acquireTimeoutMs?: number | undefined;
1444
+ } | undefined;
1445
+ hostPoolSize?: number | undefined;
1446
+ projection?: {
1447
+ enabled?: boolean | undefined;
1448
+ poolSize?: number | undefined;
1449
+ } | undefined;
1450
+ } | undefined;
1451
+ packages?: {
1452
+ registryUrl?: string | undefined;
1453
+ registryPackages?: string[] | undefined;
1454
+ dynamic?: boolean | undefined;
1455
+ list?: string[] | undefined;
1456
+ disableLocal?: boolean | undefined;
1457
+ hostValidation?: "log" | "refuse" | undefined;
1458
+ } | undefined;
1459
+ features?: {
1460
+ mcp?: boolean | undefined;
1461
+ workflows?: boolean | undefined;
1462
+ documentModelSubgraphs?: boolean | undefined;
1463
+ pluginHost?: boolean | undefined;
1464
+ privacy?: {
1465
+ enabled?: boolean | undefined;
1466
+ deploymentSecret?: string | undefined;
1467
+ intervalMs?: number | undefined;
1468
+ deadlineMs?: number | undefined;
1469
+ markerGraceMs?: number | undefined;
1470
+ purgeTimeoutMs?: number | undefined;
1471
+ } | undefined;
1472
+ } | undefined;
1473
+ attachments?: {
1474
+ storage?: {
1475
+ kind: "filesystem";
1476
+ } | {
1477
+ kind: "s3";
1478
+ s3: {
1479
+ endpoint: string;
1480
+ region: string;
1481
+ bucket: string;
1482
+ accessKeyId: string;
1483
+ secretAccessKey: string;
1484
+ prefix: string;
1485
+ forcePathStyle: boolean;
1486
+ uploadTtlSeconds: number;
1487
+ downloadTtlSeconds: number;
1488
+ };
1489
+ } | undefined;
1490
+ urlSigningSecret?: string | undefined;
1491
+ downloadTargetMaxTtlSeconds?: number | undefined;
1492
+ serviceUrl?: string | undefined;
1493
+ } | undefined;
1494
+ identity?: {
1495
+ keypairPath?: string | undefined;
1496
+ requireExisting?: boolean | undefined;
1497
+ baseUrl?: string | undefined;
1498
+ } | undefined;
1499
+ drive?: {
1500
+ [x: string]: unknown;
1501
+ id?: string | undefined;
1502
+ slug?: string | undefined;
1503
+ documentType?: "powerhouse/document-drive" | "powerhouse/reactor-drive" | undefined;
1504
+ } | undefined;
1505
+ remoteDrives?: string[] | undefined;
1506
+ configFile?: string | undefined;
1507
+ processorConfig?: Map<string, unknown> | undefined;
1508
+ }, {
1509
+ logLevel?: "debug" | "error" | "info" | "verbose" | "warn" | undefined;
1510
+ server?: {
1511
+ port?: number | undefined;
1512
+ strictPort?: boolean | undefined;
1513
+ basePath?: string | undefined;
1514
+ publicUrl?: string | undefined;
1515
+ host?: string | undefined;
1516
+ gatewayAdapter?: "apollo" | "mercurius" | "stitching" | undefined;
1517
+ https?: boolean | {
1518
+ keyPath: string;
1519
+ certPath: string;
1520
+ } | undefined;
1521
+ dev?: boolean | undefined;
1522
+ } | undefined;
1523
+ storage?: {
1524
+ reactor?: {
1525
+ url?: string | undefined;
1526
+ } | undefined;
1527
+ readModel?: {
1528
+ url?: string | undefined;
1529
+ } | undefined;
1530
+ inMemory?: boolean | undefined;
1531
+ userDataDir?: string | undefined;
1532
+ pglite?: {
1533
+ fsync?: boolean | undefined;
1534
+ workers?: boolean | undefined;
1535
+ workerMemoryMb?: number | undefined;
1536
+ vacuumFull?: {
1537
+ mode?: "forced" | "off" | "quiet" | undefined;
1538
+ aboveMb?: number | undefined;
1539
+ quietMs?: number | undefined;
1540
+ maxDeferMs?: number | undefined;
1541
+ } | undefined;
1542
+ } | undefined;
1543
+ migratePglite?: boolean | undefined;
1544
+ forcePgVersion?: 16 | 17 | undefined;
1545
+ keyframes?: {
1546
+ default?: {
1547
+ interval?: number | undefined;
1548
+ keep?: number | null | undefined;
1549
+ } | undefined;
1550
+ types?: Record<string, {
1551
+ interval?: number | undefined;
1552
+ keep?: number | null | undefined;
1553
+ }> | undefined;
1554
+ } | undefined;
1555
+ } | undefined;
1556
+ protocol?: {
1557
+ featureFlags?: {
1558
+ documentDecisions?: boolean | undefined;
1559
+ authEnforcement?: boolean | undefined;
1560
+ authGroups?: boolean | undefined;
1561
+ authConditions?: boolean | undefined;
1562
+ undoV3?: boolean | undefined;
1563
+ } | undefined;
1564
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
1565
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
1566
+ legacyProcessorIds?: boolean | undefined;
1567
+ maxSkipThreshold?: number | undefined;
1568
+ catchUpPriority?: number | "dynamic" | undefined;
1569
+ processorTiming?: "basic" | "detailed" | "off" | undefined;
1570
+ processorTimingWindowMs?: number | undefined;
1571
+ processorSlowBatchMs?: number | undefined;
1572
+ processorTimingLogMs?: number | undefined;
1573
+ } | undefined;
1574
+ telemetry?: {
1575
+ memory?: {
1576
+ enabled?: boolean | undefined;
1577
+ intervalMs?: number | undefined;
1578
+ outputs?: ("console" | "file" | "memory")[] | undefined;
1579
+ file?: {
1580
+ path?: string | undefined;
1581
+ maxMb?: number | undefined;
1582
+ keep?: number | undefined;
1583
+ } | undefined;
1584
+ ringSize?: number | undefined;
1585
+ consoleIntervalMs?: number | undefined;
1586
+ workers?: boolean | undefined;
1587
+ windowMin?: number | undefined;
1588
+ } | undefined;
1589
+ dir?: string | undefined;
1590
+ heapSnapshotDir?: string | undefined;
1591
+ } | undefined;
1592
+ auth?: {
1593
+ enabled?: boolean | undefined;
1594
+ resolveIdentity?: boolean | undefined;
1595
+ requireAuthenticatedCaller?: boolean | undefined;
1596
+ requireAuthenticatedCallerExemptPaths?: string[] | undefined;
1597
+ admins?: string[] | undefined;
1598
+ defaultProtection?: boolean | undefined;
1599
+ attachmentReadsFollowDocumentPolicy?: boolean | undefined;
1600
+ documentPermissions?: {
1601
+ enabled?: boolean | undefined;
1602
+ cacheTtlMs?: number | undefined;
1603
+ } | undefined;
1604
+ skipCredentialVerification?: boolean | undefined;
1605
+ credentialCacheTtlMs?: number | undefined;
1606
+ wsRecheckMs?: number | undefined;
1607
+ ownerClaim?: boolean | undefined;
1608
+ offlineCredentials?: boolean | undefined;
1609
+ renown?: {
1610
+ source?: "kept" | "remote" | "self" | undefined;
1611
+ url?: string | undefined;
1612
+ switchboardUrl?: string | undefined;
1613
+ } | undefined;
1614
+ } | undefined;
1615
+ inspection?: {
1616
+ enabled?: boolean | undefined;
1617
+ admin?: boolean | undefined;
1618
+ callsPerMinute?: number | undefined;
1619
+ } | undefined;
1620
+ workers?: {
1621
+ executor?: {
1622
+ count?: number | "auto" | undefined;
1623
+ poolSize?: number | undefined;
1624
+ acquireTimeoutMs?: number | undefined;
1625
+ } | undefined;
1626
+ hostPoolSize?: number | undefined;
1627
+ projection?: {
1628
+ enabled?: boolean | undefined;
1629
+ poolSize?: number | undefined;
1630
+ } | undefined;
1631
+ } | undefined;
1632
+ packages?: {
1633
+ registryUrl?: string | undefined;
1634
+ registryPackages?: string[] | undefined;
1635
+ dynamic?: boolean | undefined;
1636
+ list?: string[] | undefined;
1637
+ disableLocal?: boolean | undefined;
1638
+ hostValidation?: "log" | "refuse" | undefined;
1639
+ } | undefined;
1640
+ features?: {
1641
+ mcp?: boolean | undefined;
1642
+ workflows?: boolean | undefined;
1643
+ documentModelSubgraphs?: boolean | undefined;
1644
+ pluginHost?: boolean | undefined;
1645
+ privacy?: {
1646
+ enabled?: boolean | undefined;
1647
+ deploymentSecret?: string | undefined;
1648
+ intervalMs?: number | undefined;
1649
+ deadlineMs?: number | undefined;
1650
+ markerGraceMs?: number | undefined;
1651
+ purgeTimeoutMs?: number | undefined;
1652
+ } | undefined;
1653
+ } | undefined;
1654
+ attachments?: {
1655
+ storage?: {
1656
+ kind: "filesystem";
1657
+ } | {
1658
+ kind: "s3";
1659
+ s3: {
1660
+ endpoint: string;
1661
+ region: string;
1662
+ bucket: string;
1663
+ accessKeyId: string;
1664
+ secretAccessKey: string;
1665
+ prefix: string;
1666
+ forcePathStyle: boolean;
1667
+ uploadTtlSeconds: number;
1668
+ downloadTtlSeconds: number;
1669
+ };
1670
+ } | undefined;
1671
+ urlSigningSecret?: string | undefined;
1672
+ downloadTargetMaxTtlSeconds?: number | undefined;
1673
+ serviceUrl?: string | undefined;
1674
+ } | undefined;
1675
+ identity?: {
1676
+ keypairPath?: string | undefined;
1677
+ requireExisting?: boolean | undefined;
1678
+ baseUrl?: string | undefined;
1679
+ } | undefined;
1680
+ drive?: {
1681
+ [x: string]: unknown;
1682
+ id?: string | undefined;
1683
+ slug?: string | undefined;
1684
+ documentType?: "powerhouse/document-drive" | "powerhouse/reactor-drive" | undefined;
1685
+ } | undefined;
1686
+ remoteDrives?: string[] | undefined;
1687
+ configFile?: string | undefined;
1688
+ processorConfig?: Map<string, unknown> | undefined;
1689
+ }>>>;
1690
+ }, z.core.$strict>>;
1691
+ }, z.core.$strict>;
1692
+ /** What a switchboard host.js author writes. */
1693
+ export type SwitchboardHost = z.input<typeof declaredHostSchema>;
1694
+ /** What a verb receives (defaults applied). */
1695
+ export type SwitchboardHostParsed = z.output<typeof hostSchema>;
1696
+ /** One drive the switchboard serves: its document id and its URL. */
1697
+ export declare const switchboardDriveOutputSchema: z.ZodObject<{
1698
+ id: z.ZodString;
1699
+ url: z.ZodURL;
1700
+ }, z.core.$strict>;
1701
+ /** What a started switchboard produces. `origin` carries the port the server
1702
+ * actually bound. `drives` is keyed by the DECLARED slug (a `projectHash:
1703
+ * true` drive is reachable as `vetra`, its URL uses the hashed slug it is
1704
+ * served under) and includes plugin-created drives (e.g. `workflows`) and
1705
+ * the server's implicit default drive. `endpoints.mcp` is present when MCP
1706
+ * is mounted. */
1707
+ export declare const outputsSchema: z.ZodObject<{
1708
+ origin: z.ZodURL;
1709
+ endpoints: z.ZodObject<{
1710
+ graphql: z.ZodURL;
1711
+ mcp: z.ZodOptional<z.ZodURL>;
1712
+ }, z.core.$strict>;
1713
+ drives: z.ZodRecord<z.ZodString, z.ZodObject<{
1714
+ id: z.ZodString;
1715
+ url: z.ZodURL;
1716
+ }, z.core.$strict>>;
1717
+ }, z.core.$strict>;
1718
+ export type SwitchboardOutputs = z.infer<typeof outputsSchema>;
1719
+ declare global {
1720
+ interface PHHostRunners {
1721
+ "@powerhousedao/ph-cli/runners/switchboard": {
1722
+ host: SwitchboardHost;
1723
+ outputs: SwitchboardOutputs;
1724
+ };
1725
+ }
1726
+ }
1727
+ /** The classic arg shape with the one switch a composition may leave unset. */
1728
+ export type SwitchboardRunnerArgs = Omit<SwitchboardArgs, "mcp"> & {
1729
+ mcp: boolean | undefined;
1730
+ };
1731
+ /** Poll the default drive endpoint until the server answers — the compound's
1732
+ * readiness gate: Connect auto-connects the drive on first load, so the drive
1733
+ * must answer before the connect member serves (the sidecar's
1734
+ * waitForSwitchboard, moved behind the handle contract).
1735
+ *
1736
+ * The probe is anonymous, and a host with authentication on hides a drive
1737
+ * from a caller it refuses (`/d/:drive` answers 404 to anyone who may not
1738
+ * read it, 401 under the authenticated-caller floor). Those answers prove
1739
+ * the server is listening but not whether the drive exists, so `served`,
1740
+ * the reactor's own view of the drive, decides then; without it an
1741
+ * ADMIN_ONLY host never passes this gate and the compound tears down after
1742
+ * the timeout. */
1743
+ export declare function waitForDrive(url: string, timeoutMs: number, served?: () => Promise<boolean>, fetchImpl?: typeof fetch): Promise<void>;
1744
+ /** What a started switchboard returns. */
1745
+ export type SwitchboardHandle = RunnerHandle<SwitchboardOutputs>;
1746
+ export declare function run(host: SwitchboardHostParsed, ctx: RunnerContext): Promise<SwitchboardHandle>;
1747
+ export declare const serve: typeof run;
1748
+ export declare const verbs: string[];
1749
+ export declare function dev(host: SwitchboardHostParsed, ctx: RunnerContext): Promise<SwitchboardHandle>;
1750
+ /** What the server would refuse at boot for this host, `ctx.verb` and `ctx.env` (`ph host check`). */
1751
+ export declare function checkBoot(host: SwitchboardHostParsed, ctx: BootCheckContext): Promise<BootIssue[]>;
1752
+ //#endregion
1753
+ export {};
1754
+ //# sourceMappingURL=switchboard.d.mts.map