@learncard/helpers 1.1.5 → 1.1.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/dist/helpers.cjs.development.js +46 -1
- package/dist/helpers.cjs.development.js.map +2 -2
- package/dist/helpers.cjs.production.min.js +1 -1
- package/dist/helpers.cjs.production.min.js.map +3 -3
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.esm.js +46 -1
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
|
@@ -58,10 +58,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
58
58
|
AddressValidator: () => AddressValidator,
|
|
59
59
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
60
60
|
AlignmentValidator: () => AlignmentValidator,
|
|
61
|
+
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
|
61
62
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
|
62
63
|
BoostQueryValidator: () => BoostQueryValidator,
|
|
63
64
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
|
64
65
|
BoostValidator: () => BoostValidator,
|
|
66
|
+
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
67
|
+
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
68
|
+
ClaimHookValidator: () => ClaimHookValidator,
|
|
65
69
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
66
70
|
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
|
67
71
|
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
|
@@ -87,6 +91,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
87
91
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
|
88
92
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
89
93
|
EvidenceValidator: () => EvidenceValidator,
|
|
94
|
+
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
90
95
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
91
96
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
92
97
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
@@ -96,6 +101,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
96
101
|
JWERecipientValidator: () => JWERecipientValidator,
|
|
97
102
|
JWEValidator: () => JWEValidator2,
|
|
98
103
|
JWKValidator: () => JWKValidator,
|
|
104
|
+
JWKWithPrivateKeyValidator: () => JWKWithPrivateKeyValidator,
|
|
99
105
|
KnownAchievementTypeValidator: () => KnownAchievementTypeValidator,
|
|
100
106
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
101
107
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
@@ -114,6 +120,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
114
120
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
115
121
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
116
122
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
123
|
+
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator,
|
|
117
124
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
|
118
125
|
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
|
119
126
|
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
|
@@ -3606,8 +3613,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
3606
3613
|
x: mod.string(),
|
|
3607
3614
|
y: mod.string().optional(),
|
|
3608
3615
|
n: mod.string().optional(),
|
|
3609
|
-
d: mod.string()
|
|
3616
|
+
d: mod.string().optional()
|
|
3610
3617
|
});
|
|
3618
|
+
var JWKWithPrivateKeyValidator = JWKValidator.omit({ d: true }).extend({ d: mod.string() });
|
|
3611
3619
|
var JWERecipientHeaderValidator = mod.object({
|
|
3612
3620
|
alg: mod.string(),
|
|
3613
3621
|
iv: mod.string(),
|
|
@@ -4010,6 +4018,43 @@ var require_types_cjs_development = __commonJS({
|
|
|
4010
4018
|
canManageChildrenProfiles: mod.boolean().default(false).optional(),
|
|
4011
4019
|
canViewAnalytics: mod.boolean()
|
|
4012
4020
|
});
|
|
4021
|
+
var BoostPermissionsQueryValidator = mod.object({
|
|
4022
|
+
role: StringQuery,
|
|
4023
|
+
canEdit: mod.boolean(),
|
|
4024
|
+
canIssue: mod.boolean(),
|
|
4025
|
+
canRevoke: mod.boolean(),
|
|
4026
|
+
canManagePermissions: mod.boolean(),
|
|
4027
|
+
canIssueChildren: StringQuery,
|
|
4028
|
+
canCreateChildren: StringQuery,
|
|
4029
|
+
canEditChildren: StringQuery,
|
|
4030
|
+
canRevokeChildren: StringQuery,
|
|
4031
|
+
canManageChildrenPermissions: StringQuery,
|
|
4032
|
+
canManageChildrenProfiles: mod.boolean(),
|
|
4033
|
+
canViewAnalytics: mod.boolean()
|
|
4034
|
+
}).partial();
|
|
4035
|
+
var ClaimHookTypeValidator = mod.enum(["GRANT_PERMISSIONS"]);
|
|
4036
|
+
var ClaimHookValidator = mod.discriminatedUnion("type", [
|
|
4037
|
+
mod.object({
|
|
4038
|
+
type: mod.literal(ClaimHookTypeValidator.Values.GRANT_PERMISSIONS),
|
|
4039
|
+
data: mod.object({
|
|
4040
|
+
claimUri: mod.string(),
|
|
4041
|
+
targetUri: mod.string(),
|
|
4042
|
+
permissions: BoostPermissionsValidator.partial()
|
|
4043
|
+
})
|
|
4044
|
+
})
|
|
4045
|
+
]);
|
|
4046
|
+
var ClaimHookQueryValidator = mod.object({
|
|
4047
|
+
type: StringQuery,
|
|
4048
|
+
data: mod.object({
|
|
4049
|
+
claimUri: StringQuery,
|
|
4050
|
+
targetUri: StringQuery,
|
|
4051
|
+
permissions: BoostPermissionsQueryValidator
|
|
4052
|
+
})
|
|
4053
|
+
}).deepPartial();
|
|
4054
|
+
var FullClaimHookValidator = mod.object({ id: mod.string(), createdAt: mod.string(), updatedAt: mod.string() }).and(ClaimHookValidator);
|
|
4055
|
+
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
4056
|
+
records: FullClaimHookValidator.array()
|
|
4057
|
+
});
|
|
4013
4058
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
4014
4059
|
var BoostValidator = mod.object({
|
|
4015
4060
|
uri: mod.string(),
|