@xyo-network/xl1-protocol-sdk 2.2.1 → 3.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/CreatableProvider/AbstractCreatableProvider.d.ts +35 -2
- package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts.map +1 -1
- package/dist/neutral/capabilities/Capability.d.ts +1 -8
- package/dist/neutral/capabilities/Capability.d.ts.map +1 -1
- package/dist/neutral/capabilities/Provider.d.ts +14 -23
- package/dist/neutral/capabilities/Provider.d.ts.map +1 -1
- package/dist/neutral/capabilities/connectionTypes.d.ts +9 -0
- package/dist/neutral/capabilities/connectionTypes.d.ts.map +1 -0
- package/dist/neutral/capabilities/index.d.ts +1 -0
- package/dist/neutral/capabilities/index.d.ts.map +1 -1
- package/dist/neutral/capabilities/resolveProviders.d.ts +27 -20
- package/dist/neutral/capabilities/resolveProviders.d.ts.map +1 -1
- package/dist/neutral/config/Actor.d.ts +216 -12
- package/dist/neutral/config/Actor.d.ts.map +1 -1
- package/dist/neutral/config/Actors.d.ts +41 -2
- package/dist/neutral/config/Actors.d.ts.map +1 -1
- package/dist/neutral/config/Base.d.ts +41 -2
- package/dist/neutral/config/Base.d.ts.map +1 -1
- package/dist/neutral/config/Config.d.ts +152 -8
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/HostActor.d.ts +216 -12
- package/dist/neutral/config/HostActor.d.ts.map +1 -1
- package/dist/neutral/config/ProviderBinding.d.ts +4 -5
- package/dist/neutral/config/ProviderBinding.d.ts.map +1 -1
- package/dist/neutral/config/adaptLegacyConfig.d.ts +2 -3
- package/dist/neutral/config/adaptLegacyConfig.d.ts.map +1 -1
- package/dist/neutral/config/connections/index.d.ts +6 -0
- package/dist/neutral/config/connections/index.d.ts.map +1 -0
- package/dist/neutral/config/index.d.ts +2 -0
- package/dist/neutral/config/index.d.ts.map +1 -1
- package/dist/neutral/config/normalizeConnectionsConfig.d.ts +20 -0
- package/dist/neutral/config/normalizeConnectionsConfig.d.ts.map +1 -0
- package/dist/neutral/config/transports/Transport.d.ts +18 -3
- package/dist/neutral/config/transports/Transport.d.ts.map +1 -1
- package/dist/neutral/context/Actor.d.ts +216 -12
- package/dist/neutral/context/Actor.d.ts.map +1 -1
- package/dist/neutral/context/HostActor.d.ts +216 -12
- package/dist/neutral/context/HostActor.d.ts.map +1 -1
- package/dist/neutral/getFileConfig.d.ts +70 -4
- package/dist/neutral/getFileConfig.d.ts.map +1 -1
- package/dist/neutral/getFileConfig.mjs +204 -191
- package/dist/neutral/getFileConfig.mjs.map +4 -4
- package/dist/neutral/index.mjs +570 -393
- package/dist/neutral/index.mjs.map +4 -4
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts +216 -12
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts.map +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts +1 -1
- package/dist/neutral/test/index.mjs +204 -191
- package/dist/neutral/test/index.mjs.map +4 -4
- package/package.json +6 -6
|
@@ -31,8 +31,42 @@ export declare const HostActorConfigZod: z.ZodMiniObject<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
silent: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
|
+
connections: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
35
|
+
access: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
36
|
+
read: "read";
|
|
37
|
+
write: "write";
|
|
38
|
+
}>>;
|
|
39
|
+
root: import("zod").ZodString;
|
|
40
|
+
store: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
type: import("zod").ZodLiteral<"lmdb">;
|
|
42
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
43
|
+
type: import("zod").ZodLiteral<"mongo">;
|
|
44
|
+
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
database: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
50
|
+
protocol: import("zod").ZodDefault<import("zod").ZodString>;
|
|
51
|
+
url: import("zod").ZodString;
|
|
52
|
+
type: import("zod").ZodLiteral<"rpc">;
|
|
53
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
54
|
+
type: import("zod").ZodLiteral<"rest">;
|
|
55
|
+
baseUrl: import("zod").ZodString;
|
|
56
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
57
|
+
bucket: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
readUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
type: import("zod").ZodLiteral<"s3">;
|
|
61
|
+
accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
65
|
+
type: import("zod").ZodLiteral<"evm-rpc">;
|
|
66
|
+
url: import("zod").ZodString;
|
|
67
|
+
}, z.core.$strip>], "type">>>>;
|
|
34
68
|
providerBindings: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
35
|
-
|
|
69
|
+
connection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
70
|
transport: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
71
|
}, z.core.$strip>>>>;
|
|
38
72
|
providers: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -50,8 +84,13 @@ export declare const HostActorConfigZod: z.ZodMiniObject<{
|
|
|
50
84
|
}, z.core.$strip>]>>;
|
|
51
85
|
}, z.core.$strip>>;
|
|
52
86
|
transports: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
53
|
-
|
|
87
|
+
access: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
88
|
+
read: "read";
|
|
89
|
+
write: "write";
|
|
90
|
+
}>>;
|
|
54
91
|
root: import("zod").ZodString;
|
|
92
|
+
store: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
+
type: import("zod").ZodLiteral<"lmdb">;
|
|
55
94
|
}, z.core.$strip>, import("zod").ZodObject<{
|
|
56
95
|
type: import("zod").ZodLiteral<"mongo">;
|
|
57
96
|
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -174,8 +213,39 @@ export declare const isHostActorConfig: <T>(value: T) => value is T & {
|
|
|
174
213
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
175
214
|
silent: boolean;
|
|
176
215
|
};
|
|
216
|
+
connections: Record<string, {
|
|
217
|
+
root: string;
|
|
218
|
+
type: "lmdb";
|
|
219
|
+
access?: "read" | "write" | undefined;
|
|
220
|
+
store?: string | undefined;
|
|
221
|
+
} | {
|
|
222
|
+
type: "mongo";
|
|
223
|
+
connectionString?: string | undefined;
|
|
224
|
+
database?: string | undefined;
|
|
225
|
+
domain?: string | undefined;
|
|
226
|
+
password?: string | undefined;
|
|
227
|
+
username?: string | undefined;
|
|
228
|
+
} | {
|
|
229
|
+
protocol: string;
|
|
230
|
+
url: string;
|
|
231
|
+
type: "rpc";
|
|
232
|
+
} | {
|
|
233
|
+
type: "rest";
|
|
234
|
+
baseUrl: string;
|
|
235
|
+
} | {
|
|
236
|
+
type: "s3";
|
|
237
|
+
bucket?: string | undefined;
|
|
238
|
+
prefix?: string | undefined;
|
|
239
|
+
readUrl?: string | undefined;
|
|
240
|
+
accessKeyId?: string | undefined;
|
|
241
|
+
accountId?: string | undefined;
|
|
242
|
+
secretAccessKey?: string | undefined;
|
|
243
|
+
} | {
|
|
244
|
+
type: "evm-rpc";
|
|
245
|
+
url: string;
|
|
246
|
+
}>;
|
|
177
247
|
providerBindings: Record<string, {
|
|
178
|
-
|
|
248
|
+
connection?: string | undefined;
|
|
179
249
|
transport?: string | undefined;
|
|
180
250
|
}>;
|
|
181
251
|
providers: {
|
|
@@ -194,8 +264,10 @@ export declare const isHostActorConfig: <T>(value: T) => value is T & {
|
|
|
194
264
|
} | undefined;
|
|
195
265
|
};
|
|
196
266
|
transports: Record<string, {
|
|
197
|
-
type: "lmdb";
|
|
198
267
|
root: string;
|
|
268
|
+
type: "lmdb";
|
|
269
|
+
access?: "read" | "write" | undefined;
|
|
270
|
+
store?: string | undefined;
|
|
199
271
|
} | {
|
|
200
272
|
type: "mongo";
|
|
201
273
|
connectionString?: string | undefined;
|
|
@@ -318,8 +390,39 @@ export declare const asHostActorConfig: {
|
|
|
318
390
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
319
391
|
silent: boolean;
|
|
320
392
|
};
|
|
393
|
+
connections: Record<string, {
|
|
394
|
+
root: string;
|
|
395
|
+
type: "lmdb";
|
|
396
|
+
access?: "read" | "write" | undefined;
|
|
397
|
+
store?: string | undefined;
|
|
398
|
+
} | {
|
|
399
|
+
type: "mongo";
|
|
400
|
+
connectionString?: string | undefined;
|
|
401
|
+
database?: string | undefined;
|
|
402
|
+
domain?: string | undefined;
|
|
403
|
+
password?: string | undefined;
|
|
404
|
+
username?: string | undefined;
|
|
405
|
+
} | {
|
|
406
|
+
protocol: string;
|
|
407
|
+
url: string;
|
|
408
|
+
type: "rpc";
|
|
409
|
+
} | {
|
|
410
|
+
type: "rest";
|
|
411
|
+
baseUrl: string;
|
|
412
|
+
} | {
|
|
413
|
+
type: "s3";
|
|
414
|
+
bucket?: string | undefined;
|
|
415
|
+
prefix?: string | undefined;
|
|
416
|
+
readUrl?: string | undefined;
|
|
417
|
+
accessKeyId?: string | undefined;
|
|
418
|
+
accountId?: string | undefined;
|
|
419
|
+
secretAccessKey?: string | undefined;
|
|
420
|
+
} | {
|
|
421
|
+
type: "evm-rpc";
|
|
422
|
+
url: string;
|
|
423
|
+
}>;
|
|
321
424
|
providerBindings: Record<string, {
|
|
322
|
-
|
|
425
|
+
connection?: string | undefined;
|
|
323
426
|
transport?: string | undefined;
|
|
324
427
|
}>;
|
|
325
428
|
providers: {
|
|
@@ -338,8 +441,10 @@ export declare const asHostActorConfig: {
|
|
|
338
441
|
} | undefined;
|
|
339
442
|
};
|
|
340
443
|
transports: Record<string, {
|
|
341
|
-
type: "lmdb";
|
|
342
444
|
root: string;
|
|
445
|
+
type: "lmdb";
|
|
446
|
+
access?: "read" | "write" | undefined;
|
|
447
|
+
store?: string | undefined;
|
|
343
448
|
} | {
|
|
344
449
|
type: "mongo";
|
|
345
450
|
connectionString?: string | undefined;
|
|
@@ -460,8 +565,39 @@ export declare const asHostActorConfig: {
|
|
|
460
565
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
461
566
|
silent: boolean;
|
|
462
567
|
};
|
|
568
|
+
connections: Record<string, {
|
|
569
|
+
root: string;
|
|
570
|
+
type: "lmdb";
|
|
571
|
+
access?: "read" | "write" | undefined;
|
|
572
|
+
store?: string | undefined;
|
|
573
|
+
} | {
|
|
574
|
+
type: "mongo";
|
|
575
|
+
connectionString?: string | undefined;
|
|
576
|
+
database?: string | undefined;
|
|
577
|
+
domain?: string | undefined;
|
|
578
|
+
password?: string | undefined;
|
|
579
|
+
username?: string | undefined;
|
|
580
|
+
} | {
|
|
581
|
+
protocol: string;
|
|
582
|
+
url: string;
|
|
583
|
+
type: "rpc";
|
|
584
|
+
} | {
|
|
585
|
+
type: "rest";
|
|
586
|
+
baseUrl: string;
|
|
587
|
+
} | {
|
|
588
|
+
type: "s3";
|
|
589
|
+
bucket?: string | undefined;
|
|
590
|
+
prefix?: string | undefined;
|
|
591
|
+
readUrl?: string | undefined;
|
|
592
|
+
accessKeyId?: string | undefined;
|
|
593
|
+
accountId?: string | undefined;
|
|
594
|
+
secretAccessKey?: string | undefined;
|
|
595
|
+
} | {
|
|
596
|
+
type: "evm-rpc";
|
|
597
|
+
url: string;
|
|
598
|
+
}>;
|
|
463
599
|
providerBindings: Record<string, {
|
|
464
|
-
|
|
600
|
+
connection?: string | undefined;
|
|
465
601
|
transport?: string | undefined;
|
|
466
602
|
}>;
|
|
467
603
|
providers: {
|
|
@@ -480,8 +616,10 @@ export declare const asHostActorConfig: {
|
|
|
480
616
|
} | undefined;
|
|
481
617
|
};
|
|
482
618
|
transports: Record<string, {
|
|
483
|
-
type: "lmdb";
|
|
484
619
|
root: string;
|
|
620
|
+
type: "lmdb";
|
|
621
|
+
access?: "read" | "write" | undefined;
|
|
622
|
+
store?: string | undefined;
|
|
485
623
|
} | {
|
|
486
624
|
type: "mongo";
|
|
487
625
|
connectionString?: string | undefined;
|
|
@@ -605,8 +743,39 @@ export declare const toHostActorConfig: {
|
|
|
605
743
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
606
744
|
silent: boolean;
|
|
607
745
|
};
|
|
746
|
+
connections: Record<string, {
|
|
747
|
+
root: string;
|
|
748
|
+
type: "lmdb";
|
|
749
|
+
access?: "read" | "write" | undefined;
|
|
750
|
+
store?: string | undefined;
|
|
751
|
+
} | {
|
|
752
|
+
type: "mongo";
|
|
753
|
+
connectionString?: string | undefined;
|
|
754
|
+
database?: string | undefined;
|
|
755
|
+
domain?: string | undefined;
|
|
756
|
+
password?: string | undefined;
|
|
757
|
+
username?: string | undefined;
|
|
758
|
+
} | {
|
|
759
|
+
protocol: string;
|
|
760
|
+
url: string;
|
|
761
|
+
type: "rpc";
|
|
762
|
+
} | {
|
|
763
|
+
type: "rest";
|
|
764
|
+
baseUrl: string;
|
|
765
|
+
} | {
|
|
766
|
+
type: "s3";
|
|
767
|
+
bucket?: string | undefined;
|
|
768
|
+
prefix?: string | undefined;
|
|
769
|
+
readUrl?: string | undefined;
|
|
770
|
+
accessKeyId?: string | undefined;
|
|
771
|
+
accountId?: string | undefined;
|
|
772
|
+
secretAccessKey?: string | undefined;
|
|
773
|
+
} | {
|
|
774
|
+
type: "evm-rpc";
|
|
775
|
+
url: string;
|
|
776
|
+
}>;
|
|
608
777
|
providerBindings: Record<string, {
|
|
609
|
-
|
|
778
|
+
connection?: string | undefined;
|
|
610
779
|
transport?: string | undefined;
|
|
611
780
|
}>;
|
|
612
781
|
providers: {
|
|
@@ -625,8 +794,10 @@ export declare const toHostActorConfig: {
|
|
|
625
794
|
} | undefined;
|
|
626
795
|
};
|
|
627
796
|
transports: Record<string, {
|
|
628
|
-
type: "lmdb";
|
|
629
797
|
root: string;
|
|
798
|
+
type: "lmdb";
|
|
799
|
+
access?: "read" | "write" | undefined;
|
|
800
|
+
store?: string | undefined;
|
|
630
801
|
} | {
|
|
631
802
|
type: "mongo";
|
|
632
803
|
connectionString?: string | undefined;
|
|
@@ -747,8 +918,39 @@ export declare const toHostActorConfig: {
|
|
|
747
918
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
748
919
|
silent: boolean;
|
|
749
920
|
};
|
|
921
|
+
connections: Record<string, {
|
|
922
|
+
root: string;
|
|
923
|
+
type: "lmdb";
|
|
924
|
+
access?: "read" | "write" | undefined;
|
|
925
|
+
store?: string | undefined;
|
|
926
|
+
} | {
|
|
927
|
+
type: "mongo";
|
|
928
|
+
connectionString?: string | undefined;
|
|
929
|
+
database?: string | undefined;
|
|
930
|
+
domain?: string | undefined;
|
|
931
|
+
password?: string | undefined;
|
|
932
|
+
username?: string | undefined;
|
|
933
|
+
} | {
|
|
934
|
+
protocol: string;
|
|
935
|
+
url: string;
|
|
936
|
+
type: "rpc";
|
|
937
|
+
} | {
|
|
938
|
+
type: "rest";
|
|
939
|
+
baseUrl: string;
|
|
940
|
+
} | {
|
|
941
|
+
type: "s3";
|
|
942
|
+
bucket?: string | undefined;
|
|
943
|
+
prefix?: string | undefined;
|
|
944
|
+
readUrl?: string | undefined;
|
|
945
|
+
accessKeyId?: string | undefined;
|
|
946
|
+
accountId?: string | undefined;
|
|
947
|
+
secretAccessKey?: string | undefined;
|
|
948
|
+
} | {
|
|
949
|
+
type: "evm-rpc";
|
|
950
|
+
url: string;
|
|
951
|
+
}>;
|
|
750
952
|
providerBindings: Record<string, {
|
|
751
|
-
|
|
953
|
+
connection?: string | undefined;
|
|
752
954
|
transport?: string | undefined;
|
|
753
955
|
}>;
|
|
754
956
|
providers: {
|
|
@@ -767,8 +969,10 @@ export declare const toHostActorConfig: {
|
|
|
767
969
|
} | undefined;
|
|
768
970
|
};
|
|
769
971
|
transports: Record<string, {
|
|
770
|
-
type: "lmdb";
|
|
771
972
|
root: string;
|
|
973
|
+
type: "lmdb";
|
|
974
|
+
access?: "read" | "write" | undefined;
|
|
975
|
+
store?: string | undefined;
|
|
772
976
|
} | {
|
|
773
977
|
type: "mongo";
|
|
774
978
|
connectionString?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostActor.d.ts","sourceRoot":"","sources":["../../../src/config/HostActor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,CAAC,EAAE,MAAM,UAAU,CAAA;AAI5C,mCAAmC;AACnC,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"HostActor.d.ts","sourceRoot":"","sources":["../../../src/config/HostActor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,CAAC,EAAE,MAAM,UAAU,CAAA;AAI5C,mCAAmC;AACnC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwD,CAAA"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
* Binds a capability moniker to
|
|
4
|
-
*
|
|
5
|
-
* `BlockViewer`).
|
|
3
|
+
* Binds a capability moniker to a named connection profile.
|
|
4
|
+
* Keys in `providerBindings` use the provider moniker (e.g. `BlockViewer`).
|
|
6
5
|
*/
|
|
7
6
|
export declare const ProviderBindingConfigZod: z.ZodObject<{
|
|
8
|
-
|
|
7
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
9
8
|
transport: z.ZodOptional<z.ZodString>;
|
|
10
9
|
}, z.core.$strip>;
|
|
11
10
|
export type ProviderBindingConfig = z.infer<typeof ProviderBindingConfigZod>;
|
|
12
11
|
/** Map of provider moniker → binding. */
|
|
13
12
|
export declare const ProviderBindingsConfigZod: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14
|
-
|
|
13
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
15
14
|
transport: z.ZodOptional<z.ZodString>;
|
|
16
15
|
}, z.core.$strip>>>;
|
|
17
16
|
export type ProviderBindingsConfig = z.infer<typeof ProviderBindingsConfigZod>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderBinding.d.ts","sourceRoot":"","sources":["../../../src/config/ProviderBinding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":"ProviderBinding.d.ts","sourceRoot":"","sources":["../../../src/config/ProviderBinding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvC;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;iBAWK,CAAA;AAE1C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE5E,yCAAyC;AACzC,eAAO,MAAM,yBAAyB;;;mBAA6D,CAAA;AAEnG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { Config } from './Config.ts';
|
|
2
2
|
import type { DeepPartial } from './DeepPartial.ts';
|
|
3
3
|
/**
|
|
4
|
-
* Synthesizes `transports` and `providerBindings` from legacy
|
|
5
|
-
* `remote`, and `evm` fields when the new sections are absent.
|
|
6
|
-
* configs that already declare transports — those are returned unchanged.
|
|
4
|
+
* Synthesizes `connections` / `transports` and `providerBindings` from legacy
|
|
5
|
+
* `storage`, `remote`, and `evm` fields when the new sections are absent.
|
|
7
6
|
*/
|
|
8
7
|
export declare function adaptLegacyConfig(config: DeepPartial<Config>): Config;
|
|
9
8
|
//# sourceMappingURL=adaptLegacyConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adaptLegacyConfig.d.ts","sourceRoot":"","sources":["../../../src/config/adaptLegacyConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"adaptLegacyConfig.d.ts","sourceRoot":"","sources":["../../../src/config/adaptLegacyConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAwJnD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CA+CrE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Named connection profiles (successor to `transports`).
|
|
3
|
+
* Schemas are shared with `transports` during the migration period.
|
|
4
|
+
*/
|
|
5
|
+
export { type TransportConfig as ConnectionConfig, TransportConfigZod as ConnectionConfigZod, type TransportKind as ConnectionKind, type TransportsConfig as ConnectionsConfig, TransportsConfigZod as ConnectionsConfigZod, type EvmRpcTransportConfig as EvmConnectionConfig, EvmRpcTransportConfigZod as EvmConnectionConfigZod, type LmdbTransportConfig as LmdbConnectionConfig, LmdbTransportConfigZod as LmdbConnectionConfigZod, type MongoTransportConfig as MongoConnectionConfig, MongoTransportConfigZod as MongoConnectionConfigZod, type RestTransportConfig as RestConnectionConfig, RestTransportConfigZod as RestConnectionConfigZod, type RpcTransportConfig as RpcConnectionConfig, RpcTransportConfigZod as RpcConnectionConfigZod, type S3TransportConfig as S3ConnectionConfig, S3TransportConfigZod as S3ConnectionConfigZod, } from '../transports/Transport.ts';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/connections/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,KAAK,eAAe,IAAI,gBAAgB,EACxC,kBAAkB,IAAI,mBAAmB,EACzC,KAAK,aAAa,IAAI,cAAc,EACpC,KAAK,gBAAgB,IAAI,iBAAiB,EAC1C,mBAAmB,IAAI,oBAAoB,EAC3C,KAAK,qBAAqB,IAAI,mBAAmB,EACjD,wBAAwB,IAAI,sBAAsB,EAClD,KAAK,mBAAmB,IAAI,oBAAoB,EAChD,sBAAsB,IAAI,uBAAuB,EACjD,KAAK,oBAAoB,IAAI,qBAAqB,EAClD,uBAAuB,IAAI,wBAAwB,EACnD,KAAK,mBAAmB,IAAI,oBAAoB,EAChD,sBAAsB,IAAI,uBAAuB,EACjD,KAAK,kBAAkB,IAAI,mBAAmB,EAC9C,qBAAqB,IAAI,sBAAsB,EAC/C,KAAK,iBAAiB,IAAI,kBAAkB,EAC5C,oBAAoB,IAAI,qBAAqB,GAC9C,MAAM,4BAA4B,CAAA"}
|
|
@@ -3,8 +3,10 @@ export * from './Actors.ts';
|
|
|
3
3
|
export * from './adaptLegacyConfig.ts';
|
|
4
4
|
export * from './Base.ts';
|
|
5
5
|
export * from './Config.ts';
|
|
6
|
+
export * from './connections/index.ts';
|
|
6
7
|
export * from './DataLake/index.ts';
|
|
7
8
|
export * from './HostActor.ts';
|
|
9
|
+
export * from './normalizeConnectionsConfig.ts';
|
|
8
10
|
export * from './Provider.ts';
|
|
9
11
|
export * from './ProviderBinding.ts';
|
|
10
12
|
export * from './Providers.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,YAAY,EACV,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,GACzD,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,cAAc,EAAE,WAAW,EAAE,eAAe,GAC7C,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,YAAY,EACV,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,GACzD,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,cAAc,EAAE,WAAW,EAAE,eAAe,GAC7C,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ConnectionsConfig } from './connections/index.ts';
|
|
2
|
+
import type { ProviderBindingsConfig } from './ProviderBinding.ts';
|
|
3
|
+
import type { TransportsConfig } from './transports/index.ts';
|
|
4
|
+
interface ConnectionsBootFields {
|
|
5
|
+
connections?: ConnectionsConfig;
|
|
6
|
+
providerBindings?: ProviderBindingsConfig;
|
|
7
|
+
transports?: TransportsConfig;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Keeps `connections` and `transports` in sync and normalizes `providerBindings`
|
|
11
|
+
* so `connection` and legacy `transport` reference the same named profile.
|
|
12
|
+
*/
|
|
13
|
+
export declare function normalizeConnectionsConfig<T extends ConnectionsBootFields>(config: T): T & {
|
|
14
|
+
connections: ConnectionsConfig;
|
|
15
|
+
providerBindings: ProviderBindingsConfig;
|
|
16
|
+
transports: TransportsConfig;
|
|
17
|
+
};
|
|
18
|
+
export declare function hasDeclaredConnectionProfiles(config: ConnectionsBootFields): boolean;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=normalizeConnectionsConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeConnectionsConfig.d.ts","sourceRoot":"","sources":["../../../src/config/normalizeConnectionsConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAyB,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,UAAU,qBAAqB;IAC7B,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,sBAAsB,CAAA;IACzC,UAAU,CAAC,EAAE,gBAAgB,CAAA;CAC9B;AA8BD;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,qBAAqB,EACxE,MAAM,EAAE,CAAC,GACR,CAAC,GAAG;IACL,WAAW,EAAE,iBAAiB,CAAA;IAC9B,gBAAgB,EAAE,sBAAsB,CAAA;IACxC,UAAU,EAAE,gBAAgB,CAAA;CAC7B,CAUA;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAGpF"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Named LMDB backing-store transport. */
|
|
3
3
|
export declare const LmdbTransportConfigZod: z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
5
|
+
read: "read";
|
|
6
|
+
write: "write";
|
|
7
|
+
}>>;
|
|
5
8
|
root: z.ZodString;
|
|
9
|
+
store: z.ZodOptional<z.ZodString>;
|
|
10
|
+
type: z.ZodLiteral<"lmdb">;
|
|
6
11
|
}, z.core.$strip>;
|
|
7
12
|
/** MongoDB backing-store transport. */
|
|
8
13
|
export declare const MongoTransportConfigZod: z.ZodObject<{
|
|
@@ -41,8 +46,13 @@ export declare const EvmRpcTransportConfigZod: z.ZodObject<{
|
|
|
41
46
|
}, z.core.$strip>;
|
|
42
47
|
/** Discriminated union of all supported transport kinds. */
|
|
43
48
|
export declare const TransportConfigZod: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
-
|
|
49
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
read: "read";
|
|
51
|
+
write: "write";
|
|
52
|
+
}>>;
|
|
45
53
|
root: z.ZodString;
|
|
54
|
+
store: z.ZodOptional<z.ZodString>;
|
|
55
|
+
type: z.ZodLiteral<"lmdb">;
|
|
46
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
47
57
|
type: z.ZodLiteral<"mongo">;
|
|
48
58
|
connectionString: z.ZodOptional<z.ZodString>;
|
|
@@ -78,8 +88,13 @@ export type EvmRpcTransportConfig = z.infer<typeof EvmRpcTransportConfigZod>;
|
|
|
78
88
|
export type TransportConfig = z.infer<typeof TransportConfigZod>;
|
|
79
89
|
/** Map of transport name → transport configuration. */
|
|
80
90
|
export declare const TransportsConfigZod: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
81
|
-
|
|
91
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
read: "read";
|
|
93
|
+
write: "write";
|
|
94
|
+
}>>;
|
|
82
95
|
root: z.ZodString;
|
|
96
|
+
store: z.ZodOptional<z.ZodString>;
|
|
97
|
+
type: z.ZodLiteral<"lmdb">;
|
|
83
98
|
}, z.core.$strip>, z.ZodObject<{
|
|
84
99
|
type: z.ZodLiteral<"mongo">;
|
|
85
100
|
connectionString: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transport.d.ts","sourceRoot":"","sources":["../../../../src/config/transports/Transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvC,0CAA0C;AAC1C,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"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