@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
package/dist/helpers.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare const JWEValidator: z.ZodObject<{
|
|
|
19
19
|
x: z.ZodOptional<z.ZodString>;
|
|
20
20
|
y: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
21
21
|
n: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
22
|
-
d: z.ZodOptional<z.ZodString
|
|
22
|
+
d: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
kty?: string | undefined;
|
|
25
25
|
crv?: string | undefined;
|
package/dist/helpers.esm.js
CHANGED
|
@@ -53,10 +53,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
53
53
|
AddressValidator: () => AddressValidator,
|
|
54
54
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
55
55
|
AlignmentValidator: () => AlignmentValidator,
|
|
56
|
+
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
|
56
57
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
|
57
58
|
BoostQueryValidator: () => BoostQueryValidator,
|
|
58
59
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
|
59
60
|
BoostValidator: () => BoostValidator,
|
|
61
|
+
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
62
|
+
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
63
|
+
ClaimHookValidator: () => ClaimHookValidator,
|
|
60
64
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
61
65
|
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
|
62
66
|
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
|
@@ -82,6 +86,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
82
86
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
|
83
87
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
84
88
|
EvidenceValidator: () => EvidenceValidator,
|
|
89
|
+
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
85
90
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
86
91
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
87
92
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
@@ -91,6 +96,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
91
96
|
JWERecipientValidator: () => JWERecipientValidator,
|
|
92
97
|
JWEValidator: () => JWEValidator2,
|
|
93
98
|
JWKValidator: () => JWKValidator,
|
|
99
|
+
JWKWithPrivateKeyValidator: () => JWKWithPrivateKeyValidator,
|
|
94
100
|
KnownAchievementTypeValidator: () => KnownAchievementTypeValidator,
|
|
95
101
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
96
102
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
@@ -109,6 +115,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
109
115
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
110
116
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
111
117
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
118
|
+
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator,
|
|
112
119
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
|
113
120
|
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
|
114
121
|
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
|
@@ -3601,8 +3608,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
3601
3608
|
x: mod.string(),
|
|
3602
3609
|
y: mod.string().optional(),
|
|
3603
3610
|
n: mod.string().optional(),
|
|
3604
|
-
d: mod.string()
|
|
3611
|
+
d: mod.string().optional()
|
|
3605
3612
|
});
|
|
3613
|
+
var JWKWithPrivateKeyValidator = JWKValidator.omit({ d: true }).extend({ d: mod.string() });
|
|
3606
3614
|
var JWERecipientHeaderValidator = mod.object({
|
|
3607
3615
|
alg: mod.string(),
|
|
3608
3616
|
iv: mod.string(),
|
|
@@ -4005,6 +4013,43 @@ var require_types_cjs_development = __commonJS({
|
|
|
4005
4013
|
canManageChildrenProfiles: mod.boolean().default(false).optional(),
|
|
4006
4014
|
canViewAnalytics: mod.boolean()
|
|
4007
4015
|
});
|
|
4016
|
+
var BoostPermissionsQueryValidator = mod.object({
|
|
4017
|
+
role: StringQuery,
|
|
4018
|
+
canEdit: mod.boolean(),
|
|
4019
|
+
canIssue: mod.boolean(),
|
|
4020
|
+
canRevoke: mod.boolean(),
|
|
4021
|
+
canManagePermissions: mod.boolean(),
|
|
4022
|
+
canIssueChildren: StringQuery,
|
|
4023
|
+
canCreateChildren: StringQuery,
|
|
4024
|
+
canEditChildren: StringQuery,
|
|
4025
|
+
canRevokeChildren: StringQuery,
|
|
4026
|
+
canManageChildrenPermissions: StringQuery,
|
|
4027
|
+
canManageChildrenProfiles: mod.boolean(),
|
|
4028
|
+
canViewAnalytics: mod.boolean()
|
|
4029
|
+
}).partial();
|
|
4030
|
+
var ClaimHookTypeValidator = mod.enum(["GRANT_PERMISSIONS"]);
|
|
4031
|
+
var ClaimHookValidator = mod.discriminatedUnion("type", [
|
|
4032
|
+
mod.object({
|
|
4033
|
+
type: mod.literal(ClaimHookTypeValidator.Values.GRANT_PERMISSIONS),
|
|
4034
|
+
data: mod.object({
|
|
4035
|
+
claimUri: mod.string(),
|
|
4036
|
+
targetUri: mod.string(),
|
|
4037
|
+
permissions: BoostPermissionsValidator.partial()
|
|
4038
|
+
})
|
|
4039
|
+
})
|
|
4040
|
+
]);
|
|
4041
|
+
var ClaimHookQueryValidator = mod.object({
|
|
4042
|
+
type: StringQuery,
|
|
4043
|
+
data: mod.object({
|
|
4044
|
+
claimUri: StringQuery,
|
|
4045
|
+
targetUri: StringQuery,
|
|
4046
|
+
permissions: BoostPermissionsQueryValidator
|
|
4047
|
+
})
|
|
4048
|
+
}).deepPartial();
|
|
4049
|
+
var FullClaimHookValidator = mod.object({ id: mod.string(), createdAt: mod.string(), updatedAt: mod.string() }).and(ClaimHookValidator);
|
|
4050
|
+
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
4051
|
+
records: FullClaimHookValidator.array()
|
|
4052
|
+
});
|
|
4008
4053
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
4009
4054
|
var BoostValidator = mod.object({
|
|
4010
4055
|
uri: mod.string(),
|