@learncard/core 1.1.5 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/core.d.ts CHANGED
@@ -1108,6 +1108,1677 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
1108
1108
  }[];
1109
1109
  }>;
1110
1110
  export declare type VC = z.infer<typeof VCValidator>;
1111
+ declare const UnsignedVPValidator: z.ZodObject<{
1112
+ "@context": z.ZodArray<z.ZodString, "many">;
1113
+ id: z.ZodOptional<z.ZodString>;
1114
+ type: z.ZodArray<z.ZodString, "atleastone">;
1115
+ verifiableCredential: z.ZodUnion<[
1116
+ z.ZodObject<z.extendShape<{
1117
+ "@context": z.ZodArray<z.ZodString, "many">;
1118
+ id: z.ZodOptional<z.ZodString>;
1119
+ type: z.ZodArray<z.ZodString, "atleastone">;
1120
+ issuer: z.ZodUnion<[
1121
+ z.ZodString,
1122
+ z.ZodObject<{
1123
+ id: z.ZodOptional<z.ZodString>;
1124
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1125
+ name: z.ZodOptional<z.ZodString>;
1126
+ url: z.ZodOptional<z.ZodString>;
1127
+ phone: z.ZodOptional<z.ZodString>;
1128
+ description: z.ZodOptional<z.ZodString>;
1129
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1130
+ image: z.ZodOptional<z.ZodUnion<[
1131
+ z.ZodString,
1132
+ z.ZodObject<{
1133
+ id: z.ZodString;
1134
+ type: z.ZodString;
1135
+ caption: z.ZodOptional<z.ZodString>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ caption?: string | undefined;
1138
+ type: string;
1139
+ id: string;
1140
+ }, {
1141
+ caption?: string | undefined;
1142
+ type: string;
1143
+ id: string;
1144
+ }>
1145
+ ]>>;
1146
+ email: z.ZodOptional<z.ZodString>;
1147
+ address: z.ZodOptional<z.ZodObject<{
1148
+ type: z.ZodArray<z.ZodString, "atleastone">;
1149
+ addressCountry: z.ZodOptional<z.ZodString>;
1150
+ addressCountryCode: z.ZodOptional<z.ZodString>;
1151
+ addressRegion: z.ZodOptional<z.ZodString>;
1152
+ addressLocality: z.ZodOptional<z.ZodString>;
1153
+ streetAddress: z.ZodOptional<z.ZodString>;
1154
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1155
+ postalCode: z.ZodOptional<z.ZodString>;
1156
+ geo: z.ZodOptional<z.ZodObject<{
1157
+ type: z.ZodArray<z.ZodString, "atleastone">;
1158
+ latitude: z.ZodNumber;
1159
+ longitude: z.ZodNumber;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ type: [
1162
+ string,
1163
+ ...string[]
1164
+ ];
1165
+ latitude: number;
1166
+ longitude: number;
1167
+ }, {
1168
+ type: [
1169
+ string,
1170
+ ...string[]
1171
+ ];
1172
+ latitude: number;
1173
+ longitude: number;
1174
+ }>>;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ addressCountry?: string | undefined;
1177
+ addressCountryCode?: string | undefined;
1178
+ addressRegion?: string | undefined;
1179
+ addressLocality?: string | undefined;
1180
+ streetAddress?: string | undefined;
1181
+ postOfficeBoxNumber?: string | undefined;
1182
+ postalCode?: string | undefined;
1183
+ geo?: {
1184
+ type: [
1185
+ string,
1186
+ ...string[]
1187
+ ];
1188
+ latitude: number;
1189
+ longitude: number;
1190
+ } | undefined;
1191
+ type: [
1192
+ string,
1193
+ ...string[]
1194
+ ];
1195
+ }, {
1196
+ addressCountry?: string | undefined;
1197
+ addressCountryCode?: string | undefined;
1198
+ addressRegion?: string | undefined;
1199
+ addressLocality?: string | undefined;
1200
+ streetAddress?: string | undefined;
1201
+ postOfficeBoxNumber?: string | undefined;
1202
+ postalCode?: string | undefined;
1203
+ geo?: {
1204
+ type: [
1205
+ string,
1206
+ ...string[]
1207
+ ];
1208
+ latitude: number;
1209
+ longitude: number;
1210
+ } | undefined;
1211
+ type: [
1212
+ string,
1213
+ ...string[]
1214
+ ];
1215
+ }>>;
1216
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1217
+ type: z.ZodArray<z.ZodString, "atleastone">;
1218
+ identifier: z.ZodString;
1219
+ identifierType: z.ZodUnion<[
1220
+ z.ZodEnum<[
1221
+ "sourcedId",
1222
+ "systemId",
1223
+ "productId",
1224
+ "userName",
1225
+ "accountId",
1226
+ "emailAddress",
1227
+ "nationalIdentityNumber",
1228
+ "isbn",
1229
+ "issn",
1230
+ "lisSourcedId",
1231
+ "oneRosterSourcedId",
1232
+ "sisSourcedId",
1233
+ "ltiContextId",
1234
+ "ltiDeploymentId",
1235
+ "ltiToolId",
1236
+ "ltiPlatformId",
1237
+ "ltiUserId",
1238
+ "identifier"
1239
+ ]>,
1240
+ z.ZodString
1241
+ ]>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ type: [
1244
+ string,
1245
+ ...string[]
1246
+ ];
1247
+ identifier: string;
1248
+ identifierType: string;
1249
+ }, {
1250
+ type: [
1251
+ string,
1252
+ ...string[]
1253
+ ];
1254
+ identifier: string;
1255
+ identifierType: string;
1256
+ }>, "many">>;
1257
+ official: z.ZodOptional<z.ZodString>;
1258
+ parentOrg: z.ZodOptional<z.ZodAny>;
1259
+ familyName: z.ZodOptional<z.ZodString>;
1260
+ givenName: z.ZodOptional<z.ZodString>;
1261
+ additionalName: z.ZodOptional<z.ZodString>;
1262
+ patronymicName: z.ZodOptional<z.ZodString>;
1263
+ honorificPrefix: z.ZodOptional<z.ZodString>;
1264
+ honorificSuffix: z.ZodOptional<z.ZodString>;
1265
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
1266
+ dateOfBirth: z.ZodOptional<z.ZodString>;
1267
+ }, "strip", z.ZodAny, {
1268
+ [x: string]: any;
1269
+ type?: [
1270
+ string,
1271
+ ...string[]
1272
+ ] | undefined;
1273
+ id?: string | undefined;
1274
+ name?: string | undefined;
1275
+ url?: string | undefined;
1276
+ phone?: string | undefined;
1277
+ description?: string | undefined;
1278
+ endorsement?: any[] | undefined;
1279
+ image?: string | {
1280
+ caption?: string | undefined;
1281
+ type: string;
1282
+ id: string;
1283
+ } | undefined;
1284
+ email?: string | undefined;
1285
+ address?: {
1286
+ addressCountry?: string | undefined;
1287
+ addressCountryCode?: string | undefined;
1288
+ addressRegion?: string | undefined;
1289
+ addressLocality?: string | undefined;
1290
+ streetAddress?: string | undefined;
1291
+ postOfficeBoxNumber?: string | undefined;
1292
+ postalCode?: string | undefined;
1293
+ geo?: {
1294
+ type: [
1295
+ string,
1296
+ ...string[]
1297
+ ];
1298
+ latitude: number;
1299
+ longitude: number;
1300
+ } | undefined;
1301
+ type: [
1302
+ string,
1303
+ ...string[]
1304
+ ];
1305
+ } | undefined;
1306
+ otherIdentifier?: {
1307
+ type: [
1308
+ string,
1309
+ ...string[]
1310
+ ];
1311
+ identifier: string;
1312
+ identifierType: string;
1313
+ }[] | undefined;
1314
+ official?: string | undefined;
1315
+ parentOrg?: any;
1316
+ familyName?: string | undefined;
1317
+ givenName?: string | undefined;
1318
+ additionalName?: string | undefined;
1319
+ patronymicName?: string | undefined;
1320
+ honorificPrefix?: string | undefined;
1321
+ honorificSuffix?: string | undefined;
1322
+ familyNamePrefix?: string | undefined;
1323
+ dateOfBirth?: string | undefined;
1324
+ }, {
1325
+ [x: string]: any;
1326
+ type?: [
1327
+ string,
1328
+ ...string[]
1329
+ ] | undefined;
1330
+ id?: string | undefined;
1331
+ name?: string | undefined;
1332
+ url?: string | undefined;
1333
+ phone?: string | undefined;
1334
+ description?: string | undefined;
1335
+ endorsement?: any[] | undefined;
1336
+ image?: string | {
1337
+ caption?: string | undefined;
1338
+ type: string;
1339
+ id: string;
1340
+ } | undefined;
1341
+ email?: string | undefined;
1342
+ address?: {
1343
+ addressCountry?: string | undefined;
1344
+ addressCountryCode?: string | undefined;
1345
+ addressRegion?: string | undefined;
1346
+ addressLocality?: string | undefined;
1347
+ streetAddress?: string | undefined;
1348
+ postOfficeBoxNumber?: string | undefined;
1349
+ postalCode?: string | undefined;
1350
+ geo?: {
1351
+ type: [
1352
+ string,
1353
+ ...string[]
1354
+ ];
1355
+ latitude: number;
1356
+ longitude: number;
1357
+ } | undefined;
1358
+ type: [
1359
+ string,
1360
+ ...string[]
1361
+ ];
1362
+ } | undefined;
1363
+ otherIdentifier?: {
1364
+ type: [
1365
+ string,
1366
+ ...string[]
1367
+ ];
1368
+ identifier: string;
1369
+ identifierType: string;
1370
+ }[] | undefined;
1371
+ official?: string | undefined;
1372
+ parentOrg?: any;
1373
+ familyName?: string | undefined;
1374
+ givenName?: string | undefined;
1375
+ additionalName?: string | undefined;
1376
+ patronymicName?: string | undefined;
1377
+ honorificPrefix?: string | undefined;
1378
+ honorificSuffix?: string | undefined;
1379
+ familyNamePrefix?: string | undefined;
1380
+ dateOfBirth?: string | undefined;
1381
+ }>
1382
+ ]>;
1383
+ issuanceDate: z.ZodString;
1384
+ expirationDate: z.ZodOptional<z.ZodString>;
1385
+ credentialSubject: z.ZodUnion<[
1386
+ z.ZodObject<{
1387
+ id: z.ZodOptional<z.ZodString>;
1388
+ }, "strip", z.ZodAny, {
1389
+ [x: string]: any;
1390
+ id?: string | undefined;
1391
+ }, {
1392
+ [x: string]: any;
1393
+ id?: string | undefined;
1394
+ }>,
1395
+ z.ZodArray<z.ZodObject<{
1396
+ id: z.ZodOptional<z.ZodString>;
1397
+ }, "strip", z.ZodAny, {
1398
+ [x: string]: any;
1399
+ id?: string | undefined;
1400
+ }, {
1401
+ [x: string]: any;
1402
+ id?: string | undefined;
1403
+ }>, "many">
1404
+ ]>;
1405
+ credentialStatus: z.ZodOptional<z.ZodObject<{
1406
+ type: z.ZodString;
1407
+ id: z.ZodString;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ type: string;
1410
+ id: string;
1411
+ }, {
1412
+ type: string;
1413
+ id: string;
1414
+ }>>;
1415
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1416
+ id: z.ZodString;
1417
+ type: z.ZodString;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ type: string;
1420
+ id: string;
1421
+ }, {
1422
+ type: string;
1423
+ id: string;
1424
+ }>, "many">>;
1425
+ refreshService: z.ZodOptional<z.ZodObject<{
1426
+ id: z.ZodString;
1427
+ type: z.ZodString;
1428
+ }, "strip", z.ZodAny, {
1429
+ [x: string]: any;
1430
+ type: string;
1431
+ id: string;
1432
+ }, {
1433
+ [x: string]: any;
1434
+ type: string;
1435
+ id: string;
1436
+ }>>;
1437
+ }, {
1438
+ proof: z.ZodUnion<[
1439
+ z.ZodObject<{
1440
+ type: z.ZodString;
1441
+ created: z.ZodString;
1442
+ challenge: z.ZodOptional<z.ZodString>;
1443
+ domain: z.ZodOptional<z.ZodString>;
1444
+ nonce: z.ZodOptional<z.ZodString>;
1445
+ proofPurpose: z.ZodString;
1446
+ verificationMethod: z.ZodString;
1447
+ jws: z.ZodOptional<z.ZodString>;
1448
+ }, "strip", z.ZodAny, {
1449
+ [x: string]: any;
1450
+ challenge?: string | undefined;
1451
+ domain?: string | undefined;
1452
+ nonce?: string | undefined;
1453
+ jws?: string | undefined;
1454
+ type: string;
1455
+ created: string;
1456
+ proofPurpose: string;
1457
+ verificationMethod: string;
1458
+ }, {
1459
+ [x: string]: any;
1460
+ challenge?: string | undefined;
1461
+ domain?: string | undefined;
1462
+ nonce?: string | undefined;
1463
+ jws?: string | undefined;
1464
+ type: string;
1465
+ created: string;
1466
+ proofPurpose: string;
1467
+ verificationMethod: string;
1468
+ }>,
1469
+ z.ZodArray<z.ZodObject<{
1470
+ type: z.ZodString;
1471
+ created: z.ZodString;
1472
+ challenge: z.ZodOptional<z.ZodString>;
1473
+ domain: z.ZodOptional<z.ZodString>;
1474
+ nonce: z.ZodOptional<z.ZodString>;
1475
+ proofPurpose: z.ZodString;
1476
+ verificationMethod: z.ZodString;
1477
+ jws: z.ZodOptional<z.ZodString>;
1478
+ }, "strip", z.ZodAny, {
1479
+ [x: string]: any;
1480
+ challenge?: string | undefined;
1481
+ domain?: string | undefined;
1482
+ nonce?: string | undefined;
1483
+ jws?: string | undefined;
1484
+ type: string;
1485
+ created: string;
1486
+ proofPurpose: string;
1487
+ verificationMethod: string;
1488
+ }, {
1489
+ [x: string]: any;
1490
+ challenge?: string | undefined;
1491
+ domain?: string | undefined;
1492
+ nonce?: string | undefined;
1493
+ jws?: string | undefined;
1494
+ type: string;
1495
+ created: string;
1496
+ proofPurpose: string;
1497
+ verificationMethod: string;
1498
+ }>, "many">
1499
+ ]>;
1500
+ }>, "strip", z.ZodAny, {
1501
+ [x: string]: any;
1502
+ id?: string | undefined;
1503
+ expirationDate?: string | undefined;
1504
+ credentialStatus?: {
1505
+ type: string;
1506
+ id: string;
1507
+ } | undefined;
1508
+ credentialSchema?: {
1509
+ type: string;
1510
+ id: string;
1511
+ }[] | undefined;
1512
+ refreshService?: {
1513
+ [x: string]: any;
1514
+ type: string;
1515
+ id: string;
1516
+ } | undefined;
1517
+ type: [
1518
+ string,
1519
+ ...string[]
1520
+ ];
1521
+ "@context": string[];
1522
+ issuer: string | {
1523
+ [x: string]: any;
1524
+ type?: [
1525
+ string,
1526
+ ...string[]
1527
+ ] | undefined;
1528
+ id?: string | undefined;
1529
+ name?: string | undefined;
1530
+ url?: string | undefined;
1531
+ phone?: string | undefined;
1532
+ description?: string | undefined;
1533
+ endorsement?: any[] | undefined;
1534
+ image?: string | {
1535
+ caption?: string | undefined;
1536
+ type: string;
1537
+ id: string;
1538
+ } | undefined;
1539
+ email?: string | undefined;
1540
+ address?: {
1541
+ addressCountry?: string | undefined;
1542
+ addressCountryCode?: string | undefined;
1543
+ addressRegion?: string | undefined;
1544
+ addressLocality?: string | undefined;
1545
+ streetAddress?: string | undefined;
1546
+ postOfficeBoxNumber?: string | undefined;
1547
+ postalCode?: string | undefined;
1548
+ geo?: {
1549
+ type: [
1550
+ string,
1551
+ ...string[]
1552
+ ];
1553
+ latitude: number;
1554
+ longitude: number;
1555
+ } | undefined;
1556
+ type: [
1557
+ string,
1558
+ ...string[]
1559
+ ];
1560
+ } | undefined;
1561
+ otherIdentifier?: {
1562
+ type: [
1563
+ string,
1564
+ ...string[]
1565
+ ];
1566
+ identifier: string;
1567
+ identifierType: string;
1568
+ }[] | undefined;
1569
+ official?: string | undefined;
1570
+ parentOrg?: any;
1571
+ familyName?: string | undefined;
1572
+ givenName?: string | undefined;
1573
+ additionalName?: string | undefined;
1574
+ patronymicName?: string | undefined;
1575
+ honorificPrefix?: string | undefined;
1576
+ honorificSuffix?: string | undefined;
1577
+ familyNamePrefix?: string | undefined;
1578
+ dateOfBirth?: string | undefined;
1579
+ };
1580
+ issuanceDate: string;
1581
+ credentialSubject: {
1582
+ [x: string]: any;
1583
+ id?: string | undefined;
1584
+ } | {
1585
+ [x: string]: any;
1586
+ id?: string | undefined;
1587
+ }[];
1588
+ proof: {
1589
+ [x: string]: any;
1590
+ challenge?: string | undefined;
1591
+ domain?: string | undefined;
1592
+ nonce?: string | undefined;
1593
+ jws?: string | undefined;
1594
+ type: string;
1595
+ created: string;
1596
+ proofPurpose: string;
1597
+ verificationMethod: string;
1598
+ } | {
1599
+ [x: string]: any;
1600
+ challenge?: string | undefined;
1601
+ domain?: string | undefined;
1602
+ nonce?: string | undefined;
1603
+ jws?: string | undefined;
1604
+ type: string;
1605
+ created: string;
1606
+ proofPurpose: string;
1607
+ verificationMethod: string;
1608
+ }[];
1609
+ }, {
1610
+ [x: string]: any;
1611
+ id?: string | undefined;
1612
+ expirationDate?: string | undefined;
1613
+ credentialStatus?: {
1614
+ type: string;
1615
+ id: string;
1616
+ } | undefined;
1617
+ credentialSchema?: {
1618
+ type: string;
1619
+ id: string;
1620
+ }[] | undefined;
1621
+ refreshService?: {
1622
+ [x: string]: any;
1623
+ type: string;
1624
+ id: string;
1625
+ } | undefined;
1626
+ type: [
1627
+ string,
1628
+ ...string[]
1629
+ ];
1630
+ "@context": string[];
1631
+ issuer: string | {
1632
+ [x: string]: any;
1633
+ type?: [
1634
+ string,
1635
+ ...string[]
1636
+ ] | undefined;
1637
+ id?: string | undefined;
1638
+ name?: string | undefined;
1639
+ url?: string | undefined;
1640
+ phone?: string | undefined;
1641
+ description?: string | undefined;
1642
+ endorsement?: any[] | undefined;
1643
+ image?: string | {
1644
+ caption?: string | undefined;
1645
+ type: string;
1646
+ id: string;
1647
+ } | undefined;
1648
+ email?: string | undefined;
1649
+ address?: {
1650
+ addressCountry?: string | undefined;
1651
+ addressCountryCode?: string | undefined;
1652
+ addressRegion?: string | undefined;
1653
+ addressLocality?: string | undefined;
1654
+ streetAddress?: string | undefined;
1655
+ postOfficeBoxNumber?: string | undefined;
1656
+ postalCode?: string | undefined;
1657
+ geo?: {
1658
+ type: [
1659
+ string,
1660
+ ...string[]
1661
+ ];
1662
+ latitude: number;
1663
+ longitude: number;
1664
+ } | undefined;
1665
+ type: [
1666
+ string,
1667
+ ...string[]
1668
+ ];
1669
+ } | undefined;
1670
+ otherIdentifier?: {
1671
+ type: [
1672
+ string,
1673
+ ...string[]
1674
+ ];
1675
+ identifier: string;
1676
+ identifierType: string;
1677
+ }[] | undefined;
1678
+ official?: string | undefined;
1679
+ parentOrg?: any;
1680
+ familyName?: string | undefined;
1681
+ givenName?: string | undefined;
1682
+ additionalName?: string | undefined;
1683
+ patronymicName?: string | undefined;
1684
+ honorificPrefix?: string | undefined;
1685
+ honorificSuffix?: string | undefined;
1686
+ familyNamePrefix?: string | undefined;
1687
+ dateOfBirth?: string | undefined;
1688
+ };
1689
+ issuanceDate: string;
1690
+ credentialSubject: {
1691
+ [x: string]: any;
1692
+ id?: string | undefined;
1693
+ } | {
1694
+ [x: string]: any;
1695
+ id?: string | undefined;
1696
+ }[];
1697
+ proof: {
1698
+ [x: string]: any;
1699
+ challenge?: string | undefined;
1700
+ domain?: string | undefined;
1701
+ nonce?: string | undefined;
1702
+ jws?: string | undefined;
1703
+ type: string;
1704
+ created: string;
1705
+ proofPurpose: string;
1706
+ verificationMethod: string;
1707
+ } | {
1708
+ [x: string]: any;
1709
+ challenge?: string | undefined;
1710
+ domain?: string | undefined;
1711
+ nonce?: string | undefined;
1712
+ jws?: string | undefined;
1713
+ type: string;
1714
+ created: string;
1715
+ proofPurpose: string;
1716
+ verificationMethod: string;
1717
+ }[];
1718
+ }>,
1719
+ z.ZodArray<z.ZodObject<z.extendShape<{
1720
+ "@context": z.ZodArray<z.ZodString, "many">;
1721
+ id: z.ZodOptional<z.ZodString>;
1722
+ type: z.ZodArray<z.ZodString, "atleastone">;
1723
+ issuer: z.ZodUnion<[
1724
+ z.ZodString,
1725
+ z.ZodObject<{
1726
+ id: z.ZodOptional<z.ZodString>;
1727
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1728
+ name: z.ZodOptional<z.ZodString>;
1729
+ url: z.ZodOptional<z.ZodString>;
1730
+ phone: z.ZodOptional<z.ZodString>;
1731
+ description: z.ZodOptional<z.ZodString>;
1732
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1733
+ image: z.ZodOptional<z.ZodUnion<[
1734
+ z.ZodString,
1735
+ z.ZodObject<{
1736
+ id: z.ZodString;
1737
+ type: z.ZodString;
1738
+ caption: z.ZodOptional<z.ZodString>;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ caption?: string | undefined;
1741
+ type: string;
1742
+ id: string;
1743
+ }, {
1744
+ caption?: string | undefined;
1745
+ type: string;
1746
+ id: string;
1747
+ }>
1748
+ ]>>;
1749
+ email: z.ZodOptional<z.ZodString>;
1750
+ address: z.ZodOptional<z.ZodObject<{
1751
+ type: z.ZodArray<z.ZodString, "atleastone">;
1752
+ addressCountry: z.ZodOptional<z.ZodString>;
1753
+ addressCountryCode: z.ZodOptional<z.ZodString>;
1754
+ addressRegion: z.ZodOptional<z.ZodString>;
1755
+ addressLocality: z.ZodOptional<z.ZodString>;
1756
+ streetAddress: z.ZodOptional<z.ZodString>;
1757
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1758
+ postalCode: z.ZodOptional<z.ZodString>;
1759
+ geo: z.ZodOptional<z.ZodObject<{
1760
+ type: z.ZodArray<z.ZodString, "atleastone">;
1761
+ latitude: z.ZodNumber;
1762
+ longitude: z.ZodNumber;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ type: [
1765
+ string,
1766
+ ...string[]
1767
+ ];
1768
+ latitude: number;
1769
+ longitude: number;
1770
+ }, {
1771
+ type: [
1772
+ string,
1773
+ ...string[]
1774
+ ];
1775
+ latitude: number;
1776
+ longitude: number;
1777
+ }>>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ addressCountry?: string | undefined;
1780
+ addressCountryCode?: string | undefined;
1781
+ addressRegion?: string | undefined;
1782
+ addressLocality?: string | undefined;
1783
+ streetAddress?: string | undefined;
1784
+ postOfficeBoxNumber?: string | undefined;
1785
+ postalCode?: string | undefined;
1786
+ geo?: {
1787
+ type: [
1788
+ string,
1789
+ ...string[]
1790
+ ];
1791
+ latitude: number;
1792
+ longitude: number;
1793
+ } | undefined;
1794
+ type: [
1795
+ string,
1796
+ ...string[]
1797
+ ];
1798
+ }, {
1799
+ addressCountry?: string | undefined;
1800
+ addressCountryCode?: string | undefined;
1801
+ addressRegion?: string | undefined;
1802
+ addressLocality?: string | undefined;
1803
+ streetAddress?: string | undefined;
1804
+ postOfficeBoxNumber?: string | undefined;
1805
+ postalCode?: string | undefined;
1806
+ geo?: {
1807
+ type: [
1808
+ string,
1809
+ ...string[]
1810
+ ];
1811
+ latitude: number;
1812
+ longitude: number;
1813
+ } | undefined;
1814
+ type: [
1815
+ string,
1816
+ ...string[]
1817
+ ];
1818
+ }>>;
1819
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1820
+ type: z.ZodArray<z.ZodString, "atleastone">;
1821
+ identifier: z.ZodString;
1822
+ identifierType: z.ZodUnion<[
1823
+ z.ZodEnum<[
1824
+ "sourcedId",
1825
+ "systemId",
1826
+ "productId",
1827
+ "userName",
1828
+ "accountId",
1829
+ "emailAddress",
1830
+ "nationalIdentityNumber",
1831
+ "isbn",
1832
+ "issn",
1833
+ "lisSourcedId",
1834
+ "oneRosterSourcedId",
1835
+ "sisSourcedId",
1836
+ "ltiContextId",
1837
+ "ltiDeploymentId",
1838
+ "ltiToolId",
1839
+ "ltiPlatformId",
1840
+ "ltiUserId",
1841
+ "identifier"
1842
+ ]>,
1843
+ z.ZodString
1844
+ ]>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ type: [
1847
+ string,
1848
+ ...string[]
1849
+ ];
1850
+ identifier: string;
1851
+ identifierType: string;
1852
+ }, {
1853
+ type: [
1854
+ string,
1855
+ ...string[]
1856
+ ];
1857
+ identifier: string;
1858
+ identifierType: string;
1859
+ }>, "many">>;
1860
+ official: z.ZodOptional<z.ZodString>;
1861
+ parentOrg: z.ZodOptional<z.ZodAny>;
1862
+ familyName: z.ZodOptional<z.ZodString>;
1863
+ givenName: z.ZodOptional<z.ZodString>;
1864
+ additionalName: z.ZodOptional<z.ZodString>;
1865
+ patronymicName: z.ZodOptional<z.ZodString>;
1866
+ honorificPrefix: z.ZodOptional<z.ZodString>;
1867
+ honorificSuffix: z.ZodOptional<z.ZodString>;
1868
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
1869
+ dateOfBirth: z.ZodOptional<z.ZodString>;
1870
+ }, "strip", z.ZodAny, {
1871
+ [x: string]: any;
1872
+ type?: [
1873
+ string,
1874
+ ...string[]
1875
+ ] | undefined;
1876
+ id?: string | undefined;
1877
+ name?: string | undefined;
1878
+ url?: string | undefined;
1879
+ phone?: string | undefined;
1880
+ description?: string | undefined;
1881
+ endorsement?: any[] | undefined;
1882
+ image?: string | {
1883
+ caption?: string | undefined;
1884
+ type: string;
1885
+ id: string;
1886
+ } | undefined;
1887
+ email?: string | undefined;
1888
+ address?: {
1889
+ addressCountry?: string | undefined;
1890
+ addressCountryCode?: string | undefined;
1891
+ addressRegion?: string | undefined;
1892
+ addressLocality?: string | undefined;
1893
+ streetAddress?: string | undefined;
1894
+ postOfficeBoxNumber?: string | undefined;
1895
+ postalCode?: string | undefined;
1896
+ geo?: {
1897
+ type: [
1898
+ string,
1899
+ ...string[]
1900
+ ];
1901
+ latitude: number;
1902
+ longitude: number;
1903
+ } | undefined;
1904
+ type: [
1905
+ string,
1906
+ ...string[]
1907
+ ];
1908
+ } | undefined;
1909
+ otherIdentifier?: {
1910
+ type: [
1911
+ string,
1912
+ ...string[]
1913
+ ];
1914
+ identifier: string;
1915
+ identifierType: string;
1916
+ }[] | undefined;
1917
+ official?: string | undefined;
1918
+ parentOrg?: any;
1919
+ familyName?: string | undefined;
1920
+ givenName?: string | undefined;
1921
+ additionalName?: string | undefined;
1922
+ patronymicName?: string | undefined;
1923
+ honorificPrefix?: string | undefined;
1924
+ honorificSuffix?: string | undefined;
1925
+ familyNamePrefix?: string | undefined;
1926
+ dateOfBirth?: string | undefined;
1927
+ }, {
1928
+ [x: string]: any;
1929
+ type?: [
1930
+ string,
1931
+ ...string[]
1932
+ ] | undefined;
1933
+ id?: string | undefined;
1934
+ name?: string | undefined;
1935
+ url?: string | undefined;
1936
+ phone?: string | undefined;
1937
+ description?: string | undefined;
1938
+ endorsement?: any[] | undefined;
1939
+ image?: string | {
1940
+ caption?: string | undefined;
1941
+ type: string;
1942
+ id: string;
1943
+ } | undefined;
1944
+ email?: string | undefined;
1945
+ address?: {
1946
+ addressCountry?: string | undefined;
1947
+ addressCountryCode?: string | undefined;
1948
+ addressRegion?: string | undefined;
1949
+ addressLocality?: string | undefined;
1950
+ streetAddress?: string | undefined;
1951
+ postOfficeBoxNumber?: string | undefined;
1952
+ postalCode?: string | undefined;
1953
+ geo?: {
1954
+ type: [
1955
+ string,
1956
+ ...string[]
1957
+ ];
1958
+ latitude: number;
1959
+ longitude: number;
1960
+ } | undefined;
1961
+ type: [
1962
+ string,
1963
+ ...string[]
1964
+ ];
1965
+ } | undefined;
1966
+ otherIdentifier?: {
1967
+ type: [
1968
+ string,
1969
+ ...string[]
1970
+ ];
1971
+ identifier: string;
1972
+ identifierType: string;
1973
+ }[] | undefined;
1974
+ official?: string | undefined;
1975
+ parentOrg?: any;
1976
+ familyName?: string | undefined;
1977
+ givenName?: string | undefined;
1978
+ additionalName?: string | undefined;
1979
+ patronymicName?: string | undefined;
1980
+ honorificPrefix?: string | undefined;
1981
+ honorificSuffix?: string | undefined;
1982
+ familyNamePrefix?: string | undefined;
1983
+ dateOfBirth?: string | undefined;
1984
+ }>
1985
+ ]>;
1986
+ issuanceDate: z.ZodString;
1987
+ expirationDate: z.ZodOptional<z.ZodString>;
1988
+ credentialSubject: z.ZodUnion<[
1989
+ z.ZodObject<{
1990
+ id: z.ZodOptional<z.ZodString>;
1991
+ }, "strip", z.ZodAny, {
1992
+ [x: string]: any;
1993
+ id?: string | undefined;
1994
+ }, {
1995
+ [x: string]: any;
1996
+ id?: string | undefined;
1997
+ }>,
1998
+ z.ZodArray<z.ZodObject<{
1999
+ id: z.ZodOptional<z.ZodString>;
2000
+ }, "strip", z.ZodAny, {
2001
+ [x: string]: any;
2002
+ id?: string | undefined;
2003
+ }, {
2004
+ [x: string]: any;
2005
+ id?: string | undefined;
2006
+ }>, "many">
2007
+ ]>;
2008
+ credentialStatus: z.ZodOptional<z.ZodObject<{
2009
+ type: z.ZodString;
2010
+ id: z.ZodString;
2011
+ }, "strip", z.ZodTypeAny, {
2012
+ type: string;
2013
+ id: string;
2014
+ }, {
2015
+ type: string;
2016
+ id: string;
2017
+ }>>;
2018
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
2019
+ id: z.ZodString;
2020
+ type: z.ZodString;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ type: string;
2023
+ id: string;
2024
+ }, {
2025
+ type: string;
2026
+ id: string;
2027
+ }>, "many">>;
2028
+ refreshService: z.ZodOptional<z.ZodObject<{
2029
+ id: z.ZodString;
2030
+ type: z.ZodString;
2031
+ }, "strip", z.ZodAny, {
2032
+ [x: string]: any;
2033
+ type: string;
2034
+ id: string;
2035
+ }, {
2036
+ [x: string]: any;
2037
+ type: string;
2038
+ id: string;
2039
+ }>>;
2040
+ }, {
2041
+ proof: z.ZodUnion<[
2042
+ z.ZodObject<{
2043
+ type: z.ZodString;
2044
+ created: z.ZodString;
2045
+ challenge: z.ZodOptional<z.ZodString>;
2046
+ domain: z.ZodOptional<z.ZodString>;
2047
+ nonce: z.ZodOptional<z.ZodString>;
2048
+ proofPurpose: z.ZodString;
2049
+ verificationMethod: z.ZodString;
2050
+ jws: z.ZodOptional<z.ZodString>;
2051
+ }, "strip", z.ZodAny, {
2052
+ [x: string]: any;
2053
+ challenge?: string | undefined;
2054
+ domain?: string | undefined;
2055
+ nonce?: string | undefined;
2056
+ jws?: string | undefined;
2057
+ type: string;
2058
+ created: string;
2059
+ proofPurpose: string;
2060
+ verificationMethod: string;
2061
+ }, {
2062
+ [x: string]: any;
2063
+ challenge?: string | undefined;
2064
+ domain?: string | undefined;
2065
+ nonce?: string | undefined;
2066
+ jws?: string | undefined;
2067
+ type: string;
2068
+ created: string;
2069
+ proofPurpose: string;
2070
+ verificationMethod: string;
2071
+ }>,
2072
+ z.ZodArray<z.ZodObject<{
2073
+ type: z.ZodString;
2074
+ created: z.ZodString;
2075
+ challenge: z.ZodOptional<z.ZodString>;
2076
+ domain: z.ZodOptional<z.ZodString>;
2077
+ nonce: z.ZodOptional<z.ZodString>;
2078
+ proofPurpose: z.ZodString;
2079
+ verificationMethod: z.ZodString;
2080
+ jws: z.ZodOptional<z.ZodString>;
2081
+ }, "strip", z.ZodAny, {
2082
+ [x: string]: any;
2083
+ challenge?: string | undefined;
2084
+ domain?: string | undefined;
2085
+ nonce?: string | undefined;
2086
+ jws?: string | undefined;
2087
+ type: string;
2088
+ created: string;
2089
+ proofPurpose: string;
2090
+ verificationMethod: string;
2091
+ }, {
2092
+ [x: string]: any;
2093
+ challenge?: string | undefined;
2094
+ domain?: string | undefined;
2095
+ nonce?: string | undefined;
2096
+ jws?: string | undefined;
2097
+ type: string;
2098
+ created: string;
2099
+ proofPurpose: string;
2100
+ verificationMethod: string;
2101
+ }>, "many">
2102
+ ]>;
2103
+ }>, "strip", z.ZodAny, {
2104
+ [x: string]: any;
2105
+ id?: string | undefined;
2106
+ expirationDate?: string | undefined;
2107
+ credentialStatus?: {
2108
+ type: string;
2109
+ id: string;
2110
+ } | undefined;
2111
+ credentialSchema?: {
2112
+ type: string;
2113
+ id: string;
2114
+ }[] | undefined;
2115
+ refreshService?: {
2116
+ [x: string]: any;
2117
+ type: string;
2118
+ id: string;
2119
+ } | undefined;
2120
+ type: [
2121
+ string,
2122
+ ...string[]
2123
+ ];
2124
+ "@context": string[];
2125
+ issuer: string | {
2126
+ [x: string]: any;
2127
+ type?: [
2128
+ string,
2129
+ ...string[]
2130
+ ] | undefined;
2131
+ id?: string | undefined;
2132
+ name?: string | undefined;
2133
+ url?: string | undefined;
2134
+ phone?: string | undefined;
2135
+ description?: string | undefined;
2136
+ endorsement?: any[] | undefined;
2137
+ image?: string | {
2138
+ caption?: string | undefined;
2139
+ type: string;
2140
+ id: string;
2141
+ } | undefined;
2142
+ email?: string | undefined;
2143
+ address?: {
2144
+ addressCountry?: string | undefined;
2145
+ addressCountryCode?: string | undefined;
2146
+ addressRegion?: string | undefined;
2147
+ addressLocality?: string | undefined;
2148
+ streetAddress?: string | undefined;
2149
+ postOfficeBoxNumber?: string | undefined;
2150
+ postalCode?: string | undefined;
2151
+ geo?: {
2152
+ type: [
2153
+ string,
2154
+ ...string[]
2155
+ ];
2156
+ latitude: number;
2157
+ longitude: number;
2158
+ } | undefined;
2159
+ type: [
2160
+ string,
2161
+ ...string[]
2162
+ ];
2163
+ } | undefined;
2164
+ otherIdentifier?: {
2165
+ type: [
2166
+ string,
2167
+ ...string[]
2168
+ ];
2169
+ identifier: string;
2170
+ identifierType: string;
2171
+ }[] | undefined;
2172
+ official?: string | undefined;
2173
+ parentOrg?: any;
2174
+ familyName?: string | undefined;
2175
+ givenName?: string | undefined;
2176
+ additionalName?: string | undefined;
2177
+ patronymicName?: string | undefined;
2178
+ honorificPrefix?: string | undefined;
2179
+ honorificSuffix?: string | undefined;
2180
+ familyNamePrefix?: string | undefined;
2181
+ dateOfBirth?: string | undefined;
2182
+ };
2183
+ issuanceDate: string;
2184
+ credentialSubject: {
2185
+ [x: string]: any;
2186
+ id?: string | undefined;
2187
+ } | {
2188
+ [x: string]: any;
2189
+ id?: string | undefined;
2190
+ }[];
2191
+ proof: {
2192
+ [x: string]: any;
2193
+ challenge?: string | undefined;
2194
+ domain?: string | undefined;
2195
+ nonce?: string | undefined;
2196
+ jws?: string | undefined;
2197
+ type: string;
2198
+ created: string;
2199
+ proofPurpose: string;
2200
+ verificationMethod: string;
2201
+ } | {
2202
+ [x: string]: any;
2203
+ challenge?: string | undefined;
2204
+ domain?: string | undefined;
2205
+ nonce?: string | undefined;
2206
+ jws?: string | undefined;
2207
+ type: string;
2208
+ created: string;
2209
+ proofPurpose: string;
2210
+ verificationMethod: string;
2211
+ }[];
2212
+ }, {
2213
+ [x: string]: any;
2214
+ id?: string | undefined;
2215
+ expirationDate?: string | undefined;
2216
+ credentialStatus?: {
2217
+ type: string;
2218
+ id: string;
2219
+ } | undefined;
2220
+ credentialSchema?: {
2221
+ type: string;
2222
+ id: string;
2223
+ }[] | undefined;
2224
+ refreshService?: {
2225
+ [x: string]: any;
2226
+ type: string;
2227
+ id: string;
2228
+ } | undefined;
2229
+ type: [
2230
+ string,
2231
+ ...string[]
2232
+ ];
2233
+ "@context": string[];
2234
+ issuer: string | {
2235
+ [x: string]: any;
2236
+ type?: [
2237
+ string,
2238
+ ...string[]
2239
+ ] | undefined;
2240
+ id?: string | undefined;
2241
+ name?: string | undefined;
2242
+ url?: string | undefined;
2243
+ phone?: string | undefined;
2244
+ description?: string | undefined;
2245
+ endorsement?: any[] | undefined;
2246
+ image?: string | {
2247
+ caption?: string | undefined;
2248
+ type: string;
2249
+ id: string;
2250
+ } | undefined;
2251
+ email?: string | undefined;
2252
+ address?: {
2253
+ addressCountry?: string | undefined;
2254
+ addressCountryCode?: string | undefined;
2255
+ addressRegion?: string | undefined;
2256
+ addressLocality?: string | undefined;
2257
+ streetAddress?: string | undefined;
2258
+ postOfficeBoxNumber?: string | undefined;
2259
+ postalCode?: string | undefined;
2260
+ geo?: {
2261
+ type: [
2262
+ string,
2263
+ ...string[]
2264
+ ];
2265
+ latitude: number;
2266
+ longitude: number;
2267
+ } | undefined;
2268
+ type: [
2269
+ string,
2270
+ ...string[]
2271
+ ];
2272
+ } | undefined;
2273
+ otherIdentifier?: {
2274
+ type: [
2275
+ string,
2276
+ ...string[]
2277
+ ];
2278
+ identifier: string;
2279
+ identifierType: string;
2280
+ }[] | undefined;
2281
+ official?: string | undefined;
2282
+ parentOrg?: any;
2283
+ familyName?: string | undefined;
2284
+ givenName?: string | undefined;
2285
+ additionalName?: string | undefined;
2286
+ patronymicName?: string | undefined;
2287
+ honorificPrefix?: string | undefined;
2288
+ honorificSuffix?: string | undefined;
2289
+ familyNamePrefix?: string | undefined;
2290
+ dateOfBirth?: string | undefined;
2291
+ };
2292
+ issuanceDate: string;
2293
+ credentialSubject: {
2294
+ [x: string]: any;
2295
+ id?: string | undefined;
2296
+ } | {
2297
+ [x: string]: any;
2298
+ id?: string | undefined;
2299
+ }[];
2300
+ proof: {
2301
+ [x: string]: any;
2302
+ challenge?: string | undefined;
2303
+ domain?: string | undefined;
2304
+ nonce?: string | undefined;
2305
+ jws?: string | undefined;
2306
+ type: string;
2307
+ created: string;
2308
+ proofPurpose: string;
2309
+ verificationMethod: string;
2310
+ } | {
2311
+ [x: string]: any;
2312
+ challenge?: string | undefined;
2313
+ domain?: string | undefined;
2314
+ nonce?: string | undefined;
2315
+ jws?: string | undefined;
2316
+ type: string;
2317
+ created: string;
2318
+ proofPurpose: string;
2319
+ verificationMethod: string;
2320
+ }[];
2321
+ }>, "many">
2322
+ ]>;
2323
+ holder: z.ZodOptional<z.ZodString>;
2324
+ }, "strip", z.ZodAny, {
2325
+ [x: string]: any;
2326
+ id?: string | undefined;
2327
+ holder?: string | undefined;
2328
+ type: [
2329
+ string,
2330
+ ...string[]
2331
+ ];
2332
+ "@context": string[];
2333
+ verifiableCredential: {
2334
+ [x: string]: any;
2335
+ id?: string | undefined;
2336
+ expirationDate?: string | undefined;
2337
+ credentialStatus?: {
2338
+ type: string;
2339
+ id: string;
2340
+ } | undefined;
2341
+ credentialSchema?: {
2342
+ type: string;
2343
+ id: string;
2344
+ }[] | undefined;
2345
+ refreshService?: {
2346
+ [x: string]: any;
2347
+ type: string;
2348
+ id: string;
2349
+ } | undefined;
2350
+ type: [
2351
+ string,
2352
+ ...string[]
2353
+ ];
2354
+ "@context": string[];
2355
+ issuer: string | {
2356
+ [x: string]: any;
2357
+ type?: [
2358
+ string,
2359
+ ...string[]
2360
+ ] | undefined;
2361
+ id?: string | undefined;
2362
+ name?: string | undefined;
2363
+ url?: string | undefined;
2364
+ phone?: string | undefined;
2365
+ description?: string | undefined;
2366
+ endorsement?: any[] | undefined;
2367
+ image?: string | {
2368
+ caption?: string | undefined;
2369
+ type: string;
2370
+ id: string;
2371
+ } | undefined;
2372
+ email?: string | undefined;
2373
+ address?: {
2374
+ addressCountry?: string | undefined;
2375
+ addressCountryCode?: string | undefined;
2376
+ addressRegion?: string | undefined;
2377
+ addressLocality?: string | undefined;
2378
+ streetAddress?: string | undefined;
2379
+ postOfficeBoxNumber?: string | undefined;
2380
+ postalCode?: string | undefined;
2381
+ geo?: {
2382
+ type: [
2383
+ string,
2384
+ ...string[]
2385
+ ];
2386
+ latitude: number;
2387
+ longitude: number;
2388
+ } | undefined;
2389
+ type: [
2390
+ string,
2391
+ ...string[]
2392
+ ];
2393
+ } | undefined;
2394
+ otherIdentifier?: {
2395
+ type: [
2396
+ string,
2397
+ ...string[]
2398
+ ];
2399
+ identifier: string;
2400
+ identifierType: string;
2401
+ }[] | undefined;
2402
+ official?: string | undefined;
2403
+ parentOrg?: any;
2404
+ familyName?: string | undefined;
2405
+ givenName?: string | undefined;
2406
+ additionalName?: string | undefined;
2407
+ patronymicName?: string | undefined;
2408
+ honorificPrefix?: string | undefined;
2409
+ honorificSuffix?: string | undefined;
2410
+ familyNamePrefix?: string | undefined;
2411
+ dateOfBirth?: string | undefined;
2412
+ };
2413
+ issuanceDate: string;
2414
+ credentialSubject: {
2415
+ [x: string]: any;
2416
+ id?: string | undefined;
2417
+ } | {
2418
+ [x: string]: any;
2419
+ id?: string | undefined;
2420
+ }[];
2421
+ proof: {
2422
+ [x: string]: any;
2423
+ challenge?: string | undefined;
2424
+ domain?: string | undefined;
2425
+ nonce?: string | undefined;
2426
+ jws?: string | undefined;
2427
+ type: string;
2428
+ created: string;
2429
+ proofPurpose: string;
2430
+ verificationMethod: string;
2431
+ } | {
2432
+ [x: string]: any;
2433
+ challenge?: string | undefined;
2434
+ domain?: string | undefined;
2435
+ nonce?: string | undefined;
2436
+ jws?: string | undefined;
2437
+ type: string;
2438
+ created: string;
2439
+ proofPurpose: string;
2440
+ verificationMethod: string;
2441
+ }[];
2442
+ } | {
2443
+ [x: string]: any;
2444
+ id?: string | undefined;
2445
+ expirationDate?: string | undefined;
2446
+ credentialStatus?: {
2447
+ type: string;
2448
+ id: string;
2449
+ } | undefined;
2450
+ credentialSchema?: {
2451
+ type: string;
2452
+ id: string;
2453
+ }[] | undefined;
2454
+ refreshService?: {
2455
+ [x: string]: any;
2456
+ type: string;
2457
+ id: string;
2458
+ } | undefined;
2459
+ type: [
2460
+ string,
2461
+ ...string[]
2462
+ ];
2463
+ "@context": string[];
2464
+ issuer: string | {
2465
+ [x: string]: any;
2466
+ type?: [
2467
+ string,
2468
+ ...string[]
2469
+ ] | undefined;
2470
+ id?: string | undefined;
2471
+ name?: string | undefined;
2472
+ url?: string | undefined;
2473
+ phone?: string | undefined;
2474
+ description?: string | undefined;
2475
+ endorsement?: any[] | undefined;
2476
+ image?: string | {
2477
+ caption?: string | undefined;
2478
+ type: string;
2479
+ id: string;
2480
+ } | undefined;
2481
+ email?: string | undefined;
2482
+ address?: {
2483
+ addressCountry?: string | undefined;
2484
+ addressCountryCode?: string | undefined;
2485
+ addressRegion?: string | undefined;
2486
+ addressLocality?: string | undefined;
2487
+ streetAddress?: string | undefined;
2488
+ postOfficeBoxNumber?: string | undefined;
2489
+ postalCode?: string | undefined;
2490
+ geo?: {
2491
+ type: [
2492
+ string,
2493
+ ...string[]
2494
+ ];
2495
+ latitude: number;
2496
+ longitude: number;
2497
+ } | undefined;
2498
+ type: [
2499
+ string,
2500
+ ...string[]
2501
+ ];
2502
+ } | undefined;
2503
+ otherIdentifier?: {
2504
+ type: [
2505
+ string,
2506
+ ...string[]
2507
+ ];
2508
+ identifier: string;
2509
+ identifierType: string;
2510
+ }[] | undefined;
2511
+ official?: string | undefined;
2512
+ parentOrg?: any;
2513
+ familyName?: string | undefined;
2514
+ givenName?: string | undefined;
2515
+ additionalName?: string | undefined;
2516
+ patronymicName?: string | undefined;
2517
+ honorificPrefix?: string | undefined;
2518
+ honorificSuffix?: string | undefined;
2519
+ familyNamePrefix?: string | undefined;
2520
+ dateOfBirth?: string | undefined;
2521
+ };
2522
+ issuanceDate: string;
2523
+ credentialSubject: {
2524
+ [x: string]: any;
2525
+ id?: string | undefined;
2526
+ } | {
2527
+ [x: string]: any;
2528
+ id?: string | undefined;
2529
+ }[];
2530
+ proof: {
2531
+ [x: string]: any;
2532
+ challenge?: string | undefined;
2533
+ domain?: string | undefined;
2534
+ nonce?: string | undefined;
2535
+ jws?: string | undefined;
2536
+ type: string;
2537
+ created: string;
2538
+ proofPurpose: string;
2539
+ verificationMethod: string;
2540
+ } | {
2541
+ [x: string]: any;
2542
+ challenge?: string | undefined;
2543
+ domain?: string | undefined;
2544
+ nonce?: string | undefined;
2545
+ jws?: string | undefined;
2546
+ type: string;
2547
+ created: string;
2548
+ proofPurpose: string;
2549
+ verificationMethod: string;
2550
+ }[];
2551
+ }[];
2552
+ }, {
2553
+ [x: string]: any;
2554
+ id?: string | undefined;
2555
+ holder?: string | undefined;
2556
+ type: [
2557
+ string,
2558
+ ...string[]
2559
+ ];
2560
+ "@context": string[];
2561
+ verifiableCredential: {
2562
+ [x: string]: any;
2563
+ id?: string | undefined;
2564
+ expirationDate?: string | undefined;
2565
+ credentialStatus?: {
2566
+ type: string;
2567
+ id: string;
2568
+ } | undefined;
2569
+ credentialSchema?: {
2570
+ type: string;
2571
+ id: string;
2572
+ }[] | undefined;
2573
+ refreshService?: {
2574
+ [x: string]: any;
2575
+ type: string;
2576
+ id: string;
2577
+ } | undefined;
2578
+ type: [
2579
+ string,
2580
+ ...string[]
2581
+ ];
2582
+ "@context": string[];
2583
+ issuer: string | {
2584
+ [x: string]: any;
2585
+ type?: [
2586
+ string,
2587
+ ...string[]
2588
+ ] | undefined;
2589
+ id?: string | undefined;
2590
+ name?: string | undefined;
2591
+ url?: string | undefined;
2592
+ phone?: string | undefined;
2593
+ description?: string | undefined;
2594
+ endorsement?: any[] | undefined;
2595
+ image?: string | {
2596
+ caption?: string | undefined;
2597
+ type: string;
2598
+ id: string;
2599
+ } | undefined;
2600
+ email?: string | undefined;
2601
+ address?: {
2602
+ addressCountry?: string | undefined;
2603
+ addressCountryCode?: string | undefined;
2604
+ addressRegion?: string | undefined;
2605
+ addressLocality?: string | undefined;
2606
+ streetAddress?: string | undefined;
2607
+ postOfficeBoxNumber?: string | undefined;
2608
+ postalCode?: string | undefined;
2609
+ geo?: {
2610
+ type: [
2611
+ string,
2612
+ ...string[]
2613
+ ];
2614
+ latitude: number;
2615
+ longitude: number;
2616
+ } | undefined;
2617
+ type: [
2618
+ string,
2619
+ ...string[]
2620
+ ];
2621
+ } | undefined;
2622
+ otherIdentifier?: {
2623
+ type: [
2624
+ string,
2625
+ ...string[]
2626
+ ];
2627
+ identifier: string;
2628
+ identifierType: string;
2629
+ }[] | undefined;
2630
+ official?: string | undefined;
2631
+ parentOrg?: any;
2632
+ familyName?: string | undefined;
2633
+ givenName?: string | undefined;
2634
+ additionalName?: string | undefined;
2635
+ patronymicName?: string | undefined;
2636
+ honorificPrefix?: string | undefined;
2637
+ honorificSuffix?: string | undefined;
2638
+ familyNamePrefix?: string | undefined;
2639
+ dateOfBirth?: string | undefined;
2640
+ };
2641
+ issuanceDate: string;
2642
+ credentialSubject: {
2643
+ [x: string]: any;
2644
+ id?: string | undefined;
2645
+ } | {
2646
+ [x: string]: any;
2647
+ id?: string | undefined;
2648
+ }[];
2649
+ proof: {
2650
+ [x: string]: any;
2651
+ challenge?: string | undefined;
2652
+ domain?: string | undefined;
2653
+ nonce?: string | undefined;
2654
+ jws?: string | undefined;
2655
+ type: string;
2656
+ created: string;
2657
+ proofPurpose: string;
2658
+ verificationMethod: string;
2659
+ } | {
2660
+ [x: string]: any;
2661
+ challenge?: string | undefined;
2662
+ domain?: string | undefined;
2663
+ nonce?: string | undefined;
2664
+ jws?: string | undefined;
2665
+ type: string;
2666
+ created: string;
2667
+ proofPurpose: string;
2668
+ verificationMethod: string;
2669
+ }[];
2670
+ } | {
2671
+ [x: string]: any;
2672
+ id?: string | undefined;
2673
+ expirationDate?: string | undefined;
2674
+ credentialStatus?: {
2675
+ type: string;
2676
+ id: string;
2677
+ } | undefined;
2678
+ credentialSchema?: {
2679
+ type: string;
2680
+ id: string;
2681
+ }[] | undefined;
2682
+ refreshService?: {
2683
+ [x: string]: any;
2684
+ type: string;
2685
+ id: string;
2686
+ } | undefined;
2687
+ type: [
2688
+ string,
2689
+ ...string[]
2690
+ ];
2691
+ "@context": string[];
2692
+ issuer: string | {
2693
+ [x: string]: any;
2694
+ type?: [
2695
+ string,
2696
+ ...string[]
2697
+ ] | undefined;
2698
+ id?: string | undefined;
2699
+ name?: string | undefined;
2700
+ url?: string | undefined;
2701
+ phone?: string | undefined;
2702
+ description?: string | undefined;
2703
+ endorsement?: any[] | undefined;
2704
+ image?: string | {
2705
+ caption?: string | undefined;
2706
+ type: string;
2707
+ id: string;
2708
+ } | undefined;
2709
+ email?: string | undefined;
2710
+ address?: {
2711
+ addressCountry?: string | undefined;
2712
+ addressCountryCode?: string | undefined;
2713
+ addressRegion?: string | undefined;
2714
+ addressLocality?: string | undefined;
2715
+ streetAddress?: string | undefined;
2716
+ postOfficeBoxNumber?: string | undefined;
2717
+ postalCode?: string | undefined;
2718
+ geo?: {
2719
+ type: [
2720
+ string,
2721
+ ...string[]
2722
+ ];
2723
+ latitude: number;
2724
+ longitude: number;
2725
+ } | undefined;
2726
+ type: [
2727
+ string,
2728
+ ...string[]
2729
+ ];
2730
+ } | undefined;
2731
+ otherIdentifier?: {
2732
+ type: [
2733
+ string,
2734
+ ...string[]
2735
+ ];
2736
+ identifier: string;
2737
+ identifierType: string;
2738
+ }[] | undefined;
2739
+ official?: string | undefined;
2740
+ parentOrg?: any;
2741
+ familyName?: string | undefined;
2742
+ givenName?: string | undefined;
2743
+ additionalName?: string | undefined;
2744
+ patronymicName?: string | undefined;
2745
+ honorificPrefix?: string | undefined;
2746
+ honorificSuffix?: string | undefined;
2747
+ familyNamePrefix?: string | undefined;
2748
+ dateOfBirth?: string | undefined;
2749
+ };
2750
+ issuanceDate: string;
2751
+ credentialSubject: {
2752
+ [x: string]: any;
2753
+ id?: string | undefined;
2754
+ } | {
2755
+ [x: string]: any;
2756
+ id?: string | undefined;
2757
+ }[];
2758
+ proof: {
2759
+ [x: string]: any;
2760
+ challenge?: string | undefined;
2761
+ domain?: string | undefined;
2762
+ nonce?: string | undefined;
2763
+ jws?: string | undefined;
2764
+ type: string;
2765
+ created: string;
2766
+ proofPurpose: string;
2767
+ verificationMethod: string;
2768
+ } | {
2769
+ [x: string]: any;
2770
+ challenge?: string | undefined;
2771
+ domain?: string | undefined;
2772
+ nonce?: string | undefined;
2773
+ jws?: string | undefined;
2774
+ type: string;
2775
+ created: string;
2776
+ proofPurpose: string;
2777
+ verificationMethod: string;
2778
+ }[];
2779
+ }[];
2780
+ }>;
2781
+ export declare type UnsignedVP = z.infer<typeof UnsignedVPValidator>;
1111
2782
  declare const VPValidator: z.ZodObject<z.extendShape<{
1112
2783
  "@context": z.ZodArray<z.ZodString, "many">;
1113
2784
  id: z.ZodOptional<z.ZodString>;
@@ -2884,6 +4555,20 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
2884
4555
  }[];
