@learncard/didkey-plugin 1.0.25 → 1.0.27
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/didkey-plugin.cjs.development.js +46 -1
- package/dist/didkey-plugin.cjs.development.js.map +2 -2
- package/dist/didkey-plugin.cjs.production.min.js +1 -1
- package/dist/didkey-plugin.cjs.production.min.js.map +3 -3
- package/dist/didkey-plugin.esm.js +46 -1
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -92,10 +92,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
92
92
|
AddressValidator: () => AddressValidator,
|
|
93
93
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
94
94
|
AlignmentValidator: () => AlignmentValidator,
|
|
95
|
+
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
|
95
96
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
|
96
97
|
BoostQueryValidator: () => BoostQueryValidator,
|
|
97
98
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
|
98
99
|
BoostValidator: () => BoostValidator,
|
|
100
|
+
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
101
|
+
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
102
|
+
ClaimHookValidator: () => ClaimHookValidator,
|
|
99
103
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
100
104
|
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
|
101
105
|
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
|
@@ -121,6 +125,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
121
125
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
|
122
126
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
123
127
|
EvidenceValidator: () => EvidenceValidator,
|
|
128
|
+
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
124
129
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
125
130
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
126
131
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
@@ -130,6 +135,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
130
135
|
JWERecipientValidator: () => JWERecipientValidator,
|
|
131
136
|
JWEValidator: () => JWEValidator2,
|
|
132
137
|
JWKValidator: () => JWKValidator,
|
|
138
|
+
JWKWithPrivateKeyValidator: () => JWKWithPrivateKeyValidator,
|
|
133
139
|
KnownAchievementTypeValidator: () => KnownAchievementTypeValidator,
|
|
134
140
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
135
141
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
@@ -148,6 +154,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
148
154
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
149
155
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
150
156
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
157
|
+
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator,
|
|
151
158
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
|
152
159
|
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
|
153
160
|
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
|
@@ -3655,8 +3662,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
3655
3662
|
x: mod.string(),
|
|
3656
3663
|
y: mod.string().optional(),
|
|
3657
3664
|
n: mod.string().optional(),
|
|
3658
|
-
d: mod.string()
|
|
3665
|
+
d: mod.string().optional()
|
|
3659
3666
|
});
|
|
3667
|
+
var JWKWithPrivateKeyValidator = JWKValidator.omit({ d: true }).extend({ d: mod.string() });
|
|
3660
3668
|
var JWERecipientHeaderValidator = mod.object({
|
|
3661
3669
|
alg: mod.string(),
|
|
3662
3670
|
iv: mod.string(),
|
|
@@ -4059,6 +4067,43 @@ var require_types_cjs_development = __commonJS({
|
|
|
4059
4067
|
canManageChildrenProfiles: mod.boolean().default(false).optional(),
|
|
4060
4068
|
canViewAnalytics: mod.boolean()
|
|
4061
4069
|
});
|
|
4070
|
+
var BoostPermissionsQueryValidator = mod.object({
|
|
4071
|
+
role: StringQuery,
|
|
4072
|
+
canEdit: mod.boolean(),
|
|
4073
|
+
canIssue: mod.boolean(),
|
|
4074
|
+
canRevoke: mod.boolean(),
|
|
4075
|
+
canManagePermissions: mod.boolean(),
|
|
4076
|
+
canIssueChildren: StringQuery,
|
|
4077
|
+
canCreateChildren: StringQuery,
|
|
4078
|
+
canEditChildren: StringQuery,
|
|
4079
|
+
canRevokeChildren: StringQuery,
|
|
4080
|
+
canManageChildrenPermissions: StringQuery,
|
|
4081
|
+
canManageChildrenProfiles: mod.boolean(),
|
|
4082
|
+
canViewAnalytics: mod.boolean()
|
|
4083
|
+
}).partial();
|
|
4084
|
+
var ClaimHookTypeValidator = mod.enum(["GRANT_PERMISSIONS"]);
|
|
4085
|
+
var ClaimHookValidator = mod.discriminatedUnion("type", [
|
|
4086
|
+
mod.object({
|
|
4087
|
+
type: mod.literal(ClaimHookTypeValidator.Values.GRANT_PERMISSIONS),
|
|
4088
|
+
data: mod.object({
|
|
4089
|
+
claimUri: mod.string(),
|
|
4090
|
+
targetUri: mod.string(),
|
|
4091
|
+
permissions: BoostPermissionsValidator.partial()
|
|
4092
|
+
})
|
|
4093
|
+
})
|
|
4094
|
+
]);
|
|
4095
|
+
var ClaimHookQueryValidator = mod.object({
|
|
4096
|
+
type: StringQuery,
|
|
4097
|
+
data: mod.object({
|
|
4098
|
+
claimUri: StringQuery,
|
|
4099
|
+
targetUri: StringQuery,
|
|
4100
|
+
permissions: BoostPermissionsQueryValidator
|
|
4101
|
+
})
|
|
4102
|
+
}).deepPartial();
|
|
4103
|
+
var FullClaimHookValidator = mod.object({ id: mod.string(), createdAt: mod.string(), updatedAt: mod.string() }).and(ClaimHookValidator);
|
|
4104
|
+
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
4105
|
+
records: FullClaimHookValidator.array()
|
|
4106
|
+
});
|
|
4062
4107
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
4063
4108
|
var BoostValidator = mod.object({
|
|
4064
4109
|
uri: mod.string(),
|