@powerhousedao/shared 6.2.3-dev.70 → 6.2.3-dev.72

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 (80) hide show
  1. package/dist/clis/args/common-BXabdhiO.mjs.map +1 -1
  2. package/dist/clis/args/{connect-BG3HkYBk.mjs → connect-Bad05YS-.mjs} +3 -3
  3. package/dist/clis/args/connect-Bad05YS-.mjs.map +1 -0
  4. package/dist/clis/args/connect.mjs +1 -1
  5. package/dist/clis/args/{help-BfAqpYvC.mjs → help-Di8n5ZnJ.mjs} +3 -3
  6. package/dist/clis/args/{help-BfAqpYvC.mjs.map → help-Di8n5ZnJ.mjs.map} +1 -1
  7. package/dist/clis/args/help.mjs +1 -1
  8. package/dist/clis/args/index.d.mts +1 -1
  9. package/dist/clis/args/index.mjs +2 -2
  10. package/dist/clis/args/{run-CYp5t1xU.mjs → run-l_LiMplO.mjs} +2 -2
  11. package/dist/clis/args/{run-CYp5t1xU.mjs.map → run-l_LiMplO.mjs.map} +1 -1
  12. package/dist/clis/args/run.mjs +1 -1
  13. package/dist/clis/args/{service-CHjY5epu.d.mts → service-DiTFThbn.d.mts} +2 -2
  14. package/dist/clis/args/service-DiTFThbn.d.mts.map +1 -0
  15. package/dist/clis/args/service.d.mts +1 -1
  16. package/dist/clis/{build-config-DwRi23zQ.mjs → build-config-tJhHVdPm.mjs} +17 -2
  17. package/dist/clis/{build-config-DwRi23zQ.mjs.map → build-config-tJhHVdPm.mjs.map} +1 -1
  18. package/dist/clis/build-config.d.mts +1 -0
  19. package/dist/clis/build-config.d.mts.map +1 -1
  20. package/dist/clis/build-config.mjs +2 -2
  21. package/dist/clis/build-pieces.d.mts +1 -1
  22. package/dist/clis/build-pieces.mjs +1 -1
  23. package/dist/clis/constants.d.mts +1 -1
  24. package/dist/clis/constants.mjs +6 -1
  25. package/dist/clis/constants.mjs.map +1 -1
  26. package/dist/clis/index.d.mts +2063 -889
  27. package/dist/clis/index.d.mts.map +1 -1
  28. package/dist/clis/index.mjs +436 -586
  29. package/dist/clis/index.mjs.map +1 -1
  30. package/dist/clis/rolldown-runtime-B4iAMlE-.mjs +35 -0
  31. package/dist/clis/types-BNdhWTBs.d.mts +2321 -0
  32. package/dist/clis/types-BNdhWTBs.d.mts.map +1 -0
  33. package/dist/{config-loader-DBJolZd0.js → config-loader-BWt0c0eU.js} +6 -3
  34. package/dist/config-loader-BWt0c0eU.js.map +1 -0
  35. package/dist/connect/config-loader.d.ts +1 -1
  36. package/dist/connect/config-loader.js +1 -1
  37. package/dist/connect/connect-config-schema.d.ts +3 -0
  38. package/dist/connect/connect-config-schema.js +445 -0
  39. package/dist/connect/connect-config-schema.js.map +1 -0
  40. package/dist/connect/image-ref.d.ts +32 -0
  41. package/dist/connect/image-ref.d.ts.map +1 -0
  42. package/dist/connect/image-ref.js +80 -0
  43. package/dist/connect/image-ref.js.map +1 -0
  44. package/dist/connect/index.d.ts +60 -641
  45. package/dist/connect/index.d.ts.map +1 -1
  46. package/dist/connect/index.js +175 -560
  47. package/dist/connect/index.js.map +1 -1
  48. package/dist/connect-config-schema-1-O1CQ4v.d.ts +1731 -0
  49. package/dist/connect-config-schema-1-O1CQ4v.d.ts.map +1 -0
  50. package/dist/document-drive/index.d.ts +3 -3
  51. package/dist/document-drive/index.js +1 -12
  52. package/dist/document-drive/index.js.map +1 -1
  53. package/dist/document-model/errors.d.ts +1 -1
  54. package/dist/document-model/index.d.ts +1 -1
  55. package/dist/document-model/index.js.map +1 -1
  56. package/dist/host-tokens/index.d.ts +3 -0
  57. package/dist/host-tokens/index.js +278 -0
  58. package/dist/host-tokens/index.js.map +1 -0
  59. package/dist/index-DIM6qtzj.d.ts +227 -0
  60. package/dist/index-DIM6qtzj.d.ts.map +1 -0
  61. package/dist/{index-DeEVCeve.d.ts → index-DvbhwImT.d.ts} +2 -2
  62. package/dist/{index-DeEVCeve.d.ts.map → index-DvbhwImT.d.ts.map} +1 -1
  63. package/dist/index.d.ts +4 -4
  64. package/dist/processors/index.d.ts +1 -1
  65. package/dist/registry/index.d.ts +2 -2
  66. package/dist/registry/index.js +1 -1
  67. package/dist/registry/index.js.map +1 -1
  68. package/dist/registry/manifest-slim.d.ts +2 -2
  69. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  70. package/dist/{types-PM0i4vns.d.ts → types-BpO4LIKj.d.ts} +180 -255
  71. package/dist/types-BpO4LIKj.d.ts.map +1 -0
  72. package/dist/{types-f_wMStgZ.d.ts → types-OXIqeH8W.d.ts} +2 -2
  73. package/dist/{types-f_wMStgZ.d.ts.map → types-OXIqeH8W.d.ts.map} +1 -1
  74. package/package.json +5 -1
  75. package/dist/clis/args/connect-BG3HkYBk.mjs.map +0 -1
  76. package/dist/clis/args/service-CHjY5epu.d.mts.map +0 -1
  77. package/dist/clis/types-BxOUzRvH.d.mts +0 -588
  78. package/dist/clis/types-BxOUzRvH.d.mts.map +0 -1
  79. package/dist/config-loader-DBJolZd0.js.map +0 -1
  80. package/dist/types-PM0i4vns.d.ts.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { Dirent } from "node:fs";
2
2
  import "kysely";
3
+ import { z } from "zod";
3
4
  import { Agent } from "package-manager-detector";
4
5
  import { ArgParser } from "cmd-ts/dist/cjs/argparser.js";
5
6
  import "mutative";
6
- import { z } from "zod";
7
7
  import "luxon";
8
8
  //#region clis/args/access-token.d.ts
9
9
  export declare const accessTokenArgs: {
@@ -1115,6 +1115,1877 @@ export declare const registryLoginArgs: {
1115
1115
  } & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
1116
1116
  };
1117
1117
  //#endregion
