@xyo-network/xl1-protocol-sdk 1.30.4 → 2.0.0
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/block/hydrate/createBoundWitnessHydrator.d.ts +30 -30
- package/dist/neutral/block/hydrate/createBoundWitnessHydrator.d.ts.map +1 -1
- package/dist/neutral/config/Actor.d.ts +50 -56
- package/dist/neutral/config/Actor.d.ts.map +1 -1
- package/dist/neutral/config/Actors.d.ts +65 -66
- package/dist/neutral/config/Actors.d.ts.map +1 -1
- package/dist/neutral/config/Base.d.ts +47 -47
- package/dist/neutral/config/Base.d.ts.map +1 -1
- package/dist/neutral/config/Chain.d.ts +4 -4
- package/dist/neutral/config/Chain.d.ts.map +1 -1
- package/dist/neutral/config/Config.d.ts +96 -98
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/HostActor.d.ts +51 -57
- package/dist/neutral/config/HostActor.d.ts.map +1 -1
- package/dist/neutral/config/Validation.d.ts +2 -2
- package/dist/neutral/context/Actor.d.ts +51 -57
- package/dist/neutral/context/Actor.d.ts.map +1 -1
- package/dist/neutral/context/HostActor.d.ts +53 -59
- package/dist/neutral/context/HostActor.d.ts.map +1 -1
- package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts +1 -1
- package/dist/neutral/getFileConfig.d.ts +0 -1
- package/dist/neutral/getFileConfig.d.ts.map +1 -1
- package/dist/neutral/getFileConfig.mjs +29 -35
- package/dist/neutral/getFileConfig.mjs.map +3 -3
- package/dist/neutral/index.mjs +90 -126
- package/dist/neutral/index.mjs.map +3 -3
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts +52 -52
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts.map +1 -1
- package/dist/neutral/simple/StakeEventsViewer/SimpleStakeEventsViewer.d.ts +3 -2
- package/dist/neutral/simple/StakeEventsViewer/SimpleStakeEventsViewer.d.ts.map +1 -1
- package/dist/neutral/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts +3 -2
- package/dist/neutral/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts.map +1 -1
- package/dist/neutral/simple/StakeViewer/SimpleStakeViewer.d.ts +4 -3
- package/dist/neutral/simple/StakeViewer/SimpleStakeViewer.d.ts.map +1 -1
- package/dist/neutral/simple/TransactionViewer/SimpleTransactionViewer.d.ts +4 -3
- package/dist/neutral/simple/TransactionViewer/SimpleTransactionViewer.d.ts.map +1 -1
- package/dist/neutral/simple/block/SimpleBlockViewer.d.ts +2 -2
- package/dist/neutral/simple/block/SimpleBlockViewer.d.ts.map +1 -1
- package/dist/neutral/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts +1 -1
- package/dist/neutral/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts.map +1 -1
- package/dist/neutral/simple/blockReward/SimpleBlockRewardViewer.d.ts +4 -3
- package/dist/neutral/simple/blockReward/SimpleBlockRewardViewer.d.ts.map +1 -1
- package/dist/neutral/simple/blockValidation/SimpleBlockValidationViewer.d.ts +2 -1
- package/dist/neutral/simple/blockValidation/SimpleBlockValidationViewer.d.ts.map +1 -1
- package/dist/neutral/simple/chainContractViewer/SimpleChainContractViewer.d.ts +3 -2
- package/dist/neutral/simple/chainContractViewer/SimpleChainContractViewer.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/RestDataLakeRunner.d.ts +3 -3
- package/dist/neutral/simple/datalake/RestDataLakeRunner.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/RestDataLakeViewer.d.ts +3 -2
- package/dist/neutral/simple/datalake/RestDataLakeViewer.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts +2 -2
- package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts +3 -2
- package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts.map +1 -1
- package/dist/neutral/simple/finalization/SimpleFinalizationRunner.d.ts +4 -4
- package/dist/neutral/simple/finalization/SimpleFinalizationRunner.d.ts.map +1 -1
- package/dist/neutral/simple/finalization/SimpleFinalizationViewer.d.ts +5 -4
- package/dist/neutral/simple/finalization/SimpleFinalizationViewer.d.ts.map +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts +4 -4
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts.map +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolViewer.d.ts +3 -2
- package/dist/neutral/simple/mempool/SimpleMempoolViewer.d.ts.map +1 -1
- package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts +1 -1
- package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts.map +1 -1
- package/dist/neutral/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts +1 -1
- package/dist/neutral/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts.map +1 -1
- package/dist/neutral/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts +1 -1
- package/dist/neutral/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts.map +1 -1
- package/dist/neutral/test/index.mjs +29 -41
- package/dist/neutral/test/index.mjs.map +2 -2
- package/package.json +58 -58
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod/mini';
|
|
2
2
|
/** ActorConfigContext constant. */
|
|
3
|
-
export declare const ActorConfigContext: z.
|
|
3
|
+
export declare const ActorConfigContext: z.ZodMiniObject<{
|
|
4
4
|
logger: import("zod").ZodOptional<import("zod").ZodCustom<import("@xylabs/sdk-js").Logger, import("@xylabs/sdk-js").Logger>>;
|
|
5
5
|
meterProvider: import("zod").ZodOptional<import("zod").ZodCustom<import("@opentelemetry/api").MeterProvider, import("@opentelemetry/api").MeterProvider>>;
|
|
6
6
|
singletons: import("zod").ZodRecord<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodSymbol]>, import("zod").ZodUnknown>;
|
|
7
7
|
timeBudgetLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8
8
|
traceProvider: import("zod").ZodOptional<import("zod").ZodCustom<import("@opentelemetry/api").TracerProvider, import("@opentelemetry/api").TracerProvider>>;
|
|
9
9
|
caches: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodCustom<import("@xyo-network/xl1-protocol-model").MapType<string, unknown>, import("@xyo-network/xl1-protocol-model").MapType<string, unknown>>>;
|
|
10
|
-
locator: z.
|
|
11
|
-
config: z.
|
|
12
|
-
chain: z.
|
|
13
|
-
id: z.
|
|
14
|
-
genesisRewardAddress: z.
|
|
10
|
+
locator: z.ZodMiniOptional<z.ZodMiniType<import("../index.ts").ProviderFactoryLocatorInstance<import("../model/CreatableProviderContext.zod.ts").CreatableProviderContextType>, unknown, z.core.$ZodTypeInternals<import("../index.ts").ProviderFactoryLocatorInstance<import("../model/CreatableProviderContext.zod.ts").CreatableProviderContextType>, unknown>>>;
|
|
11
|
+
config: z.ZodMiniObject<{
|
|
12
|
+
chain: z.ZodMiniDefault<z.ZodMiniObject<{
|
|
13
|
+
id: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
14
|
+
genesisRewardAddress: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
15
15
|
readonly __hex: true;
|
|
16
16
|
} & {
|
|
17
17
|
readonly __address: true;
|
|
18
18
|
}, string>>>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
|
-
dataLake: z.
|
|
21
|
-
evm: z.
|
|
22
|
-
chainId:
|
|
23
|
-
infura:
|
|
24
|
-
projectId:
|
|
25
|
-
projectSecret:
|
|
20
|
+
dataLake: z.ZodMiniOptional<import("zod").ZodType<import("../config/index.ts").DataLakeConfig, unknown, z.core.$ZodTypeInternals<import("../config/index.ts").DataLakeConfig, unknown>>>;
|
|
21
|
+
evm: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
22
|
+
chainId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
infura: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
24
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
projectSecret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
26
|
}, z.core.$strip>>;
|
|
27
|
-
jsonRpc:
|
|
28
|
-
url:
|
|
27
|
+
jsonRpc: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
28
|
+
url: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
|
-
log: z.
|
|
32
|
-
logLevel:
|
|
31
|
+
log: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
32
|
+
logLevel: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
33
33
|
info: "info";
|
|
34
34
|
error: "error";
|
|
35
35
|
warn: "warn";
|
|
@@ -37,60 +37,59 @@ export declare const ActorConfigContext: z.ZodObject<{
|
|
|
37
37
|
debug: "debug";
|
|
38
38
|
trace: "trace";
|
|
39
39
|
}>>;
|
|
40
|
-
silent:
|
|
40
|
+
silent: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
41
41
|
}, z.core.$strip>>;
|
|
42
|
-
providers: z.
|
|
43
|
-
moniker:
|
|
44
|
-
labels:
|
|
42
|
+
providers: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
43
|
+
moniker: import("zod").ZodString;
|
|
44
|
+
labels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
45
45
|
}, z.core.$loose>>>>;
|
|
46
|
-
remote: z.
|
|
47
|
-
rpc:
|
|
48
|
-
protocol:
|
|
49
|
-
url:
|
|
50
|
-
}, z.core.$strip>,
|
|
51
|
-
protocol:
|
|
52
|
-
networkId:
|
|
53
|
-
sessionId:
|
|
46
|
+
remote: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
47
|
+
rpc: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
48
|
+
protocol: import("zod").ZodDefault<import("zod").ZodString>;
|
|
49
|
+
url: import("zod").ZodString;
|
|
50
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
51
|
+
protocol: import("zod").ZodDefault<import("zod").ZodString>;
|
|
52
|
+
networkId: import("zod").ZodString;
|
|
53
|
+
sessionId: import("zod").ZodString;
|
|
54
54
|
}, z.core.$strip>]>>;
|
|
55
55
|
}, z.core.$strip>>;
|
|
56
|
-
storage: z.
|
|
57
|
-
mongo:
|
|
58
|
-
connectionString:
|
|
59
|
-
database:
|
|
60
|
-
domain:
|
|
61
|
-
password:
|
|
62
|
-
username:
|
|
56
|
+
storage: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
57
|
+
mongo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
58
|
+
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
database: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
63
|
}, z.core.$strip>>;
|
|
64
|
-
root:
|
|
64
|
+
root: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
65
|
}, z.core.$strip>>;
|
|
66
|
-
telemetry: z.
|
|
67
|
-
metrics:
|
|
68
|
-
scrape:
|
|
69
|
-
path:
|
|
70
|
-
port:
|
|
66
|
+
telemetry: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
67
|
+
metrics: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
68
|
+
scrape: import("zod").ZodObject<{
|
|
69
|
+
path: import("zod").ZodDefault<import("zod").ZodString>;
|
|
70
|
+
port: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
71
71
|
}, z.core.$strip>;
|
|
72
72
|
}, z.core.$strip>>;
|
|
73
|
-
otel:
|
|
74
|
-
otlpEndpoint:
|
|
73
|
+
otel: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
74
|
+
otlpEndpoint: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
|
-
validation: z.
|
|
78
|
-
allowedRewardRedeemers:
|
|
77
|
+
validation: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
78
|
+
allowedRewardRedeemers: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
79
79
|
readonly __hex: true;
|
|
80
80
|
} & {
|
|
81
81
|
readonly __address: true;
|
|
82
82
|
}, string>>>>;
|
|
83
|
-
allowedRewardEscrowAccountSigners:
|
|
83
|
+
allowedRewardEscrowAccountSigners: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
84
84
|
readonly __hex: true;
|
|
85
85
|
} & {
|
|
86
86
|
readonly __address: true;
|
|
87
87
|
}, string>>>>;
|
|
88
|
-
minCandidates:
|
|
89
|
-
backoffMs:
|
|
88
|
+
minCandidates: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
89
|
+
backoffMs: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
90
90
|
}, z.core.$strip>>;
|
|
91
|
-
name: z.
|
|
92
|
-
accountPath: z.
|
|
93
|
-
healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
91
|
+
name: z.ZodMiniString<string>;
|
|
92
|
+
accountPath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
94
93
|
}, z.core.$strip>;
|
|
95
94
|
}, z.core.$strip>;
|
|
96
95
|
/** ActorConfigContext type. */
|
|
@@ -175,7 +174,6 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
|
|
|
175
174
|
name: string;
|
|
176
175
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
177
176
|
accountPath?: string | undefined;
|
|
178
|
-
healthCheckPort?: number | undefined;
|
|
179
177
|
};
|
|
180
178
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
181
179
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -264,7 +262,6 @@ export declare const asActorConfigContext: {
|
|
|
264
262
|
name: string;
|
|
265
263
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
266
264
|
accountPath?: string | undefined;
|
|
267
|
-
healthCheckPort?: number | undefined;
|
|
268
265
|
};
|
|
269
266
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
270
267
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -351,7 +348,6 @@ export declare const asActorConfigContext: {
|
|
|
351
348
|
name: string;
|
|
352
349
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
353
350
|
accountPath?: string | undefined;
|
|
354
|
-
healthCheckPort?: number | undefined;
|
|
355
351
|
};
|
|
356
352
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
357
353
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -441,7 +437,6 @@ export declare const toActorConfigContext: {
|
|
|
441
437
|
name: string;
|
|
442
438
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
443
439
|
accountPath?: string | undefined;
|
|
444
|
-
healthCheckPort?: number | undefined;
|
|
445
440
|
};
|
|
446
441
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
447
442
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -528,7 +523,6 @@ export declare const toActorConfigContext: {
|
|
|
528
523
|
name: string;
|
|
529
524
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
530
525
|
accountPath?: string | undefined;
|
|
531
|
-
healthCheckPort?: number | undefined;
|
|
532
526
|
};
|
|
533
527
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
534
528
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/context/Actor.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/context/Actor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,mCAAmC;AACnC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA6D,CAAA;AAE5F,+BAA+B;AAC/B,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,uEAAuE;AACvE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA;AACpE,mEAAmE;AACnE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2D,CAAA;AAC5F,qCAAqC;AACrC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2D,CAAA"}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod/mini';
|
|
2
2
|
/** HostActorConfigContext constant. */
|
|
3
|
-
export declare const HostActorConfigContext: z.
|
|
3
|
+
export declare const HostActorConfigContext: z.ZodMiniObject<{
|
|
4
4
|
logger: import("zod").ZodOptional<import("zod").ZodCustom<import("@xylabs/sdk-js").Logger, import("@xylabs/sdk-js").Logger>>;
|
|
5
5
|
meterProvider: import("zod").ZodOptional<import("zod").ZodCustom<import("@opentelemetry/api").MeterProvider, import("@opentelemetry/api").MeterProvider>>;
|
|
6
6
|
singletons: import("zod").ZodRecord<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodSymbol]>, import("zod").ZodUnknown>;
|
|
7
7
|
timeBudgetLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8
8
|
traceProvider: import("zod").ZodOptional<import("zod").ZodCustom<import("@opentelemetry/api").TracerProvider, import("@opentelemetry/api").TracerProvider>>;
|
|
9
9
|
caches: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodCustom<import("@xyo-network/xl1-protocol-model").MapType<string, unknown>, import("@xyo-network/xl1-protocol-model").MapType<string, unknown>>>;
|
|
10
|
-
locator: z.
|
|
11
|
-
config: z.
|
|
12
|
-
chain: z.
|
|
13
|
-
id: z.
|
|
14
|
-
genesisRewardAddress: z.
|
|
10
|
+
locator: z.ZodMiniOptional<z.ZodMiniType<import("../index.ts").ProviderFactoryLocatorInstance<import("../model/CreatableProviderContext.zod.ts").CreatableProviderContextType>, unknown, z.core.$ZodTypeInternals<import("../index.ts").ProviderFactoryLocatorInstance<import("../model/CreatableProviderContext.zod.ts").CreatableProviderContextType>, unknown>>>;
|
|
11
|
+
config: z.ZodMiniObject<{
|
|
12
|
+
chain: z.ZodMiniDefault<z.ZodMiniObject<{
|
|
13
|
+
id: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
14
|
+
genesisRewardAddress: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
15
15
|
readonly __hex: true;
|
|
16
16
|
} & {
|
|
17
17
|
readonly __address: true;
|
|
18
18
|
}, string>>>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
|
-
dataLake: z.
|
|
21
|
-
evm: z.
|
|
22
|
-
chainId:
|
|
23
|
-
infura:
|
|
24
|
-
projectId:
|
|
25
|
-
projectSecret:
|
|
20
|
+
dataLake: z.ZodMiniOptional<import("zod").ZodType<import("../config/index.ts").DataLakeConfig, unknown, z.core.$ZodTypeInternals<import("../config/index.ts").DataLakeConfig, unknown>>>;
|
|
21
|
+
evm: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
22
|
+
chainId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
infura: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
24
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
projectSecret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
26
|
}, z.core.$strip>>;
|
|
27
|
-
jsonRpc:
|
|
28
|
-
url:
|
|
27
|
+
jsonRpc: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
28
|
+
url: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
|
-
log: z.
|
|
32
|
-
logLevel:
|
|
31
|
+
log: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
32
|
+
logLevel: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
33
33
|
info: "info";
|
|
34
34
|
error: "error";
|
|
35
35
|
warn: "warn";
|
|
@@ -37,62 +37,61 @@ export declare const HostActorConfigContext: z.ZodObject<{
|
|
|
37
37
|
debug: "debug";
|
|
38
38
|
trace: "trace";
|
|
39
39
|
}>>;
|
|
40
|
-
silent:
|
|
40
|
+
silent: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
41
41
|
}, z.core.$strip>>;
|
|
42
|
-
providers: z.
|
|
43
|
-
moniker:
|
|
44
|
-
labels:
|
|
42
|
+
providers: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
43
|
+
moniker: import("zod").ZodString;
|
|
44
|
+
labels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
45
45
|
}, z.core.$loose>>>>;
|
|
46
|
-
remote: z.
|
|
47
|
-
rpc:
|
|
48
|
-
protocol:
|
|
49
|
-
url:
|
|
50
|
-
}, z.core.$strip>,
|
|
51
|
-
protocol:
|
|
52
|
-
networkId:
|
|
53
|
-
sessionId:
|
|
46
|
+
remote: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
47
|
+
rpc: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
48
|
+
protocol: import("zod").ZodDefault<import("zod").ZodString>;
|
|
49
|
+
url: import("zod").ZodString;
|
|
50
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
51
|
+
protocol: import("zod").ZodDefault<import("zod").ZodString>;
|
|
52
|
+
networkId: import("zod").ZodString;
|
|
53
|
+
sessionId: import("zod").ZodString;
|
|
54
54
|
}, z.core.$strip>]>>;
|
|
55
55
|
}, z.core.$strip>>;
|
|
56
|
-
storage: z.
|
|
57
|
-
mongo:
|
|
58
|
-
connectionString:
|
|
59
|
-
database:
|
|
60
|
-
domain:
|
|
61
|
-
password:
|
|
62
|
-
username:
|
|
56
|
+
storage: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
57
|
+
mongo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
58
|
+
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
database: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
63
|
}, z.core.$strip>>;
|
|
64
|
-
root:
|
|
64
|
+
root: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
65
|
}, z.core.$strip>>;
|
|
66
|
-
telemetry: z.
|
|
67
|
-
metrics:
|
|
68
|
-
scrape:
|
|
69
|
-
path:
|
|
70
|
-
port:
|
|
66
|
+
telemetry: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
67
|
+
metrics: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
68
|
+
scrape: import("zod").ZodObject<{
|
|
69
|
+
path: import("zod").ZodDefault<import("zod").ZodString>;
|
|
70
|
+
port: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
71
71
|
}, z.core.$strip>;
|
|
72
72
|
}, z.core.$strip>>;
|
|
73
|
-
otel:
|
|
74
|
-
otlpEndpoint:
|
|
73
|
+
otel: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
74
|
+
otlpEndpoint: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
|
-
validation: z.
|
|
78
|
-
allowedRewardRedeemers:
|
|
77
|
+
validation: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
78
|
+
allowedRewardRedeemers: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
79
79
|
readonly __hex: true;
|
|
80
80
|
} & {
|
|
81
81
|
readonly __address: true;
|
|
82
82
|
}, string>>>>;
|
|
83
|
-
allowedRewardEscrowAccountSigners:
|
|
83
|
+
allowedRewardEscrowAccountSigners: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
84
84
|
readonly __hex: true;
|
|
85
85
|
} & {
|
|
86
86
|
readonly __address: true;
|
|
87
87
|
}, string>>>>;
|
|
88
|
-
minCandidates:
|
|
89
|
-
backoffMs:
|
|
88
|
+
minCandidates: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
89
|
+
backoffMs: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
90
90
|
}, z.core.$strip>>;
|
|
91
|
-
name: z.
|
|
92
|
-
accountPath: z.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
91
|
+
name: z.ZodMiniString<string>;
|
|
92
|
+
accountPath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
93
|
+
host: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
94
|
+
port: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
|
|
96
95
|
}, z.core.$strip>;
|
|
97
96
|
}, z.core.$strip>;
|
|
98
97
|
/** HostActorConfigContext type. */
|
|
@@ -179,7 +178,6 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
|
|
|
179
178
|
port: number;
|
|
180
179
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
181
180
|
accountPath?: string | undefined;
|
|
182
|
-
healthCheckPort?: number | undefined;
|
|
183
181
|
};
|
|
184
182
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
185
183
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -270,7 +268,6 @@ export declare const asHostActorConfigContext: {
|
|
|
270
268
|
port: number;
|
|
271
269
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
272
270
|
accountPath?: string | undefined;
|
|
273
|
-
healthCheckPort?: number | undefined;
|
|
274
271
|
};
|
|
275
272
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
276
273
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -359,7 +356,6 @@ export declare const asHostActorConfigContext: {
|
|
|
359
356
|
port: number;
|
|
360
357
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
361
358
|
accountPath?: string | undefined;
|
|
362
|
-
healthCheckPort?: number | undefined;
|
|
363
359
|
};
|
|
364
360
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
365
361
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -451,7 +447,6 @@ export declare const toHostActorConfigContext: {
|
|
|
451
447
|
port: number;
|
|
452
448
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
453
449
|
accountPath?: string | undefined;
|
|
454
|
-
healthCheckPort?: number | undefined;
|
|
455
450
|
};
|
|
456
451
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
457
452
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -540,7 +535,6 @@ export declare const toHostActorConfigContext: {
|
|
|
540
535
|
port: number;
|
|
541
536
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
542
537
|
accountPath?: string | undefined;
|
|
543
|
-
healthCheckPort?: number | undefined;
|
|
544
538
|
};
|
|
545
539
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
546
540
|
meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostActor.d.ts","sourceRoot":"","sources":["../../../src/context/HostActor.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"HostActor.d.ts","sourceRoot":"","sources":["../../../src/context/HostActor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,uCAAuC;AACvC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiE,CAAA;AAEpG,mCAAmC;AACnC,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAC5E,uEAAuE;AACvE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmE,CAAA;AACxG,yCAAyC;AACzC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmE,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
/** EIP712SignaturePayloadFieldsZod constant. */
|
|
4
4
|
export declare const EIP712SignaturePayloadFieldsZod: z.ZodObject<{
|
|
5
5
|
address: z.ZodString;
|
|
6
|
-
hash:
|
|
6
|
+
hash: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
7
7
|
signature: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
/** EIP712SignaturePayloadFields type. */
|
|
@@ -152,7 +152,6 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
|
|
|
152
152
|
name: string;
|
|
153
153
|
dataLake?: import("./config/index.ts").DataLakeConfig | undefined;
|
|
154
154
|
accountPath?: string | undefined;
|
|
155
|
-
healthCheckPort?: number | undefined;
|
|
156
155
|
}[];
|
|
157
156
|
dataLake?: import("./config/index.ts").DataLakeConfig | undefined;
|
|
158
157
|
healthCheckPort?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFileConfig.d.ts","sourceRoot":"","sources":["../../src/getFileConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFileConfig.d.ts","sourceRoot":"","sources":["../../src/getFileConfig.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,wBAAsB,aAAa,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgB1D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/getFileConfig.ts
|
|
2
2
|
import { isDefined as isDefined2, isNull } from "@xylabs/sdk-js";
|
|
3
3
|
import { cosmiconfig } from "cosmiconfig";
|
|
4
|
+
import { z as z19 } from "zod/mini";
|
|
4
5
|
|
|
5
6
|
// src/config/Actor.ts
|
|
6
7
|
import {
|
|
@@ -8,21 +9,21 @@ import {
|
|
|
8
9
|
zodIsFactory as zodIsFactory2,
|
|
9
10
|
zodToFactory as zodToFactory2
|
|
10
11
|
} from "@xylabs/sdk-js";
|
|
11
|
-
import { globalRegistry as globalRegistry12, z as z16 } from "zod";
|
|
12
|
+
import { globalRegistry as globalRegistry12, z as z16 } from "zod/mini";
|
|
12
13
|
|
|
13
14
|
// src/config/Base.ts
|
|
14
|
-
import { z as z15 } from "zod";
|
|
15
|
+
import { z as z15 } from "zod/mini";
|
|
15
16
|
|
|
16
17
|
// src/config/Chain.ts
|
|
17
18
|
import { AddressZod, HexZod } from "@xylabs/sdk-js";
|
|
18
|
-
import { globalRegistry, z } from "zod";
|
|
19
|
+
import { globalRegistry, z } from "zod/mini";
|
|
19
20
|
var ChainConfigZod = z.object({
|
|
20
|
-
id:
|
|
21
|
+
id: z.optional(HexZod).register(globalRegistry, {
|
|
21
22
|
description: "The unique identifier for the chain. Should be the staking contract address for contract-backed chains.",
|
|
22
23
|
title: "chain.id",
|
|
23
24
|
type: "string"
|
|
24
25
|
}),
|
|
25
|
-
genesisRewardAddress:
|
|
26
|
+
genesisRewardAddress: z.optional(AddressZod).register(globalRegistry, {
|
|
26
27
|
description: "Address to send the initial genesis rewards to, if a new chain is being created.",
|
|
27
28
|
title: "chain.genesisRewardAddress",
|
|
28
29
|
type: "Address"
|
|
@@ -289,38 +290,28 @@ var ValidationConfigZod = z14.object({
|
|
|
289
290
|
|
|
290
291
|
// src/config/Base.ts
|
|
291
292
|
var BaseConfigZod = z15.object({
|
|
292
|
-
chain:
|
|
293
|
-
dataLake:
|
|
294
|
-
evm:
|
|
295
|
-
log:
|
|
296
|
-
providers:
|
|
297
|
-
remote:
|
|
298
|
-
storage:
|
|
299
|
-
telemetry:
|
|
300
|
-
validation:
|
|
293
|
+
chain: z15._default(ChainConfigZod, ChainConfigZod.parse({})).check(z15.describe("Configuration for the chain")),
|
|
294
|
+
dataLake: z15.optional(DataLakeConfigZod).check(z15.describe("Configuration for data lakes")),
|
|
295
|
+
evm: z15._default(EvmConfigZod, EvmConfigZod.parse({})).check(z15.describe("Configuration for EVM-backed services")),
|
|
296
|
+
log: z15._default(LogConfigZod, LogConfigZod.parse({})).check(z15.describe("Configuration for logging")),
|
|
297
|
+
providers: z15._default(ProvidersConfigZod, ProvidersConfigZod.parse([])).check(z15.describe("Configuration for providers")),
|
|
298
|
+
remote: z15._default(RemoteConfigZod, RemoteConfigZod.parse({})).check(z15.describe("Configuration for remote services")),
|
|
299
|
+
storage: z15._default(StorageConfigZod, StorageConfigZod.parse({})).check(z15.describe("Configuration for the storage")),
|
|
300
|
+
telemetry: z15._default(TelemetryConfigZod, TelemetryConfigZod.parse({})).check(z15.describe("Configuration for telemetry")),
|
|
301
|
+
validation: z15._default(ValidationConfigZod, ValidationConfigZod.parse({})).check(z15.describe("Configuration for validation"))
|
|
301
302
|
});
|
|
302
303
|
|
|
303
304
|
// src/config/Actor.ts
|
|
304
|
-
var AccountPathZod = z16.string().regex(
|
|
305
|
+
var AccountPathZod = z16.string().check(z16.regex(
|
|
305
306
|
/^(m(\/\d+'?)+|\d+'?(\/\d+'?)*)$/,
|
|
306
307
|
`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".`
|
|
307
|
-
);
|
|
308
|
-
var ActorConfigZod =
|
|
308
|
+
));
|
|
309
|
+
var ActorConfigZod = z16.extend(BaseConfigZod, {
|
|
309
310
|
name: z16.string(),
|
|
310
|
-
accountPath:
|
|
311
|
+
accountPath: z16.optional(AccountPathZod).register(globalRegistry12, {
|
|
311
312
|
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.',
|
|
312
313
|
title: "accountPath",
|
|
313
314
|
type: "string"
|
|
314
|
-
}),
|
|
315
|
-
/**
|
|
316
|
-
* @deprecated Use the top-level `healthCheckPort` on `ConfigZod` instead.
|
|
317
|
-
* The system-wide health server covers all actors in a single process; per-actor
|
|
318
|
-
* health ports will be removed in a future major release.
|
|
319
|
-
*/
|
|
320
|
-
healthCheckPort: z16.coerce.number().optional().register(globalRegistry12, {
|
|
321
|
-
description: "[DEPRECATED \u2014 use top-level healthCheckPort] Per-actor health server port.",
|
|
322
|
-
title: "actor.healthCheckPort",
|
|
323
|
-
type: "number"
|
|
324
315
|
})
|
|
325
316
|
});
|
|
326
317
|
var isActorConfig = zodIsFactory2(ActorConfigZod);
|
|
@@ -328,19 +319,22 @@ var asActorConfig = zodAsFactory2(ActorConfigZod, "asActorConfig");
|
|
|
328
319
|
var toActorConfig = zodToFactory2(ActorConfigZod, "toActorConfig");
|
|
329
320
|
|
|
330
321
|
// src/config/Actors.ts
|
|
331
|
-
import z17 from "zod";
|
|
332
|
-
var ActorsConfigZod = z17.
|
|
322
|
+
import { z as z17 } from "zod/mini";
|
|
323
|
+
var ActorsConfigZod = z17._default(
|
|
324
|
+
z17.array(z17.looseObject(ActorConfigZod.shape)).check(z17.describe("Actor-specific configurations that override the base configuration when the actor is running")),
|
|
325
|
+
[]
|
|
326
|
+
);
|
|
333
327
|
|
|
334
328
|
// src/config/Config.ts
|
|
335
|
-
import { globalRegistry as globalRegistry13, z as z18 } from "zod";
|
|
336
|
-
var ConfigZod =
|
|
329
|
+
import { globalRegistry as globalRegistry13, z as z18 } from "zod/mini";
|
|
330
|
+
var ConfigZod = z18.extend(BaseConfigZod, {
|
|
337
331
|
actors: ActorsConfigZod,
|
|
338
|
-
healthCheckPort: z18.coerce.number()
|
|
332
|
+
healthCheckPort: z18.optional(z18.coerce.number()).register(globalRegistry13, {
|
|
339
333
|
description: "Port for the system-wide health, readiness, and liveness endpoints (/healthz, /livez, /readyz). Set to 0 to disable.",
|
|
340
334
|
title: "healthCheckPort",
|
|
341
335
|
type: "number"
|
|
342
336
|
})
|
|
343
|
-
}).describe("The complete configuration for the protocol, including global settings and actor-specific overrides");
|
|
337
|
+
}).check(z18.describe("The complete configuration for the protocol, including global settings and actor-specific overrides"));
|
|
344
338
|
|
|
345
339
|
// src/getFileConfig.ts
|
|
346
340
|
var configName = "xyo";
|
|
@@ -357,7 +351,7 @@ async function getFileConfig(searchPlaces) {
|
|
|
357
351
|
if (!isNull(result)) {
|
|
358
352
|
const section = result[configSection];
|
|
359
353
|
if (isDefined2(section) && typeof section === "object") {
|
|
360
|
-
return ConfigZod.
|
|
354
|
+
return z19.looseObject(ConfigZod.shape).parse(section);
|
|
361
355
|
}
|
|
362
356
|
}
|
|
363
357
|
return ConfigZod.parse({});
|