@openid4vc/openid4vp 0.4.0-alpha-20251127093634 → 0.4.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.mts +31 -31
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -28,26 +28,26 @@ declare const zWalletMetadata: z.ZodObject<{
|
|
|
28
28
|
alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
29
|
}, z.core.$loose>>]>>;
|
|
30
30
|
client_id_schemes_supported: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
31
|
-
redirect_uri: "redirect_uri";
|
|
32
31
|
"pre-registered": "pre-registered";
|
|
33
|
-
|
|
32
|
+
redirect_uri: "redirect_uri";
|
|
34
33
|
verifier_attestation: "verifier_attestation";
|
|
35
|
-
|
|
34
|
+
https: "https";
|
|
35
|
+
did: "did";
|
|
36
36
|
x509_san_uri: "x509_san_uri";
|
|
37
37
|
x509_hash: "x509_hash";
|
|
38
|
-
|
|
38
|
+
x509_san_dns: "x509_san_dns";
|
|
39
39
|
origin: "origin";
|
|
40
40
|
"web-origin": "web-origin";
|
|
41
41
|
}>>>;
|
|
42
42
|
client_id_prefixes_supported: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
43
|
-
redirect_uri: "redirect_uri";
|
|
44
43
|
"pre-registered": "pre-registered";
|
|
44
|
+
redirect_uri: "redirect_uri";
|
|
45
45
|
verifier_attestation: "verifier_attestation";
|
|
46
|
-
x509_san_dns: "x509_san_dns";
|
|
47
|
-
x509_san_uri: "x509_san_uri";
|
|
48
|
-
x509_hash: "x509_hash";
|
|
49
46
|
openid_federation: "openid_federation";
|
|
50
47
|
decentralized_identifier: "decentralized_identifier";
|
|
48
|
+
x509_san_uri: "x509_san_uri";
|
|
49
|
+
x509_hash: "x509_hash";
|
|
50
|
+
x509_san_dns: "x509_san_dns";
|
|
51
51
|
origin: "origin";
|
|
52
52
|
}>>>;
|
|
53
53
|
request_object_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -141,14 +141,14 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
|
|
|
141
141
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodBase64URL>>;
|
|
142
142
|
trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
143
143
|
client_id_scheme: z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
redirect_uri: "redirect_uri";
|
|
145
144
|
"pre-registered": "pre-registered";
|
|
146
|
-
|
|
147
|
-
did: "did";
|
|
145
|
+
redirect_uri: "redirect_uri";
|
|
148
146
|
verifier_attestation: "verifier_attestation";
|
|
149
|
-
|
|
147
|
+
did: "did";
|
|
150
148
|
x509_san_uri: "x509_san_uri";
|
|
151
149
|
x509_hash: "x509_hash";
|
|
150
|
+
x509_san_dns: "x509_san_dns";
|
|
151
|
+
entity_id: "entity_id";
|
|
152
152
|
}>>;
|
|
153
153
|
verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
154
154
|
format: z.ZodString;
|
|
@@ -404,7 +404,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
404
404
|
state?: string | undefined;
|
|
405
405
|
transaction_data?: string[] | undefined;
|
|
406
406
|
trust_chain?: [string, ...string[]] | undefined;
|
|
407
|
-
client_id_scheme?: "
|
|
407
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_uri" | "x509_hash" | "x509_san_dns" | "entity_id" | undefined;
|
|
408
408
|
verifier_attestations?: {
|
|
409
409
|
format: string;
|
|
410
410
|
data: string | Record<string, unknown>;
|
|
@@ -690,7 +690,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
690
690
|
state?: string | undefined;
|
|
691
691
|
transaction_data?: string[] | undefined;
|
|
692
692
|
trust_chain?: [string, ...string[]] | undefined;
|
|
693
|
-
client_id_scheme?: "
|
|
693
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_uri" | "x509_hash" | "x509_san_dns" | "entity_id" | undefined;
|
|
694
694
|
verifier_attestations?: {
|
|
695
695
|
format: string;
|
|
696
696
|
data: string | Record<string, unknown>;
|
|
@@ -893,7 +893,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
893
893
|
state?: string | undefined;
|
|
894
894
|
transaction_data?: string[] | undefined;
|
|
895
895
|
trust_chain?: [string, ...string[]] | undefined;
|
|
896
|
-
client_id_scheme?: "
|
|
896
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_uri" | "x509_hash" | "x509_san_dns" | "entity_id" | undefined;
|
|
897
897
|
verifier_attestations?: {
|
|
898
898
|
format: string;
|
|
899
899
|
data: string | Record<string, unknown>;
|
|
@@ -1113,40 +1113,40 @@ declare function parseAuthorizationRequestVersion(request: Openid4vpAuthorizatio
|
|
|
1113
1113
|
//#endregion
|
|
1114
1114
|
//#region src/client-identifier-prefix/z-client-id-prefix.d.ts
|
|
1115
1115
|
declare const zClientIdPrefix: z.ZodEnum<{
|
|
1116
|
-
redirect_uri: "redirect_uri";
|
|
1117
1116
|
"pre-registered": "pre-registered";
|
|
1118
|
-
|
|
1117
|
+
redirect_uri: "redirect_uri";
|
|
1119
1118
|
verifier_attestation: "verifier_attestation";
|
|
1120
|
-
x509_san_dns: "x509_san_dns";
|
|
1121
|
-
x509_san_uri: "x509_san_uri";
|
|
1122
|
-
x509_hash: "x509_hash";
|
|
1123
1119
|
https: "https";
|
|
1124
1120
|
openid_federation: "openid_federation";
|
|
1121
|
+
did: "did";
|
|
1125
1122
|
decentralized_identifier: "decentralized_identifier";
|
|
1123
|
+
x509_san_uri: "x509_san_uri";
|
|
1124
|
+
x509_hash: "x509_hash";
|
|
1125
|
+
x509_san_dns: "x509_san_dns";
|
|
1126
1126
|
origin: "origin";
|
|
1127
1127
|
"web-origin": "web-origin";
|
|
1128
1128
|
}>;
|
|
1129
1129
|
declare const zUniformClientIdPrefix: z.ZodEnum<{
|
|
1130
|
-
redirect_uri: "redirect_uri";
|
|
1131
1130
|
"pre-registered": "pre-registered";
|
|
1131
|
+
redirect_uri: "redirect_uri";
|
|
1132
1132
|
verifier_attestation: "verifier_attestation";
|
|
1133
|
-
x509_san_dns: "x509_san_dns";
|
|
1134
|
-
x509_san_uri: "x509_san_uri";
|
|
1135
|
-
x509_hash: "x509_hash";
|
|
1136
1133
|
openid_federation: "openid_federation";
|
|
1137
1134
|
decentralized_identifier: "decentralized_identifier";
|
|
1135
|
+
x509_san_uri: "x509_san_uri";
|
|
1136
|
+
x509_hash: "x509_hash";
|
|
1137
|
+
x509_san_dns: "x509_san_dns";
|
|
1138
1138
|
origin: "origin";
|
|
1139
1139
|
}>;
|
|
1140
1140
|
type ClientIdPrefix = z.infer<typeof zClientIdPrefix>;
|
|
1141
1141
|
type UniformClientIdPrefix = z.infer<typeof zUniformClientIdPrefix>;
|
|
1142
1142
|
declare const zLegacyClientIdScheme: z.ZodEnum<{
|
|
1143
|
-
redirect_uri: "redirect_uri";
|
|
1144
1143
|
"pre-registered": "pre-registered";
|
|
1145
|
-
|
|
1146
|
-
did: "did";
|
|
1144
|
+
redirect_uri: "redirect_uri";
|
|
1147
1145
|
verifier_attestation: "verifier_attestation";
|
|
1148
|
-
|
|
1146
|
+
did: "did";
|
|
1149
1147
|
x509_san_uri: "x509_san_uri";
|
|
1148
|
+
x509_san_dns: "x509_san_dns";
|
|
1149
|
+
entity_id: "entity_id";
|
|
1150
1150
|
}>;
|
|
1151
1151
|
type LegacyClientIdScheme = z.infer<typeof zLegacyClientIdScheme>;
|
|
1152
1152
|
//#endregion
|
|
@@ -1958,7 +1958,7 @@ declare class Openid4vpVerifier {
|
|
|
1958
1958
|
state?: string | undefined;
|
|
1959
1959
|
transaction_data?: string[] | undefined;
|
|
1960
1960
|
trust_chain?: [string, ...string[]] | undefined;
|
|
1961
|
-
client_id_scheme?: "
|
|
1961
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_uri" | "x509_hash" | "x509_san_dns" | "entity_id" | undefined;
|
|
1962
1962
|
verifier_attestations?: {
|
|
1963
1963
|
format: string;
|
|
1964
1964
|
data: string | Record<string, unknown>;
|
|
@@ -2244,7 +2244,7 @@ declare class Openid4vpVerifier {
|
|
|
2244
2244
|
state?: string | undefined;
|
|
2245
2245
|
transaction_data?: string[] | undefined;
|
|
2246
2246
|
trust_chain?: [string, ...string[]] | undefined;
|
|
2247
|
-
client_id_scheme?: "
|
|
2247
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_uri" | "x509_hash" | "x509_san_dns" | "entity_id" | undefined;
|
|
2248
2248
|
verifier_attestations?: {
|
|
2249
2249
|
format: string;
|
|
2250
2250
|
data: string | Record<string, unknown>;
|
|
@@ -2447,7 +2447,7 @@ declare class Openid4vpVerifier {
|
|
|
2447
2447
|
state?: string | undefined;
|
|
2448
2448
|
transaction_data?: string[] | undefined;
|
|
2449
2449
|
trust_chain?: [string, ...string[]] | undefined;
|
|
2450
|
-
client_id_scheme?: "
|
|
2450
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_uri" | "x509_hash" | "x509_san_dns" | "entity_id" | undefined;
|
|
2451
2451
|
verifier_attestations?: {
|
|
2452
2452
|
format: string;
|
|
2453
2453
|
data: string | Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openid4vc/openid4vp",
|
|
3
|
-
"version": "0.4.0
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"zod": "^4.1.13",
|
|
24
|
-
"@openid4vc/oauth2": "0.4.0
|
|
25
|
-
"@openid4vc/utils": "0.4.0
|
|
24
|
+
"@openid4vc/oauth2": "0.4.0",
|
|
25
|
+
"@openid4vc/utils": "0.4.0"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsdown src/index.ts --format esm --dts --sourcemap"
|