@xyo-network/xl1-protocol-sdk 3.0.10 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/Archivists/ArchivistFactory.d.ts +3 -3
- package/dist/neutral/Archivists/ArchivistFactory.d.ts.map +1 -1
- package/dist/neutral/Archivists/MemoryArchivistFactory.d.ts +3 -3
- package/dist/neutral/Archivists/MemoryArchivistFactory.d.ts.map +1 -1
- package/dist/neutral/Archivists/archivistFactoryRegistry.d.ts +3 -3
- package/dist/neutral/Archivists/archivistFactoryRegistry.d.ts.map +1 -1
- package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts +0 -2
- package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts.map +1 -1
- package/dist/neutral/CreatableProvider/CreatableProvider.d.ts +3 -3
- package/dist/neutral/CreatableProvider/CreatableProvider.d.ts.map +1 -1
- package/dist/neutral/capabilities/connectionTypes.d.ts +2 -2
- package/dist/neutral/capabilities/connectionTypes.d.ts.map +1 -1
- package/dist/neutral/capabilities/needsFromProviderBindings.d.ts +2 -2
- package/dist/neutral/capabilities/needsFromProviderBindings.d.ts.map +1 -1
- package/dist/neutral/capabilities/resolveProviders.d.ts +2 -3
- package/dist/neutral/capabilities/resolveProviders.d.ts.map +1 -1
- package/dist/neutral/config/Actor.d.ts +0 -12
- package/dist/neutral/config/Actor.d.ts.map +1 -1
- package/dist/neutral/config/Actors.d.ts +0 -2
- package/dist/neutral/config/Actors.d.ts.map +1 -1
- package/dist/neutral/config/Base.d.ts +0 -2
- package/dist/neutral/config/Base.d.ts.map +1 -1
- package/dist/neutral/config/Config.d.ts +0 -8
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/HostActor.d.ts +0 -12
- package/dist/neutral/config/HostActor.d.ts.map +1 -1
- package/dist/neutral/config/ProviderBinding.d.ts +0 -2
- package/dist/neutral/config/ProviderBinding.d.ts.map +1 -1
- package/dist/neutral/config/{transports/Transport.d.ts → connections/Connection.d.ts} +29 -29
- package/dist/neutral/config/connections/Connection.d.ts.map +1 -0
- package/dist/neutral/config/connections/Mongo.d.ts.map +1 -0
- package/dist/neutral/config/{transports/Rpc.d.ts → connections/RpcRemote.d.ts} +1 -1
- package/dist/neutral/config/connections/RpcRemote.d.ts.map +1 -0
- package/dist/neutral/config/connections/S3.d.ts.map +1 -0
- package/dist/neutral/config/connections/index.d.ts +4 -5
- package/dist/neutral/config/connections/index.d.ts.map +1 -1
- package/dist/neutral/config/index.d.ts +1 -2
- package/dist/neutral/config/index.d.ts.map +1 -1
- package/dist/neutral/config/normalizeConnectionsConfig.d.ts +2 -2
- package/dist/neutral/config/normalizeConnectionsConfig.d.ts.map +1 -1
- package/dist/neutral/config/resolveRestConnectionEndpoint.d.ts +5 -0
- package/dist/neutral/config/resolveRestConnectionEndpoint.d.ts.map +1 -0
- package/dist/neutral/context/Actor.d.ts +0 -12
- package/dist/neutral/context/Actor.d.ts.map +1 -1
- package/dist/neutral/context/HostActor.d.ts +0 -12
- package/dist/neutral/context/HostActor.d.ts.map +1 -1
- package/dist/neutral/getFileConfig.d.ts +0 -4
- package/dist/neutral/getFileConfig.d.ts.map +1 -1
- package/dist/neutral/getFileConfig.mjs +87 -136
- package/dist/neutral/getFileConfig.mjs.map +4 -4
- package/dist/neutral/index.mjs +365 -406
- package/dist/neutral/index.mjs.map +4 -4
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts +0 -12
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/AbstractRestDataLake.d.ts +11 -1
- package/dist/neutral/simple/datalake/AbstractRestDataLake.d.ts.map +1 -1
- package/dist/neutral/test/index.mjs +85 -134
- package/dist/neutral/test/index.mjs.map +4 -4
- package/package.json +6 -6
- package/dist/neutral/config/DataLake/DataLake.d.ts +0 -8
- package/dist/neutral/config/DataLake/DataLake.d.ts.map +0 -1
- package/dist/neutral/config/DataLake/DataLakeRemoteConfig.d.ts +0 -8
- package/dist/neutral/config/DataLake/DataLakeRemoteConfig.d.ts.map +0 -1
- package/dist/neutral/config/DataLake/RestDataLakeConfig.d.ts +0 -9
- package/dist/neutral/config/DataLake/RestDataLakeConfig.d.ts.map +0 -1
- package/dist/neutral/config/DataLake/RouterDataLakeConfig.d.ts +0 -10
- package/dist/neutral/config/DataLake/RouterDataLakeConfig.d.ts.map +0 -1
- package/dist/neutral/config/DataLake/index.d.ts +0 -5
- package/dist/neutral/config/DataLake/index.d.ts.map +0 -1
- package/dist/neutral/config/transports/Mongo.d.ts.map +0 -1
- package/dist/neutral/config/transports/Rpc.d.ts.map +0 -1
- package/dist/neutral/config/transports/S3.d.ts.map +0 -1
- package/dist/neutral/config/transports/Transport.d.ts.map +0 -1
- package/dist/neutral/config/transports/index.d.ts +0 -5
- package/dist/neutral/config/transports/index.d.ts.map +0 -1
- /package/dist/neutral/config/{transports → connections}/Mongo.d.ts +0 -0
- /package/dist/neutral/config/{transports → connections}/S3.d.ts +0 -0
|
@@ -31,7 +31,6 @@ export declare const BaseConfigContextZod: z.ZodMiniObject<{
|
|
|
31
31
|
readonly __address: true;
|
|
32
32
|
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-protocol-js").XyoQuantAddress, string>>]>>;
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
|
-
dataLake: z.ZodMiniOptional<import("zod").ZodType<import("../config/index.ts").DataLakeConfig, unknown, z.core.$ZodTypeInternals<import("../config/index.ts").DataLakeConfig, unknown>>>;
|
|
35
34
|
log: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
36
35
|
logLevel: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
37
36
|
error: "error";
|
|
@@ -84,7 +83,6 @@ export declare const BaseConfigContextZod: z.ZodMiniObject<{
|
|
|
84
83
|
}, z.core.$strip>], "type">>>>;
|
|
85
84
|
providerBindings: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
86
85
|
connection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
-
transport: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
86
|
}, z.core.$strip>>>>;
|
|
89
87
|
providers: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
90
88
|
moniker: import("zod").ZodString;
|
|
@@ -178,7 +176,6 @@ export declare const isBaseConfigContext: <T>(value: T) => value is T & {
|
|
|
178
176
|
}>;
|
|
179
177
|
providerBindings: Record<string, {
|
|
180
178
|
connection?: string | undefined;
|
|
181
|
-
transport?: string | undefined;
|
|
182
179
|
}>;
|
|
183
180
|
providers: {
|
|
184
181
|
[x: string]: unknown;
|
|
@@ -210,7 +207,6 @@ export declare const isBaseConfigContext: <T>(value: T) => value is T & {
|
|
|
210
207
|
readonly __address: true;
|
|
211
208
|
}) | import("@xyo-network/sdk-protocol-js").XyoQuantAddress)[] | undefined;
|
|
212
209
|
};
|
|
213
|
-
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
214
210
|
};
|
|
215
211
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
216
212
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -275,7 +271,6 @@ export declare const asBaseConfigContext: {
|
|
|
275
271
|
}>;
|
|
276
272
|
providerBindings: Record<string, {
|
|
277
273
|
connection?: string | undefined;
|
|
278
|
-
transport?: string | undefined;
|
|
279
274
|
}>;
|
|
280
275
|
providers: {
|
|
281
276
|
[x: string]: unknown;
|
|
@@ -307,7 +302,6 @@ export declare const asBaseConfigContext: {
|
|
|
307
302
|
readonly __address: true;
|
|
308
303
|
}) | import("@xyo-network/sdk-protocol-js").XyoQuantAddress)[] | undefined;
|
|
309
304
|
};
|
|
310
|
-
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
311
305
|
};
|
|
312
306
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
313
307
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -370,7 +364,6 @@ export declare const asBaseConfigContext: {
|
|
|
370
364
|
}>;
|
|
371
365
|
providerBindings: Record<string, {
|
|
372
366
|
connection?: string | undefined;
|
|
373
|
-
transport?: string | undefined;
|
|
374
367
|
}>;
|
|
375
368
|
providers: {
|
|
376
369
|
[x: string]: unknown;
|
|
@@ -402,7 +395,6 @@ export declare const asBaseConfigContext: {
|
|
|
402
395
|
readonly __address: true;
|
|
403
396
|
}) | import("@xyo-network/sdk-protocol-js").XyoQuantAddress)[] | undefined;
|
|
404
397
|
};
|
|
405
|
-
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
406
398
|
};
|
|
407
399
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
408
400
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -468,7 +460,6 @@ export declare const toBaseConfigContext: {
|
|
|
468
460
|
}>;
|
|
469
461
|
providerBindings: Record<string, {
|
|
470
462
|
connection?: string | undefined;
|
|
471
|
-
transport?: string | undefined;
|
|
472
463
|
}>;
|
|
473
464
|
providers: {
|
|
474
465
|
[x: string]: unknown;
|
|
@@ -500,7 +491,6 @@ export declare const toBaseConfigContext: {
|
|
|
500
491
|
readonly __address: true;
|
|
501
492
|
}) | import("@xyo-network/sdk-protocol-js").XyoQuantAddress)[] | undefined;
|
|
502
493
|
};
|
|
503
|
-
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
504
494
|
};
|
|
505
495
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
506
496
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -563,7 +553,6 @@ export declare const toBaseConfigContext: {
|
|
|
563
553
|
}>;
|
|
564
554
|
providerBindings: Record<string, {
|
|
565
555
|
connection?: string | undefined;
|
|
566
|
-
transport?: string | undefined;
|
|
567
556
|
}>;
|
|
568
557
|
providers: {
|
|
569
558
|
[x: string]: unknown;
|
|
@@ -595,7 +584,6 @@ export declare const toBaseConfigContext: {
|
|
|
595
584
|
readonly __address: true;
|
|
596
585
|
}) | import("@xyo-network/sdk-protocol-js").XyoQuantAddress)[] | undefined;
|
|
597
586
|
};
|
|
598
|
-
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
599
587
|
};
|
|
600
588
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
601
589
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatableProviderContext.zod.d.ts","sourceRoot":"","sources":["../../../src/model/CreatableProviderContext.zod.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAE5B,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,oBAAoB,CAAA;AACnE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAA;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAE9D,wCAAwC;AACxC,eAAO,MAAM,uBAAuB,6DAAsG,CAAA;AAE1I,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CAAC,8BAA8B,CACqE,CAAA;AAEzJ,yCAAyC;AACzC,MAAM,MAAM,4BAA4B,GAAG,cAAc,GAAG;IAC1D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,8BAA8B,CAAA;IACvC,cAAc,CAAC,EAAE,oBAAoB,CAAA;CACtC,CAAA;AAED,qCAAqC;AACrC,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"CreatableProviderContext.zod.d.ts","sourceRoot":"","sources":["../../../src/model/CreatableProviderContext.zod.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAE5B,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,oBAAoB,CAAA;AACnE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAA;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAE9D,wCAAwC;AACxC,eAAO,MAAM,uBAAuB,6DAAsG,CAAA;AAE1I,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CAAC,8BAA8B,CACqE,CAAA;AAEzJ,yCAAyC;AACzC,MAAM,MAAM,4BAA4B,GAAG,cAAc,GAAG;IAC1D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,8BAA8B,CAAA;IACvC,cAAc,CAAC,EAAE,oBAAoB,CAAA;CACtC,CAAA;AAED,qCAAqC;AACrC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAA;AACF,8BAA8B;AAC9B,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE,4CAA4C;AAC5C,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,WAAW,CAAC,4BAA4B,CAK/E,CAAA;AAEL,sEAAsE;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqC,CAAA;AACrE,kEAAkE;AAClE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA;AAC5F,oCAAoC;AACpC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA;AAE5F,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B;;;;;;;;UA9B/B,MAAM;YACJ,UAAU;aACT,8BAA8B;qBACtB,oBAAoB;CA2B4C,CAAA;AACnF,yEAAyE;AACzE,eAAO,MAAM,0BAA0B;;;;;;;;;cAhC/B,MAAM;gBACJ,UAAU;iBACT,8BAA8B;yBACtB,oBAAoB;;;;;;;;;;cAH/B,MAAM;gBACJ,UAAU;iBACT,8BAA8B;yBACtB,oBAAoB;;CA6B0E,CAAA;AACjH,2CAA2C;AAC3C,eAAO,MAAM,0BAA0B;;;;;;;;;cAlC/B,MAAM;gBACJ,UAAU;iBACT,8BAA8B;yBACtB,oBAAoB;;;;;;;;;;cAH/B,MAAM;gBACJ,UAAU;iBACT,8BAA8B;yBACtB,oBAAoB;;CA+B0E,CAAA"}
|
|
@@ -7,7 +7,8 @@ import { AbstractCreatableProvider, type CreatableProviderParams } from '../../C
|
|
|
7
7
|
export interface AbstractRestDataLakeParams extends CreatableProviderParams {
|
|
8
8
|
allowedSchemas?: Schema[];
|
|
9
9
|
disallowedSchemas?: Schema[];
|
|
10
|
-
|
|
10
|
+
/** When omitted, resolved from `providerBindings` + a `rest` connection at startup. */
|
|
11
|
+
endpoint?: string;
|
|
11
12
|
}
|
|
12
13
|
/** Abstract base class for RestDataLake implementations. */
|
|
13
14
|
export declare abstract class AbstractRestDataLake<TParams extends AbstractRestDataLakeParams = AbstractRestDataLakeParams> extends AbstractCreatableProvider<TParams> implements Omit<DataLakeViewer, 'moniker'> {
|
|
@@ -15,6 +16,15 @@ export declare abstract class AbstractRestDataLake<TParams extends AbstractRestD
|
|
|
15
16
|
get client(): FetchJsonClient;
|
|
16
17
|
get disallowedSchemas(): Schema[] | undefined;
|
|
17
18
|
get endpoint(): string;
|
|
19
|
+
static paramsHandler(params?: Partial<AbstractRestDataLakeParams>): Promise<{
|
|
20
|
+
endpoint: string;
|
|
21
|
+
context: import("../../index.ts").CreatableProviderContextType;
|
|
22
|
+
name?: import("@xylabs/sdk-js").CreatableName;
|
|
23
|
+
statusReporter?: import("@xylabs/sdk-js").CreatableStatusReporter<void> | undefined;
|
|
24
|
+
logger?: import("@xylabs/sdk-js").Logger;
|
|
25
|
+
meterProvider?: import("@opentelemetry/api").MeterProvider;
|
|
26
|
+
traceProvider?: import("@opentelemetry/api").TracerProvider;
|
|
27
|
+
}>;
|
|
18
28
|
get(hashes: Hash[]): Promise<DataLakeData[]>;
|
|
19
29
|
next(_options?: NextOptions<Sequence>): PromisableArray<DataLakeData>;
|
|
20
30
|
protected getOne(hash: Hash): Promise<DataLakeData | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractRestDataLake.d.ts","sourceRoot":"","sources":["../../../../src/simple/datalake/AbstractRestDataLake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"AbstractRestDataLake.d.ts","sourceRoot":"","sources":["../../../../src/simple/datalake/AbstractRestDataLake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,EACa,KAAK,IAAI,EAAa,KAAK,eAAe,EAC7D,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EACV,WAAW,EAAE,MAAM,EAAE,QAAQ,EAC9B,MAAM,qBAAqB,CAAA;AAE5B,OAAO,KAAK,EACV,YAAY,EAAE,cAAc,EAC7B,MAAM,+BAA+B,CAAA;AAGtC,OAAO,EAAE,yBAAyB,EAAE,KAAK,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAE1G,2CAA2C;AAC3C,MAAM,WAAW,0BAA2B,SAC1C,uBAAuB;IAEvB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,4DAA4D;AAC5D,8BAAsB,oBAAoB,CAAC,OAAO,SAAS,0BAA0B,GAAG,0BAA0B,CAAE,SAClH,yBAAyB,CAAC,OAAO,CAAE,YAAW,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IAC7E,IAAI,cAAc,IAAI,MAAM,EAAE,GAAG,SAAS,CAEzC;IAED,IAAI,MAAM,oBAET;IAED,IAAI,iBAAiB,IAAI,MAAM,EAAE,GAAG,SAAS,CAE5C;IAED,IAAI,QAAQ,WAEX;WAEqB,aAAa,CAAC,MAAM,GAAE,OAAO,CAAC,0BAA0B,CAAM;;;;;;;;;IAc9E,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAKlD,IAAI,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,eAAe,CAAC,YAAY,CAAC;cAIrD,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAarE,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,OAAO;IAO7D,SAAS,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CASnD"}
|
|
@@ -1029,10 +1029,10 @@ import {
|
|
|
1029
1029
|
zodIsFactory as zodIsFactory2,
|
|
1030
1030
|
zodToFactory as zodToFactory2
|
|
1031
1031
|
} from "@xylabs/sdk-js";
|
|
1032
|
-
import { globalRegistry as
|
|
1032
|
+
import { globalRegistry as globalRegistry8, z as z12 } from "zod/mini";
|
|
1033
1033
|
|
|
1034
1034
|
// src/config/Base.ts
|
|
1035
|
-
import { z as
|
|
1035
|
+
import { z as z11 } from "zod/mini";
|
|
1036
1036
|
|
|
1037
1037
|
// src/config/Chain.ts
|
|
1038
1038
|
import { HexZod } from "@xylabs/sdk-js";
|
|
@@ -1051,10 +1051,10 @@ var ChainConfigZod = z.object({
|
|
|
1051
1051
|
})
|
|
1052
1052
|
});
|
|
1053
1053
|
|
|
1054
|
-
// src/config/
|
|
1054
|
+
// src/config/connections/Connection.ts
|
|
1055
1055
|
import { globalRegistry as globalRegistry3, z as z4 } from "zod";
|
|
1056
1056
|
|
|
1057
|
-
// src/config/
|
|
1057
|
+
// src/config/connections/Mongo.ts
|
|
1058
1058
|
import { globalRegistry as globalRegistry2, z as z2 } from "zod";
|
|
1059
1059
|
var MongoConfigZod = z2.object({
|
|
1060
1060
|
// TODO: Create from other arguments
|
|
@@ -1085,7 +1085,7 @@ var MongoConfigZod = z2.object({
|
|
|
1085
1085
|
})
|
|
1086
1086
|
});
|
|
1087
1087
|
|
|
1088
|
-
// src/config/
|
|
1088
|
+
// src/config/connections/S3.ts
|
|
1089
1089
|
import { z as z3 } from "zod";
|
|
1090
1090
|
var S3BucketConfigZod = z3.object({
|
|
1091
1091
|
accessKeyId: z3.string().nonempty().optional().describe("S3-compatible access key id for this bucket (overrides the shared default)"),
|
|
@@ -1096,151 +1096,108 @@ var S3BucketConfigZod = z3.object({
|
|
|
1096
1096
|
secretAccessKey: z3.string().nonempty().optional().describe("S3-compatible secret access key for this bucket (overrides the shared default)")
|
|
1097
1097
|
});
|
|
1098
1098
|
|
|
1099
|
-
// src/config/
|
|
1100
|
-
var
|
|
1099
|
+
// src/config/connections/Connection.ts
|
|
1100
|
+
var LmdbConnectionConfigZod = z4.object({
|
|
1101
1101
|
access: z4.enum(["read", "write"]).optional().register(globalRegistry3, {
|
|
1102
1102
|
description: "Access mode for this LMDB connection (read or write)",
|
|
1103
|
-
title: "
|
|
1103
|
+
title: "connections.lmdb.access",
|
|
1104
1104
|
type: "string"
|
|
1105
1105
|
}),
|
|
1106
1106
|
root: z4.string().register(globalRegistry3, {
|
|
1107
1107
|
description: "Root directory for local LMDB storage",
|
|
1108
|
-
title: "
|
|
1108
|
+
title: "connections.lmdb.root",
|
|
1109
1109
|
type: "string"
|
|
1110
1110
|
}),
|
|
1111
1111
|
store: z4.string().optional().register(globalRegistry3, {
|
|
1112
1112
|
description: "Logical store name within the LMDB root (e.g. finalized-chain, mempool)",
|
|
1113
|
-
title: "
|
|
1113
|
+
title: "connections.lmdb.store",
|
|
1114
1114
|
type: "string"
|
|
1115
1115
|
}),
|
|
1116
1116
|
type: z4.literal("lmdb")
|
|
1117
|
-
}).describe("LMDB local storage
|
|
1118
|
-
var
|
|
1117
|
+
}).describe("LMDB local storage connection");
|
|
1118
|
+
var MongoConnectionConfigZod = z4.object({
|
|
1119
1119
|
type: z4.literal("mongo"),
|
|
1120
1120
|
connectionString: MongoConfigZod.shape.connectionString,
|
|
1121
1121
|
database: MongoConfigZod.shape.database,
|
|
1122
1122
|
domain: MongoConfigZod.shape.domain,
|
|
1123
1123
|
password: MongoConfigZod.shape.password,
|
|
1124
1124
|
username: MongoConfigZod.shape.username
|
|
1125
|
-
}).describe("MongoDB storage
|
|
1126
|
-
var
|
|
1125
|
+
}).describe("MongoDB storage connection");
|
|
1126
|
+
var RpcConnectionConfigZod = z4.object({
|
|
1127
1127
|
type: z4.literal("rpc"),
|
|
1128
1128
|
protocol: z4.string().default("http").register(globalRegistry3, {
|
|
1129
1129
|
description: "Protocol for the RPC connection (http or postMessage)",
|
|
1130
|
-
title: "
|
|
1130
|
+
title: "connections.rpc.protocol",
|
|
1131
1131
|
type: "string"
|
|
1132
1132
|
}),
|
|
1133
1133
|
url: z4.string().optional().register(globalRegistry3, {
|
|
1134
1134
|
description: "URL for the Chain RPC API (http protocol)",
|
|
1135
|
-
title: "
|
|
1135
|
+
title: "connections.rpc.url",
|
|
1136
1136
|
type: "string"
|
|
1137
1137
|
}),
|
|
1138
1138
|
networkId: z4.string().optional().register(globalRegistry3, {
|
|
1139
1139
|
description: "Network ID for the postMessage RPC connection",
|
|
1140
|
-
title: "
|
|
1140
|
+
title: "connections.rpc.networkId",
|
|
1141
1141
|
type: "string"
|
|
1142
1142
|
}),
|
|
1143
1143
|
sessionId: z4.string().optional().register(globalRegistry3, {
|
|
1144
1144
|
description: "Session ID for the postMessage RPC connection",
|
|
1145
|
-
title: "
|
|
1145
|
+
title: "connections.rpc.sessionId",
|
|
1146
1146
|
type: "string"
|
|
1147
1147
|
})
|
|
1148
|
-
}).describe("XL1 JSON-RPC
|
|
1149
|
-
var
|
|
1148
|
+
}).describe("XL1 JSON-RPC connection");
|
|
1149
|
+
var RestConnectionConfigZod = z4.object({
|
|
1150
1150
|
type: z4.literal("rest"),
|
|
1151
1151
|
baseUrl: z4.string().register(globalRegistry3, {
|
|
1152
1152
|
description: "HTTP base URL for REST reads",
|
|
1153
|
-
title: "
|
|
1153
|
+
title: "connections.rest.baseUrl",
|
|
1154
1154
|
type: "string"
|
|
1155
1155
|
})
|
|
1156
|
-
}).describe("HTTP REST read
|
|
1157
|
-
var
|
|
1156
|
+
}).describe("HTTP REST read connection");
|
|
1157
|
+
var S3ConnectionConfigZod = S3BucketConfigZod.extend({
|
|
1158
1158
|
type: z4.literal("s3"),
|
|
1159
1159
|
accessKeyId: z4.string().optional(),
|
|
1160
1160
|
accountId: z4.string().optional(),
|
|
1161
1161
|
secretAccessKey: z4.string().optional()
|
|
1162
|
-
}).describe("S3-compatible object storage
|
|
1163
|
-
var
|
|
1162
|
+
}).describe("S3-compatible object storage connection");
|
|
1163
|
+
var EvmRpcConnectionConfigZod = z4.object({
|
|
1164
1164
|
type: z4.literal("evm-rpc"),
|
|
1165
1165
|
url: z4.string().register(globalRegistry3, {
|
|
1166
1166
|
description: "EVM JSON-RPC URL",
|
|
1167
|
-
title: "
|
|
1167
|
+
title: "connections.evm-rpc.url",
|
|
1168
1168
|
type: "string"
|
|
1169
1169
|
}),
|
|
1170
1170
|
chainId: z4.string().optional().register(globalRegistry3, {
|
|
1171
1171
|
description: "EVM chain ID for this RPC endpoint; auto-detected from the endpoint when omitted",
|
|
1172
|
-
title: "
|
|
1172
|
+
title: "connections.evm-rpc.chainId",
|
|
1173
1173
|
type: "string"
|
|
1174
1174
|
})
|
|
1175
|
-
}).describe("EVM JSON-RPC
|
|
1176
|
-
var
|
|
1177
|
-
var
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1175
|
+
}).describe("EVM JSON-RPC connection");
|
|
1176
|
+
var MemoryConnectionConfigZod = z4.object({ type: z4.literal("memory") }).describe("In-process memory connection");
|
|
1177
|
+
var ConnectionConfigZod = z4.discriminatedUnion("type", [
|
|
1178
|
+
LmdbConnectionConfigZod,
|
|
1179
|
+
MongoConnectionConfigZod,
|
|
1180
|
+
RpcConnectionConfigZod,
|
|
1181
|
+
RestConnectionConfigZod,
|
|
1182
|
+
S3ConnectionConfigZod,
|
|
1183
|
+
EvmRpcConnectionConfigZod,
|
|
1184
|
+
MemoryConnectionConfigZod
|
|
1185
1185
|
]);
|
|
1186
|
-
var
|
|
1187
|
-
|
|
1188
|
-
// src/config/DataLake/DataLake.ts
|
|
1189
|
-
import { z as z8 } from "zod";
|
|
1190
|
-
|
|
1191
|
-
// src/config/DataLake/RestDataLakeConfig.ts
|
|
1192
|
-
import { globalRegistry as globalRegistry5, z as z6 } from "zod";
|
|
1193
|
-
|
|
1194
|
-
// src/config/DataLake/DataLakeRemoteConfig.ts
|
|
1195
|
-
import { globalRegistry as globalRegistry4, z as z5 } from "zod";
|
|
1196
|
-
var DataLakeDriverConfigBaseZod = z5.object({
|
|
1197
|
-
driver: z5.string().register(globalRegistry4, {
|
|
1198
|
-
description: "Driver for the data lake",
|
|
1199
|
-
type: "string"
|
|
1200
|
-
})
|
|
1201
|
-
}).describe("Base configuration for a data lake driver");
|
|
1202
|
-
|
|
1203
|
-
// src/config/DataLake/RestDataLakeConfig.ts
|
|
1204
|
-
var RestDataLakeConfigZod = DataLakeDriverConfigBaseZod.extend({
|
|
1205
|
-
driver: z6.literal("rest").register(globalRegistry5, {
|
|
1206
|
-
description: "Driver for the REST data lake",
|
|
1207
|
-
type: "string"
|
|
1208
|
-
}),
|
|
1209
|
-
url: z6.string().register(globalRegistry5, {
|
|
1210
|
-
description: "URL for the REST data lake",
|
|
1211
|
-
type: "string"
|
|
1212
|
-
})
|
|
1213
|
-
}).describe("Configuration for the REST data lake driver");
|
|
1214
|
-
|
|
1215
|
-
// src/config/DataLake/RouterDataLakeConfig.ts
|
|
1216
|
-
import { globalRegistry as globalRegistry6, z as z7 } from "zod";
|
|
1217
|
-
var RouterDataLakeConfigZod = z7.object({
|
|
1218
|
-
driver: z7.literal("router").register(globalRegistry6, {
|
|
1219
|
-
description: "Driver for the router data lake",
|
|
1220
|
-
type: "string"
|
|
1221
|
-
}),
|
|
1222
|
-
children: z7.array(z7.lazy(() => DataLakeConfigZod)).register(globalRegistry6, {
|
|
1223
|
-
description: "Child data lake drivers",
|
|
1224
|
-
type: "array"
|
|
1225
|
-
})
|
|
1226
|
-
}).describe("Configuration for the router data lake driver");
|
|
1227
|
-
|
|
1228
|
-
// src/config/DataLake/DataLake.ts
|
|
1229
|
-
var DataLakeConfigZod = z8.lazy(() => z8.union([RestDataLakeConfigZod, RouterDataLakeConfigZod])).describe("Configuration for a data lake");
|
|
1186
|
+
var ConnectionsConfigZod = z4.record(z4.string(), ConnectionConfigZod).default({});
|
|
1230
1187
|
|
|
1231
1188
|
// src/config/Log.ts
|
|
1232
1189
|
import { LogLevel } from "@xylabs/sdk-js";
|
|
1233
|
-
import { globalRegistry as
|
|
1190
|
+
import { globalRegistry as globalRegistry4, z as z5 } from "zod";
|
|
1234
1191
|
var LogLevelNames = Object.keys(LogLevel);
|
|
1235
|
-
var LogConfigZod =
|
|
1236
|
-
logLevel:
|
|
1192
|
+
var LogConfigZod = z5.object({
|
|
1193
|
+
logLevel: z5.enum(LogLevelNames).default("info").register(globalRegistry4, {
|
|
1237
1194
|
choices: LogLevelNames,
|
|
1238
1195
|
default: "info",
|
|
1239
1196
|
description: "Desired process verbosity",
|
|
1240
1197
|
title: "logLevel",
|
|
1241
1198
|
type: "string"
|
|
1242
1199
|
}),
|
|
1243
|
-
silent:
|
|
1200
|
+
silent: z5.boolean().default(false).register(globalRegistry4, {
|
|
1244
1201
|
default: false,
|
|
1245
1202
|
description: "Whether to run in silent mode",
|
|
1246
1203
|
title: "silent",
|
|
@@ -1249,23 +1206,18 @@ var LogConfigZod = z9.object({
|
|
|
1249
1206
|
});
|
|
1250
1207
|
|
|
1251
1208
|
// src/config/ProviderBinding.ts
|
|
1252
|
-
import { globalRegistry as
|
|
1253
|
-
var ProviderBindingConfigZod =
|
|
1254
|
-
connection:
|
|
1209
|
+
import { globalRegistry as globalRegistry5, z as z6 } from "zod";
|
|
1210
|
+
var ProviderBindingConfigZod = z6.object({
|
|
1211
|
+
connection: z6.string().optional().register(globalRegistry5, {
|
|
1255
1212
|
description: "Named connection from the top-level connections map",
|
|
1256
1213
|
title: "providerBindings.connection",
|
|
1257
1214
|
type: "string"
|
|
1258
|
-
}),
|
|
1259
|
-
transport: z10.string().optional().register(globalRegistry8, {
|
|
1260
|
-
description: "Deprecated alias for connection (kept in sync during migration)",
|
|
1261
|
-
title: "providerBindings.transport",
|
|
1262
|
-
type: "string"
|
|
1263
1215
|
})
|
|
1264
1216
|
}).describe("Provider connection binding");
|
|
1265
|
-
var ProviderBindingsConfigZod =
|
|
1217
|
+
var ProviderBindingsConfigZod = z6.record(z6.string(), ProviderBindingConfigZod).default({});
|
|
1266
1218
|
|
|
1267
1219
|
// src/config/Providers.ts
|
|
1268
|
-
import
|
|
1220
|
+
import z8 from "zod";
|
|
1269
1221
|
|
|
1270
1222
|
// src/config/Provider.ts
|
|
1271
1223
|
import {
|
|
@@ -1273,43 +1225,43 @@ import {
|
|
|
1273
1225
|
zodIsFactory,
|
|
1274
1226
|
zodToFactory
|
|
1275
1227
|
} from "@xylabs/sdk-js";
|
|
1276
|
-
import { z as
|
|
1277
|
-
var ProviderConfigZod =
|
|
1278
|
-
moniker:
|
|
1279
|
-
labels:
|
|
1228
|
+
import { z as z7 } from "zod";
|
|
1229
|
+
var ProviderConfigZod = z7.object({
|
|
1230
|
+
moniker: z7.string(),
|
|
1231
|
+
labels: z7.array(z7.string()).optional()
|
|
1280
1232
|
}).describe("Configuration for a Provider");
|
|
1281
1233
|
var isProviderConfig = zodIsFactory(ProviderConfigZod);
|
|
1282
1234
|
var asProviderConfig = zodAsFactory(ProviderConfigZod, "asProviderConfig");
|
|
1283
1235
|
var toProviderConfig = zodToFactory(ProviderConfigZod, "toProviderConfig");
|
|
1284
1236
|
|
|
1285
1237
|
// src/config/Providers.ts
|
|
1286
|
-
var ProvidersConfigZod =
|
|
1238
|
+
var ProvidersConfigZod = z8.array(ProviderConfigZod.loose()).describe("Configuration for providers").default([]);
|
|
1287
1239
|
|
|
1288
1240
|
// src/config/Telemetry.ts
|
|
1289
|
-
import { globalRegistry as
|
|
1290
|
-
var MetricsScrapeConfigZod =
|
|
1291
|
-
path:
|
|
1241
|
+
import { globalRegistry as globalRegistry6, z as z9 } from "zod";
|
|
1242
|
+
var MetricsScrapeConfigZod = z9.object({
|
|
1243
|
+
path: z9.string().default("/metrics").register(globalRegistry6, {
|
|
1292
1244
|
default: "/metrics",
|
|
1293
1245
|
description: "Path for the metrics scrape endpoint",
|
|
1294
1246
|
title: "telemetry.metrics.scrape.path",
|
|
1295
1247
|
type: "string"
|
|
1296
1248
|
}),
|
|
1297
|
-
port:
|
|
1249
|
+
port: z9.coerce.number().int().nonnegative().optional().register(globalRegistry6, {
|
|
1298
1250
|
description: "Port for the metrics scrape endpoint (0 disables the scrape endpoint)",
|
|
1299
1251
|
title: "telemetry.metrics.scrape.port",
|
|
1300
1252
|
type: "number"
|
|
1301
1253
|
})
|
|
1302
1254
|
}).describe("Metrics scrape configuration");
|
|
1303
|
-
var MetricsConfigZod =
|
|
1304
|
-
var OpenTelemetryConfigZod =
|
|
1255
|
+
var MetricsConfigZod = z9.object({ scrape: MetricsScrapeConfigZod }).describe("Metrics configuration options");
|
|
1256
|
+
var OpenTelemetryConfigZod = z9.object({
|
|
1305
1257
|
// OpenTelemetry options
|
|
1306
|
-
otlpEndpoint:
|
|
1258
|
+
otlpEndpoint: z9.url().optional().register(globalRegistry6, {
|
|
1307
1259
|
description: "OTLP endpoint for exporting telemetry data",
|
|
1308
1260
|
title: "telemetry.otel.otlpEndpoint",
|
|
1309
1261
|
type: "string"
|
|
1310
1262
|
})
|
|
1311
1263
|
});
|
|
1312
|
-
var TelemetryConfigZod =
|
|
1264
|
+
var TelemetryConfigZod = z9.object({
|
|
1313
1265
|
// Metrics configuration
|
|
1314
1266
|
metrics: MetricsConfigZod.optional().describe("Metrics configuration"),
|
|
1315
1267
|
// OpenTelemetry configuration
|
|
@@ -1318,7 +1270,7 @@ var TelemetryConfigZod = z13.object({
|
|
|
1318
1270
|
|
|
1319
1271
|
// src/config/Validation.ts
|
|
1320
1272
|
import { XyoAddressZod as XyoAddressZod2 } from "@xyo-network/sdk-js";
|
|
1321
|
-
import { globalRegistry as
|
|
1273
|
+
import { globalRegistry as globalRegistry7, z as z10 } from "zod";
|
|
1322
1274
|
|
|
1323
1275
|
// src/primitives/block/rate/blockRate.ts
|
|
1324
1276
|
import { isDefined as isDefined5, isFalsy } from "@xylabs/sdk-js";
|
|
@@ -1558,24 +1510,24 @@ var DEFAULT_MIN_CANDIDATES = 1;
|
|
|
1558
1510
|
var DEFAULT_BACKOFF_MS = 12e4;
|
|
1559
1511
|
|
|
1560
1512
|
// src/config/Validation.ts
|
|
1561
|
-
var ValidationConfigZod =
|
|
1562
|
-
allowedRewardRedeemers:
|
|
1513
|
+
var ValidationConfigZod = z10.object({
|
|
1514
|
+
allowedRewardRedeemers: z10.array(XyoAddressZod2).optional().register(globalRegistry7, {
|
|
1563
1515
|
description: "List of allowed reward redeemer addresses, if undefined anyone can participate",
|
|
1564
1516
|
title: "allowedRewardRedeemers",
|
|
1565
1517
|
type: "array"
|
|
1566
1518
|
}),
|
|
1567
|
-
allowedRewardEscrowAccountSigners:
|
|
1519
|
+
allowedRewardEscrowAccountSigners: z10.array(XyoAddressZod2).optional().register(globalRegistry7, {
|
|
1568
1520
|
description: "List of allowed reward escrow account signer addresses, if undefined anyone can participate",
|
|
1569
1521
|
title: "allowedRewardEscrowAccountSigners",
|
|
1570
1522
|
type: "array"
|
|
1571
1523
|
}),
|
|
1572
|
-
minCandidates:
|
|
1524
|
+
minCandidates: z10.coerce.number().default(DEFAULT_MIN_CANDIDATES).register(globalRegistry7, {
|
|
1573
1525
|
default: DEFAULT_MIN_CANDIDATES,
|
|
1574
1526
|
description: "Minimum number of uncle candidates before selecting the best uncle",
|
|
1575
1527
|
title: "validation.minCandidates",
|
|
1576
1528
|
type: "number"
|
|
1577
1529
|
}),
|
|
1578
|
-
backoffMs:
|
|
1530
|
+
backoffMs: z10.coerce.number().default(DEFAULT_BACKOFF_MS).register(globalRegistry7, {
|
|
1579
1531
|
default: DEFAULT_BACKOFF_MS,
|
|
1580
1532
|
description: "Back-off timeout in ms. If head age exceeds this, minCandidates is ignored",
|
|
1581
1533
|
title: "validation.backoffMs",
|
|
@@ -1584,25 +1536,24 @@ var ValidationConfigZod = z14.object({
|
|
|
1584
1536
|
});
|
|
1585
1537
|
|
|
1586
1538
|
// src/config/Base.ts
|
|
1587
|
-
var BaseConfigZod =
|
|
1588
|
-
chain:
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
validation: z15._default(ValidationConfigZod, ValidationConfigZod.parse({})).check(z15.describe("Configuration for validation"))
|
|
1539
|
+
var BaseConfigZod = z11.object({
|
|
1540
|
+
chain: z11._default(ChainConfigZod, ChainConfigZod.parse({})).check(z11.describe("Configuration for the chain")),
|
|
1541
|
+
log: z11._default(LogConfigZod, LogConfigZod.parse({})).check(z11.describe("Configuration for logging")),
|
|
1542
|
+
connections: z11._default(ConnectionsConfigZod, ConnectionsConfigZod.parse({})).check(z11.describe("Named connection profiles (rpc, rest, s3, lmdb, mongo, evm-rpc)")),
|
|
1543
|
+
providerBindings: z11._default(ProviderBindingsConfigZod, ProviderBindingsConfigZod.parse({})).check(z11.describe("Per-moniker provider connection bindings")),
|
|
1544
|
+
providers: z11._default(ProvidersConfigZod, ProvidersConfigZod.parse([])).check(z11.describe("Configuration for providers")),
|
|
1545
|
+
telemetry: z11._default(TelemetryConfigZod, TelemetryConfigZod.parse({})).check(z11.describe("Configuration for telemetry")),
|
|
1546
|
+
validation: z11._default(ValidationConfigZod, ValidationConfigZod.parse({})).check(z11.describe("Configuration for validation"))
|
|
1596
1547
|
});
|
|
1597
1548
|
|
|
1598
1549
|
// src/config/Actor.ts
|
|
1599
|
-
var AccountPathZod =
|
|
1550
|
+
var AccountPathZod = z12.string().check(z12.regex(
|
|
1600
1551
|
/^(m(\/\d+'?)+|\d+'?(\/\d+'?)*)$/,
|
|
1601
1552
|
`Invalid BIP-32 derivation path. Use either an absolute path like "m/44'/60'/0'/0/0" or a relative path like "0", "0/1", or "44'/60'/0'/0/0".`
|
|
1602
1553
|
));
|
|
1603
|
-
var ActorConfigZod =
|
|
1604
|
-
name:
|
|
1605
|
-
accountPath:
|
|
1554
|
+
var ActorConfigZod = z12.extend(BaseConfigZod, {
|
|
1555
|
+
name: z12.string(),
|
|
1556
|
+
accountPath: z12.optional(AccountPathZod).register(globalRegistry8, {
|
|
1606
1557
|
description: 'BIP-32 derivation path for the actor wallet. Absolute when it starts with "m/"; otherwise relative to the root wallet base path. Each actor must derive to a distinct path.',
|
|
1607
1558
|
title: "accountPath",
|
|
1608
1559
|
type: "string"
|
|
@@ -1613,22 +1564,22 @@ var asActorConfig = zodAsFactory2(ActorConfigZod, "asActorConfig");
|
|
|
1613
1564
|
var toActorConfig = zodToFactory2(ActorConfigZod, "toActorConfig");
|
|
1614
1565
|
|
|
1615
1566
|
// src/config/Actors.ts
|
|
1616
|
-
import { z as
|
|
1617
|
-
var ActorsConfigZod =
|
|
1618
|
-
|
|
1567
|
+
import { z as z13 } from "zod/mini";
|
|
1568
|
+
var ActorsConfigZod = z13._default(
|
|
1569
|
+
z13.array(z13.looseObject(ActorConfigZod.shape)).check(z13.describe("Actor-specific configurations that override the base configuration when the actor is running")),
|
|
1619
1570
|
[]
|
|
1620
1571
|
);
|
|
1621
1572
|
|
|
1622
1573
|
// src/config/Config.ts
|
|
1623
|
-
import { globalRegistry as
|
|
1624
|
-
var ConfigZod =
|
|
1574
|
+
import { globalRegistry as globalRegistry9, z as z14 } from "zod/mini";
|
|
1575
|
+
var ConfigZod = z14.extend(BaseConfigZod, {
|
|
1625
1576
|
actors: ActorsConfigZod,
|
|
1626
|
-
healthCheckPort:
|
|
1577
|
+
healthCheckPort: z14.optional(z14.coerce.number()).register(globalRegistry9, {
|
|
1627
1578
|
description: "Port for the system-wide health, readiness, and liveness endpoints (/healthz, /livez, /readyz). Set to 0 to disable.",
|
|
1628
1579
|
title: "healthCheckPort",
|
|
1629
1580
|
type: "number"
|
|
1630
1581
|
})
|
|
1631
|
-
}).check(
|
|
1582
|
+
}).check(z14.describe("The complete configuration for the protocol, including global settings and actor-specific overrides"));
|
|
1632
1583
|
|
|
1633
1584
|
// src/summary/primitives/blocks/blocksMaxStep.ts
|
|
1634
1585
|
var blocksMaxStep = 3;
|