@openid4vc/oauth2 0.4.5-alpha-20260130141344 → 0.4.5-alpha-20260201123930

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.d.mts CHANGED
@@ -1442,9 +1442,9 @@ declare const zAuthorizationChallengeRequest: z$1.ZodObject<{
1442
1442
  client_id: z$1.ZodOptional<z$1.ZodString>;
1443
1443
  auth_session: z$1.ZodOptional<z$1.ZodString>;
1444
1444
  presentation_during_issuance_session: z$1.ZodOptional<z$1.ZodString>;
1445
- scope: z$1.ZodOptional<z$1.ZodString>;
1446
1445
  redirect_uri: z$1.ZodOptional<z$1.ZodURL>;
1447
1446
  resource: z$1.ZodOptional<z$1.ZodURL>;
1447
+ scope: z$1.ZodOptional<z$1.ZodString>;
1448
1448
  state: z$1.ZodOptional<z$1.ZodString>;
1449
1449
  issuer_state: z$1.ZodOptional<z$1.ZodString>;
1450
1450
  dpop_jkt: z$1.ZodOptional<z$1.ZodBase64URL>;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { ContentType, Headers, InvalidFetchResponseError, InvalidFetchResponseError as InvalidFetchResponseError$1, OpenId4VcBaseError, URL, ValidationError, addSecondsToDate, createFetcher, createZodFetcher, dateToSeconds, decodeBase64, decodeUtf8String, encodeToBase64Url, encodeToUtf8String, encodeWwwAuthenticateHeader, formatZodError, getGlobalConfig, joinUriParts, objectToQueryParams, parseWithErrorHandling, parseWwwAuthenticateHeader, setGlobalConfig, stringToJsonWithErrorHandling, zHttpMethod, zHttpsUrl, zInteger } from "@openid4vc/utils";
1
+ import { ContentType, Headers, InvalidFetchResponseError, InvalidFetchResponseError as InvalidFetchResponseError$1, OpenId4VcBaseError, URL, ValidationError, addSecondsToDate, createFetcher, createZodFetcher, dateToSeconds, decodeBase64, decodeUtf8String, encodeToBase64Url, encodeToUtf8String, encodeWwwAuthenticateHeader, formatZodError, getGlobalConfig, joinUriParts, objectToQueryParams, parseWithErrorHandling, parseWwwAuthenticateHeader, setGlobalConfig, stringToJsonWithErrorHandling, zHttpMethod, zHttpsUrl, zInteger, zNumericDate } from "@openid4vc/utils";
2
2
  import z$1, { z } from "zod";
3
3
  import "zod/v4/core";
4
4
 
@@ -160,9 +160,9 @@ const zJwtConfirmationPayload = z$1.object({
160
160
  const zJwtPayload = z$1.object({
161
161
  iss: z$1.string().optional(),
162
162
  aud: z$1.union([z$1.string(), z$1.array(z$1.string())]).optional(),
163
- iat: zInteger.optional(),
164
- exp: zInteger.optional(),
165
- nbf: zInteger.optional(),
163
+ iat: zNumericDate.optional(),
164
+ exp: zNumericDate.optional(),
165
+ nbf: zNumericDate.optional(),
166
166
  nonce: z$1.string().optional(),
167
167
  jti: z$1.string().optional(),
168
168
  sub: z$1.string().optional(),
@@ -920,8 +920,8 @@ const zAccessTokenProfileJwtHeader = z$1.object({
920
920
  const zAccessTokenProfileJwtPayload = z$1.object({
921
921
  ...zJwtPayload.shape,
922
922
  iss: z$1.string(),
923
- exp: zInteger,
924
- iat: zInteger,
923
+ exp: zNumericDate,
924
+ iat: zNumericDate,
925
925
  aud: z$1.union([z$1.string(), z$1.array(z$1.string())]),
926
926
  sub: z$1.string(),
927
927
  client_id: z$1.optional(z$1.string()),
@@ -1189,7 +1189,7 @@ const zClientAttestationJwtPayload = z$1.object({
1189
1189
  ...zJwtPayload.shape,
1190
1190
  iss: z$1.string(),
1191
1191
  sub: z$1.string(),
1192
- exp: zInteger,
1192
+ exp: zNumericDate,
1193
1193
  cnf: z$1.object({ jwk: zJwk }).loose(),
1194
1194
  wallet_name: z$1.string().optional(),
1195
1195
  wallet_link: z$1.url().optional()
@@ -1203,7 +1203,7 @@ const oauthClientAttestationPopHeader = zOauthClientAttestationPopHeader.value;
1203
1203
  const zClientAttestationPopJwtPayload = z$1.object({
1204
1204
  ...zJwtPayload.shape,
1205
1205
  iss: z$1.string(),
1206
- exp: zInteger,
1206
+ exp: zNumericDate,
1207
1207
  aud: z$1.union([zHttpsUrl, z$1.array(zHttpsUrl)]),
1208
1208
  jti: z$1.string(),
1209
1209
  nonce: z$1.optional(z$1.string())
@@ -1372,7 +1372,7 @@ async function verifyClientAttestation({ authorizationServer, clientAttestationJ
1372
1372
  //#region src/dpop/z-dpop.ts
1373
1373
  const zDpopJwtPayload = z$1.object({
1374
1374
  ...zJwtPayload.shape,
1375
- iat: zInteger,
1375
+ iat: zNumericDate,
1376
1376
  htu: zHttpsUrl,
1377
1377
  htm: zHttpMethod,
1378
1378
  jti: z$1.string(),
@@ -1972,9 +1972,9 @@ const zIdTokenJwtPayload = z$1.object({
1972
1972
  iss: z$1.string(),
1973
1973
  sub: z$1.string(),
1974
1974
  aud: z$1.union([z$1.string(), z$1.array(z$1.string())]),
1975
- exp: zInteger,
1976
- iat: zInteger,
1977
- auth_time: zInteger.optional(),
1975
+ exp: zNumericDate,
1976
+ iat: zNumericDate,
1977
+ auth_time: zNumericDate.optional(),
1978
1978
  acr: z$1.string().optional(),
1979
1979
  amr: z$1.array(z$1.string()).optional(),
1980
1980
  azp: z$1.string().optional(),
@@ -2003,7 +2003,7 @@ const zIdTokenJwtPayload = z$1.object({
2003
2003
  postal_code: z$1.string().optional(),
2004
2004
  country: z$1.string().optional()
2005
2005
  }).loose().optional(),
2006
- updated_at: zInteger.optional()
2006
+ updated_at: zNumericDate.optional()
2007
2007
  }).loose();
2008
2008
 
2009
2009
  //#endregion
@@ -3453,9 +3453,9 @@ const zTokenIntrospectionResponse = z$1.object({
3453
3453
  client_id: z$1.optional(z$1.string()),
3454
3454
  username: z$1.optional(z$1.string()),
3455
3455
  token_type: z$1.optional(z$1.string()),
3456
- exp: z$1.optional(zInteger),
3457
- iat: z$1.optional(zInteger),
3458
- nbf: z$1.optional(zInteger),
3456
+ exp: z$1.optional(zNumericDate),
3457
+ iat: z$1.optional(zNumericDate),
3458
+ nbf: z$1.optional(zNumericDate),
3459
3459
  sub: z$1.optional(z$1.string()),
3460
3460
  aud: z$1.optional(z$1.union([z$1.string(), z$1.array(z$1.string())])),
3461
3461
  iss: z$1.optional(z$1.string()),