@openid4vc/openid4vci 0.5.3 → 0.5.4-alpha-20260703113614
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 +83 -83
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -4054,89 +4054,6 @@ declare class Openid4vciClient {
|
|
|
4054
4054
|
}>;
|
|
4055
4055
|
}
|
|
4056
4056
|
//#endregion
|
|
4057
|
-
//#region ../oauth2/src/metadata/authorization-server/z-authorization-server-metadata.d.ts
|
|
4058
|
-
declare const zAuthorizationServerMetadata$1: z.ZodObject<{
|
|
4059
|
-
issuer: z.ZodURL;
|
|
4060
|
-
token_endpoint: z.ZodURL;
|
|
4061
|
-
token_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4062
|
-
client_secret_basic: "client_secret_basic";
|
|
4063
|
-
client_secret_post: "client_secret_post";
|
|
4064
|
-
attest_jwt_client_auth: "attest_jwt_client_auth";
|
|
4065
|
-
attest_jwt_client_auth_dpop: "attest_jwt_client_auth_dpop";
|
|
4066
|
-
client_secret_jwt: "client_secret_jwt";
|
|
4067
|
-
private_key_jwt: "private_key_jwt";
|
|
4068
|
-
}>, z.ZodString]>>>;
|
|
4069
|
-
authorization_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4070
|
-
jwks_uri: z.ZodOptional<z.ZodURL>;
|
|
4071
|
-
grant_types_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4072
|
-
code_challenge_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4073
|
-
dpop_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4074
|
-
require_pushed_authorization_requests: z.ZodOptional<z.ZodBoolean>;
|
|
4075
|
-
pushed_authorization_request_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4076
|
-
introspection_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4077
|
-
introspection_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4078
|
-
client_secret_basic: "client_secret_basic";
|
|
4079
|
-
client_secret_post: "client_secret_post";
|
|
4080
|
-
attest_jwt_client_auth: "attest_jwt_client_auth";
|
|
4081
|
-
attest_jwt_client_auth_dpop: "attest_jwt_client_auth_dpop";
|
|
4082
|
-
client_secret_jwt: "client_secret_jwt";
|
|
4083
|
-
private_key_jwt: "private_key_jwt";
|
|
4084
|
-
}>, z.ZodString]>>>;
|
|
4085
|
-
introspection_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4086
|
-
authorization_challenge_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4087
|
-
interactive_authorization_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4088
|
-
require_interactive_authorization_request: z.ZodOptional<z.ZodBoolean>;
|
|
4089
|
-
'pre-authorized_grant_anonymous_access_supported': z.ZodOptional<z.ZodBoolean>;
|
|
4090
|
-
client_attestation_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4091
|
-
client_attestation_pop_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4092
|
-
challenge_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4093
|
-
client_attestation_pop_nonce_required: z.ZodOptional<z.ZodBoolean>;
|
|
4094
|
-
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
4095
|
-
}, z.core.$loose>;
|
|
4096
|
-
type AuthorizationServerMetadata$1 = z.infer<typeof zAuthorizationServerMetadata$1>;
|
|
4097
|
-
//#endregion
|
|
4098
|
-
//#region ../oauth2/src/client-authentication.d.ts
|
|
4099
|
-
/**
|
|
4100
|
-
* Options for client authentication
|
|
4101
|
-
*/
|
|
4102
|
-
interface ClientAuthenticationCallbackOptions {
|
|
4103
|
-
/**
|
|
4104
|
-
* Metadata of the authorization server
|
|
4105
|
-
*/
|
|
4106
|
-
authorizationServerMetadata: AuthorizationServerMetadata$1;
|
|
4107
|
-
/**
|
|
4108
|
-
* URL to which the request will be made
|
|
4109
|
-
*/
|
|
4110
|
-
url: string;
|
|
4111
|
-
/**
|
|
4112
|
-
* http method that will be used
|
|
4113
|
-
*/
|
|
4114
|
-
method: HttpMethod;
|
|
4115
|
-
/**
|
|
4116
|
-
* Headers for the request. You can modify this object
|
|
4117
|
-
*/
|
|
4118
|
-
headers: FetchHeaders;
|
|
4119
|
-
contentType: ContentType;
|
|
4120
|
-
/**
|
|
4121
|
-
* The body as a JSON object. If content type `x-www-form-urlencoded`
|
|
4122
|
-
* is used, it will be encoded after this call.
|
|
4123
|
-
*
|
|
4124
|
-
* You can modify this object
|
|
4125
|
-
*/
|
|
4126
|
-
body: Record<string, unknown>;
|
|
4127
|
-
/**
|
|
4128
|
-
* A fresh Client Attestation challenge provided by the authorization server (draft 09), e.g.
|
|
4129
|
-
* obtained from the `OAuth-Client-Attestation-Challenge` response header when retrying after a
|
|
4130
|
-
* `use_attestation_challenge` error. When set it takes precedence over any statically configured
|
|
4131
|
-
* challenge for methods that include a Client Attestation PoP.
|
|
4132
|
-
*/
|
|
4133
|
-
attestationChallenge?: string;
|
|
4134
|
-
}
|
|
4135
|
-
/**
|
|
4136
|
-
* Callback method to determine the client authentication for a request.
|
|
4137
|
-
*/
|
|
4138
|
-
type ClientAuthenticationCallback = (options: ClientAuthenticationCallbackOptions) => Promise<void> | void;
|
|
4139
|
-
//#endregion
|
|
4140
4057
|
//#region ../oauth2/src/common/jwk/z-jwk.d.ts
|
|
4141
4058
|
declare const zJwk$1: z.ZodObject<{
|
|
4142
4059
|
kty: z.ZodString;
|
|
@@ -4316,6 +4233,89 @@ declare const zJwtHeader$1: z.ZodObject<{
|
|
|
4316
4233
|
}, z.core.$loose>;
|
|
4317
4234
|
type JwtHeader = z.infer<typeof zJwtHeader$1>;
|
|
4318
4235
|
//#endregion
|
|
4236
|
+
//#region ../oauth2/src/metadata/authorization-server/z-authorization-server-metadata.d.ts
|
|
4237
|
+
declare const zAuthorizationServerMetadata$1: z.ZodObject<{
|
|
4238
|
+
issuer: z.ZodURL;
|
|
4239
|
+
token_endpoint: z.ZodURL;
|
|
4240
|
+
token_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4241
|
+
client_secret_basic: "client_secret_basic";
|
|
4242
|
+
client_secret_post: "client_secret_post";
|
|
4243
|
+
attest_jwt_client_auth: "attest_jwt_client_auth";
|
|
4244
|
+
attest_jwt_client_auth_dpop: "attest_jwt_client_auth_dpop";
|
|
4245
|
+
client_secret_jwt: "client_secret_jwt";
|
|
4246
|
+
private_key_jwt: "private_key_jwt";
|
|
4247
|
+
}>, z.ZodString]>>>;
|
|
4248
|
+
authorization_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4249
|
+
jwks_uri: z.ZodOptional<z.ZodURL>;
|
|
4250
|
+
grant_types_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4251
|
+
code_challenge_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4252
|
+
dpop_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4253
|
+
require_pushed_authorization_requests: z.ZodOptional<z.ZodBoolean>;
|
|
4254
|
+
pushed_authorization_request_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4255
|
+
introspection_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4256
|
+
introspection_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4257
|
+
client_secret_basic: "client_secret_basic";
|
|
4258
|
+
client_secret_post: "client_secret_post";
|
|
4259
|
+
attest_jwt_client_auth: "attest_jwt_client_auth";
|
|
4260
|
+
attest_jwt_client_auth_dpop: "attest_jwt_client_auth_dpop";
|
|
4261
|
+
client_secret_jwt: "client_secret_jwt";
|
|
4262
|
+
private_key_jwt: "private_key_jwt";
|
|
4263
|
+
}>, z.ZodString]>>>;
|
|
4264
|
+
introspection_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4265
|
+
authorization_challenge_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4266
|
+
interactive_authorization_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4267
|
+
require_interactive_authorization_request: z.ZodOptional<z.ZodBoolean>;
|
|
4268
|
+
'pre-authorized_grant_anonymous_access_supported': z.ZodOptional<z.ZodBoolean>;
|
|
4269
|
+
client_attestation_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4270
|
+
client_attestation_pop_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4271
|
+
challenge_endpoint: z.ZodOptional<z.ZodURL>;
|
|
4272
|
+
client_attestation_pop_nonce_required: z.ZodOptional<z.ZodBoolean>;
|
|
4273
|
+
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
4274
|
+
}, z.core.$loose>;
|
|
4275
|
+
type AuthorizationServerMetadata$1 = z.infer<typeof zAuthorizationServerMetadata$1>;
|
|
4276
|
+
//#endregion
|
|
4277
|
+
//#region ../oauth2/src/client-authentication.d.ts
|
|
4278
|
+
/**
|
|
4279
|
+
* Options for client authentication
|
|
4280
|
+
*/
|
|
4281
|
+
interface ClientAuthenticationCallbackOptions {
|
|
4282
|
+
/**
|
|
4283
|
+
* Metadata of the authorization server
|
|
4284
|
+
*/
|
|
4285
|
+
authorizationServerMetadata: AuthorizationServerMetadata$1;
|
|
4286
|
+
/**
|
|
4287
|
+
* URL to which the request will be made
|
|
4288
|
+
*/
|
|
4289
|
+
url: string;
|
|
4290
|
+
/**
|
|
4291
|
+
* http method that will be used
|
|
4292
|
+
*/
|
|
4293
|
+
method: HttpMethod;
|
|
4294
|
+
/**
|
|
4295
|
+
* Headers for the request. You can modify this object
|
|
4296
|
+
*/
|
|
4297
|
+
headers: FetchHeaders;
|
|
4298
|
+
contentType: ContentType;
|
|
4299
|
+
/**
|
|
4300
|
+
* The body as a JSON object. If content type `x-www-form-urlencoded`
|
|
4301
|
+
* is used, it will be encoded after this call.
|
|
4302
|
+
*
|
|
4303
|
+
* You can modify this object
|
|
4304
|
+
*/
|
|
4305
|
+
body: Record<string, unknown>;
|
|
4306
|
+
/**
|
|
4307
|
+
* A fresh Client Attestation challenge provided by the authorization server (draft 09), e.g.
|
|
4308
|
+
* obtained from the `OAuth-Client-Attestation-Challenge` response header when retrying after a
|
|
4309
|
+
* `use_attestation_challenge` error. When set it takes precedence over any statically configured
|
|
4310
|
+
* challenge for methods that include a Client Attestation PoP.
|
|
4311
|
+
*/
|
|
4312
|
+
attestationChallenge?: string;
|
|
4313
|
+
}
|
|
4314
|
+
/**
|
|
4315
|
+
* Callback method to determine the client authentication for a request.
|
|
4316
|
+
*/
|
|
4317
|
+
type ClientAuthenticationCallback = (options: ClientAuthenticationCallbackOptions) => Promise<void> | void;
|
|
4318
|
+
//#endregion
|
|
4319
4319
|
//#region ../oauth2/src/callbacks.d.ts
|
|
4320
4320
|
/**
|
|
4321
4321
|
* Supported hashing algorithms
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openid4vc/openid4vci",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4-alpha-20260703113614",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"zod": "^4.4.3",
|
|
24
|
-
"@openid4vc/oauth2": "0.5.
|
|
25
|
-
"@openid4vc/utils": "0.5.
|
|
24
|
+
"@openid4vc/oauth2": "0.5.4-alpha-20260703113614",
|
|
25
|
+
"@openid4vc/utils": "0.5.4-alpha-20260703113614"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"jose": "^6.2.3"
|