@learncard/network-brain-client 2.2.21 → 2.2.23
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/CHANGELOG.md +16 -0
- package/dist/brain-client.cjs.development.js +29 -0
- package/dist/brain-client.cjs.development.js.map +2 -2
- package/dist/brain-client.cjs.production.min.js +1 -1
- package/dist/brain-client.cjs.production.min.js.map +3 -3
- package/dist/brain-client.esm.js +29 -0
- package/dist/brain-client.esm.js.map +2 -2
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -78,6 +78,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
78
78
|
var __toCommonJS2 = /* @__PURE__ */ __name2((mod2) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod2), "__toCommonJS");
|
|
79
79
|
var src_exports2 = {};
|
|
80
80
|
__export2(src_exports2, {
|
|
81
|
+
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX,
|
|
81
82
|
AchievementCredentialValidator: () => AchievementCredentialValidator,
|
|
82
83
|
AchievementCriteriaValidator: () => AchievementCriteriaValidator,
|
|
83
84
|
AchievementSubjectValidator: () => AchievementSubjectValidator,
|
|
@@ -86,6 +87,9 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
86
87
|
AddressValidator: () => AddressValidator,
|
|
87
88
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
88
89
|
AlignmentValidator: () => AlignmentValidator,
|
|
90
|
+
AuthGrantQueryValidator: () => AuthGrantQueryValidator,
|
|
91
|
+
AuthGrantStatusValidator: () => AuthGrantStatusValidator,
|
|
92
|
+
AuthGrantValidator: () => AuthGrantValidator,
|
|
89
93
|
AutoBoostConfigValidator: () => AutoBoostConfigValidator,
|
|
90
94
|
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
|
91
95
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
|
@@ -123,6 +127,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
123
127
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
|
124
128
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
125
129
|
EvidenceValidator: () => EvidenceValidator,
|
|
130
|
+
FlatAuthGrantValidator: () => FlatAuthGrantValidator,
|
|
126
131
|
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
127
132
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
128
133
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
@@ -169,6 +174,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
169
174
|
ProfileValidator: () => ProfileValidator,
|
|
170
175
|
ProofValidator: () => ProofValidator,
|
|
171
176
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
|
177
|
+
RegExpValidator: () => RegExpValidator,
|
|
172
178
|
RelatedValidator: () => RelatedValidator,
|
|
173
179
|
ResultDescriptionValidator: () => ResultDescriptionValidator,
|
|
174
180
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator,
|
|
@@ -177,6 +183,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
177
183
|
RubricCriterionValidator: () => RubricCriterionValidator,
|
|
178
184
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
|
179
185
|
ServiceValidator: () => ServiceValidator,
|
|
186
|
+
StringQuery: () => StringQuery,
|
|
180
187
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
181
188
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
|
182
189
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
|
@@ -4356,6 +4363,28 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4356
4363
|
data: LCNNotificationDataValidator.optional(),
|
|
4357
4364
|
sent: mod.string().datetime().optional()
|
|
4358
4365
|
});
|
|
4366
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
|
4367
|
+
var AuthGrantValidator = mod.object({
|
|
4368
|
+
id: mod.string(),
|
|
4369
|
+
name: mod.string(),
|
|
4370
|
+
description: mod.string().optional(),
|
|
4371
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
4372
|
+
status: mod.enum(["revoked", "active"], {
|
|
4373
|
+
required_error: "Status is required",
|
|
4374
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
4375
|
+
}),
|
|
4376
|
+
scope: mod.string(),
|
|
4377
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
4378
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
4379
|
+
});
|
|
4380
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
|
4381
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
|
4382
|
+
var AuthGrantQueryValidator = mod.object({
|
|
4383
|
+
id: StringQuery,
|
|
4384
|
+
name: StringQuery,
|
|
4385
|
+
description: StringQuery,
|
|
4386
|
+
status: AuthGrantStatusValidator
|
|
4387
|
+
}).partial();
|
|
4359
4388
|
}
|
|
4360
4389
|
});
|
|
4361
4390
|
var require_dist2 = __commonJS2({
|