1118
+ //#region host-tokens/index.d.ts
1119
+ /**
1120
+ * Output tokens (typed-host-configs G3): plain-JSON operators a host file
1121
+ * uses to consume values another host's creation produces. An object whose
1122
+ * SOLE key is one of TOKEN_KEYS is an operator; `$$` escapes a literal
1123
+ * `$`-prefixed sole key. Host-core fields accept them through `tokenable()`
1124
+ * (declared form); host-core's `resolveHostOutputs` replaces them before a
1125
+ * verb runs, and `validateHost` rejects any that remain.
1126
+ *
1127
+ * `@powerhousedao/shared/host-tokens`: zod only, no `node:` import (a test
1128
+ * walks the import graph), so Connect's config schema (../connect/) can
1129
+ * declare token-able fields; `@powerhousedao/host-core` re-exports all of it.
1130
+ */
1131
+ type OutputPath = (string | number)[];
1132
+ /** `{ $output: { host, member?, path } }` — the value at `path` in that
1133
+ * host's outputs. `T` is a phantom brand for generated `outputs.d.ts`. */
1134
+ interface OutputToken<T = unknown> {
1135
+ $output: {
1136
+ host: string;
1137
+ member?: string;
1138
+ path: OutputPath;
1139
+ };
1140
+ readonly "~value"?: T;
1141
+ }
1142
+ /** `{ $concat: [...] }` — a string; every part resolves to string|number. */
1143
+ interface ConcatToken {
1144
+ $concat: (string | number | Token)[];
1145
+ }
1146
+ /** `$item` inside a `$map` template: the current element (innermost map, or
1147
+ * the named outer binding). */
1148
+ interface ItemToken<T = unknown> {
1149
+ $item: OutputPath | {
1150
+ as: string;
1151
+ path: OutputPath;
1152
+ };
1153
+ readonly "~value"?: T;
1154
+ }
1155
+ /** `$key` inside a `$map` template: the current key (`true` = innermost). */
1156
+ interface KeyToken {
1157
+ $key: true | string;
1158
+ }
1159
+ /** `{ $map: { over, as?, to, into? } }`: `to` rendered once per element of
1160
+ * `over` (arrays in order, records key-sorted); an array, or a record
1161
+ * keeping the input keys with `into: "record"` (3.3). */
1162
+ interface MapToken<To = unknown> {
1163
+ $map: {
1164
+ over: OutputToken | ItemToken;
1165
+ as?: string;
1166
+ to: To;
1167
+ into?: "record";
1168
+ };
1169
+ }
1170
+ /** `{ $env: "NAME" }` or `{ $env: { name, optional: true } }`. */
1171
+ interface EnvToken {
1172
+ $env: string | {
1173
+ name: string;
1174
+ optional: true;
1175
+ };
1176
+ }
1177
+ type Token = OutputToken | ConcatToken | MapToken | ItemToken | KeyToken | EnvToken;
1178
+ /** A value with the (untyped) tokens of its own union removed: what a
1179
+ * token in that position must produce. */
1180
+ type Untokened<T> = Exclude<T, Token>;
1181
+ /** What `{ $key: true }` reads inside a `$map` template: the innermost
1182
+ * map's key, a number over an array and a string over a record. */
1183
+ type MapKey = string | number;
1184
+ /** A branded array `over` (an `ItemToken<X[]>` from outputs.d.ts). */
1185
+ type ArrayOver = OutputToken<readonly unknown[]> | ItemToken<readonly unknown[]>;
1186
+ /** A branded record `over`. An array does not fit it (no string index). */
1187
+ type RecordOver = OutputToken<Readonly<Record<string, unknown>>> | ItemToken<Readonly<Record<string, unknown>>>;
1188
+ /**
1189
+ * `$map` producing an array of `E` (no `into`). `$key: true` in `to` reads
1190
+ * a number over an array and a string over a record, so its slot is typed
1191
+ * by the `over`: a branded array `over` keeps `$key` out of string slots.
1192
+ * A hand-written `$output` literal carries no brand and fits both forms;
1193
+ * there, a misplaced `$key` fails at resolved validation instead.
1194
+ */
1195
+ type ArrayMapToken<E> = {
1196
+ $map: {
1197
+ over: ArrayOver;
1198
+ as?: string;
1199
+ to: Template<E, number>;
1200
+ into?: never;
1201
+ };
1202
+ } | {
1203
+ $map: {
1204
+ over: RecordOver;
1205
+ as?: string;
1206
+ to: Template<E, string>;
1207
+ into?: never;
1208
+ };
1209
+ };
1210
+ /** `$map` producing a record of `V` (`into: "record"`, record `over`). */
1211
+ interface RecordMapToken<V> {
1212
+ $map: {
1213
+ over: RecordOver;
1214
+ as?: string;
1215
+ to: Template<V, string>;
1216
+ into: "record";
1217
+ };
1218
+ }
1219
+ type MapTokenFor<T> = T extends readonly unknown[] ? ArrayMapToken<T[number]> : T extends object ? string extends keyof T ? RecordMapToken<T[string & keyof T]> : never : never;
1220
+ /** `true` when some member of `K` fits `T` (else `never`). */
1221
+ type SomeFits<K, T> = K extends T ? true : never;
1222
+ /** The `$key` tokens that fit `T`: `{ $key: true }` (the innermost map's
1223
+ * key, typed `K`) and `{ $key: "<as>" }` (a named outer map's key, whose
1224
+ * type is not tracked: a string or a number). */
1225
+ type KeyTokenFor<T, K extends MapKey> = ([SomeFits<K, T>] extends [never] ? never : {
1226
+ $key: true;
1227
+ }) | ([SomeFits<MapKey, T>] extends [never] ? never : {
1228
+ $key: string;
1229
+ });
1230
+ /**
1231
+ * The tokens that may stand where a value of type `T` is expected:
1232
+ * `$output`/`$item` whose (branded) value fits `T` (a hand-written literal
1233
+ * carries no brand and fits anywhere; the loader checks its path),
1234
+ * `$concat`/`$env` where a string fits, `$key` where the key fits (`K`: the
1235
+ * innermost `$map`'s key type inside a template), and `$map` where `T` is
1236
+ * an array (or, `into: "record"`, a record).
1237
+ */
1238
+ type TokenFor<T, K extends MapKey = MapKey> = unknown extends T ? Token : OutputToken<T> | ItemToken<T> | (string extends T ? ConcatToken | EnvToken : never) | KeyTokenFor<T, K> | MapTokenFor<T>;
1239
+ /**
1240
+ * A `$map` template for an element of type `T`: `T`'s shape with a fitting
1241
+ * token allowed at EVERY position (the rendered element is validated
1242
+ * against the field's schema after resolution, so non-ref fields such as a
1243
+ * drive `slug` may take `$key`/`$item` here). `K` is the type `$key: true`
1244
+ * reads (see {@link ArrayMapToken}).
1245
+ */
1246
+ type Template<T, K extends MapKey = MapKey> = TokenFor<Untokened<T>, K> | TemplateShape<Untokened<T>, K>;
1247
+ type TemplateShape<T, K extends MapKey> = T extends readonly unknown[] ? Template<T[number], K>[] : T extends object ? { [P in keyof T]: TemplateSlot<T[P], K>; } : T;
1248
+ /** One property of a template. Its tokens may produce `undefined` where
1249
+ * the property is optional (a codegen'd `ItemToken<X | undefined>`: the
1250
+ * rendered property is then left out), but the property is never written
1251
+ * as a literal `undefined`: a host file is JSON, so an optional property is
1252
+ * omitted instead (enforced by the type under exactOptionalPropertyTypes,
1253
+ * which generated hosts/tsconfig.json enables). */
1254
+ type TemplateSlot<V, K extends MapKey> = TokenFor<Untokened<V>, K> | TemplateShape<Exclude<Untokened<V>, undefined>, K>;
1255
+ /** A token-able host field as runners see it: authors may write `T | Token`
1256
+ * (z.input), verbs receive `T` (z.output). */
1257
+ type TokenableSchema<S extends z.ZodType, K = TokenFor<Untokened<z.input<S>>>> = z.ZodType<z.output<S>, z.input<S> | K>;
1258
+ /** A schema set's wrapper for its token-able fields: `tokenable` in the
1259
+ * declared form, a plain one-option union in the resolved form (host-core's
1260
+ * `s.tokenable`). Both share this static type: declared input, resolved
1261
+ * output. */
1262
+ type TokenField = <S extends z.ZodType>(schema: S) => TokenableSchema<S>;
1263
+ declare namespace connect_config_schema_d_exports {
1264
+ export { ConnectConfig, ConnectConfigInput, ConnectRuntimeConfig, DeclaredConnectConfigInput, connectAiSchema, connectAppSchema, connectBackgroundLayerSchema, connectBackgroundLayersSchema, connectBackgroundSchema, connectBrandingSchema, connectCompositionEntrySchema, connectConfigSchema, connectConfigSchemaWith, connectDefaultDriveLocalSchema, connectDefaultDriveRemoteSchema, connectDefaultDriveSchema, connectDrivePreserveStrategySchema, connectDriveSectionSchema, connectDriveSectionsSchema, connectDrivesSchema, connectEdgesSchema, connectExplorerIconsSchema, connectHomeSchema, connectImageRefSchema, connectInstanceSchema, connectLengthSchema, connectLoaderSchema, connectOpenPanelSchema, connectPackagesSchema, connectPwaCacheStrategySchema, connectPwaFileHandlerSchema, connectPwaIconSchema, connectPwaManifestSchema, connectPwaRuntimeCachingSchema, connectPwaSchema, connectPwaUrlPatternSchema, connectReactorClientModeSchema, connectReactorFeatureFlagsSchema, connectReactorSchema, connectRenownAdaptersSchema, connectRenownPrivyAdapterSchema, connectRenownRainbowAdapterSchema, connectRenownSchema, connectRuntimeConfigSchema, connectRuntimeInstanceSchema, connectRuntimePwaManifestSchema, connectRuntimePwaSchema, connectSchemedColorSchema, connectSchemedImageSchema, connectSentrySchema, declaredConnectConfigSchema };
1265
+ }
1266
+ /** An image reference: a project-relative file path (the Connect build turns
1267
+ * it into a data URI or an emitted file), a URL, or a data URI. */
1268
+ declare const connectImageRefSchema: z.ZodString;
1269
+ /** An image per colour scheme: one reference for both, or `{ light, dark }`
1270
+ * (`dark` falls back to `light`). */
1271
+ declare const connectSchemedImageSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1272
+ light: z.ZodString;
1273
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1274
+ }, z.core.$strict>]>;
1275
+ /** A CSS colour per colour scheme (`dark` falls back to `light`). */
1276
+ declare const connectSchemedColorSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1277
+ light: z.ZodString;
1278
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1279
+ }, z.core.$strict>]>;
1280
+ /** A CSS length: a number is px, a string is passed through as written. */
1281
+ declare const connectLengthSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1282
+ /** Distances to the four edges; each is optional. */
1283
+ declare const connectEdgesSchema: z.ZodObject<{
1284
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1285
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1286
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1287
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1288
+ }, z.core.$strict>;
1289
+ /** One image of a decorated pane, absolutely positioned inside it. */
1290
+ declare const connectBackgroundLayerSchema: z.ZodObject<{
1291
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1292
+ light: z.ZodString;
1293
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1294
+ }, z.core.$strict>]>;
1295
+ position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1296
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1297
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1298
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1299
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1300
+ }, z.core.$strict>>>;
1301
+ width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1302
+ height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1303
+ minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1304
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1305
+ maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1306
+ maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1307
+ opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1308
+ fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1309
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1310
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1311
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1312
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1313
+ }, z.core.$strict>>>;
1314
+ }, z.core.$strict>;
1315
+ /** A decorated pane: the page colour and the images laid over it. */
1316
+ declare const connectBackgroundLayersSchema: z.ZodObject<{
1317
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1318
+ light: z.ZodString;
1319
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1320
+ }, z.core.$strict>]>>>;
1321
+ layers: z.ZodArray<z.ZodObject<{
1322
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1323
+ light: z.ZodString;
1324
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1325
+ }, z.core.$strict>]>;
1326
+ position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1327
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1328
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1329
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1330
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1331
+ }, z.core.$strict>>>;
1332
+ width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1333
+ height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1334
+ minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1335
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1336
+ maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1337
+ maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1338
+ opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1339
+ fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1340
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1341
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1342
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1343
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1344
+ }, z.core.$strict>>>;
1345
+ }, z.core.$strict>>;
1346
+ }, z.core.$strict>;
1347
+ /** A pane's background: layers over a page colour, or one image as
1348
+ * shorthand for a single layer pinned bottom-right. */
1349
+ declare const connectBackgroundSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1350
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1351
+ light: z.ZodString;
1352
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1353
+ }, z.core.$strict>]>>>;
1354
+ layers: z.ZodArray<z.ZodObject<{
1355
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1356
+ light: z.ZodString;
1357
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
+ }, z.core.$strict>]>;
1359
+ position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1360
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1361
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1362
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1363
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1364
+ }, z.core.$strict>>>;
1365
+ width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1366
+ height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1367
+ minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1368
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1369
+ maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1370
+ maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1371
+ opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1372
+ fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1373
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1374
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1375
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1376
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1377
+ }, z.core.$strict>>>;
1378
+ }, z.core.$strict>>;
1379
+ }, z.core.$strict>]>;
1380
+ /** The loading image and the motion applied to it. */
1381
+ declare const connectLoaderSchema: z.ZodObject<{
1382
+ src: z.ZodString;
1383
+ animation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1384
+ none: "none";
1385
+ pulse: "pulse";
1386
+ spin: "spin";
1387
+ }>>>;
1388
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1389
+ }, z.core.$strict>;
1390
+ /** `connect.branding`: Connect's identity and look. */
1391
+ declare const connectBrandingSchema: z.ZodObject<{
1392
+ appName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1393
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1394
+ favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1395
+ loader: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1396
+ src: z.ZodString;
1397
+ animation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1398
+ none: "none";
1399
+ pulse: "pulse";
1400
+ spin: "spin";
1401
+ }>>>;
1402
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1403
+ }, z.core.$strict>]>>>;
1404
+ }, z.core.$strict>;
1405
+ /** `connect.home`: the home screen (the generic chrome's landing page). */
1406
+ declare const connectHomeSchema: z.ZodObject<{
1407
+ background: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1408
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1409
+ light: z.ZodString;
1410
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1411
+ }, z.core.$strict>]>>>;
1412
+ layers: z.ZodArray<z.ZodObject<{
1413
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1414
+ light: z.ZodString;
1415
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1416
+ }, z.core.$strict>]>;
1417
+ position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1418
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1419
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1420
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1421
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1422
+ }, z.core.$strict>>>;
1423
+ width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1424
+ height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1425
+ minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1426
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1427
+ maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1428
+ maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1429
+ opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1430
+ fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1431
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1432
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1433
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1434
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1435
+ }, z.core.$strict>>>;
1436
+ }, z.core.$strict>>;
1437
+ }, z.core.$strict>]>>>;
1438
+ }, z.core.$strict>;
1439
+ declare const connectAppSchema: z.ZodObject<{
1440
+ logLevel: z.ZodOptional<z.ZodEnum<{
1441
+ debug: "debug";
1442
+ error: "error";
1443
+ info: "info";
1444
+ warn: "warn";
1445
+ }>>;
1446
+ basePath: z.ZodOptional<z.ZodString>;
1447
+ offline: z.ZodOptional<z.ZodBoolean>;
1448
+ studioMode: z.ZodOptional<z.ZodBoolean>;
1449
+ workflowsEnabled: z.ZodOptional<z.ZodBoolean>;
1450
+ }, z.core.$strict>;
1451
+ declare const connectAiSchema: z.ZodObject<{
1452
+ assistantEnabled: z.ZodOptional<z.ZodBoolean>;
1453
+ }, z.core.$strict>;
1454
+ declare const connectPackagesSchema: z.ZodObject<{
1455
+ externalEnabled: z.ZodOptional<z.ZodBoolean>;
1456
+ liveReload: z.ZodOptional<z.ZodBoolean>;
1457
+ }, z.core.$strict>;
1458
+ /** The drive explorer's icons: the generic chrome's, owned by the generic
1459
+ * plugin. Each `null` keeps the built-in icon. */
1460
+ declare const connectExplorerIconsSchema: z.ZodObject<{
1461
+ localDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1462
+ remoteDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1463
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1464
+ document: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
+ documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1466
+ }, z.core.$strict>;
1467
+ declare const connectDefaultDriveRemoteSchema: z.ZodObject<{
1468
+ url: z.ZodString;
1469
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1470
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1471
+ }, z.core.$strict>;
1472
+ declare const connectDefaultDriveLocalSchema: z.ZodObject<{
1473
+ local: z.ZodLiteral<true>;
1474
+ id: z.ZodString;
1475
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1476
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1477
+ app: z.ZodOptional<z.ZodString>;
1478
+ }, z.core.$strict>;
1479
+ declare const connectDefaultDriveSchema: z.ZodUnion<readonly [z.ZodObject<{
1480
+ url: z.ZodString;
1481
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1482
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1483
+ }, z.core.$strict>, z.ZodObject<{
1484
+ local: z.ZodLiteral<true>;
1485
+ id: z.ZodString;
1486
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1487
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ app: z.ZodOptional<z.ZodString>;
1489
+ }, z.core.$strict>]>;
1490
+ /** `connect.drives.sections.{remote,local}`: three affirmative toggles. */
1491
+ declare const connectDriveSectionSchema: z.ZodObject<{
1492
+ enabled: z.ZodOptional<z.ZodBoolean>;
1493
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
1494
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
1495
+ }, z.core.$strict>;
1496
+ declare const connectDriveSectionsSchema: z.ZodObject<{
1497
+ remote: z.ZodOptional<z.ZodObject<{
1498
+ enabled: z.ZodOptional<z.ZodBoolean>;
1499
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
1500
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
1501
+ }, z.core.$strict>>;
1502
+ local: z.ZodOptional<z.ZodObject<{
1503
+ enabled: z.ZodOptional<z.ZodBoolean>;
1504
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
1505
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
1506
+ }, z.core.$strict>>;
1507
+ }, z.core.$strict>;
1508
+ /** Mirrors DRIVES_PRESERVE_STRATEGIES (../clis/constants.ts, which imports
1509
+ * node: modules, so it is not imported here); a test pins the two. */
1510
+ declare const connectDrivePreserveStrategySchema: z.ZodEnum<{
1511
+ "preserve-all": "preserve-all";
1512
+ "preserve-by-url-and-detach": "preserve-by-url-and-detach";
1513
+ }>;
1514
+ declare const connectDrivesSchema: z.ZodObject<{
1515
+ allowAddDrive: z.ZodOptional<z.ZodBoolean>;
1516
+ defaultDrives: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1517
+ url: z.ZodString;
1518
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1519
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1520
+ }, z.core.$strict>, z.ZodObject<{
1521
+ local: z.ZodLiteral<true>;
1522
+ id: z.ZodString;
1523
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1524
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1525
+ app: z.ZodOptional<z.ZodString>;
1526
+ }, z.core.$strict>]>>>;
1527
+ preserveStrategy: z.ZodOptional<z.ZodEnum<{
1528
+ "preserve-all": "preserve-all";
1529
+ "preserve-by-url-and-detach": "preserve-by-url-and-detach";
1530
+ }>>;
1531
+ sections: z.ZodOptional<z.ZodObject<{
1532
+ remote: z.ZodOptional<z.ZodObject<{
1533
+ enabled: z.ZodOptional<z.ZodBoolean>;
1534
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
1535
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
1536
+ }, z.core.$strict>>;
1537
+ local: z.ZodOptional<z.ZodObject<{
1538
+ enabled: z.ZodOptional<z.ZodBoolean>;
1539
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
1540
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
1541
+ }, z.core.$strict>>;
1542
+ }, z.core.$strict>>;
1543
+ icons: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1544
+ localDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1545
+ remoteDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1546
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1547
+ document: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1548
+ documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1549
+ }, z.core.$strict>>>;
1550
+ }, z.core.$strict>;
1551
+ declare const connectRenownRainbowAdapterSchema: z.ZodObject<{
1552
+ walletConnectProjectId: z.ZodOptional<z.ZodString>;
1553
+ infuraProjectId: z.ZodOptional<z.ZodString>;
1554
+ }, z.core.$strict>;
1555
+ declare const connectRenownPrivyAdapterSchema: z.ZodObject<{
1556
+ appId: z.ZodOptional<z.ZodString>;
1557
+ clientId: z.ZodOptional<z.ZodString>;
1558
+ methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
1559
+ }, z.core.$strict>;
1560
+ declare const connectRenownAdaptersSchema: z.ZodObject<{
1561
+ rainbow: z.ZodOptional<z.ZodObject<{
1562
+ walletConnectProjectId: z.ZodOptional<z.ZodString>;
1563
+ infuraProjectId: z.ZodOptional<z.ZodString>;
1564
+ }, z.core.$strict>>;
1565
+ privy: z.ZodOptional<z.ZodObject<{
1566
+ appId: z.ZodOptional<z.ZodString>;
1567
+ clientId: z.ZodOptional<z.ZodString>;
1568
+ methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
1569
+ }, z.core.$strict>>;
1570
+ }, z.core.$strict>;
1571
+ declare const connectRenownSchema: z.ZodObject<{
1572
+ url: z.ZodOptional<z.ZodString>;
1573
+ networkId: z.ZodOptional<z.ZodString>;
1574
+ chainId: z.ZodOptional<z.ZodNumber>;
1575
+ namespace: z.ZodOptional<z.ZodString>;
1576
+ switchboardUrl: z.ZodOptional<z.ZodString>;
1577
+ adapters: z.ZodOptional<z.ZodObject<{
1578
+ rainbow: z.ZodOptional<z.ZodObject<{
1579
+ walletConnectProjectId: z.ZodOptional<z.ZodString>;
1580
+ infuraProjectId: z.ZodOptional<z.ZodString>;
1581
+ }, z.core.$strict>>;
1582
+ privy: z.ZodOptional<z.ZodObject<{
1583
+ appId: z.ZodOptional<z.ZodString>;
1584
+ clientId: z.ZodOptional<z.ZodString>;
1585
+ methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
1586
+ }, z.core.$strict>>;
1587
+ }, z.core.$strict>>;
1588
+ }, z.core.$strict>;
1589
+ declare const connectSentrySchema: z.ZodObject<{
1590
+ dsn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1591
+ env: z.ZodOptional<z.ZodString>;
1592
+ tracing: z.ZodOptional<z.ZodBoolean>;
1593
+ }, z.core.$strict>;
1594
+ declare const connectOpenPanelSchema: z.ZodObject<{
1595
+ clientId: z.ZodOptional<z.ZodString>;
1596
+ apiUrl: z.ZodOptional<z.ZodString>;
1597
+ trackUiEvents: z.ZodOptional<z.ZodBoolean>;
1598
+ trackOperations: z.ZodOptional<z.ZodBoolean>;
1599
+ }, z.core.$strict>;
1600
+ /** Which reactor client Connect runs (see PHReactorClientMode). */
1601
+ declare const connectReactorClientModeSchema: z.ZodEnum<{
1602
+ "in-process": "in-process";
1603
+ remote: "remote";
1604
+ router: "router";
1605
+ worker: "worker";
1606
+ }>;
1607
+ declare const connectInstanceSchema: z.ZodObject<{
1608
+ namespace: z.ZodNullable<z.ZodString>;
1609
+ reactorWorker: z.ZodBoolean;
1610
+ multiReactor: z.ZodOptional<z.ZodBoolean>;
1611
+ }, z.core.$strict>;
1612
+ declare const connectReactorFeatureFlagsSchema: z.ZodObject<{
1613
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
1614
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
1615
+ authGroups: z.ZodOptional<z.ZodBoolean>;
1616
+ authConditions: z.ZodOptional<z.ZodBoolean>;
1617
+ }, z.core.$strict>;
1618
+ declare const connectReactorSchema: z.ZodObject<{
1619
+ featureFlags: z.ZodOptional<z.ZodObject<{
1620
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
1621
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
1622
+ authGroups: z.ZodOptional<z.ZodBoolean>;
1623
+ authConditions: z.ZodOptional<z.ZodBoolean>;
1624
+ }, z.core.$strict>>;
1625
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
1626
+ legacy: "legacy";
1627
+ "v2-required": "v2-required";
1628
+ }>>;
1629
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
1630
+ "read-only": "read-only";
1631
+ refuse: "refuse";
1632
+ }>>;
1633
+ }, z.core.$strict>;
1634
+ /** A runtime-caching / denylist URL match. A string is handed to Workbox
1635
+ * verbatim; `{ source, flags }` is rebuilt into a RegExp at build time. */
1636
+ declare const connectPwaUrlPatternSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1637
+ source: z.ZodString;
1638
+ flags: z.ZodOptional<z.ZodString>;
1639
+ }, z.core.$strict>]>;
1640
+ declare const connectPwaCacheStrategySchema: z.ZodEnum<{
1641
+ CacheFirst: "CacheFirst";
1642
+ CacheOnly: "CacheOnly";
1643
+ NetworkFirst: "NetworkFirst";
1644
+ NetworkOnly: "NetworkOnly";
1645
+ StaleWhileRevalidate: "StaleWhileRevalidate";
1646
+ }>;
1647
+ /** Serialisable subset of a Workbox `RuntimeCaching` rule. */
1648
+ declare const connectPwaRuntimeCachingSchema: z.ZodObject<{
1649
+ urlPattern: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1650
+ source: z.ZodString;
1651
+ flags: z.ZodOptional<z.ZodString>;
1652
+ }, z.core.$strict>]>;
1653
+ handler: z.ZodEnum<{
1654
+ CacheFirst: "CacheFirst";
1655
+ CacheOnly: "CacheOnly";
1656
+ NetworkFirst: "NetworkFirst";
1657
+ NetworkOnly: "NetworkOnly";
1658
+ StaleWhileRevalidate: "StaleWhileRevalidate";
1659
+ }>;
1660
+ method: z.ZodOptional<z.ZodEnum<{
1661
+ DELETE: "DELETE";
1662
+ GET: "GET";
1663
+ HEAD: "HEAD";
1664
+ PATCH: "PATCH";
1665
+ POST: "POST";
1666
+ PUT: "PUT";
1667
+ }>>;
1668
+ options: z.ZodOptional<z.ZodObject<{
1669
+ cacheName: z.ZodOptional<z.ZodString>;
1670
+ networkTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
1671
+ expiration: z.ZodOptional<z.ZodObject<{
1672
+ maxEntries: z.ZodOptional<z.ZodNumber>;
1673
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
1674
+ }, z.core.$strict>>;
1675
+ cacheableResponse: z.ZodOptional<z.ZodObject<{
1676
+ statuses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1677
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1678
+ }, z.core.$strict>>;
1679
+ }, z.core.$strict>>;
1680
+ }, z.core.$strict>;
1681
+ declare const connectPwaIconSchema: z.ZodObject<{
1682
+ src: z.ZodString;
1683
+ sizes: z.ZodOptional<z.ZodString>;
1684
+ type: z.ZodOptional<z.ZodString>;
1685
+ purpose: z.ZodOptional<z.ZodString>;
1686
+ }, z.core.$strict>;
1687
+ /** A File Handling API entry. No `action`: every handler opens at Connect's
1688
+ * app root, because consuming launched files needs Connect's own code. */
1689
+ declare const connectPwaFileHandlerSchema: z.ZodObject<{
1690
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1691
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1692
+ src: z.ZodString;
1693
+ sizes: z.ZodOptional<z.ZodString>;
1694
+ type: z.ZodOptional<z.ZodString>;
1695
+ purpose: z.ZodOptional<z.ZodString>;
1696
+ }, z.core.$strict>>>;
1697
+ launch_type: z.ZodOptional<z.ZodEnum<{
1698
+ "multiple-clients": "multiple-clients";
1699
+ "single-client": "single-client";
1700
+ }>>;
1701
+ }, z.core.$strict>;
1702
+ /** Web-app-manifest fields a package or project may override. */
1703
+ declare const connectPwaManifestSchema: z.ZodObject<{
1704
+ name: z.ZodOptional<z.ZodString>;
1705
+ short_name: z.ZodOptional<z.ZodString>;
1706
+ description: z.ZodOptional<z.ZodString>;
1707
+ theme_color: z.ZodOptional<z.ZodString>;
1708
+ background_color: z.ZodOptional<z.ZodString>;
1709
+ display: z.ZodOptional<z.ZodEnum<{
1710
+ browser: "browser";
1711
+ fullscreen: "fullscreen";
1712
+ "minimal-ui": "minimal-ui";
1713
+ standalone: "standalone";
1714
+ }>>;
1715
+ start_url: z.ZodOptional<z.ZodString>;
1716
+ scope: z.ZodOptional<z.ZodString>;
1717
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1718
+ src: z.ZodString;
1719
+ sizes: z.ZodOptional<z.ZodString>;
1720
+ type: z.ZodOptional<z.ZodString>;
1721
+ purpose: z.ZodOptional<z.ZodString>;
1722
+ }, z.core.$strict>>>;
1723
+ file_handlers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1724
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1725
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1726
+ src: z.ZodString;
1727
+ sizes: z.ZodOptional<z.ZodString>;
1728
+ type: z.ZodOptional<z.ZodString>;
1729
+ purpose: z.ZodOptional<z.ZodString>;
1730
+ }, z.core.$strict>>>;
1731
+ launch_type: z.ZodOptional<z.ZodEnum<{
1732
+ "multiple-clients": "multiple-clients";
1733
+ "single-client": "single-client";
1734
+ }>>;
1735
+ }, z.core.$strict>>>;
1736
+ launch_handler: z.ZodOptional<z.ZodObject<{
1737
+ client_mode: z.ZodEnum<{
1738
+ auto: "auto";
1739
+ "focus-existing": "focus-existing";
1740
+ "navigate-existing": "navigate-existing";
1741
+ "navigate-new": "navigate-new";
1742
+ }>;
1743
+ }, z.core.$strict>>;
1744
+ }, z.core.$strict>;
1745
+ /** `connect.pwa` as authored. */
1746
+ declare const connectPwaSchema: z.ZodObject<{
1747
+ globPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
1748
+ globIgnores: z.ZodOptional<z.ZodArray<z.ZodString>>;
1749
+ maximumFileSizeToCacheInBytes: z.ZodOptional<z.ZodNumber>;
1750
+ runtimeCaching: z.ZodOptional<z.ZodArray<z.ZodObject<{
1751
+ urlPattern: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1752
+ source: z.ZodString;
1753
+ flags: z.ZodOptional<z.ZodString>;
1754
+ }, z.core.$strict>]>;
1755
+ handler: z.ZodEnum<{
1756
+ CacheFirst: "CacheFirst";
1757
+ CacheOnly: "CacheOnly";
1758
+ NetworkFirst: "NetworkFirst";
1759
+ NetworkOnly: "NetworkOnly";
1760
+ StaleWhileRevalidate: "StaleWhileRevalidate";
1761
+ }>;
1762
+ method: z.ZodOptional<z.ZodEnum<{
1763
+ DELETE: "DELETE";
1764
+ GET: "GET";
1765
+ HEAD: "HEAD";
1766
+ PATCH: "PATCH";
1767
+ POST: "POST";
1768
+ PUT: "PUT";
1769
+ }>>;
1770
+ options: z.ZodOptional<z.ZodObject<{
1771
+ cacheName: z.ZodOptional<z.ZodString>;
1772
+ networkTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
1773
+ expiration: z.ZodOptional<z.ZodObject<{
1774
+ maxEntries: z.ZodOptional<z.ZodNumber>;
1775
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
1776
+ }, z.core.$strict>>;
1777
+ cacheableResponse: z.ZodOptional<z.ZodObject<{
1778
+ statuses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1779
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1780
+ }, z.core.$strict>>;
1781
+ }, z.core.$strict>>;
1782
+ }, z.core.$strict>>>;
1783
+ navigateFallbackDenylist: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1784
+ source: z.ZodString;
1785
+ flags: z.ZodOptional<z.ZodString>;
1786
+ }, z.core.$strict>]>>>;
1787
+ manifest: z.ZodOptional<z.ZodObject<{
1788
+ name: z.ZodOptional<z.ZodString>;
1789
+ short_name: z.ZodOptional<z.ZodString>;
1790
+ description: z.ZodOptional<z.ZodString>;
1791
+ theme_color: z.ZodOptional<z.ZodString>;
1792
+ background_color: z.ZodOptional<z.ZodString>;
1793
+ display: z.ZodOptional<z.ZodEnum<{
1794
+ browser: "browser";
1795
+ fullscreen: "fullscreen";
1796
+ "minimal-ui": "minimal-ui";
1797
+ standalone: "standalone";
1798
+ }>>;
1799
+ start_url: z.ZodOptional<z.ZodString>;
1800
+ scope: z.ZodOptional<z.ZodString>;
1801
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1802
+ src: z.ZodString;
1803
+ sizes: z.ZodOptional<z.ZodString>;
1804
+ type: z.ZodOptional<z.ZodString>;
1805
+ purpose: z.ZodOptional<z.ZodString>;
1806
+ }, z.core.$strict>>>;
1807
+ file_handlers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1808
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1809
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1810
+ src: z.ZodString;
1811
+ sizes: z.ZodOptional<z.ZodString>;
1812
+ type: z.ZodOptional<z.ZodString>;
1813
+ purpose: z.ZodOptional<z.ZodString>;
1814
+ }, z.core.$strict>>>;
1815
+ launch_type: z.ZodOptional<z.ZodEnum<{
1816
+ "multiple-clients": "multiple-clients";
1817
+ "single-client": "single-client";
1818
+ }>>;
1819
+ }, z.core.$strict>>>;
1820
+ launch_handler: z.ZodOptional<z.ZodObject<{
1821
+ client_mode: z.ZodEnum<{
1822
+ auto: "auto";
1823
+ "focus-existing": "focus-existing";
1824
+ "navigate-existing": "navigate-existing";
1825
+ "navigate-new": "navigate-new";
1826
+ }>;
1827
+ }, z.core.$strict>>;
1828
+ }, z.core.$strict>>;
1829
+ }, z.core.$strict>;
1830
+ /**
1831
+ * The `connect` block as authored: powerhouse.config.json's `connect`, the
1832
+ * connect host's `config`, and `ph connect config` writes. Every field is
1833
+ * optional; omit the section entirely for default behaviour.
1834
+ */
1835
+ declare const connectConfigSchema: z.ZodObject<{
1836
+ branding: z.ZodOptional<z.ZodObject<{
1837
+ appName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1838
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1839
+ favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1840
+ loader: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1841
+ src: z.ZodString;
1842
+ animation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1843
+ none: "none";
1844
+ pulse: "pulse";
1845
+ spin: "spin";
1846
+ }>>>;
1847
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1848
+ }, z.core.$strict>]>>>;
1849
+ }, z.core.$strict>>;
1850
+ home: z.ZodOptional<z.ZodObject<{
1851
+ background: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1852
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1853
+ light: z.ZodString;
1854
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1855
+ }, z.core.$strict>]>>>;
1856
+ layers: z.ZodArray<z.ZodObject<{
1857
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1858
+ light: z.ZodString;
1859
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1860
+ }, z.core.$strict>]>;
1861
+ position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1862
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1863
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1864
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1865
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1866
+ }, z.core.$strict>>>;
1867
+ width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1868
+ height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1869
+ minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1870
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1871
+ maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1872
+ maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1873
+ opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1874
+ fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1875
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1876
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1877
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1878
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1879
+ }, z.core.$strict>>>;
1880
+ }, z.core.$strict>>;
1881
+ }, z.core.$strict>]>>>;
1882
+ }, z.core.$strict>>;
1883
+ app: z.ZodOptional<z.ZodObject<{
1884
+ logLevel: z.ZodOptional<z.ZodEnum<{
1885
+ debug: "debug";
1886
+ error: "error";
1887
+ info: "info";
1888
+ warn: "warn";
1889
+ }>>;
1890
+ basePath: z.ZodOptional<z.ZodString>;
1891
+ offline: z.ZodOptional<z.ZodBoolean>;
1892
+ studioMode: z.ZodOptional<z.ZodBoolean>;
1893
+ workflowsEnabled: z.ZodOptional<z.ZodBoolean>;
1894
+ }, z.core.$strict>>;
1895
+ ai: z.ZodOptional<z.ZodObject<{
1896
+ assistantEnabled: z.ZodOptional<z.ZodBoolean>;
1897
+ }, z.core.$strict>>;
1898
+ packages: z.ZodOptional<z.ZodObject<{
1899
+ externalEnabled: z.ZodOptional<z.ZodBoolean>;
1900
+ liveReload: z.ZodOptional<z.ZodBoolean>;
1901
+ }, z.core.$strict>>;
1902
+ drives: z.ZodOptional<z.ZodObject<{
1903
+ allowAddDrive: z.ZodOptional<z.ZodBoolean>;
1904
+ defaultDrives: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1905
+ url: z.ZodString;
1906
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1907
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1908
+ }, z.core.$strict>, z.ZodObject<{
1909
+ local: z.ZodLiteral<true>;
1910
+ id: z.ZodString;
1911
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1912
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1913
+ app: z.ZodOptional<z.ZodString>;
1914
+ }, z.core.$strict>]>>>;
1915
+ preserveStrategy: z.ZodOptional<z.ZodEnum<{
1916
+ "preserve-all": "preserve-all";
1917
+ "preserve-by-url-and-detach": "preserve-by-url-and-detach";
1918
+ }>>;
1919
+ sections: z.ZodOptional<z.ZodObject<{
1920
+ remote: z.ZodOptional<z.ZodObject<{
1921
+ enabled: z.ZodOptional<z.ZodBoolean>;
1922
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
1923
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
1924
+ }, z.core.$strict>>;
1925
+ local: z.ZodOptional<z.ZodObject<{
1926
+ enabled: z.ZodOptional<z.ZodBoolean>;
1927
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
1928
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
1929
+ }, z.core.$strict>>;
1930
+ }, z.core.$strict>>;
1931
+ icons: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1932
+ localDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1933
+ remoteDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1934
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1935
+ document: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1936
+ documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1937
+ }, z.core.$strict>>>;
1938
+ }, z.core.$strict>>;
1939
+ renown: z.ZodOptional<z.ZodObject<{
1940
+ url: z.ZodOptional<z.ZodString>;
1941
+ networkId: z.ZodOptional<z.ZodString>;
1942
+ chainId: z.ZodOptional<z.ZodNumber>;
1943
+ namespace: z.ZodOptional<z.ZodString>;
1944
+ switchboardUrl: z.ZodOptional<z.ZodString>;
1945
+ adapters: z.ZodOptional<z.ZodObject<{
1946
+ rainbow: z.ZodOptional<z.ZodObject<{
1947
+ walletConnectProjectId: z.ZodOptional<z.ZodString>;
1948
+ infuraProjectId: z.ZodOptional<z.ZodString>;
1949
+ }, z.core.$strict>>;
1950
+ privy: z.ZodOptional<z.ZodObject<{
1951
+ appId: z.ZodOptional<z.ZodString>;
1952
+ clientId: z.ZodOptional<z.ZodString>;
1953
+ methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
1954
+ }, z.core.$strict>>;
1955
+ }, z.core.$strict>>;
1956
+ }, z.core.$strict>>;
1957
+ sentry: z.ZodOptional<z.ZodObject<{
1958
+ dsn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1959
+ env: z.ZodOptional<z.ZodString>;
1960
+ tracing: z.ZodOptional<z.ZodBoolean>;
1961
+ }, z.core.$strict>>;
1962
+ openPanel: z.ZodOptional<z.ZodObject<{
1963
+ clientId: z.ZodOptional<z.ZodString>;
1964
+ apiUrl: z.ZodOptional<z.ZodString>;
1965
+ trackUiEvents: z.ZodOptional<z.ZodBoolean>;
1966
+ trackOperations: z.ZodOptional<z.ZodBoolean>;
1967
+ }, z.core.$strict>>;
1968
+ instance: z.ZodOptional<z.ZodObject<{
1969
+ namespace: z.ZodNullable<z.ZodString>;
1970
+ reactorWorker: z.ZodBoolean;
1971
+ multiReactor: z.ZodOptional<z.ZodBoolean>;
1972
+ }, z.core.$strict>>;
1973
+ reactor: z.ZodOptional<z.ZodObject<{
1974
+ featureFlags: z.ZodOptional<z.ZodObject<{
1975
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
1976
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
1977
+ authGroups: z.ZodOptional<z.ZodBoolean>;
1978
+ authConditions: z.ZodOptional<z.ZodBoolean>;
1979
+ }, z.core.$strict>>;
1980
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
1981
+ legacy: "legacy";
1982
+ "v2-required": "v2-required";
1983
+ }>>;
1984
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
1985
+ "read-only": "read-only";
1986
+ refuse: "refuse";
1987
+ }>>;
1988
+ }, z.core.$strict>>;
1989
+ pwa: z.ZodOptional<z.ZodObject<{
1990
+ globPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
1991
+ globIgnores: z.ZodOptional<z.ZodArray<z.ZodString>>;
1992
+ maximumFileSizeToCacheInBytes: z.ZodOptional<z.ZodNumber>;
1993
+ runtimeCaching: z.ZodOptional<z.ZodArray<z.ZodObject<{
1994
+ urlPattern: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1995
+ source: z.ZodString;
1996
+ flags: z.ZodOptional<z.ZodString>;
1997
+ }, z.core.$strict>]>;
1998
+ handler: z.ZodEnum<{
1999
+ CacheFirst: "CacheFirst";
2000
+ CacheOnly: "CacheOnly";
2001
+ NetworkFirst: "NetworkFirst";
2002
+ NetworkOnly: "NetworkOnly";
2003
+ StaleWhileRevalidate: "StaleWhileRevalidate";
2004
+ }>;
2005
+ method: z.ZodOptional<z.ZodEnum<{
2006
+ DELETE: "DELETE";
2007
+ GET: "GET";
2008
+ HEAD: "HEAD";
2009
+ PATCH: "PATCH";
2010
+ POST: "POST";
2011
+ PUT: "PUT";
2012
+ }>>;
2013
+ options: z.ZodOptional<z.ZodObject<{
2014
+ cacheName: z.ZodOptional<z.ZodString>;
2015
+ networkTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
2016
+ expiration: z.ZodOptional<z.ZodObject<{
2017
+ maxEntries: z.ZodOptional<z.ZodNumber>;
2018
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
2019
+ }, z.core.$strict>>;
2020
+ cacheableResponse: z.ZodOptional<z.ZodObject<{
2021
+ statuses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2022
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2023
+ }, z.core.$strict>>;
2024
+ }, z.core.$strict>>;
2025
+ }, z.core.$strict>>>;
2026
+ navigateFallbackDenylist: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2027
+ source: z.ZodString;
2028
+ flags: z.ZodOptional<z.ZodString>;
2029
+ }, z.core.$strict>]>>>;
2030
+ manifest: z.ZodOptional<z.ZodObject<{
2031
+ name: z.ZodOptional<z.ZodString>;
2032
+ short_name: z.ZodOptional<z.ZodString>;
2033
+ description: z.ZodOptional<z.ZodString>;
2034
+ theme_color: z.ZodOptional<z.ZodString>;
2035
+ background_color: z.ZodOptional<z.ZodString>;
2036
+ display: z.ZodOptional<z.ZodEnum<{
2037
+ browser: "browser";
2038
+ fullscreen: "fullscreen";
2039
+ "minimal-ui": "minimal-ui";
2040
+ standalone: "standalone";
2041
+ }>>;
2042
+ start_url: z.ZodOptional<z.ZodString>;
2043
+ scope: z.ZodOptional<z.ZodString>;
2044
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2045
+ src: z.ZodString;
2046
+ sizes: z.ZodOptional<z.ZodString>;
2047
+ type: z.ZodOptional<z.ZodString>;
2048
+ purpose: z.ZodOptional<z.ZodString>;
2049
+ }, z.core.$strict>>>;
2050
+ file_handlers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2051
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
2052
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2053
+ src: z.ZodString;
2054
+ sizes: z.ZodOptional<z.ZodString>;
2055
+ type: z.ZodOptional<z.ZodString>;
2056
+ purpose: z.ZodOptional<z.ZodString>;
2057
+ }, z.core.$strict>>>;
2058
+ launch_type: z.ZodOptional<z.ZodEnum<{
2059
+ "multiple-clients": "multiple-clients";
2060
+ "single-client": "single-client";
2061
+ }>>;
2062
+ }, z.core.$strict>>>;
2063
+ launch_handler: z.ZodOptional<z.ZodObject<{
2064
+ client_mode: z.ZodEnum<{
2065
+ auto: "auto";
2066
+ "focus-existing": "focus-existing";
2067
+ "navigate-existing": "navigate-existing";
2068
+ "navigate-new": "navigate-new";
2069
+ }>;
2070
+ }, z.core.$strict>>;
2071
+ }, z.core.$strict>>;
2072
+ }, z.core.$strict>>;
2073
+ }, z.core.$strict>;
2074
+ type ConnectConfig = z.output<typeof connectConfigSchema>;
2075
+ type ConnectConfigInput = z.input<typeof connectConfigSchema>;
2076
+ /**
2077
+ * The `connect` block with its token-able fields wrapped by `field`: the
2078
+ * fields that name another host's outputs, which a connect host's `config`
2079
+ * may write as output tokens (`ph run` resolves them before the verb).
2080
+ *
2081
+ * - `drives.defaultDrives[].url` (a remote entry): e.g. a switchboard's
2082
+ * `drives.<slug>.url` output.
2083
+ * - `renown.switchboardUrl`: a switchboard's `endpoints.graphql` output.
2084
+ *
2085
+ * The connect runner builds it with host-core's `s.tokenable` (declared:
2086
+ * tokens in; resolved: plain values only). The output type is
2087
+ * {@link ConnectConfig} either way. powerhouse.config.json's `connect` block,
2088
+ * the served config and their JSON Schemas stay {@link connectConfigSchema},
2089
+ * which takes no tokens.
2090
+ */
2091
+ declare function connectConfigSchemaWith(field: TokenField): z.ZodObject<{
2092
+ branding: z.ZodOptional<z.ZodObject<{
2093
+ appName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2094
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2095
+ favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2096
+ loader: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2097
+ src: z.ZodString;
2098
+ animation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2099
+ none: "none";
2100
+ pulse: "pulse";
2101
+ spin: "spin";
2102
+ }>>>;
2103
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2104
+ }, z.core.$strict>]>>>;
2105
+ }, z.core.$strict>>;
2106
+ home: z.ZodOptional<z.ZodObject<{
2107
+ background: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2108
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2109
+ light: z.ZodString;
2110
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2111
+ }, z.core.$strict>]>>>;
2112
+ layers: z.ZodArray<z.ZodObject<{
2113
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2114
+ light: z.ZodString;
2115
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2116
+ }, z.core.$strict>]>;
2117
+ position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2118
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2119
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2120
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2121
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2122
+ }, z.core.$strict>>>;
2123
+ width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2124
+ height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2125
+ minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2126
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2127
+ maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2128
+ maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2129
+ opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2130
+ fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2131
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2132
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2133
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2134
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2135
+ }, z.core.$strict>>>;
2136
+ }, z.core.$strict>>;
2137
+ }, z.core.$strict>]>>>;
2138
+ }, z.core.$strict>>;
2139
+ app: z.ZodOptional<z.ZodObject<{
2140
+ logLevel: z.ZodOptional<z.ZodEnum<{
2141
+ debug: "debug";
2142
+ error: "error";
2143
+ info: "info";
2144
+ warn: "warn";
2145
+ }>>;
2146
+ basePath: z.ZodOptional<z.ZodString>;
2147
+ offline: z.ZodOptional<z.ZodBoolean>;
2148
+ studioMode: z.ZodOptional<z.ZodBoolean>;
2149
+ workflowsEnabled: z.ZodOptional<z.ZodBoolean>;
2150
+ }, z.core.$strict>>;
2151
+ ai: z.ZodOptional<z.ZodObject<{
2152
+ assistantEnabled: z.ZodOptional<z.ZodBoolean>;
2153
+ }, z.core.$strict>>;
2154
+ packages: z.ZodOptional<z.ZodObject<{
2155
+ externalEnabled: z.ZodOptional<z.ZodBoolean>;
2156
+ liveReload: z.ZodOptional<z.ZodBoolean>;
2157
+ }, z.core.$strict>>;
2158
+ sentry: z.ZodOptional<z.ZodObject<{
2159
+ dsn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2160
+ env: z.ZodOptional<z.ZodString>;
2161
+ tracing: z.ZodOptional<z.ZodBoolean>;
2162
+ }, z.core.$strict>>;
2163
+ openPanel: z.ZodOptional<z.ZodObject<{
2164
+ clientId: z.ZodOptional<z.ZodString>;
2165
+ apiUrl: z.ZodOptional<z.ZodString>;
2166
+ trackUiEvents: z.ZodOptional<z.ZodBoolean>;
2167
+ trackOperations: z.ZodOptional<z.ZodBoolean>;
2168
+ }, z.core.$strict>>;
2169
+ instance: z.ZodOptional<z.ZodObject<{
2170
+ namespace: z.ZodNullable<z.ZodString>;
2171
+ reactorWorker: z.ZodBoolean;
2172
+ multiReactor: z.ZodOptional<z.ZodBoolean>;
2173
+ }, z.core.$strict>>;
2174
+ reactor: z.ZodOptional<z.ZodObject<{
2175
+ featureFlags: z.ZodOptional<z.ZodObject<{
2176
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
2177
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
2178
+ authGroups: z.ZodOptional<z.ZodBoolean>;
2179
+ authConditions: z.ZodOptional<z.ZodBoolean>;
2180
+ }, z.core.$strict>>;
2181
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
2182
+ legacy: "legacy";
2183
+ "v2-required": "v2-required";
2184
+ }>>;
2185
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
2186
+ "read-only": "read-only";
2187
+ refuse: "refuse";
2188
+ }>>;
2189
+ }, z.core.$strict>>;
2190
+ pwa: z.ZodOptional<z.ZodObject<{
2191
+ globPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
2192
+ globIgnores: z.ZodOptional<z.ZodArray<z.ZodString>>;
2193
+ maximumFileSizeToCacheInBytes: z.ZodOptional<z.ZodNumber>;
2194
+ runtimeCaching: z.ZodOptional<z.ZodArray<z.ZodObject<{
2195
+ urlPattern: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2196
+ source: z.ZodString;
2197
+ flags: z.ZodOptional<z.ZodString>;
2198
+ }, z.core.$strict>]>;
2199
+ handler: z.ZodEnum<{
2200
+ CacheFirst: "CacheFirst";
2201
+ CacheOnly: "CacheOnly";
2202
+ NetworkFirst: "NetworkFirst";
2203
+ NetworkOnly: "NetworkOnly";
2204
+ StaleWhileRevalidate: "StaleWhileRevalidate";
2205
+ }>;
2206
+ method: z.ZodOptional<z.ZodEnum<{
2207
+ DELETE: "DELETE";
2208
+ GET: "GET";
2209
+ HEAD: "HEAD";
2210
+ PATCH: "PATCH";
2211
+ POST: "POST";
2212
+ PUT: "PUT";
2213
+ }>>;
2214
+ options: z.ZodOptional<z.ZodObject<{
2215
+ cacheName: z.ZodOptional<z.ZodString>;
2216
+ networkTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
2217
+ expiration: z.ZodOptional<z.ZodObject<{
2218
+ maxEntries: z.ZodOptional<z.ZodNumber>;
2219
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
2220
+ }, z.core.$strict>>;
2221
+ cacheableResponse: z.ZodOptional<z.ZodObject<{
2222
+ statuses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2223
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2224
+ }, z.core.$strict>>;
2225
+ }, z.core.$strict>>;
2226
+ }, z.core.$strict>>>;
2227
+ navigateFallbackDenylist: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2228
+ source: z.ZodString;
2229
+ flags: z.ZodOptional<z.ZodString>;
2230
+ }, z.core.$strict>]>>>;
2231
+ manifest: z.ZodOptional<z.ZodObject<{
2232
+ name: z.ZodOptional<z.ZodString>;
2233
+ short_name: z.ZodOptional<z.ZodString>;
2234
+ description: z.ZodOptional<z.ZodString>;
2235
+ theme_color: z.ZodOptional<z.ZodString>;
2236
+ background_color: z.ZodOptional<z.ZodString>;
2237
+ display: z.ZodOptional<z.ZodEnum<{
2238
+ browser: "browser";
2239
+ fullscreen: "fullscreen";
2240
+ "minimal-ui": "minimal-ui";
2241
+ standalone: "standalone";
2242
+ }>>;
2243
+ start_url: z.ZodOptional<z.ZodString>;
2244
+ scope: z.ZodOptional<z.ZodString>;
2245
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2246
+ src: z.ZodString;
2247
+ sizes: z.ZodOptional<z.ZodString>;
2248
+ type: z.ZodOptional<z.ZodString>;
2249
+ purpose: z.ZodOptional<z.ZodString>;
2250
+ }, z.core.$strict>>>;
2251
+ file_handlers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2252
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
2253
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2254
+ src: z.ZodString;
2255
+ sizes: z.ZodOptional<z.ZodString>;
2256
+ type: z.ZodOptional<z.ZodString>;
2257
+ purpose: z.ZodOptional<z.ZodString>;
2258
+ }, z.core.$strict>>>;
2259
+ launch_type: z.ZodOptional<z.ZodEnum<{
2260
+ "multiple-clients": "multiple-clients";
2261
+ "single-client": "single-client";
2262
+ }>>;
2263
+ }, z.core.$strict>>>;
2264
+ launch_handler: z.ZodOptional<z.ZodObject<{
2265
+ client_mode: z.ZodEnum<{
2266
+ auto: "auto";
2267
+ "focus-existing": "focus-existing";
2268
+ "navigate-existing": "navigate-existing";
2269
+ "navigate-new": "navigate-new";
2270
+ }>;
2271
+ }, z.core.$strict>>;
2272
+ }, z.core.$strict>>;
2273
+ }, z.core.$strict>>;
2274
+ drives: z.ZodOptional<z.ZodObject<{
2275
+ allowAddDrive: z.ZodOptional<z.ZodBoolean>;
2276
+ preserveStrategy: z.ZodOptional<z.ZodEnum<{
2277
+ "preserve-all": "preserve-all";
2278
+ "preserve-by-url-and-detach": "preserve-by-url-and-detach";
2279
+ }>>;
2280
+ sections: z.ZodOptional<z.ZodObject<{
2281
+ remote: z.ZodOptional<z.ZodObject<{
2282
+ enabled: z.ZodOptional<z.ZodBoolean>;
2283
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
2284
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
2285
+ }, z.core.$strict>>;
2286
+ local: z.ZodOptional<z.ZodObject<{
2287
+ enabled: z.ZodOptional<z.ZodBoolean>;
2288
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
2289
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
2290
+ }, z.core.$strict>>;
2291
+ }, z.core.$strict>>;
2292
+ icons: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2293
+ localDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2294
+ remoteDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2295
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2296
+ document: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2297
+ documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2298
+ }, z.core.$strict>>>;
2299
+ defaultDrives: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2300
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2301
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2302
+ url: TokenableSchema<z.ZodString, ConcatToken | EnvToken | ItemToken<string> | OutputToken<string> | ({
2303
+ $key: true;
2304
+ } | {
2305
+ $key: string;
2306
+ })>;
2307
+ }, z.core.$strict>, z.ZodObject<{
2308
+ local: z.ZodLiteral<true>;
2309
+ id: z.ZodString;
2310
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2311
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2312
+ app: z.ZodOptional<z.ZodString>;
2313
+ }, z.core.$strict>]>>>;
2314
+ }, z.core.$strict>>;
2315
+ renown: z.ZodOptional<z.ZodObject<{
2316
+ url: z.ZodOptional<z.ZodString>;
2317
+ networkId: z.ZodOptional<z.ZodString>;
2318
+ chainId: z.ZodOptional<z.ZodNumber>;
2319
+ namespace: z.ZodOptional<z.ZodString>;
2320
+ adapters: z.ZodOptional<z.ZodObject<{
2321
+ rainbow: z.ZodOptional<z.ZodObject<{
2322
+ walletConnectProjectId: z.ZodOptional<z.ZodString>;
2323
+ infuraProjectId: z.ZodOptional<z.ZodString>;
2324
+ }, z.core.$strict>>;
2325
+ privy: z.ZodOptional<z.ZodObject<{
2326
+ appId: z.ZodOptional<z.ZodString>;
2327
+ clientId: z.ZodOptional<z.ZodString>;
2328
+ methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
2329
+ }, z.core.$strict>>;
2330
+ }, z.core.$strict>>;
2331
+ switchboardUrl: z.ZodOptional<TokenableSchema<z.ZodString, ConcatToken | EnvToken | ItemToken<string> | OutputToken<string> | ({
2332
+ $key: true;
2333
+ } | {
2334
+ $key: string;
2335
+ })>>;
2336
+ }, z.core.$strict>>;
2337
+ }, z.core.$strict>;
2338
+ /** The declared `connect` block: {@link connectConfigSchemaWith} with every
2339
+ * token accepted in its token-able fields. */
2340
+ declare const declaredConnectConfigSchema: z.ZodObject<{
2341
+ branding: z.ZodOptional<z.ZodObject<{
2342
+ appName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2343
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2344
+ favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2345
+ loader: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2346
+ src: z.ZodString;
2347
+ animation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2348
+ none: "none";
2349
+ pulse: "pulse";
2350
+ spin: "spin";
2351
+ }>>>;
2352
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2353
+ }, z.core.$strict>]>>>;
2354
+ }, z.core.$strict>>;
2355
+ home: z.ZodOptional<z.ZodObject<{
2356
+ background: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2357
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2358
+ light: z.ZodString;
2359
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2360
+ }, z.core.$strict>]>>>;
2361
+ layers: z.ZodArray<z.ZodObject<{
2362
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2363
+ light: z.ZodString;
2364
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2365
+ }, z.core.$strict>]>;
2366
+ position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2367
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2368
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2369
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2370
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2371
+ }, z.core.$strict>>>;
2372
+ width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2373
+ height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2374
+ minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2375
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2376
+ maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2377
+ maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2378
+ opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2379
+ fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2380
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2381
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2382
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2383
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2384
+ }, z.core.$strict>>>;
2385
+ }, z.core.$strict>>;
2386
+ }, z.core.$strict>]>>>;
2387
+ }, z.core.$strict>>;
2388
+ app: z.ZodOptional<z.ZodObject<{
2389
+ logLevel: z.ZodOptional<z.ZodEnum<{
2390
+ debug: "debug";
2391
+ error: "error";
2392
+ info: "info";
2393
+ warn: "warn";
2394
+ }>>;
2395
+ basePath: z.ZodOptional<z.ZodString>;
2396
+ offline: z.ZodOptional<z.ZodBoolean>;
2397
+ studioMode: z.ZodOptional<z.ZodBoolean>;
2398
+ workflowsEnabled: z.ZodOptional<z.ZodBoolean>;
2399
+ }, z.core.$strict>>;
2400
+ ai: z.ZodOptional<z.ZodObject<{
2401
+ assistantEnabled: z.ZodOptional<z.ZodBoolean>;
2402
+ }, z.core.$strict>>;
2403
+ packages: z.ZodOptional<z.ZodObject<{
2404
+ externalEnabled: z.ZodOptional<z.ZodBoolean>;
2405
+ liveReload: z.ZodOptional<z.ZodBoolean>;
2406
+ }, z.core.$strict>>;
2407
+ sentry: z.ZodOptional<z.ZodObject<{
2408
+ dsn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2409
+ env: z.ZodOptional<z.ZodString>;
2410
+ tracing: z.ZodOptional<z.ZodBoolean>;
2411
+ }, z.core.$strict>>;
2412
+ openPanel: z.ZodOptional<z.ZodObject<{
2413
+ clientId: z.ZodOptional<z.ZodString>;
2414
+ apiUrl: z.ZodOptional<z.ZodString>;
2415
+ trackUiEvents: z.ZodOptional<z.ZodBoolean>;
2416
+ trackOperations: z.ZodOptional<z.ZodBoolean>;
2417
+ }, z.core.$strict>>;
2418
+ instance: z.ZodOptional<z.ZodObject<{
2419
+ namespace: z.ZodNullable<z.ZodString>;
2420
+ reactorWorker: z.ZodBoolean;
2421
+ multiReactor: z.ZodOptional<z.ZodBoolean>;
2422
+ }, z.core.$strict>>;
2423
+ reactor: z.ZodOptional<z.ZodObject<{
2424
+ featureFlags: z.ZodOptional<z.ZodObject<{
2425
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
2426
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
2427
+ authGroups: z.ZodOptional<z.ZodBoolean>;
2428
+ authConditions: z.ZodOptional<z.ZodBoolean>;
2429
+ }, z.core.$strict>>;
2430
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
2431
+ legacy: "legacy";
2432
+ "v2-required": "v2-required";
2433
+ }>>;
2434
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
2435
+ "read-only": "read-only";
2436
+ refuse: "refuse";
2437
+ }>>;
2438
+ }, z.core.$strict>>;
2439
+ pwa: z.ZodOptional<z.ZodObject<{
2440
+ globPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
2441
+ globIgnores: z.ZodOptional<z.ZodArray<z.ZodString>>;
2442
+ maximumFileSizeToCacheInBytes: z.ZodOptional<z.ZodNumber>;
2443
+ runtimeCaching: z.ZodOptional<z.ZodArray<z.ZodObject<{
2444
+ urlPattern: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2445
+ source: z.ZodString;
2446
+ flags: z.ZodOptional<z.ZodString>;
2447
+ }, z.core.$strict>]>;
2448
+ handler: z.ZodEnum<{
2449
+ CacheFirst: "CacheFirst";
2450
+ CacheOnly: "CacheOnly";
2451
+ NetworkFirst: "NetworkFirst";
2452
+ NetworkOnly: "NetworkOnly";
2453
+ StaleWhileRevalidate: "StaleWhileRevalidate";
2454
+ }>;
2455
+ method: z.ZodOptional<z.ZodEnum<{
2456
+ DELETE: "DELETE";
2457
+ GET: "GET";
2458
+ HEAD: "HEAD";
2459
+ PATCH: "PATCH";
2460
+ POST: "POST";
2461
+ PUT: "PUT";
2462
+ }>>;
2463
+ options: z.ZodOptional<z.ZodObject<{
2464
+ cacheName: z.ZodOptional<z.ZodString>;
2465
+ networkTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
2466
+ expiration: z.ZodOptional<z.ZodObject<{
2467
+ maxEntries: z.ZodOptional<z.ZodNumber>;
2468
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
2469
+ }, z.core.$strict>>;
2470
+ cacheableResponse: z.ZodOptional<z.ZodObject<{
2471
+ statuses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2472
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2473
+ }, z.core.$strict>>;
2474
+ }, z.core.$strict>>;
2475
+ }, z.core.$strict>>>;
2476
+ navigateFallbackDenylist: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2477
+ source: z.ZodString;
2478
+ flags: z.ZodOptional<z.ZodString>;
2479
+ }, z.core.$strict>]>>>;
2480
+ manifest: z.ZodOptional<z.ZodObject<{
2481
+ name: z.ZodOptional<z.ZodString>;
2482
+ short_name: z.ZodOptional<z.ZodString>;
2483
+ description: z.ZodOptional<z.ZodString>;
2484
+ theme_color: z.ZodOptional<z.ZodString>;
2485
+ background_color: z.ZodOptional<z.ZodString>;
2486
+ display: z.ZodOptional<z.ZodEnum<{
2487
+ browser: "browser";
2488
+ fullscreen: "fullscreen";
2489
+ "minimal-ui": "minimal-ui";
2490
+ standalone: "standalone";
2491
+ }>>;
2492
+ start_url: z.ZodOptional<z.ZodString>;
2493
+ scope: z.ZodOptional<z.ZodString>;
2494
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2495
+ src: z.ZodString;
2496
+ sizes: z.ZodOptional<z.ZodString>;
2497
+ type: z.ZodOptional<z.ZodString>;
2498
+ purpose: z.ZodOptional<z.ZodString>;
2499
+ }, z.core.$strict>>>;
2500
+ file_handlers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2501
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
2502
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2503
+ src: z.ZodString;
2504
+ sizes: z.ZodOptional<z.ZodString>;
2505
+ type: z.ZodOptional<z.ZodString>;
2506
+ purpose: z.ZodOptional<z.ZodString>;
2507
+ }, z.core.$strict>>>;
2508
+ launch_type: z.ZodOptional<z.ZodEnum<{
2509
+ "multiple-clients": "multiple-clients";
2510
+ "single-client": "single-client";
2511
+ }>>;
2512
+ }, z.core.$strict>>>;
2513
+ launch_handler: z.ZodOptional<z.ZodObject<{
2514
+ client_mode: z.ZodEnum<{
2515
+ auto: "auto";
2516
+ "focus-existing": "focus-existing";
2517
+ "navigate-existing": "navigate-existing";
2518
+ "navigate-new": "navigate-new";
2519
+ }>;
2520
+ }, z.core.$strict>>;
2521
+ }, z.core.$strict>>;
2522
+ }, z.core.$strict>>;
2523
+ drives: z.ZodOptional<z.ZodObject<{
2524
+ allowAddDrive: z.ZodOptional<z.ZodBoolean>;
2525
+ preserveStrategy: z.ZodOptional<z.ZodEnum<{
2526
+ "preserve-all": "preserve-all";
2527
+ "preserve-by-url-and-detach": "preserve-by-url-and-detach";
2528
+ }>>;
2529
+ sections: z.ZodOptional<z.ZodObject<{
2530
+ remote: z.ZodOptional<z.ZodObject<{
2531
+ enabled: z.ZodOptional<z.ZodBoolean>;
2532
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
2533
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
2534
+ }, z.core.$strict>>;
2535
+ local: z.ZodOptional<z.ZodObject<{
2536
+ enabled: z.ZodOptional<z.ZodBoolean>;
2537
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
2538
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
2539
+ }, z.core.$strict>>;
2540
+ }, z.core.$strict>>;
2541
+ icons: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2542
+ localDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2543
+ remoteDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2544
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2545
+ document: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2546
+ documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2547
+ }, z.core.$strict>>>;
2548
+ defaultDrives: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2549
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2550
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2551
+ url: TokenableSchema<z.ZodString, ConcatToken | EnvToken | ItemToken<string> | OutputToken<string> | ({
2552
+ $key: true;
2553
+ } | {
2554
+ $key: string;
2555
+ })>;
2556
+ }, z.core.$strict>, z.ZodObject<{
2557
+ local: z.ZodLiteral<true>;
2558
+ id: z.ZodString;
2559
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2560
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2561
+ app: z.ZodOptional<z.ZodString>;
2562
+ }, z.core.$strict>]>>>;
2563
+ }, z.core.$strict>>;
2564
+ renown: z.ZodOptional<z.ZodObject<{
2565
+ url: z.ZodOptional<z.ZodString>;
2566
+ networkId: z.ZodOptional<z.ZodString>;
2567
+ chainId: z.ZodOptional<z.ZodNumber>;
2568
+ namespace: z.ZodOptional<z.ZodString>;
2569
+ adapters: z.ZodOptional<z.ZodObject<{
2570
+ rainbow: z.ZodOptional<z.ZodObject<{
2571
+ walletConnectProjectId: z.ZodOptional<z.ZodString>;
2572
+ infuraProjectId: z.ZodOptional<z.ZodString>;
2573
+ }, z.core.$strict>>;
2574
+ privy: z.ZodOptional<z.ZodObject<{
2575
+ appId: z.ZodOptional<z.ZodString>;
2576
+ clientId: z.ZodOptional<z.ZodString>;
2577
+ methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
2578
+ }, z.core.$strict>>;
2579
+ }, z.core.$strict>>;
2580
+ switchboardUrl: z.ZodOptional<TokenableSchema<z.ZodString, ConcatToken | EnvToken | ItemToken<string> | OutputToken<string> | ({
2581
+ $key: true;
2582
+ } | {
2583
+ $key: string;
2584
+ })>>;
2585
+ }, z.core.$strict>>;
2586
+ }, z.core.$strict>;
2587
+ /** What a connect host's `config` may hold (tokens in token-able fields). */
2588
+ type DeclaredConnectConfigInput = z.input<typeof declaredConnectConfigSchema>;
2589
+ /** One entry of the host.js composition, projected into the served config as
2590
+ * data (module specifier + validated config). */
2591
+ declare const connectCompositionEntrySchema: z.ZodObject<{
2592
+ module: z.ZodString;
2593
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2594
+ }, z.core.$strict>;
2595
+ /** `instance` plus `reactorClient`, derived from the host's reactor backends. */
2596
+ declare const connectRuntimeInstanceSchema: z.ZodObject<{
2597
+ namespace: z.ZodNullable<z.ZodString>;
2598
+ reactorWorker: z.ZodBoolean;
2599
+ multiReactor: z.ZodOptional<z.ZodBoolean>;
2600
+ reactorClient: z.ZodOptional<z.ZodEnum<{
2601
+ "in-process": "in-process";
2602
+ remote: "remote";
2603
+ router: "router";
2604
+ worker: "worker";
2605
+ }>>;
2606
+ }, z.core.$strict>;
2607
+ /** The manifest plus `categories`, derived from contributors' `category`. */
2608
+ declare const connectRuntimePwaManifestSchema: z.ZodObject<{
2609
+ name: z.ZodOptional<z.ZodString>;
2610
+ short_name: z.ZodOptional<z.ZodString>;
2611
+ description: z.ZodOptional<z.ZodString>;
2612
+ theme_color: z.ZodOptional<z.ZodString>;
2613
+ background_color: z.ZodOptional<z.ZodString>;
2614
+ display: z.ZodOptional<z.ZodEnum<{
2615
+ browser: "browser";
2616
+ fullscreen: "fullscreen";
2617
+ "minimal-ui": "minimal-ui";
2618
+ standalone: "standalone";
2619
+ }>>;
2620
+ start_url: z.ZodOptional<z.ZodString>;
2621
+ scope: z.ZodOptional<z.ZodString>;
2622
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2623
+ src: z.ZodString;
2624
+ sizes: z.ZodOptional<z.ZodString>;
2625
+ type: z.ZodOptional<z.ZodString>;
2626
+ purpose: z.ZodOptional<z.ZodString>;
2627
+ }, z.core.$strict>>>;
2628
+ file_handlers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2629
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
2630
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2631
+ src: z.ZodString;
2632
+ sizes: z.ZodOptional<z.ZodString>;
2633
+ type: z.ZodOptional<z.ZodString>;
2634
+ purpose: z.ZodOptional<z.ZodString>;
2635
+ }, z.core.$strict>>>;
2636
+ launch_type: z.ZodOptional<z.ZodEnum<{
2637
+ "multiple-clients": "multiple-clients";
2638
+ "single-client": "single-client";
2639
+ }>>;
2640
+ }, z.core.$strict>>>;
2641
+ launch_handler: z.ZodOptional<z.ZodObject<{
2642
+ client_mode: z.ZodEnum<{
2643
+ auto: "auto";
2644
+ "focus-existing": "focus-existing";
2645
+ "navigate-existing": "navigate-existing";
2646
+ "navigate-new": "navigate-new";
2647
+ }>;
2648
+ }, z.core.$strict>>;
2649
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
2650
+ }, z.core.$strict>;
2651
+ declare const connectRuntimePwaSchema: z.ZodObject<{
2652
+ globPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
2653
+ globIgnores: z.ZodOptional<z.ZodArray<z.ZodString>>;
2654
+ maximumFileSizeToCacheInBytes: z.ZodOptional<z.ZodNumber>;
2655
+ runtimeCaching: z.ZodOptional<z.ZodArray<z.ZodObject<{
2656
+ urlPattern: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2657
+ source: z.ZodString;
2658
+ flags: z.ZodOptional<z.ZodString>;
2659
+ }, z.core.$strict>]>;
2660
+ handler: z.ZodEnum<{
2661
+ CacheFirst: "CacheFirst";
2662
+ CacheOnly: "CacheOnly";
2663
+ NetworkFirst: "NetworkFirst";
2664
+ NetworkOnly: "NetworkOnly";
2665
+ StaleWhileRevalidate: "StaleWhileRevalidate";
2666
+ }>;
2667
+ method: z.ZodOptional<z.ZodEnum<{
2668
+ DELETE: "DELETE";
2669
+ GET: "GET";
2670
+ HEAD: "HEAD";
2671
+ PATCH: "PATCH";
2672
+ POST: "POST";
2673
+ PUT: "PUT";
2674
+ }>>;
2675
+ options: z.ZodOptional<z.ZodObject<{
2676
+ cacheName: z.ZodOptional<z.ZodString>;
2677
+ networkTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
2678
+ expiration: z.ZodOptional<z.ZodObject<{
2679
+ maxEntries: z.ZodOptional<z.ZodNumber>;
2680
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
2681
+ }, z.core.$strict>>;
2682
+ cacheableResponse: z.ZodOptional<z.ZodObject<{
2683
+ statuses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2684
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2685
+ }, z.core.$strict>>;
2686
+ }, z.core.$strict>>;
2687
+ }, z.core.$strict>>>;
2688
+ navigateFallbackDenylist: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2689
+ source: z.ZodString;
2690
+ flags: z.ZodOptional<z.ZodString>;
2691
+ }, z.core.$strict>]>>>;
2692
+ manifest: z.ZodOptional<z.ZodObject<{
2693
+ name: z.ZodOptional<z.ZodString>;
2694
+ short_name: z.ZodOptional<z.ZodString>;
2695
+ description: z.ZodOptional<z.ZodString>;
2696
+ theme_color: z.ZodOptional<z.ZodString>;
2697
+ background_color: z.ZodOptional<z.ZodString>;
2698
+ display: z.ZodOptional<z.ZodEnum<{
2699
+ browser: "browser";
2700
+ fullscreen: "fullscreen";
2701
+ "minimal-ui": "minimal-ui";
2702
+ standalone: "standalone";
2703
+ }>>;
2704
+ start_url: z.ZodOptional<z.ZodString>;
2705
+ scope: z.ZodOptional<z.ZodString>;
2706
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2707
+ src: z.ZodString;
2708
+ sizes: z.ZodOptional<z.ZodString>;
2709
+ type: z.ZodOptional<z.ZodString>;
2710
+ purpose: z.ZodOptional<z.ZodString>;
2711
+ }, z.core.$strict>>>;
2712
+ file_handlers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2713
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
2714
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2715
+ src: z.ZodString;
2716
+ sizes: z.ZodOptional<z.ZodString>;
2717
+ type: z.ZodOptional<z.ZodString>;
2718
+ purpose: z.ZodOptional<z.ZodString>;
2719
+ }, z.core.$strict>>>;
2720
+ launch_type: z.ZodOptional<z.ZodEnum<{
2721
+ "multiple-clients": "multiple-clients";
2722
+ "single-client": "single-client";
2723
+ }>>;
2724
+ }, z.core.$strict>>>;
2725
+ launch_handler: z.ZodOptional<z.ZodObject<{
2726
+ client_mode: z.ZodEnum<{
2727
+ auto: "auto";
2728
+ "focus-existing": "focus-existing";
2729
+ "navigate-existing": "navigate-existing";
2730
+ "navigate-new": "navigate-new";
2731
+ }>;
2732
+ }, z.core.$strict>>;
2733
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
2734
+ }, z.core.$strict>>;
2735
+ }, z.core.$strict>;
2736
+ /** The served `connect` block (runtime powerhouse.config.json). */
2737
+ declare const connectRuntimeConfigSchema: z.ZodObject<{
2738
+ branding: z.ZodOptional<z.ZodObject<{
2739
+ appName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2740
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2741
+ favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2742
+ loader: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2743
+ src: z.ZodString;
2744
+ animation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2745
+ none: "none";
2746
+ pulse: "pulse";
2747
+ spin: "spin";
2748
+ }>>>;
2749
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2750
+ }, z.core.$strict>]>>>;
2751
+ }, z.core.$strict>>;
2752
+ home: z.ZodOptional<z.ZodObject<{
2753
+ background: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2754
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2755
+ light: z.ZodString;
2756
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2757
+ }, z.core.$strict>]>>>;
2758
+ layers: z.ZodArray<z.ZodObject<{
2759
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2760
+ light: z.ZodString;
2761
+ dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2762
+ }, z.core.$strict>]>;
2763
+ position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2764
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2765
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2766
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2767
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2768
+ }, z.core.$strict>>>;
2769
+ width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2770
+ height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2771
+ minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2772
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2773
+ maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2774
+ maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2775
+ opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2776
+ fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2777
+ top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2778
+ right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2779
+ bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2780
+ left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2781
+ }, z.core.$strict>>>;
2782
+ }, z.core.$strict>>;
2783
+ }, z.core.$strict>]>>>;
2784
+ }, z.core.$strict>>;
2785
+ app: z.ZodOptional<z.ZodObject<{
2786
+ logLevel: z.ZodOptional<z.ZodEnum<{
2787
+ debug: "debug";
2788
+ error: "error";
2789
+ info: "info";
2790
+ warn: "warn";
2791
+ }>>;
2792
+ basePath: z.ZodOptional<z.ZodString>;
2793
+ offline: z.ZodOptional<z.ZodBoolean>;
2794
+ studioMode: z.ZodOptional<z.ZodBoolean>;
2795
+ workflowsEnabled: z.ZodOptional<z.ZodBoolean>;
2796
+ }, z.core.$strict>>;
2797
+ ai: z.ZodOptional<z.ZodObject<{
2798
+ assistantEnabled: z.ZodOptional<z.ZodBoolean>;
2799
+ }, z.core.$strict>>;
2800
+ packages: z.ZodOptional<z.ZodObject<{
2801
+ externalEnabled: z.ZodOptional<z.ZodBoolean>;
2802
+ liveReload: z.ZodOptional<z.ZodBoolean>;
2803
+ }, z.core.$strict>>;
2804
+ drives: z.ZodOptional<z.ZodObject<{
2805
+ allowAddDrive: z.ZodOptional<z.ZodBoolean>;
2806
+ defaultDrives: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2807
+ url: z.ZodString;
2808
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2809
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2810
+ }, z.core.$strict>, z.ZodObject<{
2811
+ local: z.ZodLiteral<true>;
2812
+ id: z.ZodString;
2813
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2814
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2815
+ app: z.ZodOptional<z.ZodString>;
2816
+ }, z.core.$strict>]>>>;
2817
+ preserveStrategy: z.ZodOptional<z.ZodEnum<{
2818
+ "preserve-all": "preserve-all";
2819
+ "preserve-by-url-and-detach": "preserve-by-url-and-detach";
2820
+ }>>;
2821
+ sections: z.ZodOptional<z.ZodObject<{
2822
+ remote: z.ZodOptional<z.ZodObject<{
2823
+ enabled: z.ZodOptional<z.ZodBoolean>;
2824
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
2825
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
2826
+ }, z.core.$strict>>;
2827
+ local: z.ZodOptional<z.ZodObject<{
2828
+ enabled: z.ZodOptional<z.ZodBoolean>;
2829
+ allowAdd: z.ZodOptional<z.ZodBoolean>;
2830
+ allowDelete: z.ZodOptional<z.ZodBoolean>;
2831
+ }, z.core.$strict>>;
2832
+ }, z.core.$strict>>;
2833
+ icons: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2834
+ localDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2835
+ remoteDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2836
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2837
+ document: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2838
+ documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2839
+ }, z.core.$strict>>>;
2840
+ }, z.core.$strict>>;
2841
+ renown: z.ZodOptional<z.ZodObject<{
2842
+ url: z.ZodOptional<z.ZodString>;
2843
+ networkId: z.ZodOptional<z.ZodString>;
2844
+ chainId: z.ZodOptional<z.ZodNumber>;
2845
+ namespace: z.ZodOptional<z.ZodString>;
2846
+ switchboardUrl: z.ZodOptional<z.ZodString>;
2847
+ adapters: z.ZodOptional<z.ZodObject<{
2848
+ rainbow: z.ZodOptional<z.ZodObject<{
2849
+ walletConnectProjectId: z.ZodOptional<z.ZodString>;
2850
+ infuraProjectId: z.ZodOptional<z.ZodString>;
2851
+ }, z.core.$strict>>;
2852
+ privy: z.ZodOptional<z.ZodObject<{
2853
+ appId: z.ZodOptional<z.ZodString>;
2854
+ clientId: z.ZodOptional<z.ZodString>;
2855
+ methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
2856
+ }, z.core.$strict>>;
2857
+ }, z.core.$strict>>;
2858
+ }, z.core.$strict>>;
2859
+ sentry: z.ZodOptional<z.ZodObject<{
2860
+ dsn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2861
+ env: z.ZodOptional<z.ZodString>;
2862
+ tracing: z.ZodOptional<z.ZodBoolean>;
2863
+ }, z.core.$strict>>;
2864
+ openPanel: z.ZodOptional<z.ZodObject<{
2865
+ clientId: z.ZodOptional<z.ZodString>;
2866
+ apiUrl: z.ZodOptional<z.ZodString>;
2867
+ trackUiEvents: z.ZodOptional<z.ZodBoolean>;
2868
+ trackOperations: z.ZodOptional<z.ZodBoolean>;
2869
+ }, z.core.$strict>>;
2870
+ reactor: z.ZodOptional<z.ZodObject<{
2871
+ featureFlags: z.ZodOptional<z.ZodObject<{
2872
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
2873
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
2874
+ authGroups: z.ZodOptional<z.ZodBoolean>;
2875
+ authConditions: z.ZodOptional<z.ZodBoolean>;
2876
+ }, z.core.$strict>>;
2877
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
2878
+ legacy: "legacy";
2879
+ "v2-required": "v2-required";
2880
+ }>>;
2881
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
2882
+ "read-only": "read-only";
2883
+ refuse: "refuse";
2884
+ }>>;
2885
+ }, z.core.$strict>>;
2886
+ composition: z.ZodOptional<z.ZodArray<z.ZodObject<{
2887
+ module: z.ZodString;
2888
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2889
+ }, z.core.$strict>>>;
2890
+ instance: z.ZodOptional<z.ZodObject<{
2891
+ namespace: z.ZodNullable<z.ZodString>;
2892
+ reactorWorker: z.ZodBoolean;
2893
+ multiReactor: z.ZodOptional<z.ZodBoolean>;
2894
+ reactorClient: z.ZodOptional<z.ZodEnum<{
2895
+ "in-process": "in-process";
2896
+ remote: "remote";
2897
+ router: "router";
2898
+ worker: "worker";
2899
+ }>>;
2900
+ }, z.core.$strict>>;
2901
+ pwa: z.ZodOptional<z.ZodObject<{
2902
+ globPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
2903
+ globIgnores: z.ZodOptional<z.ZodArray<z.ZodString>>;
2904
+ maximumFileSizeToCacheInBytes: z.ZodOptional<z.ZodNumber>;
2905
+ runtimeCaching: z.ZodOptional<z.ZodArray<z.ZodObject<{
2906
+ urlPattern: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2907
+ source: z.ZodString;
2908
+ flags: z.ZodOptional<z.ZodString>;
2909
+ }, z.core.$strict>]>;
2910
+ handler: z.ZodEnum<{
2911
+ CacheFirst: "CacheFirst";
2912
+ CacheOnly: "CacheOnly";
2913
+ NetworkFirst: "NetworkFirst";
2914
+ NetworkOnly: "NetworkOnly";
2915
+ StaleWhileRevalidate: "StaleWhileRevalidate";
2916
+ }>;
2917
+ method: z.ZodOptional<z.ZodEnum<{
2918
+ DELETE: "DELETE";
2919
+ GET: "GET";
2920
+ HEAD: "HEAD";
2921
+ PATCH: "PATCH";
2922
+ POST: "POST";
2923
+ PUT: "PUT";
2924
+ }>>;
2925
+ options: z.ZodOptional<z.ZodObject<{
2926
+ cacheName: z.ZodOptional<z.ZodString>;
2927
+ networkTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
2928
+ expiration: z.ZodOptional<z.ZodObject<{
2929
+ maxEntries: z.ZodOptional<z.ZodNumber>;
2930
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
2931
+ }, z.core.$strict>>;
2932
+ cacheableResponse: z.ZodOptional<z.ZodObject<{
2933
+ statuses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2934
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2935
+ }, z.core.$strict>>;
2936
+ }, z.core.$strict>>;
2937
+ }, z.core.$strict>>>;
2938
+ navigateFallbackDenylist: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2939
+ source: z.ZodString;
2940
+ flags: z.ZodOptional<z.ZodString>;
2941
+ }, z.core.$strict>]>>>;
2942
+ manifest: z.ZodOptional<z.ZodObject<{
2943
+ name: z.ZodOptional<z.ZodString>;
2944
+ short_name: z.ZodOptional<z.ZodString>;
2945
+ description: z.ZodOptional<z.ZodString>;
2946
+ theme_color: z.ZodOptional<z.ZodString>;
2947
+ background_color: z.ZodOptional<z.ZodString>;
2948
+ display: z.ZodOptional<z.ZodEnum<{
2949
+ browser: "browser";
2950
+ fullscreen: "fullscreen";
2951
+ "minimal-ui": "minimal-ui";
2952
+ standalone: "standalone";
2953
+ }>>;
2954
+ start_url: z.ZodOptional<z.ZodString>;
2955
+ scope: z.ZodOptional<z.ZodString>;
2956
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2957
+ src: z.ZodString;
2958
+ sizes: z.ZodOptional<z.ZodString>;
2959
+ type: z.ZodOptional<z.ZodString>;
2960
+ purpose: z.ZodOptional<z.ZodString>;
2961
+ }, z.core.$strict>>>;
2962
+ file_handlers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2963
+ accept: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
2964
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2965
+ src: z.ZodString;
2966
+ sizes: z.ZodOptional<z.ZodString>;
2967
+ type: z.ZodOptional<z.ZodString>;
2968
+ purpose: z.ZodOptional<z.ZodString>;
2969
+ }, z.core.$strict>>>;
2970
+ launch_type: z.ZodOptional<z.ZodEnum<{
2971
+ "multiple-clients": "multiple-clients";
2972
+ "single-client": "single-client";
2973
+ }>>;
2974
+ }, z.core.$strict>>>;
2975
+ launch_handler: z.ZodOptional<z.ZodObject<{
2976
+ client_mode: z.ZodEnum<{
2977
+ auto: "auto";
2978
+ "focus-existing": "focus-existing";
2979
+ "navigate-existing": "navigate-existing";
2980
+ "navigate-new": "navigate-new";
2981
+ }>;
2982
+ }, z.core.$strict>>;
2983
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
2984
+ }, z.core.$strict>>;
2985
+ }, z.core.$strict>>;
2986
+ }, z.core.$strict>;
2987
+ type ConnectRuntimeConfig = z.output<typeof connectRuntimeConfigSchema>;
2988
+ //#endregion
1118
2989
  //#region document-model/schemas.d.ts
