@learncard/learn-cloud-plugin 2.1.17 → 2.1.19
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 +93 -14
- package/dist/learn-cloud-plugin.cjs.development.js.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.js +15 -15
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +93 -14
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -7314,6 +7314,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7314
7314
|
var __toCommonJS = /* @__PURE__ */ __name3((mod22) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod22), "__toCommonJS");
|
|
7315
7315
|
var src_exports = {};
|
|
7316
7316
|
__export(src_exports, {
|
|
7317
|
+
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2,
|
|
7317
7318
|
AchievementCredentialValidator: () => AchievementCredentialValidator2,
|
|
7318
7319
|
AchievementCriteriaValidator: () => AchievementCriteriaValidator2,
|
|
7319
7320
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
@@ -7322,6 +7323,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7322
7323
|
AddressValidator: () => AddressValidator2,
|
|
7323
7324
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
7324
7325
|
AlignmentValidator: () => AlignmentValidator2,
|
|
7326
|
+
AuthGrantQueryValidator: () => AuthGrantQueryValidator2,
|
|
7327
|
+
AuthGrantStatusValidator: () => AuthGrantStatusValidator2,
|
|
7328
|
+
AuthGrantValidator: () => AuthGrantValidator2,
|
|
7325
7329
|
AutoBoostConfigValidator: () => AutoBoostConfigValidator2,
|
|
7326
7330
|
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator2,
|
|
7327
7331
|
BoostPermissionsValidator: () => BoostPermissionsValidator2,
|
|
@@ -7359,6 +7363,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7359
7363
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator2,
|
|
7360
7364
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
7361
7365
|
EvidenceValidator: () => EvidenceValidator2,
|
|
7366
|
+
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
7362
7367
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
7363
7368
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
7364
7369
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
@@ -7405,6 +7410,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7405
7410
|
ProfileValidator: () => ProfileValidator2,
|
|
7406
7411
|
ProofValidator: () => ProofValidator2,
|
|
7407
7412
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
7413
|
+
RegExpValidator: () => RegExpValidator2,
|
|
7408
7414
|
RelatedValidator: () => RelatedValidator2,
|
|
7409
7415
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
7410
7416
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
@@ -7413,9 +7419,12 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7413
7419
|
RubricCriterionValidator: () => RubricCriterionValidator2,
|
|
7414
7420
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
7415
7421
|
ServiceValidator: () => ServiceValidator2,
|
|
7422
|
+
StringQuery: () => StringQuery2,
|
|
7423
|
+
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
7416
7424
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
7417
7425
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
7418
7426
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
7427
|
+
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
7419
7428
|
VCValidator: () => VCValidator2,
|
|
7420
7429
|
VPValidator: () => VPValidator2,
|
|
7421
7430
|
VerificationCheckValidator: () => VerificationCheckValidator2,
|
|
@@ -10856,18 +10865,31 @@ var require_types_cjs_development = __commonJS2({
|
|
|
10856
10865
|
var CredentialSubjectValidator2 = mod2.object({ id: mod2.string().optional() }).catchall(mod2.any());
|
|
10857
10866
|
var CredentialStatusValidator2 = mod2.object({ type: mod2.string(), id: mod2.string() }).catchall(mod2.any());
|
|
10858
10867
|
var CredentialSchemaValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
10859
|
-
var RefreshServiceValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
10868
|
+
var RefreshServiceValidator2 = mod2.object({ id: mod2.string().optional(), type: mod2.string() }).catchall(mod2.any());
|
|
10869
|
+
var TermsOfUseValidator2 = mod2.object({ type: mod2.string(), id: mod2.string().optional() }).catchall(mod2.any());
|
|
10870
|
+
var VC2EvidenceValidator2 = mod2.object({ type: mod2.string().or(mod2.string().array().nonempty()), id: mod2.string().optional() }).catchall(mod2.any());
|
|
10860
10871
|
var UnsignedVCValidator2 = mod2.object({
|
|
10861
10872
|
"@context": ContextValidator2,
|
|
10862
10873
|
id: mod2.string().optional(),
|
|
10863
10874
|
type: mod2.string().array().nonempty(),
|
|
10864
10875
|
issuer: ProfileValidator2,
|
|
10865
|
-
issuanceDate: mod2.string(),
|
|
10866
|
-
expirationDate: mod2.string().optional(),
|
|
10867
10876
|
credentialSubject: CredentialSubjectValidator2.or(CredentialSubjectValidator2.array()),
|
|
10868
|
-
|
|
10869
|
-
credentialSchema: CredentialSchemaValidator2.
|
|
10870
|
-
|
|
10877
|
+
refreshService: RefreshServiceValidator2.or(RefreshServiceValidator2.array()).optional(),
|
|
10878
|
+
credentialSchema: CredentialSchemaValidator2.or(
|
|
10879
|
+
CredentialSchemaValidator2.array()
|
|
10880
|
+
).optional(),
|
|
10881
|
+
issuanceDate: mod2.string().optional(),
|
|
10882
|
+
expirationDate: mod2.string().optional(),
|
|
10883
|
+
credentialStatus: CredentialStatusValidator2.or(
|
|
10884
|
+
CredentialStatusValidator2.array()
|
|
10885
|
+
).optional(),
|
|
10886
|
+
name: mod2.string().optional(),
|
|
10887
|
+
description: mod2.string().optional(),
|
|
10888
|
+
validFrom: mod2.string().optional(),
|
|
10889
|
+
validUntil: mod2.string().optional(),
|
|
10890
|
+
status: CredentialStatusValidator2.or(CredentialStatusValidator2.array()).optional(),
|
|
10891
|
+
termsOfUse: TermsOfUseValidator2.or(TermsOfUseValidator2.array()).optional(),
|
|
10892
|
+
evidence: VC2EvidenceValidator2.or(VC2EvidenceValidator2.array()).optional()
|
|
10871
10893
|
}).catchall(mod2.any());
|
|
10872
10894
|
var ProofValidator2 = mod2.object({
|
|
10873
10895
|
type: mod2.string(),
|
|
@@ -11119,7 +11141,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
11119
11141
|
}).catchall(mod2.any());
|
|
11120
11142
|
var EvidenceValidator2 = mod2.object({
|
|
11121
11143
|
id: mod2.string().optional(),
|
|
11122
|
-
type: mod2.string().array().nonempty(),
|
|
11144
|
+
type: mod2.string().or(mod2.string().array().nonempty()),
|
|
11123
11145
|
narrative: mod2.string().optional(),
|
|
11124
11146
|
name: mod2.string().optional(),
|
|
11125
11147
|
description: mod2.string().optional(),
|
|
@@ -11592,6 +11614,28 @@ var require_types_cjs_development = __commonJS2({
|
|
|
11592
11614
|
data: LCNNotificationDataValidator2.optional(),
|
|
11593
11615
|
sent: mod2.string().datetime().optional()
|
|
11594
11616
|
});
|
|
11617
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2 = "auth-grant:";
|
|
11618
|
+
var AuthGrantValidator2 = mod2.object({
|
|
11619
|
+
id: mod2.string(),
|
|
11620
|
+
name: mod2.string(),
|
|
11621
|
+
description: mod2.string().optional(),
|
|
11622
|
+
challenge: mod2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
11623
|
+
status: mod2.enum(["revoked", "active"], {
|
|
11624
|
+
required_error: "Status is required",
|
|
11625
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
11626
|
+
}),
|
|
11627
|
+
scope: mod2.string(),
|
|
11628
|
+
createdAt: mod2.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
11629
|
+
expiresAt: mod2.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
11630
|
+
});
|
|
11631
|
+
var FlatAuthGrantValidator2 = mod2.object({ id: mod2.string() }).catchall(mod2.any());
|
|
11632
|
+
var AuthGrantStatusValidator2 = mod2.enum(["active", "revoked"]);
|
|
11633
|
+
var AuthGrantQueryValidator2 = mod2.object({
|
|
11634
|
+
id: StringQuery2,
|
|
11635
|
+
name: StringQuery2,
|
|
11636
|
+
description: StringQuery2,
|
|
11637
|
+
status: AuthGrantStatusValidator2
|
|
11638
|
+
}).partial();
|
|
11595
11639
|
}
|
|
11596
11640
|
});
|
|
11597
11641
|
var require_dist = __commonJS2({
|
|
@@ -15015,18 +15059,31 @@ var ProfileValidator = mod.string().or(
|
|
|
15015
15059
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
|
15016
15060
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
|
15017
15061
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
15018
|
-
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
15062
|
+
var RefreshServiceValidator = mod.object({ id: mod.string().optional(), type: mod.string() }).catchall(mod.any());
|
|
15063
|
+
var TermsOfUseValidator = mod.object({ type: mod.string(), id: mod.string().optional() }).catchall(mod.any());
|
|
15064
|
+
var VC2EvidenceValidator = mod.object({ type: mod.string().or(mod.string().array().nonempty()), id: mod.string().optional() }).catchall(mod.any());
|
|
15019
15065
|
var UnsignedVCValidator = mod.object({
|
|
15020
15066
|
"@context": ContextValidator,
|
|
15021
15067
|
id: mod.string().optional(),
|
|
15022
15068
|
type: mod.string().array().nonempty(),
|
|
15023
15069
|
issuer: ProfileValidator,
|
|
15024
|
-
issuanceDate: mod.string(),
|
|
15025
|
-
expirationDate: mod.string().optional(),
|
|
15026
15070
|
credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
|
|
15027
|
-
|
|
15028
|
-
credentialSchema: CredentialSchemaValidator.
|
|
15029
|
-
|
|
15071
|
+
refreshService: RefreshServiceValidator.or(RefreshServiceValidator.array()).optional(),
|
|
15072
|
+
credentialSchema: CredentialSchemaValidator.or(
|
|
15073
|
+
CredentialSchemaValidator.array()
|
|
15074
|
+
).optional(),
|
|
15075
|
+
issuanceDate: mod.string().optional(),
|
|
15076
|
+
expirationDate: mod.string().optional(),
|
|
15077
|
+
credentialStatus: CredentialStatusValidator.or(
|
|
15078
|
+
CredentialStatusValidator.array()
|
|
15079
|
+
).optional(),
|
|
15080
|
+
name: mod.string().optional(),
|
|
15081
|
+
description: mod.string().optional(),
|
|
15082
|
+
validFrom: mod.string().optional(),
|
|
15083
|
+
validUntil: mod.string().optional(),
|
|
15084
|
+
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
|
15085
|
+
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
|
15086
|
+
evidence: VC2EvidenceValidator.or(VC2EvidenceValidator.array()).optional()
|
|
15030
15087
|
}).catchall(mod.any());
|
|
15031
15088
|
var ProofValidator = mod.object({
|
|
15032
15089
|
type: mod.string(),
|
|
@@ -15278,7 +15335,7 @@ var AchievementSubjectValidator = mod.object({
|
|
|
15278
15335
|
}).catchall(mod.any());
|
|
15279
15336
|
var EvidenceValidator = mod.object({
|
|
15280
15337
|
id: mod.string().optional(),
|
|
15281
|
-
type: mod.string().array().nonempty(),
|
|
15338
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
|
15282
15339
|
narrative: mod.string().optional(),
|
|
15283
15340
|
name: mod.string().optional(),
|
|
15284
15341
|
description: mod.string().optional(),
|
|
@@ -15751,6 +15808,28 @@ var LCNNotificationValidator = mod.object({
|
|
|
15751
15808
|
data: LCNNotificationDataValidator.optional(),
|
|
15752
15809
|
sent: mod.string().datetime().optional()
|
|
15753
15810
|
});
|
|
15811
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
|
15812
|
+
var AuthGrantValidator = mod.object({
|
|
15813
|
+
id: mod.string(),
|
|
15814
|
+
name: mod.string(),
|
|
15815
|
+
description: mod.string().optional(),
|
|
15816
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
15817
|
+
status: mod.enum(["revoked", "active"], {
|
|
15818
|
+
required_error: "Status is required",
|
|
15819
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
15820
|
+
}),
|
|
15821
|
+
scope: mod.string(),
|
|
15822
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
15823
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
15824
|
+
});
|
|
15825
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
|
15826
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
|
15827
|
+
var AuthGrantQueryValidator = mod.object({
|
|
15828
|
+
id: StringQuery,
|
|
15829
|
+
name: StringQuery,
|
|
15830
|
+
description: StringQuery,
|
|
15831
|
+
status: AuthGrantStatusValidator
|
|
15832
|
+
}).partial();
|
|
15754
15833
|
|
|
15755
15834
|
// src/helpers.ts
|
|
15756
15835
|
var import_json_stringify_deterministic = __toESM(require_lib());
|