@learncard/network-brain-client 2.2.5 → 2.2.7
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 +14 -0
- package/dist/brain-client.cjs.development.js +46 -1
- 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 +46 -1
- package/dist/brain-client.esm.js.map +2 -2
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -86,10 +86,14 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
86
86
|
AddressValidator: () => AddressValidator,
|
|
87
87
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
88
88
|
AlignmentValidator: () => AlignmentValidator,
|
|
89
|
+
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
|
89
90
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
|
90
91
|
BoostQueryValidator: () => BoostQueryValidator,
|
|
91
92
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
|
92
93
|
BoostValidator: () => BoostValidator,
|
|
94
|
+
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
95
|
+
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
96
|
+
ClaimHookValidator: () => ClaimHookValidator,
|
|
93
97
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
94
98
|
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
|
95
99
|
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
|
@@ -115,6 +119,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
115
119
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
|
116
120
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
117
121
|
EvidenceValidator: () => EvidenceValidator,
|
|
122
|
+
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
118
123
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
119
124
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
120
125
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
@@ -124,6 +129,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
124
129
|
JWERecipientValidator: () => JWERecipientValidator,
|
|
125
130
|
JWEValidator: () => JWEValidator2,
|
|
126
131
|
JWKValidator: () => JWKValidator,
|
|
132
|
+
JWKWithPrivateKeyValidator: () => JWKWithPrivateKeyValidator,
|
|
127
133
|
KnownAchievementTypeValidator: () => KnownAchievementTypeValidator,
|
|
128
134
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
129
135
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
@@ -142,6 +148,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
142
148
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
143
149
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
144
150
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
151
|
+
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator,
|
|
145
152
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
|
146
153
|
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
|
147
154
|
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
|
@@ -3649,8 +3656,9 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
3649
3656
|
x: mod.string(),
|
|
3650
3657
|
y: mod.string().optional(),
|
|
3651
3658
|
n: mod.string().optional(),
|
|
3652
|
-
d: mod.string()
|
|
3659
|
+
d: mod.string().optional()
|
|
3653
3660
|
});
|
|
3661
|
+
var JWKWithPrivateKeyValidator = JWKValidator.omit({ d: true }).extend({ d: mod.string() });
|
|
3654
3662
|
var JWERecipientHeaderValidator = mod.object({
|
|
3655
3663
|
alg: mod.string(),
|
|
3656
3664
|
iv: mod.string(),
|
|
@@ -4053,6 +4061,43 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4053
4061
|
canManageChildrenProfiles: mod.boolean().default(false).optional(),
|
|
4054
4062
|
canViewAnalytics: mod.boolean()
|
|
4055
4063
|
});
|
|
4064
|
+
var BoostPermissionsQueryValidator = mod.object({
|
|
4065
|
+
role: StringQuery,
|
|
4066
|
+
canEdit: mod.boolean(),
|
|
4067
|
+
canIssue: mod.boolean(),
|
|
4068
|
+
canRevoke: mod.boolean(),
|
|
4069
|
+
canManagePermissions: mod.boolean(),
|
|
4070
|
+
canIssueChildren: StringQuery,
|
|
4071
|
+
canCreateChildren: StringQuery,
|
|
4072
|
+
canEditChildren: StringQuery,
|
|
4073
|
+
canRevokeChildren: StringQuery,
|
|
4074
|
+
canManageChildrenPermissions: StringQuery,
|
|
4075
|
+
canManageChildrenProfiles: mod.boolean(),
|
|
4076
|
+
canViewAnalytics: mod.boolean()
|
|
4077
|
+
}).partial();
|
|
4078
|
+
var ClaimHookTypeValidator = mod.enum(["GRANT_PERMISSIONS"]);
|
|
4079
|
+
var ClaimHookValidator = mod.discriminatedUnion("type", [
|
|
4080
|
+
mod.object({
|
|
4081
|
+
type: mod.literal(ClaimHookTypeValidator.Values.GRANT_PERMISSIONS),
|
|
4082
|
+
data: mod.object({
|
|
4083
|
+
claimUri: mod.string(),
|
|
4084
|
+
targetUri: mod.string(),
|
|
4085
|
+
permissions: BoostPermissionsValidator.partial()
|
|
4086
|
+
})
|
|
4087
|
+
})
|
|
4088
|
+
]);
|
|
4089
|
+
var ClaimHookQueryValidator = mod.object({
|
|
4090
|
+
type: StringQuery,
|
|
4091
|
+
data: mod.object({
|
|
4092
|
+
claimUri: StringQuery,
|
|
4093
|
+
targetUri: StringQuery,
|
|
4094
|
+
permissions: BoostPermissionsQueryValidator
|
|
4095
|
+
})
|
|
4096
|
+
}).deepPartial();
|
|
4097
|
+
var FullClaimHookValidator = mod.object({ id: mod.string(), createdAt: mod.string(), updatedAt: mod.string() }).and(ClaimHookValidator);
|
|
4098
|
+
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
4099
|
+
records: FullClaimHookValidator.array()
|
|
4100
|
+
});
|
|
4056
4101
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
4057
4102
|
var BoostValidator = mod.object({
|
|
4058
4103
|
uri: mod.string(),
|