@openid4vc/oauth2 0.3.0-alpha-20251120112059 → 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/dist/index.d.mts +12 -12
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import z$1, { z } from "zod";
|
|
|
3
3
|
|
|
4
4
|
//#region src/metadata/authorization-server/z-authorization-server-metadata.d.ts
|
|
5
5
|
declare const zAuthorizationServerMetadata: z$1.ZodObject<{
|
|
6
|
-
issuer: z$1.
|
|
7
|
-
token_endpoint: z$1.
|
|
6
|
+
issuer: z$1.ZodURL;
|
|
7
|
+
token_endpoint: z$1.ZodURL;
|
|
8
8
|
token_endpoint_auth_methods_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
9
9
|
client_secret_basic: "client_secret_basic";
|
|
10
10
|
client_secret_post: "client_secret_post";
|
|
@@ -12,14 +12,14 @@ declare const zAuthorizationServerMetadata: z$1.ZodObject<{
|
|
|
12
12
|
client_secret_jwt: "client_secret_jwt";
|
|
13
13
|
private_key_jwt: "private_key_jwt";
|
|
14
14
|
}>, z$1.ZodString]>>>;
|
|
15
|
-
authorization_endpoint: z$1.ZodOptional<z$1.
|
|
16
|
-
jwks_uri: z$1.ZodOptional<z$1.
|
|
15
|
+
authorization_endpoint: z$1.ZodOptional<z$1.ZodURL>;
|
|
16
|
+
jwks_uri: z$1.ZodOptional<z$1.ZodURL>;
|
|
17
17
|
grant_types_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
18
18
|
code_challenge_methods_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
19
19
|
dpop_signing_alg_values_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
20
20
|
require_pushed_authorization_requests: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
21
|
-
pushed_authorization_request_endpoint: z$1.ZodOptional<z$1.
|
|
22
|
-
introspection_endpoint: z$1.ZodOptional<z$1.
|
|
21
|
+
pushed_authorization_request_endpoint: z$1.ZodOptional<z$1.ZodURL>;
|
|
22
|
+
introspection_endpoint: z$1.ZodOptional<z$1.ZodURL>;
|
|
23
23
|
introspection_endpoint_auth_methods_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
24
24
|
client_secret_basic: "client_secret_basic";
|
|
25
25
|
client_secret_post: "client_secret_post";
|
|
@@ -28,7 +28,7 @@ declare const zAuthorizationServerMetadata: z$1.ZodObject<{
|
|
|
28
28
|
private_key_jwt: "private_key_jwt";
|
|
29
29
|
}>, z$1.ZodString]>>>;
|
|
30
30
|
introspection_endpoint_auth_signing_alg_values_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
31
|
-
authorization_challenge_endpoint: z$1.ZodOptional<z$1.
|
|
31
|
+
authorization_challenge_endpoint: z$1.ZodOptional<z$1.ZodURL>;
|
|
32
32
|
'pre-authorized_grant_anonymous_access_supported': z$1.ZodOptional<z$1.ZodBoolean>;
|
|
33
33
|
client_attestation_pop_nonce_required: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
34
34
|
}, z$1.core.$loose>;
|
|
@@ -554,7 +554,7 @@ declare const zAccessTokenRequest: z$1.ZodIntersection<z$1.ZodObject<{
|
|
|
554
554
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
555
555
|
redirect_uri: z$1.ZodOptional<z$1.ZodURL>;
|
|
556
556
|
refresh_token: z$1.ZodOptional<z$1.ZodString>;
|
|
557
|
-
resource: z$1.ZodOptional<z$1.
|
|
557
|
+
resource: z$1.ZodOptional<z$1.ZodURL>;
|
|
558
558
|
code_verifier: z$1.ZodOptional<z$1.ZodString>;
|
|
559
559
|
grant_type: z$1.ZodUnion<readonly [z$1.ZodLiteral<"urn:ietf:params:oauth:grant-type:pre-authorized_code">, z$1.ZodLiteral<"authorization_code">, z$1.ZodLiteral<"refresh_token">, z$1.ZodString]>;
|
|
560
560
|
}, z$1.core.$loose>, z$1.ZodPipe<z$1.ZodObject<{
|
|
@@ -749,7 +749,7 @@ type ClientAttestationJwtHeader = z$1.infer<typeof zClientAttestationJwtHeader>;
|
|
|
749
749
|
declare const zClientAttestationPopJwtPayload: z$1.ZodObject<{
|
|
750
750
|
iss: z$1.ZodString;
|
|
751
751
|
exp: z$1.ZodNumber;
|
|
752
|
-
aud: z$1.ZodUnion<readonly [z$1.
|
|
752
|
+
aud: z$1.ZodUnion<readonly [z$1.ZodURL, z$1.ZodArray<z$1.ZodURL>]>;
|
|
753
753
|
jti: z$1.ZodString;
|
|
754
754
|
nonce: z$1.ZodOptional<z$1.ZodString>;
|
|
755
755
|
iat: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -1429,7 +1429,7 @@ declare const zAuthorizationChallengeRequest: z$1.ZodObject<{
|
|
|
1429
1429
|
presentation_during_issuance_session: z$1.ZodOptional<z$1.ZodString>;
|
|
1430
1430
|
scope: z$1.ZodOptional<z$1.ZodString>;
|
|
1431
1431
|
redirect_uri: z$1.ZodOptional<z$1.ZodURL>;
|
|
1432
|
-
resource: z$1.ZodOptional<z$1.
|
|
1432
|
+
resource: z$1.ZodOptional<z$1.ZodURL>;
|
|
1433
1433
|
state: z$1.ZodOptional<z$1.ZodString>;
|
|
1434
1434
|
issuer_state: z$1.ZodOptional<z$1.ZodString>;
|
|
1435
1435
|
dpop_jkt: z$1.ZodOptional<z$1.ZodBase64URL>;
|
|
@@ -1638,7 +1638,7 @@ declare const zAuthorizationRequest: z$1.ZodObject<{
|
|
|
1638
1638
|
client_id: z$1.ZodString;
|
|
1639
1639
|
issuer_state: z$1.ZodOptional<z$1.ZodString>;
|
|
1640
1640
|
redirect_uri: z$1.ZodOptional<z$1.ZodURL>;
|
|
1641
|
-
resource: z$1.ZodOptional<z$1.
|
|
1641
|
+
resource: z$1.ZodOptional<z$1.ZodURL>;
|
|
1642
1642
|
scope: z$1.ZodOptional<z$1.ZodString>;
|
|
1643
1643
|
state: z$1.ZodOptional<z$1.ZodString>;
|
|
1644
1644
|
dpop_jkt: z$1.ZodOptional<z$1.ZodBase64URL>;
|
|
@@ -1770,7 +1770,7 @@ type InferSchemaOrDefaultOutput<ProvidedSchema extends BaseSchema | undefined, D
|
|
|
1770
1770
|
//#region src/jar/z-jar-authorization-request.d.ts
|
|
1771
1771
|
declare const zJarAuthorizationRequest: z.ZodObject<{
|
|
1772
1772
|
request: z.ZodOptional<z.ZodString>;
|
|
1773
|
-
request_uri: z.ZodOptional<z.
|
|
1773
|
+
request_uri: z.ZodOptional<z.ZodURL>;
|
|
1774
1774
|
client_id: z.ZodOptional<z.ZodString>;
|
|
1775
1775
|
}, z.core.$loose>;
|
|
1776
1776
|
type JarAuthorizationRequest = z.infer<typeof zJarAuthorizationRequest>;
|
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import z$1, { z } from "zod";
|
|
|
3
3
|
|
|
4
4
|
//#region src/metadata/authorization-server/z-authorization-server-metadata.d.ts
|
|
5
5
|
declare const zAuthorizationServerMetadata: z$1.ZodObject<{
|
|
6
|
-
issuer: z$1.
|
|
7
|
-
token_endpoint: z$1.
|
|
6
|
+
issuer: z$1.ZodURL;
|
|
7
|
+
token_endpoint: z$1.ZodURL;
|
|
8
8
|
token_endpoint_auth_methods_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
9
9
|
client_secret_basic: "client_secret_basic";
|
|
10
10
|
client_secret_post: "client_secret_post";
|
|
@@ -12,14 +12,14 @@ declare const zAuthorizationServerMetadata: z$1.ZodObject<{
|
|
|
12
12
|
client_secret_jwt: "client_secret_jwt";
|
|
13
13
|
private_key_jwt: "private_key_jwt";
|
|
14
14
|
}>, z$1.ZodString]>>>;
|
|
15
|
-
authorization_endpoint: z$1.ZodOptional<z$1.
|
|
16
|
-
jwks_uri: z$1.ZodOptional<z$1.
|
|
15
|
+
authorization_endpoint: z$1.ZodOptional<z$1.ZodURL>;
|
|
16
|
+
jwks_uri: z$1.ZodOptional<z$1.ZodURL>;
|
|
17
17
|
grant_types_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
18
18
|
code_challenge_methods_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
19
19
|
dpop_signing_alg_values_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
20
20
|
require_pushed_authorization_requests: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
21
|
-
pushed_authorization_request_endpoint: z$1.ZodOptional<z$1.
|
|
22
|
-
introspection_endpoint: z$1.ZodOptional<z$1.
|
|
21
|
+
pushed_authorization_request_endpoint: z$1.ZodOptional<z$1.ZodURL>;
|
|
22
|
+
introspection_endpoint: z$1.ZodOptional<z$1.ZodURL>;
|
|
23
23
|
introspection_endpoint_auth_methods_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
24
24
|
client_secret_basic: "client_secret_basic";
|
|
25
25
|
client_secret_post: "client_secret_post";
|
|
@@ -28,7 +28,7 @@ declare const zAuthorizationServerMetadata: z$1.ZodObject<{
|
|
|
28
28
|
private_key_jwt: "private_key_jwt";
|
|
29
29
|
}>, z$1.ZodString]>>>;
|
|
30
30
|
introspection_endpoint_auth_signing_alg_values_supported: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
31
|
-
authorization_challenge_endpoint: z$1.ZodOptional<z$1.
|
|
31
|
+
authorization_challenge_endpoint: z$1.ZodOptional<z$1.ZodURL>;
|
|
32
32
|
'pre-authorized_grant_anonymous_access_supported': z$1.ZodOptional<z$1.ZodBoolean>;
|
|
33
33
|
client_attestation_pop_nonce_required: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
34
34
|
}, z$1.core.$loose>;
|
|
@@ -554,7 +554,7 @@ declare const zAccessTokenRequest: z$1.ZodIntersection<z$1.ZodObject<{
|
|
|
554
554
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
555
555
|
redirect_uri: z$1.ZodOptional<z$1.ZodURL>;
|
|
556
556
|
refresh_token: z$1.ZodOptional<z$1.ZodString>;
|
|
557
|
-
resource: z$1.ZodOptional<z$1.
|
|
557
|
+
resource: z$1.ZodOptional<z$1.ZodURL>;
|
|
558
558
|
code_verifier: z$1.ZodOptional<z$1.ZodString>;
|
|
559
559
|
grant_type: z$1.ZodUnion<readonly [z$1.ZodLiteral<"urn:ietf:params:oauth:grant-type:pre-authorized_code">, z$1.ZodLiteral<"authorization_code">, z$1.ZodLiteral<"refresh_token">, z$1.ZodString]>;
|
|
560
560
|
}, z$1.core.$loose>, z$1.ZodPipe<z$1.ZodObject<{
|
|
@@ -749,7 +749,7 @@ type ClientAttestationJwtHeader = z$1.infer<typeof zClientAttestationJwtHeader>;
|
|
|
749
749
|
declare const zClientAttestationPopJwtPayload: z$1.ZodObject<{
|
|
750
750
|
iss: z$1.ZodString;
|
|
751
751
|
exp: z$1.ZodNumber;
|
|
752
|
-
aud: z$1.ZodUnion<readonly [z$1.
|
|
752
|
+
aud: z$1.ZodUnion<readonly [z$1.ZodURL, z$1.ZodArray<z$1.ZodURL>]>;
|
|
753
753
|
jti: z$1.ZodString;
|
|
754
754
|
nonce: z$1.ZodOptional<z$1.ZodString>;
|
|
755
755
|
iat: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -1429,7 +1429,7 @@ declare const zAuthorizationChallengeRequest: z$1.ZodObject<{
|
|
|
1429
1429
|
presentation_during_issuance_session: z$1.ZodOptional<z$1.ZodString>;
|
|
1430
1430
|
scope: z$1.ZodOptional<z$1.ZodString>;
|
|
1431
1431
|
redirect_uri: z$1.ZodOptional<z$1.ZodURL>;
|
|
1432
|
-
resource: z$1.ZodOptional<z$1.
|
|
1432
|
+
resource: z$1.ZodOptional<z$1.ZodURL>;
|
|
1433
1433
|
state: z$1.ZodOptional<z$1.ZodString>;
|
|
1434
1434
|
issuer_state: z$1.ZodOptional<z$1.ZodString>;
|
|
1435
1435
|
dpop_jkt: z$1.ZodOptional<z$1.ZodBase64URL>;
|
|
@@ -1638,7 +1638,7 @@ declare const zAuthorizationRequest: z$1.ZodObject<{
|
|
|
1638
1638
|
client_id: z$1.ZodString;
|
|
1639
1639
|
issuer_state: z$1.ZodOptional<z$1.ZodString>;
|
|
1640
1640
|
redirect_uri: z$1.ZodOptional<z$1.ZodURL>;
|
|
1641
|
-
resource: z$1.ZodOptional<z$1.
|
|
1641
|
+
resource: z$1.ZodOptional<z$1.ZodURL>;
|
|
1642
1642
|
scope: z$1.ZodOptional<z$1.ZodString>;
|
|
1643
1643
|
state: z$1.ZodOptional<z$1.ZodString>;
|
|
1644
1644
|
dpop_jkt: z$1.ZodOptional<z$1.ZodBase64URL>;
|
|
@@ -1770,7 +1770,7 @@ type InferSchemaOrDefaultOutput<ProvidedSchema extends BaseSchema | undefined, D
|
|
|
1770
1770
|
//#region src/jar/z-jar-authorization-request.d.ts
|
|
1771
1771
|
declare const zJarAuthorizationRequest: z.ZodObject<{
|
|
1772
1772
|
request: z.ZodOptional<z.ZodString>;
|
|
1773
|
-
request_uri: z.ZodOptional<z.
|
|
1773
|
+
request_uri: z.ZodOptional<z.ZodURL>;
|
|
1774
1774
|
client_id: z.ZodOptional<z.ZodString>;
|
|
1775
1775
|
}, z.core.$loose>;
|
|
1776
1776
|
type JarAuthorizationRequest = z.infer<typeof zJarAuthorizationRequest>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openid4vc/oauth2",
|
|
3
|
-
"version": "0.3.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"zod": "^4.1.12",
|
|
24
|
-
"@openid4vc/utils": "0.3.0
|
|
24
|
+
"@openid4vc/utils": "0.3.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"jose": "^6.1.1"
|