@pagopa/io-react-native-wallet 0.3.1 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +57 -24
- package/lib/commonjs/index.js +39 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/rp/__test__/index.test.js +8 -1
- package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
- package/lib/commonjs/rp/index.js +4 -13
- package/lib/commonjs/rp/index.js.map +1 -1
- package/lib/commonjs/rp/types.js +12 -32
- package/lib/commonjs/rp/types.js.map +1 -1
- package/lib/commonjs/trust/chain.js +94 -0
- package/lib/commonjs/trust/chain.js.map +1 -0
- package/lib/commonjs/trust/index.js +44 -0
- package/lib/commonjs/trust/index.js.map +1 -0
- package/lib/commonjs/trust/types.js +68 -0
- package/lib/commonjs/trust/types.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/issuing.js +4 -4
- package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/types.js +6 -9
- package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
- package/lib/module/index.js +4 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/rp/__test__/index.test.js +8 -1
- package/lib/module/rp/__test__/index.test.js.map +1 -1
- package/lib/module/rp/index.js +4 -13
- package/lib/module/rp/index.js.map +1 -1
- package/lib/module/rp/types.js +12 -32
- package/lib/module/rp/types.js.map +1 -1
- package/lib/module/trust/chain.js +86 -0
- package/lib/module/trust/chain.js.map +1 -0
- package/lib/module/trust/index.js +34 -0
- package/lib/module/trust/index.js.map +1 -0
- package/lib/module/trust/types.js +56 -0
- package/lib/module/trust/types.js.map +1 -0
- package/lib/module/wallet-instance-attestation/issuing.js +4 -4
- package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/module/wallet-instance-attestation/types.js +6 -9
- package/lib/module/wallet-instance-attestation/types.js.map +1 -1
- package/lib/typescript/index.d.ts +4 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/rp/index.d.ts.map +1 -1
- package/lib/typescript/rp/types.d.ts +463 -180
- package/lib/typescript/rp/types.d.ts.map +1 -1
- package/lib/typescript/trust/chain.d.ts +17 -0
- package/lib/typescript/trust/chain.d.ts.map +1 -0
- package/lib/typescript/trust/index.d.ts +16 -0
- package/lib/typescript/trust/index.d.ts.map +1 -0
- package/lib/typescript/trust/types.d.ts +1225 -0
- package/lib/typescript/trust/types.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/types.d.ts +30 -50
- package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +13 -0
- package/src/rp/__test__/index.test.ts +8 -1
- package/src/rp/index.ts +4 -19
- package/src/rp/types.ts +19 -34
- package/src/trust/chain.ts +109 -0
- package/src/trust/index.ts +43 -0
- package/src/trust/types.ts +64 -0
- package/src/wallet-instance-attestation/issuing.ts +4 -4
- package/src/wallet-instance-attestation/types.ts +6 -9
@@ -14,7 +14,6 @@ const Jwt = z.object({
|
|
14
14
|
}),
|
15
15
|
payload: z.object({
|
16
16
|
iss: z.string(),
|
17
|
-
sub: z.string(),
|
18
17
|
iat: UnixTime,
|
19
18
|
exp: UnixTime,
|
20
19
|
cnf: z.object({
|
@@ -34,14 +33,15 @@ export const WalletInstanceAttestationRequestJwt = z.object({
|
|
34
33
|
header: z.intersection(
|
35
34
|
Jwt.shape.header,
|
36
35
|
z.object({
|
37
|
-
typ: z.literal("
|
36
|
+
typ: z.literal("wiar+jwt"),
|
38
37
|
})
|
39
38
|
),
|
40
39
|
payload: z.intersection(
|
41
40
|
Jwt.shape.payload,
|
42
41
|
z.object({
|
42
|
+
aud: z.string(),
|
43
43
|
jti: z.string(),
|
44
|
-
|
44
|
+
nonce: z.string(),
|
45
45
|
})
|
46
46
|
),
|
47
47
|
});
|
@@ -53,17 +53,14 @@ export const WalletInstanceAttestationJwt = z.object({
|
|
53
53
|
header: z.intersection(
|
54
54
|
Jwt.shape.header,
|
55
55
|
z.object({
|
56
|
-
typ: z.literal("
|
56
|
+
typ: z.literal("wallet-attestation+jwt"),
|
57
57
|
})
|
58
58
|
),
|
59
59
|
payload: z.intersection(
|
60
60
|
Jwt.shape.payload,
|
61
61
|
z.object({
|
62
|
-
|
63
|
-
|
64
|
-
tos_uri: z.string().url(),
|
65
|
-
logo_uri: z.string().url(),
|
66
|
-
asc: z.string(),
|
62
|
+
sub: z.string(),
|
63
|
+
attested_security_context: z.string(),
|
67
64
|
authorization_endpoint: z.string(),
|
68
65
|
response_types_supported: z.array(z.string()),
|
69
66
|
vp_formats_supported: z.object({
|