1119
2990
  declare const ManifestSchema: z.ZodObject<{
1120
2991
  name: z.ZodString;
@@ -1167,7 +3038,123 @@ declare const ManifestSchema: z.ZodObject<{
1167
3038
  required: z.ZodOptional<z.ZodBoolean>;
1168
3039
  default: z.ZodOptional<z.ZodString>;
1169
3040
  }, z.core.$strip>>>;
1170
- pwa: z.ZodOptional<z.ZodType<PHConnectPwa, unknown, z.core.$ZodTypeInternals<PHConnectPwa, unknown>>>;
3041
+ pwa: z.ZodOptional<z.ZodType<{
3042
+ globPatterns?: string[] | undefined;
3043
+ globIgnores?: string[] | undefined;
3044
+ maximumFileSizeToCacheInBytes?: number | undefined;
3045
+ runtimeCaching?: {
3046
+ urlPattern: string | {
3047
+ source: string;
3048
+ flags?: string | undefined;
3049
+ };
3050
+ handler: "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
3051
+ method?: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | undefined;
3052
+ options?: {
3053
+ cacheName?: string | undefined;
3054
+ networkTimeoutSeconds?: number | undefined;
3055
+ expiration?: {
3056
+ maxEntries?: number | undefined;
3057
+ maxAgeSeconds?: number | undefined;
3058
+ } | undefined;
3059
+ cacheableResponse?: {
3060
+ statuses?: number[] | undefined;
3061
+ headers?: Record<string, string> | undefined;
3062
+ } | undefined;
3063
+ } | undefined;
3064
+ }[] | undefined;
3065
+ navigateFallbackDenylist?: (string | {
3066
+ source: string;
3067
+ flags?: string | undefined;
3068
+ })[] | undefined;
3069
+ manifest?: {
3070
+ name?: string | undefined;
3071
+ short_name?: string | undefined;
3072
+ description?: string | undefined;
3073
+ theme_color?: string | undefined;
3074
+ background_color?: string | undefined;
3075
+ display?: "browser" | "fullscreen" | "minimal-ui" | "standalone" | undefined;
3076
+ start_url?: string | undefined;
3077
+ scope?: string | undefined;
3078
+ icons?: {
3079
+ src: string;
3080
+ sizes?: string | undefined;
3081
+ type?: string | undefined;
3082
+ purpose?: string | undefined;
3083
+ }[] | undefined;
3084
+ file_handlers?: {
3085
+ accept: Record<string, string[]>;
3086
+ icons?: {
3087
+ src: string;
3088
+ sizes?: string | undefined;
3089
+ type?: string | undefined;
3090
+ purpose?: string | undefined;
3091
+ }[] | undefined;
3092
+ launch_type?: "multiple-clients" | "single-client" | undefined;
3093
+ }[] | undefined;
3094
+ launch_handler?: {
3095
+ client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
3096
+ } | undefined;
3097
+ categories?: string[] | undefined;
3098
+ } | undefined;
3099
+ }, unknown, z.core.$ZodTypeInternals<{
3100
+ globPatterns?: string[] | undefined;
3101
+ globIgnores?: string[] | undefined;
3102
+ maximumFileSizeToCacheInBytes?: number | undefined;
3103
+ runtimeCaching?: {
3104
+ urlPattern: string | {
3105
+ source: string;
3106
+ flags?: string | undefined;
3107
+ };
3108
+ handler: "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
3109
+ method?: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | undefined;
3110
+ options?: {
3111
+ cacheName?: string | undefined;
3112
+ networkTimeoutSeconds?: number | undefined;
3113
+ expiration?: {
3114
+ maxEntries?: number | undefined;
3115
+ maxAgeSeconds?: number | undefined;
3116
+ } | undefined;
3117
+ cacheableResponse?: {
3118
+ statuses?: number[] | undefined;
3119
+ headers?: Record<string, string> | undefined;
3120
+ } | undefined;
3121
+ } | undefined;
3122
+ }[] | undefined;
3123
+ navigateFallbackDenylist?: (string | {
3124
+ source: string;
3125
+ flags?: string | undefined;
3126
+ })[] | undefined;
3127
+ manifest?: {
3128
+ name?: string | undefined;
3129
+ short_name?: string | undefined;
3130
+ description?: string | undefined;
3131
+ theme_color?: string | undefined;
3132
+ background_color?: string | undefined;
3133
+ display?: "browser" | "fullscreen" | "minimal-ui" | "standalone" | undefined;
3134
+ start_url?: string | undefined;
3135
+ scope?: string | undefined;
3136
+ icons?: {
3137
+ src: string;
3138
+ sizes?: string | undefined;
3139
+ type?: string | undefined;
3140
+ purpose?: string | undefined;
3141
+ }[] | undefined;
3142
+ file_handlers?: {
3143
+ accept: Record<string, string[]>;
3144
+ icons?: {
3145
+ src: string;
3146
+ sizes?: string | undefined;
3147
+ type?: string | undefined;
3148
+ purpose?: string | undefined;
3149
+ }[] | undefined;
3150
+ launch_type?: "multiple-clients" | "single-client" | undefined;
3151
+ }[] | undefined;
3152
+ launch_handler?: {
3153
+ client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
3154
+ } | undefined;
3155
+ categories?: string[] | undefined;
3156
+ } | undefined;
3157
+ }, unknown>>>;
1171
3158
  connectRoutes: z.ZodOptional<z.ZodBoolean>;
1172
3159
  }, z.core.$strip>;
