@learncard/types 5.3.2 → 5.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vc.d.ts CHANGED
@@ -309,10 +309,12 @@ export type CredentialSubject = z.infer<typeof CredentialSubjectValidator>;
309
309
  export declare const CredentialStatusValidator: z.ZodObject<{
310
310
  type: z.ZodString;
311
311
  id: z.ZodString;
312
- }, "strip", z.ZodTypeAny, {
312
+ }, "strip", z.ZodAny, {
313
+ [x: string]: any;
313
314
  type: string;
314
315
  id: string;
315
316
  }, {
317
+ [x: string]: any;
316
318
  type: string;
317
319
  id: string;
318
320
  }>;
@@ -320,10 +322,12 @@ export type CredentialStatus = z.infer<typeof CredentialStatusValidator>;
320
322
  export declare const CredentialSchemaValidator: z.ZodObject<{
321
323
  id: z.ZodString;
322
324
  type: z.ZodString;
323
- }, "strip", z.ZodTypeAny, {
325
+ }, "strip", z.ZodAny, {
326
+ [x: string]: any;
324
327
  type: string;
325
328
  id: string;
326
329
  }, {
330
+ [x: string]: any;
327
331
  type: string;
328
332
  id: string;
329
333
  }>;
@@ -554,20 +558,24 @@ export declare const UnsignedVCValidator: z.ZodObject<{
554
558
  credentialStatus: z.ZodOptional<z.ZodObject<{
555
559
  type: z.ZodString;
556
560
  id: z.ZodString;
557
- }, "strip", z.ZodTypeAny, {
561
+ }, "strip", z.ZodAny, {
562
+ [x: string]: any;
558
563
  type: string;
559
564
  id: string;
560
565
  }, {
566
+ [x: string]: any;
561
567
  type: string;
562
568
  id: string;
563
569
  }>>;
564
570
  credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
565
571
  id: z.ZodString;
566
572
  type: z.ZodString;
567
- }, "strip", z.ZodTypeAny, {
573
+ }, "strip", z.ZodAny, {
574
+ [x: string]: any;
568
575
  type: string;
569
576
  id: string;
570
577
  }, {
578
+ [x: string]: any;
571
579
  type: string;
572
580
  id: string;
573
581
  }>, "many">>;
