@learncard/types 5.1.0 → 5.1.1
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/obv3.d.ts +67 -67
- package/dist/types.cjs.development.js +1 -1
- package/dist/types.cjs.development.js.map +2 -2
- package/dist/types.cjs.production.min.js +1 -1
- package/dist/types.cjs.production.min.js.map +2 -2
- package/dist/types.esm.js +1 -1
- package/dist/types.esm.js.map +2 -2
- package/dist/vc.d.ts +33 -33
- package/package.json +1 -1
package/dist/vc.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const ContextValidator: z.ZodArray<z.ZodString, "many">;
|
2
|
+
export declare const ContextValidator: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
3
3
|
export declare type Context = z.infer<typeof ContextValidator>;
|
4
4
|
export declare const AchievementCriteriaValidator: z.ZodObject<{
|
5
5
|
type: z.ZodOptional<z.ZodString>;
|
@@ -342,7 +342,7 @@ export declare const RefreshServiceValidator: z.ZodObject<{
|
|
342
342
|
}>;
|
343
343
|
export declare type RefreshService = z.infer<typeof RefreshServiceValidator>;
|
344
344
|
export declare const UnsignedVCValidator: z.ZodObject<{
|
345
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
345
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
346
346
|
id: z.ZodOptional<z.ZodString>;
|
347
347
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
348
348
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -601,7 +601,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
|
|
601
601
|
id: string;
|
602
602
|
} | undefined;
|
603
603
|
type: [string, ...string[]];
|
604
|
-
'@context': string[];
|
604
|
+
'@context': (string | Record<string, any>)[];
|
605
605
|
issuer: string | {
|
606
606
|
[x: string]: any;
|
607
607
|
type?: string | [string, ...string[]] | undefined;
|
@@ -674,7 +674,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
|
|
674
674
|
id: string;
|
675
675
|
} | undefined;
|
676
676
|
type: [string, ...string[]];
|
677
|
-
'@context': string[];
|
677
|
+
'@context': (string | Record<string, any>)[];
|
678
678
|
issuer: string | {
|
679
679
|
[x: string]: any;
|
680
680
|
type?: string | [string, ...string[]] | undefined;
|
@@ -763,7 +763,7 @@ export declare const ProofValidator: z.ZodObject<{
|
|
763
763
|
}>;
|
764
764
|
export declare type Proof = z.infer<typeof ProofValidator>;
|
765
765
|
export declare const VCValidator: z.ZodObject<z.extendShape<{
|
766
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
766
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
767
767
|
id: z.ZodOptional<z.ZodString>;
|
768
768
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
769
769
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -1082,7 +1082,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
1082
1082
|
id: string;
|
1083
1083
|
} | undefined;
|
1084
1084
|
type: [string, ...string[]];
|
1085
|
-
'@context': string[];
|
1085
|
+
'@context': (string | Record<string, any>)[];
|
1086
1086
|
issuer: string | {
|
1087
1087
|
[x: string]: any;
|
1088
1088
|
type?: string | [string, ...string[]] | undefined;
|
@@ -1176,7 +1176,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
1176
1176
|
id: string;
|
1177
1177
|
} | undefined;
|
1178
1178
|
type: [string, ...string[]];
|
1179
|
-
'@context': string[];
|
1179
|
+
'@context': (string | Record<string, any>)[];
|
1180
1180
|
issuer: string | {
|
1181
1181
|
[x: string]: any;
|
1182
1182
|
type?: string | [string, ...string[]] | undefined;
|
@@ -1255,11 +1255,11 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
|
|
1255
1255
|
}>;
|
1256
1256
|
export declare type VC = z.infer<typeof VCValidator>;
|
1257
1257
|
export declare const UnsignedVPValidator: z.ZodObject<{
|
1258
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
1258
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
1259
1259
|
id: z.ZodOptional<z.ZodString>;
|
1260
1260
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
1261
1261
|
verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.extendShape<{
|
1262
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
1262
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
1263
1263
|
id: z.ZodOptional<z.ZodString>;
|
1264
1264
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
1265
1265
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -1578,7 +1578,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
1578
1578
|
id: string;
|
1579
1579
|
} | undefined;
|
1580
1580
|
type: [string, ...string[]];
|
1581
|
-
'@context': string[];
|
1581
|
+
'@context': (string | Record<string, any>)[];
|
1582
1582
|
issuer: string | {
|
1583
1583
|
[x: string]: any;
|
1584
1584
|
type?: string | [string, ...string[]] | undefined;
|
@@ -1672,7 +1672,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
1672
1672
|
id: string;
|
1673
1673
|
} | undefined;
|
1674
1674
|
type: [string, ...string[]];
|
1675
|
-
'@context': string[];
|
1675
|
+
'@context': (string | Record<string, any>)[];
|
1676
1676
|
issuer: string | {
|
1677
1677
|
[x: string]: any;
|
1678
1678
|
type?: string | [string, ...string[]] | undefined;
|
@@ -1749,7 +1749,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
1749
1749
|
verificationMethod: string;
|
1750
1750
|
}[];
|
1751
1751
|
}>, z.ZodArray<z.ZodObject<z.extendShape<{
|
1752
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
1752
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
1753
1753
|
id: z.ZodOptional<z.ZodString>;
|
1754
1754
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
1755
1755
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -2068,7 +2068,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
2068
2068
|
id: string;
|
2069
2069
|
} | undefined;
|
2070
2070
|
type: [string, ...string[]];
|
2071
|
-
'@context': string[];
|
2071
|
+
'@context': (string | Record<string, any>)[];
|
2072
2072
|
issuer: string | {
|
2073
2073
|
[x: string]: any;
|
2074
2074
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2162,7 +2162,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
2162
2162
|
id: string;
|
2163
2163
|
} | undefined;
|
2164
2164
|
type: [string, ...string[]];
|
2165
|
-
'@context': string[];
|
2165
|
+
'@context': (string | Record<string, any>)[];
|
2166
2166
|
issuer: string | {
|
2167
2167
|
[x: string]: any;
|
2168
2168
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2261,7 +2261,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
2261
2261
|
id: string;
|
2262
2262
|
} | undefined;
|
2263
2263
|
type: [string, ...string[]];
|
2264
|
-
'@context': string[];
|
2264
|
+
'@context': (string | Record<string, any>)[];
|
2265
2265
|
issuer: string | {
|
2266
2266
|
[x: string]: any;
|
2267
2267
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2355,7 +2355,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
2355
2355
|
id: string;
|
2356
2356
|
} | undefined;
|
2357
2357
|
type: [string, ...string[]];
|
2358
|
-
'@context': string[];
|
2358
|
+
'@context': (string | Record<string, any>)[];
|
2359
2359
|
issuer: string | {
|
2360
2360
|
[x: string]: any;
|
2361
2361
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2434,7 +2434,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
2434
2434
|
}[] | undefined;
|
2435
2435
|
holder?: string | undefined;
|
2436
2436
|
type: [string, ...string[]];
|
2437
|
-
'@context': string[];
|
2437
|
+
'@context': (string | Record<string, any>)[];
|
2438
2438
|
}, {
|
2439
2439
|
[x: string]: any;
|
2440
2440
|
id?: string | undefined;
|
@@ -2456,7 +2456,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
2456
2456
|
id: string;
|
2457
2457
|
} | undefined;
|
2458
2458
|
type: [string, ...string[]];
|
2459
|
-
'@context': string[];
|
2459
|
+
'@context': (string | Record<string, any>)[];
|
2460
2460
|
issuer: string | {
|
2461
2461
|
[x: string]: any;
|
2462
2462
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2550,7 +2550,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
2550
2550
|
id: string;
|
2551
2551
|
} | undefined;
|
2552
2552
|
type: [string, ...string[]];
|
2553
|
-
'@context': string[];
|
2553
|
+
'@context': (string | Record<string, any>)[];
|
2554
2554
|
issuer: string | {
|
2555
2555
|
[x: string]: any;
|
2556
2556
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2629,15 +2629,15 @@ export declare const UnsignedVPValidator: z.ZodObject<{
|
|
2629
2629
|
}[] | undefined;
|
2630
2630
|
holder?: string | undefined;
|
2631
2631
|
type: [string, ...string[]];
|
2632
|
-
'@context': string[];
|
2632
|
+
'@context': (string | Record<string, any>)[];
|
2633
2633
|
}>;
|
2634
2634
|
export declare type UnsignedVP = z.infer<typeof UnsignedVPValidator>;
|
2635
2635
|
export declare const VPValidator: z.ZodObject<z.extendShape<{
|
2636
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
2636
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
2637
2637
|
id: z.ZodOptional<z.ZodString>;
|
2638
2638
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
2639
2639
|
verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.extendShape<{
|
2640
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
2640
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
2641
2641
|
id: z.ZodOptional<z.ZodString>;
|
2642
2642
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
2643
2643
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -2956,7 +2956,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
2956
2956
|
id: string;
|
2957
2957
|
} | undefined;
|
2958
2958
|
type: [string, ...string[]];
|
2959
|
-
'@context': string[];
|
2959
|
+
'@context': (string | Record<string, any>)[];
|
2960
2960
|
issuer: string | {
|
2961
2961
|
[x: string]: any;
|
2962
2962
|
type?: string | [string, ...string[]] | undefined;
|
@@ -3050,7 +3050,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3050
3050
|
id: string;
|
3051
3051
|
} | undefined;
|
3052
3052
|
type: [string, ...string[]];
|
3053
|
-
'@context': string[];
|
3053
|
+
'@context': (string | Record<string, any>)[];
|
3054
3054
|
issuer: string | {
|
3055
3055
|
[x: string]: any;
|
3056
3056
|
type?: string | [string, ...string[]] | undefined;
|
@@ -3127,7 +3127,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3127
3127
|
verificationMethod: string;
|
3128
3128
|
}[];
|
3129
3129
|
}>, z.ZodArray<z.ZodObject<z.extendShape<{
|
3130
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
3130
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
3131
3131
|
id: z.ZodOptional<z.ZodString>;
|
3132
3132
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
3133
3133
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -3446,7 +3446,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3446
3446
|
id: string;
|
3447
3447
|
} | undefined;
|
3448
3448
|
type: [string, ...string[]];
|
3449
|
-
'@context': string[];
|
3449
|
+
'@context': (string | Record<string, any>)[];
|
3450
3450
|
issuer: string | {
|
3451
3451
|
[x: string]: any;
|
3452
3452
|
type?: string | [string, ...string[]] | undefined;
|
@@ -3540,7 +3540,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3540
3540
|
id: string;
|
3541
3541
|
} | undefined;
|
3542
3542
|
type: [string, ...string[]];
|
3543
|
-
'@context': string[];
|
3543
|
+
'@context': (string | Record<string, any>)[];
|
3544
3544
|
issuer: string | {
|
3545
3545
|
[x: string]: any;
|
3546
3546
|
type?: string | [string, ...string[]] | undefined;
|
@@ -3699,7 +3699,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3699
3699
|
id: string;
|
3700
3700
|
} | undefined;
|
3701
3701
|
type: [string, ...string[]];
|
3702
|
-
'@context': string[];
|
3702
|
+
'@context': (string | Record<string, any>)[];
|
3703
3703
|
issuer: string | {
|
3704
3704
|
[x: string]: any;
|
3705
3705
|
type?: string | [string, ...string[]] | undefined;
|
@@ -3793,7 +3793,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3793
3793
|
id: string;
|
3794
3794
|
} | undefined;
|
3795
3795
|
type: [string, ...string[]];
|
3796
|
-
'@context': string[];
|
3796
|
+
'@context': (string | Record<string, any>)[];
|
3797
3797
|
issuer: string | {
|
3798
3798
|
[x: string]: any;
|
3799
3799
|
type?: string | [string, ...string[]] | undefined;
|
@@ -3872,7 +3872,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3872
3872
|
}[] | undefined;
|
3873
3873
|
holder?: string | undefined;
|
3874
3874
|
type: [string, ...string[]];
|
3875
|
-
'@context': string[];
|
3875
|
+
'@context': (string | Record<string, any>)[];
|
3876
3876
|
proof: {
|
3877
3877
|
[x: string]: any;
|
3878
3878
|
challenge?: string | undefined;
|
@@ -3915,7 +3915,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
3915
3915
|
id: string;
|
3916
3916
|
} | undefined;
|
3917
3917
|
type: [string, ...string[]];
|
3918
|
-
'@context': string[];
|
3918
|
+
'@context': (string | Record<string, any>)[];
|
3919
3919
|
issuer: string | {
|
3920
3920
|
[x: string]: any;
|
3921
3921
|
type?: string | [string, ...string[]] | undefined;
|
@@ -4009,7 +4009,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4009
4009
|
id: string;
|
4010
4010
|
} | undefined;
|
4011
4011
|
type: [string, ...string[]];
|
4012
|
-
'@context': string[];
|
4012
|
+
'@context': (string | Record<string, any>)[];
|
4013
4013
|
issuer: string | {
|
4014
4014
|
[x: string]: any;
|
4015
4015
|
type?: string | [string, ...string[]] | undefined;
|
@@ -4088,7 +4088,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
|
|
4088
4088
|
}[] | undefined;
|
4089
4089
|
holder?: string | undefined;
|
4090
4090
|
type: [string, ...string[]];
|
4091
|
-
'@context': string[];
|
4091
|
+
'@context': (string | Record<string, any>)[];
|
4092
4092
|
proof: {
|
4093
4093
|
[x: string]: any;
|
4094
4094
|
challenge?: string | undefined;
|