@learncard/idx-plugin 1.0.34 → 1.0.36
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/idx-plugin.cjs.development.js +46 -16
- package/dist/idx-plugin.cjs.development.js.map +3 -3
- package/dist/idx-plugin.cjs.production.min.js +54 -54
- package/dist/idx-plugin.cjs.production.min.js.map +3 -3
- package/dist/idx-plugin.esm.js +46 -16
- package/dist/idx-plugin.esm.js.map +3 -3
- package/package.json +4 -4
|
@@ -10996,18 +10996,31 @@ var ProfileValidator = mod.string().or(
|
|
|
10996
10996
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
|
10997
10997
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
|
10998
10998
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
10999
|
-
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
10999
|
+
var RefreshServiceValidator = mod.object({ id: mod.string().optional(), type: mod.string() }).catchall(mod.any());
|
|
11000
|
+
var TermsOfUseValidator = mod.object({ type: mod.string(), id: mod.string().optional() }).catchall(mod.any());
|
|
11001
|
+
var VC2EvidenceValidator = mod.object({ type: mod.string().or(mod.string().array().nonempty()), id: mod.string().optional() }).catchall(mod.any());
|
|
11000
11002
|
var UnsignedVCValidator = mod.object({
|
|
11001
11003
|
"@context": ContextValidator,
|
|
11002
11004
|
id: mod.string().optional(),
|
|
11003
11005
|
type: mod.string().array().nonempty(),
|
|
11004
11006
|
issuer: ProfileValidator,
|
|
11005
|
-
issuanceDate: mod.string(),
|
|
11006
|
-
expirationDate: mod.string().optional(),
|
|
11007
11007
|
credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
|
|
11008
|
-
|
|
11009
|
-
credentialSchema: CredentialSchemaValidator.
|
|
11010
|
-
|
|
11008
|
+
refreshService: RefreshServiceValidator.or(RefreshServiceValidator.array()).optional(),
|
|
11009
|
+
credentialSchema: CredentialSchemaValidator.or(
|
|
11010
|
+
CredentialSchemaValidator.array()
|
|
11011
|
+
).optional(),
|
|
11012
|
+
issuanceDate: mod.string().optional(),
|
|
11013
|
+
expirationDate: mod.string().optional(),
|
|
11014
|
+
credentialStatus: CredentialStatusValidator.or(
|
|
11015
|
+
CredentialStatusValidator.array()
|
|
11016
|
+
).optional(),
|
|
11017
|
+
name: mod.string().optional(),
|
|
11018
|
+
description: mod.string().optional(),
|
|
11019
|
+
validFrom: mod.string().optional(),
|
|
11020
|
+
validUntil: mod.string().optional(),
|
|
11021
|
+
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
|
11022
|
+
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
|
11023
|
+
evidence: VC2EvidenceValidator.or(VC2EvidenceValidator.array()).optional()
|
|
11011
11024
|
}).catchall(mod.any());
|
|
11012
11025
|
var ProofValidator = mod.object({
|
|
11013
11026
|
type: mod.string(),
|
|
@@ -11259,7 +11272,7 @@ var AchievementSubjectValidator = mod.object({
|
|
|
11259
11272
|
}).catchall(mod.any());
|
|
11260
11273
|
var EvidenceValidator = mod.object({
|
|
11261
11274
|
id: mod.string().optional(),
|
|
11262
|
-
type: mod.string().array().nonempty(),
|
|
11275
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
|
11263
11276
|
narrative: mod.string().optional(),
|
|
11264
11277
|
name: mod.string().optional(),
|
|
11265
11278
|
description: mod.string().optional(),
|
|
@@ -11375,7 +11388,9 @@ var LCNProfileValidator = mod.object({
|
|
|
11375
11388
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
11376
11389
|
type: mod.string().optional(),
|
|
11377
11390
|
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
11378
|
-
display: LCNProfileDisplayValidator.optional()
|
|
11391
|
+
display: LCNProfileDisplayValidator.optional(),
|
|
11392
|
+
role: mod.string().default("").optional(),
|
|
11393
|
+
dob: mod.string().default("").optional()
|
|
11379
11394
|
});
|
|
11380
11395
|
var LCNProfileQueryValidator = mod.object({
|
|
11381
11396
|
profileId: StringQuery,
|
|
@@ -66034,18 +66049,31 @@ var ProfileValidator2 = mod2.string().or(
|
|
|
66034
66049
|
var CredentialSubjectValidator2 = mod2.object({ id: mod2.string().optional() }).catchall(mod2.any());
|
|
66035
66050
|
var CredentialStatusValidator2 = mod2.object({ type: mod2.string(), id: mod2.string() }).catchall(mod2.any());
|
|
66036
66051
|
var CredentialSchemaValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
66037
|
-
var RefreshServiceValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
66052
|
+
var RefreshServiceValidator2 = mod2.object({ id: mod2.string().optional(), type: mod2.string() }).catchall(mod2.any());
|
|
66053
|
+
var TermsOfUseValidator2 = mod2.object({ type: mod2.string(), id: mod2.string().optional() }).catchall(mod2.any());
|
|
66054
|
+
var VC2EvidenceValidator2 = mod2.object({ type: mod2.string().or(mod2.string().array().nonempty()), id: mod2.string().optional() }).catchall(mod2.any());
|
|
66038
66055
|
var UnsignedVCValidator2 = mod2.object({
|
|
66039
66056
|
"@context": ContextValidator2,
|
|
66040
66057
|
id: mod2.string().optional(),
|
|
66041
66058
|
type: mod2.string().array().nonempty(),
|
|
66042
66059
|
issuer: ProfileValidator2,
|
|
66043
|
-
issuanceDate: mod2.string(),
|
|
66044
|
-
expirationDate: mod2.string().optional(),
|
|
66045
66060
|
credentialSubject: CredentialSubjectValidator2.or(CredentialSubjectValidator2.array()),
|
|
66046
|
-
|
|
66047
|
-
credentialSchema: CredentialSchemaValidator2.
|
|
66048
|
-
|
|
66061
|
+
refreshService: RefreshServiceValidator2.or(RefreshServiceValidator2.array()).optional(),
|
|
66062
|
+
credentialSchema: CredentialSchemaValidator2.or(
|
|
66063
|
+
CredentialSchemaValidator2.array()
|
|
66064
|
+
).optional(),
|
|
66065
|
+
issuanceDate: mod2.string().optional(),
|
|
66066
|
+
expirationDate: mod2.string().optional(),
|
|
66067
|
+
credentialStatus: CredentialStatusValidator2.or(
|
|
66068
|
+
CredentialStatusValidator2.array()
|
|
66069
|
+
).optional(),
|
|
66070
|
+
name: mod2.string().optional(),
|
|
66071
|
+
description: mod2.string().optional(),
|
|
66072
|
+
validFrom: mod2.string().optional(),
|
|
66073
|
+
validUntil: mod2.string().optional(),
|
|
66074
|
+
status: CredentialStatusValidator2.or(CredentialStatusValidator2.array()).optional(),
|
|
66075
|
+
termsOfUse: TermsOfUseValidator2.or(TermsOfUseValidator2.array()).optional(),
|
|
66076
|
+
evidence: VC2EvidenceValidator2.or(VC2EvidenceValidator2.array()).optional()
|
|
66049
66077
|
}).catchall(mod2.any());
|
|
66050
66078
|
var ProofValidator2 = mod2.object({
|
|
66051
66079
|
type: mod2.string(),
|
|
@@ -66297,7 +66325,7 @@ var AchievementSubjectValidator2 = mod2.object({
|
|
|
66297
66325
|
}).catchall(mod2.any());
|
|
66298
66326
|
var EvidenceValidator2 = mod2.object({
|
|
66299
66327
|
id: mod2.string().optional(),
|
|
66300
|
-
type: mod2.string().array().nonempty(),
|
|
66328
|
+
type: mod2.string().or(mod2.string().array().nonempty()),
|
|
66301
66329
|
narrative: mod2.string().optional(),
|
|
66302
66330
|
name: mod2.string().optional(),
|
|
66303
66331
|
description: mod2.string().optional(),
|
|
@@ -66413,7 +66441,9 @@ var LCNProfileValidator2 = mod2.object({
|
|
|
66413
66441
|
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
66414
66442
|
type: mod2.string().optional(),
|
|
66415
66443
|
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
66416
|
-
display: LCNProfileDisplayValidator2.optional()
|
|
66444
|
+
display: LCNProfileDisplayValidator2.optional(),
|
|
66445
|
+
role: mod2.string().default("").optional(),
|
|
66446
|
+
dob: mod2.string().default("").optional()
|
|
66417
66447
|
});
|
|
66418
66448
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
66419
66449
|
profileId: StringQuery2,
|