@@ -588,10 +596,12 @@ export declare const UnsignedVCValidator: z.ZodObject<{
588
596
  id?: string | undefined;
589
597
  expirationDate?: string | undefined;
590
598
  credentialStatus?: {
599
+ [x: string]: any;
591
600
  type: string;
592
601
  id: string;
593
602
  } | undefined;
594
603
  credentialSchema?: {
604
+ [x: string]: any;
595
605
  type: string;
596
606
  id: string;
597
607
  }[] | undefined;
@@ -661,10 +671,12 @@ export declare const UnsignedVCValidator: z.ZodObject<{
661
671
  id?: string | undefined;
662
672
  expirationDate?: string | undefined;
663
673
  credentialStatus?: {
674
+ [x: string]: any;
664
675
  type: string;
665
676
  id: string;
666
677
  } | undefined;
667
678
  credentialSchema?: {
679
+ [x: string]: any;
668
680
  type: string;
669
681
  id: string;
670
682
  }[] | undefined;
@@ -762,10 +774,10 @@ export declare const ProofValidator: z.ZodObject<{
762
774
  verificationMethod: string;
763
775
  }>;
764
776
  export type Proof = z.infer<typeof ProofValidator>;
765
- export declare const VCValidator: z.ZodObject<{
766
- type: z.ZodArray<z.ZodString, "atleastone">;
767
- id: z.ZodOptional<z.ZodString>;
777
+ export declare const VCValidator: z.ZodObject<z.extendShape<{
768
778
  '@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
779
+ id: z.ZodOptional<z.ZodString>;
780
+ type: z.ZodArray<z.ZodString, "atleastone">;
769
781
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
770
782
  id: z.ZodOptional<z.ZodString>;
771
783
  type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
@@ -975,20 +987,24 @@ export declare const VCValidator: z.ZodObject<{
975
987
  credentialStatus: z.ZodOptional<z.ZodObject<{
976
988
  type: z.ZodString;
977
989
  id: z.ZodString;
978
- }, "strip", z.ZodTypeAny, {
990
+ }, "strip", z.ZodAny, {
991
+ [x: string]: any;
979
992
  type: string;
980
993
  id: string;
981
994
  }, {
995
+ [x: string]: any;
982
996
  type: string;
983
997
  id: string;
984
998
  }>>;
985
999
  credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
986
1000
  id: z.ZodString;
987
1001
  type: z.ZodString;
988
- }, "strip", z.ZodTypeAny, {
1002
+ }, "strip", z.ZodAny, {
1003
+ [x: string]: any;
989
1004
  type: string;
990
1005
  id: string;
991
1006
  }, {
1007
+ [x: string]: any;
992
1008
  type: string;
993
1009
  id: string;
994
1010
  }>, "many">>;
@@ -1004,6 +1020,7 @@ export declare const VCValidator: z.ZodObject<{
1004
1020
  type: string;
1005
1021
  id: string;
1006
1022
  }>>;
1023
+ }, {
1007
1024
  proof: z.ZodUnion<[z.ZodObject<{
1008
1025
  type: z.ZodString;
1009
1026
  created: z.ZodString;
@@ -1063,15 +1080,17 @@ export declare const VCValidator: z.ZodObject<{
1063
1080
  proofPurpose: string;
1064
1081
  verificationMethod: string;
1065
1082
  }>, "many">]>;
1066
- }, "strip", z.ZodAny, {
1083
+ }>, "strip", z.ZodAny, {
1067
1084
  [x: string]: any;
1068
1085
  id?: string | undefined;
1069
1086
  expirationDate?: string | undefined;
1070
1087
  credentialStatus?: {
1088
+ [x: string]: any;
1071
1089
  type: string;
1072
1090
  id: string;
1073
1091
  } | undefined;
1074
1092
  credentialSchema?: {
1093
+ [x: string]: any;
1075
1094
  type: string;
1076
1095
  id: string;
1077
1096
  }[] | undefined;
@@ -1162,10 +1181,12 @@ export declare const VCValidator: z.ZodObject<{
1162
1181
  id?: string | undefined;
1163
1182
  expirationDate?: string | undefined;
1164
1183
  credentialStatus?: {
1184
+ [x: string]: any;
1165
1185
  type: string;
1166
1186
  id: string;
1167
1187
  } | undefined;
1168
1188
  credentialSchema?: {
1189
+ [x: string]: any;
1169
1190
  type: string;
1170
1191
  id: string;
1171
1192
  }[] | undefined;
@@ -1256,11 +1277,11 @@ export type VC = z.infer<typeof VCValidator>;
1256
1277
  export declare const UnsignedVPValidator: z.ZodObject<{
1257
1278
  '@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
1258
1279
  id: z.ZodOptional<z.ZodString>;
1259
- type: z.ZodArray<z.ZodString, "atleastone">;
1260
- verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1261
- type: z.ZodArray<z.ZodString, "atleastone">;
1262
- id: z.ZodOptional<z.ZodString>;
1280
+ type: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
1281
+ verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.extendShape<{
1263
1282
  '@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
1283
+ id: z.ZodOptional<z.ZodString>;
1284
+ type: z.ZodArray<z.ZodString, "atleastone">;
1264
1285
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
1265
1286
  id: z.ZodOptional<z.ZodString>;
1266
1287
  type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
@@ -1470,20 +1491,24 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1470
1491
  credentialStatus: z.ZodOptional<z.ZodObject<{
1471
1492
  type: z.ZodString;
1472
1493
  id: z.ZodString;
1473
- }, "strip", z.ZodTypeAny, {
1494
+ }, "strip", z.ZodAny, {
1495
+ [x: string]: any;
1474
1496
  type: string;
1475
1497
  id: string;
1476
1498
  }, {
1499
+ [x: string]: any;
1477
1500
  type: string;
1478
1501
  id: string;
1479
1502
  }>>;
1480
1503
  credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1481
1504
  id: z.ZodString;
1482
1505
  type: z.ZodString;
1483
- }, "strip", z.ZodTypeAny, {
1506
+ }, "strip", z.ZodAny, {
1507
+ [x: string]: any;
1484
1508
  type: string;
1485
1509
  id: string;
1486
1510
  }, {
1511
+ [x: string]: any;
1487
1512
  type: string;
1488
1513
  id: string;
1489
1514
  }>, "many">>;
@@ -1499,6 +1524,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1499
1524
  type: string;
1500
1525
  id: string;
1501
1526
  }>>;
1527
+ }, {
1502
1528
  proof: z.ZodUnion<[z.ZodObject<{
1503
1529
  type: z.ZodString;
1504
1530
  created: z.ZodString;
@@ -1558,15 +1584,17 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1558
1584
  proofPurpose: string;
1559
1585
  verificationMethod: string;
1560
1586
  }>, "many">]>;
1561
- }, "strip", z.ZodAny, {
1587
+ }>, "strip", z.ZodAny, {
1562
1588
  [x: string]: any;
1563
1589
  id?: string | undefined;
1564
1590
  expirationDate?: string | undefined;
1565
1591
  credentialStatus?: {
1592
+ [x: string]: any;
1566
1593
  type: string;
1567
1594
  id: string;
1568
1595
  } | undefined;
1569
1596
  credentialSchema?: {
1597
+ [x: string]: any;
1570
1598
  type: string;
1571
1599
  id: string;
1572
1600
  }[] | undefined;
@@ -1657,10 +1685,12 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1657
1685
  id?: string | undefined;
1658
1686
  expirationDate?: string | undefined;
1659
1687
  credentialStatus?: {
1688
+ [x: string]: any;
1660
1689
  type: string;
1661
1690
  id: string;
1662
1691
  } | undefined;
1663
1692
  credentialSchema?: {
1693
+ [x: string]: any;
1664
1694
  type: string;
1665
1695
  id: string;
1666
1696
  }[] | undefined;
@@ -1746,10 +1776,10 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1746
1776
  proofPurpose: string;
1747
1777
  verificationMethod: string;
1748
1778
  }[];
1749
- }>, z.ZodArray<z.ZodObject<{
1750
- type: z.ZodArray<z.ZodString, "atleastone">;
1751
- id: z.ZodOptional<z.ZodString>;
1779
+ }>, z.ZodArray<z.ZodObject<z.extendShape<{
1752
1780
  '@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
1781
+ id: z.ZodOptional<z.ZodString>;
1782
+ type: z.ZodArray<z.ZodString, "atleastone">;
1753
1783
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
1754
1784
  id: z.ZodOptional<z.ZodString>;
1755
1785
  type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
@@ -1959,20 +1989,24 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1959
1989
  credentialStatus: z.ZodOptional<z.ZodObject<{
1960
1990
  type: z.ZodString;
1961
1991
  id: z.ZodString;
1962
- }, "strip", z.ZodTypeAny, {
1992
+ }, "strip", z.ZodAny, {
1993
+ [x: string]: any;
1963
1994
  type: string;
1964
1995
  id: string;
1965
1996
  }, {
1997
+ [x: string]: any;
1966
1998
  type: string;
1967
1999
  id: string;
1968
2000
  }>>;
1969
2001
  credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1970
2002
  id: z.ZodString;
1971
2003
  type: z.ZodString;
1972
- }, "strip", z.ZodTypeAny, {
2004
+ }, "strip", z.ZodAny, {
2005
+ [x: string]: any;
1973
2006
  type: string;
1974
2007
  id: string;
1975
2008
  }, {
2009
+ [x: string]: any;
1976
2010
  type: string;
1977
2011
  id: string;
1978
2012
  }>, "many">>;
@@ -1988,6 +2022,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1988
2022
  type: string;
1989
2023
  id: string;
1990
2024
  }>>;
2025
+ }, {
1991
2026
  proof: z.ZodUnion<[z.ZodObject<{
1992
2027
  type: z.ZodString;
1993
2028
  created: z.ZodString;
@@ -2047,15 +2082,17 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2047
2082
  proofPurpose: string;
2048
2083
  verificationMethod: string;
2049
2084
  }>, "many">]>;
2050
- }, "strip", z.ZodAny, {
2085
+ }>, "strip", z.ZodAny, {
2051
2086
  [x: string]: any;
2052
2087
  id?: string | undefined;
2053
2088
  expirationDate?: string | undefined;
2054
2089
  credentialStatus?: {
2090
+ [x: string]: any;
2055
2091
  type: string;
2056
2092
  id: string;
2057
2093
  } | undefined;
2058
2094
  credentialSchema?: {
2095
+ [x: string]: any;
2059
2096
  type: string;
2060
2097
  id: string;
2061
2098
  }[] | undefined;
@@ -2146,10 +2183,12 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2146
2183
  id?: string | undefined;
2147
2184
  expirationDate?: string | undefined;
2148
2185
  credentialStatus?: {
2186
+ [x: string]: any;
2149
2187
  type: string;
2150
2188
  id: string;
2151
2189
  } | undefined;
2152
2190
  credentialSchema?: {
2191
+ [x: string]: any;
2153
2192
  type: string;
2154
2193
  id: string;
2155
2194
  }[] | undefined;
@@ -2245,10 +2284,12 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2245
2284
  id?: string | undefined;
2246
2285
  expirationDate?: string | undefined;
2247
2286
  credentialStatus?: {
2287
+ [x: string]: any;
2248
2288
  type: string;
2249
2289
  id: string;
2250
2290
  } | undefined;
2251
2291
  credentialSchema?: {
2292
+ [x: string]: any;
2252
2293
  type: string;
2253
2294
  id: string;
2254
2295
  }[] | undefined;
@@ -2339,10 +2380,12 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2339
2380
  id?: string | undefined;
2340
2381
  expirationDate?: string | undefined;
2341
2382
  credentialStatus?: {
2383
+ [x: string]: any;
2342
2384
  type: string;
2343
2385
  id: string;
2344
2386
  } | undefined;
2345
2387
  credentialSchema?: {
2388
+ [x: string]: any;
2346
2389
  type: string;
2347
2390
  id: string;
2348
2391
  }[] | undefined;
@@ -2430,7 +2473,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2430
2473
  }[];
2431
2474
  }[] | undefined;
2432
2475
  holder?: string | undefined;
2433
- type: [string, ...string[]];
2476
+ type: string | [string, ...string[]];
2434
2477
  '@context': (string | Record<string, any>)[];
2435
2478
  }, {
2436
2479
  [x: string]: any;
@@ -2440,10 +2483,12 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2440
2483
  id?: string | undefined;
2441
2484
  expirationDate?: string | undefined;
2442
2485
  credentialStatus?: {
2486
+ [x: string]: any;
2443
2487
  type: string;
2444
2488
  id: string;
2445
2489
  } | undefined;
2446
2490
  credentialSchema?: {
2491
+ [x: string]: any;
2447
2492
  type: string;
2448
2493
  id: string;
2449
2494
  }[] | undefined;
@@ -2534,10 +2579,12 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2534
2579
  id?: string | undefined;
2535
2580
  expirationDate?: string | undefined;
2536
2581
  credentialStatus?: {
2582
+ [x: string]: any;
2537
2583
  type: string;
2538
2584
  id: string;
2539
2585
  } | undefined;
2540
2586
  credentialSchema?: {
2587
+ [x: string]: any;
2541
2588
  type: string;
2542
2589
  id: string;
2543
2590
  }[] | undefined;
@@ -2625,18 +2672,18 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2625
2672
  }[];