2885
4556
  }>;
2886
4557
  export declare type VP = z.infer<typeof VPValidator>;
4558
+ declare const VerificationCheckValidator: z.ZodObject<{
4559
+ checks: z.ZodArray<z.ZodString, "many">;
4560
+ warnings: z.ZodArray<z.ZodString, "many">;
4561
+ errors: z.ZodArray<z.ZodString, "many">;
4562
+ }, "strip", z.ZodTypeAny, {
4563
+ checks: string[];
4564
+ warnings: string[];
4565
+ errors: string[];
4566
+ }, {
4567
+ checks: string[];
4568
+ warnings: string[];
4569
+ errors: string[];
4570
+ }>;
4571
+ export declare type VerificationCheck = z.infer<typeof VerificationCheckValidator>;
2887
4572
  declare const VerificationItemValidator: z.ZodObject<{
2888
4573
  check: z.ZodString;
2889
4574
  status: z.ZodEnum<[
@@ -2905,12 +4590,26 @@ declare const VerificationItemValidator: z.ZodObject<{
2905
4590
  check: string;
2906
4591
  }>;
2907
4592
  export declare type VerificationItem = z.infer<typeof VerificationItemValidator>;
2908
- export declare type DidKeyPluginMethods = {
2909
- getSubjectDid: () => string;
2910
- getSubjectKeypair: () => {
4593
+ export declare type DidMethod = "key" | "tz" | "ethr" | `pkh:${"tz" | "tezos" | "sol" | "solana" | "eth" | "celo" | "poly" | "btc" | "doge" | "eip155" | "bip122"}` | `pkh:eip155:${string}` | `pkh:bip122:${string}`;
4594
+ export declare type KeyPair = {
4595
+ kty: string;
4596
+ crv: string;
4597
+ x: string;
4598
+ y?: string;
4599
+ d: string;
4600
+ };
4601
+ export declare type ProofOptions = {
4602
+ verificationMethod: string;
4603
+ proofPurpose: string;
4604
+ };
4605
+ export declare type Algorithm = "ed25519" | "secp256k1";
4606
+ export declare type DidKeyPluginMethods<DidMethod extends string> = {
4607
+ getSubjectDid: (type: DidMethod) => string;
4608
+ getSubjectKeypair: (type?: Algorithm) => {
2911
4609
  kty: string;
2912
4610
  crv: string;
2913
4611
  x: string;
4612
+ y?: string;
2914
4613
  d: string;
2915
4614
  };
2916
4615
  getKey: () => string;
@@ -2934,19 +4633,21 @@ export declare type IDXCredential = {
2934
4633
  export declare type CredentialsList = {
2935
4634
  credentials: IDXCredential[];
2936
4635
  };
2937
- export declare type VerificationCheck = {
2938
- checks: string[];
2939
- warnings: string[];
2940
- errors: string[];
4636
+ export declare type DependentMethods = {
4637
+ getSubjectDid: (type: "key") => string;
4638
+ getSubjectKeypair: () => KeyPair;
4639
+ keyToVerificationMethod: (type: string, keypair: KeyPair) => Promise<string>;
4640
+ issueCredential: (credential: UnsignedVC, options: ProofOptions, keypair: KeyPair) => Promise<VC>;
4641
+ verifyCredential: (credential: VC) => Promise<VerificationCheck>;
4642
+ issuePresentation: (presentation: UnsignedVP, options: ProofOptions, keypair: KeyPair) => Promise<VP>;
4643
+ verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
2941
4644
  };
2942
- export declare type VCPluginMethods = {
4645
+ export declare type VCPluginMethods = DependentMethods & {
2943
4646
  issueCredential: (credential: UnsignedVC) => Promise<VC>;
2944
4647
  verifyCredential: (credential: VC) => Promise<VerificationCheck>;
2945
4648
  issuePresentation: (credential: VC) => Promise<VP>;
2946
4649
  verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
2947
4650
  getTestVc: (subject?: string) => UnsignedVC;
2948
- getSubjectDid: () => string;
2949
- getSubjectKeypair: () => Record<string, string>;
2950
4651
  };
2951
4652
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
2952
4653
  export declare type Plugin<Name extends string, PublicMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
@@ -2976,17 +4677,18 @@ export declare type UnlockedWallet<PluginNames extends string = "", PluginMethod
2976
4677
  addPlugin: <Name extends string, Methods extends Record<string, (...args: any[]) => any> = Record<never, never>>(plugin: Plugin<Name, Methods>) => Promise<UnlockedWallet<"" extends PluginNames ? Name : PluginNames | Name, Record<never, never> extends PluginMethods ? Methods : PluginMethods & Methods>>;
2977
4678
  };
2978
4679
  export declare type Wallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = LockedWallet<PluginNames, PluginMethods> | UnlockedWallet<PluginNames, PluginMethods>;
2979
- export declare type LearnCardRawWallet = UnlockedWallet<"DID Key" | "VC" | "IDX" | "Expiration", DidKeyPluginMethods & VCPluginMethods & IDXPluginMethods>;
4680
+ export declare type LearnCardRawWallet = UnlockedWallet<"DIDKit" | "DID Key" | "VC" | "IDX" | "Expiration", DidKeyPluginMethods<DidMethod> & VCPluginMethods & IDXPluginMethods>;
2980
4681
  export declare type LearnCardWallet = {
2981
4682
  /** Raw IoE wallet instance. You shouldn't need to drop down to this level! */
2982
4683
  _wallet: LearnCardRawWallet;
2983
4684
  /** Wallet holder's did */
2984
- did: string;
4685
+ did: (type?: DidMethod) => string;
2985
4686
  /** Wallet holder's ed25519 key pair */
2986
- keypair: {
4687
+ keypair: (type?: Algorithm) => {
2987
4688
  kty: string;
2988
4689
  crv: string;
2989
4690
  x: string;
4691
+ y?: string;
2990
4692
  d: string;
2991
4693
  };
2992
4694
  /** Signs an unsigned Verifiable Credential, returning the signed VC */