@learncard/types 5.15.0 → 5.16.0
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/clr.d.ts +85 -0
- package/dist/clr.d.ts.map +1 -1
- package/dist/lcn.d.ts +238 -0
- package/dist/lcn.d.ts.map +1 -1
- package/dist/learncard.d.ts +16 -0
- package/dist/learncard.d.ts.map +1 -1
- package/dist/obv3.d.ts +119 -0
- package/dist/obv3.d.ts.map +1 -1
- package/dist/types.cjs.development.js +44 -1
- package/dist/types.cjs.development.js.map +2 -2
- package/dist/types.cjs.production.min.js +5 -5
- package/dist/types.cjs.production.min.js.map +3 -3
- package/dist/types.esm.js +44 -1
- package/dist/types.esm.js.map +2 -2
- package/dist/vc.d.ts +122 -0
- package/dist/vc.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/obv3.d.ts
CHANGED
|
@@ -232,6 +232,23 @@ export declare const EndorsementCredentialValidator: z.ZodObject<{
|
|
|
232
232
|
genre: z.ZodOptional<z.ZodString>;
|
|
233
233
|
audience: z.ZodOptional<z.ZodString>;
|
|
234
234
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
235
|
+
renderMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
236
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
237
|
+
renderSuite: z.ZodString;
|
|
238
|
+
template: z.ZodString;
|
|
239
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
mediaType: z.ZodString;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
244
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
245
|
+
renderSuite: z.ZodString;
|
|
246
|
+
template: z.ZodString;
|
|
247
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
mediaType: z.ZodString;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
235
252
|
credentialSubject: z.ZodObject<{
|
|
236
253
|
id: z.ZodString;
|
|
237
254
|
type: z.ZodArray<z.ZodString>;
|
|
@@ -631,6 +648,23 @@ export declare const AchievementValidator: z.ZodObject<{
|
|
|
631
648
|
genre: z.ZodOptional<z.ZodString>;
|
|
632
649
|
audience: z.ZodOptional<z.ZodString>;
|
|
633
650
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
651
|
+
renderMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
652
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
653
|
+
renderSuite: z.ZodString;
|
|
654
|
+
template: z.ZodString;
|
|
655
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
656
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
mediaType: z.ZodString;
|
|
658
|
+
}, z.core.$strip>>;
|
|
659
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
660
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
661
|
+
renderSuite: z.ZodString;
|
|
662
|
+
template: z.ZodString;
|
|
663
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
664
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
665
|
+
mediaType: z.ZodString;
|
|
666
|
+
}, z.core.$strip>>;
|
|
667
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
634
668
|
credentialSubject: z.ZodObject<{
|
|
635
669
|
id: z.ZodString;
|
|
636
670
|
type: z.ZodArray<z.ZodString>;
|
|
@@ -1069,6 +1103,23 @@ export declare const AchievementSubjectValidator: z.ZodObject<{
|
|
|
1069
1103
|
genre: z.ZodOptional<z.ZodString>;
|
|
1070
1104
|
audience: z.ZodOptional<z.ZodString>;
|
|
1071
1105
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1106
|
+
renderMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
1107
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1108
|
+
renderSuite: z.ZodString;
|
|
1109
|
+
template: z.ZodString;
|
|
1110
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1111
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1112
|
+
mediaType: z.ZodString;
|
|
1113
|
+
}, z.core.$strip>>;
|
|
1114
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1115
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1116
|
+
renderSuite: z.ZodString;
|
|
1117
|
+
template: z.ZodString;
|
|
1118
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1119
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1120
|
+
mediaType: z.ZodString;
|
|
1121
|
+
}, z.core.$strip>>;
|
|
1122
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
1072
1123
|
credentialSubject: z.ZodObject<{
|
|
1073
1124
|
id: z.ZodString;
|
|
1074
1125
|
type: z.ZodArray<z.ZodString>;
|
|
@@ -1439,6 +1490,23 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<{
|
|
|
1439
1490
|
genre: z.ZodOptional<z.ZodString>;
|
|
1440
1491
|
audience: z.ZodOptional<z.ZodString>;
|
|
1441
1492
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1493
|
+
renderMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
1494
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1495
|
+
renderSuite: z.ZodString;
|
|
1496
|
+
template: z.ZodString;
|
|
1497
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1498
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1499
|
+
mediaType: z.ZodString;
|
|
1500
|
+
}, z.core.$strip>>;
|
|
1501
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1502
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1503
|
+
renderSuite: z.ZodString;
|
|
1504
|
+
template: z.ZodString;
|
|
1505
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1506
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1507
|
+
mediaType: z.ZodString;
|
|
1508
|
+
}, z.core.$strip>>;
|
|
1509
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
1442
1510
|
name: z.ZodOptional<z.ZodString>;
|
|
1443
1511
|
description: z.ZodOptional<z.ZodString>;
|
|
1444
1512
|
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
@@ -1578,6 +1646,23 @@ export declare const UnsignedAchievementCredentialValidator: z.ZodObject<{
|
|
|
1578
1646
|
genre: z.ZodOptional<z.ZodString>;
|
|
1579
1647
|
audience: z.ZodOptional<z.ZodString>;
|
|
1580
1648
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1649
|
+
renderMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
1650
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1651
|
+
renderSuite: z.ZodString;
|
|
1652
|
+
template: z.ZodString;
|
|
1653
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1654
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1655
|
+
mediaType: z.ZodString;
|
|
1656
|
+
}, z.core.$strip>>;
|
|
1657
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1658
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1659
|
+
renderSuite: z.ZodString;
|
|
1660
|
+
template: z.ZodString;
|
|
1661
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1662
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1663
|
+
mediaType: z.ZodString;
|
|
1664
|
+
}, z.core.$strip>>;
|
|
1665
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
1581
1666
|
}, z.core.$catchall<z.ZodAny>>>>;
|
|
1582
1667
|
}, z.core.$catchall<z.ZodAny>>;
|
|
1583
1668
|
export type UnsignedAchievementCredential = z.infer<typeof UnsignedAchievementCredentialValidator>;
|
|
@@ -1705,6 +1790,23 @@ export declare const AchievementCredentialValidator: z.ZodObject<{
|
|
|
1705
1790
|
genre: z.ZodOptional<z.ZodString>;
|
|
1706
1791
|
audience: z.ZodOptional<z.ZodString>;
|
|
1707
1792
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1793
|
+
renderMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
1794
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1795
|
+
renderSuite: z.ZodString;
|
|
1796
|
+
template: z.ZodString;
|
|
1797
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1798
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1799
|
+
mediaType: z.ZodString;
|
|
1800
|
+
}, z.core.$strip>>;
|
|
1801
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1802
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1803
|
+
renderSuite: z.ZodString;
|
|
1804
|
+
template: z.ZodString;
|
|
1805
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1806
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1807
|
+
mediaType: z.ZodString;
|
|
1808
|
+
}, z.core.$strip>>;
|
|
1809
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
1708
1810
|
name: z.ZodOptional<z.ZodString>;
|
|
1709
1811
|
description: z.ZodOptional<z.ZodString>;
|
|
1710
1812
|
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
@@ -1844,6 +1946,23 @@ export declare const AchievementCredentialValidator: z.ZodObject<{
|
|
|
1844
1946
|
genre: z.ZodOptional<z.ZodString>;
|
|
1845
1947
|
audience: z.ZodOptional<z.ZodString>;
|
|
1846
1948
|
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
1949
|
+
renderMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
1950
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1951
|
+
renderSuite: z.ZodString;
|
|
1952
|
+
template: z.ZodString;
|
|
1953
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1954
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1955
|
+
mediaType: z.ZodString;
|
|
1956
|
+
}, z.core.$strip>>;
|
|
1957
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1958
|
+
type: z.ZodLiteral<"TemplateRenderMethod">;
|
|
1959
|
+
renderSuite: z.ZodString;
|
|
1960
|
+
template: z.ZodString;
|
|
1961
|
+
renderProperty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1962
|
+
outputPreference: z.ZodOptional<z.ZodObject<{
|
|
1963
|
+
mediaType: z.ZodString;
|
|
1964
|
+
}, z.core.$strip>>;
|
|
1965
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
1847
1966
|
}, z.core.$catchall<z.ZodAny>>>>;
|
|
1848
1967
|
proof: z.ZodUnion<[z.ZodObject<{
|
|
1849
1968
|
type: z.ZodString;
|
package/dist/obv3.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"obv3.d.ts","sourceRoot":"","sources":["../src/obv3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,4BAA4B;;;;;;;;iBAUtB,CAAC;AACpB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAE/E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAQ7B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE3D,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCxC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEjF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA+C,CAAC;AACrF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEvE,eAAO,MAAM,iBAAiB;;;8BAER,CAAC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AC,CAAC,CACvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAOH,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -216,6 +216,7 @@ __export(index_exports, {
|
|
|
216
216
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
|
217
217
|
RegExpValidator: () => RegExpValidator,
|
|
218
218
|
RelatedValidator: () => RelatedValidator,
|
|
219
|
+
RenderMethodValidator: () => RenderMethodValidator,
|
|
219
220
|
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
|
|
220
221
|
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
|
|
221
222
|
RequestLearnerContextEventValidator: () => RequestLearnerContextEventValidator,
|
|
@@ -258,6 +259,7 @@ __export(index_exports, {
|
|
|
258
259
|
SummaryCredentialKeywordValidator: () => SummaryCredentialKeywordValidator,
|
|
259
260
|
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
|
|
260
261
|
TagValidator: () => TagValidator,
|
|
262
|
+
TemplateRenderMethodValidator: () => TemplateRenderMethodValidator,
|
|
261
263
|
TermsOfUseValidator: () => TermsOfUseValidator,
|
|
262
264
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
263
265
|
UnsignedClrCredentialValidator: () => UnsignedClrCredentialValidator,
|
|
@@ -13457,6 +13459,19 @@ var VC2EvidenceValidator = external_exports.object({
|
|
|
13457
13459
|
genre: external_exports.string().optional(),
|
|
13458
13460
|
audience: external_exports.string().optional()
|
|
13459
13461
|
}).catchall(external_exports.any());
|
|
13462
|
+
var TemplateRenderMethodValidator = external_exports.object({
|
|
13463
|
+
type: external_exports.literal("TemplateRenderMethod"),
|
|
13464
|
+
renderSuite: external_exports.string(),
|
|
13465
|
+
template: external_exports.string(),
|
|
13466
|
+
renderProperty: external_exports.array(external_exports.string()).optional(),
|
|
13467
|
+
outputPreference: external_exports.object({
|
|
13468
|
+
mediaType: external_exports.string()
|
|
13469
|
+
}).optional()
|
|
13470
|
+
});
|
|
13471
|
+
var RenderMethodValidator = external_exports.union([
|
|
13472
|
+
TemplateRenderMethodValidator,
|
|
13473
|
+
external_exports.record(external_exports.string(), external_exports.any())
|
|
13474
|
+
]);
|
|
13460
13475
|
var UnsignedVCValidator = external_exports.object({
|
|
13461
13476
|
"@context": ContextValidator,
|
|
13462
13477
|
id: external_exports.string().optional(),
|
|
@@ -13480,7 +13495,8 @@ var UnsignedVCValidator = external_exports.object({
|
|
|
13480
13495
|
validUntil: external_exports.string().optional(),
|
|
13481
13496
|
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
|
13482
13497
|
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
|
13483
|
-
evidence: external_exports.union([VC2EvidenceValidator, external_exports.array(VC2EvidenceValidator)]).optional()
|
|
13498
|
+
evidence: external_exports.union([VC2EvidenceValidator, external_exports.array(VC2EvidenceValidator)]).optional(),
|
|
13499
|
+
renderMethod: external_exports.union([RenderMethodValidator, external_exports.array(RenderMethodValidator)]).optional()
|
|
13484
13500
|
}).catchall(external_exports.any());
|
|
13485
13501
|
var ProofValidator = external_exports.object({
|
|
13486
13502
|
type: external_exports.string(),
|
|
@@ -13799,16 +13815,43 @@ var ClrCredentialValidator = UnsignedClrCredentialValidator.extend({
|
|
|
13799
13815
|
|
|
13800
13816
|
// src/learncard.ts
|
|
13801
13817
|
var StatusCheckEntryValidator = external_exports.object({
|
|
13818
|
+
/**
|
|
13819
|
+
* The `credentialStatus.type` as it appeared on the credential.
|
|
13820
|
+
* One of `BitstringStatusListEntry`, `StatusList2021Entry`,
|
|
13821
|
+
* `RevocationList2020Status`, or any future custom status type.
|
|
13822
|
+
*/
|
|
13802
13823
|
entryType: external_exports.string(),
|
|
13824
|
+
/**
|
|
13825
|
+
* The claimed purpose of the entry. Standard values are
|
|
13826
|
+
* `"revocation"` and `"suspension"`; the spec allows arbitrary
|
|
13827
|
+
* strings.
|
|
13828
|
+
*/
|
|
13803
13829
|
statusPurpose: external_exports.string(),
|
|
13830
|
+
/**
|
|
13831
|
+
* Whether the bit at the credential's index in the status list
|
|
13832
|
+
* bitstring was set.
|
|
13833
|
+
*/
|
|
13804
13834
|
isSet: external_exports.boolean(),
|
|
13835
|
+
/** URL of the status list credential, when known. */
|
|
13805
13836
|
statusListCredential: external_exports.string().optional(),
|
|
13837
|
+
/** Original (string) index within the status list. */
|
|
13806
13838
|
statusListIndex: external_exports.string().optional()
|
|
13807
13839
|
});
|
|
13808
13840
|
var VerificationCheckValidator = external_exports.object({
|
|
13809
13841
|
checks: external_exports.string().array(),
|
|
13810
13842
|
warnings: external_exports.string().array(),
|
|
13811
13843
|
errors: external_exports.string().array(),
|
|
13844
|
+
/**
|
|
13845
|
+
* Per-entry results for the `credentialStatus` check, populated
|
|
13846
|
+
* by `@learncard/didkit-plugin` when the verified credential
|
|
13847
|
+
* carries one or more `credentialStatus` entries. Empty / absent
|
|
13848
|
+
* for credentials without a status entry.
|
|
13849
|
+
*
|
|
13850
|
+
* Marked `.optional()` because the underlying `ssi-ldp`
|
|
13851
|
+
* serializer omits the field when empty (`skip_serializing_if`),
|
|
13852
|
+
* so older WASM builds that pre-date the structured-status
|
|
13853
|
+
* change still validate against this schema.
|
|
13854
|
+
*/
|
|
13812
13855
|
status: StatusCheckEntryValidator.array().optional()
|
|
13813
13856
|
});
|
|
13814
13857
|
var VerificationStatusValidator = external_exports.enum(["Success", "Failed", "Error"]);
|