@learncard/network-plugin 2.4.20 → 2.4.21
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
|
@@ -1234,6 +1234,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1234
1234
|
var __toCommonJS22 = /* @__PURE__ */ __name22((mod22) => __copyProps222(__defProp222({}, "__esModule", { value: true }), mod22), "__toCommonJS");
|
|
1235
1235
|
var src_exports22 = {};
|
|
1236
1236
|
__export22(src_exports22, {
|
|
1237
|
+
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX3,
|
|
1237
1238
|
AchievementCredentialValidator: () => AchievementCredentialValidator2,
|
|
1238
1239
|
AchievementCriteriaValidator: () => AchievementCriteriaValidator2,
|
|
1239
1240
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
@@ -1242,6 +1243,9 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1242
1243
|
AddressValidator: () => AddressValidator2,
|
|
1243
1244
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
1244
1245
|
AlignmentValidator: () => AlignmentValidator2,
|
|
1246
|
+
AuthGrantQueryValidator: () => AuthGrantQueryValidator2,
|
|
1247
|
+
AuthGrantStatusValidator: () => AuthGrantStatusValidator2,
|
|
1248
|
+
AuthGrantValidator: () => AuthGrantValidator2,
|
|
1245
1249
|
AutoBoostConfigValidator: () => AutoBoostConfigValidator2,
|
|
1246
1250
|
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator2,
|
|
1247
1251
|
BoostPermissionsValidator: () => BoostPermissionsValidator2,
|
|
@@ -1279,6 +1283,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1279
1283
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator2,
|
|
1280
1284
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
1281
1285
|
EvidenceValidator: () => EvidenceValidator2,
|
|
1286
|
+
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
1282
1287
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
1283
1288
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
1284
1289
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
@@ -1325,6 +1330,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1325
1330
|
ProfileValidator: () => ProfileValidator2,
|
|
1326
1331
|
ProofValidator: () => ProofValidator2,
|
|
1327
1332
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
1333
|
+
RegExpValidator: () => RegExpValidator2,
|
|
1328
1334
|
RelatedValidator: () => RelatedValidator2,
|
|
1329
1335
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
1330
1336
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
@@ -1333,6 +1339,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1333
1339
|
RubricCriterionValidator: () => RubricCriterionValidator2,
|
|
1334
1340
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
1335
1341
|
ServiceValidator: () => ServiceValidator2,
|
|
1342
|
+
StringQuery: () => StringQuery2,
|
|
1336
1343
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
1337
1344
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
1338
1345
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
@@ -5527,6 +5534,28 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5527
5534
|
data: LCNNotificationDataValidator2.optional(),
|
|
5528
5535
|
sent: mod2.string().datetime().optional()
|
|
5529
5536
|
});
|
|
5537
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX3 = "auth-grant:";
|
|
5538
|
+
var AuthGrantValidator2 = mod2.object({
|
|
5539
|
+
id: mod2.string(),
|
|
5540
|
+
name: mod2.string(),
|
|
5541
|
+
description: mod2.string().optional(),
|
|
5542
|
+
challenge: mod2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX3).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
5543
|
+
status: mod2.enum(["revoked", "active"], {
|
|
5544
|
+
required_error: "Status is required",
|
|
5545
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
5546
|
+
}),
|
|
5547
|
+
scope: mod2.string(),
|
|
5548
|
+
createdAt: mod2.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
5549
|
+
expiresAt: mod2.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
5550
|
+
});
|
|
5551
|
+
var FlatAuthGrantValidator2 = mod2.object({ id: mod2.string() }).catchall(mod2.any());
|
|
5552
|
+
var AuthGrantStatusValidator2 = mod2.enum(["active", "revoked"]);
|
|
5553
|
+
var AuthGrantQueryValidator2 = mod2.object({
|
|
5554
|
+
id: StringQuery2,
|
|
5555
|
+
name: StringQuery2,
|
|
5556
|
+
description: StringQuery2,
|
|
5557
|
+
status: AuthGrantStatusValidator2
|
|
5558
|
+
}).partial();
|
|
5530
5559
|
}
|
|
5531
5560
|
});
|
|
5532
5561
|
var require_dist2 = __commonJS2({
|