1173
3160
  //#endregion
@@ -1240,6 +3227,10 @@ export declare const PEER_EXTERNAL_DEPENDENCIES: {
1240
3227
  readonly peer: "^4";
1241
3228
  readonly dev: "4.6.5";
1242
3229
  };
3230
+ readonly "@tanstack/react-router": {
3231
+ readonly peer: "^1.170.41";
3232
+ readonly dev: "1.170.41";
3233
+ };
1243
3234
  };
1244
3235
  export declare const FEATURE_DEPENDENCIES: {
1245
3236
  readonly analyticsProcessor: {
@@ -1374,106 +3365,33 @@ type PowerhousePackage = {
1374
3365
  provider?: PHPackageProvider;
1375
3366
  url?: string;
1376
3367
  };
1377
- type PHConnectBranding = {
1378
- appName?: string;
1379
- homeBackground?: string | null;
1380
- /** The tab icon's file, relative to the project; read at build, not shipped. */
1381
- favicon?: string | null;
1382
- };
1383
- type PHConnectDefaultDriveRemote = {
1384
- url: string;
1385
- name?: string | null;
1386
- icon?: string | null;
1387
- };
1388
- type PHConnectDefaultDriveLocal = {
1389
- /** Discriminator: this entry is a local drive created on first boot. */
1390
- local: true;
1391
- /** Stable drive id; the drive is not re-created on later boots. */
1392
- id: string;
1393
- name?: string | null;
1394
- icon?: string | null;
1395
- /** Drive app (preferred editor) to open on the drive. */
1396
- app?: string;
1397
- };
1398
- type PHConnectDefaultDrive = PHConnectDefaultDriveRemote | PHConnectDefaultDriveLocal;
1399
- type PHConnectDriveSection = {
1400
- enabled?: boolean;
1401
- allowAdd?: boolean;
1402
- allowDelete?: boolean;
1403
- };
1404
- type PHConnectDriveSections = {
1405
- remote?: PHConnectDriveSection;
1406
- local?: PHConnectDriveSection;
1407
- };
1408
- type PHConnectDrives = {
1409
- allowAddDrive?: boolean;
1410
- defaultDrives?: PHConnectDefaultDrive[];
1411
- preserveStrategy?: DrivePreserveStrategy;
1412
- sections?: PHConnectDriveSections;
1413
- };
1414
- type PHConnectApp = {
1415
- logLevel?: "debug" | "info" | "warn" | "error";
1416
- basePath?: string;
1417
- offline?: boolean;
1418
- studioMode?: boolean;
1419
- workflowsEnabled?: boolean;
1420
- };
1421
- type PHConnectAi = {
1422
- /** Enables the in-browser AI assistant (chat FAB + window). Off by default. */
1423
- assistantEnabled?: boolean;
1424
- };
1425
- type PHConnectPackages = {
1426
- externalEnabled?: boolean;
1427
- /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
1428
- liveReload?: boolean;
1429
- };
1430
- type PHRenownRainbowAdapterConfig = {
1431
- /** WalletConnect project id; required for the rainbow adapter to function. */
1432
- walletConnectProjectId?: string;
1433
- /** Optional Infura project id used to build RPC transports. */
1434
- infuraProjectId?: string;
1435
- };
1436
- type PHRenownPrivyAdapterConfig = {
1437
- /** Privy application id; required for the privy adapter to function. */
1438
- appId?: string;
1439
- /** Optional Privy client id. */
1440
- clientId?: string;
1441
- /** Login methods this adapter offers; defaults per adapter when omitted. */
1442
- methods?: string[];
1443
- };
1444
- type PHConnectRenownAdapters = {
1445
- rainbow?: PHRenownRainbowAdapterConfig;
1446
- privy?: PHRenownPrivyAdapterConfig;
1447
- };
1448
- type PHConnectRenown = {
1449
- url?: string;
1450
- networkId?: string;
1451
- chainId?: number;
1452
- /** Renown localStorage namespace; share it across Connects to share login. */
1453
- namespace?: string;
1454
- /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
1455
- switchboardUrl?: string;
1456
- /** Per-adapter wallet config; presence of a key enables that adapter. */
1457
- adapters?: PHConnectRenownAdapters;
1458
- };
1459
- type PHConnectSentry = {
1460
- /** Sentry DSN URL. `null` disables Sentry entirely. */
1461
- dsn?: string | null;
1462
- /** Sentry environment label. */
1463
- env?: string;
1464
- /** Enable Sentry performance tracing. */
1465
- tracing?: boolean;
1466
- };
1467
- type PHConnectOpenPanel = {
1468
- /** OpenPanel client id. Empty string (the default) disables OpenPanel. */
1469
- clientId?: string;
1470
- /** OpenPanel API URL, for self-hosted instances. */
1471
- apiUrl?: string;
1472
- /** Track UI events. */
1473
- trackUiEvents?: boolean;
1474
- /** Track document operations. */
1475
- trackOperations?: boolean;
1476
- };
3368
+ type PHImageRef = z.infer<typeof connectImageRefSchema>;
3369
+ type PHSchemedImage = z.infer<typeof connectSchemedImageSchema>;
3370
+ type PHSchemedColor = z.infer<typeof connectSchemedColorSchema>;
3371
+ type PHLength = z.infer<typeof connectLengthSchema>;
3372
+ type PHEdges = z.infer<typeof connectEdgesSchema>;
3373
+ type PHBackgroundLayer = z.infer<typeof connectBackgroundLayerSchema>;
3374
+ type PHBackgroundLayers = z.infer<typeof connectBackgroundLayersSchema>;
3375
+ type PHBackground = z.infer<typeof connectBackgroundSchema>;
3376
+ type PHConnectBranding = z.infer<typeof connectBrandingSchema>;
3377
+ type PHConnectLoader = z.infer<typeof connectLoaderSchema>;
3378
+ type PHConnectHome = z.infer<typeof connectHomeSchema>;
3379
+ type PHConnectExplorerIcons = z.infer<typeof connectExplorerIconsSchema>;
3380
+ type PHConnectDefaultDriveRemote = z.infer<typeof connectDefaultDriveRemoteSchema>;
3381
+ type PHConnectDefaultDriveLocal = z.infer<typeof connectDefaultDriveLocalSchema>;
3382
+ type PHConnectDefaultDrive = z.infer<typeof connectDefaultDriveSchema>;
3383
+ type PHConnectDriveSection = z.infer<typeof connectDriveSectionSchema>;
3384
+ type PHConnectDriveSections = z.infer<typeof connectDriveSectionsSchema>;
3385
+ type PHConnectDrives = z.infer<typeof connectDrivesSchema>;
3386
+ type PHConnectApp = z.infer<typeof connectAppSchema>;
3387
+ type PHConnectAi = z.infer<typeof connectAiSchema>;
3388
+ type PHConnectPackages = z.infer<typeof connectPackagesSchema>;
3389
+ type PHRenownRainbowAdapterConfig = z.infer<typeof connectRenownRainbowAdapterSchema>;
3390
+ type PHRenownPrivyAdapterConfig = z.infer<typeof connectRenownPrivyAdapterSchema>;
3391
+ type PHConnectRenownAdapters = z.infer<typeof connectRenownAdaptersSchema>;
3392
+ type PHConnectRenown = z.infer<typeof connectRenownSchema>;
3393
+ type PHConnectSentry = z.infer<typeof connectSentrySchema>;
3394
+ type PHConnectOpenPanel = z.infer<typeof connectOpenPanelSchema>;
1477
3395
  /**
1478
3396
  * Which reactor client Connect runs. One field selects all four shapes the
1479
3397
  * multi-reactor work standardized (each a peer `IReactorClient`):
@@ -1482,161 +3400,39 @@ type PHConnectOpenPanel = {
1482
3400
  * - `remote`: a pure client to a remote Switchboard reactor over GraphQL,
1483
3401
  * with NO local reactor and NO PGlite download.
1484
3402
  * - `router`: the tab's reactor (local) PLUS remote backends, routed.
1485
- * Derived from the host's reactor backends (see reactorClientMode): a lone
1486
- * remote backend -> `remote`, local+remote -> `router`, a worker backend ->
1487
- * `worker`, else `in-process`. When unset, Connect falls back to the legacy
1488
- * `reactorWorker`/`multiReactor` booleans, so existing configs are unchanged.
3403
+ * Derived from the host's reactor backends (see reactorClientMode); when
3404
+ * unset, Connect falls back to the legacy `reactorWorker`/`multiReactor`
3405
+ * booleans.
1489
3406
  */
1490
- type PHReactorClientMode = "in-process" | "worker" | "remote" | "router";
1491
- type PHConnectInstance = {
1492
- namespace: string | null;
1493
- reactorWorker: boolean;
1494
- /** Routes through the in-browser reactor plus remote backends. Off by default. */
1495
- multiReactor?: boolean;
1496
- /** Explicit client selection; supersedes reactorWorker/multiReactor when set. */
1497
- reactorClient?: PHReactorClientMode;
1498
- };
3407
+ type PHReactorClientMode = z.infer<typeof connectReactorClientModeSchema>;
3408
+ /** Served `instance`: the authored fields plus the derived `reactorClient`. */
3409
+ type PHConnectInstance = z.infer<typeof connectRuntimeInstanceSchema>;
1499
3410
  /** Each flag implies its predecessors, and must match the fleet Connect syncs
1500
3411
  * with or the two compute different replay outcomes. */
1501
- type PHConnectReactorFeatureFlags = {
1502
- /** Decide writes from the document stream instead of the meta cache. */
1503
- documentDecisions?: boolean;
1504
- /** Enforce the auth scope's policy at admission, replay, and read. */
1505
- authEnforcement?: boolean;
1506
- /** Let `{ group }` principals match, via the group documents' rosters. */
1507
- authGroups?: boolean;
1508
- /** Evaluate `where` / `match` conditions on grants. */
1509
- authConditions?: boolean;
1510
- };
1511
- type PHConnectReactor = {
1512
- featureFlags?: PHConnectReactorFeatureFlags;
1513
- /** What new documents are created as; `legacy` while peers predate v2-required documents. */
1514
- createSignaturePolicy?: "legacy" | "v2-required";
1515
- /** Stored documents at protocol versions this build does not run: refuse to boot, or keep them read-only. */
1516
- unsupportedStoredDocuments?: "refuse" | "read-only";
1517
- };
1518
- /**
1519
- * A URL-matching pattern for a service-worker runtime-caching rule, in
1520
- * JSON-serialisable form. A plain string is handed to Workbox verbatim (exact
1521
- * URL or same-origin path match). `{ source, flags }` is reconstructed into a
1522
- * `RegExp` at build time — use it for prefix/suffix/origin matches (e.g.
1523
- * `{ source: "^https://api\\.acme\\.io/" }`). Function-valued patterns aren't
1524
- * expressible here; regex covers the realistic package cases.
1525
- */
1526
- type PHConnectPwaUrlPattern = string | {
1527
- source: string;
1528
- flags?: string;
1529
- };
1530
- type PHConnectPwaCacheStrategy = "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
1531
- /** Serialisable subset of a Workbox `RuntimeCaching` rule. */
1532
- type PHConnectPwaRuntimeCaching = {
1533
- urlPattern: PHConnectPwaUrlPattern;
1534
- handler: PHConnectPwaCacheStrategy;
1535
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "PATCH";
1536
- options?: {
1537
- cacheName?: string;
1538
- /** Seconds a NetworkFirst rule waits for the network before falling back
1539
- * to the cache. */
1540
- networkTimeoutSeconds?: number;
1541
- expiration?: {
1542
- maxEntries?: number;
1543
- maxAgeSeconds?: number;
1544
- };
1545
- cacheableResponse?: {
1546
- statuses?: number[];
1547
- headers?: Record<string, string>;
1548
- };
1549
- };
1550
- };
1551
- type PHConnectPwaIcon = {
1552
- src: string;
1553
- sizes?: string;
1554
- type?: string;
1555
- purpose?: string;
1556
- };
1557
- /**
1558
- * A File Handling API entry a package or project contributes: the OS-level
1559
- * file types the installed Connect PWA offers to open. There is deliberately
1560
- * no `action` field — consuming launched files requires runtime code that
1561
- * lives in Connect itself, so every handler (built-in or contributed) opens
1562
- * at Connect's app root, injected at build time.
1563
- */
1564
- type PHConnectPwaFileHandler = {
1565
- /** MIME type → file extensions (each must start with "."). */
1566
- accept: Record<string, string[]>;
1567
- /** OS-level file-type icons. */
1568
- icons?: PHConnectPwaIcon[];
1569
- launch_type?: "single-client" | "multiple-clients";
1570
- };
1571
- /** Web-app-manifest fields a package or project may override. */
1572
- type PHConnectPwaManifest = {
1573
- name?: string;
1574
- short_name?: string;
1575
- description?: string;
1576
- theme_color?: string;
1577
- background_color?: string;
1578
- display?: "fullscreen" | "standalone" | "minimal-ui" | "browser";
1579
- start_url?: string;
1580
- scope?: string;
1581
- icons?: PHConnectPwaIcon[];
1582
- /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
1583
- file_handlers?: PHConnectPwaFileHandler[];
1584
- /** How the OS launches the app for handled files/links. */
1585
- launch_handler?: {
1586
- client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
1587
- };
1588
- /** App-store-style categories. NOT authored under `connect.pwa` — derived at
1589
- * build/runtime from the `category` field of every contributing
1590
- * `powerhouse.manifest.json` (project + packages), unioned across them. */
1591
- categories?: string[];
1592
- };
3412
+ type PHConnectReactorFeatureFlags = z.infer<typeof connectReactorFeatureFlagsSchema>;
3413
+ type PHConnectReactor = z.infer<typeof connectReactorSchema>;
3414
+ type PHConnectPwaUrlPattern = z.infer<typeof connectPwaUrlPatternSchema>;
3415
+ type PHConnectPwaCacheStrategy = z.infer<typeof connectPwaCacheStrategySchema>;
3416
+ type PHConnectPwaRuntimeCaching = z.infer<typeof connectPwaRuntimeCachingSchema>;
3417
+ type PHConnectPwaIcon = z.infer<typeof connectPwaIconSchema>;
3418
+ type PHConnectPwaFileHandler = z.infer<typeof connectPwaFileHandlerSchema>;
3419
+ /** Served manifest overrides: the authored fields plus `categories`, derived
3420
+ * from every contributing `powerhouse.manifest.json`'s `category`. */
3421
+ type PHConnectPwaManifest = z.infer<typeof connectRuntimePwaManifestSchema>;
1593
3422
  /**
1594
- * PWA / service-worker overrides contributed by a package or the project.
1595
- * Layered on top of Connect's hardcoded PWA defaults at build time. Scalar
1596
- * fields deep-merge (later layer wins); every array member — the manifest
1597
- * arrays (`icons`, `file_handlers`, and the derived `categories`) plus the
1598
- * top-level `globPatterns`, `globIgnores`, `runtimeCaching` and
1599
- * `navigateFallbackDenylist` — is additive (concatenated/unioned);
1600
- * `maximumFileSizeToCacheInBytes` takes the max across contributors.
1601
- * Precedence: defaults < package fragments < project config.
3423
+ * PWA / service-worker overrides contributed by a package or the project,
3424
+ * layered on Connect's hardcoded PWA defaults at build time. Scalars
3425
+ * deep-merge (later layer wins), arrays are additive and
3426
+ * `maximumFileSizeToCacheInBytes` takes the max. Precedence: defaults <
3427
+ * package fragments < project config.
1602
3428
  */
1603
- type PHConnectPwa = {
1604
- manifest?: PHConnectPwaManifest;
1605
- /** Extra Workbox precache globs, unioned with the built-in patterns. */
1606
- globPatterns?: string[];
1607
- /** Extra Workbox precache ignore globs, unioned with the built-in list. */
1608
- globIgnores?: string[];
1609
- /** Raise the precache file-size ceiling; the max across contributors wins. */
1610
- maximumFileSizeToCacheInBytes?: number;
1611
- /** Additional runtime-caching rules, appended after the built-in rules. */
1612
- runtimeCaching?: PHConnectPwaRuntimeCaching[];
1613
- /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
1614
- navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
1615
- };
3429
+ type PHConnectPwa = z.infer<typeof connectRuntimePwaSchema>;
1616
3430
  /** One entry of the host.js composition, projected into the served config as
1617
- * DATA (module specifier + validated config) — the browser pipeline resolves
1618
- * and runs them (rewire R3). Verb filtering happens at the runner. */
1619
- type PHConnectCompositionEntry = {
1620
- module: string;
1621
- config?: Record<string, unknown>;
1622
- };
1623
- type PHConnectRuntimeConfig = {
1624
- /** The plugin composition this Connect boots with (rewire R3): present
1625
- * only when the host file declares runner.plugins — absent means the
1626
- * classic defaults. */
1627
- composition?: PHConnectCompositionEntry[];
1628
- branding?: PHConnectBranding;
1629
- app?: PHConnectApp;
1630
- ai?: PHConnectAi;
1631
- packages?: PHConnectPackages;
1632
- drives?: PHConnectDrives;
1633
- renown?: PHConnectRenown;
1634
- sentry?: PHConnectSentry;
1635
- openPanel?: PHConnectOpenPanel;
1636
- instance?: PHConnectInstance;
1637
- reactor?: PHConnectReactor;
1638
- pwa?: PHConnectPwa;
1639
- };
3431
+ * DATA (module specifier + validated config). */
3432
+ type PHConnectCompositionEntry = z.infer<typeof connectCompositionEntrySchema>;
3433
+ /** The served `connect` block. For the authored block (powerhouse.config.json,
3434
+ * the connect host's `config`) see `ConnectConfig`. */
3435
+ type PHConnectRuntimeConfig = z.infer<typeof connectRuntimeConfigSchema>;
1640
3436
  /** Which Renown instance a reactor authenticates against, server-side. */
1641
3437
  type PHReactorRenown = {
1642
3438
  /** "self" reads this reactor's own renown read model; "remote" (default)
@@ -1692,6 +3488,9 @@ type PowerhouseConfig = {
1692
3488
  driveUrl?: string;
1693
3489
  connectPort?: number;
1694
3490
  };
3491
+ assistant?: {
3492
+ port?: number;
3493
+ };
1695
3494
  workflows?: {
1696
3495
  enabled?: boolean;
1697
3496
  };
@@ -2338,6 +4137,17 @@ export declare const sourceConfigSchema: {
2338
4137
  };
2339
4138
  };
2340
4139
  };
4140
+ readonly assistant: {
4141
+ readonly type: "object";
4142
+ readonly additionalProperties: false;
4143
+ readonly description: "The project's agent host (hosts/assistant): a headless Mastra agent API on the project switchboard.";
4144
+ readonly properties: {
4145
+ readonly port: {
4146
+ readonly type: "integer";
4147
+ readonly description: "Port the assistant host's chat-completions API listens on. Read by hosts/assistant/host.js (default 4910).";
4148
+ };
4149
+ };
4150
+ };
2341
4151
  readonly workflows: {
2342
4152
  readonly type: "object";
2343
4153
  readonly additionalProperties: false;
@@ -2354,643 +4164,7 @@ export declare const sourceConfigSchema: {
2354
4164
  readonly description: "Project-wide package registry endpoint. Used by `ph install` / `ph publish` / `ph registry-login` and Switchboard, and copied verbatim into the runtime config so the Connect SPA's Package Manager UI reads the same registry.";
2355
4165
  };
2356
4166
  readonly connect: {
2357
- readonly type: "object";
2358
- readonly additionalProperties: false;
2359
- readonly properties: {
2360
- readonly branding: {
2361
- readonly type: "object";
2362
- readonly additionalProperties: false;
2363
- readonly description: "App identity and visual branding.";
2364
- readonly properties: {
2365
- readonly appName: {
2366
- readonly type: "string";
2367
- readonly description: "Browser tab title and any in-app brand text. Defaults to 'Powerhouse Connect'.";
2368
- };
2369
- readonly homeBackground: {
2370
- readonly type: readonly ["string", "null"];
2371
- readonly description: "Hero image on the empty home screen. URL or path to override; null or omitted uses the bundled default image.";
2372
- };
2373
- readonly favicon: {
2374
- readonly type: readonly ["string", "null"];
2375
- readonly description: "The browser tab icon: a file (.ico, .svg or .png) relative to the project, served and built as icon.ico. A build input; the built runtime config leaves it out. `ph connect build --favicon` wins over it.";
2376
- };
2377
- };
2378
- };
2379
- readonly app: {
2380
- readonly type: "object";
2381
- readonly additionalProperties: false;
2382
- readonly description: "Top-level Connect application behaviour.";
2383
- readonly properties: {
2384
- readonly logLevel: {
2385
- readonly type: "string";
2386
- readonly enum: readonly ["debug", "info", "warn", "error"];
2387
- readonly description: "Log level applied by Connect's logger at boot. Affects browser-side output only.";
2388
- readonly default: "info";
2389
- };
2390
- readonly basePath: {
2391
- readonly type: "string";
2392
- readonly description: "Base path Connect is mounted under (e.g. '/connect' for subpath deploys). Normalised at runtime to start and end with '/'. Defaults to the build-time BASE_URL.";
2393
- readonly default: "/";
2394
- };
2395
- readonly offline: {
2396
- readonly type: "boolean";
2397
- readonly description: "When true (default), the build emits a precaching service worker so Connect's app shell works offline, and the SPA registers it at boot. Set false to opt this deployment out: no service worker is built, the SPA skips registration, and any previously-installed worker is unregistered.";
2398
- readonly default: true;
2399
- };
2400
- readonly studioMode: {
2401
- readonly type: "boolean";
2402
- readonly description: "Studio mode. Enables builder-only capabilities: Connect loads the vetra package and exposes DocumentModel (and vetra spec types) as creatable documents. Forced on by `ph vetra` / `ph connect studio`; false by default.";
2403
- readonly default: false;
2404
- };
2405
- readonly workflowsEnabled: {
2406
- readonly type: "boolean";
2407
- readonly description: "Powerhouse workflows in Connect. When true the tab loads the @powerhousedao/workflow package (workflow + connection documents, their editors and Workflow Studio) and the reactor worker registers its document models. Falls back to the top-level `workflows.enabled`; set it to override that for Connect. Independent of studioMode. False when neither is set.";
2408
- };
2409
- };
2410
- };
2411
- readonly ai: {
2412
- readonly type: "object";
2413
- readonly additionalProperties: false;
2414
- readonly description: "AI assistant (chat) behaviour.";
2415
- readonly properties: {
2416
- readonly assistantEnabled: {
2417
- readonly type: "boolean";
2418
- readonly description: "When true, Connect mounts the in-browser AI assistant (bottom-right chat FAB that talks to a user-configured OpenAI-compatible endpoint and acts on the reactor). Disabled by default.";
2419
- readonly default: false;
2420
- };
2421
- };
2422
- };
2423
- readonly packages: {
2424
- readonly type: "object";
2425
- readonly additionalProperties: false;
2426
- readonly description: "Runtime behaviour for the Connect package manager (separate from top-level `packages[]`, which lists which packages to load).";
2427
- readonly properties: {
2428
- readonly externalEnabled: {
2429
- readonly type: "boolean";
2430
- readonly description: "When false, Connect refuses to load any package that wasn't bundled at build time. Affirmative replacement for the legacy PH_CONNECT_EXTERNAL_PACKAGES_DISABLED env var.";
2431
- readonly default: true;
2432
- };
2433
- readonly liveReload: {
2434
- readonly type: "boolean";
2435
- readonly description: "When true, Connect subscribes to the static-mode `/__packages` SSE channel so live publishes flow into the running tab without a page reload. Only works under hosting that serves this channel (e.g. ph-clint static mode).";
2436
- readonly default: false;
2437
- };
2438
- };
2439
- };
2440
- readonly drives: {
2441
- readonly type: "object";
2442
- readonly additionalProperties: false;
2443
- readonly description: "Default-drive and add-drive UI behaviour.";
2444
- readonly properties: {
2445
- readonly allowAddDrive: {
2446
- readonly type: "boolean";
2447
- readonly description: "When false, the SPA hides the 'add drive' affordance entirely (top-level). Per-section overrides live in `sections.{remote,local}.allowAdd`.";
2448
- readonly default: true;
2449
- };
2450
- readonly defaultDrives: {
2451
- readonly type: "array";
2452
- readonly description: "Drives the SPA auto-connects to on first load. Each entry is either a remote drive (a URL, with optional name/icon overrides) or a local drive (created locally on first boot, with a stable id and optional name/icon/app).";
2453
- readonly default: readonly [];
2454
- readonly items: {
2455
- readonly oneOf: readonly [{
2456
- readonly type: "object";
2457
- readonly additionalProperties: false;
2458
- readonly required: readonly ["url"];
2459
- readonly properties: {
2460
- readonly url: {
2461
- readonly type: "string";
2462
- };
2463
- readonly name: {
2464
- readonly type: readonly ["string", "null"];
2465
- };
2466
- readonly icon: {
2467
- readonly type: readonly ["string", "null"];
2468
- };
2469
- };
2470
- }, {
2471
- readonly type: "object";
2472
- readonly additionalProperties: false;
2473
- readonly required: readonly ["local", "id"];
2474
- readonly properties: {
2475
- readonly local: {
2476
- readonly const: true;
2477
- readonly description: "Discriminator: this entry is a local drive created on first boot.";
2478
- };
2479
- readonly id: {
2480
- readonly type: "string";
2481
- readonly description: "Stable drive id. The drive is created with this id on first boot and is not re-created on later boots.";
2482
- };
2483
- readonly name: {
2484
- readonly type: readonly ["string", "null"];
2485
- };
2486
- readonly icon: {
2487
- readonly type: readonly ["string", "null"];
2488
- };
2489
- readonly app: {
2490
- readonly type: "string";
2491
- readonly description: "Drive app (preferred editor) to open on the drive.";
2492
- };
2493
- };
2494
- }];
2495
- };
2496
- };
2497
- readonly preserveStrategy: {
2498
- readonly type: "string";
2499
- readonly enum: readonly ["preserve-all", "preserve-by-url-and-detach"];
2500
- readonly description: "Strategy applied when defaultDrives change between deploys. 'preserve-all' keeps user-added drives untouched; 'preserve-by-url-and-detach' detaches removed default drives. No schema default — opt-in only.";
2501
- };
2502
- readonly sections: {
2503
- readonly type: "object";
2504
- readonly additionalProperties: false;
2505
- readonly description: "Per-section visibility and affordance toggles. `remote` covers what was historically split into 'public' + 'cloud'; `local` is browser-local drives.";
2506
- readonly properties: {
2507
- readonly remote: {
2508
- readonly type: "object";
2509
- readonly additionalProperties: false;
2510
- readonly description: "Visibility and add/delete affordances for a drive section in the sidebar.";
2511
- readonly properties: {
2512
- readonly enabled: {
2513
- readonly type: "boolean";
2514
- readonly description: "When false, the section is hidden in the sidebar.";
2515
- readonly default: true;
2516
- };
2517
- readonly allowAdd: {
2518
- readonly type: "boolean";
2519
- readonly description: "When false, the section's 'add drive' affordance is hidden.";
2520
- readonly default: true;
2521
- };
2522
- readonly allowDelete: {
2523
- readonly type: "boolean";
2524
- readonly description: "When false, drives in this section cannot be deleted from the UI.";
2525
- readonly default: true;
2526
- };
2527
- };
2528
- };
2529
- readonly local: {
2530
- readonly type: "object";
2531
- readonly additionalProperties: false;
2532
- readonly description: "Visibility and add/delete affordances for a drive section in the sidebar.";
2533
- readonly properties: {
2534
- readonly enabled: {
2535
- readonly type: "boolean";
2536
- readonly description: "When false, the section is hidden in the sidebar.";
2537
- readonly default: true;
2538
- };
2539
- readonly allowAdd: {
2540
- readonly type: "boolean";
2541
- readonly description: "When false, the section's 'add drive' affordance is hidden.";
2542
- readonly default: true;
2543
- };
2544
- readonly allowDelete: {
2545
- readonly type: "boolean";
2546
- readonly description: "When false, drives in this section cannot be deleted from the UI.";
2547
- readonly default: true;
2548
- };
2549
- };
2550
- };
2551
- };
2552
- };
2553
- };
2554
- };
2555
- readonly renown: {
2556
- readonly type: "object";
2557
- readonly additionalProperties: false;
2558
- readonly description: "Renown identity / authentication coordinates.";
2559
- readonly properties: {
2560
- readonly url: {
2561
- readonly type: "string";
2562
- readonly description: "Renown auth service URL.";
2563
- readonly default: "https://www.renown.id";
2564
- };
2565
- readonly networkId: {
2566
- readonly type: "string";
2567
- readonly description: "CAIP-2 network namespace (e.g. 'eip155').";
2568
- readonly default: "eip155";
2569
- };
2570
- readonly chainId: {
2571
- readonly type: "number";
2572
- readonly description: "CAIP-2 chain reference within the network namespace.";
2573
- readonly default: 1;
2574
- };
2575
- readonly namespace: {
2576
- readonly type: "string";
2577
- readonly description: "Renown localStorage namespace; share it across Connects to share login.";
2578
- };
2579
- readonly switchboardUrl: {
2580
- readonly type: "string";
2581
- readonly description: "Switchboard GraphQL URL. When set, Connect enables in-page (no-redirect) Renown sign-in; otherwise it falls back to the redirect flow via `url`.";
2582
- };
2583
- readonly adapters: {
2584
- readonly type: "object";
2585
- readonly additionalProperties: false;
2586
- readonly description: "Per-adapter wallet config for in-page auth. Presence of an adapter key enables it; omit or leave empty for redirect-only behaviour.";
2587
- readonly properties: {
2588
- readonly rainbow: {
2589
- readonly type: "object";
2590
- readonly additionalProperties: false;
2591
- readonly description: "wagmi + RainbowKit external-wallet adapter config.";
2592
- readonly properties: {
2593
- readonly walletConnectProjectId: {
2594
- readonly type: "string";
2595
- readonly description: "WalletConnect project id; required for this adapter to function.";
2596
- };
2597
- readonly infuraProjectId: {
2598
- readonly type: "string";
2599
- readonly description: "Optional Infura project id used to build RPC transports.";
2600
- };
2601
- };
2602
- };
2603
- readonly privy: {
2604
- readonly type: "object";
2605
- readonly additionalProperties: false;
2606
- readonly description: "Privy embedded/social adapter config.";
2607
- readonly properties: {
2608
- readonly appId: {
2609
- readonly type: "string";
2610
- readonly description: "Privy application id; required for this adapter to function.";
2611
- };
2612
- readonly clientId: {
2613
- readonly type: "string";
2614
- readonly description: "Optional Privy client id.";
2615
- };
2616
- readonly methods: {
2617
- readonly type: "array";
2618
- readonly description: "Login methods this adapter offers; default per adapter when omitted.";
2619
- readonly items: {
2620
- readonly type: "string";
2621
- };
2622
- };
2623
- };
2624
- };
2625
- };
2626
- };
2627
- };
2628
- };
2629
- readonly sentry: {
2630
- readonly type: "object";
2631
- readonly additionalProperties: false;
2632
- readonly description: "Sentry error-tracking coordinates. Set `dsn` to enable Sentry; leave `dsn` null to disable. The Sentry release tag stays build-time (stamped via Vite's `define` from WORKSPACE_VERSION) so it always matches the sourcemaps uploaded by CI.";
2633
- readonly properties: {
2634
- readonly dsn: {
2635
- readonly type: readonly ["string", "null"];
2636
- readonly description: "Sentry DSN URL. `null` disables Sentry entirely; the SPA never loads the Sentry SDK chunk.";
2637
- readonly default: null;
2638
- };
2639
- readonly env: {
2640
- readonly type: "string";
2641
- readonly description: "Sentry environment label, surfaced as the `environment` tag on every event.";
2642
- readonly default: "dev";
2643
- };
2644
- readonly tracing: {
2645
- readonly type: "boolean";
2646
- readonly description: "Enable Sentry performance tracing.";
2647
- readonly default: false;
2648
- };
2649
- };
2650
- };
2651
- readonly openPanel: {
2652
- readonly type: "object";
2653
- readonly additionalProperties: false;
2654
- readonly description: "OpenPanel product analytics. Set `clientId` to enable; an empty `clientId` disables it. Events are only sent after the user accepts analytics cookies. Takes precedence over the build-time PH_CONNECT_OPENPANEL_* env vars.";
2655
- readonly properties: {
2656
- readonly clientId: {
2657
- readonly type: "string";
2658
- readonly description: "OpenPanel client id. Empty string disables OpenPanel entirely.";
2659
- readonly default: "";
2660
- };
2661
- readonly apiUrl: {
2662
- readonly type: "string";
2663
- readonly description: "OpenPanel API URL for self-hosted instances (e.g. 'https://openpanel.example/api'). Omit to use OpenPanel's hosted API.";
2664
- };
2665
- readonly trackUiEvents: {
2666
- readonly type: "boolean";
2667
- readonly description: "Track UI events.";
2668
- readonly default: true;
2669
- };
2670
- readonly trackOperations: {
2671
- readonly type: "boolean";
2672
- readonly description: "Track document operations.";
2673
- readonly default: true;
2674
- };
2675
- };
2676
- };
2677
- readonly instance: {
2678
- readonly type: "object";
2679
- readonly additionalProperties: false;
2680
- readonly required: readonly ["namespace", "reactorWorker"];
2681
- readonly description: "Per-instance identity. Lets one origin host multiple isolated Connect instances, each with its own storage + SharedWorker namespace.";
2682
- readonly properties: {
2683
- readonly namespace: {
2684
- readonly type: readonly ["string", "null"];
2685
- readonly description: "Explicit storage/SharedWorker namespace for this instance. `null` derives it from the base path (and, later, the configured endpoint), so root deployments stay byte-identical.";
2686
- readonly default: null;
2687
- };
2688
- readonly reactorWorker: {
2689
- readonly type: "boolean";
2690
- readonly description: "Host the reactor in a shared worker instead of on the main thread. Off by default; the main-thread reactor stays the proven path until cutover is verified. Packaged deployments load the worker from the prebuilt bundle `ph connect build` emits under __reactor_worker__/ (the dev server builds it lazily at the same path); when that bundle is absent the feature reports itself unavailable instead of starting a worker that cannot load.";
2691
- readonly default: false;
2692
- };
2693
- readonly multiReactor: {
2694
- readonly type: "boolean";
2695
- readonly description: "Opt-in multi-reactor routing. When on, Connect routes through the in-browser reactor plus remote backends instead of the single in-browser reactor. Off by default; the single-reactor path is unchanged.";
2696
- readonly default: false;
2697
- };
2698
- };
2699
- };
2700
- readonly reactor: {
2701
- readonly type: "object";
2702
- readonly additionalProperties: false;
2703
- readonly description: "Settings for the reactor Connect runs in the browser, on the main thread or in the shared worker alike.";
2704
- readonly properties: {
2705
- readonly featureFlags: {
2706
- readonly type: "object";
2707
- readonly additionalProperties: false;
2708
- readonly description: "Enforcement flags. Each implies its predecessors, and the reactor refuses to boot on a set that names a later flag without an earlier one. These are consensus settings: a Connect syncing with a fleet must carry the same flags the fleet does, or the two reach different replay outcomes for the same history and diverge.";
2709
- readonly properties: {
2710
- readonly documentDecisions: {
2711
- readonly type: "boolean";
2712
- readonly description: "Decide writes from the document stream rather than the document meta cache, so a backdated deletion denies the operations that sort after it.";
2713
- readonly default: false;
2714
- };
2715
- readonly authEnforcement: {
2716
- readonly type: "boolean";
2717
- readonly description: "Enforce the auth scope's policy at admission, replay, and read. Requires documentDecisions.";
2718
- readonly default: false;
2719
- };
2720
- readonly authGroups: {
2721
- readonly type: "boolean";
2722
- readonly description: "Let `{ group }` principals match against the rosters of the group documents a policy names. Requires authEnforcement.";
2723
- readonly default: false;
2724
- };
2725
- readonly authConditions: {
2726
- readonly type: "boolean";
2727
- readonly description: "Evaluate `where` and `match` conditions on grants. Requires authGroups. Do not enable on a fleet `preflight:auth` reports as crossing a reducer version.";
2728
- readonly default: false;
2729
- };
2730
- };
2731
- };
2732
- readonly createSignaturePolicy: {
2733
- readonly type: "string";
2734
- readonly enum: readonly ["legacy", "v2-required"];
2735
- readonly description: "What new documents are created as. `v2-required` documents accept only v2 action signatures and take content-addressed ids; set `legacy` while any peer Connect syncs with predates them. Existing documents keep their policy.";
2736
- readonly default: "v2-required";
2737
- };
2738
- readonly unsupportedStoredDocuments: {
2739
- readonly type: "string";
2740
- readonly enum: readonly ["refuse", "read-only"];
2741
- readonly description: "What the reactor does when this browser's store holds documents at protocol versions this build does not run. `refuse` fails the boot and names the versions; `read-only` boots and keeps those documents read-only.";
2742
- readonly default: "refuse";
2743
- };
2744
- };
2745
- };
2746
- readonly pwa: {
2747
- readonly type: "object";
2748
- readonly additionalProperties: false;
2749
- readonly description: "Progressive-web-app / service-worker overrides, layered on Connect's built-in PWA defaults at build time. Scalar fields deep-merge (this layer wins); the array members (icons, file_handlers, globs, runtimeCaching and denylist patterns) are additive; maximumFileSizeToCacheInBytes takes the max across contributors. (categories is not set here — it is derived from the manifest's category field.) Only applied when connect.app.offline is true.";
2750
- readonly properties: {
2751
- readonly manifest: {
2752
- readonly type: "object";
2753
- readonly additionalProperties: false;
2754
- readonly description: "Web-app-manifest field overrides.";
2755
- readonly properties: {
2756
- readonly name: {
2757
- readonly type: "string";
2758
- };
2759
- readonly short_name: {
2760
- readonly type: "string";
2761
- };
2762
- readonly description: {
2763
- readonly type: "string";
2764
- };
2765
- readonly theme_color: {
2766
- readonly type: "string";
2767
- };
2768
- readonly background_color: {
2769
- readonly type: "string";
2770
- };
2771
- readonly display: {
2772
- readonly type: "string";
2773
- readonly enum: readonly ["fullscreen", "standalone", "minimal-ui", "browser"];
2774
- };
2775
- readonly start_url: {
2776
- readonly type: "string";
2777
- };
2778
- readonly scope: {
2779
- readonly type: "string";
2780
- };
2781
- readonly icons: {
2782
- readonly type: "array";
2783
- readonly description: "Icons appended to the built-in set and de-duplicated by (src, sizes, purpose).";
2784
- readonly items: {
2785
- readonly type: "object";
2786
- readonly additionalProperties: false;
2787
- readonly required: readonly ["src"];
2788
- readonly properties: {
2789
- readonly src: {
2790
- readonly type: "string";
2791
- };
2792
- readonly sizes: {
2793
- readonly type: "string";
2794
- };
2795
- readonly type: {
2796
- readonly type: "string";
2797
- };
2798
- readonly purpose: {
2799
- readonly type: "string";
2800
- };
2801
- };
2802
- };
2803
- };
2804
- readonly file_handlers: {
2805
- readonly type: "array";
2806
- readonly description: "File associations appended after Connect's built-in .phd/.phdm handler and de-duplicated on the whole entry. Entries only declare accepted types; there is no action field, because opening the files requires Connect's own runtime handling, so every handler opens at the app root.";
2807
- readonly items: {
2808
- readonly type: "object";
2809
- readonly additionalProperties: false;
2810
- readonly required: readonly ["accept"];
2811
- readonly properties: {
2812
- readonly accept: {
2813
- readonly type: "object";
2814
- readonly description: "MIME type → file extensions. Each extension must start with '.'; browsers ignore entries without it.";
2815
- readonly additionalProperties: {
2816
- readonly type: "array";
2817
- readonly items: {
2818
- readonly type: "string";
2819
- readonly pattern: "^\\.";
2820
- };
2821
- };
2822
- };
2823
- readonly icons: {
2824
- readonly type: "array";
2825
- readonly description: "OS-level file-type icons.";
2826
- readonly items: {
2827
- readonly type: "object";
2828
- readonly additionalProperties: false;
2829
- readonly required: readonly ["src"];
2830
- readonly properties: {
2831
- readonly src: {
2832
- readonly type: "string";
2833
- };
2834
- readonly sizes: {
2835
- readonly type: "string";
2836
- };
2837
- readonly type: {
2838
- readonly type: "string";
2839
- };
2840
- readonly purpose: {
2841
- readonly type: "string";
2842
- };
2843
- };
2844
- };
2845
- };
2846
- readonly launch_type: {
2847
- readonly type: "string";
2848
- readonly enum: readonly ["single-client", "multiple-clients"];
2849
- };
2850
- };
2851
- };
2852
- };
2853
- readonly launch_handler: {
2854
- readonly type: "object";
2855
- readonly additionalProperties: false;
2856
- readonly required: readonly ["client_mode"];
2857
- readonly description: "How the OS launches the app for handled files/links. Connect defaults to focus-existing.";
2858
- readonly properties: {
2859
- readonly client_mode: {
2860
- readonly type: "string";
2861
- readonly enum: readonly ["auto", "focus-existing", "navigate-existing", "navigate-new"];
2862
- };
2863
- };
2864
- };
2865
- };
2866
- };
2867
- readonly globPatterns: {
2868
- readonly type: "array";
2869
- readonly items: {
2870
- readonly type: "string";
2871
- };
2872
- readonly description: "Extra Workbox precache globs, unioned with the built-ins.";
2873
- };
2874
- readonly globIgnores: {
2875
- readonly type: "array";
2876
- readonly items: {
2877
- readonly type: "string";
2878
- };
2879
- readonly description: "Extra precache ignore globs, unioned with the built-ins.";
2880
- };
2881
- readonly maximumFileSizeToCacheInBytes: {
2882
- readonly type: "number";
2883
- readonly description: "Raise the precache file-size ceiling. The max across all contributors wins, so no contributor can shrink another's limit.";
2884
- };
2885
- readonly runtimeCaching: {
2886
- readonly type: "array";
2887
- readonly description: "Runtime-caching rules appended after the built-in rules. Workbox is first-match-wins, so these cannot override a built-in rule matching the same URL.";
2888
- readonly items: {
2889
- readonly type: "object";
2890
- readonly additionalProperties: false;
2891
- readonly required: readonly ["urlPattern", "handler"];
2892
- readonly properties: {
2893
- readonly urlPattern: {
2894
- readonly description: "URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.";
2895
- readonly oneOf: readonly [{
2896
- readonly type: "string";
2897
- }, {
2898
- readonly type: "object";
2899
- readonly additionalProperties: false;
2900
- readonly required: readonly ["source"];
2901
- readonly properties: {
2902
- readonly source: {
2903
- readonly type: "string";
2904
- readonly description: "RegExp source.";
2905
- };
2906
- readonly flags: {
2907
- readonly type: "string";
2908
- readonly description: "RegExp flags (e.g. 'i').";
2909
- };
2910
- };
2911
- }];
2912
- };
2913
- readonly handler: {
2914
- readonly type: "string";
2915
- readonly enum: readonly ["CacheFirst", "CacheOnly", "NetworkFirst", "NetworkOnly", "StaleWhileRevalidate"];
2916
- };
2917
- readonly method: {
2918
- readonly type: "string";
2919
- readonly enum: readonly ["GET", "POST", "PUT", "DELETE", "HEAD", "PATCH"];
2920
- };
2921
- readonly options: {
2922
- readonly type: "object";
2923
- readonly additionalProperties: false;
2924
- readonly properties: {
2925
- readonly cacheName: {
2926
- readonly type: "string";
2927
- };
2928
- readonly networkTimeoutSeconds: {
2929
- readonly type: "number";
2930
- readonly description: "Seconds a NetworkFirst rule waits for the network before falling back to the cache.";
2931
- };
2932
- readonly expiration: {
2933
- readonly type: "object";
2934
- readonly additionalProperties: false;
2935
- readonly properties: {
2936
- readonly maxEntries: {
2937
- readonly type: "number";
2938
- };
2939
- readonly maxAgeSeconds: {
2940
- readonly type: "number";
2941
- };
2942
- };
2943
- };
2944
- readonly cacheableResponse: {
2945
- readonly type: "object";
2946
- readonly additionalProperties: false;
2947
- readonly properties: {
2948
- readonly statuses: {
2949
- readonly type: "array";
2950
- readonly items: {
2951
- readonly type: "number";
2952
- };
2953
- };
2954
- readonly headers: {
2955
- readonly type: "object";
2956
- readonly additionalProperties: {
2957
- readonly type: "string";
2958
- };
2959
- };
2960
- };
2961
- };
2962
- };
2963
- };
2964
- };
2965
- };
2966
- };
2967
- readonly navigateFallbackDenylist: {
2968
- readonly type: "array";
2969
- readonly description: "Extra SPA navigate-fallback denylist patterns, unioned with the built-ins.";
2970
- readonly items: {
2971
- readonly description: "URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.";
2972
- readonly oneOf: readonly [{
2973
- readonly type: "string";
2974
- }, {
2975
- readonly type: "object";
2976
- readonly additionalProperties: false;
2977
- readonly required: readonly ["source"];
2978
- readonly properties: {
2979
- readonly source: {
2980
- readonly type: "string";
2981
- readonly description: "RegExp source.";
2982
- };
2983
- readonly flags: {
2984
- readonly type: "string";
2985
- readonly description: "RegExp flags (e.g. 'i').";
2986
- };
2987
- };
2988
- }];
2989
- };
2990
- };
2991
- };
2992
- };
2993
- };
4167
+ readonly properties?: Record<string, unknown>;
2994
4168
  readonly description: "Connect-specific UI customisations. Copied verbatim into the runtime config at build time.";
2995
4169
  };
2996
4170
  };
@@ -3013,6 +4187,6 @@ export declare class NodeVersionError extends Error {
3013
4187
  }
3014
4188
  export declare function assertNodeVersion(nodeVersion?: string): void;
3015
4189
  //#endregion
3016
- export type { DrivePreserveStrategies, DrivePreserveStrategy, LogLevel, LogLevels, PHConnectAi, PHConnectApp, PHConnectBranding, PHConnectCompositionEntry, PHConnectDefaultDrive, PHConnectDefaultDriveLocal, PHConnectDefaultDriveRemote, PHConnectDriveSection, PHConnectDriveSections, PHConnectDrives, PHConnectInstance, PHConnectOpenPanel, PHConnectPackages, PHConnectPwa, PHConnectPwaCacheStrategy, PHConnectPwaFileHandler, PHConnectPwaIcon, PHConnectPwaManifest, PHConnectPwaRuntimeCaching, PHConnectPwaUrlPattern, PHConnectReactor, PHConnectReactorFeatureFlags, PHConnectRenown, PHConnectRenownAdapters, PHConnectRuntimeConfig, PHConnectSentry, PHPackageProvider, PHReactorClientMode, PHReactorRenown, PHRenownPrivyAdapterConfig, PHRenownRainbowAdapterConfig, PackageManagerArgs, ParsedCmdResult, PathValidation, PowerhouseConfig, PowerhousePackage, ServiceAction, ServiceActions };
4190
+ export type { DrivePreserveStrategies, DrivePreserveStrategy, LogLevel, LogLevels, PHBackground, PHBackgroundLayer, PHBackgroundLayers, PHConnectAi, PHConnectApp, PHConnectBranding, PHConnectCompositionEntry, PHConnectDefaultDrive, PHConnectDefaultDriveLocal, PHConnectDefaultDriveRemote, PHConnectDriveSection, PHConnectDriveSections, PHConnectDrives, PHConnectExplorerIcons, PHConnectHome, PHConnectInstance, PHConnectLoader, PHConnectOpenPanel, PHConnectPackages, PHConnectPwa, PHConnectPwaCacheStrategy, PHConnectPwaFileHandler, PHConnectPwaIcon, PHConnectPwaManifest, PHConnectPwaRuntimeCaching, PHConnectPwaUrlPattern, PHConnectReactor, PHConnectReactorFeatureFlags, PHConnectRenown, PHConnectRenownAdapters, PHConnectRuntimeConfig, PHConnectSentry, PHEdges, PHImageRef, PHLength, PHPackageProvider, PHReactorClientMode, PHReactorRenown, PHRenownPrivyAdapterConfig, PHRenownRainbowAdapterConfig, PHSchemedColor, PHSchemedImage, PackageManagerArgs, ParsedCmdResult, PathValidation, PowerhouseConfig, PowerhousePackage, ServiceAction, ServiceActions };
3017
4191
  export {};
3018
4192
  //# sourceMappingURL=index.d.mts.map