@openid4vc/oauth2 0.3.0-alpha-20251107130226 → 0.3.0-alpha-20251110114129

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
@@ -1651,9 +1651,15 @@ type AuthorizationRequest = z$1.infer<typeof zAuthorizationRequest>;
1651
1651
  interface ParsePushedAuthorizationRequestOptions {
1652
1652
  request: RequestLike;
1653
1653
  authorizationRequest: unknown;
1654
+ callbacks: Pick<CallbackContext, 'fetch'>;
1654
1655
  }
1655
1656
  interface ParsePushedAuthorizationRequestResult extends ParseAuthorizationRequestResult {
1656
1657
  authorizationRequest: AuthorizationRequest;
1658
+ /**
1659
+ * The JWT-secured request object, if the request was pushed as a JAR.
1660
+ * May be undefined if the request object is not a JAR.
1661
+ */
1662
+ authorizationRequestJwt?: string;
1657
1663
  }
1658
1664
  interface ParsePushedAuthorizationRequestUriReferenceValueOptions {
1659
1665
  uri: string;
@@ -1666,72 +1672,6 @@ interface ParsePushedAuthorizationRequestUriReferenceValueOptions {
1666
1672
  */
1667
1673
  declare function parsePushedAuthorizationRequestUriReferenceValue(options: ParsePushedAuthorizationRequestUriReferenceValueOptions): string;
1668
1674
  //#endregion
1669
- //#region src/authorization-request/verify-pushed-authorization-request.d.ts
1670
- type VerifyPushedAuthorizationRequestReturn = VerifyAuthorizationRequestReturn;
1671
- interface VerifyPushedAuthorizationRequestOptions extends VerifyAuthorizationRequestOptions {
1672
- authorizationRequest: AuthorizationRequest;
1673
- }
1674
- //#endregion
1675
- //#region src/authorization-response/z-authorization-response.d.ts
1676
- declare const zAuthorizationResponse: z$1.ZodObject<{
1677
- state: z$1.ZodOptional<z$1.ZodString>;
1678
- code: z$1.ZodString;
1679
- error: z$1.ZodOptional<z$1.ZodNever>;
1680
- }, z$1.core.$loose>;
1681
- declare const zAuthorizationResponseFromUriParams: z$1.ZodPipe<z$1.ZodPipe<z$1.ZodURL, z$1.ZodTransform<unknown, string>>, z$1.ZodObject<{
1682
- state: z$1.ZodOptional<z$1.ZodString>;
1683
- code: z$1.ZodString;
1684
- error: z$1.ZodOptional<z$1.ZodNever>;
1685
- }, z$1.core.$loose>>;
1686
- type AuthorizationResponse = z$1.infer<typeof zAuthorizationResponse>;
1687
- declare const zAuthorizationErrorResponse: z$1.ZodObject<{
1688
- state: z$1.ZodOptional<z$1.ZodString>;
1689
- code: z$1.ZodOptional<z$1.ZodNever>;
1690
- error: z$1.ZodUnion<readonly [z$1.ZodEnum<typeof Oauth2ErrorCodes>, z$1.ZodString]>;
1691
- error_description: z$1.ZodOptional<z$1.ZodString>;
1692
- error_uri: z$1.ZodOptional<z$1.ZodString>;
1693
- }, z$1.core.$loose>;
1694
- type AuthorizationErrorResponse = z$1.infer<typeof zAuthorizationErrorResponse>;
1695
- //#endregion
1696
- //#region src/authorization-response/parse-authorization-response.d.ts
1697
- interface ParseAuthorizationRequestOptions {
1698
- url: string;
1699
- }
1700
- /**
1701
- * Parse an authorization response redirect URL.
1702
- *
1703
- * @throws {Oauth2ServerErrorResponseError}
1704
- */
1705
- declare function parseAuthorizationResponseRedirectUrl(options: ParseAuthorizationRequestOptions): AuthorizationResponse | AuthorizationErrorResponse;
1706
- //#endregion
1707
- //#region src/common/jwk/jwk-thumbprint.d.ts
1708
- interface CalculateJwkThumbprintOptions {
1709
- /**
1710
- * The jwk to calcualte the thumbprint for.
1711
- */
1712
- jwk: Jwk;
1713
- /**
1714
- * The hashing algorithm to use for calculating the thumbprint
1715
- */
1716
- hashAlgorithm: HashAlgorithm;
1717
- /**
1718
- * The hash callback to calculate the digest
1719
- */
1720
- hashCallback: HashCallback;
1721
- }
1722
- declare function calculateJwkThumbprint(options: CalculateJwkThumbprintOptions): Promise<string>;
1723
- //#endregion
1724
- //#region src/common/jwk/jwks.d.ts
1725
- declare function isJwkInSet({
1726
- jwk,
1727
- jwks,
1728
- callbacks
1729
- }: {
1730
- jwk: Jwk;
1731
- jwks: Jwk[];
1732
- callbacks: Pick<CallbackContext, 'hash'>;
1733
- }): Promise<boolean>;
1734
- //#endregion
1735
1675
  //#region src/common/jwt/decode-jwt.d.ts
1736
1676
  interface DecodeJwtOptions<HeaderSchema extends BaseSchema | undefined, PayloadSchema extends BaseSchema | undefined> {
1737
1677
  /**
@@ -1827,6 +1767,158 @@ declare function jwtSignerFromJwt({
1827
1767
  type IsSchemaProvided<T> = T extends undefined ? false : true;
1828
1768
  type InferSchemaOrDefaultOutput<ProvidedSchema extends BaseSchema | undefined, DefaultSchema extends BaseSchema> = IsSchemaProvided<ProvidedSchema> extends true ? ProvidedSchema extends BaseSchema ? z$1.infer<ProvidedSchema> : never : z$1.infer<DefaultSchema>;
1829
1769
  //#endregion
1770
+ //#region src/jar/z-jar-authorization-request.d.ts
1771
+ declare const zJarAuthorizationRequest: z.ZodObject<{
1772
+ request: z.ZodOptional<z.ZodString>;
1773
+ request_uri: z.ZodOptional<z.ZodString>;
1774
+ client_id: z.ZodOptional<z.ZodString>;
1775
+ }, z.core.$loose>;
1776
+ type JarAuthorizationRequest = z.infer<typeof zJarAuthorizationRequest>;
1777
+ declare function validateJarRequestParams(options: {
1778
+ jarRequestParams: JarAuthorizationRequest;
1779
+ }): JarAuthorizationRequest & ({
1780
+ request_uri: string;
1781
+ request?: never;
1782
+ } | {
1783
+ request: string;
1784
+ request_uri?: never;
1785
+ });
1786
+ //#endregion
1787
+ //#region src/jar/z-jar-request-object.d.ts
1788
+ declare const zJarRequestObjectPayload: z.ZodObject<{
1789
+ client_id: z.ZodString;
1790
+ iss: z.ZodOptional<z.ZodString>;
1791
+ aud: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1792
+ iat: z.ZodOptional<z.ZodNumber>;
1793
+ exp: z.ZodOptional<z.ZodNumber>;
1794
+ nbf: z.ZodOptional<z.ZodNumber>;
1795
+ nonce: z.ZodOptional<z.ZodString>;
1796
+ jti: z.ZodOptional<z.ZodString>;
1797
+ sub: z.ZodOptional<z.ZodString>;
1798
+ cnf: z.ZodOptional<z.ZodObject<{
1799
+ jwk: z.ZodOptional<z.ZodObject<{
1800
+ kty: z.ZodString;
1801
+ crv: z.ZodOptional<z.ZodString>;
1802
+ x: z.ZodOptional<z.ZodString>;
1803
+ y: z.ZodOptional<z.ZodString>;
1804
+ e: z.ZodOptional<z.ZodString>;
1805
+ n: z.ZodOptional<z.ZodString>;
1806
+ alg: z.ZodOptional<z.ZodString>;
1807
+ d: z.ZodOptional<z.ZodString>;
1808
+ dp: z.ZodOptional<z.ZodString>;
1809
+ dq: z.ZodOptional<z.ZodString>;
1810
+ ext: z.ZodOptional<z.ZodBoolean>;
1811
+ k: z.ZodOptional<z.ZodString>;
1812
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
1813
+ kid: z.ZodOptional<z.ZodString>;
1814
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1815
+ d: z.ZodOptional<z.ZodString>;
1816
+ r: z.ZodOptional<z.ZodString>;
1817
+ t: z.ZodOptional<z.ZodString>;
1818
+ }, z.core.$loose>>>;
1819
+ p: z.ZodOptional<z.ZodString>;
1820
+ q: z.ZodOptional<z.ZodString>;
1821
+ qi: z.ZodOptional<z.ZodString>;
1822
+ use: z.ZodOptional<z.ZodString>;
1823
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
1824
+ x5t: z.ZodOptional<z.ZodString>;
1825
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1826
+ x5u: z.ZodOptional<z.ZodString>;
1827
+ }, z.core.$loose>>;
1828
+ jkt: z.ZodOptional<z.ZodString>;
1829
+ }, z.core.$loose>>;
1830
+ status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1831
+ trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
1832
+ }, z.core.$loose>;
1833
+ type JarRequestObjectPayload = z.infer<typeof zJarRequestObjectPayload>;
1834
+ declare const signedAuthorizationRequestJwtHeaderTyp: "oauth-authz-req+jwt";
1835
+ declare const jwtAuthorizationRequestJwtHeaderTyp: "jwt";
1836
+ //#endregion
1837
+ //#region src/jar/handle-jar-request/verify-jar-request.d.ts
1838
+ interface VerifiedJarRequest {
1839
+ authorizationRequestPayload: JarRequestObjectPayload;
1840
+ signer: JwtSignerWithJwk;
1841
+ jwt: ReturnType<typeof decodeJwt<undefined, typeof zJarRequestObjectPayload>>;
1842
+ }
1843
+ //#endregion
1844
+ //#region src/authorization-request/verify-pushed-authorization-request.d.ts
1845
+ interface VerifyPushedAuthorizationRequestReturn extends VerifyAuthorizationRequestReturn {
1846
+ /**
1847
+ * The verified JAR request, if `authorizationRequestJwt` was provided
1848
+ */
1849
+ jar?: VerifiedJarRequest;
1850
+ }
1851
+ interface VerifyPushedAuthorizationRequestOptions extends VerifyAuthorizationRequestOptions {
1852
+ /**
1853
+ * The authorization request JWT to verify. If this value was returned from `parsePushedAuthorizationRequest`
1854
+ * you MUST provide this value to ensure the JWT is verified.
1855
+ */
1856
+ authorizationRequestJwt?: {
1857
+ jwt: string;
1858
+ signer: JwtSigner;
1859
+ };
1860
+ }
1861
+ //#endregion
1862
+ //#region src/authorization-response/z-authorization-response.d.ts
1863
+ declare const zAuthorizationResponse: z$1.ZodObject<{
1864
+ state: z$1.ZodOptional<z$1.ZodString>;
1865
+ code: z$1.ZodString;
1866
+ error: z$1.ZodOptional<z$1.ZodNever>;
1867
+ }, z$1.core.$loose>;
1868
+ declare const zAuthorizationResponseFromUriParams: z$1.ZodPipe<z$1.ZodPipe<z$1.ZodURL, z$1.ZodTransform<unknown, string>>, z$1.ZodObject<{
1869
+ state: z$1.ZodOptional<z$1.ZodString>;
1870
+ code: z$1.ZodString;
1871
+ error: z$1.ZodOptional<z$1.ZodNever>;
1872
+ }, z$1.core.$loose>>;
1873
+ type AuthorizationResponse = z$1.infer<typeof zAuthorizationResponse>;
1874
+ declare const zAuthorizationErrorResponse: z$1.ZodObject<{
1875
+ state: z$1.ZodOptional<z$1.ZodString>;
1876
+ code: z$1.ZodOptional<z$1.ZodNever>;
1877
+ error: z$1.ZodUnion<readonly [z$1.ZodEnum<typeof Oauth2ErrorCodes>, z$1.ZodString]>;
1878
+ error_description: z$1.ZodOptional<z$1.ZodString>;
1879
+ error_uri: z$1.ZodOptional<z$1.ZodString>;
1880
+ }, z$1.core.$loose>;
1881
+ type AuthorizationErrorResponse = z$1.infer<typeof zAuthorizationErrorResponse>;
1882
+ //#endregion
1883
+ //#region src/authorization-response/parse-authorization-response.d.ts
1884
+ interface ParseAuthorizationRequestOptions {
1885
+ url: string;
1886
+ }
1887
+ /**
1888
+ * Parse an authorization response redirect URL.
1889
+ *
1890
+ * @throws {Oauth2ServerErrorResponseError}
1891
+ */
1892
+ declare function parseAuthorizationResponseRedirectUrl(options: ParseAuthorizationRequestOptions): AuthorizationResponse | AuthorizationErrorResponse;
1893
+ //#endregion
1894
+ //#region src/common/jwk/jwk-thumbprint.d.ts
1895
+ interface CalculateJwkThumbprintOptions {
1896
+ /**
1897
+ * The jwk to calcualte the thumbprint for.
1898
+ */
1899
+ jwk: Jwk;
1900
+ /**
1901
+ * The hashing algorithm to use for calculating the thumbprint
1902
+ */
1903
+ hashAlgorithm: HashAlgorithm;
1904
+ /**
1905
+ * The hash callback to calculate the digest
1906
+ */
1907
+ hashCallback: HashCallback;
1908
+ }
1909
+ declare function calculateJwkThumbprint(options: CalculateJwkThumbprintOptions): Promise<string>;
1910
+ //#endregion
1911
+ //#region src/common/jwk/jwks.d.ts
1912
+ declare function isJwkInSet({
1913
+ jwk,
1914
+ jwks,
1915
+ callbacks
1916
+ }: {
1917
+ jwk: Jwk;
1918
+ jwks: Jwk[];
1919
+ callbacks: Pick<CallbackContext, 'hash'>;
1920
+ }): Promise<boolean>;
1921
+ //#endregion
1830
1922
  //#region src/common/jwt/decode-jwt-header.d.ts
1831
1923
  interface DecodeJwtHeaderOptions<HeaderSchema extends BaseSchema | undefined> {
1832
1924
  /**
@@ -2257,6 +2349,108 @@ declare const zIdTokenJwtPayload: z$1.ZodObject<{
2257
2349
  }, z$1.core.$loose>;
2258
2350
  type IdTokenJwtPayload = z$1.infer<typeof zIdTokenJwtPayload>;
2259
2351
  //#endregion
2352
+ //#region src/jar/create-jar-authorization-request.d.ts
2353
+ interface CreateJarAuthorizationRequestOptions {
2354
+ authorizationRequestPayload: JwtPayload & {
2355
+ client_id?: string;
2356
+ };
2357
+ requestUri?: string;
2358
+ jwtSigner: JwtSigner;
2359
+ jweEncryptor?: JweEncryptor;
2360
+ callbacks: Pick<CallbackContext, 'signJwt' | 'encryptJwe'>;
2361
+ /**
2362
+ * Number of seconds after which the signed authorization request will expire
2363
+ */
2364
+ expiresInSeconds: number;
2365
+ /**
2366
+ * Date that should be used as now. If not provided current date will be used.
2367
+ */
2368
+ now?: Date;
2369
+ additionalJwtPayload?: Record<string, unknown>;
2370
+ }
2371
+ /**
2372
+ * Creates a JAR (JWT Authorization Request) request object.
2373
+ *
2374
+ * @param options - The input parameters
2375
+ * @param options.authorizationRequestPayload - The authorization request parameters
2376
+ * @param options.jwtSigner - The JWT signer
2377
+ * @param options.jweEncryptor - The JWE encryptor (optional) if provided, the request object will be encrypted
2378
+ * @param options.requestUri - The request URI (optional) if provided, the request object needs to be fetched from the URI
2379
+ * @param options.callbacks - The callback context
2380
+ * @returns the requestParams, signerJwk, encryptionJwk, and requestObjectJwt
2381
+ */
2382
+ declare function createJarAuthorizationRequest(options: CreateJarAuthorizationRequestOptions): Promise<{
2383
+ jarAuthorizationRequest: {
2384
+ [x: string]: unknown;
2385
+ request?: string | undefined;
2386
+ request_uri?: string | undefined;
2387
+ client_id?: string | undefined;
2388
+ };
2389
+ signerJwk: {
2390
+ [x: string]: unknown;
2391
+ kty: string;
2392
+ crv?: string | undefined;
2393
+ x?: string | undefined;
2394
+ y?: string | undefined;
2395
+ e?: string | undefined;
2396
+ n?: string | undefined;
2397
+ alg?: string | undefined;
2398
+ d?: string | undefined;
2399
+ dp?: string | undefined;
2400
+ dq?: string | undefined;
2401
+ ext?: boolean | undefined;
2402
+ k?: string | undefined;
2403
+ key_ops?: string[] | undefined;
2404
+ kid?: string | undefined;
2405
+ oth?: {
2406
+ [x: string]: unknown;
2407
+ d?: string | undefined;
2408
+ r?: string | undefined;
2409
+ t?: string | undefined;
2410
+ }[] | undefined;
2411
+ p?: string | undefined;
2412
+ q?: string | undefined;
2413
+ qi?: string | undefined;
2414
+ use?: string | undefined;
2415
+ x5c?: string[] | undefined;
2416
+ x5t?: string | undefined;
2417
+ 'x5t#S256'?: string | undefined;
2418
+ x5u?: string | undefined;
2419
+ };
2420
+ encryptionJwk: {
2421
+ [x: string]: unknown;
2422
+ kty: string;
2423
+ crv?: string | undefined;
2424
+ x?: string | undefined;
2425
+ y?: string | undefined;
2426
+ e?: string | undefined;
2427
+ n?: string | undefined;
2428
+ alg?: string | undefined;
2429
+ d?: string | undefined;
2430
+ dp?: string | undefined;
2431
+ dq?: string | undefined;
2432
+ ext?: boolean | undefined;
2433
+ k?: string | undefined;
2434
+ key_ops?: string[] | undefined;
2435
+ kid?: string | undefined;
2436
+ oth?: {
2437
+ [x: string]: unknown;
2438
+ d?: string | undefined;
2439
+ r?: string | undefined;
2440
+ t?: string | undefined;
2441
+ }[] | undefined;
2442
+ p?: string | undefined;
2443
+ q?: string | undefined;
2444
+ qi?: string | undefined;
2445
+ use?: string | undefined;
2446
+ x5c?: string[] | undefined;
2447
+ x5t?: string | undefined;
2448
+ 'x5t#S256'?: string | undefined;
2449
+ x5u?: string | undefined;
2450
+ } | undefined;
2451
+ authorizationRequestJwt: string;
2452
+ }>;
2453
+ //#endregion
2260
2454
  //#region src/metadata/authorization-server/authorization-server-metadata.d.ts
2261
2455
  /**
2262
2456
  * fetch authorization server metadata. It first tries to fetch the oauth-authorization-server metadata. If that returns
@@ -2529,8 +2723,13 @@ declare class Oauth2AuthorizationServer {
2529
2723
  /**
2530
2724
  * Parse a pushed authorization request
2531
2725
  */
2532
- parsePushedAuthorizationRequest(options: ParsePushedAuthorizationRequestOptions): ParsePushedAuthorizationRequestResult;
2533
- verifyPushedAuthorizationRequest(options: Omit<VerifyPushedAuthorizationRequestOptions, 'callbacks'>): Promise<VerifyAuthorizationRequestReturn>;
2726
+ parsePushedAuthorizationRequest(options: ParsePushedAuthorizationRequestOptions): Promise<ParsePushedAuthorizationRequestResult>;
2727
+ /**
2728
+ * Verify pushed authorization request.
2729
+ *
2730
+ * Make sure to provide the `authorizationRequestJwt` if this was returned in the `parsePushedAuthorizationRequest`
2731
+ */
2732
+ verifyPushedAuthorizationRequest(options: Omit<VerifyPushedAuthorizationRequestOptions, 'callbacks'>): Promise<VerifyPushedAuthorizationRequestReturn>;
2534
2733
  createPushedAuthorizationResponse(options: CreatePushedAuthorizationResponseOptions): {
2535
2734
  pushedAuthorizationResponse: {
2536
2735
  [x: string]: unknown;
@@ -3385,5 +3584,5 @@ declare function verifyResourceRequest(options: VerifyResourceRequestOptions): P
3385
3584
  authorizationServer: string;
3386
3585
  }>;
3387
3586
  //#endregion
3388
- export { type AccessTokenErrorResponse, type AccessTokenProfileJwtPayload, type AccessTokenResponse, type AuthorizationChallengeErrorResponse, type AuthorizationChallengeRequest, type AuthorizationChallengeResponse, type AuthorizationCodeGrantIdentifier, AuthorizationErrorResponse, AuthorizationResponse, type AuthorizationServerMetadata, type CalculateJwkThumbprintOptions, type CallbackContext, type ClientAttestationJwtHeader, type ClientAttestationJwtPayload, type ClientAttestationPopJwtHeader, type ClientAttestationPopJwtPayload, type ClientAuthenticationCallback, type ClientAuthenticationCallbackOptions, type ClientAuthenticationClientAttestationJwtOptions, type ClientAuthenticationClientSecretBasicOptions, type ClientAuthenticationClientSecretPostOptions, type ClientAuthenticationDynamicOptions, type ClientAuthenticationNoneOptions, type CreateAuthorizationRequestUrlOptions, type CreateClientAttestationJwtOptions, type CreatePkceReturn, type CreatePushedAuthorizationErrorResponseOptions, type CreatePushedAuthorizationResponseOptions, type DecodeJwtHeaderResult, type DecodeJwtOptions, type DecodeJwtResult, type DecryptJweCallback, type DecryptJweCallbackOptions, type EncryptJweCallback, type GenerateRandomCallback, HashAlgorithm, type HashCallback, type HttpMethod, IdTokenJwtHeader, IdTokenJwtPayload, InvalidFetchResponseError, type JweEncryptor, type Jwk, type JwkSet, type JwtHeader, type JwtPayload, type JwtSigner, type JwtSignerCustom, type JwtSignerDid, type JwtSignerJwk, type JwtSignerWithJwk, type JwtSignerX5c, Oauth2AuthorizationServer, type Oauth2AuthorizationServerOptions, Oauth2Client, Oauth2ClientAuthorizationChallengeError, Oauth2ClientErrorResponseError, type Oauth2ClientOptions, Oauth2Error, Oauth2ErrorCodes, type Oauth2ErrorOptions, type Oauth2ErrorResponse, Oauth2JwtParseError, Oauth2JwtVerificationError, Oauth2ResourceServer, type Oauth2ResourceServerOptions, Oauth2ResourceUnauthorizedError, Oauth2ServerErrorResponseError, type Oid4vcTsConfig, type ParseAuthorizationChallengeRequestOptions, type ParseAuthorizationChallengeRequestResult, ParseAuthorizationRequestOptions, type ParsePushedAuthorizationRequestOptions, type ParsePushedAuthorizationRequestResult, PkceCodeChallengeMethod, type PreAuthorizedCodeGrantIdentifier, type PushedAuthorizationRequestUriPrefix, type RefreshTokenGrantIdentifier, type RequestClientAttestationOptions, type RequestDpopOptions, type RequestLike, type ResourceRequestOptions, type ResourceRequestResponseNotOk, type ResourceRequestResponseOk, type RetrieveAuthorizationCodeAccessTokenOptions, type RetrievePreAuthorizedCodeAccessTokenOptions, type SignJwtCallback, SupportedAuthenticationScheme, SupportedClientAuthenticationMethod, type TokenIntrospectionResponse, type VerifiedClientAttestationJwt, type VerifyAccessTokenRequestReturn, type VerifyAuthorizationChallengeRequestOptions, type VerifyAuthorizationChallengeRequestReturn, VerifyIdTokenJwtOptions, type VerifyJwtCallback, type VerifyPushedAuthorizationRequestOptions, type VerifyPushedAuthorizationRequestReturn, type VerifyResourceRequestOptions, type WwwAuthenticateHeaderChallenge, authorizationCodeGrantIdentifier, calculateJwkThumbprint, clientAuthenticationAnonymous, clientAuthenticationClientAttestationJwt, clientAuthenticationClientSecretBasic, clientAuthenticationClientSecretPost, clientAuthenticationDynamic, clientAuthenticationNone, createClientAttestationJwt, decodeJwt, decodeJwtHeader, fetchAuthorizationServerMetadata, fetchJwks, fetchWellKnownMetadata, getAuthorizationServerMetadataFromList, getGlobalConfig, isJwkInSet, jwtHeaderFromJwtSigner, jwtSignerFromJwt, parseAuthorizationResponseRedirectUrl, parsePushedAuthorizationRequestUriReferenceValue, preAuthorizedCodeGrantIdentifier, pushedAuthorizationRequestUriPrefix, refreshTokenGrantIdentifier, resourceRequest, setGlobalConfig, verifyClientAttestationJwt, verifyIdTokenJwt, verifyJwt, verifyResourceRequest, zAlgValueNotNone, zAuthorizationCodeGrantIdentifier, zAuthorizationErrorResponse, zAuthorizationResponse, zAuthorizationResponseFromUriParams, zAuthorizationServerMetadata, zCompactJwe, zCompactJwt, zIdTokenJwtHeader, zIdTokenJwtPayload, zJwk, zJwkSet, zJwtHeader, zJwtPayload, zOauth2ErrorResponse, zPreAuthorizedCodeGrantIdentifier, zPushedAuthorizationRequestUriPrefix, zRefreshTokenGrantIdentifier };
3587
+ export { type AccessTokenErrorResponse, type AccessTokenProfileJwtPayload, type AccessTokenResponse, type AuthorizationChallengeErrorResponse, type AuthorizationChallengeRequest, type AuthorizationChallengeResponse, type AuthorizationCodeGrantIdentifier, AuthorizationErrorResponse, AuthorizationResponse, type AuthorizationServerMetadata, type CalculateJwkThumbprintOptions, type CallbackContext, type ClientAttestationJwtHeader, type ClientAttestationJwtPayload, type ClientAttestationPopJwtHeader, type ClientAttestationPopJwtPayload, type ClientAuthenticationCallback, type ClientAuthenticationCallbackOptions, type ClientAuthenticationClientAttestationJwtOptions, type ClientAuthenticationClientSecretBasicOptions, type ClientAuthenticationClientSecretPostOptions, type ClientAuthenticationDynamicOptions, type ClientAuthenticationNoneOptions, type CreateAuthorizationRequestUrlOptions, type CreateClientAttestationJwtOptions, type CreateJarAuthorizationRequestOptions, type CreatePkceReturn, type CreatePushedAuthorizationErrorResponseOptions, type CreatePushedAuthorizationResponseOptions, type DecodeJwtHeaderResult, type DecodeJwtOptions, type DecodeJwtResult, type DecryptJweCallback, type DecryptJweCallbackOptions, type EncryptJweCallback, type GenerateRandomCallback, HashAlgorithm, type HashCallback, type HttpMethod, IdTokenJwtHeader, IdTokenJwtPayload, InvalidFetchResponseError, type JarAuthorizationRequest, type JarRequestObjectPayload, type JweEncryptor, type Jwk, type JwkSet, type JwtHeader, type JwtPayload, type JwtSigner, type JwtSignerCustom, type JwtSignerDid, type JwtSignerJwk, type JwtSignerWithJwk, type JwtSignerX5c, Oauth2AuthorizationServer, type Oauth2AuthorizationServerOptions, Oauth2Client, Oauth2ClientAuthorizationChallengeError, Oauth2ClientErrorResponseError, type Oauth2ClientOptions, Oauth2Error, Oauth2ErrorCodes, type Oauth2ErrorOptions, type Oauth2ErrorResponse, Oauth2JwtParseError, Oauth2JwtVerificationError, Oauth2ResourceServer, type Oauth2ResourceServerOptions, Oauth2ResourceUnauthorizedError, Oauth2ServerErrorResponseError, type Oid4vcTsConfig, type ParseAuthorizationChallengeRequestOptions, type ParseAuthorizationChallengeRequestResult, ParseAuthorizationRequestOptions, type ParsePushedAuthorizationRequestOptions, type ParsePushedAuthorizationRequestResult, PkceCodeChallengeMethod, type PreAuthorizedCodeGrantIdentifier, type PushedAuthorizationRequestUriPrefix, type RefreshTokenGrantIdentifier, type RequestClientAttestationOptions, type RequestDpopOptions, type RequestLike, type ResourceRequestOptions, type ResourceRequestResponseNotOk, type ResourceRequestResponseOk, type RetrieveAuthorizationCodeAccessTokenOptions, type RetrievePreAuthorizedCodeAccessTokenOptions, type SignJwtCallback, SupportedAuthenticationScheme, SupportedClientAuthenticationMethod, type TokenIntrospectionResponse, type VerifiedClientAttestationJwt, type VerifyAccessTokenRequestReturn, type VerifyAuthorizationChallengeRequestOptions, type VerifyAuthorizationChallengeRequestReturn, VerifyIdTokenJwtOptions, type VerifyJwtCallback, type VerifyPushedAuthorizationRequestOptions, type VerifyPushedAuthorizationRequestReturn, type VerifyResourceRequestOptions, type WwwAuthenticateHeaderChallenge, authorizationCodeGrantIdentifier, calculateJwkThumbprint, clientAuthenticationAnonymous, clientAuthenticationClientAttestationJwt, clientAuthenticationClientSecretBasic, clientAuthenticationClientSecretPost, clientAuthenticationDynamic, clientAuthenticationNone, createClientAttestationJwt, createJarAuthorizationRequest, decodeJwt, decodeJwtHeader, fetchAuthorizationServerMetadata, fetchJwks, fetchWellKnownMetadata, getAuthorizationServerMetadataFromList, getGlobalConfig, isJwkInSet, jwtAuthorizationRequestJwtHeaderTyp, jwtHeaderFromJwtSigner, jwtSignerFromJwt, parseAuthorizationResponseRedirectUrl, parsePushedAuthorizationRequestUriReferenceValue, preAuthorizedCodeGrantIdentifier, pushedAuthorizationRequestUriPrefix, refreshTokenGrantIdentifier, resourceRequest, setGlobalConfig, signedAuthorizationRequestJwtHeaderTyp, validateJarRequestParams, verifyClientAttestationJwt, verifyIdTokenJwt, verifyJwt, verifyResourceRequest, zAlgValueNotNone, zAuthorizationCodeGrantIdentifier, zAuthorizationErrorResponse, zAuthorizationResponse, zAuthorizationResponseFromUriParams, zAuthorizationServerMetadata, zCompactJwe, zCompactJwt, zIdTokenJwtHeader, zIdTokenJwtPayload, zJarAuthorizationRequest, zJarRequestObjectPayload, zJwk, zJwkSet, zJwtHeader, zJwtPayload, zOauth2ErrorResponse, zPreAuthorizedCodeGrantIdentifier, zPushedAuthorizationRequestUriPrefix, zRefreshTokenGrantIdentifier };
3389
3588
  //# sourceMappingURL=index.d.mts.map