@openid4vc/openid4vci 0.3.0-alpha-20251107130106 → 0.3.0-alpha-20251107132439

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/index.mjs CHANGED
@@ -1012,10 +1012,10 @@ const zCredentialRequestProofJwt = z.object({
1012
1012
  proof_type: zJwtProofTypeIdentifier,
1013
1013
  jwt: zCompactJwt
1014
1014
  });
1015
- const zCredentialRequestJwtProofTypeHeader = zJwtHeader.merge(z.object({
1015
+ const zCredentialRequestJwtProofTypeHeader = zJwtHeader.extend({
1016
1016
  key_attestation: z.optional(zCompactJwt),
1017
1017
  typ: z.literal("openid4vci-proof+jwt")
1018
- })).loose().refine(({ kid, jwk }) => jwk === void 0 || kid === void 0, { message: `Both 'jwk' and 'kid' are defined. Only one is allowed` }).refine(({ trust_chain, kid }) => !trust_chain || !kid, { message: `When 'trust_chain' is provided, 'kid' is required` });
1018
+ }).loose().refine(({ kid, jwk }) => jwk === void 0 || kid === void 0, { message: `Both 'jwk' and 'kid' are defined. Only one is allowed` }).refine(({ trust_chain, kid }) => !trust_chain || !kid, { message: `When 'trust_chain' is provided, 'kid' is required` });
1019
1019
  const zCredentialRequestJwtProofTypePayload = z.object({
1020
1020
  ...zJwtPayload.shape,
1021
1021
  aud: z.union([zHttpsUrl, z.array(zHttpsUrl)]),