@learncard/core 6.0.0 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/core.cjs.development.js +3485 -163
- package/dist/core.cjs.development.js.map +3 -3
- package/dist/core.cjs.production.min.js +198 -122
- package/dist/core.cjs.production.min.js.map +3 -3
- package/dist/core.d.ts +473 -200
- package/dist/core.esm.js +3485 -163
- 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 +5 -2
package/dist/core.d.ts
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
import { StreamID } from '@ceramicnetwork/streamid';
|
6
6
|
import { ModelAliases } from '@glazed/types';
|
7
7
|
|
8
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
8
9
|
declare const UnsignedVCValidator: z.ZodObject<{
|
9
10
|
"@context": z.ZodArray<z.ZodString, "many">;
|
10
11
|
id: z.ZodOptional<z.ZodString>;
|
@@ -37,7 +38,10 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
37
38
|
]>>;
|
38
39
|
email: z.ZodOptional<z.ZodString>;
|
39
40
|
address: z.ZodOptional<z.ZodObject<{
|
40
|
-
type: z.
|
41
|
+
type: z.ZodUnion<[
|
42
|
+
z.ZodString,
|
43
|
+
z.ZodArray<z.ZodString, "atleastone">
|
44
|
+
]>;
|
41
45
|
addressCountry: z.ZodOptional<z.ZodString>;
|
42
46
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
43
47
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -46,18 +50,21 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
46
50
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
47
51
|
postalCode: z.ZodOptional<z.ZodString>;
|
48
52
|
geo: z.ZodOptional<z.ZodObject<{
|
49
|
-
type: z.
|
53
|
+
type: z.ZodUnion<[
|
54
|
+
z.ZodString,
|
55
|
+
z.ZodArray<z.ZodString, "atleastone">
|
56
|
+
]>;
|
50
57
|
latitude: z.ZodNumber;
|
51
58
|
longitude: z.ZodNumber;
|
52
59
|
}, "strip", z.ZodTypeAny, {
|
53
|
-
type: [
|
60
|
+
type: string | [
|
54
61
|
string,
|
55
62
|
...string[]
|
56
63
|
];
|
57
64
|
latitude: number;
|
58
65
|
longitude: number;
|
59
66
|
}, {
|
60
|
-
type: [
|
67
|
+
type: string | [
|
61
68
|
string,
|
62
69
|
...string[]
|
63
70
|
];
|
@@ -73,14 +80,14 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
73
80
|
postOfficeBoxNumber?: string | undefined;
|
74
81
|
postalCode?: string | undefined;
|
75
82
|
geo?: {
|
76
|
-
type: [
|
83
|
+
type: string | [
|
77
84
|
string,
|
78
85
|
...string[]
|
79
86
|
];
|
80
87
|
latitude: number;
|
81
88
|
longitude: number;
|
82
89
|
} | undefined;
|
83
|
-
type: [
|
90
|
+
type: string | [
|
84
91
|
string,
|
85
92
|
...string[]
|
86
93
|
];
|
@@ -93,20 +100,23 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
93
100
|
postOfficeBoxNumber?: string | undefined;
|
94
101
|
postalCode?: string | undefined;
|
95
102
|
geo?: {
|
96
|
-
type: [
|
103
|
+
type: string | [
|
97
104
|
string,
|
98
105
|
...string[]
|
99
106
|
];
|
100
107
|
latitude: number;
|
101
108
|
longitude: number;
|
102
109
|
} | undefined;
|
103
|
-
type: [
|
110
|
+
type: string | [
|
104
111
|
string,
|
105
112
|
...string[]
|
106
113
|
];
|
107
114
|
}>>;
|
108
115
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
109
|
-
type: z.
|
116
|
+
type: z.ZodUnion<[
|
117
|
+
z.ZodString,
|
118
|
+
z.ZodArray<z.ZodString, "atleastone">
|
119
|
+
]>;
|
110
120
|
identifier: z.ZodString;
|
111
121
|
identifierType: z.ZodUnion<[
|
112
122
|
z.ZodEnum<[
|
@@ -132,14 +142,14 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
132
142
|
z.ZodString
|
133
143
|
]>;
|
134
144
|
}, "strip", z.ZodTypeAny, {
|
135
|
-
type: [
|
145
|
+
type: string | [
|
136
146
|
string,
|
137
147
|
...string[]
|
138
148
|
];
|
139
149
|
identifier: string;
|
140
150
|
identifierType: string;
|
141
151
|
}, {
|
142
|
-
type: [
|
152
|
+
type: string | [
|
143
153
|
string,
|
144
154
|
...string[]
|
145
155
|
];
|
@@ -183,20 +193,20 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
183
193
|
postOfficeBoxNumber?: string | undefined;
|
184
194
|
postalCode?: string | undefined;
|
185
195
|
geo?: {
|
186
|
-
type: [
|
196
|
+
type: string | [
|
187
197
|
string,
|
188
198
|
...string[]
|
189
199
|
];
|
190
200
|
latitude: number;
|
191
201
|
longitude: number;
|
192
202
|
} | undefined;
|
193
|
-
type: [
|
203
|
+
type: string | [
|
194
204
|
string,
|
195
205
|
...string[]
|
196
206
|
];
|
197
207
|
} | undefined;
|
198
208
|
otherIdentifier?: {
|
199
|
-
type: [
|
209
|
+
type: string | [
|
200
210
|
string,
|
201
211
|
...string[]
|
202
212
|
];
|
@@ -240,20 +250,20 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
240
250
|
postOfficeBoxNumber?: string | undefined;
|
241
251
|
postalCode?: string | undefined;
|
242
252
|
geo?: {
|
243
|
-
type: [
|
253
|
+
type: string | [
|
244
254
|
string,
|
245
255
|
...string[]
|
246
256
|
];
|
247
257
|
latitude: number;
|
248
258
|
longitude: number;
|
249
259
|
} | undefined;
|
250
|
-
type: [
|
260
|
+
type: string | [
|
251
261
|
string,
|
252
262
|
...string[]
|
253
263
|
];
|
254
264
|
} | undefined;
|
255
265
|
otherIdentifier?: {
|
256
|
-
type: [
|
266
|
+
type: string | [
|
257
267
|
string,
|
258
268
|
...string[]
|
259
269
|
];
|
@@ -375,20 +385,20 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
375
385
|
postOfficeBoxNumber?: string | undefined;
|
376
386
|
postalCode?: string | undefined;
|
377
387
|
geo?: {
|
378
|
-
type: [
|
388
|
+
type: string | [
|
379
389
|
string,
|
380
390
|
...string[]
|
381
391
|
];
|
382
392
|
latitude: number;
|
383
393
|
longitude: number;
|
384
394
|
} | undefined;
|
385
|
-
type: [
|
395
|
+
type: string | [
|
386
396
|
string,
|
387
397
|
...string[]
|
388
398
|
];
|
389
399
|
} | undefined;
|
390
400
|
otherIdentifier?: {
|
391
|
-
type: [
|
401
|
+
type: string | [
|
392
402
|
string,
|
393
403
|
...string[]
|
394
404
|
];
|
@@ -463,20 +473,20 @@ declare const UnsignedVCValidator: z.ZodObject<{
|
|
463
473
|
postOfficeBoxNumber?: string | undefined;
|
464
474
|
postalCode?: string | undefined;
|
465
475
|
geo?: {
|
466
|
-
type: [
|
476
|
+
type: string | [
|
467
477
|
string,
|
468
478
|
...string[]
|
469
479
|
];
|
470
480
|
latitude: number;
|
471
481
|
longitude: number;
|
472
482
|
} | undefined;
|
473
|
-
type: [
|
483
|
+
type: string | [
|
474
484
|
string,
|
475
485
|
...string[]
|
476
486
|
];
|
477
487
|
} | undefined;
|
478
488
|
otherIdentifier?: {
|
479
|
-
type: [
|
489
|
+
type: string | [
|
480
490
|
string,
|
481
491
|
...string[]
|
482
492
|
];
|
@@ -536,7 +546,10 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
536
546
|
]>>;
|
537
547
|
email: z.ZodOptional<z.ZodString>;
|
538
548
|
address: z.ZodOptional<z.ZodObject<{
|
539
|
-
type: z.
|
549
|
+
type: z.ZodUnion<[
|
550
|
+
z.ZodString,
|
551
|
+
z.ZodArray<z.ZodString, "atleastone">
|
552
|
+
]>;
|
540
553
|
addressCountry: z.ZodOptional<z.ZodString>;
|
541
554
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
542
555
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -545,18 +558,21 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
545
558
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
546
559
|
postalCode: z.ZodOptional<z.ZodString>;
|
547
560
|
geo: z.ZodOptional<z.ZodObject<{
|
548
|
-
type: z.
|
561
|
+
type: z.ZodUnion<[
|
562
|
+
z.ZodString,
|
563
|
+
z.ZodArray<z.ZodString, "atleastone">
|
564
|
+
]>;
|
549
565
|
latitude: z.ZodNumber;
|
550
566
|
longitude: z.ZodNumber;
|
551
567
|
}, "strip", z.ZodTypeAny, {
|
552
|
-
type: [
|
568
|
+
type: string | [
|
553
569
|
string,
|
554
570
|
...string[]
|
555
571
|
];
|
556
572
|
latitude: number;
|
557
573
|
longitude: number;
|
558
574
|
}, {
|
559
|
-
type: [
|
575
|
+
type: string | [
|
560
576
|
string,
|
561
577
|
...string[]
|
562
578
|
];
|
@@ -572,14 +588,14 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
572
588
|
postOfficeBoxNumber?: string | undefined;
|
573
589
|
postalCode?: string | undefined;
|
574
590
|
geo?: {
|
575
|
-
type: [
|
591
|
+
type: string | [
|
576
592
|
string,
|
577
593
|
...string[]
|
578
594
|
];
|
579
595
|
latitude: number;
|
580
596
|
longitude: number;
|
581
597
|
} | undefined;
|
582
|
-
type: [
|
598
|
+
type: string | [
|
583
599
|
string,
|
584
600
|
...string[]
|
585
601
|
];
|
@@ -592,20 +608,23 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
592
608
|
postOfficeBoxNumber?: string | undefined;
|
593
609
|
postalCode?: string | undefined;
|
594
610
|
geo?: {
|
595
|
-
type: [
|
611
|
+
type: string | [
|
596
612
|
string,
|
597
613
|
...string[]
|
598
614
|
];
|
599
615
|
latitude: number;
|
600
616
|
longitude: number;
|
601
617
|
} | undefined;
|
602
|
-
type: [
|
618
|
+
type: string | [
|
603
619
|
string,
|
604
620
|
...string[]
|
605
621
|
];
|
606
622
|
}>>;
|
607
623
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
608
|
-
type: z.
|
624
|
+
type: z.ZodUnion<[
|
625
|
+
z.ZodString,
|
626
|
+
z.ZodArray<z.ZodString, "atleastone">
|
627
|
+
]>;
|
609
628
|
identifier: z.ZodString;
|
610
629
|
identifierType: z.ZodUnion<[
|
611
630
|
z.ZodEnum<[
|
@@ -631,14 +650,14 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
631
650
|
z.ZodString
|
632
651
|
]>;
|
633
652
|
}, "strip", z.ZodTypeAny, {
|
634
|
-
type: [
|
653
|
+
type: string | [
|
635
654
|
string,
|
636
655
|
...string[]
|
637
656
|
];
|
638
657
|
identifier: string;
|
639
658
|
identifierType: string;
|
640
659
|
}, {
|
641
|
-
type: [
|
660
|
+
type: string | [
|
642
661
|
string,
|
643
662
|
...string[]
|
644
663
|
];
|
@@ -682,20 +701,20 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
682
701
|
postOfficeBoxNumber?: string | undefined;
|
683
702
|
postalCode?: string | undefined;
|
684
703
|
geo?: {
|
685
|
-
type: [
|
704
|
+
type: string | [
|
686
705
|
string,
|
687
706
|
...string[]
|
688
707
|
];
|
689
708
|
latitude: number;
|
690
709
|
longitude: number;
|
691
710
|
} | undefined;
|
692
|
-
type: [
|
711
|
+
type: string | [
|
693
712
|
string,
|
694
713
|
...string[]
|
695
714
|
];
|
696
715
|
} | undefined;
|
697
716
|
otherIdentifier?: {
|
698
|
-
type: [
|
717
|
+
type: string | [
|
699
718
|
string,
|
700
719
|
...string[]
|
701
720
|
];
|
@@ -739,20 +758,20 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
739
758
|
postOfficeBoxNumber?: string | undefined;
|
740
759
|
postalCode?: string | undefined;
|
741
760
|
geo?: {
|
742
|
-
type: [
|
761
|
+
type: string | [
|
743
762
|
string,
|
744
763
|
...string[]
|
745
764
|
];
|
746
765
|
latitude: number;
|
747
766
|
longitude: number;
|
748
767
|
} | undefined;
|
749
|
-
type: [
|
768
|
+
type: string | [
|
750
769
|
string,
|
751
770
|
...string[]
|
752
771
|
];
|
753
772
|
} | undefined;
|
754
773
|
otherIdentifier?: {
|
755
|
-
type: [
|
774
|
+
type: string | [
|
756
775
|
string,
|
757
776
|
...string[]
|
758
777
|
];
|
@@ -937,20 +956,20 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
937
956
|
postOfficeBoxNumber?: string | undefined;
|
938
957
|
postalCode?: string | undefined;
|
939
958
|
geo?: {
|
940
|
-
type: [
|
959
|
+
type: string | [
|
941
960
|
string,
|
942
961
|
...string[]
|
943
962
|
];
|
944
963
|
latitude: number;
|
945
964
|
longitude: number;
|
946
965
|
} | undefined;
|
947
|
-
type: [
|
966
|
+
type: string | [
|
948
967
|
string,
|
949
968
|
...string[]
|
950
969
|
];
|
951
970
|
} | undefined;
|
952
971
|
otherIdentifier?: {
|
953
|
-
type: [
|
972
|
+
type: string | [
|
954
973
|
string,
|
955
974
|
...string[]
|
956
975
|
];
|
@@ -1046,20 +1065,20 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
1046
1065
|
postOfficeBoxNumber?: string | undefined;
|
1047
1066
|
postalCode?: string | undefined;
|
1048
1067
|
geo?: {
|
1049
|
-
type: [
|
1068
|
+
type: string | [
|
1050
1069
|
string,
|
1051
1070
|
...string[]
|
1052
1071
|
];
|
1053
1072
|
latitude: number;
|
1054
1073
|
longitude: number;
|
1055
1074
|
} | undefined;
|
1056
|
-
type: [
|
1075
|
+
type: string | [
|
1057
1076
|
string,
|
1058
1077
|
...string[]
|
1059
1078
|
];
|
1060
1079
|
} | undefined;
|
1061
1080
|
otherIdentifier?: {
|
1062
|
-
type: [
|
1081
|
+
type: string | [
|
1063
1082
|
string,
|
1064
1083
|
...string[]
|
1065
1084
|
];
|
@@ -1145,7 +1164,10 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1145
1164
|
]>>;
|
1146
1165
|
email: z.ZodOptional<z.ZodString>;
|
1147
1166
|
address: z.ZodOptional<z.ZodObject<{
|
1148
|
-
type: z.
|
1167
|
+
type: z.ZodUnion<[
|
1168
|
+
z.ZodString,
|
1169
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1170
|
+
]>;
|
1149
1171
|
addressCountry: z.ZodOptional<z.ZodString>;
|
1150
1172
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
1151
1173
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -1154,18 +1176,21 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1154
1176
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
1155
1177
|
postalCode: z.ZodOptional<z.ZodString>;
|
1156
1178
|
geo: z.ZodOptional<z.ZodObject<{
|
1157
|
-
type: z.
|
1179
|
+
type: z.ZodUnion<[
|
1180
|
+
z.ZodString,
|
1181
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1182
|
+
]>;
|
1158
1183
|
latitude: z.ZodNumber;
|
1159
1184
|
longitude: z.ZodNumber;
|
1160
1185
|
}, "strip", z.ZodTypeAny, {
|
1161
|
-
type: [
|
1186
|
+
type: string | [
|
1162
1187
|
string,
|
1163
1188
|
...string[]
|
1164
1189
|
];
|
1165
1190
|
latitude: number;
|
1166
1191
|
longitude: number;
|
1167
1192
|
}, {
|
1168
|
-
type: [
|
1193
|
+
type: string | [
|
1169
1194
|
string,
|
1170
1195
|
...string[]
|
1171
1196
|
];
|
@@ -1181,14 +1206,14 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1181
1206
|
postOfficeBoxNumber?: string | undefined;
|
1182
1207
|
postalCode?: string | undefined;
|
1183
1208
|
geo?: {
|
1184
|
-
type: [
|
1209
|
+
type: string | [
|
1185
1210
|
string,
|
1186
1211
|
...string[]
|
1187
1212
|
];
|
1188
1213
|
latitude: number;
|
1189
1214
|
longitude: number;
|
1190
1215
|
} | undefined;
|
1191
|
-
type: [
|
1216
|
+
type: string | [
|
1192
1217
|
string,
|
1193
1218
|
...string[]
|
1194
1219
|
];
|
@@ -1201,20 +1226,23 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1201
1226
|
postOfficeBoxNumber?: string | undefined;
|
1202
1227
|
postalCode?: string | undefined;
|
1203
1228
|
geo?: {
|
1204
|
-
type: [
|
1229
|
+
type: string | [
|
1205
1230
|
string,
|
1206
1231
|
...string[]
|
1207
1232
|
];
|
1208
1233
|
latitude: number;
|
1209
1234
|
longitude: number;
|
1210
1235
|
} | undefined;
|
1211
|
-
type: [
|
1236
|
+
type: string | [
|
1212
1237
|
string,
|
1213
1238
|
...string[]
|
1214
1239
|
];
|
1215
1240
|
}>>;
|
1216
1241
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1217
|
-
type: z.
|
1242
|
+
type: z.ZodUnion<[
|
1243
|
+
z.ZodString,
|
1244
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1245
|
+
]>;
|
1218
1246
|
identifier: z.ZodString;
|
1219
1247
|
identifierType: z.ZodUnion<[
|
1220
1248
|
z.ZodEnum<[
|
@@ -1240,14 +1268,14 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1240
1268
|
z.ZodString
|
1241
1269
|
]>;
|
1242
1270
|
}, "strip", z.ZodTypeAny, {
|
1243
|
-
type: [
|
1271
|
+
type: string | [
|
1244
1272
|
string,
|
1245
1273
|
...string[]
|
1246
1274
|
];
|
1247
1275
|
identifier: string;
|
1248
1276
|
identifierType: string;
|
1249
1277
|
}, {
|
1250
|
-
type: [
|
1278
|
+
type: string | [
|
1251
1279
|
string,
|
1252
1280
|
...string[]
|
1253
1281
|
];
|
@@ -1291,20 +1319,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1291
1319
|
postOfficeBoxNumber?: string | undefined;
|
1292
1320
|
postalCode?: string | undefined;
|
1293
1321
|
geo?: {
|
1294
|
-
type: [
|
1322
|
+
type: string | [
|
1295
1323
|
string,
|
1296
1324
|
...string[]
|
1297
1325
|
];
|
1298
1326
|
latitude: number;
|
1299
1327
|
longitude: number;
|
1300
1328
|
} | undefined;
|
1301
|
-
type: [
|
1329
|
+
type: string | [
|
1302
1330
|
string,
|
1303
1331
|
...string[]
|
1304
1332
|
];
|
1305
1333
|
} | undefined;
|
1306
1334
|
otherIdentifier?: {
|
1307
|
-
type: [
|
1335
|
+
type: string | [
|
1308
1336
|
string,
|
1309
1337
|
...string[]
|
1310
1338
|
];
|
@@ -1348,20 +1376,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1348
1376
|
postOfficeBoxNumber?: string | undefined;
|
1349
1377
|
postalCode?: string | undefined;
|
1350
1378
|
geo?: {
|
1351
|
-
type: [
|
1379
|
+
type: string | [
|
1352
1380
|
string,
|
1353
1381
|
...string[]
|
1354
1382
|
];
|
1355
1383
|
latitude: number;
|
1356
1384
|
longitude: number;
|
1357
1385
|
} | undefined;
|
1358
|
-
type: [
|
1386
|
+
type: string | [
|
1359
1387
|
string,
|
1360
1388
|
...string[]
|
1361
1389
|
];
|
1362
1390
|
} | undefined;
|
1363
1391
|
otherIdentifier?: {
|
1364
|
-
type: [
|
1392
|
+
type: string | [
|
1365
1393
|
string,
|
1366
1394
|
...string[]
|
1367
1395
|
];
|
@@ -1546,20 +1574,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1546
1574
|
postOfficeBoxNumber?: string | undefined;
|
1547
1575
|
postalCode?: string | undefined;
|
1548
1576
|
geo?: {
|
1549
|
-
type: [
|
1577
|
+
type: string | [
|
1550
1578
|
string,
|
1551
1579
|
...string[]
|
1552
1580
|
];
|
1553
1581
|
latitude: number;
|
1554
1582
|
longitude: number;
|
1555
1583
|
} | undefined;
|
1556
|
-
type: [
|
1584
|
+
type: string | [
|
1557
1585
|
string,
|
1558
1586
|
...string[]
|
1559
1587
|
];
|
1560
1588
|
} | undefined;
|
1561
1589
|
otherIdentifier?: {
|
1562
|
-
type: [
|
1590
|
+
type: string | [
|
1563
1591
|
string,
|
1564
1592
|
...string[]
|
1565
1593
|
];
|
@@ -1655,20 +1683,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1655
1683
|
postOfficeBoxNumber?: string | undefined;
|
1656
1684
|
postalCode?: string | undefined;
|
1657
1685
|
geo?: {
|
1658
|
-
type: [
|
1686
|
+
type: string | [
|
1659
1687
|
string,
|
1660
1688
|
...string[]
|
1661
1689
|
];
|
1662
1690
|
latitude: number;
|
1663
1691
|
longitude: number;
|
1664
1692
|
} | undefined;
|
1665
|
-
type: [
|
1693
|
+
type: string | [
|
1666
1694
|
string,
|
1667
1695
|
...string[]
|
1668
1696
|
];
|
1669
1697
|
} | undefined;
|
1670
1698
|
otherIdentifier?: {
|
1671
|
-
type: [
|
1699
|
+
type: string | [
|
1672
1700
|
string,
|
1673
1701
|
...string[]
|
1674
1702
|
];
|
@@ -1748,7 +1776,10 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1748
1776
|
]>>;
|
1749
1777
|
email: z.ZodOptional<z.ZodString>;
|
1750
1778
|
address: z.ZodOptional<z.ZodObject<{
|
1751
|
-
type: z.
|
1779
|
+
type: z.ZodUnion<[
|
1780
|
+
z.ZodString,
|
1781
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1782
|
+
]>;
|
1752
1783
|
addressCountry: z.ZodOptional<z.ZodString>;
|
1753
1784
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
1754
1785
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -1757,18 +1788,21 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1757
1788
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
1758
1789
|
postalCode: z.ZodOptional<z.ZodString>;
|
1759
1790
|
geo: z.ZodOptional<z.ZodObject<{
|
1760
|
-
type: z.
|
1791
|
+
type: z.ZodUnion<[
|
1792
|
+
z.ZodString,
|
1793
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1794
|
+
]>;
|
1761
1795
|
latitude: z.ZodNumber;
|
1762
1796
|
longitude: z.ZodNumber;
|
1763
1797
|
}, "strip", z.ZodTypeAny, {
|
1764
|
-
type: [
|
1798
|
+
type: string | [
|
1765
1799
|
string,
|
1766
1800
|
...string[]
|
1767
1801
|
];
|
1768
1802
|
latitude: number;
|
1769
1803
|
longitude: number;
|
1770
1804
|
}, {
|
1771
|
-
type: [
|
1805
|
+
type: string | [
|
1772
1806
|
string,
|
1773
1807
|
...string[]
|
1774
1808
|
];
|
@@ -1784,14 +1818,14 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1784
1818
|
postOfficeBoxNumber?: string | undefined;
|
1785
1819
|
postalCode?: string | undefined;
|
1786
1820
|
geo?: {
|
1787
|
-
type: [
|
1821
|
+
type: string | [
|
1788
1822
|
string,
|
1789
1823
|
...string[]
|
1790
1824
|
];
|
1791
1825
|
latitude: number;
|
1792
1826
|
longitude: number;
|
1793
1827
|
} | undefined;
|
1794
|
-
type: [
|
1828
|
+
type: string | [
|
1795
1829
|
string,
|
1796
1830
|
...string[]
|
1797
1831
|
];
|
@@ -1804,20 +1838,23 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1804
1838
|
postOfficeBoxNumber?: string | undefined;
|
1805
1839
|
postalCode?: string | undefined;
|
1806
1840
|
geo?: {
|
1807
|
-
type: [
|
1841
|
+
type: string | [
|
1808
1842
|
string,
|
1809
1843
|
...string[]
|
1810
1844
|
];
|
1811
1845
|
latitude: number;
|
1812
1846
|
longitude: number;
|
1813
1847
|
} | undefined;
|
1814
|
-
type: [
|
1848
|
+
type: string | [
|
1815
1849
|
string,
|
1816
1850
|
...string[]
|
1817
1851
|
];
|
1818
1852
|
}>>;
|
1819
1853
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1820
|
-
type: z.
|
1854
|
+
type: z.ZodUnion<[
|
1855
|
+
z.ZodString,
|
1856
|
+
z.ZodArray<z.ZodString, "atleastone">
|
1857
|
+
]>;
|
1821
1858
|
identifier: z.ZodString;
|
1822
1859
|
identifierType: z.ZodUnion<[
|
1823
1860
|
z.ZodEnum<[
|
@@ -1843,14 +1880,14 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1843
1880
|
z.ZodString
|
1844
1881
|
]>;
|
1845
1882
|
}, "strip", z.ZodTypeAny, {
|
1846
|
-
type: [
|
1883
|
+
type: string | [
|
1847
1884
|
string,
|
1848
1885
|
...string[]
|
1849
1886
|
];
|
1850
1887
|
identifier: string;
|
1851
1888
|
identifierType: string;
|
1852
1889
|
}, {
|
1853
|
-
type: [
|
1890
|
+
type: string | [
|
1854
1891
|
string,
|
1855
1892
|
...string[]
|
1856
1893
|
];
|
@@ -1894,20 +1931,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1894
1931
|
postOfficeBoxNumber?: string | undefined;
|
1895
1932
|
postalCode?: string | undefined;
|
1896
1933
|
geo?: {
|
1897
|
-
type: [
|
1934
|
+
type: string | [
|
1898
1935
|
string,
|
1899
1936
|
...string[]
|
1900
1937
|
];
|
1901
1938
|
latitude: number;
|
1902
1939
|
longitude: number;
|
1903
1940
|
} | undefined;
|
1904
|
-
type: [
|
1941
|
+
type: string | [
|
1905
1942
|
string,
|
1906
1943
|
...string[]
|
1907
1944
|
];
|
1908
1945
|
} | undefined;
|
1909
1946
|
otherIdentifier?: {
|
1910
|
-
type: [
|
1947
|
+
type: string | [
|
1911
1948
|
string,
|
1912
1949
|
...string[]
|
1913
1950
|
];
|
@@ -1951,20 +1988,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
1951
1988
|
postOfficeBoxNumber?: string | undefined;
|
1952
1989
|
postalCode?: string | undefined;
|
1953
1990
|
geo?: {
|
1954
|
-
type: [
|
1991
|
+
type: string | [
|
1955
1992
|
string,
|
1956
1993
|
...string[]
|
1957
1994
|
];
|
1958
1995
|
latitude: number;
|
1959
1996
|
longitude: number;
|
1960
1997
|
} | undefined;
|
1961
|
-
type: [
|
1998
|
+
type: string | [
|
1962
1999
|
string,
|
1963
2000
|
...string[]
|
1964
2001
|
];
|
1965
2002
|
} | undefined;
|
1966
2003
|
otherIdentifier?: {
|
1967
|
-
type: [
|
2004
|
+
type: string | [
|
1968
2005
|
string,
|
1969
2006
|
...string[]
|
1970
2007
|
];
|
@@ -2149,20 +2186,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2149
2186
|
postOfficeBoxNumber?: string | undefined;
|
2150
2187
|
postalCode?: string | undefined;
|
2151
2188
|
geo?: {
|
2152
|
-
type: [
|
2189
|
+
type: string | [
|
2153
2190
|
string,
|
2154
2191
|
...string[]
|
2155
2192
|
];
|
2156
2193
|
latitude: number;
|
2157
2194
|
longitude: number;
|
2158
2195
|
} | undefined;
|
2159
|
-
type: [
|
2196
|
+
type: string | [
|
2160
2197
|
string,
|
2161
2198
|
...string[]
|
2162
2199
|
];
|
2163
2200
|
} | undefined;
|
2164
2201
|
otherIdentifier?: {
|
2165
|
-
type: [
|
2202
|
+
type: string | [
|
2166
2203
|
string,
|
2167
2204
|
...string[]
|
2168
2205
|
];
|
@@ -2258,20 +2295,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2258
2295
|
postOfficeBoxNumber?: string | undefined;
|
2259
2296
|
postalCode?: string | undefined;
|
2260
2297
|
geo?: {
|
2261
|
-
type: [
|
2298
|
+
type: string | [
|
2262
2299
|
string,
|
2263
2300
|
...string[]
|
2264
2301
|
];
|
2265
2302
|
latitude: number;
|
2266
2303
|
longitude: number;
|
2267
2304
|
} | undefined;
|
2268
|
-
type: [
|
2305
|
+
type: string | [
|
2269
2306
|
string,
|
2270
2307
|
...string[]
|
2271
2308
|
];
|
2272
2309
|
} | undefined;
|
2273
2310
|
otherIdentifier?: {
|
2274
|
-
type: [
|
2311
|
+
type: string | [
|
2275
2312
|
string,
|
2276
2313
|
...string[]
|
2277
2314
|
];
|
@@ -2379,20 +2416,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2379
2416
|
postOfficeBoxNumber?: string | undefined;
|
2380
2417
|
postalCode?: string | undefined;
|
2381
2418
|
geo?: {
|
2382
|
-
type: [
|
2419
|
+
type: string | [
|
2383
2420
|
string,
|
2384
2421
|
...string[]
|
2385
2422
|
];
|
2386
2423
|
latitude: number;
|
2387
2424
|
longitude: number;
|
2388
2425
|
} | undefined;
|
2389
|
-
type: [
|
2426
|
+
type: string | [
|
2390
2427
|
string,
|
2391
2428
|
...string[]
|
2392
2429
|
];
|
2393
2430
|
} | undefined;
|
2394
2431
|
otherIdentifier?: {
|
2395
|
-
type: [
|
2432
|
+
type: string | [
|
2396
2433
|
string,
|
2397
2434
|
...string[]
|
2398
2435
|
];
|
@@ -2488,20 +2525,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2488
2525
|
postOfficeBoxNumber?: string | undefined;
|
2489
2526
|
postalCode?: string | undefined;
|
2490
2527
|
geo?: {
|
2491
|
-
type: [
|
2528
|
+
type: string | [
|
2492
2529
|
string,
|
2493
2530
|
...string[]
|
2494
2531
|
];
|
2495
2532
|
latitude: number;
|
2496
2533
|
longitude: number;
|
2497
2534
|
} | undefined;
|
2498
|
-
type: [
|
2535
|
+
type: string | [
|
2499
2536
|
string,
|
2500
2537
|
...string[]
|
2501
2538
|
];
|
2502
2539
|
} | undefined;
|
2503
2540
|
otherIdentifier?: {
|
2504
|
-
type: [
|
2541
|
+
type: string | [
|
2505
2542
|
string,
|
2506
2543
|
...string[]
|
2507
2544
|
];
|
@@ -2607,20 +2644,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2607
2644
|
postOfficeBoxNumber?: string | undefined;
|
2608
2645
|
postalCode?: string | undefined;
|
2609
2646
|
geo?: {
|
2610
|
-
type: [
|
2647
|
+
type: string | [
|
2611
2648
|
string,
|
2612
2649
|
...string[]
|
2613
2650
|
];
|
2614
2651
|
latitude: number;
|
2615
2652
|
longitude: number;
|
2616
2653
|
} | undefined;
|
2617
|
-
type: [
|
2654
|
+
type: string | [
|
2618
2655
|
string,
|
2619
2656
|
...string[]
|
2620
2657
|
];
|
2621
2658
|
} | undefined;
|
2622
2659
|
otherIdentifier?: {
|
2623
|
-
type: [
|
2660
|
+
type: string | [
|
2624
2661
|
string,
|
2625
2662
|
...string[]
|
2626
2663
|
];
|
@@ -2716,20 +2753,20 @@ declare const UnsignedVPValidator: z.ZodObject<{
|
|
2716
2753
|
postOfficeBoxNumber?: string | undefined;
|
2717
2754
|
postalCode?: string | undefined;
|
2718
2755
|
geo?: {
|
2719
|
-
type: [
|
2756
|
+
type: string | [
|
2720
2757
|
string,
|
2721
2758
|
...string[]
|
2722
2759
|
];
|
2723
2760
|
latitude: number;
|
2724
2761
|
longitude: number;
|
2725
2762
|
} | undefined;
|
2726
|
-
type: [
|
2763
|
+
type: string | [
|
2727
2764
|
string,
|
2728
2765
|
...string[]
|
2729
2766
|
];
|
2730
2767
|
} | undefined;
|
2731
2768
|
otherIdentifier?: {
|
2732
|
-
type: [
|
2769
|
+
type: string | [
|
2733
2770
|
string,
|
2734
2771
|
...string[]
|
2735
2772
|
];
|
@@ -2816,7 +2853,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2816
2853
|
]>>;
|
2817
2854
|
email: z.ZodOptional<z.ZodString>;
|
2818
2855
|
address: z.ZodOptional<z.ZodObject<{
|
2819
|
-
type: z.
|
2856
|
+
type: z.ZodUnion<[
|
2857
|
+
z.ZodString,
|
2858
|
+
z.ZodArray<z.ZodString, "atleastone">
|
2859
|
+
]>;
|
2820
2860
|
addressCountry: z.ZodOptional<z.ZodString>;
|
2821
2861
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
2822
2862
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -2825,18 +2865,21 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2825
2865
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
2826
2866
|
postalCode: z.ZodOptional<z.ZodString>;
|
2827
2867
|
geo: z.ZodOptional<z.ZodObject<{
|
2828
|
-
type: z.
|
2868
|
+
type: z.ZodUnion<[
|
2869
|
+
z.ZodString,
|
2870
|
+
z.ZodArray<z.ZodString, "atleastone">
|
2871
|
+
]>;
|
2829
2872
|
latitude: z.ZodNumber;
|
2830
2873
|
longitude: z.ZodNumber;
|
2831
2874
|
}, "strip", z.ZodTypeAny, {
|
2832
|
-
type: [
|
2875
|
+
type: string | [
|
2833
2876
|
string,
|
2834
2877
|
...string[]
|
2835
2878
|
];
|
2836
2879
|
latitude: number;
|
2837
2880
|
longitude: number;
|
2838
2881
|
}, {
|
2839
|
-
type: [
|
2882
|
+
type: string | [
|
2840
2883
|
string,
|
2841
2884
|
...string[]
|
2842
2885
|
];
|
@@ -2852,14 +2895,14 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2852
2895
|
postOfficeBoxNumber?: string | undefined;
|
2853
2896
|
postalCode?: string | undefined;
|
2854
2897
|
geo?: {
|
2855
|
-
type: [
|
2898
|
+
type: string | [
|
2856
2899
|
string,
|
2857
2900
|
...string[]
|
2858
2901
|
];
|
2859
2902
|
latitude: number;
|
2860
2903
|
longitude: number;
|
2861
2904
|
} | undefined;
|
2862
|
-
type: [
|
2905
|
+
type: string | [
|
2863
2906
|
string,
|
2864
2907
|
...string[]
|
2865
2908
|
];
|
@@ -2872,20 +2915,23 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2872
2915
|
postOfficeBoxNumber?: string | undefined;
|
2873
2916
|
postalCode?: string | undefined;
|
2874
2917
|
geo?: {
|
2875
|
-
type: [
|
2918
|
+
type: string | [
|
2876
2919
|
string,
|
2877
2920
|
...string[]
|
2878
2921
|
];
|
2879
2922
|
latitude: number;
|
2880
2923
|
longitude: number;
|
2881
2924
|
} | undefined;
|
2882
|
-
type: [
|
2925
|
+
type: string | [
|
2883
2926
|
string,
|
2884
2927
|
...string[]
|
2885
2928
|
];
|
2886
2929
|
}>>;
|
2887
2930
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
2888
|
-
type: z.
|
2931
|
+
type: z.ZodUnion<[
|
2932
|
+
z.ZodString,
|
2933
|
+
z.ZodArray<z.ZodString, "atleastone">
|
2934
|
+
]>;
|
2889
2935
|
identifier: z.ZodString;
|
2890
2936
|
identifierType: z.ZodUnion<[
|
2891
2937
|
z.ZodEnum<[
|
@@ -2911,14 +2957,14 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2911
2957
|
z.ZodString
|
2912
2958
|
]>;
|
2913
2959
|
}, "strip", z.ZodTypeAny, {
|
2914
|
-
type: [
|
2960
|
+
type: string | [
|
2915
2961
|
string,
|
2916
2962
|
...string[]
|
2917
2963
|
];
|
2918
2964
|
identifier: string;
|
2919
2965
|
identifierType: string;
|
2920
2966
|
}, {
|
2921
|
-
type: [
|
2967
|
+
type: string | [
|
2922
2968
|
string,
|
2923
2969
|
...string[]
|
2924
2970
|
];
|
@@ -2962,20 +3008,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2962
3008
|
postOfficeBoxNumber?: string | undefined;
|
2963
3009
|
postalCode?: string | undefined;
|
2964
3010
|
geo?: {
|
2965
|
-
type: [
|
3011
|
+
type: string | [
|
2966
3012
|
string,
|
2967
3013
|
...string[]
|
2968
3014
|
];
|
2969
3015
|
latitude: number;
|
2970
3016
|
longitude: number;
|
2971
3017
|
} | undefined;
|
2972
|
-
type: [
|
3018
|
+
type: string | [
|
2973
3019
|
string,
|
2974
3020
|
...string[]
|
2975
3021
|
];
|
2976
3022
|
} | undefined;
|
2977
3023
|
otherIdentifier?: {
|
2978
|
-
type: [
|
3024
|
+
type: string | [
|
2979
3025
|
string,
|
2980
3026
|
...string[]
|
2981
3027
|
];
|
@@ -3019,20 +3065,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3019
3065
|
postOfficeBoxNumber?: string | undefined;
|
3020
3066
|
postalCode?: string | undefined;
|
3021
3067
|
geo?: {
|
3022
|
-
type: [
|
3068
|
+
type: string | [
|
3023
3069
|
string,
|
3024
3070
|
...string[]
|
3025
3071
|
];
|
3026
3072
|
latitude: number;
|
3027
3073
|
longitude: number;
|
3028
3074
|
} | undefined;
|
3029
|
-
type: [
|
3075
|
+
type: string | [
|
3030
3076
|
string,
|
3031
3077
|
...string[]
|
3032
3078
|
];
|
3033
3079
|
} | undefined;
|
3034
3080
|
otherIdentifier?: {
|
3035
|
-
type: [
|
3081
|
+
type: string | [
|
3036
3082
|
string,
|
3037
3083
|
...string[]
|
3038
3084
|
];
|
@@ -3217,20 +3263,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3217
3263
|
postOfficeBoxNumber?: string | undefined;
|
3218
3264
|
postalCode?: string | undefined;
|
3219
3265
|
geo?: {
|
3220
|
-
type: [
|
3266
|
+
type: string | [
|
3221
3267
|
string,
|
3222
3268
|
...string[]
|
3223
3269
|
];
|
3224
3270
|
latitude: number;
|
3225
3271
|
longitude: number;
|
3226
3272
|
} | undefined;
|
3227
|
-
type: [
|
3273
|
+
type: string | [
|
3228
3274
|
string,
|
3229
3275
|
...string[]
|
3230
3276
|
];
|
3231
3277
|
} | undefined;
|
3232
3278
|
otherIdentifier?: {
|
3233
|
-
type: [
|
3279
|
+
type: string | [
|
3234
3280
|
string,
|
3235
3281
|
...string[]
|
3236
3282
|
];
|
@@ -3326,20 +3372,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3326
3372
|
postOfficeBoxNumber?: string | undefined;
|
3327
3373
|
postalCode?: string | undefined;
|
3328
3374
|
geo?: {
|
3329
|
-
type: [
|
3375
|
+
type: string | [
|
3330
3376
|
string,
|
3331
3377
|
...string[]
|
3332
3378
|
];
|
3333
3379
|
latitude: number;
|
3334
3380
|
longitude: number;
|
3335
3381
|
} | undefined;
|
3336
|
-
type: [
|
3382
|
+
type: string | [
|
3337
3383
|
string,
|
3338
3384
|
...string[]
|
3339
3385
|
];
|
3340
3386
|
} | undefined;
|
3341
3387
|
otherIdentifier?: {
|
3342
|
-
type: [
|
3388
|
+
type: string | [
|
3343
3389
|
string,
|
3344
3390
|
...string[]
|
3345
3391
|
];
|
@@ -3419,7 +3465,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3419
3465
|
]>>;
|
3420
3466
|
email: z.ZodOptional<z.ZodString>;
|
3421
3467
|
address: z.ZodOptional<z.ZodObject<{
|
3422
|
-
type: z.
|
3468
|
+
type: z.ZodUnion<[
|
3469
|
+
z.ZodString,
|
3470
|
+
z.ZodArray<z.ZodString, "atleastone">
|
3471
|
+
]>;
|
3423
3472
|
addressCountry: z.ZodOptional<z.ZodString>;
|
3424
3473
|
addressCountryCode: z.ZodOptional<z.ZodString>;
|
3425
3474
|
addressRegion: z.ZodOptional<z.ZodString>;
|
@@ -3428,18 +3477,21 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3428
3477
|
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
3429
3478
|
postalCode: z.ZodOptional<z.ZodString>;
|
3430
3479
|
geo: z.ZodOptional<z.ZodObject<{
|
3431
|
-
type: z.
|
3480
|
+
type: z.ZodUnion<[
|
3481
|
+
z.ZodString,
|
3482
|
+
z.ZodArray<z.ZodString, "atleastone">
|
3483
|
+
]>;
|
3432
3484
|
latitude: z.ZodNumber;
|
3433
3485
|
longitude: z.ZodNumber;
|
3434
3486
|
}, "strip", z.ZodTypeAny, {
|
3435
|
-
type: [
|
3487
|
+
type: string | [
|
3436
3488
|
string,
|
3437
3489
|
...string[]
|
3438
3490
|
];
|
3439
3491
|
latitude: number;
|
3440
3492
|
longitude: number;
|
3441
3493
|
}, {
|
3442
|
-
type: [
|
3494
|
+
type: string | [
|
3443
3495
|
string,
|
3444
3496
|
...string[]
|
3445
3497
|
];
|
@@ -3455,14 +3507,14 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3455
3507
|
postOfficeBoxNumber?: string | undefined;
|
3456
3508
|
postalCode?: string | undefined;
|
3457
3509
|
geo?: {
|
3458
|
-
type: [
|
3510
|
+
type: string | [
|
3459
3511
|
string,
|
3460
3512
|
...string[]
|
3461
3513
|
];
|
3462
3514
|
latitude: number;
|
3463
3515
|
longitude: number;
|
3464
3516
|
} | undefined;
|
3465
|
-
type: [
|
3517
|
+
type: string | [
|
3466
3518
|
string,
|
3467
3519
|
...string[]
|
3468
3520
|
];
|
@@ -3475,20 +3527,23 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3475
3527
|
postOfficeBoxNumber?: string | undefined;
|
3476
3528
|
postalCode?: string | undefined;
|
3477
3529
|
geo?: {
|
3478
|
-
type: [
|
3530
|
+
type: string | [
|
3479
3531
|
string,
|
3480
3532
|
...string[]
|
3481
3533
|
];
|
3482
3534
|
latitude: number;
|
3483
3535
|
longitude: number;
|
3484
3536
|
} | undefined;
|
3485
|
-
type: [
|
3537
|
+
type: string | [
|
3486
3538
|
string,
|
3487
3539
|
...string[]
|
3488
3540
|
];
|
3489
3541
|
}>>;
|
3490
3542
|
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
3491
|
-
type: z.
|
3543
|
+
type: z.ZodUnion<[
|
3544
|
+
z.ZodString,
|
3545
|
+
z.ZodArray<z.ZodString, "atleastone">
|
3546
|
+
]>;
|
3492
3547
|
identifier: z.ZodString;
|
3493
3548
|
identifierType: z.ZodUnion<[
|
3494
3549
|
z.ZodEnum<[
|
@@ -3514,14 +3569,14 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3514
3569
|
z.ZodString
|
3515
3570
|
]>;
|
3516
3571
|
}, "strip", z.ZodTypeAny, {
|
3517
|
-
type: [
|
3572
|
+
type: string | [
|
3518
3573
|
string,
|
3519
3574
|
...string[]
|
3520
3575
|
];
|
3521
3576
|
identifier: string;
|
3522
3577
|
identifierType: string;
|
3523
3578
|
}, {
|
3524
|
-
type: [
|
3579
|
+
type: string | [
|
3525
3580
|
string,
|
3526
3581
|
...string[]
|
3527
3582
|
];
|
@@ -3565,20 +3620,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3565
3620
|
postOfficeBoxNumber?: string | undefined;
|
3566
3621
|
postalCode?: string | undefined;
|
3567
3622
|
geo?: {
|
3568
|
-
type: [
|
3623
|
+
type: string | [
|
3569
3624
|
string,
|
3570
3625
|
...string[]
|
3571
3626
|
];
|
3572
3627
|
latitude: number;
|
3573
3628
|
longitude: number;
|
3574
3629
|
} | undefined;
|
3575
|
-
type: [
|
3630
|
+
type: string | [
|
3576
3631
|
string,
|
3577
3632
|
...string[]
|
3578
3633
|
];
|
3579
3634
|
} | undefined;
|
3580
3635
|
otherIdentifier?: {
|
3581
|
-
type: [
|
3636
|
+
type: string | [
|
3582
3637
|
string,
|
3583
3638
|
...string[]
|
3584
3639
|
];
|
@@ -3622,20 +3677,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3622
3677
|
postOfficeBoxNumber?: string | undefined;
|
3623
3678
|
postalCode?: string | undefined;
|
3624
3679
|
geo?: {
|
3625
|
-
type: [
|
3680
|
+
type: string | [
|
3626
3681
|
string,
|
3627
3682
|
...string[]
|
3628
3683
|
];
|
3629
3684
|
latitude: number;
|
3630
3685
|
longitude: number;
|
3631
3686
|
} | undefined;
|
3632
|
-
type: [
|
3687
|
+
type: string | [
|
3633
3688
|
string,
|
3634
3689
|
...string[]
|
3635
3690
|
];
|
3636
3691
|
} | undefined;
|
3637
3692
|
otherIdentifier?: {
|
3638
|
-
type: [
|
3693
|
+
type: string | [
|
3639
3694
|
string,
|
3640
3695
|
...string[]
|
3641
3696
|
];
|
@@ -3820,20 +3875,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3820
3875
|
postOfficeBoxNumber?: string | undefined;
|
3821
3876
|
postalCode?: string | undefined;
|
3822
3877
|
geo?: {
|
3823
|
-
type: [
|
3878
|
+
type: string | [
|
3824
3879
|
string,
|
3825
3880
|
...string[]
|
3826
3881
|
];
|
3827
3882
|
latitude: number;
|
3828
3883
|
longitude: number;
|
3829
3884
|
} | undefined;
|
3830
|
-
type: [
|
3885
|
+
type: string | [
|
3831
3886
|
string,
|
3832
3887
|
...string[]
|
3833
3888
|
];
|
3834
3889
|
} | undefined;
|
3835
3890
|
otherIdentifier?: {
|
3836
|
-
type: [
|
3891
|
+
type: string | [
|
3837
3892
|
string,
|
3838
3893
|
...string[]
|
3839
3894
|
];
|
@@ -3929,20 +3984,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3929
3984
|
postOfficeBoxNumber?: string | undefined;
|
3930
3985
|
postalCode?: string | undefined;
|
3931
3986
|
geo?: {
|
3932
|
-
type: [
|
3987
|
+
type: string | [
|
3933
3988
|
string,
|
3934
3989
|
...string[]
|
3935
3990
|
];
|
3936
3991
|
latitude: number;
|
3937
3992
|
longitude: number;
|
3938
3993
|
} | undefined;
|
3939
|
-
type: [
|
3994
|
+
type: string | [
|
3940
3995
|
string,
|
3941
3996
|
...string[]
|
3942
3997
|
];
|
3943
3998
|
} | undefined;
|
3944
3999
|
otherIdentifier?: {
|
3945
|
-
type: [
|
4000
|
+
type: string | [
|
3946
4001
|
string,
|
3947
4002
|
...string[]
|
3948
4003
|
];
|
@@ -4134,20 +4189,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4134
4189
|
postOfficeBoxNumber?: string | undefined;
|
4135
4190
|
postalCode?: string | undefined;
|
4136
4191
|
geo?: {
|
4137
|
-
type: [
|
4192
|
+
type: string | [
|
4138
4193
|
string,
|
4139
4194
|
...string[]
|
4140
4195
|
];
|
4141
4196
|
latitude: number;
|
4142
4197
|
longitude: number;
|
4143
4198
|
} | undefined;
|
4144
|
-
type: [
|
4199
|
+
type: string | [
|
4145
4200
|
string,
|
4146
4201
|
...string[]
|
4147
4202
|
];
|
4148
4203
|
} | undefined;
|
4149
4204
|
otherIdentifier?: {
|
4150
|
-
type: [
|
4205
|
+
type: string | [
|
4151
4206
|
string,
|
4152
4207
|
...string[]
|
4153
4208
|
];
|
@@ -4243,20 +4298,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4243
4298
|
postOfficeBoxNumber?: string | undefined;
|
4244
4299
|
postalCode?: string | undefined;
|
4245
4300
|
geo?: {
|
4246
|
-
type: [
|
4301
|
+
type: string | [
|
4247
4302
|
string,
|
4248
4303
|
...string[]
|
4249
4304
|
];
|
4250
4305
|
latitude: number;
|
4251
4306
|
longitude: number;
|
4252
4307
|
} | undefined;
|
4253
|
-
type: [
|
4308
|
+
type: string | [
|
4254
4309
|
string,
|
4255
4310
|
...string[]
|
4256
4311
|
];
|
4257
4312
|
} | undefined;
|
4258
4313
|
otherIdentifier?: {
|
4259
|
-
type: [
|
4314
|
+
type: string | [
|
4260
4315
|
string,
|
4261
4316
|
...string[]
|
4262
4317
|
];
|
@@ -4383,20 +4438,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4383
4438
|
postOfficeBoxNumber?: string | undefined;
|
4384
4439
|
postalCode?: string | undefined;
|
4385
4440
|
geo?: {
|
4386
|
-
type: [
|
4441
|
+
type: string | [
|
4387
4442
|
string,
|
4388
4443
|
...string[]
|
4389
4444
|
];
|
4390
4445
|
latitude: number;
|
4391
4446
|
longitude: number;
|
4392
4447
|
} | undefined;
|
4393
|
-
type: [
|
4448
|
+
type: string | [
|
4394
4449
|
string,
|
4395
4450
|
...string[]
|
4396
4451
|
];
|
4397
4452
|
} | undefined;
|
4398
4453
|
otherIdentifier?: {
|
4399
|
-
type: [
|
4454
|
+
type: string | [
|
4400
4455
|
string,
|
4401
4456
|
...string[]
|
4402
4457
|
];
|
@@ -4492,20 +4547,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4492
4547
|
postOfficeBoxNumber?: string | undefined;
|
4493
4548
|
postalCode?: string | undefined;
|
4494
4549
|
geo?: {
|
4495
|
-
type: [
|
4550
|
+
type: string | [
|
4496
4551
|
string,
|
4497
4552
|
...string[]
|
4498
4553
|
];
|
4499
4554
|
latitude: number;
|
4500
4555
|
longitude: number;
|
4501
4556
|
} | undefined;
|
4502
|
-
type: [
|
4557
|
+
type: string | [
|
4503
4558
|
string,
|
4504
4559
|
...string[]
|
4505
4560
|
];
|
4506
4561
|
} | undefined;
|
4507
4562
|
otherIdentifier?: {
|
4508
|
-
type: [
|
4563
|
+
type: string | [
|
4509
4564
|
string,
|
4510
4565
|
...string[]
|
4511
4566
|
];
|
@@ -4619,8 +4674,20 @@ export declare type KeyPair = {
|
|
4619
4674
|
};
|
4620
4675
|
/** @group DIDKit Plugin */
|
4621
4676
|
export declare type ProofOptions = {
|
4622
|
-
|
4623
|
-
|
4677
|
+
type?: string;
|
4678
|
+
verificationMethod?: string;
|
4679
|
+
proofPurpose?: string;
|
4680
|
+
created?: string;
|
4681
|
+
challenge?: string;
|
4682
|
+
domain?: string;
|
4683
|
+
checks?: ("Proof" | "JWS" | "CredentialStatus")[];
|
4684
|
+
};
|
4685
|
+
/** @group DIDKit Plugin */
|
4686
|
+
export declare type InputMetadata = {
|
4687
|
+
accept?: string;
|
4688
|
+
versionId?: string;
|
4689
|
+
versionTime?: string;
|
4690
|
+
noCache?: boolean;
|
4624
4691
|
};
|
4625
4692
|
/** @group DIDKit Plugin */
|
4626
4693
|
export declare type DidkitPluginMethods = {
|
@@ -4629,11 +4696,11 @@ export declare type DidkitPluginMethods = {
|
|
4629
4696
|
keyToDid: (type: DidMethod, keypair: KeyPair) => string;
|
4630
4697
|
keyToVerificationMethod: (type: string, keypair: KeyPair) => Promise<string>;
|
4631
4698
|
issueCredential: (credential: UnsignedVC, options: ProofOptions, keypair: KeyPair) => Promise<VC>;
|
4632
|
-
verifyCredential: (credential: VC) => Promise<VerificationCheck>;
|
4699
|
+
verifyCredential: (credential: VC, options?: ProofOptions) => Promise<VerificationCheck>;
|
4633
4700
|
issuePresentation: (presentation: UnsignedVP, options: ProofOptions, keypair: KeyPair) => Promise<VP>;
|
4634
|
-
verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
|
4701
|
+
verifyPresentation: (presentation: VP, options?: ProofOptions) => Promise<VerificationCheck>;
|
4635
4702
|
contextLoader: (url: string) => Promise<Record<string, any>>;
|
4636
|
-
resolveDid: (did: string) => Promise<Record<string, any>>;
|
4703
|
+
resolveDid: (did: string, inputMetadata?: InputMetadata) => Promise<Record<string, any>>;
|
4637
4704
|
};
|
4638
4705
|
/** @group DidKey Plugin */
|
4639
4706
|
export declare type Algorithm = "ed25519" | "secp256k1";
|
@@ -4748,26 +4815,61 @@ export declare const CredentialsListValidator: z.ZodObject<{
|
|
4748
4815
|
}>;
|
4749
4816
|
/** @group IDXPlugin */
|
4750
4817
|
export declare type CredentialsList = z.infer<typeof CredentialsListValidator>;
|
4818
|
+
export declare type Last<T extends any[]> = T extends [
|
4819
|
+
...any[],
|
4820
|
+
infer R
|
4821
|
+
] ? R : never;
|
4822
|
+
export declare type RemoveLast<T extends any[]> = T extends [
|
4823
|
+
...infer R,
|
4824
|
+
any
|
4825
|
+
] ? R : [
|
4826
|
+
];
|
4827
|
+
/** @group Utility Types */
|
4828
|
+
export declare type MergeObjects<Objects extends Record<string, any>[]> = undefined extends Objects[2] ? Omit<Objects[0], keyof Objects[1]> & Objects[1] : Omit<MergeObjects<RemoveLast<Objects>>, keyof Last<Objects>> & Last<Objects>;
|
4829
|
+
/** @group Universal Wallets */
|
4830
|
+
export declare type Plugin<Name extends string, PublicMethods extends Record<string, (...args: any[]) => any> = Record<never, never>, DependentMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
|
4831
|
+
name?: Name;
|
4832
|
+
pluginMethods: {
|
4833
|
+
[Key in keyof PublicMethods]: <T extends Wallet<any, PublicMethods & DependentMethods>>(wallet: T, ...args: Parameters<PublicMethods[Key]>) => ReturnType<PublicMethods[Key]>;
|
4834
|
+
};
|
4835
|
+
};
|
4836
|
+
/** @group Universal Wallets */
|
4837
|
+
export declare type PublicFieldsObj<PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
|
4838
|
+
pluginMethods: PluginMethods;
|
4839
|
+
};
|
4840
|
+
/** @group Universal Wallets */
|
4841
|
+
export declare type Wallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = PublicFieldsObj<PluginMethods> & {
|
4842
|
+
contents: any[];
|
4843
|
+
plugins: Plugin<PluginNames, Record<string, (...args: any[]) => any>>[];
|
4844
|
+
add: (content: any) => Promise<Wallet<PluginNames, PluginMethods>>;
|
4845
|
+
remove: (contentId: string) => Promise<Wallet<PluginNames, PluginMethods>>;
|
4846
|
+
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 : MergeObjects<[
|
4847
|
+
PluginMethods,
|
4848
|
+
Methods
|
4849
|
+
]>>>;
|
4850
|
+
};
|
4751
4851
|
/** @group VC Plugin */
|
4752
4852
|
export declare type VCPluginDependentMethods = {
|
4753
4853
|
getSubjectDid: (type: "key") => string;
|
4754
4854
|
getSubjectKeypair: () => KeyPair;
|
4755
4855
|
keyToVerificationMethod: (type: string, keypair: KeyPair) => Promise<string>;
|
4756
4856
|
issueCredential: (credential: UnsignedVC, options: ProofOptions, keypair: KeyPair) => Promise<VC>;
|
4757
|
-
verifyCredential: (credential: VC) => Promise<VerificationCheck>;
|
4857
|
+
verifyCredential: (credential: VC, options?: ProofOptions) => Promise<VerificationCheck>;
|
4758
4858
|
issuePresentation: (presentation: UnsignedVP, options: ProofOptions, keypair: KeyPair) => Promise<VP>;
|
4759
|
-
verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
|
4859
|
+
verifyPresentation: (presentation: VP, options?: ProofOptions) => Promise<VerificationCheck>;
|
4760
4860
|
};
|
4761
4861
|
/** @group VC Plugin */
|
4762
|
-
export declare type VCPluginMethods =
|
4763
|
-
issueCredential: (credential: UnsignedVC) => Promise<VC>;
|
4764
|
-
verifyCredential: (credential: VC) => Promise<VerificationCheck>;
|
4765
|
-
issuePresentation: (credential: UnsignedVP) => Promise<VP>;
|
4766
|
-
verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
|
4862
|
+
export declare type VCPluginMethods = {
|
4863
|
+
issueCredential: (credential: UnsignedVC, signingOptions?: Partial<ProofOptions>) => Promise<VC>;
|
4864
|
+
verifyCredential: (credential: VC, options?: Partial<ProofOptions>) => Promise<VerificationCheck>;
|
4865
|
+
issuePresentation: (credential: UnsignedVP, signingOptions?: Partial<ProofOptions>) => Promise<VP>;
|
4866
|
+
verifyPresentation: (presentation: VP, options?: Partial<ProofOptions>) => Promise<VerificationCheck>;
|
4767
4867
|
getTestVc: (subject?: string) => UnsignedVC;
|
4768
4868
|
getTestVp: (credential?: VC) => Promise<UnsignedVP>;
|
4769
4869
|
};
|
4770
4870
|
/** @group VC Plugin */
|
4871
|
+
export declare type VCImplicitWallet = Wallet<string, VCPluginMethods & VCPluginDependentMethods>;
|
4872
|
+
/** @group VC Plugin */
|
4771
4873
|
export declare type VerifyExtension = {
|
4772
4874
|
verifyCredential: (credential: VC) => Promise<VerificationCheck>;
|
4773
4875
|
};
|
@@ -4780,7 +4882,93 @@ export declare type VpqrPluginMethods = {
|
|
4780
4882
|
export declare type VpqrPluginDependentMethods = {
|
4781
4883
|
contextLoader: (url: string) => Promise<Record<string, any>>;
|
4782
4884
|
};
|
4783
|
-
|
4885
|
+
/** @group CHAPI Plugin */
|
4886
|
+
export declare type WebCredential = {
|
4887
|
+
new (dataType: string, data: VP, options?: {
|
4888
|
+
recommendedHandlerOrigins: string[];
|
4889
|
+
}): WebCredential;
|
4890
|
+
type: string;
|
4891
|
+
dataType: string;
|
4892
|
+
data: VP;
|
4893
|
+
options: {
|
4894
|
+
recommendedHandlerOrigins: string[];
|
4895
|
+
};
|
4896
|
+
};
|
4897
|
+
/** @group CHAPI Plugin */
|
4898
|
+
export declare type CredentialRequestEvent = {
|
4899
|
+
new (args: {
|
4900
|
+
credentialHandler: any;
|
4901
|
+
credentialRequestOrigin: string;
|
4902
|
+
credentialRequestOptions: any;
|
4903
|
+
hintKey: string;
|
4904
|
+
}): CredentialRequestEvent;
|
4905
|
+
type: string;
|
4906
|
+
_credentialHandler: any;
|
4907
|
+
credentialRequestOrigin: string;
|
4908
|
+
credentialRequestOptions: any;
|
4909
|
+
hintKey: string;
|
4910
|
+
openWindow: (url: string) => Promise<any>;
|
4911
|
+
respondWith: (handlerResponse: Promise<null | {
|
4912
|
+
dataType: string;
|
4913
|
+
data: any;
|
4914
|
+
}>) => void;
|
4915
|
+
};
|
4916
|
+
/** @group CHAPI Plugin */
|
4917
|
+
export declare type CredentialStoreEvent = {
|
4918
|
+
new (args: {
|
4919
|
+
credentialHandler: any;
|
4920
|
+
credentialRequestOrigin: string;
|
4921
|
+
credential: WebCredential;
|
4922
|
+
hintKey: string;
|
4923
|
+
}): CredentialStoreEvent;
|
4924
|
+
type: string;
|
4925
|
+
_credentialHandler: any;
|
4926
|
+
credentialRequestOrigin: string;
|
4927
|
+
credential: WebCredential;
|
4928
|
+
hintKey: string;
|
4929
|
+
openWindow: (url: string) => Promise<any>;
|
4930
|
+
respondWith: (handlerResponse: Promise<null | {
|
4931
|
+
dataType: string;
|
4932
|
+
data: any;
|
4933
|
+
}>) => void;
|
4934
|
+
};
|
4935
|
+
/** @group CHAPI Plugin */
|
4936
|
+
export declare type HandlerResponse = {
|
4937
|
+
type: "redirect";
|
4938
|
+
url: string;
|
4939
|
+
} | {
|
4940
|
+
type: "response";
|
4941
|
+
dataType: string;
|
4942
|
+
data: any;
|
4943
|
+
};
|
4944
|
+
/** @group CHAPI Plugin */
|
4945
|
+
export declare type CHAPIPluginDependentMethods = {
|
4946
|
+
issueCredential: (credential: UnsignedVC, signingOptions?: Partial<ProofOptions>) => Promise<VC>;
|
4947
|
+
issuePresentation: (credential: UnsignedVP, signingOptions?: Partial<ProofOptions>) => Promise<VP>;
|
4948
|
+
verifyPresentation: (presentation: VP, options?: Partial<ProofOptions>) => Promise<VerificationCheck>;
|
4949
|
+
getTestVp: (credential?: VC) => Promise<UnsignedVP>;
|
4950
|
+
};
|
4951
|
+
/** @group CHAPI Plugin */
|
4952
|
+
export declare type CHAPIPluginMethods = {
|
4953
|
+
installChapiHandler: () => Promise<void>;
|
4954
|
+
activateChapiHandler: (args: {
|
4955
|
+
mediatorOrigin?: string;
|
4956
|
+
get?: (event: CredentialRequestEvent) => Promise<HandlerResponse>;
|
4957
|
+
store?: (event: CredentialStoreEvent) => Promise<HandlerResponse>;
|
4958
|
+
}) => Promise<void>;
|
4959
|
+
receiveChapiEvent: () => Promise<CredentialRequestEvent | CredentialStoreEvent>;
|
4960
|
+
storeCredentialViaChapiDidAuth: (credential: UnsignedVC) => Promise<{
|
4961
|
+
success: true;
|
4962
|
+
} | {
|
4963
|
+
success: false;
|
4964
|
+
reason: "did not auth" | "auth failed verification" | "did not store";
|
4965
|
+
}>;
|
4966
|
+
storePresentationViaChapi: (presentation: VP) => Promise<Credential | undefined>;
|
4967
|
+
};
|
4968
|
+
/**
|
4969
|
+
* @group Plugins
|
4970
|
+
*/
|
4971
|
+
export declare const getCHAPIPlugin: () => Promise<Plugin<"CHAPI", CHAPIPluginMethods, CHAPIPluginDependentMethods>>;
|
4784
4972
|
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>> = {
|
4785
4973
|
args: undefined extends Args ? Partial<Pick<LearnCardConfig, Config>> : Args & Partial<Pick<LearnCardConfig, Config>>;
|
4786
4974
|
returnValue: ReturnValue;
|
@@ -4789,24 +4977,36 @@ export declare type GenericInitFunction<InitFunctions extends InitFunction<any,
|
|
4789
4977
|
args: InitFunctions[number]["args"];
|
4790
4978
|
returnValue: Promise<InitFunctions[number]["returnValue"]>;
|
4791
4979
|
};
|
4792
|
-
|
4793
|
-
|
4794
|
-
|
4795
|
-
|
4796
|
-
|
4980
|
+
export declare type DiscriminatedUnionize<T extends object = {}, K extends string = "type"> = {
|
4981
|
+
[Key in keyof T]: {
|
4982
|
+
[Key2 in K]: Key;
|
4983
|
+
} & T[Key];
|
4984
|
+
}[keyof T];
|
4985
|
+
/** @group VC Templates Plugin */
|
4986
|
+
export declare type VcTemplates = {
|
4987
|
+
basic: {
|
4988
|
+
did?: string;
|
4989
|
+
subject?: string;
|
4990
|
+
issuanceDate?: string;
|
4991
|
+
};
|
4992
|
+
achievement: {
|
4993
|
+
did?: string;
|
4994
|
+
subject?: string;
|
4995
|
+
name?: string;
|
4996
|
+
achievementName?: string;
|
4997
|
+
description?: string;
|
4998
|
+
criteriaNarrative?: string;
|
4999
|
+
issuanceDate?: string;
|
4797
5000
|
};
|
4798
5001
|
};
|
4799
|
-
/** @group
|
4800
|
-
export declare type
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4805
|
-
|
4806
|
-
|
4807
|
-
add: (content: any) => Promise<Wallet<PluginNames, PluginMethods>>;
|
4808
|
-
remove: (contentId: string) => Promise<Wallet<PluginNames, PluginMethods>>;
|
4809
|
-
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>>;
|
5002
|
+
/** @group VC Templates Plugin */
|
5003
|
+
export declare type NewCredentialFunction = (args?: DiscriminatedUnionize<VcTemplates>) => UnsignedVC;
|
5004
|
+
/** @group VC Templates Plugin */
|
5005
|
+
export declare type VCTemplatePluginMethods = {
|
5006
|
+
newCredential: NewCredentialFunction;
|
5007
|
+
newPresentation: (credential: VC, args?: {
|
5008
|
+
did?: string;
|
5009
|
+
}) => Promise<UnsignedVP>;
|
4810
5010
|
};
|
4811
5011
|
/**
|
4812
5012
|
* Wallet holder's did
|
@@ -4826,12 +5026,26 @@ export declare type Keypair = (type?: Algorithm) => {
|
|
4826
5026
|
y?: string;
|
4827
5027
|
d: string;
|
4828
5028
|
};
|
5029
|
+
/**
|
5030
|
+
* Generates a new Unsigned VC from a template
|
5031
|
+
*
|
5032
|
+
* @group LearnCard Methods
|
5033
|
+
*/
|
5034
|
+
export declare type NewCredential = NewCredentialFunction;
|
5035
|
+
/**
|
5036
|
+
* Wraps a VC in a simple Presentation
|
5037
|
+
*
|
5038
|
+
* @group LearnCard Methods
|
5039
|
+
*/
|
5040
|
+
export declare type NewPresentation = (credential: VC, args?: {
|
5041
|
+
did?: string;
|
5042
|
+
}) => Promise<UnsignedVP>;
|
4829
5043
|
/**
|
4830
5044
|
* Signs an unsigned Verifiable Credential, returning the signed VC
|
4831
5045
|
*
|
4832
5046
|
* @group LearnCard Methods
|
4833
5047
|
*/
|
4834
|
-
export declare type IssueCredential = (credential: UnsignedVC) => Promise<VC>;
|
5048
|
+
export declare type IssueCredential = (credential: UnsignedVC, signingOptions?: Partial<ProofOptions>) => Promise<VC>;
|
4835
5049
|
/**
|
4836
5050
|
* Verifies a signed Verifiable Credential
|
4837
5051
|
*
|
@@ -4839,13 +5053,13 @@ export declare type IssueCredential = (credential: UnsignedVC) => Promise<VC>;
|
|
4839
5053
|
*
|
4840
5054
|
* @group LearnCard Methods
|
4841
5055
|
*/
|
4842
|
-
export declare type VerifyCredential = (credential: VC) => Promise<VerificationItem[]>;
|
5056
|
+
export declare type VerifyCredential = (credential: VC, options?: Partial<ProofOptions>) => Promise<VerificationItem[]>;
|
4843
5057
|
/**
|
4844
5058
|
* Signs an unsigned Verifiable Presentation, returning the signed VP
|
4845
5059
|
*
|
4846
5060
|
* @group LearnCard Methods
|
4847
5061
|
*/
|
4848
|
-
export declare type IssuePresentation = (presentation: UnsignedVP) => Promise<VP>;
|
5062
|
+
export declare type IssuePresentation = (presentation: UnsignedVP, signingOptions?: Partial<ProofOptions>) => Promise<VP>;
|
4849
5063
|
/**
|
4850
5064
|
* Verifies a signed Verifiable Presentation
|
4851
5065
|
*
|
@@ -4853,7 +5067,7 @@ export declare type IssuePresentation = (presentation: UnsignedVP) => Promise<VP
|
|
4853
5067
|
*
|
4854
5068
|
* @group LearnCard Methods
|
4855
5069
|
*/
|
4856
|
-
export declare type VerifyPresentation = (presentation: VP) => Promise<VerificationCheck>;
|
5070
|
+
export declare type VerifyPresentation = (presentation: VP, options?: Partial<ProofOptions>) => Promise<VerificationCheck>;
|
4857
5071
|
/**
|
4858
5072
|
* Returns the credential marked with `title` from IDX
|
4859
5073
|
*
|
@@ -4907,7 +5121,7 @@ export declare type RemoveCredential = (title: string) => Promise<void>;
|
|
4907
5121
|
*
|
4908
5122
|
* @group LearnCard Methods
|
4909
5123
|
*/
|
4910
|
-
export declare type ResolveDid = (did: string) => Promise<Record<string, any>>;
|
5124
|
+
export declare type ResolveDid = (did: string, inputMetadata?: InputMetadata) => Promise<Record<string, any>>;
|
4911
5125
|
/**
|
4912
5126
|
* Resolves a stream ID, returning its contents
|
4913
5127
|
*
|
@@ -4991,12 +5205,53 @@ export declare type VpFromQrCode = (text: string) => Promise<VP>;
|
|
4991
5205
|
* @group LearnCard Methods
|
4992
5206
|
*/
|
4993
5207
|
export declare type VpToQrCode = (vp: VP) => Promise<string>;
|
5208
|
+
/**
|
5209
|
+
* Sets up CHAPI
|
5210
|
+
*
|
5211
|
+
* @group LearnCard Methods
|
5212
|
+
*/
|
5213
|
+
export declare type InstallChapiHandler = () => Promise<void>;
|
5214
|
+
/**
|
5215
|
+
* Activates CHAPI
|
5216
|
+
*
|
5217
|
+
* @group LearnCard Methods
|
5218
|
+
*/
|
5219
|
+
export declare type ActivateChapiHandler = (args: {
|
5220
|
+
mediatorOrigin?: string;
|
5221
|
+
get?: (event: CredentialRequestEvent) => Promise<HandlerResponse>;
|
5222
|
+
store?: (event: CredentialStoreEvent) => Promise<HandlerResponse>;
|
5223
|
+
}) => Promise<void>;
|
5224
|
+
/**
|
5225
|
+
* Receives a CHAPI Event
|
5226
|
+
*
|
5227
|
+
* @group LearnCard Methods
|
5228
|
+
*/
|
5229
|
+
export declare type ReceiveChapiEvent = () => Promise<CredentialRequestEvent | CredentialStoreEvent>;
|
5230
|
+
/**
|
5231
|
+
* Stores a VP via CHAPI
|
5232
|
+
*
|
5233
|
+
* @group LearnCard Methods
|
5234
|
+
*/
|
5235
|
+
export declare type StorePresentationViaChapi = (presentation: VP) => Promise<Credential | undefined>;
|
5236
|
+
/**
|
5237
|
+
* Stores a Credential via CHAPI using DIDAuth
|
5238
|
+
*
|
5239
|
+
* @group LearnCard Methods
|
5240
|
+
*/
|
5241
|
+
export declare type StoreCredentialViaChapiDidAuth = (credential: UnsignedVC) => Promise<{
|
5242
|
+
success: true;
|
5243
|
+
} | {
|
5244
|
+
success: false;
|
5245
|
+
reason: "did not auth" | "auth failed verification" | "did not store";
|
5246
|
+
}>;
|
4994
5247
|
/**
|
4995
5248
|
* @group LearnCard Methods
|
4996
5249
|
*/
|
4997
5250
|
export declare type AllLearnCardMethods = {
|
4998
5251
|
did: Did;
|
4999
5252
|
keypair: Keypair;
|
5253
|
+
newCredential: NewCredential;
|
5254
|
+
newPresentation: NewPresentation;
|
5000
5255
|
issueCredential: IssueCredential;
|
5001
5256
|
verifyCredential: VerifyCredential;
|
5002
5257
|
issuePresentation: IssuePresentation;
|
@@ -5020,9 +5275,22 @@ export declare type AllLearnCardMethods = {
|
|
5020
5275
|
addInfuraProjectId: AddInfuraProjectId;
|
5021
5276
|
vpFromQrCode: VpFromQrCode;
|
5022
5277
|
vpToQrCode: VpToQrCode;
|
5278
|
+
installChapiHandler: InstallChapiHandler;
|
5279
|
+
activateChapiHandler: ActivateChapiHandler;
|
5280
|
+
receiveChapiEvent: ReceiveChapiEvent;
|
5281
|
+
storePresentationViaChapi: StorePresentationViaChapi;
|
5282
|
+
storeCredentialViaChapiDidAuth: StoreCredentialViaChapiDidAuth;
|
5023
5283
|
};
|
5024
5284
|
/** @group Universal Wallets */
|
5025
|
-
export declare type LearnCardRawWallet = Wallet<"DIDKit" | "DID Key" | "VC" | "IDX" | "Expiration" | "Ethereum" | "Vpqr",
|
5285
|
+
export declare type LearnCardRawWallet = Wallet<"DIDKit" | "DID Key" | "VC" | "VC Templates" | "IDX" | "Expiration" | "Ethereum" | "Vpqr" | "CHAPI", MergeObjects<[
|
5286
|
+
DidKeyPluginMethods<DidMethod>,
|
5287
|
+
VCPluginMethods,
|
5288
|
+
VCTemplatePluginMethods,
|
5289
|
+
IDXPluginMethods,
|
5290
|
+
EthereumPluginMethods,
|
5291
|
+
VpqrPluginMethods,
|
5292
|
+
CHAPIPluginMethods
|
5293
|
+
]>>;
|
5026
5294
|
/**
|
5027
5295
|
* @group LearnCard
|
5028
5296
|
*/
|
@@ -5033,7 +5301,12 @@ export declare type LearnCard<Methods extends keyof AllLearnCardMethods = keyof
|
|
5033
5301
|
/**
|
5034
5302
|
* @group LearnCard
|
5035
5303
|
*/
|
5036
|
-
export declare type EmptyLearnCard = LearnCard<"verifyCredential" | "verifyPresentation" | "resolveDid", Wallet<"DIDKit" | "Expiration"
|
5304
|
+
export declare type EmptyLearnCard = LearnCard<"newCredential" | "newPresentation" | "verifyCredential" | "verifyPresentation" | "resolveDid" | "installChapiHandler" | "activateChapiHandler" | "receiveChapiEvent" | "storePresentationViaChapi" | "storeCredentialViaChapiDidAuth", Wallet<"DIDKit" | "Expiration" | "VC Templates" | "CHAPI", MergeObjects<[
|
5305
|
+
DidkitPluginMethods,
|
5306
|
+
VerifyExtension,
|
5307
|
+
VCTemplatePluginMethods,
|
5308
|
+
CHAPIPluginMethods
|
5309
|
+
]>>>;
|
5037
5310
|
/** @group LearnCard */
|
5038
5311
|
export declare type LearnCardConfig = {
|
5039
5312
|
ceramicIdx: CeramicIDXArgs;
|
@@ -5089,11 +5362,11 @@ export declare const getDidKitPlugin: (input?: InitInput | Promise<InitInput>) =
|
|
5089
5362
|
*
|
5090
5363
|
* @group Plugins
|
5091
5364
|
*/
|
5092
|
-
export declare const getDidKeyPlugin: <DidMethod extends string>(wallet: Wallet<string, DependentMethods<DidMethod>>, key: string) => Promise<Plugin<"DID Key", DidKeyPluginMethods<DidMethod>>>;
|
5365
|
+
export declare const getDidKeyPlugin: <DidMethod extends string>(wallet: Wallet<string, DependentMethods<DidMethod>>, key: string) => Promise<Plugin<"DID Key", DidKeyPluginMethods<DidMethod>, Record<never, never>>>;
|
5093
5366
|
/**
|
5094
5367
|
* @group Plugins
|
5095
5368
|
*/
|
5096
|
-
export declare const getVCPlugin: (wallet: Wallet<string, VCPluginDependentMethods>) =>
|
5369
|
+
export declare const getVCPlugin: (wallet: Wallet<string, VCPluginDependentMethods>) => Plugin<"VC", VCPluginMethods, VCPluginDependentMethods>;
|
5097
5370
|
/**
|
5098
5371
|
* @group Plugins
|
5099
5372
|
*/
|