@learncard/core 5.1.1 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/dist/core.cjs.development.js +143 -26
- package/dist/core.cjs.development.js.map +3 -3
- package/dist/core.cjs.production.min.js +76 -76
- package/dist/core.cjs.production.min.js.map +3 -3
- package/dist/core.d.ts +627 -362
- package/dist/core.esm.js +143 -26
- package/dist/core.esm.js.map +3 -3
- package/dist/didkit/didkit_wasm.js +1 -1
- package/dist/didkit/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm.js +1 -1
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/dist/core.d.ts
CHANGED
@@ -37,7 +37,10 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
37
37
|
]>>;
|
38
38
|
email: z.ZodOptional<z.ZodString>;
|
39
39
|
address: z.ZodOptional<z.ZodObject<{
|
40
|
-
type: z.
|
40
|
+
type: z.ZodUnion<[
|
41
|
+
z.ZodString,
|
42
|
+
z.ZodArray<z.ZodString, "atleastone">
|
43
|
+
]>;
|
41
44
|
addressCountry: z.ZodOptional<z.ZodString>;
|
42
45
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
43
46
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -46,18 +49,21 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
46
49
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
47
50
|
postalCode: z.ZodOptional<z.ZodString>;
|
48
51
|
geo: z.ZodOptional<z.ZodObject<{
|
49
|
-
type: z.
|
52
|
+
type: z.ZodUnion<[
|
53
|
+
z.ZodString,
|
54
|
+
z.ZodArray<z.ZodString, "atleastone">
|
55
|
+
]>;
|
50
56
|
latitude: z.ZodNumber;
|
51
57
|
longitude: z.ZodNumber;
|
52
58
|
}, "strip", z.ZodTypeAny, {
|
53
|
-
type: [
|
59
|
+
type: string | [
|
54
60
|
string,
|
55
61
|
...string[]
|
56
62
|
];
|
57
63
|
latitude: number;
|
58
64
|
longitude: number;
|
59
65
|
}, {
|
60
|
-
type: [
|
66
|
+
type: string | [
|
61
67
|
string,
|
62
68
|
...string[]
|
63
69
|
];
|
@@ -73,14 +79,14 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
73
79
|
postOfficeBoxNumber?: string | undefined;
|
74
80
|
postalCode?: string | undefined;
|
75
81
|
geo?: {
|
76
|
-
type: [
|
82
|
+
type: string | [
|
77
83
|
string,
|
78
84
|
...string[]
|
79
85
|
];
|
80
86
|
latitude: number;
|
81
87
|
longitude: number;
|
82
88
|
} | undefined;
|
83
|
-
type: [
|
89
|
+
type: string | [
|
84
90
|
string,
|
85
91
|
...string[]
|
86
92
|
];
|
@@ -93,20 +99,23 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
93
99
|
postOfficeBoxNumber?: string | undefined;
|
94
100
|
postalCode?: string | undefined;
|
95
101
|
geo?: {
|
96
|
-
type: [
|
102
|
+
type: string | [
|
97
103
|
string,
|
98
104
|
...string[]
|
99
105
|
];
|
100
106
|
latitude: number;
|
101
107
|
longitude: number;
|
102
108
|
} | undefined;
|
103
|
-
type: [
|
109
|
+
type: string | [
|
104
110
|
string,
|
105
111
|
...string[]
|
106
112
|
];
|
107
113
|
}>>;
|
108
114
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
109
|
-
type: z.
|
115
|
+
type: z.ZodUnion<[
|
116
|
+
z.ZodString,
|
117
|
+
z.ZodArray<z.ZodString, "atleastone">
|
118
|
+
]>;
|
110
119
|
identifier: z.ZodString;
|
111
120
|
identifierType: z.ZodUnion<[
|
112
121
|
z.ZodEnum<[
|
@@ -132,14 +141,14 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
132
141
|
z.ZodString
|
133
142
|
]>;
|
134
143
|
}, "strip", z.ZodTypeAny, {
|
135
|
-
type: [
|
144
|
+
type: string | [
|
136
145
|
string,
|
137
146
|
...string[]
|
138
147
|
];
|
139
148
|
identifier: string;
|
140
149
|
identifierType: string;
|
141
150
|
}, {
|
142
|
-
type: [
|
151
|
+
type: string | [
|
143
152
|
string,
|
144
153
|
...string[]
|
145
154
|
];
|
@@ -183,20 +192,20 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
183
192
|
postOfficeBoxNumber?: string | undefined;
|
184
193
|
postalCode?: string | undefined;
|
185
194
|
geo?: {
|
186
|
-
type: [
|
195
|
+
type: string | [
|
187
196
|
string,
|
188
197
|
...string[]
|
189
198
|
];
|
190
199
|
latitude: number;
|
191
200
|
longitude: number;
|
192
201
|
} | undefined;
|
193
|
-
type: [
|
202
|
+
type: string | [
|
194
203
|
string,
|
195
204
|
...string[]
|
196
205
|
];
|
197
206
|
} | undefined;
|
198
207
|
otherIdentifier?: {
|
199
|
-
type: [
|
208
|
+
type: string | [
|
200
209
|
string,
|
201
210
|
...string[]
|
202
211
|
];
|
@@ -240,20 +249,20 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
240
249
|
postOfficeBoxNumber?: string | undefined;
|
241
250
|
postalCode?: string | undefined;
|
242
251
|
geo?: {
|
243
|
-
type: [
|
252
|
+
type: string | [
|
244
253
|
string,
|
245
254
|
...string[]
|
246
255
|
];
|
247
256
|
latitude: number;
|
248
257
|
longitude: number;
|
249
258
|
} | undefined;
|
250
|
-
type: [
|
259
|
+
type: string | [
|
251
260
|
string,
|
252
261
|
...string[]
|
253
262
|
];
|
254
263
|
} | undefined;
|
255
264
|
otherIdentifier?: {
|
256
|
-
type: [
|
265
|
+
type: string | [
|
257
266
|
string,
|
258
267
|
...string[]
|
259
268
|
];
|
@@ -375,20 +384,20 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
375
384
|
postOfficeBoxNumber?: string | undefined;
|
376
385
|
postalCode?: string | undefined;
|
377
386
|
geo?: {
|
378
|
-
type: [
|
387
|
+
type: string | [
|
379
388
|
string,
|
380
389
|
...string[]
|
381
390
|
];
|
382
391
|
latitude: number;
|
383
392
|
longitude: number;
|
384
393
|
} | undefined;
|
385
|
-
type: [
|
394
|
+
type: string | [
|
386
395
|
string,
|
387
396
|
...string[]
|
388
397
|
];
|
389
398
|
} | undefined;
|
390
399
|
otherIdentifier?: {
|
391
|
-
type: [
|
400
|
+
type: string | [
|
392
401
|
string,
|
393
402
|
...string[]
|
394
403
|
];
|
@@ -463,20 +472,20 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
463
472
|
postOfficeBoxNumber?: string | undefined;
|
464
473
|
postalCode?: string | undefined;
|
465
474
|
geo?: {
|
466
|
-
type: [
|
475
|
+
type: string | [
|
467
476
|
string,
|
468
477
|
...string[]
|
469
478
|
];
|
470
479
|
latitude: number;
|
471
480
|
longitude: number;
|
472
481
|
} | undefined;
|
473
|
-
type: [
|
482
|
+
type: string | [
|
474
483
|
string,
|
475
484
|
...string[]
|
476
485
|
];
|
477
486
|
} | undefined;
|
478
487
|
otherIdentifier?: {
|
479
|
-
type: [
|
488
|
+
type: string | [
|
480
489
|
string,
|
481
490
|
...string[]
|
482
491
|
];
|
@@ -536,7 +545,10 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
536
545
|
]>>;
|
537
546
|
email: z.ZodOptional<z.ZodString>;
|
538
547
|
address: z.ZodOptional<z.ZodObject<{
|
539
|
-
type: z.
|
548
|
+
type: z.ZodUnion<[
|
549
|
+
z.ZodString,
|
550
|
+
z.ZodArray<z.ZodString, "atleastone">
|
551
|
+
]>;
|
540
552
|
addressCountry: z.ZodOptional<z.ZodString>;
|
541
553
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
542
554
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -545,18 +557,21 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
545
557
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
546
558
|
postalCode: z.ZodOptional<z.ZodString>;
|
547
559
|
geo: z.ZodOptional<z.ZodObject<{
|
548
|
-
type: z.
|
560
|
+
type: z.ZodUnion<[
|
561
|
+
z.ZodString,
|
562
|
+
z.ZodArray<z.ZodString, "atleastone">
|
563
|
+
]>;
|
549
564
|
latitude: z.ZodNumber;
|
550
565
|
longitude: z.ZodNumber;
|
551
566
|
}, "strip", z.ZodTypeAny, {
|
552
|
-
type: [
|
567
|
+
type: string | [
|
553
568
|
string,
|
554
569
|
...string[]
|
555
570
|
];
|
556
571
|
latitude: number;
|
557
572
|
longitude: number;
|
558
573
|
}, {
|
559
|
-
type: [
|
574
|
+
type: string | [
|
560
575
|
string,
|
561
576
|
...string[]
|
562
577
|
];
|
@@ -572,14 +587,14 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
572
587
|
postOfficeBoxNumber?: string | undefined;
|
573
588
|
postalCode?: string | undefined;
|
574
589
|
geo?: {
|
575
|
-
type: [
|
590
|
+
type: string | [
|
576
591
|
string,
|
577
592
|
...string[]
|
578
593
|
];
|
579
594
|
latitude: number;
|
580
595
|
longitude: number;
|
581
596
|
} | undefined;
|
582
|
-
type: [
|
597
|
+
type: string | [
|
583
598
|
string,
|
584
599
|
...string[]
|
585
600
|
];
|
@@ -592,20 +607,23 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
592
607
|
postOfficeBoxNumber?: string | undefined;
|
593
608
|
postalCode?: string | undefined;
|
594
609
|
geo?: {
|
595
|
-
type: [
|
610
|
+
type: string | [
|
596
611
|
string,
|
597
612
|
...string[]
|
598
613
|
];
|
599
614
|
latitude: number;
|
600
615
|
longitude: number;
|
601
616
|
} | undefined;
|
602
|
-
type: [
|
617
|
+
type: string | [
|
603
618
|
string,
|
604
619
|
...string[]
|
605
620
|
];
|
606
621
|
}>>;
|
607
622
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
608
|
-
type: z.
|
623
|
+
type: z.ZodUnion<[
|
624
|
+
z.ZodString,
|
625
|
+
z.ZodArray<z.ZodString, "atleastone">
|
626
|
+
]>;
|
609
627
|
identifier: z.ZodString;
|
610
628
|
identifierType: z.ZodUnion<[
|
611
629
|
z.ZodEnum<[
|
@@ -631,14 +649,14 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
631
649
|
z.ZodString
|
632
650
|
]>;
|
633
651
|
}, "strip", z.ZodTypeAny, {
|
634
|
-
type: [
|
652
|
+
type: string | [
|
635
653
|
string,
|
636
654
|
...string[]
|
637
655
|
];
|
638
656
|
identifier: string;
|
639
657
|
identifierType: string;
|
640
658
|
}, {
|
641
|
-
type: [
|
659
|
+
type: string | [
|
642
660
|
string,
|
643
661
|
...string[]
|
644
662
|
];
|
@@ -682,20 +700,20 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
682
700
|
postOfficeBoxNumber?: string | undefined;
|
683
701
|
postalCode?: string | undefined;
|
684
702
|
geo?: {
|
685
|
-
type: [
|
703
|
+
type: string | [
|
686
704
|
string,
|
687
705
|
...string[]
|
688
706
|
];
|
689
707
|
latitude: number;
|
690
708
|
longitude: number;
|
691
709
|
} | undefined;
|
692
|
-
type: [
|
710
|
+
type: string | [
|
693
711
|
string,
|
694
712
|
...string[]
|
695
713
|
];
|
696
714
|
} | undefined;
|
697
715
|
otherIdentifier?: {
|
698
|
-
type: [
|
716
|
+
type: string | [
|
699
717
|
string,
|
700
718
|
...string[]
|
701
719
|
];
|
@@ -739,20 +757,20 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
739
757
|
postOfficeBoxNumber?: string | undefined;
|
740
758
|
postalCode?: string | undefined;
|
741
759
|
geo?: {
|
742
|
-
type: [
|
760
|
+
type: string | [
|
743
761
|
string,
|
744
762
|
...string[]
|
745
763
|
];
|
746
764
|
latitude: number;
|
747
765
|
longitude: number;
|
748
766
|
} | undefined;
|
749
|
-
type: [
|
767
|
+
type: string | [
|
750
768
|
string,
|
751
769
|
...string[]
|
752
770
|
];
|
753
771
|
} | undefined;
|
754
772
|
otherIdentifier?: {
|
755
|
-
type: [
|
773
|
+
type: string | [
|
756
774
|
string,
|
757
775
|
...string[]
|
758
776
|
];
|
@@ -937,20 +955,20 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
937
955
|
postOfficeBoxNumber?: string | undefined;
|
938
956
|
postalCode?: string | undefined;
|
939
957
|
geo?: {
|
940
|
-
type: [
|
958
|
+
type: string | [
|
941
959
|
string,
|
942
960
|
...string[]
|
943
961
|
];
|
944
962
|
latitude: number;
|
945
963
|
longitude: number;
|
946
964
|
} | undefined;
|
947
|
-
type: [
|
965
|
+
type: string | [
|
948
966
|
string,
|
949
967
|
...string[]
|
950
968
|
];
|
951
969
|
} | undefined;
|
952
970
|
otherIdentifier?: {
|
953
|
-
type: [
|
971
|
+
type: string | [
|
954
972
|
string,
|
955
973
|
...string[]
|
956
974
|
];
|
@@ -1046,20 +1064,20 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
1046
1064
|
postOfficeBoxNumber?: string | undefined;
|
1047
1065
|
postalCode?: string | undefined;
|
1048
1066
|
geo?: {
|
1049
|
-
type: [
|
1067
|
+
type: string | [
|
1050
1068
|
string,
|
1051
1069
|
...string[]
|
1052
1070
|
];
|
1053
1071
|
latitude: number;
|
1054
1072
|
longitude: number;
|
1055
1073
|
} | undefined;
|
1056
|
-
type: [
|
1074
|
+
type: string | [
|
1057
1075
|
string,
|
1058
1076
|
...string[]
|
1059
1077
|
];
|
1060
1078
|
} | undefined;
|
1061
1079
|
otherIdentifier?: {
|
1062
|
-
type: [
|
1080
|
+
type: string | [
|
1063
1081
|
string,
|
1064
1082
|
...string[]
|
1065
1083
|
];
|
@@ -1145,7 +1163,10 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1145
1163
|
]>>;
|
1146
1164
|
email: z.ZodOptional<z.ZodString>;
|
1147
1165
|
address: z.ZodOptional<z.ZodObject<{
|
1148
|
-
type: z.
|
1166
|
+
type: z.ZodUnion<[
|
1167
|
+
z.ZodString,
|
1168
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1169
|
+
]>;
|
1149
1170
|
addressCountry: z.ZodOptional<z.ZodString>;
|
1150
1171
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
1151
1172
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -1154,18 +1175,21 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1154
1175
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
1155
1176
|
postalCode: z.ZodOptional<z.ZodString>;
|
1156
1177
|
geo: z.ZodOptional<z.ZodObject<{
|
1157
|
-
type: z.
|
1178
|
+
type: z.ZodUnion<[
|
1179
|
+
z.ZodString,
|
1180
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1181
|
+
]>;
|
1158
1182
|
latitude: z.ZodNumber;
|
1159
1183
|
longitude: z.ZodNumber;
|
1160
1184
|
}, "strip", z.ZodTypeAny, {
|
1161
|
-
type: [
|
1185
|
+
type: string | [
|
1162
1186
|
string,
|
1163
1187
|
...string[]
|
1164
1188
|
];
|
1165
1189
|
latitude: number;
|
1166
1190
|
longitude: number;
|
1167
1191
|
}, {
|
1168
|
-
type: [
|
1192
|
+
type: string | [
|
1169
1193
|
string,
|
1170
1194
|
...string[]
|
1171
1195
|
];
|
@@ -1181,14 +1205,14 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1181
1205
|
postOfficeBoxNumber?: string | undefined;
|
1182
1206
|
postalCode?: string | undefined;
|
1183
1207
|
geo?: {
|
1184
|
-
type: [
|
1208
|
+
type: string | [
|
1185
1209
|
string,
|
1186
1210
|
...string[]
|
1187
1211
|
];
|
1188
1212
|
latitude: number;
|
1189
1213
|
longitude: number;
|
1190
1214
|
} | undefined;
|
1191
|
-
type: [
|
1215
|
+
type: string | [
|
1192
1216
|
string,
|
1193
1217
|
...string[]
|
1194
1218
|
];
|
@@ -1201,20 +1225,23 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1201
1225
|
postOfficeBoxNumber?: string | undefined;
|
1202
1226
|
postalCode?: string | undefined;
|
1203
1227
|
geo?: {
|
1204
|
-
type: [
|
1228
|
+
type: string | [
|
1205
1229
|
string,
|
1206
1230
|
...string[]
|
1207
1231
|
];
|
1208
1232
|
latitude: number;
|
1209
1233
|
longitude: number;
|
1210
1234
|
} | undefined;
|
1211
|
-
type: [
|
1235
|
+
type: string | [
|
1212
1236
|
string,
|
1213
1237
|
...string[]
|
1214
1238
|
];
|
1215
1239
|
}>>;
|
1216
1240
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1217
|
-
type: z.
|
1241
|
+
type: z.ZodUnion<[
|
1242
|
+
z.ZodString,
|
1243
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1244
|
+
]>;
|
1218
1245
|
identifier: z.ZodString;
|
1219
1246
|
identifierType: z.ZodUnion<[
|
1220
1247
|
z.ZodEnum<[
|
@@ -1240,14 +1267,14 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1240
1267
|
z.ZodString
|
1241
1268
|
]>;
|
1242
1269
|
}, "strip", z.ZodTypeAny, {
|
1243
|
-
type: [
|
1270
|
+
type: string | [
|
1244
1271
|
string,
|
1245
1272
|
...string[]
|
1246
1273
|
];
|
1247
1274
|
identifier: string;
|
1248
1275
|
identifierType: string;
|
1249
1276
|
}, {
|
1250
|
-
type: [
|
1277
|
+
type: string | [
|
1251
1278
|
string,
|
1252
1279
|
...string[]
|
1253
1280
|
];
|
@@ -1291,20 +1318,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1291
1318
|
postOfficeBoxNumber?: string | undefined;
|
1292
1319
|
postalCode?: string | undefined;
|
1293
1320
|
geo?: {
|
1294
|
-
type: [
|
1321
|
+
type: string | [
|
1295
1322
|
string,
|
1296
1323
|
...string[]
|
1297
1324
|
];
|
1298
1325
|
latitude: number;
|
1299
1326
|
longitude: number;
|
1300
1327
|
} | undefined;
|
1301
|
-
type: [
|
1328
|
+
type: string | [
|
1302
1329
|
string,
|
1303
1330
|
...string[]
|
1304
1331
|
];
|
1305
1332
|
} | undefined;
|
1306
1333
|
otherIdentifier?: {
|
1307
|
-
type: [
|
1334
|
+
type: string | [
|
1308
1335
|
string,
|
1309
1336
|
...string[]
|
1310
1337
|
];
|
@@ -1348,20 +1375,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1348
1375
|
postOfficeBoxNumber?: string | undefined;
|
1349
1376
|
postalCode?: string | undefined;
|
1350
1377
|
geo?: {
|
1351
|
-
type: [
|
1378
|
+
type: string | [
|
1352
1379
|
string,
|
1353
1380
|
...string[]
|
1354
1381
|
];
|
1355
1382
|
latitude: number;
|
1356
1383
|
longitude: number;
|
1357
1384
|
} | undefined;
|
1358
|
-
type: [
|
1385
|
+
type: string | [
|
1359
1386
|
string,
|
1360
1387
|
...string[]
|
1361
1388
|
];
|
1362
1389
|
} | undefined;
|
1363
1390
|
otherIdentifier?: {
|
1364
|
-
type: [
|
1391
|
+
type: string | [
|
1365
1392
|
string,
|
1366
1393
|
...string[]
|
1367
1394
|
];
|
@@ -1546,20 +1573,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1546
1573
|
postOfficeBoxNumber?: string | undefined;
|
1547
1574
|
postalCode?: string | undefined;
|
1548
1575
|
geo?: {
|
1549
|
-
type: [
|
1576
|
+
type: string | [
|
1550
1577
|
string,
|
1551
1578
|
...string[]
|
1552
1579
|
];
|
1553
1580
|
latitude: number;
|
1554
1581
|
longitude: number;
|
1555
1582
|
} | undefined;
|
1556
|
-
type: [
|
1583
|
+
type: string | [
|
1557
1584
|
string,
|
1558
1585
|
...string[]
|
1559
1586
|
];
|
1560
1587
|
} | undefined;
|
1561
1588
|
otherIdentifier?: {
|
1562
|
-
type: [
|
1589
|
+
type: string | [
|
1563
1590
|
string,
|
1564
1591
|
...string[]
|
1565
1592
|
];
|
@@ -1655,20 +1682,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1655
1682
|
postOfficeBoxNumber?: string | undefined;
|
1656
1683
|
postalCode?: string | undefined;
|
1657
1684
|
geo?: {
|
1658
|
-
type: [
|
1685
|
+
type: string | [
|
1659
1686
|
string,
|
1660
1687
|
...string[]
|
1661
1688
|
];
|
1662
1689
|
latitude: number;
|
1663
1690
|
longitude: number;
|
1664
1691
|
} | undefined;
|
1665
|
-
type: [
|
1692
|
+
type: string | [
|
1666
1693
|
string,
|
1667
1694
|
...string[]
|
1668
1695
|
];
|
1669
1696
|
} | undefined;
|
1670
1697
|
otherIdentifier?: {
|
1671
|
-
type: [
|
1698
|
+
type: string | [
|
1672
1699
|
string,
|
1673
1700
|
...string[]
|
1674
1701
|
];
|
@@ -1748,7 +1775,10 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1748
1775
|
]>>;
|
1749
1776
|
email: z.ZodOptional<z.ZodString>;
|
1750
1777
|
address: z.ZodOptional<z.ZodObject<{
|
1751
|
-
type: z.
|
1778
|
+
type: z.ZodUnion<[
|
1779
|
+
z.ZodString,
|
1780
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1781
|
+
]>;
|
1752
1782
|
addressCountry: z.ZodOptional<z.ZodString>;
|
1753
1783
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
1754
1784
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -1757,18 +1787,21 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1757
1787
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
1758
1788
|
postalCode: z.ZodOptional<z.ZodString>;
|
1759
1789
|
geo: z.ZodOptional<z.ZodObject<{
|
1760
|
-
type: z.
|
1790
|
+
type: z.ZodUnion<[
|
1791
|
+
z.ZodString,
|
1792
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1793
|
+
]>;
|
1761
1794
|
latitude: z.ZodNumber;
|
1762
1795
|
longitude: z.ZodNumber;
|
1763
1796
|
}, "strip", z.ZodTypeAny, {
|
1764
|
-
type: [
|
1797
|
+
type: string | [
|
1765
1798
|
string,
|
1766
1799
|
...string[]
|
1767
1800
|
];
|
1768
1801
|
latitude: number;
|
1769
1802
|
longitude: number;
|
1770
1803
|
}, {
|
1771
|
-
type: [
|
1804
|
+
type: string | [
|
1772
1805
|
string,
|
1773
1806
|
...string[]
|
1774
1807
|
];
|
@@ -1784,14 +1817,14 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1784
1817
|
postOfficeBoxNumber?: string | undefined;
|
1785
1818
|
postalCode?: string | undefined;
|
1786
1819
|
geo?: {
|
1787
|
-
type: [
|
1820
|
+
type: string | [
|
1788
1821
|
string,
|
1789
1822
|
...string[]
|
1790
1823
|
];
|
1791
1824
|
latitude: number;
|
1792
1825
|
longitude: number;
|
1793
1826
|
} | undefined;
|
1794
|
-
type: [
|
1827
|
+
type: string | [
|
1795
1828
|
string,
|
1796
1829
|
...string[]
|
1797
1830
|
];
|
@@ -1804,20 +1837,23 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1804
1837
|
postOfficeBoxNumber?: string | undefined;
|
1805
1838
|
postalCode?: string | undefined;
|
1806
1839
|
geo?: {
|
1807
|
-
type: [
|
1840
|
+
type: string | [
|
1808
1841
|
string,
|
1809
1842
|
...string[]
|
1810
1843
|
];
|
1811
1844
|
latitude: number;
|
1812
1845
|
longitude: number;
|
1813
1846
|
} | undefined;
|
1814
|
-
type: [
|
1847
|
+
type: string | [
|
1815
1848
|
string,
|
1816
1849
|
...string[]
|
1817
1850
|
];
|
1818
1851
|
}>>;
|
1819
1852
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1820
|
-
type: z.
|
1853
|
+
type: z.ZodUnion<[
|
1854
|
+
z.ZodString,
|
1855
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1856
|
+
]>;
|
1821
1857
|
identifier: z.ZodString;
|
1822
1858
|
identifierType: z.ZodUnion<[
|
1823
1859
|
z.ZodEnum<[
|
@@ -1843,14 +1879,14 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1843
1879
|
z.ZodString
|
1844
1880
|
]>;
|
1845
1881
|
}, "strip", z.ZodTypeAny, {
|
1846
|
-
type: [
|
1882
|
+
type: string | [
|
1847
1883
|
string,
|
1848
1884
|
...string[]
|
1849
1885
|
];
|
1850
1886
|
identifier: string;
|
1851
1887
|
identifierType: string;
|
1852
1888
|
}, {
|
1853
|
-
type: [
|
1889
|
+
type: string | [
|
1854
1890
|
string,
|
1855
1891
|
...string[]
|
1856
1892
|
];
|
@@ -1894,20 +1930,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1894
1930
|
postOfficeBoxNumber?: string | undefined;
|
1895
1931
|
postalCode?: string | undefined;
|
1896
1932
|
geo?: {
|
1897
|
-
type: [
|
1933
|
+
type: string | [
|
1898
1934
|
string,
|
1899
1935
|
...string[]
|
1900
1936
|
];
|
1901
1937
|
latitude: number;
|
1902
1938
|
longitude: number;
|
1903
1939
|
} | undefined;
|
1904
|
-
type: [
|
1940
|
+
type: string | [
|
1905
1941
|
string,
|
1906
1942
|
...string[]
|
1907
1943
|
];
|
1908
1944
|
} | undefined;
|
1909
1945
|
otherIdentifier?: {
|
1910
|
-
type: [
|
1946
|
+
type: string | [
|
1911
1947
|
string,
|
1912
1948
|
...string[]
|
1913
1949
|
];
|
@@ -1951,20 +1987,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1951
1987
|
postOfficeBoxNumber?: string | undefined;
|
1952
1988
|
postalCode?: string | undefined;
|
1953
1989
|
geo?: {
|
1954
|
-
type: [
|
1990
|
+
type: string | [
|
1955
1991
|
string,
|
1956
1992
|
...string[]
|
1957
1993
|
];
|
1958
1994
|
latitude: number;
|
1959
1995
|
longitude: number;
|
1960
1996
|
} | undefined;
|
1961
|
-
type: [
|
1997
|
+
type: string | [
|
1962
1998
|
string,
|
1963
1999
|
...string[]
|
1964
2000
|
];
|
1965
2001
|
} | undefined;
|
1966
2002
|
otherIdentifier?: {
|
1967
|
-
type: [
|
2003
|
+
type: string | [
|
1968
2004
|
string,
|
1969
2005
|
...string[]
|
1970
2006
|
];
|
@@ -2149,20 +2185,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2149
2185
|
postOfficeBoxNumber?: string | undefined;
|
2150
2186
|
postalCode?: string | undefined;
|
2151
2187
|
geo?: {
|
2152
|
-
type: [
|
2188
|
+
type: string | [
|
2153
2189
|
string,
|
2154
2190
|
...string[]
|
2155
2191
|
];
|
2156
2192
|
latitude: number;
|
2157
2193
|
longitude: number;
|
2158
2194
|
} | undefined;
|
2159
|
-
type: [
|
2195
|
+
type: string | [
|
2160
2196
|
string,
|
2161
2197
|
...string[]
|
2162
2198
|
];
|
2163
2199
|
} | undefined;
|
2164
2200
|
otherIdentifier?: {
|
2165
|
-
type: [
|
2201
|
+
type: string | [
|
2166
2202
|
string,
|
2167
2203
|
...string[]
|
2168
2204
|
];
|
@@ -2258,20 +2294,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2258
2294
|
postOfficeBoxNumber?: string | undefined;
|
2259
2295
|
postalCode?: string | undefined;
|
2260
2296
|
geo?: {
|
2261
|
-
type: [
|
2297
|
+
type: string | [
|
2262
2298
|
string,
|
2263
2299
|
...string[]
|
2264
2300
|
];
|
2265
2301
|
latitude: number;
|
2266
2302
|
longitude: number;
|
2267
2303
|
} | undefined;
|
2268
|
-
type: [
|
2304
|
+
type: string | [
|
2269
2305
|
string,
|
2270
2306
|
...string[]
|
2271
2307
|
];
|
2272
2308
|
} | undefined;
|
2273
2309
|
otherIdentifier?: {
|
2274
|
-
type: [
|
2310
|
+
type: string | [
|
2275
2311
|
string,
|
2276
2312
|
...string[]
|
2277
2313
|
];
|
@@ -2379,20 +2415,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2379
2415
|
postOfficeBoxNumber?: string | undefined;
|
2380
2416
|
postalCode?: string | undefined;
|
2381
2417
|
geo?: {
|
2382
|
-
type: [
|
2418
|
+
type: string | [
|
2383
2419
|
string,
|
2384
2420
|
...string[]
|
2385
2421
|
];
|
2386
2422
|
latitude: number;
|
2387
2423
|
longitude: number;
|
2388
2424
|
} | undefined;
|
2389
|
-
type: [
|
2425
|
+
type: string | [
|
2390
2426
|
string,
|
2391
2427
|
...string[]
|
2392
2428
|
];
|
2393
2429
|
} | undefined;
|
2394
2430
|
otherIdentifier?: {
|
2395
|
-
type: [
|
2431
|
+
type: string | [
|
2396
2432
|
string,
|
2397
2433
|
...string[]
|
2398
2434
|
];
|
@@ -2488,20 +2524,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2488
2524
|
postOfficeBoxNumber?: string | undefined;
|
2489
2525
|
postalCode?: string | undefined;
|
2490
2526
|
geo?: {
|
2491
|
-
type: [
|
2527
|
+
type: string | [
|
2492
2528
|
string,
|
2493
2529
|
...string[]
|
2494
2530
|
];
|
2495
2531
|
latitude: number;
|
2496
2532
|
longitude: number;
|
2497
2533
|
} | undefined;
|
2498
|
-
type: [
|
2534
|
+
type: string | [
|
2499
2535
|
string,
|
2500
2536
|
...string[]
|
2501
2537
|
];
|
2502
2538
|
} | undefined;
|
2503
2539
|
otherIdentifier?: {
|
2504
|
-
type: [
|
2540
|
+
type: string | [
|
2505
2541
|
string,
|
2506
2542
|
...string[]
|
2507
2543
|
];
|
@@ -2607,20 +2643,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2607
2643
|
postOfficeBoxNumber?: string | undefined;
|
2608
2644
|
postalCode?: string | undefined;
|
2609
2645
|
geo?: {
|
2610
|
-
type: [
|
2646
|
+
type: string | [
|
2611
2647
|
string,
|
2612
2648
|
...string[]
|
2613
2649
|
];
|
2614
2650
|
latitude: number;
|
2615
2651
|
longitude: number;
|
2616
2652
|
} | undefined;
|
2617
|
-
type: [
|
2653
|
+
type: string | [
|
2618
2654
|
string,
|
2619
2655
|
...string[]
|
2620
2656
|
];
|
2621
2657
|
} | undefined;
|
2622
2658
|
otherIdentifier?: {
|
2623
|
-
type: [
|
2659
|
+
type: string | [
|
2624
2660
|
string,
|
2625
2661
|
...string[]
|
2626
2662
|
];
|
@@ -2716,20 +2752,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2716
2752
|
postOfficeBoxNumber?: string | undefined;
|
2717
2753
|
postalCode?: string | undefined;
|
2718
2754
|
geo?: {
|
2719
|
-
type: [
|
2755
|
+
type: string | [
|
2720
2756
|
string,
|
2721
2757
|
...string[]
|
2722
2758
|
];
|
2723
2759
|
latitude: number;
|
2724
2760
|
longitude: number;
|
2725
2761
|
} | undefined;
|
2726
|
-
type: [
|
2762
|
+
type: string | [
|
2727
2763
|
string,
|
2728
2764
|
...string[]
|
2729
2765
|
];
|
2730
2766
|
} | undefined;
|
2731
2767
|
otherIdentifier?: {
|
2732
|
-
type: [
|
2768
|
+
type: string | [
|
2733
2769
|
string,
|
2734
2770
|
...string[]
|
2735
2771
|
];
|
@@ -2816,7 +2852,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2816
2852
|
]>>;
|
2817
2853
|
email: z.ZodOptional<z.ZodString>;
|
2818
2854
|
address: z.ZodOptional<z.ZodObject<{
|
2819
|
-
type: z.
|
2855
|
+
type: z.ZodUnion<[
|
2856
|
+
z.ZodString,
|
2857
|
+
z.ZodArray<z.ZodString, "atleastone">
|
2858
|
+
]>;
|
2820
2859
|
addressCountry: z.ZodOptional<z.ZodString>;
|
2821
2860
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
2822
2861
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -2825,18 +2864,21 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2825
2864
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
2826
2865
|
postalCode: z.ZodOptional<z.ZodString>;
|
2827
2866
|
geo: z.ZodOptional<z.ZodObject<{
|
2828
|
-
type: z.
|
2867
|
+
type: z.ZodUnion<[
|
2868
|
+
z.ZodString,
|
2869
|
+
z.ZodArray<z.ZodString, "atleastone">
|
2870
|
+
]>;
|
2829
2871
|
latitude: z.ZodNumber;
|
2830
2872
|
longitude: z.ZodNumber;
|
2831
2873
|
}, "strip", z.ZodTypeAny, {
|
2832
|
-
type: [
|
2874
|
+
type: string | [
|
2833
2875
|
string,
|
2834
2876
|
...string[]
|
2835
2877
|
];
|
2836
2878
|
latitude: number;
|
2837
2879
|
longitude: number;
|
2838
2880
|
}, {
|
2839
|
-
type: [
|
2881
|
+
type: string | [
|
2840
2882
|
string,
|
2841
2883
|
...string[]
|
2842
2884
|
];
|
@@ -2852,14 +2894,14 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2852
2894
|
postOfficeBoxNumber?: string | undefined;
|
2853
2895
|
postalCode?: string | undefined;
|
2854
2896
|
geo?: {
|
2855
|
-
type: [
|
2897
|
+
type: string | [
|
2856
2898
|
string,
|
2857
2899
|
...string[]
|
2858
2900
|
];
|
2859
2901
|
latitude: number;
|
2860
2902
|
longitude: number;
|
2861
2903
|
} | undefined;
|
2862
|
-
type: [
|
2904
|
+
type: string | [
|
2863
2905
|
string,
|
2864
2906
|
...string[]
|
2865
2907
|
];
|
@@ -2872,20 +2914,23 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2872
2914
|
postOfficeBoxNumber?: string | undefined;
|
2873
2915
|
postalCode?: string | undefined;
|
2874
2916
|
geo?: {
|
2875
|
-
type: [
|
2917
|
+
type: string | [
|
2876
2918
|
string,
|
2877
2919
|
...string[]
|
2878
2920
|
];
|
2879
2921
|
latitude: number;
|
2880
2922
|
longitude: number;
|
2881
2923
|
} | undefined;
|
2882
|
-
type: [
|
2924
|
+
type: string | [
|
2883
2925
|
string,
|
2884
2926
|
...string[]
|
2885
2927
|
];
|
2886
2928
|
}>>;
|
2887
2929
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
2888
|
-
type: z.
|
2930
|
+
type: z.ZodUnion<[
|
2931
|
+
z.ZodString,
|
2932
|
+
z.ZodArray<z.ZodString, "atleastone">
|
2933
|
+
]>;
|
2889
2934
|
identifier: z.ZodString;
|
2890
2935
|
identifierType: z.ZodUnion<[
|
2891
2936
|
z.ZodEnum<[
|
@@ -2911,14 +2956,14 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2911
2956
|
z.ZodString
|
2912
2957
|
]>;
|
2913
2958
|
}, "strip", z.ZodTypeAny, {
|
2914
|
-
type: [
|
2959
|
+
type: string | [
|
2915
2960
|
string,
|
2916
2961
|
...string[]
|
2917
2962
|
];
|
2918
2963
|
identifier: string;
|
2919
2964
|
identifierType: string;
|
2920
2965
|
}, {
|
2921
|
-
type: [
|
2966
|
+
type: string | [
|
2922
2967
|
string,
|
2923
2968
|
...string[]
|
2924
2969
|
];
|
@@ -2962,20 +3007,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2962
3007
|
postOfficeBoxNumber?: string | undefined;
|
2963
3008
|
postalCode?: string | undefined;
|
2964
3009
|
geo?: {
|
2965
|
-
type: [
|
3010
|
+
type: string | [
|
2966
3011
|
string,
|
2967
3012
|
...string[]
|
2968
3013
|
];
|
2969
3014
|
latitude: number;
|
2970
3015
|
longitude: number;
|
2971
3016
|
} | undefined;
|
2972
|
-
type: [
|
3017
|
+
type: string | [
|
2973
3018
|
string,
|
2974
3019
|
...string[]
|
2975
3020
|
];
|
2976
3021
|
} | undefined;
|
2977
3022
|
otherIdentifier?: {
|
2978
|
-
type: [
|
3023
|
+
type: string | [
|
2979
3024
|
string,
|
2980
3025
|
...string[]
|
2981
3026
|
];
|
@@ -3019,20 +3064,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3019
3064
|
postOfficeBoxNumber?: string | undefined;
|
3020
3065
|
postalCode?: string | undefined;
|
3021
3066
|
geo?: {
|
3022
|
-
type: [
|
3067
|
+
type: string | [
|
3023
3068
|
string,
|
3024
3069
|
...string[]
|
3025
3070
|
];
|
3026
3071
|
latitude: number;
|
3027
3072
|
longitude: number;
|
3028
3073
|
} | undefined;
|
3029
|
-
type: [
|
3074
|
+
type: string | [
|
3030
3075
|
string,
|
3031
3076
|
...string[]
|
3032
3077
|
];
|
3033
3078
|
} | undefined;
|
3034
3079
|
otherIdentifier?: {
|
3035
|
-
type: [
|
3080
|
+
type: string | [
|
3036
3081
|
string,
|
3037
3082
|
...string[]
|
3038
3083
|
];
|
@@ -3217,20 +3262,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3217
3262
|
postOfficeBoxNumber?: string | undefined;
|
3218
3263
|
postalCode?: string | undefined;
|
3219
3264
|
geo?: {
|
3220
|
-
type: [
|
3265
|
+
type: string | [
|
3221
3266
|
string,
|
3222
3267
|
...string[]
|
3223
3268
|
];
|
3224
3269
|
latitude: number;
|
3225
3270
|
longitude: number;
|
3226
3271
|
} | undefined;
|
3227
|
-
type: [
|
3272
|
+
type: string | [
|
3228
3273
|
string,
|
3229
3274
|
...string[]
|
3230
3275
|
];
|
3231
3276
|
} | undefined;
|
3232
3277
|
otherIdentifier?: {
|
3233
|
-
type: [
|
3278
|
+
type: string | [
|
3234
3279
|
string,
|
3235
3280
|
...string[]
|
3236
3281
|
];
|
@@ -3326,20 +3371,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3326
3371
|
postOfficeBoxNumber?: string | undefined;
|
3327
3372
|
postalCode?: string | undefined;
|
3328
3373
|
geo?: {
|
3329
|
-
type: [
|
3374
|
+
type: string | [
|
3330
3375
|
string,
|
3331
3376
|
...string[]
|
3332
3377
|
];
|
3333
3378
|
latitude: number;
|
3334
3379
|
longitude: number;
|
3335
3380
|
} | undefined;
|
3336
|
-
type: [
|
3381
|
+
type: string | [
|
3337
3382
|
string,
|
3338
3383
|
...string[]
|
3339
3384
|
];
|
3340
3385
|
} | undefined;
|
3341
3386
|
otherIdentifier?: {
|
3342
|
-
type: [
|
3387
|
+
type: string | [
|
3343
3388
|
string,
|
3344
3389
|
...string[]
|
3345
3390
|
];
|
@@ -3419,7 +3464,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3419
3464
|
]>>;
|
3420
3465
|
email: z.ZodOptional<z.ZodString>;
|
3421
3466
|
address: z.ZodOptional<z.ZodObject<{
|
3422
|
-
type: z.
|
3467
|
+
type: z.ZodUnion<[
|
3468
|
+
z.ZodString,
|
3469
|
+
z.ZodArray<z.ZodString, "atleastone">
|
3470
|
+
]>;
|
3423
3471
|
addressCountry: z.ZodOptional<z.ZodString>;
|
3424
3472
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
3425
3473
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -3428,18 +3476,21 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3428
3476
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
3429
3477
|
postalCode: z.ZodOptional<z.ZodString>;
|
3430
3478
|
geo: z.ZodOptional<z.ZodObject<{
|
3431
|
-
type: z.
|
3479
|
+
type: z.ZodUnion<[
|
3480
|
+
z.ZodString,
|
3481
|
+
z.ZodArray<z.ZodString, "atleastone">
|
3482
|
+
]>;
|
3432
3483
|
latitude: z.ZodNumber;
|
3433
3484
|
longitude: z.ZodNumber;
|
3434
3485
|
}, "strip", z.ZodTypeAny, {
|
3435
|
-
type: [
|
3486
|
+
type: string | [
|
3436
3487
|
string,
|
3437
3488
|
...string[]
|
3438
3489
|
];
|
3439
3490
|
latitude: number;
|
3440
3491
|
longitude: number;
|
3441
3492
|
}, {
|
3442
|
-
type: [
|
3493
|
+
type: string | [
|
3443
3494
|
string,
|
3444
3495
|
...string[]
|
3445
3496
|
];
|
@@ -3455,14 +3506,14 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3455
3506
|
postOfficeBoxNumber?: string | undefined;
|
3456
3507
|
postalCode?: string | undefined;
|
3457
3508
|
geo?: {
|
3458
|
-
type: [
|
3509
|
+
type: string | [
|
3459
3510
|
string,
|
3460
3511
|
...string[]
|
3461
3512
|
];
|
3462
3513
|
latitude: number;
|
3463
3514
|
longitude: number;
|
3464
3515
|
} | undefined;
|
3465
|
-
type: [
|
3516
|
+
type: string | [
|
3466
3517
|
string,
|
3467
3518
|
...string[]
|
3468
3519
|
];
|
@@ -3475,20 +3526,23 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3475
3526
|
postOfficeBoxNumber?: string | undefined;
|
3476
3527
|
postalCode?: string | undefined;
|
3477
3528
|
geo?: {
|
3478
|
-
type: [
|
3529
|
+
type: string | [
|
3479
3530
|
string,
|
3480
3531
|
...string[]
|
3481
3532
|
];
|
3482
3533
|
latitude: number;
|
3483
3534
|
longitude: number;
|
3484
3535
|
} | undefined;
|
3485
|
-
type: [
|
3536
|
+
type: string | [
|
3486
3537
|
string,
|
3487
3538
|
...string[]
|
3488
3539
|
];
|
3489
3540
|
}>>;
|
3490
3541
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
3491
|
-
type: z.
|
3542
|
+
type: z.ZodUnion<[
|
3543
|
+
z.ZodString,
|
3544
|
+
z.ZodArray<z.ZodString, "atleastone">
|
3545
|
+
]>;
|
3492
3546
|
identifier: z.ZodString;
|
3493
3547
|
identifierType: z.ZodUnion<[
|
3494
3548
|
z.ZodEnum<[
|
@@ -3514,14 +3568,14 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3514
3568
|
z.ZodString
|
3515
3569
|
]>;
|
3516
3570
|
}, "strip", z.ZodTypeAny, {
|
3517
|
-
type: [
|
3571
|
+
type: string | [
|
3518
3572
|
string,
|
3519
3573
|
...string[]
|
3520
3574
|
];
|
3521
3575
|
identifier: string;
|
3522
3576
|
identifierType: string;
|
3523
3577
|
}, {
|
3524
|
-
type: [
|
3578
|
+
type: string | [
|
3525
3579
|
string,
|
3526
3580
|
...string[]
|
3527
3581
|
];
|
@@ -3565,20 +3619,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3565
3619
|
postOfficeBoxNumber?: string | undefined;
|
3566
3620
|
postalCode?: string | undefined;
|
3567
3621
|
geo?: {
|
3568
|
-
type: [
|
3622
|
+
type: string | [
|
3569
3623
|
string,
|
3570
3624
|
...string[]
|
3571
3625
|
];
|
3572
3626
|
latitude: number;
|
3573
3627
|
longitude: number;
|
3574
3628
|
} | undefined;
|
3575
|
-
type: [
|
3629
|
+
type: string | [
|
3576
3630
|
string,
|
3577
3631
|
...string[]
|
3578
3632
|
];
|
3579
3633
|
} | undefined;
|
3580
3634
|
otherIdentifier?: {
|
3581
|
-
type: [
|
3635
|
+
type: string | [
|
3582
3636
|
string,
|
3583
3637
|
...string[]
|
3584
3638
|
];
|
@@ -3622,20 +3676,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3622
3676
|
postOfficeBoxNumber?: string | undefined;
|
3623
3677
|
postalCode?: string | undefined;
|
3624
3678
|
geo?: {
|
3625
|
-
type: [
|
3679
|
+
type: string | [
|
3626
3680
|
string,
|
3627
3681
|
...string[]
|
3628
3682
|
];
|
3629
3683
|
latitude: number;
|
3630
3684
|
longitude: number;
|
3631
3685
|
} | undefined;
|
3632
|
-
type: [
|
3686
|
+
type: string | [
|
3633
3687
|
string,
|
3634
3688
|
...string[]
|
3635
3689
|
];
|
3636
3690
|
} | undefined;
|
3637
3691
|
otherIdentifier?: {
|
3638
|
-
type: [
|
3692
|
+
type: string | [
|
3639
3693
|
string,
|
3640
3694
|
...string[]
|
3641
3695
|
];
|
@@ -3820,20 +3874,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3820
3874
|
postOfficeBoxNumber?: string | undefined;
|
3821
3875
|
postalCode?: string | undefined;
|
3822
3876
|
geo?: {
|
3823
|
-
type: [
|
3877
|
+
type: string | [
|
3824
3878
|
string,
|
3825
3879
|
...string[]
|
3826
3880
|
];
|
3827
3881
|
latitude: number;
|
3828
3882
|
longitude: number;
|
3829
3883
|
} | undefined;
|
3830
|
-
type: [
|
3884
|
+
type: string | [
|
3831
3885
|
string,
|
3832
3886
|
...string[]
|
3833
3887
|
];
|
3834
3888
|
} | undefined;
|
3835
3889
|
otherIdentifier?: {
|
3836
|
-
type: [
|
3890
|
+
type: string | [
|
3837
3891
|
string,
|
3838
3892
|
...string[]
|
3839
3893
|
];
|
@@ -3929,20 +3983,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3929
3983
|
postOfficeBoxNumber?: string | undefined;
|
3930
3984
|
postalCode?: string | undefined;
|
3931
3985
|
geo?: {
|
3932
|
-
type: [
|
3986
|
+
type: string | [
|
3933
3987
|
string,
|
3934
3988
|
...string[]
|
3935
3989
|
];
|
3936
3990
|
latitude: number;
|
3937
3991
|
longitude: number;
|
3938
3992
|
} | undefined;
|
3939
|
-
type: [
|
3993
|
+
type: string | [
|
3940
3994
|
string,
|
3941
3995
|
...string[]
|
3942
3996
|
];
|
3943
3997
|
} | undefined;
|
3944
3998
|
otherIdentifier?: {
|
3945
|
-
type: [
|
3999
|
+
type: string | [
|
3946
4000
|
string,
|
3947
4001
|
...string[]
|
3948
4002
|
];
|
@@ -4134,20 +4188,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4134
4188
|
postOfficeBoxNumber?: string | undefined;
|
4135
4189
|
postalCode?: string | undefined;
|
4136
4190
|
geo?: {
|
4137
|
-
type: [
|
4191
|
+
type: string | [
|
4138
4192
|
string,
|
4139
4193
|
...string[]
|
4140
4194
|
];
|
4141
4195
|
latitude: number;
|
4142
4196
|
longitude: number;
|
4143
4197
|
} | undefined;
|
4144
|
-
type: [
|
4198
|
+
type: string | [
|
4145
4199
|
string,
|
4146
4200
|
...string[]
|
4147
4201
|
];
|
4148
4202
|
} | undefined;
|
4149
4203
|
otherIdentifier?: {
|
4150
|
-
type: [
|
4204
|
+
type: string | [
|
4151
4205
|
string,
|
4152
4206
|
...string[]
|
4153
4207
|
];
|
@@ -4243,20 +4297,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4243
4297
|
postOfficeBoxNumber?: string | undefined;
|
4244
4298
|
postalCode?: string | undefined;
|
4245
4299
|
geo?: {
|
4246
|
-
type: [
|
4300
|
+
type: string | [
|
4247
4301
|
string,
|
4248
4302
|
...string[]
|
4249
4303
|
];
|
4250
4304
|
latitude: number;
|
4251
4305
|
longitude: number;
|
4252
4306
|
} | undefined;
|
4253
|
-
type: [
|
4307
|
+
type: string | [
|
4254
4308
|
string,
|
4255
4309
|
...string[]
|
4256
4310
|
];
|
4257
4311
|
} | undefined;
|
4258
4312
|
otherIdentifier?: {
|
4259
|
-
type: [
|
4313
|
+
type: string | [
|
4260
4314
|
string,
|
4261
4315
|
...string[]
|
4262
4316
|
];
|
@@ -4383,20 +4437,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4383
4437
|
postOfficeBoxNumber?: string | undefined;
|
4384
4438
|
postalCode?: string | undefined;
|
4385
4439
|
geo?: {
|
4386
|
-
type: [
|
4440
|
+
type: string | [
|
4387
4441
|
string,
|
4388
4442
|
...string[]
|
4389
4443
|
];
|
4390
4444
|
latitude: number;
|
4391
4445
|
longitude: number;
|
4392
4446
|
} | undefined;
|
4393
|
-
type: [
|
4447
|
+
type: string | [
|
4394
4448
|
string,
|
4395
4449
|
...string[]
|
4396
4450
|
];
|
4397
4451
|
} | undefined;
|
4398
4452
|
otherIdentifier?: {
|
4399
|
-
type: [
|
4453
|
+
type: string | [
|
4400
4454
|
string,
|
4401
4455
|
...string[]
|
4402
4456
|
];
|
@@ -4492,20 +4546,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4492
4546
|
postOfficeBoxNumber?: string | undefined;
|
4493
4547
|
postalCode?: string | undefined;
|
4494
4548
|
geo?: {
|
4495
|
-
type: [
|
4549
|
+
type: string | [
|
4496
4550
|
string,
|
4497
4551
|
...string[]
|
4498
4552
|
];
|
4499
4553
|
latitude: number;
|
4500
4554
|
longitude: number;
|
4501
4555
|
} | undefined;
|
4502
|
-
type: [
|
4556
|
+
type: string | [
|
4503
4557
|
string,
|
4504
4558
|
...string[]
|
4505
4559
|
];
|
4506
4560
|
} | undefined;
|
4507
4561
|
otherIdentifier?: {
|
4508
|
-
type: [
|
4562
|
+
type: string | [
|
4509
4563
|
string,
|
4510
4564
|
...string[]
|
4511
4565
|
];
|
@@ -4605,8 +4659,11 @@ declare const IDXCredentialValidator: z.ZodObject<{
|
|
4605
4659
|
id: string;
|
4606
4660
|
title: string;
|
4607
4661
|
}>;
|
4662
|
+
/** @group IDXPlugin */
|
4608
4663
|
export declare type IDXCredential = z.infer<typeof IDXCredentialValidator>;
|
4664
|
+
/** @group DIDKit Plugin */
|
4609
4665
|
export declare type DidMethod = "key" | "tz" | "ethr" | `pkh:${"tz" | "tezos" | "sol" | "solana" | "eth" | "celo" | "poly" | "btc" | "doge" | "eip155" | "bip122"}` | `pkh:eip155:${string}` | `pkh:bip122:${string}`;
|
4666
|
+
/** @group DIDKit Plugin */
|
4610
4667
|
export declare type KeyPair = {
|
4611
4668
|
kty: string;
|
4612
4669
|
crv: string;
|
@@ -4614,10 +4671,12 @@ export declare type KeyPair = {
|
|
4614
4671
|
y?: string;
|
4615
4672
|
d: string;
|
4616
4673
|
};
|
4674
|
+
/** @group DIDKit Plugin */
|
4617
4675
|
export declare type ProofOptions = {
|
4618
4676
|
verificationMethod: string;
|
4619
4677
|
proofPurpose: string;
|
4620
4678
|
};
|
4679
|
+
/** @group DIDKit Plugin */
|
4621
4680
|
export declare type DidkitPluginMethods = {
|
4622
4681
|
generateEd25519KeyFromBytes: (bytes: Uint8Array) => KeyPair;
|
4623
4682
|
generateSecp256k1KeyFromBytes: (bytes: Uint8Array) => KeyPair;
|
@@ -4630,7 +4689,32 @@ export declare type DidkitPluginMethods = {
|
|
4630
4689
|
contextLoader: (url: string) => Promise<Record<string, any>>;
|
4631
4690
|
resolveDid: (did: string) => Promise<Record<string, any>>;
|
4632
4691
|
};
|
4692
|
+
/** @group DidKey Plugin */
|
4633
4693
|
export declare type Algorithm = "ed25519" | "secp256k1";
|
4694
|
+
/** @group DidKey Plugin */
|
4695
|
+
export declare type DependentMethods<T extends string> = {
|
4696
|
+
generateEd25519KeyFromBytes: (bytes: Uint8Array) => KeyPair;
|
4697
|
+
generateSecp256k1KeyFromBytes: (bytes: Uint8Array) => KeyPair;
|
4698
|
+
keyToDid: (type: T, keypair: KeyPair) => string;
|
4699
|
+
};
|
4700
|
+
/** @group DidKey Plugin */
|
4701
|
+
export declare type JWK = {
|
4702
|
+
id: string;
|
4703
|
+
type: string | string[];
|
4704
|
+
controller?: string;
|
4705
|
+
publicKeyJwk?: any;
|
4706
|
+
privateKeyJwk?: any;
|
4707
|
+
"@context": string[];
|
4708
|
+
name: string;
|
4709
|
+
image: string;
|
4710
|
+
description: string;
|
4711
|
+
tags: string[];
|
4712
|
+
value?: string;
|
4713
|
+
generatedFrom?: [
|
4714
|
+
string
|
4715
|
+
];
|
4716
|
+
};
|
4717
|
+
/** @group DidKey Plugin */
|
4634
4718
|
export declare type DidKeyPluginMethods<DidMethod extends string> = {
|
4635
4719
|
getSubjectDid: (type: DidMethod) => string;
|
4636
4720
|
getSubjectKeypair: (type?: Algorithm) => {
|
@@ -4642,6 +4726,7 @@ export declare type DidKeyPluginMethods<DidMethod extends string> = {
|
|
4642
4726
|
};
|
4643
4727
|
getKey: () => string;
|
4644
4728
|
};
|
4729
|
+
/** @group Ethereum Plugin */
|
4645
4730
|
export declare type EthereumPluginMethods = {
|
4646
4731
|
getEthereumAddress: () => string;
|
4647
4732
|
getBalance: (symbolOrAddress?: string) => Promise<string>;
|
@@ -4651,10 +4736,31 @@ export declare type EthereumPluginMethods = {
|
|
4651
4736
|
changeNetwork: (network: providers.Networkish) => void;
|
4652
4737
|
addInfuraProjectId: (infuraProjectIdToAdd: string) => void;
|
4653
4738
|
};
|
4739
|
+
/** @group Ethereum Plugin */
|
4654
4740
|
export declare type EthereumConfig = {
|
4655
4741
|
infuraProjectId?: string;
|
4656
4742
|
network?: providers.Networkish;
|
4657
4743
|
};
|
4744
|
+
/** @group Ethereum Plugin */
|
4745
|
+
export declare type Token = {
|
4746
|
+
chainId: number;
|
4747
|
+
address: string;
|
4748
|
+
name: string;
|
4749
|
+
symbol: string;
|
4750
|
+
decimals: number;
|
4751
|
+
logoURI: string;
|
4752
|
+
extensions: any;
|
4753
|
+
};
|
4754
|
+
/** @group Ethereum Plugin */
|
4755
|
+
export declare type TokenList = Token[];
|
4756
|
+
/** @group IDXPlugin */
|
4757
|
+
export declare type CeramicIDXArgs = {
|
4758
|
+
modelData: ModelAliases;
|
4759
|
+
credentialAlias: string;
|
4760
|
+
ceramicEndpoint: string;
|
4761
|
+
defaultContentFamily: string;
|
4762
|
+
};
|
4763
|
+
/** @group IDXPlugin */
|
4658
4764
|
export declare type IDXPluginMethods = {
|
4659
4765
|
getCredentialsListFromIdx: (alias?: string) => Promise<CredentialsList>;
|
4660
4766
|
publishContentToCeramic: (cred: any) => Promise<string>;
|
@@ -4664,107 +4770,40 @@ export declare type IDXPluginMethods = {
|
|
4664
4770
|
addVerifiableCredentialInIdx: (cred: IDXCredential) => Promise<StreamID>;
|
4665
4771
|
removeVerifiableCredentialInIdx: (title: string) => Promise<StreamID>;
|
4666
4772
|
};
|
4667
|
-
|
4668
|
-
|
4669
|
-
title: z.ZodString;
|
4670
|
-
storageType: z.ZodOptional<z.ZodEnum<[
|
4671
|
-
"ceramic"
|
4672
|
-
]>>;
|
4673
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
4674
|
-
name: z.ZodOptional<z.ZodString>;
|
4675
|
-
image: z.ZodOptional<z.ZodString>;
|
4676
|
-
}, "strip", z.ZodAny, {
|
4677
|
-
[x: string]: any;
|
4678
|
-
name?: string | undefined;
|
4679
|
-
image?: string | undefined;
|
4680
|
-
}, {
|
4681
|
-
[x: string]: any;
|
4682
|
-
name?: string | undefined;
|
4683
|
-
image?: string | undefined;
|
4684
|
-
}>>;
|
4685
|
-
}, "strict", z.ZodTypeAny, {
|
4686
|
-
storageType?: "ceramic" | undefined;
|
4687
|
-
metadata?: {
|
4688
|
-
[x: string]: any;
|
4689
|
-
name?: string | undefined;
|
4690
|
-
image?: string | undefined;
|
4691
|
-
} | undefined;
|
4692
|
-
id: string;
|
4693
|
-
title: string;
|
4694
|
-
}, {
|
4695
|
-
storageType?: "ceramic" | undefined;
|
4696
|
-
metadata?: {
|
4697
|
-
[x: string]: any;
|
4698
|
-
name?: string | undefined;
|
4699
|
-
image?: string | undefined;
|
4700
|
-
} | undefined;
|
4701
|
-
id: string;
|
4702
|
-
title: string;
|
4703
|
-
}>;
|
4704
|
-
export declare type IDXCredential = z.infer<typeof IDXCredentialValidator>;
|
4705
|
-
declare const CredentialsListValidator: z.ZodObject<{
|
4773
|
+
/** @group IDXPlugin */
|
4774
|
+
export declare const CredentialsListValidator: z.ZodObject<{
|
4706
4775
|
credentials: z.ZodArray<z.ZodObject<{
|
4707
4776
|
id: z.ZodString;
|
4708
4777
|
title: z.ZodString;
|
4709
4778
|
storageType: z.ZodOptional<z.ZodEnum<[
|
4710
4779
|
"ceramic"
|
4711
4780
|
]>>;
|
4712
|
-
|
4713
|
-
name: z.ZodOptional<z.ZodString>;
|
4714
|
-
image: z.ZodOptional<z.ZodString>;
|
4715
|
-
}, "strip", z.ZodAny, {
|
4716
|
-
[x: string]: any;
|
4717
|
-
name?: string | undefined;
|
4718
|
-
image?: string | undefined;
|
4719
|
-
}, {
|
4720
|
-
[x: string]: any;
|
4721
|
-
name?: string | undefined;
|
4722
|
-
image?: string | undefined;
|
4723
|
-
}>>;
|
4724
|
-
}, "strict", z.ZodTypeAny, {
|
4781
|
+
}, "strip", z.ZodTypeAny, {
|
4725
4782
|
storageType?: "ceramic" | undefined;
|
4726
|
-
metadata?: {
|
4727
|
-
[x: string]: any;
|
4728
|
-
name?: string | undefined;
|
4729
|
-
image?: string | undefined;
|
4730
|
-
} | undefined;
|
4731
4783
|
id: string;
|
4732
4784
|
title: string;
|
4733
4785
|
}, {
|
4734
4786
|
storageType?: "ceramic" | undefined;
|
4735
|
-
metadata?: {
|
4736
|
-
[x: string]: any;
|
4737
|
-
name?: string | undefined;
|
4738
|
-
image?: string | undefined;
|
4739
|
-
} | undefined;
|
4740
4787
|
id: string;
|
4741
4788
|
title: string;
|
4742
4789
|
}>, "many">;
|
4743
4790
|
}, "strict", z.ZodTypeAny, {
|
4744
4791
|
credentials: {
|
4745
4792
|
storageType?: "ceramic" | undefined;
|
4746
|
-
metadata?: {
|
4747
|
-
[x: string]: any;
|
4748
|
-
name?: string | undefined;
|
4749
|
-
image?: string | undefined;
|
4750
|
-
} | undefined;
|
4751
4793
|
id: string;
|
4752
4794
|
title: string;
|
4753
4795
|
}[];
|
4754
4796
|
}, {
|
4755
4797
|
credentials: {
|
4756
4798
|
storageType?: "ceramic" | undefined;
|
4757
|
-
metadata?: {
|
4758
|
-
[x: string]: any;
|
4759
|
-
name?: string | undefined;
|
4760
|
-
image?: string | undefined;
|
4761
|
-
} | undefined;
|
4762
4799
|
id: string;
|
4763
4800
|
title: string;
|
4764
4801
|
}[];
|
4765
4802
|
}>;
|
4803
|
+
/** @group IDXPlugin */
|
4766
4804
|
export declare type CredentialsList = z.infer<typeof CredentialsListValidator>;
|
4767
|
-
|
4805
|
+
/** @group VC Plugin */
|
4806
|
+
export declare type VCPluginDependentMethods = {
|
4768
4807
|
getSubjectDid: (type: "key") => string;
|
4769
4808
|
getSubjectKeypair: () => KeyPair;
|
4770
4809
|
keyToVerificationMethod: (type: string, keypair: KeyPair) => Promise<string>;
|
@@ -4773,7 +4812,8 @@ export declare type DependentMethods = {
|
|
4773
4812
|
issuePresentation: (presentation: UnsignedVP, options: ProofOptions, keypair: KeyPair) => Promise<VP>;
|
4774
4813
|
verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
|
4775
4814
|
};
|
4776
|
-
|
4815
|
+
/** @group VC Plugin */
|
4816
|
+
export declare type VCPluginMethods = VCPluginDependentMethods & {
|
4777
4817
|
issueCredential: (credential: UnsignedVC) => Promise<VC>;
|
4778
4818
|
verifyCredential: (credential: VC) => Promise<VerificationCheck>;
|
4779
4819
|
issuePresentation: (credential: UnsignedVP) => Promise<VP>;
|
@@ -4781,27 +4821,45 @@ export declare type VCPluginMethods = DependentMethods & {
|
|
4781
4821
|
getTestVc: (subject?: string) => UnsignedVC;
|
4782
4822
|
getTestVp: (credential?: VC) => Promise<UnsignedVP>;
|
4783
4823
|
};
|
4824
|
+
/** @group VC Plugin */
|
4784
4825
|
export declare type VerifyExtension = {
|
4785
4826
|
verifyCredential: (credential: VC) => Promise<VerificationCheck>;
|
4786
4827
|
};
|
4828
|
+
/** @group VPQR Plugin */
|
4787
4829
|
export declare type VpqrPluginMethods = {
|
4788
4830
|
vpFromQrCode: (text: string) => Promise<VP>;
|
4789
4831
|
vpToQrCode: (vp: VP) => Promise<string>;
|
4790
4832
|
};
|
4833
|
+
/** @group VPQR Plugin */
|
4834
|
+
export declare type VpqrPluginDependentMethods = {
|
4835
|
+
contextLoader: (url: string) => Promise<Record<string, any>>;
|
4836
|
+
};
|
4791
4837
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
4792
4838
|
export declare type InitFunction<Args extends Record<string, any> | undefined = Record<string, any>, Config extends keyof LearnCardConfig = keyof LearnCardConfig, ReturnValue extends LearnCard<any, any> = LearnCard<any, any>> = {
|
4793
4839
|
args: undefined extends Args ? Partial<Pick<LearnCardConfig, Config>> : Args & Partial<Pick<LearnCardConfig, Config>>;
|
4794
4840
|
returnValue: ReturnValue;
|
4795
4841
|
};
|
4842
|
+
export declare type GenericInitFunction<InitFunctions extends InitFunction<any, any, any>[]> = {
|
4843
|
+
args: InitFunctions[number]["args"];
|
4844
|
+
returnValue: Promise<InitFunctions[number]["returnValue"]>;
|
4845
|
+
};
|
4846
|
+
export declare type DiscriminatedUnionize<T extends object = {}, K extends string = "type"> = {
|
4847
|
+
[Key in keyof T]: {
|
4848
|
+
[Key2 in K]: Key;
|
4849
|
+
} & T[Key];
|
4850
|
+
}[keyof T];
|
4851
|
+
/** @group Universal Wallets */
|
4796
4852
|
export declare type Plugin<Name extends string, PublicMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
|
4797
4853
|
name?: Name;
|
4798
4854
|
pluginMethods: {
|
4799
4855
|
[Key in keyof PublicMethods]: <T extends Wallet<any, PublicMethods>>(wallet: T, ...args: Parameters<PublicMethods[Key]>) => ReturnType<PublicMethods[Key]>;
|
4800
4856
|
};
|
4801
4857
|
};
|
4858
|
+
/** @group Universal Wallets */
|
4802
4859
|
export declare type PublicFieldsObj<PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
|
4803
4860
|
pluginMethods: PluginMethods;
|
4804
4861
|
};
|
4862
|
+
/** @group Universal Wallets */
|
4805
4863
|
export declare type Wallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = PublicFieldsObj<PluginMethods> & {
|
4806
4864
|
contents: any[];
|
4807
4865
|
plugins: Plugin<PluginNames, Record<string, (...args: any[]) => any>>[];
|
@@ -4809,153 +4867,360 @@ export declare type Wallet<PluginNames extends string = "", PluginMethods extend
|
|
4809
4867
|
remove: (contentId: string) => Promise<Wallet<PluginNames, PluginMethods>>;
|
4810
4868
|
addPlugin: <Name extends string, Methods extends Record<string, (...args: any[]) => any> = Record<never, never>>(plugin: Plugin<Name, Methods>) => Promise<Wallet<"" extends PluginNames ? Name : PluginNames | Name, Record<never, never> extends PluginMethods ? Methods : PluginMethods & Methods>>;
|
4811
4869
|
};
|
4812
|
-
|
4813
|
-
export declare type
|
4814
|
-
|
4815
|
-
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
|
4822
|
-
|
4870
|
+
/** @group VC Templates Plugin */
|
4871
|
+
export declare type VcTemplates = {
|
4872
|
+
basic: {
|
4873
|
+
did?: string;
|
4874
|
+
subject?: string;
|
4875
|
+
issuanceDate?: string;
|
4876
|
+
};
|
4877
|
+
achievement: {
|
4878
|
+
did?: string;
|
4879
|
+
subject?: string;
|
4880
|
+
name?: string;
|
4881
|
+
achievementName?: string;
|
4882
|
+
description?: string;
|
4883
|
+
criteriaNarrative?: string;
|
4884
|
+
issuanceDate?: string;
|
4823
4885
|
};
|
4824
|
-
/** Signs an unsigned Verifiable Credential, returning the signed VC */
|
4825
|
-
issueCredential: (credential: UnsignedVC) => Promise<VC>;
|
4826
|
-
/**
|
4827
|
-
* Verifies a signed Verifiable Credential
|
4828
|
-
*
|
4829
|
-
* Empty error/warnings arrays means verification was successful
|
4830
|
-
*/
|
4831
|
-
verifyCredential: (credential: VC) => Promise<VerificationItem[]>;
|
4832
|
-
/** Signs an unsigned Verifiable Presentation, returning the signed VP */
|
4833
|
-
issuePresentation: (presentation: UnsignedVP) => Promise<VP>;
|
4834
|
-
/**
|
4835
|
-
* Verifies a signed Verifiable Presentation
|
4836
|
-
*
|
4837
|
-
* Empry error/warnings arrays means verification was successful
|
4838
|
-
*/
|
4839
|
-
verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
|
4840
|
-
/** Returns the credential marked with `title` from IDX */
|
4841
|
-
getCredential: (title: string) => Promise<VC>;
|
4842
|
-
/** Returns all credentials from IDX */
|
4843
|
-
getCredentials: () => Promise<VC[]>;
|
4844
|
-
/** Returns all credentials from IDX */
|
4845
|
-
getCredentialsList: () => Promise<IDXCredential[]>;
|
4846
|
-
/**
|
4847
|
-
* Publishes a credential to Ceramic, returning the credential's stream ID
|
4848
|
-
*
|
4849
|
-
* This stream ID may then be shared/persisted/resolved to gain access to the credential
|
4850
|
-
*
|
4851
|
-
* Resolving a stream ID can be done by passing the stream ID to `readFromCeramic`
|
4852
|
-
*/
|
4853
|
-
publishCredential: (credential: VC) => Promise<string>;
|
4854
|
-
/**
|
4855
|
-
* Adds a stream ID pointing to a credential (such as the one returned by `publishCredential`)
|
4856
|
-
* to IDX with a bespoke title
|
4857
|
-
*
|
4858
|
-
* The credential may then be retrieved using `getCredential` and passing in that bespoke title,
|
4859
|
-
* or by using `getCredentials` to get a list of all credentials that have been added to IDX
|
4860
|
-
*/
|
4861
|
-
addCredential: (credential: IDXCredential) => Promise<void>;
|
4862
|
-
/**
|
4863
|
-
* Adds a stream ID pointing to a credential (such as the one returned by `publishCredential`)
|
4864
|
-
* to IDX with a bespoke title
|
4865
|
-
*
|
4866
|
-
* The credential may then be retrieved using `getCredential` and passing in that bespoke title,
|
4867
|
-
* or by using `getCredentials` to get a list of all credentials that have been added to IDX
|
4868
|
-
*/
|
4869
|
-
removeCredential: (title: string) => Promise<void>;
|
4870
|
-
resolveDid: (did: string) => Promise<Record<string, any>>;
|
4871
|
-
/**
|
4872
|
-
* Resolves a stream ID, returning its contents
|
4873
|
-
*
|
4874
|
-
* This can be given the return value of `publishCredential` to gain access to the credential
|
4875
|
-
* that was published
|
4876
|
-
*/
|
4877
|
-
readFromCeramic: (streamId: string) => Promise<any>;
|
4878
|
-
/**
|
4879
|
-
* Returns an example credential, optionally allowing a subject's did to be passed in
|
4880
|
-
*
|
4881
|
-
* You can use this to test out implementations that use this library!
|
4882
|
-
*/
|
4883
|
-
getTestVc: (subject?: string) => UnsignedVC;
|
4884
|
-
/**
|
4885
|
-
* Wraps a crednetial in an exmaple presentaion. If no credential is provided, a new one will be
|
4886
|
-
* generated using getTestVc
|
4887
|
-
*
|
4888
|
-
* You can use this to test out implementations that use this library!
|
4889
|
-
*/
|
4890
|
-
getTestVp: (credential?: VC) => Promise<UnsignedVP>;
|
4891
|
-
/**
|
4892
|
-
* Returns Ethereum public address
|
4893
|
-
*/
|
4894
|
-
getEthereumAddress: () => string;
|
4895
|
-
/**
|
4896
|
-
* Get the balance of an ERC20 token
|
4897
|
-
* Defaults to ETH if symbolOrAddress is not provided
|
4898
|
-
*/
|
4899
|
-
getBalance: (symbolOrAddress?: string) => Promise<string>;
|
4900
|
-
/**
|
4901
|
-
* Get the balance of an ERC20 token for a given address
|
4902
|
-
* Defaults to ETH if symbolOrAddress is not provided
|
4903
|
-
*/
|
4904
|
-
getBalanceForAddress: (walletAddress: string, symbolOrAddress?: string) => Promise<string>;
|
4905
|
-
/**
|
4906
|
-
* Transfer tokens to a given address
|
4907
|
-
*/
|
4908
|
-
transferTokens: (tokenSymbolOrAddress: string, amount: number, toAddress: string) => Promise<string>;
|
4909
|
-
/**
|
4910
|
-
* Get your current Ethereum network
|
4911
|
-
*/
|
4912
|
-
getCurrentNetwork: () => ethers.providers.Networkish;
|
4913
|
-
/**
|
4914
|
-
* Change your Ethereum network
|
4915
|
-
*/
|
4916
|
-
changeNetwork: (network: ethers.providers.Networkish) => void;
|
4917
|
-
/**
|
4918
|
-
* Add an infura project id to an existing wallet.
|
4919
|
-
* Really only useful for testing with the CLI right now...
|
4920
|
-
*/
|
4921
|
-
addInfuraProjectId: (infuraProjectIdToAdd: string) => void;
|
4922
|
-
/**
|
4923
|
-
* Returns a Verifiable Presentation (VP) from a QR code base-64 image data string containing a VP compressed by CBOR-LD.
|
4924
|
-
*/
|
4925
|
-
vpFromQrCode: (text: string) => Promise<VP>;
|
4926
|
-
/**
|
4927
|
-
* Returns a QR-embeddable base-64 image data string from a Verifiable Presentation, compressed using CBOR-LD.
|
4928
|
-
*/
|
4929
|
-
vpToQrCode: (vp: VP) => Promise<string>;
|
4930
4886
|
};
|
4887
|
+
/** @group VC Templates Plugin */
|
4888
|
+
export declare type NewCredentialFunction = (args?: DiscriminatedUnionize<VcTemplates>) => UnsignedVC;
|
4889
|
+
/** @group VC Templates Plugin */
|
4890
|
+
export declare type VCTemplatePluginMethods = {
|
4891
|
+
getSubjectDid?: (type: "key") => string;
|
4892
|
+
newCredential: NewCredentialFunction;
|
4893
|
+
newPresentation: (credential: VC, args?: {
|
4894
|
+
did?: string;
|
4895
|
+
}) => Promise<UnsignedVP>;
|
4896
|
+
};
|
4897
|
+
/**
|
4898
|
+
* Wallet holder's did
|
4899
|
+
*
|
4900
|
+
* @group LearnCard Methods
|
4901
|
+
*/
|
4902
|
+
export declare type Did = (type?: DidMethod) => string;
|
4903
|
+
/**
|
4904
|
+
* Wallet holder's ed25519 key pair
|
4905
|
+
*
|
4906
|
+
* @group LearnCard Methods
|
4907
|
+
*/
|
4908
|
+
export declare type Keypair = (type?: Algorithm) => {
|
4909
|
+
kty: string;
|
4910
|
+
crv: string;
|
4911
|
+
x: string;
|
4912
|
+
y?: string;
|
4913
|
+
d: string;
|
4914
|
+
};
|
4915
|
+
/**
|
4916
|
+
* Generates a new Unsigned VC from a template
|
4917
|
+
*
|
4918
|
+
* @group LearnCard Methods
|
4919
|
+
*/
|
4920
|
+
export declare type NewCredential = NewCredentialFunction;
|
4921
|
+
/**
|
4922
|
+
* Wraps a VC in a simple Presentation
|
4923
|
+
*
|
4924
|
+
* @group LearnCard Methods
|
4925
|
+
*/
|
4926
|
+
export declare type NewPresentation = (credential: VC, args?: {
|
4927
|
+
did?: string;
|
4928
|
+
}) => Promise<UnsignedVP>;
|
4929
|
+
/**
|
4930
|
+
* Signs an unsigned Verifiable Credential, returning the signed VC
|
4931
|
+
*
|
4932
|
+
* @group LearnCard Methods
|
4933
|
+
*/
|
4934
|
+
export declare type IssueCredential = (credential: UnsignedVC) => Promise<VC>;
|
4935
|
+
/**
|
4936
|
+
* Verifies a signed Verifiable Credential
|
4937
|
+
*
|
4938
|
+
* Empty error/warnings arrays means verification was successful
|
4939
|
+
*
|
4940
|
+
* @group LearnCard Methods
|
4941
|
+
*/
|
4942
|
+
export declare type VerifyCredential = (credential: VC) => Promise<VerificationItem[]>;
|
4943
|
+
/**
|
4944
|
+
* Signs an unsigned Verifiable Presentation, returning the signed VP
|
4945
|
+
*
|
4946
|
+
* @group LearnCard Methods
|
4947
|
+
*/
|
4948
|
+
export declare type IssuePresentation = (presentation: UnsignedVP) => Promise<VP>;
|
4949
|
+
/**
|
4950
|
+
* Verifies a signed Verifiable Presentation
|
4951
|
+
*
|
4952
|
+
* Empry error/warnings arrays means verification was successful
|
4953
|
+
*
|
4954
|
+
* @group LearnCard Methods
|
4955
|
+
*/
|
4956
|
+
export declare type VerifyPresentation = (presentation: VP) => Promise<VerificationCheck>;
|
4957
|
+
/**
|
4958
|
+
* Returns the credential marked with `title` from IDX
|
4959
|
+
*
|
4960
|
+
* @group LearnCard Methods
|
4961
|
+
*/
|
4962
|
+
export declare type GetCredential = (title: string) => Promise<VC>;
|
4963
|
+
/**
|
4964
|
+
* Returns all credentials from IDX
|
4965
|
+
*
|
4966
|
+
* @group LearnCard Methods
|
4967
|
+
*/
|
4968
|
+
export declare type GetCredentials = () => Promise<VC[]>;
|
4969
|
+
/**
|
4970
|
+
* Returns all credentials from IDX
|
4971
|
+
*
|
4972
|
+
* @group LearnCard Methods
|
4973
|
+
*/
|
4974
|
+
export declare type GetCredentialsList = () => Promise<IDXCredential[]>;
|
4975
|
+
/**
|
4976
|
+
* Publishes a credential to Ceramic, returning the credential's stream ID
|
4977
|
+
*
|
4978
|
+
* This stream ID may then be shared/persisted/resolved to gain access to the credential
|
4979
|
+
*
|
4980
|
+
* Resolving a stream ID can be done by passing the stream ID to `readFromCeramic`
|
4981
|
+
*
|
4982
|
+
* @group LearnCard Methods
|
4983
|
+
*/
|
4984
|
+
export declare type PublishCredential = (credential: VC) => Promise<string>;
|
4985
|
+
/**
|
4986
|
+
* Adds a stream ID pointing to a credential (such as the one returned by `publishCredential`)
|
4987
|
+
* to IDX with a bespoke title
|
4988
|
+
*
|
4989
|
+
* The credential may then be retrieved using `getCredential` and passing in that bespoke title,
|
4990
|
+
* or by using `getCredentials` to get a list of all credentials that have been added to IDX
|
4991
|
+
*
|
4992
|
+
* @group LearnCard Methods
|
4993
|
+
*/
|
4994
|
+
export declare type AddCredential = (credential: IDXCredential) => Promise<void>;
|
4995
|
+
/**
|
4996
|
+
* Adds a stream ID pointing to a credential (such as the one returned by `publishCredential`)
|
4997
|
+
* to IDX with a bespoke title
|
4998
|
+
*
|
4999
|
+
* The credential may then be retrieved using `getCredential` and passing in that bespoke title,
|
5000
|
+
* or by using `getCredentials` to get a list of all credentials that have been added to IDX
|
5001
|
+
*
|
5002
|
+
* @group LearnCard Methods
|
5003
|
+
*/
|
5004
|
+
export declare type RemoveCredential = (title: string) => Promise<void>;
|
5005
|
+
/**
|
5006
|
+
* Resolves a did to its did document
|
5007
|
+
*
|
5008
|
+
* @group LearnCard Methods
|
5009
|
+
*/
|
5010
|
+
export declare type ResolveDid = (did: string) => Promise<Record<string, any>>;
|
5011
|
+
/**
|
5012
|
+
* Resolves a stream ID, returning its contents
|
5013
|
+
*
|
5014
|
+
* This can be given the return value of `publishCredential` to gain access to the credential
|
5015
|
+
* that was published
|
5016
|
+
*
|
5017
|
+
* @group LearnCard Methods
|
5018
|
+
*/
|
5019
|
+
export declare type ReadFromCeramic = (streamId: string) => Promise<any>;
|
5020
|
+
/**
|
5021
|
+
* Returns an example credential, optionally allowing a subject's did to be passed in
|
5022
|
+
*
|
5023
|
+
* You can use this to test out implementations that use this library!
|
5024
|
+
*
|
5025
|
+
* @group LearnCard Methods
|
5026
|
+
*/
|
5027
|
+
export declare type GetTestVc = (subject?: string) => UnsignedVC;
|
5028
|
+
/**
|
5029
|
+
* Wraps a crednetial in an exmaple presentaion. If no credential is provided, a new one will be
|
5030
|
+
* generated using getTestVc
|
5031
|
+
*
|
5032
|
+
* You can use this to test out implementations that use this library!
|
5033
|
+
*
|
5034
|
+
* @group LearnCard Methods
|
5035
|
+
*/
|
5036
|
+
export declare type GetTestVp = (credential?: VC) => Promise<UnsignedVP>;
|
5037
|
+
/**
|
5038
|
+
* Returns Ethereum public address
|
5039
|
+
*
|
5040
|
+
* @group LearnCard Methods
|
5041
|
+
*/
|
5042
|
+
export declare type GetEthereumAddress = () => string;
|
5043
|
+
/**
|
5044
|
+
* Get the balance of an ERC20 token
|
5045
|
+
* Defaults to ETH if symbolOrAddress is not provided
|
5046
|
+
*
|
5047
|
+
* @group LearnCard Methods
|
5048
|
+
*/
|
5049
|
+
export declare type GetBalance = (symbolOrAddress?: string) => Promise<string>;
|
5050
|
+
/**
|
5051
|
+
* Get the balance of an ERC20 token for a given address
|
5052
|
+
* Defaults to ETH if symbolOrAddress is not provided
|
5053
|
+
*
|
5054
|
+
* @group LearnCard Methods
|
5055
|
+
*/
|
5056
|
+
export declare type GetBalanceForAddress = (walletAddress: string, symbolOrAddress?: string) => Promise<string>;
|
5057
|
+
/**
|
5058
|
+
* Transfer tokens to a given address
|
5059
|
+
*
|
5060
|
+
* @group LearnCard Methods
|
5061
|
+
*/
|
5062
|
+
export declare type TransferTokens = (tokenSymbolOrAddress: string, amount: number, toAddress: string) => Promise<string>;
|
5063
|
+
/**
|
5064
|
+
* Get your current Ethereum network
|
5065
|
+
*
|
5066
|
+
* @group LearnCard Methods
|
5067
|
+
*/
|
5068
|
+
export declare type GetCurrentNetwork = () => ethers.providers.Networkish;
|
5069
|
+
/**
|
5070
|
+
* Change your Ethereum network
|
5071
|
+
*
|
5072
|
+
* @group LearnCard Methods
|
5073
|
+
*/
|
5074
|
+
export declare type ChangeNetwork = (network: ethers.providers.Networkish) => void;
|
5075
|
+
/**
|
5076
|
+
* Add an infura project id to an existing wallet.
|
5077
|
+
* Really only useful for testing with the CLI right now...
|
5078
|
+
*
|
5079
|
+
* @group LearnCard Methods
|
5080
|
+
*/
|
5081
|
+
export declare type AddInfuraProjectId = (infuraProjectIdToAdd: string) => void;
|
5082
|
+
/**
|
5083
|
+
* Returns a Verifiable Presentation (VP) from a QR code base-64 image data string containing a VP compressed by CBOR-LD.
|
5084
|
+
*
|
5085
|
+
* @group LearnCard Methods
|
5086
|
+
*/
|
5087
|
+
export declare type VpFromQrCode = (text: string) => Promise<VP>;
|
5088
|
+
/**
|
5089
|
+
* Returns a QR-embeddable base-64 image data string from a Verifiable Presentation, compressed using CBOR-LD.
|
5090
|
+
*
|
5091
|
+
* @group LearnCard Methods
|
5092
|
+
*/
|
5093
|
+
export declare type VpToQrCode = (vp: VP) => Promise<string>;
|
5094
|
+
/**
|
5095
|
+
* @group LearnCard Methods
|
5096
|
+
*/
|
5097
|
+
export declare type AllLearnCardMethods = {
|
5098
|
+
did: Did;
|
5099
|
+
keypair: Keypair;
|
5100
|
+
newCredential: NewCredential;
|
5101
|
+
newPresentation: NewPresentation;
|
5102
|
+
issueCredential: IssueCredential;
|
5103
|
+
verifyCredential: VerifyCredential;
|
5104
|
+
issuePresentation: IssuePresentation;
|
5105
|
+
verifyPresentation: VerifyPresentation;
|
5106
|
+
getCredential: GetCredential;
|
5107
|
+
getCredentials: GetCredentials;
|
5108
|
+
getCredentialsList: GetCredentialsList;
|
5109
|
+
publishCredential: PublishCredential;
|
5110
|
+
addCredential: AddCredential;
|
5111
|
+
removeCredential: RemoveCredential;
|
5112
|
+
resolveDid: ResolveDid;
|
5113
|
+
readFromCeramic: ReadFromCeramic;
|
5114
|
+
getTestVc: GetTestVc;
|
5115
|
+
getTestVp: GetTestVp;
|
5116
|
+
getEthereumAddress: GetEthereumAddress;
|
5117
|
+
getBalance: GetBalance;
|
5118
|
+
getBalanceForAddress: GetBalanceForAddress;
|
5119
|
+
transferTokens: TransferTokens;
|
5120
|
+
getCurrentNetwork: GetCurrentNetwork;
|
5121
|
+
changeNetwork: ChangeNetwork;
|
5122
|
+
addInfuraProjectId: AddInfuraProjectId;
|
5123
|
+
vpFromQrCode: VpFromQrCode;
|
5124
|
+
vpToQrCode: VpToQrCode;
|
5125
|
+
};
|
5126
|
+
/** @group Universal Wallets */
|
5127
|
+
export declare type LearnCardRawWallet = Wallet<"DIDKit" | "DID Key" | "VC" | "VC Templates" | "IDX" | "Expiration" | "Ethereum" | "Vpqr", DidKeyPluginMethods<DidMethod> & VCPluginMethods & VCTemplatePluginMethods & IDXPluginMethods & EthereumPluginMethods & VpqrPluginMethods>;
|
5128
|
+
/**
|
5129
|
+
* @group LearnCard
|
5130
|
+
*/
|
4931
5131
|
export declare type LearnCard<Methods extends keyof AllLearnCardMethods = keyof AllLearnCardMethods, RawWallet extends Wallet<any, any> = LearnCardRawWallet> = {
|
4932
5132
|
/** Raw IoE wallet instance. You shouldn't need to drop down to this level! */
|
4933
5133
|
_wallet: RawWallet;
|
4934
5134
|
} & Pick<AllLearnCardMethods, Methods>;
|
4935
|
-
|
4936
|
-
|
4937
|
-
|
4938
|
-
|
4939
|
-
|
4940
|
-
defaultContentFamily: string;
|
4941
|
-
};
|
5135
|
+
/**
|
5136
|
+
* @group LearnCard
|
5137
|
+
*/
|
5138
|
+
export declare type EmptyLearnCard = LearnCard<"newCredential" | "newPresentation" | "verifyCredential" | "verifyPresentation" | "resolveDid", Wallet<"DIDKit" | "Expiration" | "VC Templates", DidkitPluginMethods & VerifyExtension & VCTemplatePluginMethods>>;
|
5139
|
+
/** @group LearnCard */
|
4942
5140
|
export declare type LearnCardConfig = {
|
4943
5141
|
ceramicIdx: CeramicIDXArgs;
|
4944
5142
|
didkit: InitInput | Promise<InitInput>;
|
4945
5143
|
defaultContents: any[];
|
4946
5144
|
ethereumConfig: EthereumConfig;
|
4947
5145
|
};
|
5146
|
+
/** @group Init Functions */
|
4948
5147
|
export declare type EmptyWallet = InitFunction<undefined, "didkit", EmptyLearnCard>;
|
5148
|
+
/** @group Init Functions */
|
4949
5149
|
export declare type WalletFromKey = InitFunction<{
|
4950
5150
|
seed: string;
|
4951
5151
|
}, keyof LearnCardConfig, LearnCard>;
|
4952
|
-
/**
|
5152
|
+
/** @group Init Functions */
|
5153
|
+
export declare type InitLearnCard = GenericInitFunction<[
|
5154
|
+
EmptyWallet,
|
5155
|
+
WalletFromKey
|
5156
|
+
]>;
|
5157
|
+
/**
|
5158
|
+
* Generates an empty wallet with no key material
|
5159
|
+
*
|
5160
|
+
* @group Init Functions
|
5161
|
+
*/
|
4953
5162
|
export declare const emptyWallet: ({ didkit }?: EmptyWallet["args"]) => Promise<EmptyWallet["returnValue"]>;
|
4954
|
-
/**
|
5163
|
+
/**
|
5164
|
+
* Generates a LearnCard Wallet from a 64 character seed string
|
5165
|
+
*
|
5166
|
+
* @group Init Functions
|
5167
|
+
*/
|
4955
5168
|
export declare const walletFromKey: (key: string, { ceramicIdx, didkit, defaultContents, ethereumConfig, }?: Partial<LearnCardConfig>) => Promise<LearnCard>;
|
5169
|
+
/**
|
5170
|
+
* Generates an Empty Wallet
|
5171
|
+
*
|
5172
|
+
* @group Init Functions
|
5173
|
+
*/
|
4956
5174
|
export declare function initLearnCard(config?: EmptyWallet["args"]): Promise<EmptyWallet["returnValue"]>;
|
5175
|
+
/**
|
5176
|
+
* Generates a full wallet from a 32 byte seed
|
5177
|
+
*
|
5178
|
+
* @group Init Functions
|
5179
|
+
*/
|
4957
5180
|
export declare function initLearnCard(config: WalletFromKey["args"]): Promise<WalletFromKey["returnValue"]>;
|
5181
|
+
export declare const passwordToKey: (password: string, salt?: string, iterations?: number, digest?: string) => Promise<Uint8Array>;
|
5182
|
+
export declare const seedToId: (seed: Uint8Array) => Promise<string>;
|
5183
|
+
/** @group Universal Wallets */
|
5184
|
+
export declare const generateWallet: <PluginNames extends string, PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>>(contents?: any[], _wallet?: Partial<Wallet<any, PluginMethods>>) => Promise<Wallet<PluginNames, PluginMethods>>;
|
5185
|
+
/**
|
5186
|
+
*
|
5187
|
+
* @group Plugins
|
5188
|
+
*/
|
5189
|
+
export declare const getDidKitPlugin: (input?: InitInput | Promise<InitInput>) => Promise<Plugin<"DIDKit", DidkitPluginMethods>>;
|
5190
|
+
/**
|
5191
|
+
*
|
5192
|
+
* @group Plugins
|
5193
|
+
*/
|
5194
|
+
export declare const getDidKeyPlugin: <DidMethod extends string>(wallet: Wallet<string, DependentMethods<DidMethod>>, key: string) => Promise<Plugin<"DID Key", DidKeyPluginMethods<DidMethod>>>;
|
5195
|
+
/**
|
5196
|
+
* @group Plugins
|
5197
|
+
*/
|
5198
|
+
export declare const getVCPlugin: (wallet: Wallet<string, VCPluginDependentMethods>) => Plugin<"VC", VCPluginMethods>;
|
5199
|
+
/**
|
5200
|
+
* @group Plugins
|
5201
|
+
*/
|
5202
|
+
export declare const getIDXPlugin: (wallet: Wallet<any, {
|
5203
|
+
getKey: () => string;
|
5204
|
+
}>, { modelData, credentialAlias, ceramicEndpoint, defaultContentFamily }: CeramicIDXArgs) => Promise<Plugin<"IDX", IDXPluginMethods>>;
|
5205
|
+
/**
|
5206
|
+
* @group Plugins
|
5207
|
+
*/
|
5208
|
+
export declare const ExpirationPlugin: (wallet: Wallet<any, VerifyExtension>) => Plugin<"Expiration", VerifyExtension>;
|
5209
|
+
/**
|
5210
|
+
* @group Plugins
|
5211
|
+
*/
|
5212
|
+
export declare const getEthereumPlugin: (initWallet: Wallet<string, {
|
5213
|
+
getSubjectDid: (type: DidMethod) => string;
|
5214
|
+
getSubjectKeypair: (type?: Algorithm) => KeyPair;
|
5215
|
+
}>, config: EthereumConfig) => Plugin<"Ethereum", EthereumPluginMethods>;
|
5216
|
+
/**
|
5217
|
+
* @group Plugins
|
5218
|
+
*/
|
5219
|
+
export declare const getVpqrPlugin: (wallet: Wallet<string, VpqrPluginDependentMethods>) => Plugin<"Vpqr", VpqrPluginMethods>;
|
4958
5220
|
export * from "@wallet/init";
|
4959
5221
|
export { Wallet, Plugin } from "types/wallet";
|
5222
|
+
export * from "types/LearnCard";
|
5223
|
+
export * from "@wallet/base";
|
5224
|
+
export * from "@wallet/plugins";
|
4960
5225
|
|
4961
5226
|
export {};
|