@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @learncard/network-brain-client
|
|
2
2
|
|
|
3
|
+
## 2.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`6f0c776840addd052a9df844fefdcb3186c7678d`](https://github.com/learningeconomy/LearnCard/commit/6f0c776840addd052a9df844fefdcb3186c7678d)]:
|
|
8
|
+
- @learncard/network-brain-service@3.3.6
|
|
9
|
+
|
|
10
|
+
## 2.2.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`a4eead401a62a872be046e28b0d27b2d980ced3a`](https://github.com/learningeconomy/LearnCard/commit/a4eead401a62a872be046e28b0d27b2d980ced3a)]:
|
|
15
|
+
- @learncard/network-brain-service@3.3.5
|
|
16
|
+
|
|
3
17
|
## 2.2.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -91,10 +91,14 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
91
91
|
AddressValidator: () => AddressValidator,
|
|
92
92
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
93
93
|
AlignmentValidator: () => AlignmentValidator,
|
|
94
|
+
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
|
94
95
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
|
95
96
|
BoostQueryValidator: () => BoostQueryValidator,
|
|
96
97
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
|
97
98
|
BoostValidator: () => BoostValidator,
|
|
99
|
+
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
100
|
+
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
101
|
+
ClaimHookValidator: () => ClaimHookValidator,
|
|
98
102
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
99
103
|
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
|
100
104
|
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
|
@@ -120,6 +124,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
120
124
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
|
121
125
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
122
126
|
EvidenceValidator: () => EvidenceValidator,
|
|
127
|
+
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
123
128
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
124
129
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
125
130
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
@@ -129,6 +134,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
129
134
|
JWERecipientValidator: () => JWERecipientValidator,
|
|
130
135
|
JWEValidator: () => JWEValidator2,
|
|
131
136
|
JWKValidator: () => JWKValidator,
|
|
137
|
+
JWKWithPrivateKeyValidator: () => JWKWithPrivateKeyValidator,
|
|
132
138
|
KnownAchievementTypeValidator: () => KnownAchievementTypeValidator,
|
|
133
139
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
134
140
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
@@ -147,6 +153,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
147
153
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
148
154
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
149
155
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
156
|
+
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator,
|
|
150
157
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
|
151
158
|
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
|
152
159
|
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
|
@@ -3654,8 +3661,9 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
3654
3661
|
x: mod.string(),
|
|
3655
3662
|
y: mod.string().optional(),
|
|
3656
3663
|
n: mod.string().optional(),
|
|
3657
|
-
d: mod.string()
|
|
3664
|
+
d: mod.string().optional()
|
|
3658
3665
|
});
|
|
3666
|
+
var JWKWithPrivateKeyValidator = JWKValidator.omit({ d: true }).extend({ d: mod.string() });
|
|
3659
3667
|
var JWERecipientHeaderValidator = mod.object({
|
|
3660
3668
|
alg: mod.string(),
|
|
3661
3669
|
iv: mod.string(),
|
|
@@ -4058,6 +4066,43 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4058
4066
|
canManageChildrenProfiles: mod.boolean().default(false).optional(),
|
|
4059
4067
|
canViewAnalytics: mod.boolean()
|
|
4060
4068
|
});
|
|
4069
|
+
var BoostPermissionsQueryValidator = mod.object({
|
|
4070
|
+
role: StringQuery,
|
|
4071
|
+
canEdit: mod.boolean(),
|
|
4072
|
+
canIssue: mod.boolean(),
|
|
4073
|
+
canRevoke: mod.boolean(),
|
|
4074
|
+
canManagePermissions: mod.boolean(),
|
|
4075
|
+
canIssueChildren: StringQuery,
|
|
4076
|
+
canCreateChildren: StringQuery,
|
|
4077
|
+
canEditChildren: StringQuery,
|
|
4078
|
+
canRevokeChildren: StringQuery,
|
|
4079
|
+
canManageChildrenPermissions: StringQuery,
|
|
4080
|
+
canManageChildrenProfiles: mod.boolean(),
|
|
4081
|
+
canViewAnalytics: mod.boolean()
|
|
4082
|
+
}).partial();
|
|
4083
|
+
var ClaimHookTypeValidator = mod.enum(["GRANT_PERMISSIONS"]);
|
|
4084
|
+
var ClaimHookValidator = mod.discriminatedUnion("type", [
|
|
4085
|
+
mod.object({
|
|
4086
|
+
type: mod.literal(ClaimHookTypeValidator.Values.GRANT_PERMISSIONS),
|
|
4087
|
+
data: mod.object({
|
|
4088
|
+
claimUri: mod.string(),
|
|
4089
|
+
targetUri: mod.string(),
|
|
4090
|
+
permissions: BoostPermissionsValidator.partial()
|
|
4091
|
+
})
|
|
4092
|
+
})
|
|
4093
|
+
]);
|
|
4094
|
+
var ClaimHookQueryValidator = mod.object({
|
|
4095
|
+
type: StringQuery,
|
|
4096
|
+
data: mod.object({
|
|
4097
|
+
claimUri: StringQuery,
|
|
4098
|
+
targetUri: StringQuery,
|
|
4099
|
+
permissions: BoostPermissionsQueryValidator
|
|
4100
|
+
})
|
|
4101
|
+
}).deepPartial();
|
|
4102
|
+
var FullClaimHookValidator = mod.object({ id: mod.string(), createdAt: mod.string(), updatedAt: mod.string() }).and(ClaimHookValidator);
|
|
4103
|
+
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
4104
|
+
records: FullClaimHookValidator.array()
|
|
4105
|
+
});
|
|
4061
4106
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
4062
4107
|
var BoostValidator = mod.object({
|
|
4063
4108
|
uri: mod.string(),
|