@learncard/types 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/vc.d.ts CHANGED
@@ -110,7 +110,7 @@ export declare const IdentifierEntryValidator: z.ZodObject<{
110
110
  export declare type IdentifierEntry = z.infer<typeof IdentifierEntryValidator>;
111
111
  export declare const ProfileValidator: z.ZodUnion<[z.ZodString, z.ZodObject<{
112
112
  id: z.ZodOptional<z.ZodString>;
113
- type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
113
+ type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
114
114
  name: z.ZodOptional<z.ZodString>;
115
115
  url: z.ZodOptional<z.ZodString>;
116
116
  phone: z.ZodOptional<z.ZodString>;
@@ -206,7 +206,7 @@ export declare const ProfileValidator: z.ZodUnion<[z.ZodString, z.ZodObject<{
206
206
  dateOfBirth: z.ZodOptional<z.ZodString>;
207
207
  }, "strip", z.ZodAny, {
208
208
  [x: string]: any;
209
- type?: [string, ...string[]] | undefined;
209
+ type?: string | [string, ...string[]] | undefined;
210
210
  id?: string | undefined;
211
211
  name?: string | undefined;
212
212
  url?: string | undefined;
@@ -251,7 +251,7 @@ export declare const ProfileValidator: z.ZodUnion<[z.ZodString, z.ZodObject<{
251
251
  dateOfBirth?: string | undefined;
252
252
  }, {
253
253
  [x: string]: any;
254
- type?: [string, ...string[]] | undefined;
254
+ type?: string | [string, ...string[]] | undefined;
255
255
  id?: string | undefined;
256
256
  name?: string | undefined;
257
257
  url?: string | undefined;
@@ -347,7 +347,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
347
347
  type: z.ZodArray<z.ZodString, "atleastone">;
348
348
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
349
349
  id: z.ZodOptional<z.ZodString>;
350
- type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
350
+ type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
351
351
  name: z.ZodOptional<z.ZodString>;
352
352
  url: z.ZodOptional<z.ZodString>;
353
353
  phone: z.ZodOptional<z.ZodString>;
@@ -443,7 +443,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
443
443
  dateOfBirth: z.ZodOptional<z.ZodString>;
444
444
  }, "strip", z.ZodAny, {
445
445
  [x: string]: any;
446
- type?: [string, ...string[]] | undefined;
446
+ type?: string | [string, ...string[]] | undefined;
447
447
  id?: string | undefined;
448
448
  name?: string | undefined;
449
449
  url?: string | undefined;
@@ -488,7 +488,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
488
488
  dateOfBirth?: string | undefined;
489
489
  }, {
490
490
  [x: string]: any;
491
- type?: [string, ...string[]] | undefined;
491
+ type?: string | [string, ...string[]] | undefined;
492
492
  id?: string | undefined;
493
493
  name?: string | undefined;
494
494
  url?: string | undefined;
@@ -604,7 +604,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
604
604
  '@context': string[];
605
605
  issuer: string | {
606
606
  [x: string]: any;
607
- type?: [string, ...string[]] | undefined;
607
+ type?: string | [string, ...string[]] | undefined;
608
608
  id?: string | undefined;
609
609
  name?: string | undefined;
610
610
  url?: string | undefined;
@@ -677,7 +677,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
677
677
  '@context': string[];
678
678
  issuer: string | {
679
679
  [x: string]: any;
680
- type?: [string, ...string[]] | undefined;
680
+ type?: string | [string, ...string[]] | undefined;
681
681
  id?: string | undefined;
682
682
  name?: string | undefined;
683
683
  url?: string | undefined;
@@ -768,7 +768,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
768
768
  type: z.ZodArray<z.ZodString, "atleastone">;
769
769
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
770
770
  id: z.ZodOptional<z.ZodString>;
771
- type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
771
+ type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
772
772
  name: z.ZodOptional<z.ZodString>;
773
773
  url: z.ZodOptional<z.ZodString>;
774
774
  phone: z.ZodOptional<z.ZodString>;
@@ -864,7 +864,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
864
864
  dateOfBirth: z.ZodOptional<z.ZodString>;
865
865
  }, "strip", z.ZodAny, {
866
866
  [x: string]: any;
867
- type?: [string, ...string[]] | undefined;
867
+ type?: string | [string, ...string[]] | undefined;
868
868
  id?: string | undefined;
869
869
  name?: string | undefined;
870
870
  url?: string | undefined;
@@ -909,7 +909,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
909
909
  dateOfBirth?: string | undefined;
910
910
  }, {
911
911
  [x: string]: any;
912
- type?: [string, ...string[]] | undefined;
912
+ type?: string | [string, ...string[]] | undefined;
913
913
  id?: string | undefined;
914
914
  name?: string | undefined;
915
915
  url?: string | undefined;
@@ -1085,7 +1085,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1085
1085
  '@context': string[];
1086
1086
  issuer: string | {
1087
1087
  [x: string]: any;
1088
- type?: [string, ...string[]] | undefined;
1088
+ type?: string | [string, ...string[]] | undefined;
1089
1089
  id?: string | undefined;
1090
1090
  name?: string | undefined;
1091
1091
  url?: string | undefined;
@@ -1179,7 +1179,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1179
1179
  '@context': string[];
1180
1180
  issuer: string | {
1181
1181
  [x: string]: any;
1182
- type?: [string, ...string[]] | undefined;
1182
+ type?: string | [string, ...string[]] | undefined;
1183
1183
  id?: string | undefined;
1184
1184
  name?: string | undefined;
1185
1185
  url?: string | undefined;
@@ -1264,7 +1264,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1264
1264
  type: z.ZodArray<z.ZodString, "atleastone">;
1265
1265
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
1266
1266
  id: z.ZodOptional<z.ZodString>;
1267
- type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1267
+ type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
1268
1268
  name: z.ZodOptional<z.ZodString>;
1269
1269
  url: z.ZodOptional<z.ZodString>;
1270
1270
  phone: z.ZodOptional<z.ZodString>;
@@ -1360,7 +1360,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1360
1360
  dateOfBirth: z.ZodOptional<z.ZodString>;
1361
1361
  }, "strip", z.ZodAny, {
1362
1362
  [x: string]: any;
1363
- type?: [string, ...string[]] | undefined;
1363
+ type?: string | [string, ...string[]] | undefined;
1364
1364
  id?: string | undefined;
1365
1365
  name?: string | undefined;
1366
1366
  url?: string | undefined;
@@ -1405,7 +1405,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1405
1405
  dateOfBirth?: string | undefined;
1406
1406
  }, {
1407
1407
  [x: string]: any;
1408
- type?: [string, ...string[]] | undefined;
1408
+ type?: string | [string, ...string[]] | undefined;
1409
1409
  id?: string | undefined;
1410
1410
  name?: string | undefined;
1411
1411
  url?: string | undefined;
@@ -1581,7 +1581,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1581
1581
  '@context': string[];
1582
1582
  issuer: string | {
1583
1583
  [x: string]: any;
1584
- type?: [string, ...string[]] | undefined;
1584
+ type?: string | [string, ...string[]] | undefined;
1585
1585
  id?: string | undefined;
1586
1586
  name?: string | undefined;
1587
1587
  url?: string | undefined;
@@ -1675,7 +1675,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1675
1675
  '@context': string[];
1676
1676
  issuer: string | {
1677
1677
  [x: string]: any;
1678
- type?: [string, ...string[]] | undefined;
1678
+ type?: string | [string, ...string[]] | undefined;
1679
1679
  id?: string | undefined;
1680
1680
  name?: string | undefined;
1681
1681
  url?: string | undefined;
@@ -1754,7 +1754,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1754
1754
  type: z.ZodArray<z.ZodString, "atleastone">;
1755
1755
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
1756
1756
  id: z.ZodOptional<z.ZodString>;
1757
- type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1757
+ type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
1758
1758
  name: z.ZodOptional<z.ZodString>;
1759
1759
  url: z.ZodOptional<z.ZodString>;
1760
1760
  phone: z.ZodOptional<z.ZodString>;
@@ -1850,7 +1850,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1850
1850
  dateOfBirth: z.ZodOptional<z.ZodString>;
1851
1851
  }, "strip", z.ZodAny, {
1852
1852
  [x: string]: any;
1853
- type?: [string, ...string[]] | undefined;
1853
+ type?: string | [string, ...string[]] | undefined;
1854
1854
  id?: string | undefined;
1855
1855
  name?: string | undefined;
1856
1856
  url?: string | undefined;
@@ -1895,7 +1895,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1895
1895
  dateOfBirth?: string | undefined;
1896
1896
  }, {
1897
1897
  [x: string]: any;
1898
- type?: [string, ...string[]] | undefined;
1898
+ type?: string | [string, ...string[]] | undefined;
1899
1899
  id?: string | undefined;
1900
1900
  name?: string | undefined;
1901
1901
  url?: string | undefined;
@@ -2071,7 +2071,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2071
2071
  '@context': string[];
2072
2072
  issuer: string | {
2073
2073
  [x: string]: any;
2074
- type?: [string, ...string[]] | undefined;
2074
+ type?: string | [string, ...string[]] | undefined;
2075
2075
  id?: string | undefined;
2076
2076
  name?: string | undefined;
2077
2077
  url?: string | undefined;
@@ -2165,7 +2165,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2165
2165
  '@context': string[];
2166
2166
  issuer: string | {
2167
2167
  [x: string]: any;
2168
- type?: [string, ...string[]] | undefined;
2168
+ type?: string | [string, ...string[]] | undefined;
2169
2169
  id?: string | undefined;
2170
2170
  name?: string | undefined;
2171
2171
  url?: string | undefined;
@@ -2267,7 +2267,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2267
2267
  '@context': string[];
2268
2268
  issuer: string | {
2269
2269
  [x: string]: any;
2270
- type?: [string, ...string[]] | undefined;
2270
+ type?: string | [string, ...string[]] | undefined;
2271
2271
  id?: string | undefined;
2272
2272
  name?: string | undefined;
2273
2273
  url?: string | undefined;
@@ -2361,7 +2361,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2361
2361
  '@context': string[];
2362
2362
  issuer: string | {
2363
2363
  [x: string]: any;
2364
- type?: [string, ...string[]] | undefined;
2364
+ type?: string | [string, ...string[]] | undefined;
2365
2365
  id?: string | undefined;
2366
2366
  name?: string | undefined;
2367
2367
  url?: string | undefined;
@@ -2462,7 +2462,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2462
2462
  '@context': string[];
2463
2463
  issuer: string | {
2464
2464
  [x: string]: any;
2465
- type?: [string, ...string[]] | undefined;
2465
+ type?: string | [string, ...string[]] | undefined;
2466
2466
  id?: string | undefined;
2467
2467
  name?: string | undefined;
2468
2468
  url?: string | undefined;
@@ -2556,7 +2556,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
2556
2556
  '@context': string[];
2557
2557
  issuer: string | {
2558
2558
  [x: string]: any;
2559
- type?: [string, ...string[]] | undefined;
2559
+ type?: string | [string, ...string[]] | undefined;
2560
2560
  id?: string | undefined;
2561
2561
  name?: string | undefined;
2562
2562
  url?: string | undefined;
@@ -2642,7 +2642,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2642
2642
  type: z.ZodArray<z.ZodString, "atleastone">;
2643
2643
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
2644
2644
  id: z.ZodOptional<z.ZodString>;
2645
- type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
2645
+ type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
2646
2646
  name: z.ZodOptional<z.ZodString>;
2647
2647
  url: z.ZodOptional<z.ZodString>;
2648
2648
  phone: z.ZodOptional<z.ZodString>;
@@ -2738,7 +2738,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2738
2738
  dateOfBirth: z.ZodOptional<z.ZodString>;
2739
2739
  }, "strip", z.ZodAny, {
2740
2740
  [x: string]: any;
2741
- type?: [string, ...string[]] | undefined;
2741
+ type?: string | [string, ...string[]] | undefined;
2742
2742
  id?: string | undefined;
2743
2743
  name?: string | undefined;
2744
2744
  url?: string | undefined;
@@ -2783,7 +2783,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2783
2783
  dateOfBirth?: string | undefined;
2784
2784
  }, {
2785
2785
  [x: string]: any;
2786
- type?: [string, ...string[]] | undefined;
2786
+ type?: string | [string, ...string[]] | undefined;
2787
2787
  id?: string | undefined;
2788
2788
  name?: string | undefined;
2789
2789
  url?: string | undefined;
@@ -2959,7 +2959,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2959
2959
  '@context': string[];
2960
2960
  issuer: string | {
2961
2961
  [x: string]: any;
2962
- type?: [string, ...string[]] | undefined;
2962
+ type?: string | [string, ...string[]] | undefined;
2963
2963
  id?: string | undefined;
2964
2964
  name?: string | undefined;
2965
2965
  url?: string | undefined;
@@ -3053,7 +3053,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3053
3053
  '@context': string[];
3054
3054
  issuer: string | {
3055
3055
  [x: string]: any;
3056
- type?: [string, ...string[]] | undefined;
3056
+ type?: string | [string, ...string[]] | undefined;
3057
3057
  id?: string | undefined;
3058
3058
  name?: string | undefined;
3059
3059
  url?: string | undefined;
@@ -3132,7 +3132,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3132
3132
  type: z.ZodArray<z.ZodString, "atleastone">;
3133
3133
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
3134
3134
  id: z.ZodOptional<z.ZodString>;
3135
- type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
3135
+ type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
3136
3136
  name: z.ZodOptional<z.ZodString>;
3137
3137
  url: z.ZodOptional<z.ZodString>;
3138
3138
  phone: z.ZodOptional<z.ZodString>;
@@ -3228,7 +3228,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3228
3228
  dateOfBirth: z.ZodOptional<z.ZodString>;
3229
3229
  }, "strip", z.ZodAny, {
3230
3230
  [x: string]: any;
3231
- type?: [string, ...string[]] | undefined;
3231
+ type?: string | [string, ...string[]] | undefined;
3232
3232
  id?: string | undefined;
3233
3233
  name?: string | undefined;
3234
3234
  url?: string | undefined;
@@ -3273,7 +3273,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3273
3273
  dateOfBirth?: string | undefined;
3274
3274
  }, {
3275
3275
  [x: string]: any;
3276
- type?: [string, ...string[]] | undefined;
3276
+ type?: string | [string, ...string[]] | undefined;
3277
3277
  id?: string | undefined;
3278
3278
  name?: string | undefined;
3279
3279
  url?: string | undefined;
@@ -3449,7 +3449,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3449
3449
  '@context': string[];
3450
3450
  issuer: string | {
3451
3451
  [x: string]: any;
3452
- type?: [string, ...string[]] | undefined;
3452
+ type?: string | [string, ...string[]] | undefined;
3453
3453
  id?: string | undefined;
3454
3454
  name?: string | undefined;
3455
3455
  url?: string | undefined;
@@ -3543,7 +3543,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3543
3543
  '@context': string[];
3544
3544
  issuer: string | {
3545
3545
  [x: string]: any;
3546
- type?: [string, ...string[]] | undefined;
3546
+ type?: string | [string, ...string[]] | undefined;
3547
3547
  id?: string | undefined;
3548
3548
  name?: string | undefined;
3549
3549
  url?: string | undefined;
@@ -3726,7 +3726,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3726
3726
  '@context': string[];
3727
3727
  issuer: string | {
3728
3728
  [x: string]: any;
3729
- type?: [string, ...string[]] | undefined;
3729
+ type?: string | [string, ...string[]] | undefined;
3730
3730
  id?: string | undefined;
3731
3731
  name?: string | undefined;
3732
3732
  url?: string | undefined;
@@ -3820,7 +3820,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3820
3820
  '@context': string[];
3821
3821
  issuer: string | {
3822
3822
  [x: string]: any;
3823
- type?: [string, ...string[]] | undefined;
3823
+ type?: string | [string, ...string[]] | undefined;
3824
3824
  id?: string | undefined;
3825
3825
  name?: string | undefined;
3826
3826
  url?: string | undefined;
@@ -3942,7 +3942,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
3942
3942
  '@context': string[];
3943
3943
  issuer: string | {
3944
3944
  [x: string]: any;
3945
- type?: [string, ...string[]] | undefined;
3945
+ type?: string | [string, ...string[]] | undefined;
3946
3946
  id?: string | undefined;
3947
3947
  name?: string | undefined;
3948
3948
  url?: string | undefined;
@@ -4036,7 +4036,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
4036
4036
  '@context': string[];
4037
4037
  issuer: string | {
4038
4038
  [x: string]: any;
4039
- type?: [string, ...string[]] | undefined;
4039
+ type?: string | [string, ...string[]] | undefined;
4040
4040
  id?: string | undefined;
4041
4041
  name?: string | undefined;
4042
4042
  url?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learncard/types",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Shared types for learn card",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/types.esm.js",