@pagopa/io-react-native-wallet 2.0.0-next.0 → 2.0.0-next.2
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/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js +2 -2
- package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js.map +1 -1
- package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js +2 -2
- package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js.map +1 -1
- package/lib/commonjs/credential/presentation/05-verify-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/08-send-authorization-response.js.map +1 -1
- package/lib/commonjs/trust/README.md +147 -0
- package/lib/commonjs/trust/build-chain.js +252 -0
- package/lib/commonjs/trust/build-chain.js.map +1 -0
- package/lib/commonjs/trust/errors.js +24 -1
- package/lib/commonjs/trust/errors.js.map +1 -1
- package/lib/commonjs/trust/index.js +11 -276
- package/lib/commonjs/trust/index.js.map +1 -1
- package/lib/commonjs/trust/utils.js +30 -1
- package/lib/commonjs/trust/utils.js.map +1 -1
- package/lib/commonjs/trust/{chain.js → verify-chain.js} +87 -15
- package/lib/commonjs/trust/verify-chain.js.map +1 -0
- package/lib/commonjs/utils/errors.js.map +1 -1
- package/lib/module/credential/issuance/02-evaluate-issuer-trust.js +1 -1
- package/lib/module/credential/issuance/02-evaluate-issuer-trust.js.map +1 -1
- package/lib/module/credential/presentation/02-evaluate-rp-trust.js +1 -1
- package/lib/module/credential/presentation/02-evaluate-rp-trust.js.map +1 -1
- package/lib/module/credential/presentation/05-verify-request-object.js.map +1 -1
- package/lib/module/credential/presentation/08-send-authorization-response.js +1 -1
- package/lib/module/credential/presentation/08-send-authorization-response.js.map +1 -1
- package/lib/module/trust/README.md +147 -0
- package/lib/module/trust/build-chain.js +235 -0
- package/lib/module/trust/build-chain.js.map +1 -0
- package/lib/module/trust/errors.js +23 -2
- package/lib/module/trust/errors.js.map +1 -1
- package/lib/module/trust/index.js +5 -262
- package/lib/module/trust/index.js.map +1 -1
- package/lib/module/trust/utils.js +27 -0
- package/lib/module/trust/utils.js.map +1 -1
- package/lib/module/trust/{chain.js → verify-chain.js} +85 -14
- package/lib/module/trust/verify-chain.js.map +1 -0
- package/lib/module/utils/errors.js +1 -1
- package/lib/module/utils/errors.js.map +1 -1
- package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/02-evaluate-rp-trust.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/05-verify-request-object.d.ts +1 -1
- package/lib/typescript/credential/presentation/05-verify-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts +2 -2
- package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/credential/status/types.d.ts +6 -6
- package/lib/typescript/sd-jwt/index.d.ts +12 -12
- package/lib/typescript/sd-jwt/types.d.ts +6 -6
- package/lib/typescript/trust/build-chain.d.ts +1284 -0
- package/lib/typescript/trust/build-chain.d.ts.map +1 -0
- package/lib/typescript/trust/errors.d.ts +22 -0
- package/lib/typescript/trust/errors.d.ts.map +1 -1
- package/lib/typescript/trust/index.d.ts +5 -1299
- package/lib/typescript/trust/index.d.ts.map +1 -1
- package/lib/typescript/trust/types.d.ts +54 -54
- package/lib/typescript/trust/utils.d.ts +10 -0
- package/lib/typescript/trust/utils.d.ts.map +1 -1
- package/lib/typescript/trust/verify-chain.d.ts +39 -0
- package/lib/typescript/trust/verify-chain.d.ts.map +1 -0
- package/lib/typescript/utils/errors.d.ts +2 -2
- package/lib/typescript/utils/errors.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/types.d.ts +21 -21
- package/package.json +2 -2
- package/src/credential/issuance/02-evaluate-issuer-trust.ts +1 -1
- package/src/credential/presentation/02-evaluate-rp-trust.ts +1 -1
- package/src/credential/presentation/05-verify-request-object.ts +1 -1
- package/src/credential/presentation/08-send-authorization-response.ts +4 -4
- package/src/trust/README.md +147 -0
- package/src/trust/build-chain.ts +395 -0
- package/src/trust/errors.ts +32 -1
- package/src/trust/index.ts +5 -435
- package/src/trust/utils.ts +35 -0
- package/src/trust/{chain.ts → verify-chain.ts} +132 -16
- package/src/utils/errors.ts +4 -4
- package/lib/commonjs/trust/chain.js.map +0 -1
- package/lib/module/trust/chain.js.map +0 -1
- package/lib/typescript/trust/chain.d.ts +0 -21
- package/lib/typescript/trust/chain.d.ts.map +0 -1
@@ -18,6 +18,11 @@ import { type Presentation } from "../credential/presentation/types";
|
|
18
18
|
*
|
19
19
|
*/
|
20
20
|
export declare const decode: <S extends z.ZodType<{
|
21
|
+
header: {
|
22
|
+
alg: string;
|
23
|
+
typ: "vc+sd-jwt";
|
24
|
+
kid?: string | undefined;
|
25
|
+
};
|
21
26
|
payload: {
|
22
27
|
iss: string;
|
23
28
|
status: {
|
@@ -59,12 +64,12 @@ export declare const decode: <S extends z.ZodType<{
|
|
59
64
|
} & {
|
60
65
|
_sd: string[];
|
61
66
|
};
|
67
|
+
}, z.ZodTypeDef, {
|
62
68
|
header: {
|
63
69
|
alg: string;
|
64
70
|
typ: "vc+sd-jwt";
|
65
71
|
kid?: string | undefined;
|
66
72
|
};
|
67
|
-
}, z.ZodTypeDef, {
|
68
73
|
payload: {
|
69
74
|
iss: string;
|
70
75
|
status: {
|
@@ -106,11 +111,6 @@ export declare const decode: <S extends z.ZodType<{
|
|
106
111
|
} & {
|
107
112
|
_sd: string[];
|
108
113
|
};
|
109
|
-
header: {
|
110
|
-
alg: string;
|
111
|
-
typ: "vc+sd-jwt";
|
112
|
-
kid?: string | undefined;
|
113
|
-
};
|
114
114
|
}>>(token: string, customSchema?: S | undefined) => {
|
115
115
|
sdJwt: z.TypeOf<S>;
|
116
116
|
disclosures: DisclosureWithEncoded[];
|
@@ -152,6 +152,11 @@ export declare const disclose: (token: string, claims: string[]) => Promise<{
|
|
152
152
|
*
|
153
153
|
*/
|
154
154
|
export declare const verify: <S extends z.ZodType<{
|
155
|
+
header: {
|
156
|
+
alg: string;
|
157
|
+
typ: "vc+sd-jwt";
|
158
|
+
kid?: string | undefined;
|
159
|
+
};
|
155
160
|
payload: {
|
156
161
|
iss: string;
|
157
162
|
status: {
|
@@ -193,12 +198,12 @@ export declare const verify: <S extends z.ZodType<{
|
|
193
198
|
} & {
|
194
199
|
_sd: string[];
|
195
200
|
};
|
201
|
+
}, z.ZodTypeDef, {
|
196
202
|
header: {
|
197
203
|
alg: string;
|
198
204
|
typ: "vc+sd-jwt";
|
199
205
|
kid?: string | undefined;
|
200
206
|
};
|
201
|
-
}, z.ZodTypeDef, {
|
202
207
|
payload: {
|
203
208
|
iss: string;
|
204
209
|
status: {
|
@@ -240,11 +245,6 @@ export declare const verify: <S extends z.ZodType<{
|
|
240
245
|
} & {
|
241
246
|
_sd: string[];
|
242
247
|
};
|
243
|
-
header: {
|
244
|
-
alg: string;
|
245
|
-
typ: "vc+sd-jwt";
|
246
|
-
kid?: string | undefined;
|
247
|
-
};
|
248
248
|
}>>(token: string, publicKey: JWK | JWK[], customSchema?: S | undefined) => Promise<{
|
249
249
|
sdJwt: z.TypeOf<S>;
|
250
250
|
disclosures: Disclosure[];
|
@@ -274,6 +274,11 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
274
274
|
_sd: string[];
|
275
275
|
}>>;
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
277
|
+
header: {
|
278
|
+
alg: string;
|
279
|
+
typ: "vc+sd-jwt";
|
280
|
+
kid?: string | undefined;
|
281
|
+
};
|
277
282
|
payload: {
|
278
283
|
iss: string;
|
279
284
|
status: {
|
@@ -315,12 +320,12 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
315
320
|
} & {
|
316
321
|
_sd: string[];
|
317
322
|
};
|
323
|
+
}, {
|
318
324
|
header: {
|
319
325
|
alg: string;
|
320
326
|
typ: "vc+sd-jwt";
|
321
327
|
kid?: string | undefined;
|
322
328
|
};
|
323
|
-
}, {
|
324
329
|
payload: {
|
325
330
|
iss: string;
|
326
331
|
status: {
|
@@ -362,10 +367,5 @@ export declare const SdJwt4VC: z.ZodObject<{
|
|
362
367
|
} & {
|
363
368
|
_sd: string[];
|
364
369
|
};
|
365
|
-
header: {
|
366
|
-
alg: string;
|
367
|
-
typ: "vc+sd-jwt";
|
368
|
-
kid?: string | undefined;
|
369
|
-
};
|
370
370
|
}>;
|
371
371
|
//# sourceMappingURL=types.d.ts.map
|