@learncard/network-plugin 2.4.20 → 2.4.22
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/lcn-plugin.cjs.development.js +29 -0
- package/dist/lcn-plugin.cjs.development.js.map +3 -3
- package/dist/lcn-plugin.cjs.production.min.js +2 -2
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +29 -0
- package/dist/lcn-plugin.esm.js.map +3 -3
- package/package.json +7 -7
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -1209,6 +1209,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1209
1209
|
var __toCommonJS2 = /* @__PURE__ */ __name22((mod22) => __copyProps22(__defProp222({}, "__esModule", { value: true }), mod22), "__toCommonJS");
|
|
1210
1210
|
var src_exports2 = {};
|
|
1211
1211
|
__export2(src_exports2, {
|
|
1212
|
+
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX3,
|
|
1212
1213
|
AchievementCredentialValidator: () => AchievementCredentialValidator2,
|
|
1213
1214
|
AchievementCriteriaValidator: () => AchievementCriteriaValidator2,
|
|
1214
1215
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
@@ -1217,6 +1218,9 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1217
1218
|
AddressValidator: () => AddressValidator2,
|
|
1218
1219
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
1219
1220
|
AlignmentValidator: () => AlignmentValidator2,
|
|
1221
|
+
AuthGrantQueryValidator: () => AuthGrantQueryValidator2,
|
|
1222
|
+
AuthGrantStatusValidator: () => AuthGrantStatusValidator2,
|
|
1223
|
+
AuthGrantValidator: () => AuthGrantValidator2,
|
|
1220
1224
|
AutoBoostConfigValidator: () => AutoBoostConfigValidator2,
|
|
1221
1225
|
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator2,
|
|
1222
1226
|
BoostPermissionsValidator: () => BoostPermissionsValidator2,
|
|
@@ -1254,6 +1258,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1254
1258
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator2,
|
|
1255
1259
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
1256
1260
|
EvidenceValidator: () => EvidenceValidator2,
|
|
1261
|
+
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
1257
1262
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
1258
1263
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
1259
1264
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
@@ -1300,6 +1305,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1300
1305
|
ProfileValidator: () => ProfileValidator2,
|
|
1301
1306
|
ProofValidator: () => ProofValidator2,
|
|
1302
1307
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
1308
|
+
RegExpValidator: () => RegExpValidator2,
|
|
1303
1309
|
RelatedValidator: () => RelatedValidator2,
|
|
1304
1310
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
1305
1311
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
@@ -1308,6 +1314,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1308
1314
|
RubricCriterionValidator: () => RubricCriterionValidator2,
|
|
1309
1315
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
1310
1316
|
ServiceValidator: () => ServiceValidator2,
|
|
1317
|
+
StringQuery: () => StringQuery2,
|
|
1311
1318
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
1312
1319
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
1313
1320
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
@@ -5502,6 +5509,28 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5502
5509
|
data: LCNNotificationDataValidator2.optional(),
|
|
5503
5510
|
sent: mod2.string().datetime().optional()
|
|
5504
5511
|
});
|
|
5512
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX3 = "auth-grant:";
|
|
5513
|
+
var AuthGrantValidator2 = mod2.object({
|
|
5514
|
+
id: mod2.string(),
|
|
5515
|
+
name: mod2.string(),
|
|
5516
|
+
description: mod2.string().optional(),
|
|
5517
|
+
challenge: mod2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX3).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
5518
|
+
status: mod2.enum(["revoked", "active"], {
|
|
5519
|
+
required_error: "Status is required",
|
|
5520
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
5521
|
+
}),
|
|
5522
|
+
scope: mod2.string(),
|
|
5523
|
+
createdAt: mod2.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
5524
|
+
expiresAt: mod2.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
5525
|
+
});
|
|
5526
|
+
var FlatAuthGrantValidator2 = mod2.object({ id: mod2.string() }).catchall(mod2.any());
|
|
5527
|
+
var AuthGrantStatusValidator2 = mod2.enum(["active", "revoked"]);
|
|
5528
|
+
var AuthGrantQueryValidator2 = mod2.object({
|
|
5529
|
+
id: StringQuery2,
|
|
5530
|
+
name: StringQuery2,
|
|
5531
|
+
description: StringQuery2,
|
|
5532
|
+
status: AuthGrantStatusValidator2
|
|
5533
|
+
}).partial();
|
|
5505
5534
|
}
|
|
5506
5535
|
});
|
|
5507
5536
|
var require_dist2 = __commonJS2({
|