@pagopa/io-react-native-wallet 0.11.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/commonjs/client/generated/wallet-provider.js +126 -0
- package/lib/commonjs/client/generated/wallet-provider.js.map +1 -0
- package/lib/commonjs/client/index.js +40 -0
- package/lib/commonjs/client/index.js.map +1 -0
- package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js +2 -1
- package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js.map +1 -1
- package/lib/commonjs/credential/issuance/03-start-credential-issuance.js +287 -0
- package/lib/commonjs/credential/issuance/03-start-credential-issuance.js.map +1 -0
- package/lib/commonjs/credential/issuance/03-start-user-authorization.js +56 -83
- package/lib/commonjs/credential/issuance/03-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/04-complete-user-authorization.js +88 -0
- package/lib/commonjs/credential/issuance/04-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/05-authorize-access.js +56 -33
- package/lib/commonjs/credential/issuance/05-authorize-access.js.map +1 -1
- package/lib/commonjs/credential/issuance/06-obtain-credential.js +51 -78
- package/lib/commonjs/credential/issuance/06-obtain-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js +21 -44
- package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/index.js +7 -0
- package/lib/commonjs/credential/issuance/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/types.js +28 -0
- package/lib/commonjs/credential/issuance/types.js.map +1 -0
- package/lib/commonjs/index.js +10 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/pid/sd-jwt/converters.js +5 -9
- package/lib/commonjs/pid/sd-jwt/converters.js.map +1 -1
- package/lib/commonjs/pid/sd-jwt/types.js +3 -3
- package/lib/commonjs/pid/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/converters.test.js +1 -1
- package/lib/commonjs/sd-jwt/__test__/converters.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/index.test.js +30 -43
- package/lib/commonjs/sd-jwt/__test__/index.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/types.test.js +16 -24
- package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/index.js +3 -9
- package/lib/commonjs/sd-jwt/index.js.map +1 -1
- package/lib/commonjs/sd-jwt/types.js +11 -16
- package/lib/commonjs/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/trust/types.js +70 -29
- package/lib/commonjs/trust/types.js.map +1 -1
- package/lib/commonjs/utils/auth.js +44 -0
- package/lib/commonjs/utils/auth.js.map +1 -0
- package/lib/commonjs/utils/errors.js +104 -1
- package/lib/commonjs/utils/errors.js.map +1 -1
- package/lib/commonjs/utils/integrity.js +2 -0
- package/lib/commonjs/utils/integrity.js.map +1 -0
- package/lib/commonjs/utils/misc.js +34 -1
- package/lib/commonjs/utils/misc.js.map +1 -1
- package/lib/commonjs/utils/par.js +23 -15
- package/lib/commonjs/utils/par.js.map +1 -1
- package/lib/commonjs/utils/pop.js +33 -0
- package/lib/commonjs/utils/pop.js.map +1 -0
- package/lib/commonjs/wallet-instance/index.js +29 -0
- package/lib/commonjs/wallet-instance/index.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/issuing.js +62 -65
- package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/types.js +8 -8
- package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
- package/lib/module/client/generated/wallet-provider.js +102 -0
- package/lib/module/client/generated/wallet-provider.js.map +1 -0
- package/lib/module/client/index.js +33 -0
- package/lib/module/client/index.js.map +1 -0
- package/lib/module/credential/issuance/02-evaluate-issuer-trust.js +2 -1
- package/lib/module/credential/issuance/02-evaluate-issuer-trust.js.map +1 -1
- package/lib/module/credential/issuance/03-start-credential-issuance.js +276 -0
- package/lib/module/credential/issuance/03-start-credential-issuance.js.map +1 -0
- package/lib/module/credential/issuance/03-start-user-authorization.js +56 -80
- package/lib/module/credential/issuance/03-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/04-complete-user-authorization.js +85 -1
- package/lib/module/credential/issuance/04-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/05-authorize-access.js +54 -33
- package/lib/module/credential/issuance/05-authorize-access.js.map +1 -1
- package/lib/module/credential/issuance/06-obtain-credential.js +50 -75
- package/lib/module/credential/issuance/06-obtain-credential.js.map +1 -1
- package/lib/module/credential/issuance/07-verify-and-parse-credential.js +21 -44
- package/lib/module/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
- package/lib/module/credential/issuance/index.js +2 -1
- package/lib/module/credential/issuance/index.js.map +1 -1
- package/lib/module/credential/issuance/types.js +18 -0
- package/lib/module/credential/issuance/types.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/pid/sd-jwt/converters.js +5 -9
- package/lib/module/pid/sd-jwt/converters.js.map +1 -1
- package/lib/module/pid/sd-jwt/types.js +3 -3
- package/lib/module/pid/sd-jwt/types.js.map +1 -1
- package/lib/module/sd-jwt/__test__/converters.test.js +1 -1
- package/lib/module/sd-jwt/__test__/converters.test.js.map +1 -1
- package/lib/module/sd-jwt/__test__/index.test.js +30 -43
- package/lib/module/sd-jwt/__test__/index.test.js.map +1 -1
- package/lib/module/sd-jwt/__test__/types.test.js +16 -24
- package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
- package/lib/module/sd-jwt/index.js +3 -9
- package/lib/module/sd-jwt/index.js.map +1 -1
- package/lib/module/sd-jwt/types.js +11 -16
- package/lib/module/sd-jwt/types.js.map +1 -1
- package/lib/module/trust/types.js +70 -29
- package/lib/module/trust/types.js.map +1 -1
- package/lib/module/utils/auth.js +35 -0
- package/lib/module/utils/auth.js.map +1 -0
- package/lib/module/utils/errors.js +98 -0
- package/lib/module/utils/errors.js.map +1 -1
- package/lib/module/utils/integrity.js +2 -0
- package/lib/module/utils/integrity.js.map +1 -0
- package/lib/module/utils/misc.js +31 -0
- package/lib/module/utils/misc.js.map +1 -1
- package/lib/module/utils/par.js +24 -16
- package/lib/module/utils/par.js.map +1 -1
- package/lib/module/utils/pop.js +24 -0
- package/lib/module/utils/pop.js.map +1 -0
- package/lib/module/wallet-instance/index.js +23 -0
- package/lib/module/wallet-instance/index.js.map +1 -0
- package/lib/module/wallet-instance-attestation/issuing.js +63 -67
- package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/module/wallet-instance-attestation/types.js +8 -8
- package/lib/module/wallet-instance-attestation/types.js.map +1 -1
- package/lib/typescript/client/generated/wallet-provider.d.ts +264 -0
- package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -0
- package/lib/typescript/client/index.d.ts +7 -0
- package/lib/typescript/client/index.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/01-start-flow.d.ts +1 -0
- package/lib/typescript/credential/issuance/01-start-flow.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts +2 -1
- package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/03-start-credential-issuance.d.ts +41 -0
- package/lib/typescript/credential/issuance/03-start-credential-issuance.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts +23 -18
- package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts +24 -12
- package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/05-authorize-access.d.ts +22 -16
- package/lib/typescript/credential/issuance/05-authorize-access.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/06-obtain-credential.d.ts +19 -26
- package/lib/typescript/credential/issuance/06-obtain-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts +10 -15
- package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/index.d.ts +3 -4
- package/lib/typescript/credential/issuance/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/types.d.ts +63 -0
- package/lib/typescript/credential/issuance/types.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/types.d.ts +6 -6
- package/lib/typescript/index.d.ts +6 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/pid/sd-jwt/converters.d.ts.map +1 -1
- package/lib/typescript/pid/sd-jwt/types.d.ts +36 -36
- package/lib/typescript/pid/sd-jwt/types.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/index.d.ts +40 -68
- package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/types.d.ts +64 -121
- package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
- package/lib/typescript/trust/index.d.ts +150 -48
- package/lib/typescript/trust/index.d.ts.map +1 -1
- package/lib/typescript/trust/types.d.ts +2838 -1740
- package/lib/typescript/trust/types.d.ts.map +1 -1
- package/lib/typescript/utils/auth.d.ts +52 -0
- package/lib/typescript/utils/auth.d.ts.map +1 -0
- package/lib/typescript/utils/errors.d.ts +48 -0
- package/lib/typescript/utils/errors.d.ts.map +1 -1
- package/lib/typescript/utils/integrity.d.ts +21 -0
- package/lib/typescript/utils/integrity.d.ts.map +1 -0
- package/lib/typescript/utils/misc.d.ts +18 -0
- package/lib/typescript/utils/misc.d.ts.map +1 -1
- package/lib/typescript/utils/par.d.ts +8 -31
- package/lib/typescript/utils/par.d.ts.map +1 -1
- package/lib/typescript/utils/pop.d.ts +26 -0
- package/lib/typescript/utils/pop.d.ts.map +1 -0
- package/lib/typescript/wallet-instance/index.d.ts +7 -0
- package/lib/typescript/wallet-instance/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts +17 -4
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/types.d.ts +64 -64
- package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
- package/package.json +9 -5
- package/src/client/generated/wallet-provider.ts +173 -0
- package/src/client/index.ts +53 -0
- package/src/credential/issuance/01-start-flow.ts +1 -0
- package/src/credential/issuance/02-evaluate-issuer-trust.ts +2 -1
- package/src/credential/issuance/03-start-credential-issuance.ts +407 -0
- package/src/credential/issuance/03-start-user-authorization.ts +91 -92
- package/src/credential/issuance/04-complete-user-authorization.ts +114 -13
- package/src/credential/issuance/05-authorize-access.ts +74 -49
- package/src/credential/issuance/06-obtain-credential.ts +77 -111
- package/src/credential/issuance/07-verify-and-parse-credential.ts +30 -67
- package/src/credential/issuance/index.ts +6 -4
- package/src/credential/issuance/types.ts +25 -0
- package/src/index.ts +8 -0
- package/src/pid/sd-jwt/converters.ts +5 -11
- package/src/pid/sd-jwt/types.ts +8 -6
- package/src/sd-jwt/__test__/converters.test.ts +1 -1
- package/src/sd-jwt/__test__/index.test.ts +45 -74
- package/src/sd-jwt/__test__/types.test.ts +21 -33
- package/src/sd-jwt/index.ts +3 -12
- package/src/sd-jwt/types.ts +17 -22
- package/src/trust/types.ts +64 -32
- package/src/utils/auth.ts +37 -0
- package/src/utils/errors.ts +112 -0
- package/src/utils/integrity.ts +23 -0
- package/src/utils/misc.ts +43 -0
- package/src/utils/par.ts +29 -17
- package/src/utils/pop.ts +34 -0
- package/src/wallet-instance/index.ts +29 -0
- package/src/wallet-instance-attestation/issuing.ts +101 -97
- package/src/wallet-instance-attestation/types.ts +12 -8
- package/lib/commonjs/credential/issuance/07-confirm-credential.js +0 -6
- package/lib/commonjs/credential/issuance/07-confirm-credential.js.map +0 -1
- package/lib/commonjs/credential/issuance/08-confirm-credential.js +0 -6
- package/lib/commonjs/credential/issuance/08-confirm-credential.js.map +0 -1
- package/lib/module/credential/issuance/07-confirm-credential.js +0 -2
- package/lib/module/credential/issuance/07-confirm-credential.js.map +0 -1
- package/lib/module/credential/issuance/08-confirm-credential.js +0 -2
- package/lib/module/credential/issuance/08-confirm-credential.js.map +0 -1
- package/lib/typescript/credential/issuance/07-confirm-credential.d.ts +0 -11
- package/lib/typescript/credential/issuance/07-confirm-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/08-confirm-credential.d.ts +0 -11
- package/lib/typescript/credential/issuance/08-confirm-credential.d.ts.map +0 -1
- package/src/credential/issuance/07-confirm-credential.ts +0 -14
- package/src/credential/issuance/08-confirm-credential.ts +0 -14
@@ -19,17 +19,18 @@ export declare const decode: <S extends z.ZodType<{
|
|
19
19
|
header: {
|
20
20
|
alg: string;
|
21
21
|
typ: "vc+sd-jwt";
|
22
|
-
trust_chain: string[];
|
23
22
|
kid?: string | undefined;
|
24
23
|
};
|
25
24
|
payload: {
|
26
|
-
type: string;
|
27
|
-
status: string;
|
28
25
|
iss: string;
|
26
|
+
status: {
|
27
|
+
status_attestation: {
|
28
|
+
credential_hash_alg: "sha-256";
|
29
|
+
};
|
30
|
+
};
|
29
31
|
sub: string;
|
30
|
-
jti: string;
|
31
|
-
iat: number;
|
32
32
|
exp: number;
|
33
|
+
_sd_alg: "sha-256";
|
33
34
|
cnf: {
|
34
35
|
jwk: {
|
35
36
|
kty: "RSA" | "EC";
|
@@ -56,34 +57,27 @@ export declare const decode: <S extends z.ZodType<{
|
|
56
57
|
x5u?: string | undefined;
|
57
58
|
};
|
58
59
|
};
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
} & {
|
64
|
-
_sd: string[];
|
65
|
-
};
|
66
|
-
claims: {
|
67
|
-
_sd: string[];
|
68
|
-
};
|
69
|
-
};
|
70
|
-
_sd_alg: "sha-256";
|
60
|
+
vct: string;
|
61
|
+
iat?: number | undefined;
|
62
|
+
} & {
|
63
|
+
_sd: string[];
|
71
64
|
};
|
72
65
|
}, z.ZodTypeDef, {
|
73
66
|
header: {
|
74
67
|
alg: string;
|
75
68
|
typ: "vc+sd-jwt";
|
76
|
-
trust_chain: string[];
|
77
69
|
kid?: string | undefined;
|
78
70
|
};
|
79
71
|
payload: {
|
80
|
-
type: string;
|
81
|
-
status: string;
|
82
72
|
iss: string;
|
73
|
+
status: {
|
74
|
+
status_attestation: {
|
75
|
+
credential_hash_alg: "sha-256";
|
76
|
+
};
|
77
|
+
};
|
83
78
|
sub: string;
|
84
|
-
jti: string;
|
85
|
-
iat: number;
|
86
79
|
exp: number;
|
80
|
+
_sd_alg: "sha-256";
|
87
81
|
cnf: {
|
88
82
|
jwk: {
|
89
83
|
kty: "RSA" | "EC";
|
@@ -110,18 +104,10 @@ export declare const decode: <S extends z.ZodType<{
|
|
110
104
|
x5u?: string | undefined;
|
111
105
|
};
|
112
106
|
};
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
} & {
|
118
|
-
_sd: string[];
|
119
|
-
};
|
120
|
-
claims: {
|
121
|
-
_sd: string[];
|
122
|
-
};
|
123
|
-
};
|
124
|
-
_sd_alg: "sha-256";
|
107
|
+
vct: string;
|
108
|
+
iat?: number | undefined;
|
109
|
+
} & {
|
110
|
+
_sd: string[];
|
125
111
|
};
|
126
112
|
}>>(token: string, customSchema?: S | undefined) => {
|
127
113
|
sdJwt: z.TypeOf<S>;
|
@@ -167,17 +153,18 @@ export declare const verify: <S extends z.ZodType<{
|
|
167
153
|
header: {
|
168
154
|
alg: string;
|
169
155
|
typ: "vc+sd-jwt";
|
170
|
-
trust_chain: string[];
|
171
156
|
kid?: string | undefined;
|
172
157
|
};
|
173
158
|
payload: {
|
174
|
-
type: string;
|
175
|
-
status: string;
|
176
159
|
iss: string;
|
160
|
+
status: {
|
161
|
+
status_attestation: {
|
162
|
+
credential_hash_alg: "sha-256";
|
163
|
+
};
|
164
|
+
};
|
177
165
|
sub: string;
|
178
|
-
jti: string;
|
179
|
-
iat: number;
|
180
166
|
exp: number;
|
167
|
+
_sd_alg: "sha-256";
|
181
168
|
cnf: {
|
182
169
|
jwk: {
|
183
170
|
kty: "RSA" | "EC";
|
@@ -204,34 +191,27 @@ export declare const verify: <S extends z.ZodType<{
|
|
204
191
|
x5u?: string | undefined;
|
205
192
|
};
|
206
193
|
};
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
} & {
|
212
|
-
_sd: string[];
|
213
|
-
};
|
214
|
-
claims: {
|
215
|
-
_sd: string[];
|
216
|
-
};
|
217
|
-
};
|
218
|
-
_sd_alg: "sha-256";
|
194
|
+
vct: string;
|
195
|
+
iat?: number | undefined;
|
196
|
+
} & {
|
197
|
+
_sd: string[];
|
219
198
|
};
|
220
199
|
}, z.ZodTypeDef, {
|
221
200
|
header: {
|
222
201
|
alg: string;
|
223
202
|
typ: "vc+sd-jwt";
|
224
|
-
trust_chain: string[];
|
225
203
|
kid?: string | undefined;
|
226
204
|
};
|
227
205
|
payload: {
|
228
|
-
type: string;
|
229
|
-
status: string;
|
230
206
|
iss: string;
|
207
|
+
status: {
|
208
|
+
status_attestation: {
|
209
|
+
credential_hash_alg: "sha-256";
|
210
|
+
};
|
211
|
+
};
|
231
212
|
sub: string;
|
232
|
-
jti: string;
|
233
|
-
iat: number;
|
234
213
|
exp: number;
|
214
|
+
_sd_alg: "sha-256";
|
235
215
|
cnf: {
|
236
216
|
jwk: {
|
237
217
|
kty: "RSA" | "EC";
|
@@ -258,18 +238,10 @@ export declare const verify: <S extends z.ZodType<{
|
|
258
238
|
x5u?: string | undefined;
|
259
239
|
};
|
260
240
|
};
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
} & {
|
266
|
-
_sd: string[];
|
267
|
-
};
|
268
|
-
claims: {
|
269
|
-
_sd: string[];
|
270
|
-
};
|
271
|
-
};
|
272
|
-
_sd_alg: "sha-256";
|
241
|
+
vct: string;
|
242
|
+
iat?: number | undefined;
|
243
|
+
} & {
|
244
|
+
_sd: string[];
|
273
245
|
};
|
274
246
|
}>>(token: string, publicKey: JWK | JWK[], customSchema?: S | undefined) => Promise<{
|
275
247
|
sdJwt: z.TypeOf<S>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE3E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAWxC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE3E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAWxC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACV,MAAM;;iBAIA,qBAAqB,EAAE;CA0BrC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,UACZ,MAAM,UACL,MAAM,EAAE;WACE,MAAM;WAAS;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE;EAwCnE,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACV,MAAM,aACF,GAAG,GAAG,GAAG,EAAE;;iBAEqB,UAAU,EAAE;EAqBxD,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
@@ -35,25 +35,38 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
35
35
|
typ: z.ZodLiteral<"vc+sd-jwt">;
|
36
36
|
alg: z.ZodString;
|
37
37
|
kid: z.ZodOptional<z.ZodString>;
|
38
|
-
trust_chain: z.ZodArray<z.ZodString, "many">;
|
39
38
|
}, "strip", z.ZodTypeAny, {
|
40
39
|
alg: string;
|
41
40
|
typ: "vc+sd-jwt";
|
42
|
-
trust_chain: string[];
|
43
41
|
kid?: string | undefined;
|
44
42
|
}, {
|
45
43
|
alg: string;
|
46
44
|
typ: "vc+sd-jwt";
|
47
|
-
trust_chain: string[];
|
48
45
|
kid?: string | undefined;
|
49
46
|
}>;
|
50
|
-
payload: z.ZodObject<{
|
47
|
+
payload: z.ZodIntersection<z.ZodObject<{
|
51
48
|
iss: z.ZodString;
|
52
49
|
sub: z.ZodString;
|
53
|
-
|
54
|
-
iat: z.ZodNumber;
|
50
|
+
iat: z.ZodOptional<z.ZodNumber>;
|
55
51
|
exp: z.ZodNumber;
|
56
|
-
|
52
|
+
_sd_alg: z.ZodLiteral<"sha-256">;
|
53
|
+
status: z.ZodObject<{
|
54
|
+
status_attestation: z.ZodObject<{
|
55
|
+
credential_hash_alg: z.ZodLiteral<"sha-256">;
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
57
|
+
credential_hash_alg: "sha-256";
|
58
|
+
}, {
|
59
|
+
credential_hash_alg: "sha-256";
|
60
|
+
}>;
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
62
|
+
status_attestation: {
|
63
|
+
credential_hash_alg: "sha-256";
|
64
|
+
};
|
65
|
+
}, {
|
66
|
+
status_attestation: {
|
67
|
+
credential_hash_alg: "sha-256";
|
68
|
+
};
|
69
|
+
}>;
|
57
70
|
cnf: z.ZodObject<{
|
58
71
|
jwk: z.ZodObject<{
|
59
72
|
alg: z.ZodOptional<z.ZodString>;
|
@@ -176,61 +189,17 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
176
189
|
x5u?: string | undefined;
|
177
190
|
};
|
178
191
|
}>;
|
179
|
-
|
180
|
-
verified_claims: z.ZodObject<{
|
181
|
-
verification: z.ZodIntersection<z.ZodObject<{
|
182
|
-
trust_framework: z.ZodLiteral<"eidas">;
|
183
|
-
assurance_level: z.ZodString;
|
184
|
-
}, "strip", z.ZodTypeAny, {
|
185
|
-
trust_framework: "eidas";
|
186
|
-
assurance_level: string;
|
187
|
-
}, {
|
188
|
-
trust_framework: "eidas";
|
189
|
-
assurance_level: string;
|
190
|
-
}>, z.ZodObject<{
|
191
|
-
_sd: z.ZodArray<z.ZodString, "many">;
|
192
|
-
}, "strip", z.ZodTypeAny, {
|
193
|
-
_sd: string[];
|
194
|
-
}, {
|
195
|
-
_sd: string[];
|
196
|
-
}>>;
|
197
|
-
claims: z.ZodObject<{
|
198
|
-
_sd: z.ZodArray<z.ZodString, "many">;
|
199
|
-
}, "strip", z.ZodTypeAny, {
|
200
|
-
_sd: string[];
|
201
|
-
}, {
|
202
|
-
_sd: string[];
|
203
|
-
}>;
|
204
|
-
}, "strip", z.ZodTypeAny, {
|
205
|
-
verification: {
|
206
|
-
trust_framework: "eidas";
|
207
|
-
assurance_level: string;
|
208
|
-
} & {
|
209
|
-
_sd: string[];
|
210
|
-
};
|
211
|
-
claims: {
|
212
|
-
_sd: string[];
|
213
|
-
};
|
214
|
-
}, {
|
215
|
-
verification: {
|
216
|
-
trust_framework: "eidas";
|
217
|
-
assurance_level: string;
|
218
|
-
} & {
|
219
|
-
_sd: string[];
|
220
|
-
};
|
221
|
-
claims: {
|
222
|
-
_sd: string[];
|
223
|
-
};
|
224
|
-
}>;
|
225
|
-
_sd_alg: z.ZodLiteral<"sha-256">;
|
192
|
+
vct: z.ZodString;
|
226
193
|
}, "strip", z.ZodTypeAny, {
|
227
|
-
type: string;
|
228
|
-
status: string;
|
229
194
|
iss: string;
|
195
|
+
status: {
|
196
|
+
status_attestation: {
|
197
|
+
credential_hash_alg: "sha-256";
|
198
|
+
};
|
199
|
+
};
|
230
200
|
sub: string;
|
231
|
-
jti: string;
|
232
|
-
iat: number;
|
233
201
|
exp: number;
|
202
|
+
_sd_alg: "sha-256";
|
234
203
|
cnf: {
|
235
204
|
jwk: {
|
236
205
|
kty: "RSA" | "EC";
|
@@ -257,26 +226,18 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
257
226
|
x5u?: string | undefined;
|
258
227
|
};
|
259
228
|
};
|
260
|
-
|
261
|
-
|
262
|
-
trust_framework: "eidas";
|
263
|
-
assurance_level: string;
|
264
|
-
} & {
|
265
|
-
_sd: string[];
|
266
|
-
};
|
267
|
-
claims: {
|
268
|
-
_sd: string[];
|
269
|
-
};
|
270
|
-
};
|
271
|
-
_sd_alg: "sha-256";
|
229
|
+
vct: string;
|
230
|
+
iat?: number | undefined;
|
272
231
|
}, {
|
273
|
-
type: string;
|
274
|
-
status: string;
|
275
232
|
iss: string;
|
233
|
+
status: {
|
234
|
+
status_attestation: {
|
235
|
+
credential_hash_alg: "sha-256";
|
236
|
+
};
|
237
|
+
};
|
276
238
|
sub: string;
|
277
|
-
jti: string;
|
278
|
-
iat: number;
|
279
239
|
exp: number;
|
240
|
+
_sd_alg: "sha-256";
|
280
241
|
cnf: {
|
281
242
|
jwk: {
|
282
243
|
kty: "RSA" | "EC";
|
@@ -303,34 +264,31 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
303
264
|
x5u?: string | undefined;
|
304
265
|
};
|
305
266
|
};
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
};
|
316
|
-
};
|
317
|
-
_sd_alg: "sha-256";
|
318
|
-
}>;
|
267
|
+
vct: string;
|
268
|
+
iat?: number | undefined;
|
269
|
+
}>, z.ZodObject<{
|
270
|
+
_sd: z.ZodArray<z.ZodString, "many">;
|
271
|
+
}, "strip", z.ZodTypeAny, {
|
272
|
+
_sd: string[];
|
273
|
+
}, {
|
274
|
+
_sd: string[];
|
275
|
+
}>>;
|
319
276
|
}, "strip", z.ZodTypeAny, {
|
320
277
|
header: {
|
321
278
|
alg: string;
|
322
279
|
typ: "vc+sd-jwt";
|
323
|
-
trust_chain: string[];
|
324
280
|
kid?: string | undefined;
|
325
281
|
};
|
326
282
|
payload: {
|
327
|
-
type: string;
|
328
|
-
status: string;
|
329
283
|
iss: string;
|
284
|
+
status: {
|
285
|
+
status_attestation: {
|
286
|
+
credential_hash_alg: "sha-256";
|
287
|
+
};
|
288
|
+
};
|
330
289
|
sub: string;
|
331
|
-
jti: string;
|
332
|
-
iat: number;
|
333
290
|
exp: number;
|
291
|
+
_sd_alg: "sha-256";
|
334
292
|
cnf: {
|
335
293
|
jwk: {
|
336
294
|
kty: "RSA" | "EC";
|
@@ -357,34 +315,27 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
357
315
|
x5u?: string | undefined;
|
358
316
|
};
|
359
317
|
};
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
} & {
|
365
|
-
_sd: string[];
|
366
|
-
};
|
367
|
-
claims: {
|
368
|
-
_sd: string[];
|
369
|
-
};
|
370
|
-
};
|
371
|
-
_sd_alg: "sha-256";
|
318
|
+
vct: string;
|
319
|
+
iat?: number | undefined;
|
320
|
+
} & {
|
321
|
+
_sd: string[];
|
372
322
|
};
|
373
323
|
}, {
|
374
324
|
header: {
|
375
325
|
alg: string;
|
376
326
|
typ: "vc+sd-jwt";
|
377
|
-
trust_chain: string[];
|
378
327
|
kid?: string | undefined;
|
379
328
|
};
|
380
329
|
payload: {
|
381
|
-
type: string;
|
382
|
-
status: string;
|
383
330
|
iss: string;
|
331
|
+
status: {
|
332
|
+
status_attestation: {
|
333
|
+
credential_hash_alg: "sha-256";
|
334
|
+
};
|
335
|
+
};
|
384
336
|
sub: string;
|
385
|
-
jti: string;
|
386
|
-
iat: number;
|
387
337
|
exp: number;
|
338
|
+
_sd_alg: "sha-256";
|
388
339
|
cnf: {
|
389
340
|
jwk: {
|
390
341
|
kty: "RSA" | "EC";
|
@@ -411,18 +362,10 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
411
362
|
x5u?: string | undefined;
|
412
363
|
};
|
413
364
|
};
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
} & {
|
419
|
-
_sd: string[];
|
420
|
-
};
|
421
|
-
claims: {
|
422
|
-
_sd: string[];
|
423
|
-
};
|
424
|
-
};
|
425
|
-
_sd_alg: "sha-256";
|
365
|
+
vct: string;
|
366
|
+
iat?: number | undefined;
|
367
|
+
} & {
|
368
|
+
_sd: string[];
|
426
369
|
};
|
427
370
|
}>;
|
428
371
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ,aAAuC,CAAC;AAC7D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;EAAyC,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,eAAO,MAAM,UAAU,4DAIrB,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAChD,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ,aAAuC,CAAC;AAC7D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;EAAyC,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,eAAO,MAAM,UAAU,4DAIrB,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAChD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBnB,CAAC"}
|