@learncard/learn-cloud-plugin 2.1.18 → 2.1.20
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/learn-cloud-plugin.cjs.development.js +48 -16
- package/dist/learn-cloud-plugin.cjs.development.js.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.js +11 -11
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +48 -16
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -7433,9 +7433,11 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7433
7433
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
7434
7434
|
ServiceValidator: () => ServiceValidator2,
|
|
7435
7435
|
StringQuery: () => StringQuery2,
|
|
7436
|
+
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
7436
7437
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
7437
7438
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
7438
7439
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
7440
|
+
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
7439
7441
|
VCValidator: () => VCValidator2,
|
|
7440
7442
|
VPValidator: () => VPValidator2,
|
|
7441
7443
|
VerificationCheckValidator: () => VerificationCheckValidator2,
|
|
@@ -10876,18 +10878,31 @@ var require_types_cjs_development = __commonJS2({
|
|
|
10876
10878
|
var CredentialSubjectValidator2 = mod2.object({ id: mod2.string().optional() }).catchall(mod2.any());
|
|
10877
10879
|
var CredentialStatusValidator2 = mod2.object({ type: mod2.string(), id: mod2.string() }).catchall(mod2.any());
|
|
10878
10880
|
var CredentialSchemaValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
10879
|
-
var RefreshServiceValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
10881
|
+
var RefreshServiceValidator2 = mod2.object({ id: mod2.string().optional(), type: mod2.string() }).catchall(mod2.any());
|
|
10882
|
+
var TermsOfUseValidator2 = mod2.object({ type: mod2.string(), id: mod2.string().optional() }).catchall(mod2.any());
|
|
10883
|
+
var VC2EvidenceValidator2 = mod2.object({ type: mod2.string().or(mod2.string().array().nonempty()), id: mod2.string().optional() }).catchall(mod2.any());
|
|
10880
10884
|
var UnsignedVCValidator2 = mod2.object({
|
|
10881
10885
|
"@context": ContextValidator2,
|
|
10882
10886
|
id: mod2.string().optional(),
|
|
10883
10887
|
type: mod2.string().array().nonempty(),
|
|
10884
10888
|
issuer: ProfileValidator2,
|
|
10885
|
-
issuanceDate: mod2.string(),
|
|
10886
|
-
expirationDate: mod2.string().optional(),
|
|
10887
10889
|
credentialSubject: CredentialSubjectValidator2.or(CredentialSubjectValidator2.array()),
|
|
10888
|
-
|
|
10889
|
-
credentialSchema: CredentialSchemaValidator2.
|
|
10890
|
-
|
|
10890
|
+
refreshService: RefreshServiceValidator2.or(RefreshServiceValidator2.array()).optional(),
|
|
10891
|
+
credentialSchema: CredentialSchemaValidator2.or(
|
|
10892
|
+
CredentialSchemaValidator2.array()
|
|
10893
|
+
).optional(),
|
|
10894
|
+
issuanceDate: mod2.string().optional(),
|
|
10895
|
+
expirationDate: mod2.string().optional(),
|
|
10896
|
+
credentialStatus: CredentialStatusValidator2.or(
|
|
10897
|
+
CredentialStatusValidator2.array()
|
|
10898
|
+
).optional(),
|
|
10899
|
+
name: mod2.string().optional(),
|
|
10900
|
+
description: mod2.string().optional(),
|
|
10901
|
+
validFrom: mod2.string().optional(),
|
|
10902
|
+
validUntil: mod2.string().optional(),
|
|
10903
|
+
status: CredentialStatusValidator2.or(CredentialStatusValidator2.array()).optional(),
|
|
10904
|
+
termsOfUse: TermsOfUseValidator2.or(TermsOfUseValidator2.array()).optional(),
|
|
10905
|
+
evidence: VC2EvidenceValidator2.or(VC2EvidenceValidator2.array()).optional()
|
|
10891
10906
|
}).catchall(mod2.any());
|
|
10892
10907
|
var ProofValidator2 = mod2.object({
|
|
10893
10908
|
type: mod2.string(),
|
|
@@ -11139,7 +11154,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
11139
11154
|
}).catchall(mod2.any());
|
|
11140
11155
|
var EvidenceValidator2 = mod2.object({
|
|
11141
11156
|
id: mod2.string().optional(),
|
|
11142
|
-
type: mod2.string().array().nonempty(),
|
|
11157
|
+
type: mod2.string().or(mod2.string().array().nonempty()),
|
|
11143
11158
|
narrative: mod2.string().optional(),
|
|
11144
11159
|
name: mod2.string().optional(),
|
|
11145
11160
|
description: mod2.string().optional(),
|
|
@@ -11255,7 +11270,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
11255
11270
|
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
11256
11271
|
type: mod2.string().optional(),
|
|
11257
11272
|
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
11258
|
-
display: LCNProfileDisplayValidator2.optional()
|
|
11273
|
+
display: LCNProfileDisplayValidator2.optional(),
|
|
11274
|
+
role: mod2.string().default("").optional(),
|
|
11275
|
+
dob: mod2.string().default("").optional()
|
|
11259
11276
|
});
|
|
11260
11277
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
11261
11278
|
profileId: StringQuery2,
|
|
@@ -15057,18 +15074,31 @@ var ProfileValidator = mod.string().or(
|
|
|
15057
15074
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
|
15058
15075
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
|
15059
15076
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
15060
|
-
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
15077
|
+
var RefreshServiceValidator = mod.object({ id: mod.string().optional(), type: mod.string() }).catchall(mod.any());
|
|
15078
|
+
var TermsOfUseValidator = mod.object({ type: mod.string(), id: mod.string().optional() }).catchall(mod.any());
|
|
15079
|
+
var VC2EvidenceValidator = mod.object({ type: mod.string().or(mod.string().array().nonempty()), id: mod.string().optional() }).catchall(mod.any());
|
|
15061
15080
|
var UnsignedVCValidator = mod.object({
|
|
15062
15081
|
"@context": ContextValidator,
|
|
15063
15082
|
id: mod.string().optional(),
|
|
15064
15083
|
type: mod.string().array().nonempty(),
|
|
15065
15084
|
issuer: ProfileValidator,
|
|
15066
|
-
issuanceDate: mod.string(),
|
|
15067
|
-
expirationDate: mod.string().optional(),
|
|
15068
15085
|
credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
|
|
15069
|
-
|
|
15070
|
-
credentialSchema: CredentialSchemaValidator.
|
|
15071
|
-
|
|
15086
|
+
refreshService: RefreshServiceValidator.or(RefreshServiceValidator.array()).optional(),
|
|
15087
|
+
credentialSchema: CredentialSchemaValidator.or(
|
|
15088
|
+
CredentialSchemaValidator.array()
|
|
15089
|
+
).optional(),
|
|
15090
|
+
issuanceDate: mod.string().optional(),
|
|
15091
|
+
expirationDate: mod.string().optional(),
|
|
15092
|
+
credentialStatus: CredentialStatusValidator.or(
|
|
15093
|
+
CredentialStatusValidator.array()
|
|
15094
|
+
).optional(),
|
|
15095
|
+
name: mod.string().optional(),
|
|
15096
|
+
description: mod.string().optional(),
|
|
15097
|
+
validFrom: mod.string().optional(),
|
|
15098
|
+
validUntil: mod.string().optional(),
|
|
15099
|
+
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
|
15100
|
+
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
|
15101
|
+
evidence: VC2EvidenceValidator.or(VC2EvidenceValidator.array()).optional()
|
|
15072
15102
|
}).catchall(mod.any());
|
|
15073
15103
|
var ProofValidator = mod.object({
|
|
15074
15104
|
type: mod.string(),
|
|
@@ -15320,7 +15350,7 @@ var AchievementSubjectValidator = mod.object({
|
|
|
15320
15350
|
}).catchall(mod.any());
|
|
15321
15351
|
var EvidenceValidator = mod.object({
|
|
15322
15352
|
id: mod.string().optional(),
|
|
15323
|
-
type: mod.string().array().nonempty(),
|
|
15353
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
|
15324
15354
|
narrative: mod.string().optional(),
|
|
15325
15355
|
name: mod.string().optional(),
|
|
15326
15356
|
description: mod.string().optional(),
|
|
@@ -15436,7 +15466,9 @@ var LCNProfileValidator = mod.object({
|
|
|
15436
15466
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
15437
15467
|
type: mod.string().optional(),
|
|
15438
15468
|
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
15439
|
-
display: LCNProfileDisplayValidator.optional()
|
|
15469
|
+
display: LCNProfileDisplayValidator.optional(),
|
|
15470
|
+
role: mod.string().default("").optional(),
|
|
15471
|
+
dob: mod.string().default("").optional()
|
|
15440
15472
|
});
|
|
15441
15473
|
var LCNProfileQueryValidator = mod.object({
|
|
15442
15474
|
profileId: StringQuery,
|