@learncard/helpers 1.1.5 → 1.1.6

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.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;
@@ -91,6 +91,7 @@ var require_types_cjs_development = __commonJS({
91
91
  JWERecipientValidator: () => JWERecipientValidator,
92
92
  JWEValidator: () => JWEValidator2,
93
93
  JWKValidator: () => JWKValidator,
94
+ JWKWithPrivateKeyValidator: () => JWKWithPrivateKeyValidator,
94
95
  KnownAchievementTypeValidator: () => KnownAchievementTypeValidator,
95
96
  LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
96
97
  LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
@@ -3601,8 +3602,9 @@ var require_types_cjs_development = __commonJS({
3601
3602
  x: mod.string(),
3602
3603
  y: mod.string().optional(),
3603
3604
  n: mod.string().optional(),
3604
- d: mod.string()
3605
+ d: mod.string().optional()
3605
3606
  });
3607
+ var JWKWithPrivateKeyValidator = JWKValidator.omit({ d: true }).extend({ d: mod.string() });
3606
3608
  var JWERecipientHeaderValidator = mod.object({
3607
3609
  alg: mod.string(),
3608
3610
  iv: mod.string(),