@pagopa/io-react-native-wallet 0.27.1 → 0.28.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/lib/commonjs/client/generated/wallet-provider.js +27 -19
- package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
- package/lib/commonjs/trust/chain.js +35 -50
- package/lib/commonjs/trust/chain.js.map +1 -1
- package/lib/commonjs/trust/index.js +139 -16
- package/lib/commonjs/trust/index.js.map +1 -1
- package/lib/commonjs/trust/types.js +10 -6
- package/lib/commonjs/trust/types.js.map +1 -1
- package/lib/commonjs/trust/utils.js +36 -0
- package/lib/commonjs/trust/utils.js.map +1 -0
- package/lib/commonjs/wallet-instance/index.js +10 -0
- package/lib/commonjs/wallet-instance/index.js.map +1 -1
- package/lib/module/client/generated/wallet-provider.js +22 -15
- package/lib/module/client/generated/wallet-provider.js.map +1 -1
- package/lib/module/trust/chain.js +32 -46
- package/lib/module/trust/chain.js.map +1 -1
- package/lib/module/trust/index.js +139 -18
- package/lib/module/trust/index.js.map +1 -1
- package/lib/module/trust/types.js +8 -5
- package/lib/module/trust/types.js.map +1 -1
- package/lib/module/trust/utils.js +28 -0
- package/lib/module/trust/utils.js.map +1 -0
- package/lib/module/wallet-instance/index.js +9 -0
- package/lib/module/wallet-instance/index.js.map +1 -1
- package/lib/typescript/client/generated/wallet-provider.d.ts +91 -54
- package/lib/typescript/client/generated/wallet-provider.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/chain.d.ts +4 -9
- package/lib/typescript/trust/chain.d.ts.map +1 -1
- package/lib/typescript/trust/index.d.ts +101 -53
- package/lib/typescript/trust/index.d.ts.map +1 -1
- package/lib/typescript/trust/types.d.ts +761 -64
- package/lib/typescript/trust/types.d.ts.map +1 -1
- package/lib/typescript/trust/utils.d.ts +12 -0
- package/lib/typescript/trust/utils.d.ts.map +1 -0
- package/lib/typescript/utils/errors.d.ts.map +1 -1
- package/lib/typescript/utils/misc.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/index.d.ts +8 -0
- package/lib/typescript/wallet-instance/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/types.d.ts +20 -20
- package/package.json +10 -11
- package/src/client/generated/wallet-provider.ts +28 -19
- package/src/credential/presentation/types.ts +1 -1
- package/src/trust/chain.ts +48 -68
- package/src/trust/index.ts +185 -20
- package/src/trust/types.ts +9 -5
- package/src/trust/utils.ts +32 -0
- package/src/utils/errors.ts +2 -2
- package/src/utils/misc.ts +2 -2
- package/src/wallet-instance/index.ts +13 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/trust/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,SAAS;;;;;;;;;EAAuD,CAAC;AAC9E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AA4DlD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc1B,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0D7E,CAAC;AAEF,eAAO,MAAM,sBAAsB,iCAAsB,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { JWK } from "../utils/jwk";
|
2
|
+
import type { JWTDecodeResult } from "@pagopa/io-react-native-jwt/lib/typescript/types";
|
3
|
+
export type ParsedToken = {
|
4
|
+
header: JWTDecodeResult["protectedHeader"];
|
5
|
+
payload: JWTDecodeResult["payload"];
|
6
|
+
};
|
7
|
+
export declare const verify: (token: string, kid: string, jwks: JWK[]) => Promise<ParsedToken>;
|
8
|
+
export declare const decode: (token: string) => {
|
9
|
+
header: import("@pagopa/io-react-native-jwt/lib/typescript/types").JWSHeaderParameters;
|
10
|
+
payload: import("@pagopa/io-react-native-jwt/lib/typescript/types").JWTPayload;
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=utils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/trust/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAExF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAC3C,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAIF,eAAO,MAAM,MAAM,UACV,MAAM,OACR,MAAM,QACL,GAAG,EAAE,KACV,QAAQ,WAAW,CAOrB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,MAAM;;;CAGnC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/utils/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACrC,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,CAAC;AAGtE,KAAK,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,UAClB,OAAO,MAAM,EAAE,kBAAkB,GAAG,MAAM,GAAG,MAAM,MAAM,CA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,EAAE,SAAS,CAAC,CAAC,CAAC;IAKjD,SAAS,CAAC,aAAa,EAAE,yBAAyB;CAUnD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,WAClB,MAAM,gBAAgB,gCAAgC,WACnD,QAAQ,KAAG,QAAQ,QAAQ,CAUtC,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,oBAAoB,gDACrB,QAAQ,iCAIC,CAAC;AAItB,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,GAC7D,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,GACvB,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,WAClB,MAAM,gBAAgB,gCAAgC,WACnD,QAAQ,KAAG,QAAQ,QAAQ,CAUtC,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,oBAAoB,gDACrB,QAAQ,iCAIC,CAAC;AAItB,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,GAC7D,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,GACvB,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAClC,UAAU,CAAC,EAAE,CAAC,GACd,KAAK,CAAC;AAEV;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,SAAU,MAAM,WAGjD,CAAC;AAEb;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,eAChC,MAAM,KACjB,QAAQ,MAAM,CAMhB,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,MAAM,0CAM5C,CAAC"}
|
@@ -24,4 +24,12 @@ export declare function getWalletInstanceStatus(context: {
|
|
24
24
|
walletProviderBaseUrl: string;
|
25
25
|
appFetch?: GlobalFetch["fetch"];
|
26
26
|
}): Promise<WalletInstanceData>;
|
27
|
+
/**
|
28
|
+
* Get the status of the current Wallet Instance.
|
29
|
+
* @returns Details on the status of the current Wallet Instance
|
30
|
+
*/
|
31
|
+
export declare function getCurrentWalletInstanceStatus(context: {
|
32
|
+
walletProviderBaseUrl: string;
|
33
|
+
appFetch?: GlobalFetch["fetch"];
|
34
|
+
}): Promise<WalletInstanceData>;
|
27
35
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet-instance/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAE3C,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAClD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,mBAuBA;AAoBD;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,GAAG,OAAO,CAAC,IAAI,CAAC,CAO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 -240,15 +240,6 @@ export declare const WalletInstanceAttestationRequestJwt: z.ZodObject<{
|
|
240
240
|
jti: string;
|
241
241
|
}>>;
|
242
242
|
}, "strip", z.ZodTypeAny, {
|
243
|
-
header: {
|
244
|
-
alg: string;
|
245
|
-
kid: string;
|
246
|
-
typ: string;
|
247
|
-
x5c?: string[] | undefined;
|
248
|
-
trust_chain?: string[] | undefined;
|
249
|
-
} & {
|
250
|
-
typ: "war+jwt";
|
251
|
-
};
|
252
243
|
payload: {
|
253
244
|
iss: string;
|
254
245
|
iat: number;
|
@@ -286,7 +277,6 @@ export declare const WalletInstanceAttestationRequestJwt: z.ZodObject<{
|
|
286
277
|
aud: string;
|
287
278
|
jti: string;
|
288
279
|
};
|
289
|
-
}, {
|
290
280
|
header: {
|
291
281
|
alg: string;
|
292
282
|
kid: string;
|
@@ -296,6 +286,7 @@ export declare const WalletInstanceAttestationRequestJwt: z.ZodObject<{
|
|
296
286
|
} & {
|
297
287
|
typ: "war+jwt";
|
298
288
|
};
|
289
|
+
}, {
|
299
290
|
payload: {
|
300
291
|
iss: string;
|
301
292
|
iat: number;
|
@@ -333,6 +324,15 @@ export declare const WalletInstanceAttestationRequestJwt: z.ZodObject<{
|
|
333
324
|
aud: string;
|
334
325
|
jti: string;
|
335
326
|
};
|
327
|
+
header: {
|
328
|
+
alg: string;
|
329
|
+
kid: string;
|
330
|
+
typ: string;
|
331
|
+
x5c?: string[] | undefined;
|
332
|
+
trust_chain?: string[] | undefined;
|
333
|
+
} & {
|
334
|
+
typ: "war+jwt";
|
335
|
+
};
|
336
336
|
}>;
|
337
337
|
export type WalletInstanceAttestationJwt = z.infer<typeof WalletInstanceAttestationJwt>;
|
338
338
|
export declare const WalletInstanceAttestationJwt: z.ZodObject<{
|
@@ -630,15 +630,6 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
|
|
630
630
|
presentation_definition_uri_supported: boolean;
|
631
631
|
}>>;
|
632
632
|
}, "strip", z.ZodTypeAny, {
|
633
|
-
header: {
|
634
|
-
alg: string;
|
635
|
-
kid: string;
|
636
|
-
typ: string;
|
637
|
-
x5c?: string[] | undefined;
|
638
|
-
trust_chain?: string[] | undefined;
|
639
|
-
} & {
|
640
|
-
typ: "wallet-attestation+jwt";
|
641
|
-
};
|
642
633
|
payload: {
|
643
634
|
iss: string;
|
644
635
|
iat: number;
|
@@ -687,7 +678,6 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
|
|
687
678
|
};
|
688
679
|
presentation_definition_uri_supported: boolean;
|
689
680
|
};
|
690
|
-
}, {
|
691
681
|
header: {
|
692
682
|
alg: string;
|
693
683
|
kid: string;
|
@@ -697,6 +687,7 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
|
|
697
687
|
} & {
|
698
688
|
typ: "wallet-attestation+jwt";
|
699
689
|
};
|
690
|
+
}, {
|
700
691
|
payload: {
|
701
692
|
iss: string;
|
702
693
|
iat: number;
|
@@ -745,6 +736,15 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
|
|
745
736
|
};
|
746
737
|
presentation_definition_uri_supported: boolean;
|
747
738
|
};
|
739
|
+
header: {
|
740
|
+
alg: string;
|
741
|
+
kid: string;
|
742
|
+
typ: string;
|
743
|
+
x5c?: string[] | undefined;
|
744
|
+
trust_chain?: string[] | undefined;
|
745
|
+
} & {
|
746
|
+
typ: "wallet-attestation+jwt";
|
747
|
+
};
|
748
748
|
}>;
|
749
749
|
export type TokenResponse = z.infer<typeof TokenResponse>;
|
750
750
|
export declare const TokenResponse: z.ZodObject<{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pagopa/io-react-native-wallet",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.28.0",
|
4
4
|
"description": "Provide data structures, helpers and API for IO Wallet",
|
5
5
|
"main": "lib/commonjs/index",
|
6
6
|
"module": "lib/module/index",
|
@@ -53,28 +53,27 @@
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
|
+
"@pagopa/eslint-config": "^3.0.0",
|
56
57
|
"@pagopa/io-react-native-crypto": "^0.2.3",
|
57
58
|
"@pagopa/io-react-native-jwt": "^1.3.0",
|
58
|
-
"@react-native/eslint-config": "^0.
|
59
|
+
"@react-native/eslint-config": "^0.72.2",
|
59
60
|
"@rushstack/eslint-patch": "^1.3.2",
|
60
61
|
"@types/jest": "^28.1.2",
|
61
|
-
"@types/react": "^18.
|
62
|
+
"@types/react": "^18.0.24",
|
62
63
|
"@types/react-native": "0.70.0",
|
63
|
-
"@types/url-parse": "^1.4.11",
|
64
64
|
"del-cli": "^5.0.0",
|
65
65
|
"eslint": "^8.4.1",
|
66
|
-
"eslint-plugin-prettier": "^5.2.3",
|
67
66
|
"jest": "^28.1.1",
|
68
67
|
"pod-install": "^0.1.0",
|
69
|
-
"prettier": "^
|
70
|
-
"react": "18.
|
71
|
-
"react-native": "0.
|
68
|
+
"prettier": "^2.0.5",
|
69
|
+
"react": "18.2.0",
|
70
|
+
"react-native": "0.72.14",
|
72
71
|
"react-native-builder-bob": "^0.20.0",
|
73
72
|
"typed-openapi": "^0.4.1",
|
74
|
-
"typescript": "5.0.
|
73
|
+
"typescript": "^5.0.2"
|
75
74
|
},
|
76
75
|
"resolutions": {
|
77
|
-
"@types/react": "^18.
|
76
|
+
"@types/react": "^18.0.24"
|
78
77
|
},
|
79
78
|
"peerDependencies": {
|
80
79
|
"@pagopa/io-react-native-crypto": "*",
|
@@ -121,4 +120,4 @@
|
|
121
120
|
"uuid": "^11.0.3",
|
122
121
|
"zod": "^3.21.4"
|
123
122
|
}
|
124
|
-
}
|
123
|
+
}
|
@@ -23,15 +23,6 @@ export const CreateWalletAttestationBody = z.object({
|
|
23
23
|
assertion: z.string(),
|
24
24
|
});
|
25
25
|
|
26
|
-
export type ProblemDetail = z.infer<typeof ProblemDetail>;
|
27
|
-
export const ProblemDetail = z.object({
|
28
|
-
type: z.string().optional(),
|
29
|
-
title: z.string().optional(),
|
30
|
-
status: z.number().optional(),
|
31
|
-
detail: z.string().optional(),
|
32
|
-
instance: z.string().optional(),
|
33
|
-
});
|
34
|
-
|
35
26
|
export type SetWalletInstanceStatusBody = z.infer<typeof SetWalletInstanceStatusBody>;
|
36
27
|
export const SetWalletInstanceStatusBody = z.object({
|
37
28
|
status: z.literal("REVOKED"),
|
@@ -51,6 +42,15 @@ export const WalletInstanceData = z.object({
|
|
51
42
|
revocation_reason: z.union([RevocationReason, z.undefined()]).optional(),
|
52
43
|
});
|
53
44
|
|
45
|
+
export type ProblemDetail = z.infer<typeof ProblemDetail>;
|
46
|
+
export const ProblemDetail = z.object({
|
47
|
+
type: z.string().optional(),
|
48
|
+
title: z.string().optional(),
|
49
|
+
status: z.number().optional(),
|
50
|
+
detail: z.string().optional(),
|
51
|
+
instance: z.string().optional(),
|
52
|
+
});
|
53
|
+
|
54
54
|
export type get_GetNonce = typeof get_GetNonce;
|
55
55
|
export const get_GetNonce = {
|
56
56
|
method: z.literal("GET"),
|
@@ -69,6 +69,24 @@ export const post_CreateWalletInstance = {
|
|
69
69
|
response: z.unknown(),
|
70
70
|
};
|
71
71
|
|
72
|
+
export type post_CreateWalletAttestation = typeof post_CreateWalletAttestation;
|
73
|
+
export const post_CreateWalletAttestation = {
|
74
|
+
method: z.literal("POST"),
|
75
|
+
path: z.literal("/token"),
|
76
|
+
parameters: z.object({
|
77
|
+
body: CreateWalletAttestationBody,
|
78
|
+
}),
|
79
|
+
response: WalletAttestationView,
|
80
|
+
};
|
81
|
+
|
82
|
+
export type get_GetCurrentWalletInstanceStatus = typeof get_GetCurrentWalletInstanceStatus;
|
83
|
+
export const get_GetCurrentWalletInstanceStatus = {
|
84
|
+
method: z.literal("GET"),
|
85
|
+
path: z.literal("/wallet-instances/current/status"),
|
86
|
+
parameters: z.never(),
|
87
|
+
response: WalletInstanceData,
|
88
|
+
};
|
89
|
+
|
72
90
|
export type get_GetWalletInstanceStatus = typeof get_GetWalletInstanceStatus;
|
73
91
|
export const get_GetWalletInstanceStatus = {
|
74
92
|
method: z.literal("GET"),
|
@@ -94,20 +112,11 @@ export const put_SetWalletInstanceStatus = {
|
|
94
112
|
response: z.unknown(),
|
95
113
|
};
|
96
114
|
|
97
|
-
export type post_CreateWalletAttestation = typeof post_CreateWalletAttestation;
|
98
|
-
export const post_CreateWalletAttestation = {
|
99
|
-
method: z.literal("POST"),
|
100
|
-
path: z.literal("/token"),
|
101
|
-
parameters: z.object({
|
102
|
-
body: CreateWalletAttestationBody,
|
103
|
-
}),
|
104
|
-
response: WalletAttestationView,
|
105
|
-
};
|
106
|
-
|
107
115
|
// <EndpointByMethod>
|
108
116
|
export const EndpointByMethod = {
|
109
117
|
get: {
|
110
118
|
"/nonce": get_GetNonce,
|
119
|
+
"/wallet-instances/current/status": get_GetCurrentWalletInstanceStatus,
|
111
120
|
"/wallet-instances/{id}/status": get_GetWalletInstanceStatus,
|
112
121
|
},
|
113
122
|
post: {
|
@@ -8,7 +8,7 @@ import * as z from "zod";
|
|
8
8
|
export type Presentation = [
|
9
9
|
/* verified credential token */ string,
|
10
10
|
/* claims */ string[],
|
11
|
-
/* the context for the key associated to the credential */ CryptoContext
|
11
|
+
/* the context for the key associated to the credential */ CryptoContext
|
12
12
|
];
|
13
13
|
|
14
14
|
export type RequestObject = z.infer<typeof RequestObject>;
|
package/src/trust/chain.ts
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
decode as decodeJwt,
|
3
|
-
verify as verifyJwt,
|
4
|
-
} from "@pagopa/io-react-native-jwt";
|
5
1
|
import {
|
6
2
|
EntityConfiguration,
|
7
3
|
EntityStatement,
|
@@ -10,33 +6,8 @@ import {
|
|
10
6
|
import { JWK } from "../utils/jwk";
|
11
7
|
import { IoWalletError } from "../utils/errors";
|
12
8
|
import * as z from "zod";
|
13
|
-
import type { JWTDecodeResult } from "@pagopa/io-react-native-jwt/lib/typescript/types";
|
14
9
|
import { getSignedEntityConfiguration, getSignedEntityStatement } from ".";
|
15
|
-
|
16
|
-
type ParsedToken = {
|
17
|
-
header: JWTDecodeResult["protectedHeader"];
|
18
|
-
payload: JWTDecodeResult["payload"];
|
19
|
-
};
|
20
|
-
|
21
|
-
// Verify a token signature
|
22
|
-
// The kid is extracted from the token header
|
23
|
-
const verify = async (
|
24
|
-
token: string,
|
25
|
-
kid: string,
|
26
|
-
jwks: JWK[]
|
27
|
-
): Promise<ParsedToken> => {
|
28
|
-
const jwk = jwks.find((k) => k.kid === kid);
|
29
|
-
if (!jwk) {
|
30
|
-
throw new Error(`Invalid kid: ${kid}, token: ${token}`);
|
31
|
-
}
|
32
|
-
const { protectedHeader: header, payload } = await verifyJwt(token, jwk);
|
33
|
-
return { header, payload };
|
34
|
-
};
|
35
|
-
|
36
|
-
const decode = (token: string) => {
|
37
|
-
const { protectedHeader: header, payload } = decodeJwt(token);
|
38
|
-
return { header, payload };
|
39
|
-
};
|
10
|
+
import { decode, type ParsedToken, verify } from "./utils";
|
40
11
|
|
41
12
|
// The first element of the chain is supposed to be the Entity Configuration for the document issuer
|
42
13
|
const FirstElementShape = EntityConfiguration;
|
@@ -53,7 +24,7 @@ const LastElementShape = z.union([
|
|
53
24
|
* Validates a provided trust chain against a known trust
|
54
25
|
*
|
55
26
|
* @param trustAnchorEntity The entity configuration of the known trust anchor
|
56
|
-
* @param chain The chain of statements to be
|
27
|
+
* @param chain The chain of statements to be validated
|
57
28
|
* @returns The list of parsed token representing the chain
|
58
29
|
* @throws {IoWalletError} If the chain is not valid
|
59
30
|
*/
|
@@ -71,8 +42,8 @@ export async function validateTrustChain(
|
|
71
42
|
elementIndex === 0
|
72
43
|
? FirstElementShape
|
73
44
|
: elementIndex === chain.length - 1
|
74
|
-
|
75
|
-
|
45
|
+
? LastElementShape
|
46
|
+
: MiddleElementShape;
|
76
47
|
|
77
48
|
// select the kid from the current index
|
78
49
|
const selectKid = (currentIndex: number): string => {
|
@@ -85,7 +56,7 @@ export async function validateTrustChain(
|
|
85
56
|
};
|
86
57
|
|
87
58
|
// select keys from the next token
|
88
|
-
// if the current token is the last, keys
|
59
|
+
// if the current token is the last, keys from trust anchor will be used
|
89
60
|
const selectKeys = (currentIndex: number): JWK[] => {
|
90
61
|
if (currentIndex === chain.length - 1) {
|
91
62
|
return trustAnchorEntity.payload.jwks.keys;
|
@@ -101,7 +72,7 @@ export async function validateTrustChain(
|
|
101
72
|
};
|
102
73
|
|
103
74
|
// Iterate the chain and validate each element's signature against the public keys of its next
|
104
|
-
// If there is no next, hence it's the end of the chain and it must be verified by the Trust Anchor
|
75
|
+
// If there is no next, hence it's the end of the chain, and it must be verified by the Trust Anchor
|
105
76
|
return Promise.all(
|
106
77
|
chain
|
107
78
|
.map((token, i) => [token, selectKid(i), selectKeys(i)] as const)
|
@@ -114,42 +85,51 @@ export async function validateTrustChain(
|
|
114
85
|
*
|
115
86
|
* @param chain The original chain
|
116
87
|
* @param appFetch (optional) fetch api implementation
|
117
|
-
* @returns A list of signed token that
|
118
|
-
* @throws When an element of the chain fails to parse
|
88
|
+
* @returns A list of signed token that represent the trust chain, in the same order of the provided chain
|
89
|
+
* @throws IoWalletError When an element of the chain fails to parse
|
119
90
|
*/
|
120
|
-
export function renewTrustChain(
|
91
|
+
export async function renewTrustChain(
|
121
92
|
chain: string[],
|
122
93
|
appFetch: GlobalFetch["fetch"] = fetch
|
123
|
-
) {
|
94
|
+
): Promise<string[]> {
|
124
95
|
return Promise.all(
|
125
|
-
chain
|
126
|
-
|
127
|
-
|
128
|
-
.
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
96
|
+
chain.map(async (token, index) => {
|
97
|
+
const decoded = decode(token);
|
98
|
+
|
99
|
+
const entityStatementResult = EntityStatement.safeParse(decoded);
|
100
|
+
const entityConfigurationResult = EntityConfiguration.safeParse(decoded);
|
101
|
+
|
102
|
+
if (entityConfigurationResult.success) {
|
103
|
+
return getSignedEntityConfiguration(
|
104
|
+
entityConfigurationResult.data.payload.iss,
|
105
|
+
{ appFetch }
|
106
|
+
);
|
107
|
+
}
|
108
|
+
if (entityStatementResult.success) {
|
109
|
+
const entityStatement = entityStatementResult.data;
|
110
|
+
|
111
|
+
const parentBaseUrl = entityStatement.payload.iss;
|
112
|
+
const parentECJwt = await getSignedEntityConfiguration(parentBaseUrl, {
|
113
|
+
appFetch,
|
114
|
+
});
|
115
|
+
const parentEC = EntityConfiguration.parse(decode(parentECJwt));
|
116
|
+
|
117
|
+
const federationFetchEndpoint =
|
118
|
+
parentEC.payload.metadata.federation_entity.federation_fetch_endpoint;
|
119
|
+
if (!federationFetchEndpoint) {
|
120
|
+
throw new IoWalletError(
|
121
|
+
`Parent EC at ${parentBaseUrl} is missing federation_fetch_endpoint`
|
122
|
+
);
|
123
|
+
}
|
124
|
+
return getSignedEntityStatement(
|
125
|
+
federationFetchEndpoint,
|
126
|
+
entityStatement.payload.sub,
|
127
|
+
{ appFetch }
|
128
|
+
);
|
129
|
+
}
|
130
|
+
throw new IoWalletError(
|
131
|
+
`Cannot renew trust chain because element #${index} failed to parse.`
|
132
|
+
);
|
133
|
+
})
|
154
134
|
);
|
155
135
|
}
|