@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
|
@@ -7327,6 +7327,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7327
7327
|
var __toCommonJS2 = /* @__PURE__ */ __name3((mod22) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod22), "__toCommonJS");
|
|
7328
7328
|
var src_exports2 = {};
|
|
7329
7329
|
__export2(src_exports2, {
|
|
7330
|
+
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2,
|
|
7330
7331
|
AchievementCredentialValidator: () => AchievementCredentialValidator2,
|
|
7331
7332
|
AchievementCriteriaValidator: () => AchievementCriteriaValidator2,
|
|
7332
7333
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
@@ -7335,6 +7336,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7335
7336
|
AddressValidator: () => AddressValidator2,
|
|
7336
7337
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
7337
7338
|
AlignmentValidator: () => AlignmentValidator2,
|
|
7339
|
+
AuthGrantQueryValidator: () => AuthGrantQueryValidator2,
|
|
7340
|
+
AuthGrantStatusValidator: () => AuthGrantStatusValidator2,
|
|
7341
|
+
AuthGrantValidator: () => AuthGrantValidator2,
|
|
7338
7342
|
AutoBoostConfigValidator: () => AutoBoostConfigValidator2,
|
|
7339
7343
|
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator2,
|
|
7340
7344
|
BoostPermissionsValidator: () => BoostPermissionsValidator2,
|
|
@@ -7372,6 +7376,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7372
7376
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator2,
|
|
7373
7377
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
7374
7378
|
EvidenceValidator: () => EvidenceValidator2,
|
|
7379
|
+
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
7375
7380
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
7376
7381
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
7377
7382
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
@@ -7418,6 +7423,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7418
7423
|
ProfileValidator: () => ProfileValidator2,
|
|
7419
7424
|
ProofValidator: () => ProofValidator2,
|
|
7420
7425
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
7426
|
+
RegExpValidator: () => RegExpValidator2,
|
|
7421
7427
|
RelatedValidator: () => RelatedValidator2,
|
|
7422
7428
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
7423
7429
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
@@ -7426,9 +7432,12 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7426
7432
|
RubricCriterionValidator: () => RubricCriterionValidator2,
|
|
7427
7433
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
7428
7434
|
ServiceValidator: () => ServiceValidator2,
|
|
7435
|
+
StringQuery: () => StringQuery2,
|
|
7436
|
+
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
7429
7437
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
7430
7438
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
7431
7439
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
7440
|
+
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
7432
7441
|
VCValidator: () => VCValidator2,
|
|
7433
7442
|
VPValidator: () => VPValidator2,
|
|
7434
7443
|
VerificationCheckValidator: () => VerificationCheckValidator2,
|
|
@@ -10869,18 +10878,31 @@ var require_types_cjs_development = __commonJS2({
|
|
|
10869
10878
|
var CredentialSubjectValidator2 = mod2.object({ id: mod2.string().optional() }).catchall(mod2.any());
|
|
10870
10879
|
var CredentialStatusValidator2 = mod2.object({ type: mod2.string(), id: mod2.string() }).catchall(mod2.any());
|
|
10871
10880
|
var CredentialSchemaValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
10872
|
-
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());
|
|
10873
10884
|
var UnsignedVCValidator2 = mod2.object({
|
|
10874
10885
|
"@context": ContextValidator2,
|
|
10875
10886
|
id: mod2.string().optional(),
|
|
10876
10887
|
type: mod2.string().array().nonempty(),
|
|
10877
10888
|
issuer: ProfileValidator2,
|
|
10878
|
-
issuanceDate: mod2.string(),
|
|
10879
|
-
expirationDate: mod2.string().optional(),
|
|
10880
10889
|
credentialSubject: CredentialSubjectValidator2.or(CredentialSubjectValidator2.array()),
|
|
10881
|
-
|
|
10882
|
-
credentialSchema: CredentialSchemaValidator2.
|
|
10883
|
-
|
|
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()
|
|
10884
10906
|
}).catchall(mod2.any());
|
|
10885
10907
|
var ProofValidator2 = mod2.object({
|
|
10886
10908
|
type: mod2.string(),
|
|
@@ -11132,7 +11154,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
11132
11154
|
}).catchall(mod2.any());
|
|
11133
11155
|
var EvidenceValidator2 = mod2.object({
|
|
11134
11156
|
id: mod2.string().optional(),
|
|
11135
|
-
type: mod2.string().array().nonempty(),
|
|
11157
|
+
type: mod2.string().or(mod2.string().array().nonempty()),
|
|
11136
11158
|
narrative: mod2.string().optional(),
|
|
11137
11159
|
name: mod2.string().optional(),
|
|
11138
11160
|
description: mod2.string().optional(),
|
|
@@ -11605,6 +11627,28 @@ var require_types_cjs_development = __commonJS2({
|
|
|
11605
11627
|
data: LCNNotificationDataValidator2.optional(),
|
|
11606
11628
|
sent: mod2.string().datetime().optional()
|
|
11607
11629
|
});
|
|
11630
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2 = "auth-grant:";
|
|
11631
|
+
var AuthGrantValidator2 = mod2.object({
|
|
11632
|
+
id: mod2.string(),
|
|
11633
|
+
name: mod2.string(),
|
|
11634
|
+
description: mod2.string().optional(),
|
|
11635
|
+
challenge: mod2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
11636
|
+
status: mod2.enum(["revoked", "active"], {
|
|
11637
|
+
required_error: "Status is required",
|
|
11638
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
11639
|
+
}),
|
|
11640
|
+
scope: mod2.string(),
|
|
11641
|
+
createdAt: mod2.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
11642
|
+
expiresAt: mod2.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
11643
|
+
});
|
|
11644
|
+
var FlatAuthGrantValidator2 = mod2.object({ id: mod2.string() }).catchall(mod2.any());
|
|
11645
|
+
var AuthGrantStatusValidator2 = mod2.enum(["active", "revoked"]);
|
|
11646
|
+
var AuthGrantQueryValidator2 = mod2.object({
|
|
11647
|
+
id: StringQuery2,
|
|
11648
|
+
name: StringQuery2,
|
|
11649
|
+
description: StringQuery2,
|
|
11650
|
+
status: AuthGrantStatusValidator2
|
|
11651
|
+
}).partial();
|
|
11608
11652
|
}
|
|
11609
11653
|
});
|
|
11610
11654
|
var require_dist = __commonJS2({
|
|
@@ -15028,18 +15072,31 @@ var ProfileValidator = mod.string().or(
|
|
|
15028
15072
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
|
15029
15073
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
|
15030
15074
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
15031
|
-
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
15075
|
+
var RefreshServiceValidator = mod.object({ id: mod.string().optional(), type: mod.string() }).catchall(mod.any());
|
|
15076
|
+
var TermsOfUseValidator = mod.object({ type: mod.string(), id: mod.string().optional() }).catchall(mod.any());
|
|
15077
|
+
var VC2EvidenceValidator = mod.object({ type: mod.string().or(mod.string().array().nonempty()), id: mod.string().optional() }).catchall(mod.any());
|
|
15032
15078
|
var UnsignedVCValidator = mod.object({
|
|
15033
15079
|
"@context": ContextValidator,
|
|
15034
15080
|
id: mod.string().optional(),
|
|
15035
15081
|
type: mod.string().array().nonempty(),
|
|
15036
15082
|
issuer: ProfileValidator,
|
|
15037
|
-
issuanceDate: mod.string(),
|
|
15038
|
-
expirationDate: mod.string().optional(),
|
|
15039
15083
|
credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
|
|
15040
|
-
|
|
15041
|
-
credentialSchema: CredentialSchemaValidator.
|
|
15042
|
-
|
|
15084
|
+
refreshService: RefreshServiceValidator.or(RefreshServiceValidator.array()).optional(),
|
|
15085
|
+
credentialSchema: CredentialSchemaValidator.or(
|
|
15086
|
+
CredentialSchemaValidator.array()
|
|
15087
|
+
).optional(),
|
|
15088
|
+
issuanceDate: mod.string().optional(),
|
|
15089
|
+
expirationDate: mod.string().optional(),
|
|
15090
|
+
credentialStatus: CredentialStatusValidator.or(
|
|
15091
|
+
CredentialStatusValidator.array()
|
|
15092
|
+
).optional(),
|
|
15093
|
+
name: mod.string().optional(),
|
|
15094
|
+
description: mod.string().optional(),
|
|
15095
|
+
validFrom: mod.string().optional(),
|
|
15096
|
+
validUntil: mod.string().optional(),
|
|
15097
|
+
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
|
15098
|
+
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
|
15099
|
+
evidence: VC2EvidenceValidator.or(VC2EvidenceValidator.array()).optional()
|
|
15043
15100
|
}).catchall(mod.any());
|
|
15044
15101
|
var ProofValidator = mod.object({
|
|
15045
15102
|
type: mod.string(),
|
|
@@ -15291,7 +15348,7 @@ var AchievementSubjectValidator = mod.object({
|
|
|
15291
15348
|
}).catchall(mod.any());
|
|
15292
15349
|
var EvidenceValidator = mod.object({
|
|
15293
15350
|
id: mod.string().optional(),
|
|
15294
|
-
type: mod.string().array().nonempty(),
|
|
15351
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
|
15295
15352
|
narrative: mod.string().optional(),
|
|
15296
15353
|
name: mod.string().optional(),
|
|
15297
15354
|
description: mod.string().optional(),
|
|
@@ -15764,6 +15821,28 @@ var LCNNotificationValidator = mod.object({
|
|
|
15764
15821
|
data: LCNNotificationDataValidator.optional(),
|
|
15765
15822
|
sent: mod.string().datetime().optional()
|
|
15766
15823
|
});
|
|
15824
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
|
15825
|
+
var AuthGrantValidator = mod.object({
|
|
15826
|
+
id: mod.string(),
|
|
15827
|
+
name: mod.string(),
|
|
15828
|
+
description: mod.string().optional(),
|
|
15829
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
15830
|
+
status: mod.enum(["revoked", "active"], {
|
|
15831
|
+
required_error: "Status is required",
|
|
15832
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
15833
|
+
}),
|
|
15834
|
+
scope: mod.string(),
|
|
15835
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
15836
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
15837
|
+
});
|
|
15838
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
|
15839
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
|
15840
|
+
var AuthGrantQueryValidator = mod.object({
|
|
15841
|
+
id: StringQuery,
|
|
15842
|
+
name: StringQuery,
|
|
15843
|
+
description: StringQuery,
|
|
15844
|
+
status: AuthGrantStatusValidator
|
|
15845
|
+
}).partial();
|
|
15767
15846
|
|
|
15768
15847
|
// src/helpers.ts
|
|
15769
15848
|
var import_json_stringify_deterministic = __toESM(require_lib());
|