@openid4vc/openid4vci 0.3.0-alpha-20251121092537 → 0.3.0
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.cts +12 -12
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentType, Fetch, FetchHeaders, HttpMethod, InferOutputUnion, Oid4vcTsConfig, OrPromise, StringWithAutoCompletion, getGlobalConfig, setGlobalConfig } from "@openid4vc/utils";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _openid4vc_oauth28 from "@openid4vc/oauth2";
|
|
3
3
|
import { AuthorizationCodeGrantIdentifier, AuthorizationServerMetadata, CallbackContext, CreateAuthorizationRequestUrlOptions, CreateClientAttestationJwtOptions, CreatePkceReturn, DecodeJwtResult, Jwk, JwtSigner, JwtSignerWithJwk, PreAuthorizedCodeGrantIdentifier, RequestDpopOptions, ResourceRequestResponseNotOk, ResourceRequestResponseOk, RetrieveAuthorizationCodeAccessTokenOptions, RetrievePreAuthorizedCodeAccessTokenOptions, authorizationCodeGrantIdentifier, preAuthorizedCodeGrantIdentifier } from "@openid4vc/oauth2";
|
|
4
4
|
import * as zod0 from "zod";
|
|
5
5
|
import z from "zod";
|
|
@@ -2643,7 +2643,7 @@ interface ParseKeyAttestationJwtOptions {
|
|
|
2643
2643
|
declare function parseKeyAttestationJwt({
|
|
2644
2644
|
keyAttestationJwt,
|
|
2645
2645
|
use
|
|
2646
|
-
}: ParseKeyAttestationJwtOptions):
|
|
2646
|
+
}: ParseKeyAttestationJwtOptions): _openid4vc_oauth28.DecodeJwtResult<zod0.ZodObject<{
|
|
2647
2647
|
typ: zod0.ZodUnion<[zod0.ZodLiteral<"keyattestation+jwt">, zod0.ZodLiteral<"key-attestation+jwt">]>;
|
|
2648
2648
|
alg: zod0.ZodString;
|
|
2649
2649
|
kid: zod0.ZodOptional<zod0.ZodString>;
|
|
@@ -2917,7 +2917,7 @@ declare function verifyKeyAttestationJwt(options: VerifyKeyAttestationJwtOptions
|
|
|
2917
2917
|
status?: Record<string, any> | undefined;
|
|
2918
2918
|
trust_chain?: [string, ...string[]] | undefined;
|
|
2919
2919
|
};
|
|
2920
|
-
signer:
|
|
2920
|
+
signer: _openid4vc_oauth28.JwtSignerWithJwk;
|
|
2921
2921
|
}>;
|
|
2922
2922
|
//#endregion
|
|
2923
2923
|
//#region src/metadata/credential-issuer/credential-configurations.d.ts
|
|
@@ -3081,7 +3081,7 @@ declare class Openid4vciClient {
|
|
|
3081
3081
|
};
|
|
3082
3082
|
dpop: {
|
|
3083
3083
|
nonce: string | undefined;
|
|
3084
|
-
signer:
|
|
3084
|
+
signer: _openid4vc_oauth28.JwtSignerJwk;
|
|
3085
3085
|
} | undefined;
|
|
3086
3086
|
}>;
|
|
3087
3087
|
/**
|
|
@@ -3140,7 +3140,7 @@ declare class Openid4vciClient {
|
|
|
3140
3140
|
issuerMetadata: IssuerMetadataResult;
|
|
3141
3141
|
}): Promise<{
|
|
3142
3142
|
authorizationServer: string;
|
|
3143
|
-
accessTokenResponse:
|
|
3143
|
+
accessTokenResponse: _openid4vc_oauth28.AccessTokenResponse;
|
|
3144
3144
|
dpop?: RequestDpopOptions;
|
|
3145
3145
|
}>;
|
|
3146
3146
|
/**
|
|
@@ -3160,7 +3160,7 @@ declare class Openid4vciClient {
|
|
|
3160
3160
|
issuerMetadata: IssuerMetadataResult;
|
|
3161
3161
|
}): Promise<{
|
|
3162
3162
|
authorizationServer: string;
|
|
3163
|
-
accessTokenResponse:
|
|
3163
|
+
accessTokenResponse: _openid4vc_oauth28.AccessTokenResponse;
|
|
3164
3164
|
dpop?: RequestDpopOptions;
|
|
3165
3165
|
}>;
|
|
3166
3166
|
/**
|
|
@@ -3215,7 +3215,7 @@ declare class Openid4vciClient {
|
|
|
3215
3215
|
additionalRequestPayload,
|
|
3216
3216
|
accessToken,
|
|
3217
3217
|
dpop
|
|
3218
|
-
}: Pick<SendNotificationOptions, 'accessToken' | 'additionalRequestPayload' | 'issuerMetadata' | 'dpop' | 'notification'>): Promise<
|
|
3218
|
+
}: Pick<SendNotificationOptions, 'accessToken' | 'additionalRequestPayload' | 'issuerMetadata' | 'dpop' | 'notification'>): Promise<_openid4vc_oauth28.ResourceRequestResponseOk>;
|
|
3219
3219
|
}
|
|
3220
3220
|
//#endregion
|
|
3221
3221
|
//#region ../oauth2/src/common/jwk/z-jwk.d.ts
|
|
@@ -3901,7 +3901,7 @@ declare class Openid4vciIssuer {
|
|
|
3901
3901
|
status?: Record<string, any> | undefined;
|
|
3902
3902
|
trust_chain?: [string, ...string[]] | undefined;
|
|
3903
3903
|
};
|
|
3904
|
-
signer:
|
|
3904
|
+
signer: _openid4vc_oauth28.JwtSignerWithJwk;
|
|
3905
3905
|
keyAttestation: {
|
|
3906
3906
|
header: {
|
|
3907
3907
|
[x: string]: unknown;
|
|
@@ -4024,7 +4024,7 @@ declare class Openid4vciIssuer {
|
|
|
4024
4024
|
status?: Record<string, any> | undefined;
|
|
4025
4025
|
trust_chain?: [string, ...string[]] | undefined;
|
|
4026
4026
|
};
|
|
4027
|
-
signer:
|
|
4027
|
+
signer: _openid4vc_oauth28.JwtSignerWithJwk;
|
|
4028
4028
|
} | undefined;
|
|
4029
4029
|
}>;
|
|
4030
4030
|
/**
|
|
@@ -4155,7 +4155,7 @@ declare class Openid4vciIssuer {
|
|
|
4155
4155
|
status?: Record<string, any> | undefined;
|
|
4156
4156
|
trust_chain?: [string, ...string[]] | undefined;
|
|
4157
4157
|
};
|
|
4158
|
-
signer:
|
|
4158
|
+
signer: _openid4vc_oauth28.JwtSignerWithJwk;
|
|
4159
4159
|
}>;
|
|
4160
4160
|
/**
|
|
4161
4161
|
* @throws Oauth2ServerErrorResponseError - when validation of the credential request fails
|
|
@@ -4291,7 +4291,7 @@ declare class Openid4vciIssuer {
|
|
|
4291
4291
|
status?: Record<string, any> | undefined;
|
|
4292
4292
|
trust_chain?: [string, ...string[]] | undefined;
|
|
4293
4293
|
};
|
|
4294
|
-
signer:
|
|
4294
|
+
signer: _openid4vc_oauth28.JwtSignerWithJwk;
|
|
4295
4295
|
};
|
|
4296
4296
|
clientAttestationPop: {
|
|
4297
4297
|
header: {
|
|
@@ -4381,7 +4381,7 @@ declare class Openid4vciIssuer {
|
|
|
4381
4381
|
status?: Record<string, any> | undefined;
|
|
4382
4382
|
trust_chain?: [string, ...string[]] | undefined;
|
|
4383
4383
|
};
|
|
4384
|
-
signer:
|
|
4384
|
+
signer: _openid4vc_oauth28.JwtSignerWithJwk;
|
|
4385
4385
|
};
|
|
4386
4386
|
}>;
|
|
4387
4387
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openid4vc/openid4vci",
|
|
3
|
-
"version": "0.3.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"zod": "^4.1.12",
|
|
24
|
-
"@openid4vc/oauth2": "0.3.0
|
|
25
|
-
"@openid4vc/utils": "0.3.0
|
|
24
|
+
"@openid4vc/oauth2": "0.3.0",
|
|
25
|
+
"@openid4vc/utils": "0.3.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"jose": "^6.1.1"
|