@learncard/core 6.0.0 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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.ZodArray<z.ZodString, "atleastone">;
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
  ];
@@ -4789,6 +4843,11 @@ export declare type GenericInitFunction<InitFunctions extends InitFunction<any,
4789
4843
  args: InitFunctions[number]["args"];
4790
4844
  returnValue: Promise<InitFunctions[number]["returnValue"]>;
4791
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];
4792
4851
  /** @group Universal Wallets */
4793
4852
  export declare type Plugin<Name extends string, PublicMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
4794
4853
  name?: Name;
@@ -4808,6 +4867,33 @@ export declare type Wallet<PluginNames extends string = "", PluginMethods extend
4808
4867
  remove: (contentId: string) => Promise<Wallet<PluginNames, PluginMethods>>;
4809
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>>;
4810
4869
  };
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;
4885
+ };
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
+ };
4811
4897
  /**
4812
4898
  * Wallet holder's did
4813
4899
  *
@@ -4826,6 +4912,20 @@ export declare type Keypair = (type?: Algorithm) => {
4826
4912
  y?: string;
4827
4913
  d: string;
4828
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>;
4829
4929
  /**
4830
4930
  * Signs an unsigned Verifiable Credential, returning the signed VC
4831
4931
  *
@@ -4997,6 +5097,8 @@ export declare type VpToQrCode = (vp: VP) => Promise<string>;
4997
5097
  export declare type AllLearnCardMethods = {
4998
5098
  did: Did;
4999
5099
  keypair: Keypair;
5100
+ newCredential: NewCredential;
5101
+ newPresentation: NewPresentation;
5000
5102
  issueCredential: IssueCredential;
5001
5103
  verifyCredential: VerifyCredential;
5002
5104
  issuePresentation: IssuePresentation;
@@ -5022,7 +5124,7 @@ export declare type AllLearnCardMethods = {
5022
5124
  vpToQrCode: VpToQrCode;
5023
5125
  };
5024
5126
  /** @group Universal Wallets */
5025
- export declare type LearnCardRawWallet = Wallet<"DIDKit" | "DID Key" | "VC" | "IDX" | "Expiration" | "Ethereum" | "Vpqr", DidKeyPluginMethods<DidMethod> & VCPluginMethods & IDXPluginMethods & EthereumPluginMethods & VpqrPluginMethods>;
5127
+ export declare type LearnCardRawWallet = Wallet<"DIDKit" | "DID Key" | "VC" | "VC Templates" | "IDX" | "Expiration" | "Ethereum" | "Vpqr", DidKeyPluginMethods<DidMethod> & VCPluginMethods & VCTemplatePluginMethods & IDXPluginMethods & EthereumPluginMethods & VpqrPluginMethods>;
5026
5128
  /**
5027
5129
  * @group LearnCard
5028
5130
  */
@@ -5033,7 +5135,7 @@ export declare type LearnCard<Methods extends keyof AllLearnCardMethods = keyof
5033
5135
  /**
5034
5136
  * @group LearnCard
5035
5137
  */
5036
- export declare type EmptyLearnCard = LearnCard<"verifyCredential" | "verifyPresentation" | "resolveDid", Wallet<"DIDKit" | "Expiration", DidkitPluginMethods & VerifyExtension>>;
5138
+ export declare type EmptyLearnCard = LearnCard<"newCredential" | "newPresentation" | "verifyCredential" | "verifyPresentation" | "resolveDid", Wallet<"DIDKit" | "Expiration" | "VC Templates", DidkitPluginMethods & VerifyExtension & VCTemplatePluginMethods>>;
5037
5139
  /** @group LearnCard */
5038
5140
  export declare type LearnCardConfig = {
5039
5141
  ceramicIdx: CeramicIDXArgs;
@@ -5093,7 +5195,7 @@ export declare const getDidKeyPlugin: <DidMethod extends string>(wallet: Wallet<
5093
5195
  /**
5094
5196
  * @group Plugins
5095
5197
  */
5096
- export declare const getVCPlugin: (wallet: Wallet<string, VCPluginDependentMethods>) => Promise<Plugin<"VC", VCPluginMethods>>;
5198
+ export declare const getVCPlugin: (wallet: Wallet<string, VCPluginDependentMethods>) => Plugin<"VC", VCPluginMethods>;
5097
5199
  /**
5098
5200
  * @group Plugins
5099
5201
  */