2626
2673
  }[] | undefined;
2627
2674
  holder?: string | undefined;
2628
- type: [string, ...string[]];
2675
+ type: string | [string, ...string[]];
2629
2676
  '@context': (string | Record<string, any>)[];
2630
2677
  }>;
2631
2678
  export type UnsignedVP = z.infer<typeof UnsignedVPValidator>;
2632
- export declare const VPValidator: z.ZodObject<{
2633
- type: z.ZodArray<z.ZodString, "atleastone">;
2634
- id: z.ZodOptional<z.ZodString>;
2679
+ export declare const VPValidator: z.ZodObject<z.extendShape<{
2635
2680
  '@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
2636
- verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2637
- type: z.ZodArray<z.ZodString, "atleastone">;
2638
- id: z.ZodOptional<z.ZodString>;
2681
+ id: z.ZodOptional<z.ZodString>;
2682
+ type: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
2683
+ verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.extendShape<{
2639
2684
  '@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
2685
+ id: z.ZodOptional<z.ZodString>;
2686
+ type: z.ZodArray<z.ZodString, "atleastone">;
2640
2687
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
2641
2688
  id: z.ZodOptional<z.ZodString>;
2642
2689
  type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
@@ -2846,20 +2893,24 @@ export declare const VPValidator: z.ZodObject<{
2846
2893
  credentialStatus: z.ZodOptional<z.ZodObject<{
2847
2894
  type: z.ZodString;
2848
2895
  id: z.ZodString;
2849
- }, "strip", z.ZodTypeAny, {
2896
+ }, "strip", z.ZodAny, {
2897
+ [x: string]: any;
2850
2898
  type: string;
2851
2899
  id: string;
2852
2900
  }, {
2901
+ [x: string]: any;
2853
2902
  type: string;
2854
2903
  id: string;
2855
2904
  }>>;
2856
2905
  credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
2857
2906
  id: z.ZodString;
2858
2907
  type: z.ZodString;
2859
- }, "strip", z.ZodTypeAny, {
2908
+ }, "strip", z.ZodAny, {
2909
+ [x: string]: any;
2860
2910
  type: string;
2861
2911
  id: string;
2862
2912
  }, {
2913
+ [x: string]: any;
2863
2914
  type: string;
2864
2915
  id: string;
2865
2916
  }>, "many">>;
@@ -2875,6 +2926,7 @@ export declare const VPValidator: z.ZodObject<{
2875
2926
  type: string;
2876
2927
  id: string;
2877
2928
  }>>;
2929
+ }, {
2878
2930
  proof: z.ZodUnion<[z.ZodObject<{
2879
2931
  type: z.ZodString;
2880
2932
  created: z.ZodString;
@@ -2934,15 +2986,17 @@ export declare const VPValidator: z.ZodObject<{
2934
2986
  proofPurpose: string;
2935
2987
  verificationMethod: string;
2936
2988
  }>, "many">]>;
2937
- }, "strip", z.ZodAny, {
2989
+ }>, "strip", z.ZodAny, {
2938
2990
  [x: string]: any;
2939
2991
  id?: string | undefined;
2940
2992
  expirationDate?: string | undefined;
2941
2993
  credentialStatus?: {
2994
+ [x: string]: any;
2942
2995
  type: string;
2943
2996
  id: string;
2944
2997
  } | undefined;
2945
2998
  credentialSchema?: {
2999
+ [x: string]: any;
2946
3000
  type: string;
2947
3001
  id: string;
2948
3002
  }[] | undefined;
@@ -3033,10 +3087,12 @@ export declare const VPValidator: z.ZodObject<{
3033
3087
  id?: string | undefined;
3034
3088
  expirationDate?: string | undefined;
3035
3089
  credentialStatus?: {
3090
+ [x: string]: any;
3036
3091
  type: string;
3037
3092
  id: string;
3038
3093
  } | undefined;
3039
3094
  credentialSchema?: {
3095
+ [x: string]: any;
3040
3096
  type: string;
3041
3097
  id: string;
3042
3098
  }[] | undefined;
@@ -3122,10 +3178,10 @@ export declare const VPValidator: z.ZodObject<{
3122
3178
  proofPurpose: string;
3123
3179
  verificationMethod: string;
3124
3180
  }[];
3125
- }>, z.ZodArray<z.ZodObject<{
3126
- type: z.ZodArray<z.ZodString, "atleastone">;
3127
- id: z.ZodOptional<z.ZodString>;
3181
+ }>, z.ZodArray<z.ZodObject<z.extendShape<{
3128
3182
  '@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
3183
+ id: z.ZodOptional<z.ZodString>;
3184
+ type: z.ZodArray<z.ZodString, "atleastone">;
3129
3185
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
3130
3186
  id: z.ZodOptional<z.ZodString>;
3131
3187
  type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
@@ -3335,20 +3391,24 @@ export declare const VPValidator: z.ZodObject<{
3335
3391
  credentialStatus: z.ZodOptional<z.ZodObject<{
3336
3392
  type: z.ZodString;
3337
3393
  id: z.ZodString;
3338
- }, "strip", z.ZodTypeAny, {
3394
+ }, "strip", z.ZodAny, {
3395
+ [x: string]: any;
3339
3396
  type: string;
3340
3397
  id: string;
3341
3398
  }, {
3399
+ [x: string]: any;
3342
3400
  type: string;
3343
3401
  id: string;
3344
3402
  }>>;
3345
3403
  credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
3346
3404
  id: z.ZodString;
3347
3405
  type: z.ZodString;
3348
- }, "strip", z.ZodTypeAny, {
3406
+ }, "strip", z.ZodAny, {
3407
+ [x: string]: any;
3349
3408
  type: string;
3350
3409
  id: string;
3351
3410
  }, {
3411
+ [x: string]: any;
3352
3412
  type: string;
3353
3413
  id: string;
3354
3414
  }>, "many">>;
@@ -3364,6 +3424,7 @@ export declare const VPValidator: z.ZodObject<{
3364
3424
  type: string;
3365
3425
  id: string;
3366
3426
  }>>;
3427
+ }, {
3367
3428
  proof: z.ZodUnion<[z.ZodObject<{
3368
3429
  type: z.ZodString;
3369
3430
  created: z.ZodString;
@@ -3423,15 +3484,17 @@ export declare const VPValidator: z.ZodObject<{
3423
3484
  proofPurpose: string;
3424
3485
  verificationMethod: string;
3425
3486
  }>, "many">]>;
3426
- }, "strip", z.ZodAny, {
3487
+ }>, "strip", z.ZodAny, {
3427
3488
  [x: string]: any;
3428
3489
  id?: string | undefined;
3429
3490
  expirationDate?: string | undefined;
3430
3491
  credentialStatus?: {
3492
+ [x: string]: any;
3431
3493
  type: string;
3432
3494
  id: string;
3433
3495
  } | undefined;
3434
3496
  credentialSchema?: {
3497
+ [x: string]: any;
3435
3498
  type: string;
3436
3499
  id: string;
3437
3500
  }[] | undefined;
@@ -3522,10 +3585,12 @@ export declare const VPValidator: z.ZodObject<{
3522
3585
  id?: string | undefined;
3523
3586
  expirationDate?: string | undefined;
3524
3587
  credentialStatus?: {
3588
+ [x: string]: any;
3525
3589
  type: string;
3526
3590
  id: string;
3527
3591
  } | undefined;
3528
3592
  credentialSchema?: {
3593
+ [x: string]: any;
3529
3594
  type: string;
3530
3595
  id: string;
3531
3596
  }[] | undefined;
@@ -3613,6 +3678,7 @@ export declare const VPValidator: z.ZodObject<{
3613
3678
  }[];
3614
3679
  }>, "many">]>>;
3615
3680
  holder: z.ZodOptional<z.ZodString>;
3681
+ }, {
3616
3682
  proof: z.ZodUnion<[z.ZodObject<{
3617
3683
  type: z.ZodString;
3618
3684
  created: z.ZodString;
@@ -3672,7 +3738,7 @@ export declare const VPValidator: z.ZodObject<{
3672
3738
  proofPurpose: string;
3673
3739
  verificationMethod: string;
3674
3740
  }>, "many">]>;
3675
- }, "strip", z.ZodAny, {
3741
+ }>, "strip", z.ZodAny, {
3676
3742
  [x: string]: any;
3677
3743
  id?: string | undefined;
3678
3744
  verifiableCredential?: {
@@ -3680,10 +3746,12 @@ export declare const VPValidator: z.ZodObject<{
3680
3746
  id?: string | undefined;
3681
3747
  expirationDate?: string | undefined;
3682
3748
  credentialStatus?: {
3749
+ [x: string]: any;
3683
3750
  type: string;
3684
3751
  id: string;
3685
3752
  } | undefined;
3686
3753
  credentialSchema?: {
3754
+ [x: string]: any;
3687
3755
  type: string;
3688
3756
  id: string;
3689
3757
  }[] | undefined;
@@ -3774,10 +3842,12 @@ export declare const VPValidator: z.ZodObject<{
3774
3842
  id?: string | undefined;
3775
3843
  expirationDate?: string | undefined;
3776
3844
  credentialStatus?: {
3845
+ [x: string]: any;
3777
3846
  type: string;
3778
3847
  id: string;
3779
3848
  } | undefined;
3780
3849
  credentialSchema?: {
3850
+ [x: string]: any;
3781
3851
  type: string;
3782
3852
  id: string;
3783
3853
  }[] | undefined;
@@ -3865,7 +3935,7 @@ export declare const VPValidator: z.ZodObject<{
3865
3935
  }[];
3866
3936
  }[] | undefined;
3867
3937
  holder?: string | undefined;
3868
- type: [string, ...string[]];
3938
+ type: string | [string, ...string[]];
3869
3939
  '@context': (string | Record<string, any>)[];
3870
3940
  proof: {
3871
3941
  [x: string]: any;
@@ -3896,10 +3966,12 @@ export declare const VPValidator: z.ZodObject<{
3896
3966
  id?: string | undefined;
3897
3967
  expirationDate?: string | undefined;
3898
3968
  credentialStatus?: {
3969
+ [x: string]: any;
3899
3970
  type: string;
3900
3971
  id: string;
3901
3972
  } | undefined;
3902
3973
  credentialSchema?: {
3974
+ [x: string]: any;
3903
3975
  type: string;
3904
3976
  id: string;
3905
3977
  }[] | undefined;
@@ -3990,10 +4062,12 @@ export declare const VPValidator: z.ZodObject<{
3990
4062
  id?: string | undefined;
3991
4063
  expirationDate?: string | undefined;
3992
4064
  credentialStatus?: {
4065
+ [x: string]: any;
3993
4066
  type: string;
3994
4067
  id: string;
3995
4068
  } | undefined;
3996
4069
  credentialSchema?: {
4070
+ [x: string]: any;
3997
4071
  type: string;
3998
4072
  id: string;
3999
4073
  }[] | undefined;
@@ -4081,7 +4155,7 @@ export declare const VPValidator: z.ZodObject<{
4081
4155
  }[];
4082
4156
  }[] | undefined;
4083
4157
  holder?: string | undefined;
4084
- type: [string, ...string[]];
4158
+ type: string | [string, ...string[]];
4085
4159
  '@context': (string | Record<string, any>)[];
4086
4160
  proof: {
4087
4161
  [x: string]: any;
@@ -4106,3 +4180,4 @@ export declare const VPValidator: z.ZodObject<{
4106
4180
  }[];
4107
4181
  }>;
4108
4182
  export type VP = z.infer<typeof VPValidator>;
4183
+ //# sourceMappingURL=vc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vc.d.ts","sourceRoot":"","sources":["../src/vc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,mFAA4C,CAAC;AAC1E,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEvD,eAAO,MAAM,4BAA4B;;;;;;;;;EAGvC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAE/E,eAAO,MAAM,cAAc;;;;;;;;;;;;IAM1B,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEnD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtB,CAAC;AACH,MAAM,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
package/dist/wasm.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
2
+ //# sourceMappingURL=wasm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm.d.ts","sourceRoot":"","sources":["../src/wasm.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,GAAG,GAAG,QAAQ,GAAG,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learncard/types",
3
- "version": "5.3.2",
3
+ "version": "5.3.4",
4
4
  "description": "Shared types for learn card",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/types.esm.js",