@learncard/types 5.18.0 → 5.18.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/bitstring-status-list.d.ts +2 -2
- package/dist/clr.d.ts +20 -20
- package/dist/lcn.d.ts +56 -56
- package/dist/learncard.d.ts.map +1 -1
- package/dist/obv3.d.ts +28 -28
- package/dist/types.cjs.development.cjs +11 -2
- package/dist/types.cjs.development.cjs.map +2 -2
- package/dist/types.cjs.production.min.cjs +1 -1
- package/dist/types.cjs.production.min.cjs.map +2 -2
- package/dist/types.esm.js +11 -2
- package/dist/types.esm.js.map +2 -2
- package/dist/vc.d.ts +25 -25
- package/package.json +1 -1
- package/src/bitstring-status-list.ts +1 -1
- package/src/learncard.ts +9 -0
- package/src/vc.ts +1 -1
package/dist/obv3.d.ts
CHANGED
|
@@ -192,10 +192,10 @@ export declare const EndorsementCredentialValidator: z.ZodObject<{
|
|
|
192
192
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
193
193
|
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
194
194
|
type: z.ZodString;
|
|
195
|
-
id: z.ZodString
|
|
195
|
+
id: z.ZodOptional<z.ZodString>;
|
|
196
196
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
197
197
|
type: z.ZodString;
|
|
198
|
-
id: z.ZodString
|
|
198
|
+
id: z.ZodOptional<z.ZodString>;
|
|
199
199
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
200
200
|
name: z.ZodOptional<z.ZodString>;
|
|
201
201
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -203,10 +203,10 @@ export declare const EndorsementCredentialValidator: z.ZodObject<{
|
|
|
203
203
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
204
204
|
status: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
205
205
|
type: z.ZodString;
|
|
206
|
-
id: z.ZodString
|
|
206
|
+
id: z.ZodOptional<z.ZodString>;
|
|
207
207
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
208
208
|
type: z.ZodString;
|
|
209
|
-
id: z.ZodString
|
|
209
|
+
id: z.ZodOptional<z.ZodString>;
|
|
210
210
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
211
211
|
termsOfUse: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
212
212
|
type: z.ZodString;
|
|
@@ -608,10 +608,10 @@ export declare const AchievementValidator: z.ZodObject<{
|
|
|
608
608
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
609
609
|
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
610
610
|
type: z.ZodString;
|
|
611
|
-
id: z.ZodString
|
|
611
|
+
id: z.ZodOptional<z.ZodString>;
|
|
612
612
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
613
613
|
type: z.ZodString;
|
|
614
|
-
id: z.ZodString
|
|
614
|
+
id: z.ZodOptional<z.ZodString>;
|
|
615
615
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
616
616
|
name: z.ZodOptional<z.ZodString>;
|
|
617
617
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -619,10 +619,10 @@ export declare const AchievementValidator: z.ZodObject<{
|
|
|
619
619
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
620
620
|
status: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
621
621
|
type: z.ZodString;
|
|
622
|
-
id: z.ZodString
|
|
622
|
+
id: z.ZodOptional<z.ZodString>;
|
|
623
623
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
624
624
|
type: z.ZodString;
|
|
625
|
-
id: z.ZodString
|
|
625
|
+
id: z.ZodOptional<z.ZodString>;
|
|
626
626
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
627
627
|
termsOfUse: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
628
628
|
type: z.ZodString;
|
|
@@ -1063,10 +1063,10 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
|
1063
1063
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1064
1064
|
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1065
1065
|
type: z.ZodString;
|
|
1066
|
-
id: z.ZodString
|
|
1066
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1067
1067
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1068
1068
|
type: z.ZodString;
|
|
1069
|
-
id: z.ZodString
|
|
1069
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1070
1070
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1071
1071
|
name: z.ZodOptional<z.ZodString>;
|
|
1072
1072
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1074,10 +1074,10 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
|
1074
1074
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
1075
1075
|
status: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1076
1076
|
type: z.ZodString;
|
|
1077
|
-
id: z.ZodString
|
|
1077
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1078
1078
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1079
1079
|
type: z.ZodString;
|
|
1080
|
-
id: z.ZodString
|
|
1080
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1081
1081
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1082
1082
|
termsOfUse: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1083
1083
|
type: z.ZodString;
|
|
@@ -1452,19 +1452,19 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<{
|
|
|
1452
1452
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1453
1453
|
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1454
1454
|
type: z.ZodString;
|
|
1455
|
-
id: z.ZodString
|
|
1455
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1456
1456
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1457
1457
|
type: z.ZodString;
|
|
1458
|
-
id: z.ZodString
|
|
1458
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1459
1459
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1460
1460
|
validFrom: z.ZodOptional<z.ZodString>;
|
|
1461
1461
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
1462
1462
|
status: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1463
1463
|
type: z.ZodString;
|
|
1464
|
-
id: z.ZodString
|
|
1464
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1465
1465
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1466
1466
|
type: z.ZodString;
|
|
1467
|
-
id: z.ZodString
|
|
1467
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1468
1468
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1469
1469
|
termsOfUse: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1470
1470
|
type: z.ZodString;
|
|
@@ -1606,10 +1606,10 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<{
|
|
|
1606
1606
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1607
1607
|
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1608
1608
|
type: z.ZodString;
|
|
1609
|
-
id: z.ZodString
|
|
1609
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1610
1610
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1611
1611
|
type: z.ZodString;
|
|
1612
|
-
id: z.ZodString
|
|
1612
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1613
1613
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1614
1614
|
name: z.ZodOptional<z.ZodString>;
|
|
1615
1615
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1617,10 +1617,10 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<{
|
|
|
1617
1617
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
1618
1618
|
status: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1619
1619
|
type: z.ZodString;
|
|
1620
|
-
id: z.ZodString
|
|
1620
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1621
1621
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1622
1622
|
type: z.ZodString;
|
|
1623
|
-
id: z.ZodString
|
|
1623
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1624
1624
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1625
1625
|
termsOfUse: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1626
1626
|
type: z.ZodString;
|
|
@@ -1752,19 +1752,19 @@ export declare const AchievementCredentialValidator: z.ZodObject<{
|
|
|
1752
1752
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1753
1753
|
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1754
1754
|
type: z.ZodString;
|
|
1755
|
-
id: z.ZodString
|
|
1755
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1756
1756
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1757
1757
|
type: z.ZodString;
|
|
1758
|
-
id: z.ZodString
|
|
1758
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1759
1759
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1760
1760
|
validFrom: z.ZodOptional<z.ZodString>;
|
|
1761
1761
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
1762
1762
|
status: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1763
1763
|
type: z.ZodString;
|
|
1764
|
-
id: z.ZodString
|
|
1764
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1765
1765
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1766
1766
|
type: z.ZodString;
|
|
1767
|
-
id: z.ZodString
|
|
1767
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1768
1768
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1769
1769
|
termsOfUse: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1770
1770
|
type: z.ZodString;
|
|
@@ -1906,10 +1906,10 @@ export declare const AchievementCredentialValidator: z.ZodObject<{
|
|
|
1906
1906
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1907
1907
|
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1908
1908
|
type: z.ZodString;
|
|
1909
|
-
id: z.ZodString
|
|
1909
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1910
1910
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1911
1911
|
type: z.ZodString;
|
|
1912
|
-
id: z.ZodString
|
|
1912
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1913
1913
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1914
1914
|
name: z.ZodOptional<z.ZodString>;
|
|
1915
1915
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1917,10 +1917,10 @@ export declare const AchievementCredentialValidator: z.ZodObject<{
|
|
|
1917
1917
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
1918
1918
|
status: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1919
1919
|
type: z.ZodString;
|
|
1920
|
-
id: z.ZodString
|
|
1920
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1921
1921
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1922
1922
|
type: z.ZodString;
|
|
1923
|
-
id: z.ZodString
|
|
1923
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1924
1924
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1925
1925
|
termsOfUse: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1926
1926
|
type: z.ZodString;
|
|
@@ -15353,7 +15353,7 @@ var ProfileValidator = external_exports.string().or(
|
|
|
15353
15353
|
}).catchall(external_exports.any())
|
|
15354
15354
|
);
|
|
15355
15355
|
var CredentialSubjectValidator = external_exports.object({ id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
15356
|
-
var CredentialStatusValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string() }).catchall(external_exports.any());
|
|
15356
|
+
var CredentialStatusValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
15357
15357
|
var CredentialSchemaValidator = external_exports.object({ id: external_exports.string(), type: external_exports.string() }).catchall(external_exports.any());
|
|
15358
15358
|
var RefreshServiceValidator = external_exports.object({ id: external_exports.string().optional(), type: external_exports.string() }).catchall(external_exports.any());
|
|
15359
15359
|
var TermsOfUseValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
@@ -15766,8 +15766,17 @@ var StatusCheckEntryValidator = external_exports.object({
|
|
|
15766
15766
|
statusListIndex: external_exports.string().optional()
|
|
15767
15767
|
});
|
|
15768
15768
|
var VerificationCheckValidator = external_exports.object({
|
|
15769
|
+
/**
|
|
15770
|
+
* Checks that completed successfully. This does not imply that warnings can be ignored.
|
|
15771
|
+
*/
|
|
15769
15772
|
checks: external_exports.string().array(),
|
|
15773
|
+
/**
|
|
15774
|
+
* Security-relevant conditions that did not prevent the requested cryptographic checks from
|
|
15775
|
+
* completing. In particular, a non-DID issuer warning means the signature is valid but the
|
|
15776
|
+
* named URL issuer's authorization of that signing key was not established.
|
|
15777
|
+
*/
|
|
15770
15778
|
warnings: external_exports.string().array(),
|
|
15779
|
+
/** Verification failures that prevented one or more requested checks from succeeding. */
|
|
15771
15780
|
errors: external_exports.string().array(),
|
|
15772
15781
|
/**
|
|
15773
15782
|
* Per-entry results for the `credentialStatus` check, populated
|
|
@@ -17237,7 +17246,7 @@ var BitstringStatusListEntryValidator = external_exports.object({
|
|
|
17237
17246
|
id: external_exports.string().optional(),
|
|
17238
17247
|
type: external_exports.literal("BitstringStatusListEntry"),
|
|
17239
17248
|
statusPurpose: BitstringStatusPurposeValidator,
|
|
17240
|
-
statusListIndex: external_exports.string(),
|
|
17249
|
+
statusListIndex: external_exports.string().or(external_exports.number().int().nonnegative()),
|
|
17241
17250
|
statusListCredential: external_exports.string()
|
|
17242
17251
|
});
|
|
17243
17252
|
var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({
|