@learncard/types 5.0.1 → 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 +2 -2
- 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 +2 -2
- package/dist/types.esm.js.map +2 -2
- package/dist/vc.d.ts +74 -74
- package/package.json +1 -1
package/dist/obv3.d.ts
CHANGED
@@ -59,7 +59,7 @@ export declare const EndorsementSubjectValidator: z.ZodObject<{
|
|
59
59
|
}>;
|
60
60
|
export declare type EndorsementSubject = z.infer<typeof EndorsementSubjectValidator>;
|
61
61
|
export declare const EndorsementCredentialValidator: z.ZodObject<z.extendShape<{
|
62
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
62
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
63
63
|
id: z.ZodOptional<z.ZodString>;
|
64
64
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
65
65
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -412,7 +412,7 @@ export declare const EndorsementCredentialValidator: z.ZodObject<z.extendShape<{
|
|
412
412
|
verificationMethod: string;
|
413
413
|
}[] | undefined;
|
414
414
|
type: [string, ...string[]];
|
415
|
-
'@context': string[];
|
415
|
+
'@context': (string | Record<string, any>)[];
|
416
416
|
issuer: string | {
|
417
417
|
[x: string]: any;
|
418
418
|
type?: string | [string, ...string[]] | undefined;
|
@@ -504,7 +504,7 @@ export declare const EndorsementCredentialValidator: z.ZodObject<z.extendShape<{
|
|
504
504
|
verificationMethod: string;
|
505
505
|
}[] | undefined;
|
506
506
|
type: [string, ...string[]];
|
507
|
-
'@context': string[];
|
507
|
+
'@context': (string | Record<string, any>)[];
|
508
508
|
issuer: string | {
|
509
509
|
[x: string]: any;
|
510
510
|
type?: string | [string, ...string[]] | undefined;
|
@@ -1054,7 +1054,7 @@ export declare const AchievementValidator: z.ZodObject<{
|
|
1054
1054
|
}>;
|
1055
1055
|
description: z.ZodString;
|
1056
1056
|
endorsement: z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<{
|
1057
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
1057
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
1058
1058
|
id: z.ZodOptional<z.ZodString>;
|
1059
1059
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
1060
1060
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -1407,7 +1407,7 @@ export declare const AchievementValidator: z.ZodObject<{
|
|
1407
1407
|
verificationMethod: string;
|
1408
1408
|
}[] | undefined;
|
1409
1409
|
type: [string, ...string[]];
|
1410
|
-
'@context': string[];
|
1410
|
+
'@context': (string | Record<string, any>)[];
|
1411
1411
|
issuer: string | {
|
1412
1412
|
[x: string]: any;
|
1413
1413
|
type?: string | [string, ...string[]] | undefined;
|
@@ -1499,7 +1499,7 @@ export declare const AchievementValidator: z.ZodObject<{
|
|
1499
1499
|
verificationMethod: string;
|
1500
1500
|
}[] | undefined;
|
1501
1501
|
type: [string, ...string[]];
|
1502
|
-
'@context': string[];
|
1502
|
+
'@context': (string | Record<string, any>)[];
|
1503
1503
|
issuer: string | {
|
1504
1504
|
[x: string]: any;
|
1505
1505
|
type?: string | [string, ...string[]] | undefined;
|
@@ -1820,7 +1820,7 @@ export declare const AchievementValidator: z.ZodObject<{
|
|
1820
1820
|
verificationMethod: string;
|
1821
1821
|
}[] | undefined;
|
1822
1822
|
type: [string, ...string[]];
|
1823
|
-
'@context': string[];
|
1823
|
+
'@context': (string | Record<string, any>)[];
|
1824
1824
|
issuer: string | {
|
1825
1825
|
[x: string]: any;
|
1826
1826
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2041,7 +2041,7 @@ export declare const AchievementValidator: z.ZodObject<{
|
|
2041
2041
|
verificationMethod: string;
|
2042
2042
|
}[] | undefined;
|
2043
2043
|
type: [string, ...string[]];
|
2044
|
-
'@context': string[];
|
2044
|
+
'@context': (string | Record<string, any>)[];
|
2045
2045
|
issuer: string | {
|
2046
2046
|
[x: string]: any;
|
2047
2047
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2546,7 +2546,7 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
2546
2546
|
}>;
|
2547
2547
|
description: z.ZodString;
|
2548
2548
|
endorsement: z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<{
|
2549
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
2549
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
2550
2550
|
id: z.ZodOptional<z.ZodString>;
|
2551
2551
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
2552
2552
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -2899,7 +2899,7 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
2899
2899
|
verificationMethod: string;
|
2900
2900
|
}[] | undefined;
|
2901
2901
|
type: [string, ...string[]];
|
2902
|
-
'@context': string[];
|
2902
|
+
'@context': (string | Record<string, any>)[];
|
2903
2903
|
issuer: string | {
|
2904
2904
|
[x: string]: any;
|
2905
2905
|
type?: string | [string, ...string[]] | undefined;
|
@@ -2991,7 +2991,7 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
2991
2991
|
verificationMethod: string;
|
2992
2992
|
}[] | undefined;
|
2993
2993
|
type: [string, ...string[]];
|
2994
|
-
'@context': string[];
|
2994
|
+
'@context': (string | Record<string, any>)[];
|
2995
2995
|
issuer: string | {
|
2996
2996
|
[x: string]: any;
|
2997
2997
|
type?: string | [string, ...string[]] | undefined;
|
@@ -3312,7 +3312,7 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
3312
3312
|
verificationMethod: string;
|
3313
3313
|
}[] | undefined;
|
3314
3314
|
type: [string, ...string[]];
|
3315
|
-
'@context': string[];
|
3315
|
+
'@context': (string | Record<string, any>)[];
|
3316
3316
|
issuer: string | {
|
3317
3317
|
[x: string]: any;
|
3318
3318
|
type?: string | [string, ...string[]] | undefined;
|
@@ -3533,7 +3533,7 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
3533
3533
|
verificationMethod: string;
|
3534
3534
|
}[] | undefined;
|
3535
3535
|
type: [string, ...string[]];
|
3536
|
-
'@context': string[];
|
3536
|
+
'@context': (string | Record<string, any>)[];
|
3537
3537
|
issuer: string | {
|
3538
3538
|
[x: string]: any;
|
3539
3539
|
type?: string | [string, ...string[]] | undefined;
|
@@ -4061,7 +4061,7 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
4061
4061
|
verificationMethod: string;
|
4062
4062
|
}[] | undefined;
|
4063
4063
|
type: [string, ...string[]];
|
4064
|
-
'@context': string[];
|
4064
|
+
'@context': (string | Record<string, any>)[];
|
4065
4065
|
issuer: string | {
|
4066
4066
|
[x: string]: any;
|
4067
4067
|
type?: string | [string, ...string[]] | undefined;
|
@@ -4369,7 +4369,7 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
4369
4369
|
verificationMethod: string;
|
4370
4370
|
}[] | undefined;
|
4371
4371
|
type: [string, ...string[]];
|
4372
|
-
'@context': string[];
|
4372
|
+
'@context': (string | Record<string, any>)[];
|
4373
4373
|
issuer: string | {
|
4374
4374
|
[x: string]: any;
|
4375
4375
|
type?: string | [string, ...string[]] | undefined;
|
@@ -4647,7 +4647,7 @@ export declare const EvidenceValidator: z.ZodObject<{
|
|
4647
4647
|
}>;
|
4648
4648
|
export declare type Evidence = z.infer<typeof EvidenceValidator>;
|
4649
4649
|
export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.extendShape<{
|
4650
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
4650
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
4651
4651
|
id: z.ZodOptional<z.ZodString>;
|
4652
4652
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
4653
4653
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -5141,7 +5141,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
5141
5141
|
}>;
|
5142
5142
|
description: z.ZodString;
|
5143
5143
|
endorsement: z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<{
|
5144
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
5144
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
5145
5145
|
id: z.ZodOptional<z.ZodString>;
|
5146
5146
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
5147
5147
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -5494,7 +5494,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
5494
5494
|
verificationMethod: string;
|
5495
5495
|
}[] | undefined;
|
5496
5496
|
type: [string, ...string[]];
|
5497
|
-
'@context': string[];
|
5497
|
+
'@context': (string | Record<string, any>)[];
|
5498
5498
|
issuer: string | {
|
5499
5499
|
[x: string]: any;
|
5500
5500
|
type?: string | [string, ...string[]] | undefined;
|
@@ -5586,7 +5586,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
5586
5586
|
verificationMethod: string;
|
5587
5587
|
}[] | undefined;
|
5588
5588
|
type: [string, ...string[]];
|
5589
|
-
'@context': string[];
|
5589
|
+
'@context': (string | Record<string, any>)[];
|
5590
5590
|
issuer: string | {
|
5591
5591
|
[x: string]: any;
|
5592
5592
|
type?: string | [string, ...string[]] | undefined;
|
@@ -5907,7 +5907,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
5907
5907
|
verificationMethod: string;
|
5908
5908
|
}[] | undefined;
|
5909
5909
|
type: [string, ...string[]];
|
5910
|
-
'@context': string[];
|
5910
|
+
'@context': (string | Record<string, any>)[];
|
5911
5911
|
issuer: string | {
|
5912
5912
|
[x: string]: any;
|
5913
5913
|
type?: string | [string, ...string[]] | undefined;
|
@@ -6128,7 +6128,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
6128
6128
|
verificationMethod: string;
|
6129
6129
|
}[] | undefined;
|
6130
6130
|
type: [string, ...string[]];
|
6131
|
-
'@context': string[];
|
6131
|
+
'@context': (string | Record<string, any>)[];
|
6132
6132
|
issuer: string | {
|
6133
6133
|
[x: string]: any;
|
6134
6134
|
type?: string | [string, ...string[]] | undefined;
|
@@ -6656,7 +6656,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
6656
6656
|
verificationMethod: string;
|
6657
6657
|
}[] | undefined;
|
6658
6658
|
type: [string, ...string[]];
|
6659
|
-
'@context': string[];
|
6659
|
+
'@context': (string | Record<string, any>)[];
|
6660
6660
|
issuer: string | {
|
6661
6661
|
[x: string]: any;
|
6662
6662
|
type?: string | [string, ...string[]] | undefined;
|
@@ -6964,7 +6964,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
6964
6964
|
verificationMethod: string;
|
6965
6965
|
}[] | undefined;
|
6966
6966
|
type: [string, ...string[]];
|
6967
|
-
'@context': string[];
|
6967
|
+
'@context': (string | Record<string, any>)[];
|
6968
6968
|
issuer: string | {
|
6969
6969
|
[x: string]: any;
|
6970
6970
|
type?: string | [string, ...string[]] | undefined;
|
@@ -7448,7 +7448,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
7448
7448
|
}>;
|
7449
7449
|
description: z.ZodString;
|
7450
7450
|
endorsement: z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<{
|
7451
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
7451
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
7452
7452
|
id: z.ZodOptional<z.ZodString>;
|
7453
7453
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
7454
7454
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -7801,7 +7801,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
7801
7801
|
verificationMethod: string;
|
7802
7802
|
}[] | undefined;
|
7803
7803
|
type: [string, ...string[]];
|
7804
|
-
'@context': string[];
|
7804
|
+
'@context': (string | Record<string, any>)[];
|
7805
7805
|
issuer: string | {
|
7806
7806
|
[x: string]: any;
|
7807
7807
|
type?: string | [string, ...string[]] | undefined;
|
@@ -7893,7 +7893,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
7893
7893
|
verificationMethod: string;
|
7894
7894
|
}[] | undefined;
|
7895
7895
|
type: [string, ...string[]];
|
7896
|
-
'@context': string[];
|
7896
|
+
'@context': (string | Record<string, any>)[];
|
7897
7897
|
issuer: string | {
|
7898
7898
|
[x: string]: any;
|
7899
7899
|
type?: string | [string, ...string[]] | undefined;
|
@@ -8214,7 +8214,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
8214
8214
|
verificationMethod: string;
|
8215
8215
|
}[] | undefined;
|
8216
8216
|
type: [string, ...string[]];
|
8217
|
-
'@context': string[];
|
8217
|
+
'@context': (string | Record<string, any>)[];
|
8218
8218
|
issuer: string | {
|
8219
8219
|
[x: string]: any;
|
8220
8220
|
type?: string | [string, ...string[]] | undefined;
|
@@ -8435,7 +8435,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
8435
8435
|
verificationMethod: string;
|
8436
8436
|
}[] | undefined;
|
8437
8437
|
type: [string, ...string[]];
|
8438
|
-
'@context': string[];
|
8438
|
+
'@context': (string | Record<string, any>)[];
|
8439
8439
|
issuer: string | {
|
8440
8440
|
[x: string]: any;
|
8441
8441
|
type?: string | [string, ...string[]] | undefined;
|
@@ -8963,7 +8963,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
8963
8963
|
verificationMethod: string;
|
8964
8964
|
}[] | undefined;
|
8965
8965
|
type: [string, ...string[]];
|
8966
|
-
'@context': string[];
|
8966
|
+
'@context': (string | Record<string, any>)[];
|
8967
8967
|
issuer: string | {
|
8968
8968
|
[x: string]: any;
|
8969
8969
|
type?: string | [string, ...string[]] | undefined;
|
@@ -9271,7 +9271,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
9271
9271
|
verificationMethod: string;
|
9272
9272
|
}[] | undefined;
|
9273
9273
|
type: [string, ...string[]];
|
9274
|
-
'@context': string[];
|
9274
|
+
'@context': (string | Record<string, any>)[];
|
9275
9275
|
issuer: string | {
|
9276
9276
|
[x: string]: any;
|
9277
9277
|
type?: string | [string, ...string[]] | undefined;
|
@@ -9520,7 +9520,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
9520
9520
|
type: [string, ...string[]];
|
9521
9521
|
}>, "many">]>;
|
9522
9522
|
endorsement: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
9523
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
9523
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
9524
9524
|
id: z.ZodOptional<z.ZodString>;
|
9525
9525
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
9526
9526
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -9779,7 +9779,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
9779
9779
|
id: string;
|
9780
9780
|
} | undefined;
|
9781
9781
|
type: [string, ...string[]];
|
9782
|
-
'@context': string[];
|
9782
|
+
'@context': (string | Record<string, any>)[];
|
9783
9783
|
issuer: string | {
|
9784
9784
|
[x: string]: any;
|
9785
9785
|
type?: string | [string, ...string[]] | undefined;
|
@@ -9852,7 +9852,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
9852
9852
|
id: string;
|
9853
9853
|
} | undefined;
|
9854
9854
|
type: [string, ...string[]];
|
9855
|
-
'@context': string[];
|
9855
|
+
'@context': (string | Record<string, any>)[];
|
9856
9856
|
issuer: string | {
|
9857
9857
|
[x: string]: any;
|
9858
9858
|
type?: string | [string, ...string[]] | undefined;
|
@@ -9958,7 +9958,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
9958
9958
|
id: string;
|
9959
9959
|
} | undefined;
|
9960
9960
|
type: [string, ...string[]];
|
9961
|
-
'@context': string[];
|
9961
|
+
'@context': (string | Record<string, any>)[];
|
9962
9962
|
issuer: string | {
|
9963
9963
|
[x: string]: any;
|
9964
9964
|
type?: string | [string, ...string[]] | undefined;
|
@@ -10044,7 +10044,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
10044
10044
|
type: [string, ...string[]];
|
10045
10045
|
}[] | undefined;
|
10046
10046
|
type: [string, ...string[]];
|
10047
|
-
'@context': string[];
|
10047
|
+
'@context': (string | Record<string, any>)[];
|
10048
10048
|
issuer: string | {
|
10049
10049
|
[x: string]: any;
|
10050
10050
|
type?: string | [string, ...string[]] | undefined;
|
@@ -10153,7 +10153,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
10153
10153
|
verificationMethod: string;
|
10154
10154
|
}[] | undefined;
|
10155
10155
|
type: [string, ...string[]];
|
10156
|
-
'@context': string[];
|
10156
|
+
'@context': (string | Record<string, any>)[];
|
10157
10157
|
issuer: string | {
|
10158
10158
|
[x: string]: any;
|
10159
10159
|
type?: string | [string, ...string[]] | undefined;
|
@@ -10461,7 +10461,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
10461
10461
|
verificationMethod: string;
|
10462
10462
|
}[] | undefined;
|
10463
10463
|
type: [string, ...string[]];
|
10464
|
-
'@context': string[];
|
10464
|
+
'@context': (string | Record<string, any>)[];
|
10465
10465
|
issuer: string | {
|
10466
10466
|
[x: string]: any;
|
10467
10467
|
type?: string | [string, ...string[]] | undefined;
|
@@ -10732,7 +10732,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
10732
10732
|
id: string;
|
10733
10733
|
} | undefined;
|
10734
10734
|
type: [string, ...string[]];
|
10735
|
-
'@context': string[];
|
10735
|
+
'@context': (string | Record<string, any>)[];
|
10736
10736
|
issuer: string | {
|
10737
10737
|
[x: string]: any;
|
10738
10738
|
type?: string | [string, ...string[]] | undefined;
|
@@ -10818,7 +10818,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
10818
10818
|
type: [string, ...string[]];
|
10819
10819
|
}[] | undefined;
|
10820
10820
|
type: [string, ...string[]];
|
10821
|
-
'@context': string[];
|
10821
|
+
'@context': (string | Record<string, any>)[];
|
10822
10822
|
issuer: string | {
|
10823
10823
|
[x: string]: any;
|
10824
10824
|
type?: string | [string, ...string[]] | undefined;
|
@@ -10927,7 +10927,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
10927
10927
|
verificationMethod: string;
|
10928
10928
|
}[] | undefined;
|
10929
10929
|
type: [string, ...string[]];
|
10930
|
-
'@context': string[];
|
10930
|
+
'@context': (string | Record<string, any>)[];
|
10931
10931
|
issuer: string | {
|
10932
10932
|
[x: string]: any;
|
10933
10933
|
type?: string | [string, ...string[]] | undefined;
|
@@ -11235,7 +11235,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
11235
11235
|
verificationMethod: string;
|
11236
11236
|
}[] | undefined;
|
11237
11237
|
type: [string, ...string[]];
|
11238
|
-
'@context': string[];
|
11238
|
+
'@context': (string | Record<string, any>)[];
|
11239
11239
|
issuer: string | {
|
11240
11240
|
[x: string]: any;
|
11241
11241
|
type?: string | [string, ...string[]] | undefined;
|
@@ -11486,7 +11486,7 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<z.exten
|
|
11486
11486
|
}>;
|
11487
11487
|
export declare type UnsignedAchievementCredential = z.infer<typeof UnsignedAchievementCredentialValidator>;
|
11488
11488
|
export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z.extendShape<{
|
11489
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
11489
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
11490
11490
|
id: z.ZodOptional<z.ZodString>;
|
11491
11491
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
11492
11492
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -11980,7 +11980,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
11980
11980
|
}>;
|
11981
11981
|
description: z.ZodString;
|
11982
11982
|
endorsement: z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<{
|
11983
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
11983
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
11984
11984
|
id: z.ZodOptional<z.ZodString>;
|
11985
11985
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
11986
11986
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -12333,7 +12333,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
12333
12333
|
verificationMethod: string;
|
12334
12334
|
}[] | undefined;
|
12335
12335
|
type: [string, ...string[]];
|
12336
|
-
'@context': string[];
|
12336
|
+
'@context': (string | Record<string, any>)[];
|
12337
12337
|
issuer: string | {
|
12338
12338
|
[x: string]: any;
|
12339
12339
|
type?: string | [string, ...string[]] | undefined;
|
@@ -12425,7 +12425,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
12425
12425
|
verificationMethod: string;
|
12426
12426
|
}[] | undefined;
|
12427
12427
|
type: [string, ...string[]];
|
12428
|
-
'@context': string[];
|
12428
|
+
'@context': (string | Record<string, any>)[];
|
12429
12429
|
issuer: string | {
|
12430
12430
|
[x: string]: any;
|
12431
12431
|
type?: string | [string, ...string[]] | undefined;
|
@@ -12746,7 +12746,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
12746
12746
|
verificationMethod: string;
|
12747
12747
|
}[] | undefined;
|
12748
12748
|
type: [string, ...string[]];
|
12749
|
-
'@context': string[];
|
12749
|
+
'@context': (string | Record<string, any>)[];
|
12750
12750
|
issuer: string | {
|
12751
12751
|
[x: string]: any;
|
12752
12752
|
type?: string | [string, ...string[]] | undefined;
|
@@ -12967,7 +12967,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
12967
12967
|
verificationMethod: string;
|
12968
12968
|
}[] | undefined;
|
12969
12969
|
type: [string, ...string[]];
|
12970
|
-
'@context': string[];
|
12970
|
+
'@context': (string | Record<string, any>)[];
|
12971
12971
|
issuer: string | {
|
12972
12972
|
[x: string]: any;
|
12973
12973
|
type?: string | [string, ...string[]] | undefined;
|
@@ -13495,7 +13495,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
13495
13495
|
verificationMethod: string;
|
13496
13496
|
}[] | undefined;
|
13497
13497
|
type: [string, ...string[]];
|
13498
|
-
'@context': string[];
|
13498
|
+
'@context': (string | Record<string, any>)[];
|
13499
13499
|
issuer: string | {
|
13500
13500
|
[x: string]: any;
|
13501
13501
|
type?: string | [string, ...string[]] | undefined;
|
@@ -13803,7 +13803,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
13803
13803
|
verificationMethod: string;
|
13804
13804
|
}[] | undefined;
|
13805
13805
|
type: [string, ...string[]];
|
13806
|
-
'@context': string[];
|
13806
|
+
'@context': (string | Record<string, any>)[];
|
13807
13807
|
issuer: string | {
|
13808
13808
|
[x: string]: any;
|
13809
13809
|
type?: string | [string, ...string[]] | undefined;
|
@@ -14287,7 +14287,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
14287
14287
|
}>;
|
14288
14288
|
description: z.ZodString;
|
14289
14289
|
endorsement: z.ZodOptional<z.ZodArray<z.ZodObject<z.extendShape<{
|
14290
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
14290
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
14291
14291
|
id: z.ZodOptional<z.ZodString>;
|
14292
14292
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
14293
14293
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -14640,7 +14640,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
14640
14640
|
verificationMethod: string;
|
14641
14641
|
}[] | undefined;
|
14642
14642
|
type: [string, ...string[]];
|
14643
|
-
'@context': string[];
|
14643
|
+
'@context': (string | Record<string, any>)[];
|
14644
14644
|
issuer: string | {
|
14645
14645
|
[x: string]: any;
|
14646
14646
|
type?: string | [string, ...string[]] | undefined;
|
@@ -14732,7 +14732,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
14732
14732
|
verificationMethod: string;
|
14733
14733
|
}[] | undefined;
|
14734
14734
|
type: [string, ...string[]];
|
14735
|
-
'@context': string[];
|
14735
|
+
'@context': (string | Record<string, any>)[];
|
14736
14736
|
issuer: string | {
|
14737
14737
|
[x: string]: any;
|
14738
14738
|
type?: string | [string, ...string[]] | undefined;
|
@@ -15053,7 +15053,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
15053
15053
|
verificationMethod: string;
|
15054
15054
|
}[] | undefined;
|
15055
15055
|
type: [string, ...string[]];
|
15056
|
-
'@context': string[];
|
15056
|
+
'@context': (string | Record<string, any>)[];
|
15057
15057
|
issuer: string | {
|
15058
15058
|
[x: string]: any;
|
15059
15059
|
type?: string | [string, ...string[]] | undefined;
|
@@ -15274,7 +15274,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
15274
15274
|
verificationMethod: string;
|
15275
15275
|
}[] | undefined;
|
15276
15276
|
type: [string, ...string[]];
|
15277
|
-
'@context': string[];
|
15277
|
+
'@context': (string | Record<string, any>)[];
|
15278
15278
|
issuer: string | {
|
15279
15279
|
[x: string]: any;
|
15280
15280
|
type?: string | [string, ...string[]] | undefined;
|
@@ -15802,7 +15802,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
15802
15802
|
verificationMethod: string;
|
15803
15803
|
}[] | undefined;
|
15804
15804
|
type: [string, ...string[]];
|
15805
|
-
'@context': string[];
|
15805
|
+
'@context': (string | Record<string, any>)[];
|
15806
15806
|
issuer: string | {
|
15807
15807
|
[x: string]: any;
|
15808
15808
|
type?: string | [string, ...string[]] | undefined;
|
@@ -16110,7 +16110,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
16110
16110
|
verificationMethod: string;
|
16111
16111
|
}[] | undefined;
|
16112
16112
|
type: [string, ...string[]];
|
16113
|
-
'@context': string[];
|
16113
|
+
'@context': (string | Record<string, any>)[];
|
16114
16114
|
issuer: string | {
|
16115
16115
|
[x: string]: any;
|
16116
16116
|
type?: string | [string, ...string[]] | undefined;
|
@@ -16359,7 +16359,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
16359
16359
|
type: [string, ...string[]];
|
16360
16360
|
}>, "many">]>;
|
16361
16361
|
endorsement: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
16362
|
-
'@context': z.ZodArray<z.ZodString, "many">;
|
16362
|
+
'@context': z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
16363
16363
|
id: z.ZodOptional<z.ZodString>;
|
16364
16364
|
type: z.ZodArray<z.ZodString, "atleastone">;
|
16365
16365
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -16618,7 +16618,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
16618
16618
|
id: string;
|
16619
16619
|
} | undefined;
|
16620
16620
|
type: [string, ...string[]];
|
16621
|
-
'@context': string[];
|
16621
|
+
'@context': (string | Record<string, any>)[];
|
16622
16622
|
issuer: string | {
|
16623
16623
|
[x: string]: any;
|
16624
16624
|
type?: string | [string, ...string[]] | undefined;
|
@@ -16691,7 +16691,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
16691
16691
|
id: string;
|
16692
16692
|
} | undefined;
|
16693
16693
|
type: [string, ...string[]];
|
16694
|
-
'@context': string[];
|
16694
|
+
'@context': (string | Record<string, any>)[];
|
16695
16695
|
issuer: string | {
|
16696
16696
|
[x: string]: any;
|
16697
16697
|
type?: string | [string, ...string[]] | undefined;
|
@@ -16857,7 +16857,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
16857
16857
|
id: string;
|
16858
16858
|
} | undefined;
|
16859
16859
|
type: [string, ...string[]];
|
16860
|
-
'@context': string[];
|
16860
|
+
'@context': (string | Record<string, any>)[];
|
16861
16861
|
issuer: string | {
|
16862
16862
|
[x: string]: any;
|
16863
16863
|
type?: string | [string, ...string[]] | undefined;
|
@@ -16943,7 +16943,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
16943
16943
|
type: [string, ...string[]];
|
16944
16944
|
}[] | undefined;
|
16945
16945
|
type: [string, ...string[]];
|
16946
|
-
'@context': string[];
|
16946
|
+
'@context': (string | Record<string, any>)[];
|
16947
16947
|
issuer: string | {
|
16948
16948
|
[x: string]: any;
|
16949
16949
|
type?: string | [string, ...string[]] | undefined;
|
@@ -17052,7 +17052,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
17052
17052
|
verificationMethod: string;
|
17053
17053
|
}[] | undefined;
|
17054
17054
|
type: [string, ...string[]];
|
17055
|
-
'@context': string[];
|
17055
|
+
'@context': (string | Record<string, any>)[];
|
17056
17056
|
issuer: string | {
|
17057
17057
|
[x: string]: any;
|
17058
17058
|
type?: string | [string, ...string[]] | undefined;
|
@@ -17360,7 +17360,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
17360
17360
|
verificationMethod: string;
|
17361
17361
|
}[] | undefined;
|
17362
17362
|
type: [string, ...string[]];
|
17363
|
-
'@context': string[];
|
17363
|
+
'@context': (string | Record<string, any>)[];
|
17364
17364
|
issuer: string | {
|
17365
17365
|
[x: string]: any;
|
17366
17366
|
type?: string | [string, ...string[]] | undefined;
|
@@ -17652,7 +17652,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
17652
17652
|
id: string;
|
17653
17653
|
} | undefined;
|
17654
17654
|
type: [string, ...string[]];
|
17655
|
-
'@context': string[];
|
17655
|
+
'@context': (string | Record<string, any>)[];
|
17656
17656
|
issuer: string | {
|
17657
17657
|
[x: string]: any;
|
17658
17658
|
type?: string | [string, ...string[]] | undefined;
|
@@ -17738,7 +17738,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
17738
17738
|
type: [string, ...string[]];
|
17739
17739
|
}[] | undefined;
|
17740
17740
|
type: [string, ...string[]];
|
17741
|
-
'@context': string[];
|
17741
|
+
'@context': (string | Record<string, any>)[];
|
17742
17742
|
issuer: string | {
|
17743
17743
|
[x: string]: any;
|
17744
17744
|
type?: string | [string, ...string[]] | undefined;
|
@@ -17847,7 +17847,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
17847
17847
|
verificationMethod: string;
|
17848
17848
|
}[] | undefined;
|
17849
17849
|
type: [string, ...string[]];
|
17850
|
-
'@context': string[];
|
17850
|
+
'@context': (string | Record<string, any>)[];
|
17851
17851
|
issuer: string | {
|
17852
17852
|
[x: string]: any;
|
17853
17853
|
type?: string | [string, ...string[]] | undefined;
|
@@ -18155,7 +18155,7 @@ export declare const AchievementCredentialValidator: z.ZodObject<z.extendShape<z
|
|
18155
18155
|
verificationMethod: string;
|
18156
18156
|
}[] | undefined;
|
18157
18157
|
type: [string, ...string[]];
|
18158
|
-
'@context': string[];
|
18158
|
+
'@context': (string | Record<string, any>)[];
|
18159
18159
|
issuer: string | {
|
18160
18160
|
[x: string]: any;
|
18161
18161
|
type?: string | [string, ...string[]] | undefined;
|
@@ -67,7 +67,7 @@ module.exports = __toCommonJS(src_exports);
|
|
67
67
|
|
68
68
|
// src/vc.ts
|
69
69
|
var import_zod = require("zod");
|
70
|
-
var ContextValidator = import_zod.z.string().
|
70
|
+
var ContextValidator = import_zod.z.array(import_zod.z.string().or(import_zod.z.record(import_zod.z.any())));
|
71
71
|
var AchievementCriteriaValidator = import_zod.z.object({
|
72
72
|
type: import_zod.z.string().optional(),
|
73
73
|
narrative: import_zod.z.string().optional()
|
@@ -178,7 +178,7 @@ var UnsignedVPValidator = import_zod.z.object({
|
|
178
178
|
"@context": ContextValidator,
|
179
179
|
id: import_zod.z.string().optional(),
|
180
180
|
type: import_zod.z.string().array().nonempty(),
|
181
|
-
verifiableCredential: VCValidator.or(VCValidator.array()),
|
181
|
+
verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
|
182
182
|
holder: import_zod.z.string().optional()
|
183
183
|
}).catchall(import_zod.z.any());
|
184
184
|
var VPValidator = UnsignedVPValidator.extend({
|