@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
|
@@ -68,10 +68,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
68
68
|
AddressValidator: () => AddressValidator,
|
|
69
69
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
70
70
|
AlignmentValidator: () => AlignmentValidator,
|
|
71
|
+
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
|
71
72
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
|
72
73
|
BoostQueryValidator: () => BoostQueryValidator,
|
|
73
74
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
|
74
75
|
BoostValidator: () => BoostValidator,
|
|
76
|
+
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
77
|
+
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
78
|
+
ClaimHookValidator: () => ClaimHookValidator,
|
|
75
79
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
76
80
|
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
|
77
81
|
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
|
@@ -97,6 +101,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
97
101
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
|
98
102
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
99
103
|
EvidenceValidator: () => EvidenceValidator,
|
|
104
|
+
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
100
105
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
101
106
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
102
107
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
@@ -106,6 +111,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
106
111
|
JWERecipientValidator: () => JWERecipientValidator,
|
|
107
112
|
JWEValidator: () => JWEValidator2,
|
|
108
113
|
JWKValidator: () => JWKValidator,
|
|
114
|
+
JWKWithPrivateKeyValidator: () => JWKWithPrivateKeyValidator,
|
|
109
115
|
KnownAchievementTypeValidator: () => KnownAchievementTypeValidator,
|
|
110
116
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
111
117
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
@@ -124,6 +130,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
124
130
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
125
131
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
126
132
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
133
|
+
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator,
|
|
127
134
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
|
128
135
|
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
|
129
136
|
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
|
@@ -3631,8 +3638,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
3631
3638
|
x: mod.string(),
|
|
3632
3639
|
y: mod.string().optional(),
|
|
3633
3640
|
n: mod.string().optional(),
|
|
3634
|
-
d: mod.string()
|
|
3641
|
+
d: mod.string().optional()
|
|
3635
3642
|
});
|
|
3643
|
+
var JWKWithPrivateKeyValidator = JWKValidator.omit({ d: true }).extend({ d: mod.string() });
|
|
3636
3644
|
var JWERecipientHeaderValidator = mod.object({
|
|
3637
3645
|
alg: mod.string(),
|
|
3638
3646
|
iv: mod.string(),
|
|
@@ -4035,6 +4043,43 @@ var require_types_cjs_development = __commonJS({
|
|
|
4035
4043
|
canManageChildrenProfiles: mod.boolean().default(false).optional(),
|
|
4036
4044
|
canViewAnalytics: mod.boolean()
|
|
4037
4045
|
});
|
|
4046
|
+
var BoostPermissionsQueryValidator = mod.object({
|
|
4047
|
+
role: StringQuery,
|
|
4048
|
+
canEdit: mod.boolean(),
|
|
4049
|
+
canIssue: mod.boolean(),
|
|
4050
|
+
canRevoke: mod.boolean(),
|
|
4051
|
+
canManagePermissions: mod.boolean(),
|
|
4052
|
+
canIssueChildren: StringQuery,
|
|
4053
|
+
canCreateChildren: StringQuery,
|
|
4054
|
+
canEditChildren: StringQuery,
|
|
4055
|
+
canRevokeChildren: StringQuery,
|
|
4056
|
+
canManageChildrenPermissions: StringQuery,
|
|
4057
|
+
canManageChildrenProfiles: mod.boolean(),
|
|
4058
|
+
canViewAnalytics: mod.boolean()
|
|
4059
|
+
}).partial();
|
|
4060
|
+
var ClaimHookTypeValidator = mod.enum(["GRANT_PERMISSIONS"]);
|
|
4061
|
+
var ClaimHookValidator = mod.discriminatedUnion("type", [
|
|
4062
|
+
mod.object({
|
|
4063
|
+
type: mod.literal(ClaimHookTypeValidator.Values.GRANT_PERMISSIONS),
|
|
4064
|
+
data: mod.object({
|
|
4065
|
+
claimUri: mod.string(),
|
|
4066
|
+
targetUri: mod.string(),
|
|
4067
|
+
permissions: BoostPermissionsValidator.partial()
|
|
4068
|
+
})
|
|
4069
|
+
})
|
|
4070
|
+
]);
|
|
4071
|
+
var ClaimHookQueryValidator = mod.object({
|
|
4072
|
+
type: StringQuery,
|
|
4073
|
+
data: mod.object({
|
|
4074
|
+
claimUri: StringQuery,
|
|
4075
|
+
targetUri: StringQuery,
|
|
4076
|
+
permissions: BoostPermissionsQueryValidator
|
|
4077
|
+
})
|
|
4078
|
+
}).deepPartial();
|
|
4079
|
+
var FullClaimHookValidator = mod.object({ id: mod.string(), createdAt: mod.string(), updatedAt: mod.string() }).and(ClaimHookValidator);
|
|
4080
|
+
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
4081
|
+
records: FullClaimHookValidator.array()
|
|
4082
|
+
});
|
|
4038
4083
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
4039
4084
|
var BoostValidator = mod.object({
|
|
4040
4085
|
uri: mod.string(),
|