@pagopa/io-react-native-wallet 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/README.md +57 -24
  2. package/lib/commonjs/index.js +13 -0
  3. package/lib/commonjs/index.js.map +1 -1
  4. package/lib/commonjs/rp/__test__/index.test.js +8 -1
  5. package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
  6. package/lib/commonjs/rp/index.js +4 -13
  7. package/lib/commonjs/rp/index.js.map +1 -1
  8. package/lib/commonjs/rp/types.js +7 -27
  9. package/lib/commonjs/rp/types.js.map +1 -1
  10. package/lib/commonjs/trust/chain.js +94 -0
  11. package/lib/commonjs/trust/chain.js.map +1 -0
  12. package/lib/commonjs/trust/index.js +44 -0
  13. package/lib/commonjs/trust/index.js.map +1 -0
  14. package/lib/commonjs/trust/types.js +64 -0
  15. package/lib/commonjs/trust/types.js.map +1 -0
  16. package/lib/commonjs/wallet-instance-attestation/issuing.js +4 -4
  17. package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
  18. package/lib/commonjs/wallet-instance-attestation/types.js +6 -9
  19. package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
  20. package/lib/module/index.js +2 -1
  21. package/lib/module/index.js.map +1 -1
  22. package/lib/module/rp/__test__/index.test.js +8 -1
  23. package/lib/module/rp/__test__/index.test.js.map +1 -1
  24. package/lib/module/rp/index.js +4 -13
  25. package/lib/module/rp/index.js.map +1 -1
  26. package/lib/module/rp/types.js +7 -27
  27. package/lib/module/rp/types.js.map +1 -1
  28. package/lib/module/trust/chain.js +86 -0
  29. package/lib/module/trust/chain.js.map +1 -0
  30. package/lib/module/trust/index.js +34 -0
  31. package/lib/module/trust/index.js.map +1 -0
  32. package/lib/module/trust/types.js +52 -0
  33. package/lib/module/trust/types.js.map +1 -0
  34. package/lib/module/wallet-instance-attestation/issuing.js +4 -4
  35. package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
  36. package/lib/module/wallet-instance-attestation/types.js +6 -9
  37. package/lib/module/wallet-instance-attestation/types.js.map +1 -1
  38. package/lib/typescript/index.d.ts +2 -1
  39. package/lib/typescript/index.d.ts.map +1 -1
  40. package/lib/typescript/rp/index.d.ts.map +1 -1
  41. package/lib/typescript/rp/types.d.ts +232 -145
  42. package/lib/typescript/rp/types.d.ts.map +1 -1
  43. package/lib/typescript/trust/chain.d.ts +17 -0
  44. package/lib/typescript/trust/chain.d.ts.map +1 -0
  45. package/lib/typescript/trust/index.d.ts +16 -0
  46. package/lib/typescript/trust/index.d.ts.map +1 -0
  47. package/lib/typescript/trust/types.d.ts +1041 -0
  48. package/lib/typescript/trust/types.d.ts.map +1 -0
  49. package/lib/typescript/wallet-instance-attestation/types.d.ts +30 -50
  50. package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
  51. package/package.json +1 -1
  52. package/src/index.ts +3 -0
  53. package/src/rp/__test__/index.test.ts +8 -1
  54. package/src/rp/index.ts +4 -19
  55. package/src/rp/types.ts +17 -34
  56. package/src/trust/chain.ts +109 -0
  57. package/src/trust/index.ts +43 -0
  58. package/src/trust/types.ts +56 -0
  59. package/src/wallet-instance-attestation/issuing.ts +4 -4
  60. package/src/wallet-instance-attestation/types.ts +6 -9
@@ -11,7 +11,6 @@ const Jwt = z.object({
11
11
  }),
12
12
  payload: z.object({
13
13
  iss: z.string(),
14
- sub: z.string(),
15
14
  iat: UnixTime,
16
15
  exp: UnixTime,
17
16
  cnf: z.object({
@@ -25,23 +24,21 @@ const Jwt = z.object({
25
24
  });
26
25
  export const WalletInstanceAttestationRequestJwt = z.object({
27
26
  header: z.intersection(Jwt.shape.header, z.object({
28
- typ: z.literal("var+jwt")
27
+ typ: z.literal("wiar+jwt")
29
28
  })),
30
29
  payload: z.intersection(Jwt.shape.payload, z.object({
30
+ aud: z.string(),
31
31
  jti: z.string(),
32
- type: z.literal("WalletInstanceAttestationRequest")
32
+ nonce: z.string()
33
33
  }))
34
34
  });
35
35
  export const WalletInstanceAttestationJwt = z.object({
36
36
  header: z.intersection(Jwt.shape.header, z.object({
37
- typ: z.literal("va+jwt")
37
+ typ: z.literal("wallet-attestation+jwt")
38
38
  })),
39
39
  payload: z.intersection(Jwt.shape.payload, z.object({
40
- type: z.literal("WalletInstanceAttestation"),
41
- policy_uri: z.string().url(),
42
- tos_uri: z.string().url(),
43
- logo_uri: z.string().url(),
44
- asc: z.string(),
40
+ sub: z.string(),
41
+ attested_security_context: z.string(),
45
42
  authorization_endpoint: z.string(),
46
43
  response_types_supported: z.array(z.string()),
47
44
  vp_formats_supported: z.object({
@@ -1 +1 @@
1
- {"version":3,"names":["JWK","z","UnixTime","number","min","max","Jwt","object","header","alg","string","kid","typ","x5c","array","optional","trust_chain","payload","iss","sub","iat","exp","cnf","jwk","intersection","WalletInstanceAttestationRequestJwt","shape","literal","jti","type","WalletInstanceAttestationJwt","policy_uri","url","tos_uri","logo_uri","asc","authorization_endpoint","response_types_supported","vp_formats_supported","jwt_vp_json","alg_values_supported","jwt_vc_json","request_object_signing_alg_values_supported","presentation_definition_uri_supported","boolean"],"sourceRoot":"../../../src","sources":["wallet-instance-attestation/types.ts"],"mappings":"AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,OAAO,KAAKC,CAAC,MAAM,KAAK;AAExB,MAAMC,QAAQ,GAAGD,CAAC,CAACE,MAAM,CAAC,CAAC,CAACC,GAAG,CAAC,CAAC,CAAC,CAACC,GAAG,CAAC,aAAa,CAAC;AAGrD,MAAMC,GAAG,GAAGL,CAAC,CAACM,MAAM,CAAC;EACnBC,MAAM,EAAEP,CAAC,CAACM,MAAM,CAAC;IACfE,GAAG,EAAER,CAAC,CAACS,MAAM,CAAC,CAAC;IACfC,GAAG,EAAEV,CAAC,CAACS,MAAM,CAAC,CAAC;IACfE,GAAG,EAAEX,CAAC,CAACS,MAAM,CAAC,CAAC;IACfG,GAAG,EAAEZ,CAAC,CAACa,KAAK,CAACb,CAAC,CAACS,MAAM,CAAC,CAAC,CAAC,CAACK,QAAQ,CAAC,CAAC;IACnCC,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t","object","header","alg","string","kid","typ","x5c","array","optional","trust_chain","payload","iss","iat","exp","cnf","jwk","intersection","WalletInstanceAttestationRequestJwt","shape","literal","aud","jti","nonce","WalletInstanceAttestationJwt","sub","attested_security_context","authorization_endpoint","response_types_supported","vp_formats_supported","jwt_vp_json","alg_values_supported","jwt_vc_json","request_object_signing_alg_values_supported","presentation_definition_uri_supported","boolean"],"sourceRoot":"../../../src","sources":["wallet-instance-attestation/types.ts"],"mappings":"AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,OAAO,KAAKC,CAAC,MAAM,KAAK;AAExB,MAAMC,QAAQ,GAAGD,CAAC,CAACE,MAAM,CAAC,CAAC,CAACC,GAAG,CAAC,CAAC,CAAC,CAACC,GAAG,CAAC,aAAa,CAAC;AAGrD,MAAMC,GAAG,GAAGL,CAAC,CAACM,MAAM,CAAC;EACnBC,MAAM,EAAEP,CAAC,CAACM,MAAM,CAAC;IACfE,GAAG,EAAER,CAAC,CAACS,MAAM,CAAC,CAAC;IACfC,GAAG,EAAEV,CAAC,CAACS,MAAM,CAAC,CAAC;IACfE,GAAG,EAAEX,CAAC,CAACS,MAAM,CAAC,CAAC;IACfG,GAAG,EAAEZ,CAAC,CAACa,KAAK,CAACb,CAAC,CAACS,MAAM,CAAC,CAAC,CAAC,CAACK,QAAQ,CAAC,CAAC;IACnCC,WAAW,EAAEf,CAAC,CAACa,KAAK,CAACb,CAAC,CAACS,MAAM,CAAC,CAAC,CAAC,CAACK,QAAQ,CAAC;EAC5C,CAAC,CAAC;EACFE,OAAO,EAAEhB,CAAC,CAACM,MAAM,CAAC;IAChBW,GAAG,EAAEjB,CAAC,CAACS,MAAM,CAAC,CAAC;IACfS,GAAG,EAAEjB,QAAQ;IACbkB,GAAG,EAAElB,QAAQ;IACbmB,GAAG,EAAEpB,CAAC,CAACM,MAAM,CAAC;MACZe,GAAG,EAAErB,CAAC,CAACsB,YAAY,CACjBvB,GAAG;MACH;MACAC,CAAC,CAACM,MAAM,CAAC;QAA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AAC,CAAC,CAAC;IAC7CyB,oBAAoB,EAAElC,CAAC,CAACM,MAAM,CAAC;MAC7B6B,WAAW,EAAEnC,CAAC,CAACM,MAAM,CAAC;QACpB8B,oBAAoB,EAAEpC,CAAC,CAACa,KAAK,CAACb,CAAC,CAACS,MAAM,CAAC,CAAC;MAC1C,CAAC,CAAC;MACF4B,WAAW,EAAErC,CAAC,CAACM,MAAM,CAAC;QACpB8B,oBAAoB,EAAEpC,CAAC,CAACa,KAAK,CAACb,CAAC,CAACS,MAAM,CAAC,CAAC;MAC1C,CAAC;IACH,CAAC,CAAC;IACF6B,2CAA2C,EAAEtC,CAAC,CAACa,KAAK,CAACb,CAAC,CAACS,MAAM,CAAC,CAAC,CAAC;IAChE8B,qCAAqC,EAAEvC,CAAC,CAACwC,OAAO,CAAC;EACnD,CAAC,CACH;AACF,CAAC,CAAC"}
@@ -5,5 +5,6 @@ import * as Errors from "./utils/errors";
5
5
  import * as WalletInstanceAttestation from "./wallet-instance-attestation";
6
6
  import { getUnsignedDPop } from "./utils/dpop";
7
7
  import { RelyingPartySolution } from "./rp";
8
- export { PID, RP, WalletInstanceAttestation, Errors, getUnsignedDPop, RelyingPartySolution, };
8
+ import { verifyTrustChain, getEntityConfiguration } from "./trust";
9
+ export { PID, RP, WalletInstanceAttestation, Errors, getUnsignedDPop, RelyingPartySolution, verifyTrustChain, getEntityConfiguration, };
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,gCAAgC,CAAC;AAExC,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,yBAAyB,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,MAAM,CAAC;AAE5C,OAAO,EACL,GAAG,EACH,EAAE,EACF,yBAAyB,EACzB,MAAM,EACN,eAAe,EACf,oBAAoB,GACrB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,gCAAgC,CAAC;AAExC,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,yBAAyB,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,EACL,GAAG,EACH,EAAE,EACF,yBAAyB,EACzB,MAAM,EACN,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,GACvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rp/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AAMjB,qBAAa,oBAAoB;IAC/B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yBAAyB,EAAE,MAAM,CAAC;IAClC,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;gBAG7B,mBAAmB,EAAE,MAAM,EAC3B,yBAAyB,EAAE,MAAM,EACjC,QAAQ,GAAE,WAAW,CAAC,OAAO,CAAS;IAOxC;;;;;;;OAOG;IACH,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa;IAqBzD;;;;;;;;;OASG;IACG,6B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AAE,WAAW,CAAC,OAAO,CAAS;IAOxC;;;;;;;OAOG;IACH,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa;IAqBzD;;;;;;;;;OASG;IACG,6BAA6B,CACjC,4BAA4B,EAAE,GAAG,EACjC,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC;IAiBlB;;;;;;;;;;OAUG;IACG,gBAAgB,CACpB,wBAAwB,EAAE,MAAM,EAChC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,aAAa,CAAC;IA2CzB;;;;;;;;;;;;;;;;OAgBG;IACG,cAAc,CAClB,UAAU,EAAE,aAAa,EACzB,wBAAwB,EAAE,MAAM,EAChC,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,YAAY,EAAE,kDAAkD;IAC9E,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClD,CAAC;IAoCF;;;;;;;;;;;;;OAaG;IACG,yBAAyB,CAC7B,UAAU,EAAE,aAAa,EACzB,QAAQ,EAAE,MAAM,EAChB,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC;IAwClB;;;;;;OAMG;IACH,OAAO,CAAC,2BAA2B;IAgBnC;;OAEG;IACG,sBAAsB,IAAI,OAAO,CAAC,qBAAqB,CAAC;CAK/D"}
@@ -95,8 +95,11 @@ export declare const RequestObject: z.ZodObject<{
95
95
  scope: string;
96
96
  };
97
97
  }>;
98
+ /**
99
+ * EntityConfiguration plus the metadata specific for a Relying Party entity.
100
+ */
98
101
  export type RpEntityConfiguration = z.infer<typeof RpEntityConfiguration>;
99
- export declare const RpEntityConfiguration: z.ZodObject<{
102
+ export declare const RpEntityConfiguration: z.ZodIntersection<z.ZodObject<{
100
103
  header: z.ZodObject<{
101
104
  typ: z.ZodLiteral<"entity-statement+jwt">;
102
105
  alg: z.ZodString;
@@ -237,6 +240,225 @@ export declare const RpEntityConfiguration: z.ZodObject<{
237
240
  x5u?: string | undefined;
238
241
  }[];
239
242
  }>;
243
+ metadata: z.ZodObject<{
244
+ federation_entity: z.ZodObject<{
245
+ organization_name: z.ZodString;
246
+ homepage_uri: z.ZodString;
247
+ policy_uri: z.ZodString;
248
+ logo_uri: z.ZodString;
249
+ contacts: z.ZodArray<z.ZodString, "many">;
250
+ }, "strip", z.ZodTypeAny, {
251
+ organization_name: string;
252
+ homepage_uri: string;
253
+ policy_uri: string;
254
+ logo_uri: string;
255
+ contacts: string[];
256
+ }, {
257
+ organization_name: string;
258
+ homepage_uri: string;
259
+ policy_uri: string;
260
+ logo_uri: string;
261
+ contacts: string[];
262
+ }>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ federation_entity: {
265
+ organization_name: string;
266
+ homepage_uri: string;
267
+ policy_uri: string;
268
+ logo_uri: string;
269
+ contacts: string[];
270
+ };
271
+ }, {
272
+ federation_entity: {
273
+ organization_name: string;
274
+ homepage_uri: string;
275
+ policy_uri: string;
276
+ logo_uri: string;
277
+ contacts: string[];
278
+ };
279
+ }>;
280
+ authority_hints: z.ZodArray<z.ZodString, "many">;
281
+ }, "strip", z.ZodTypeAny, {
282
+ iss: string;
283
+ sub: string;
284
+ iat: number;
285
+ exp: number;
286
+ jwks: {
287
+ keys: {
288
+ kty: "RSA" | "EC";
289
+ alg?: string | undefined;
290
+ crv?: string | undefined;
291
+ d?: string | undefined;
292
+ dp?: string | undefined;
293
+ dq?: string | undefined;
294
+ e?: string | undefined;
295
+ ext?: boolean | undefined;
296
+ k?: string | undefined;
297
+ key_ops?: string[] | undefined;
298
+ kid?: string | undefined;
299
+ n?: string | undefined;
300
+ p?: string | undefined;
301
+ q?: string | undefined;
302
+ qi?: string | undefined;
303
+ use?: string | undefined;
304
+ x?: string | undefined;
305
+ y?: string | undefined;
306
+ x5c?: string[] | undefined;
307
+ x5t?: string | undefined;
308
+ "x5t#S256"?: string | undefined;
309
+ x5u?: string | undefined;
310
+ }[];
311
+ };
312
+ metadata: {
313
+ federation_entity: {
314
+ organization_name: string;
315
+ homepage_uri: string;
316
+ policy_uri: string;
317
+ logo_uri: string;
318
+ contacts: string[];
319
+ };
320
+ };
321
+ authority_hints: string[];
322
+ }, {
323
+ iss: string;
324
+ sub: string;
325
+ iat: number;
326
+ exp: number;
327
+ jwks: {
328
+ keys: {
329
+ kty: "RSA" | "EC";
330
+ alg?: string | undefined;
331
+ crv?: string | undefined;
332
+ d?: string | undefined;
333
+ dp?: string | undefined;
334
+ dq?: string | undefined;
335
+ e?: string | undefined;
336
+ ext?: boolean | undefined;
337
+ k?: string | undefined;
338
+ key_ops?: string[] | undefined;
339
+ kid?: string | undefined;
340
+ n?: string | undefined;
341
+ p?: string | undefined;
342
+ q?: string | undefined;
343
+ qi?: string | undefined;
344
+ use?: string | undefined;
345
+ x?: string | undefined;
346
+ y?: string | undefined;
347
+ x5c?: string[] | undefined;
348
+ x5t?: string | undefined;
349
+ "x5t#S256"?: string | undefined;
350
+ x5u?: string | undefined;
351
+ }[];
352
+ };
353
+ metadata: {
354
+ federation_entity: {
355
+ organization_name: string;
356
+ homepage_uri: string;
357
+ policy_uri: string;
358
+ logo_uri: string;
359
+ contacts: string[];
360
+ };
361
+ };
362
+ authority_hints: string[];
363
+ }>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ header: {
366
+ alg: string;
367
+ kid: string;
368
+ typ: "entity-statement+jwt";
369
+ };
370
+ payload: {
371
+ iss: string;
372
+ sub: string;
373
+ iat: number;
374
+ exp: number;
375
+ jwks: {
376
+ keys: {
377
+ kty: "RSA" | "EC";
378
+ alg?: string | undefined;
379
+ crv?: string | undefined;
380
+ d?: string | undefined;
381
+ dp?: string | undefined;
382
+ dq?: string | undefined;
383
+ e?: string | undefined;
384
+ ext?: boolean | undefined;
385
+ k?: string | undefined;
386
+ key_ops?: string[] | undefined;
387
+ kid?: string | undefined;
388
+ n?: string | undefined;
389
+ p?: string | undefined;
390
+ q?: string | undefined;
391
+ qi?: string | undefined;
392
+ use?: string | undefined;
393
+ x?: string | undefined;
394
+ y?: string | undefined;
395
+ x5c?: string[] | undefined;
396
+ x5t?: string | undefined;
397
+ "x5t#S256"?: string | undefined;
398
+ x5u?: string | undefined;
399
+ }[];
400
+ };
401
+ metadata: {
402
+ federation_entity: {
403
+ organization_name: string;
404
+ homepage_uri: string;
405
+ policy_uri: string;
406
+ logo_uri: string;
407
+ contacts: string[];
408
+ };
409
+ };
410
+ authority_hints: string[];
411
+ };
412
+ }, {
413
+ header: {
414
+ alg: string;
415
+ kid: string;
416
+ typ: "entity-statement+jwt";
417
+ };
418
+ payload: {
419
+ iss: string;
420
+ sub: string;
421
+ iat: number;
422
+ exp: number;
423
+ jwks: {
424
+ keys: {
425
+ kty: "RSA" | "EC";
426
+ alg?: string | undefined;
427
+ crv?: string | undefined;
428
+ d?: string | undefined;
429
+ dp?: string | undefined;
430
+ dq?: string | undefined;
431
+ e?: string | undefined;
432
+ ext?: boolean | undefined;
433
+ k?: string | undefined;
434
+ key_ops?: string[] | undefined;
435
+ kid?: string | undefined;
436
+ n?: string | undefined;
437
+ p?: string | undefined;
438
+ q?: string | undefined;
439
+ qi?: string | undefined;
440
+ use?: string | undefined;
441
+ x?: string | undefined;
442
+ y?: string | undefined;
443
+ x5c?: string[] | undefined;
444
+ x5t?: string | undefined;
445
+ "x5t#S256"?: string | undefined;
446
+ x5u?: string | undefined;
447
+ }[];
448
+ };
449
+ metadata: {
450
+ federation_entity: {
451
+ organization_name: string;
452
+ homepage_uri: string;
453
+ policy_uri: string;
454
+ logo_uri: string;
455
+ contacts: string[];
456
+ };
457
+ };
458
+ authority_hints: string[];
459
+ };
460
+ }>, z.ZodObject<{
461
+ payload: z.ZodObject<{
240
462
  metadata: z.ZodObject<{
241
463
  wallet_relying_party: z.ZodObject<{
242
464
  application_type: z.ZodString;
@@ -339,9 +561,9 @@ export declare const RpEntityConfiguration: z.ZodObject<{
339
561
  x5u?: string | undefined;
340
562
  }[];
341
563
  client_id: string;
564
+ contacts: string[];
342
565
  application_type: string;
343
566
  client_name: string;
344
- contacts: string[];
345
567
  }, {
346
568
  jwks: {
347
569
  kty: "RSA" | "EC";
@@ -368,9 +590,9 @@ export declare const RpEntityConfiguration: z.ZodObject<{
368
590
  x5u?: string | undefined;
369
591
  }[];
370
592
  client_id: string;
593
+ contacts: string[];
371
594
  application_type: string;
372
595
  client_name: string;
373
- contacts: string[];
374
596
  }>;
375
597
  }, "strip", z.ZodTypeAny, {
376
598
  wallet_relying_party: {
@@ -399,9 +621,9 @@ export declare const RpEntityConfiguration: z.ZodObject<{
399
621
  x5u?: string | undefined;
400
622
  }[];
401
623
  client_id: string;
624
+ contacts: string[];
402
625
  application_type: string;
403
626
  client_name: string;
404
- contacts: string[];
405
627
  };
406
628
  }, {
407
629
  wallet_relying_party: {
@@ -430,43 +652,12 @@ export declare const RpEntityConfiguration: z.ZodObject<{
430
652
  x5u?: string | undefined;
431
653
  }[];
432
654
  client_id: string;
655
+ contacts: string[];
433
656
  application_type: string;
434
657
  client_name: string;
435
- contacts: string[];
436
658
  };
437
659
  }>;
438
- authority_hints: z.ZodArray<z.ZodString, "many">;
439
660
  }, "strip", z.ZodTypeAny, {
440
- iss: string;
441
- sub: string;
442
- iat: number;
443
- exp: number;
444
- jwks: {
445
- keys: {
446
- kty: "RSA" | "EC";
447
- alg?: string | undefined;
448
- crv?: string | undefined;
449
- d?: string | undefined;
450
- dp?: string | undefined;
451
- dq?: string | undefined;
452
- e?: string | undefined;
453
- ext?: boolean | undefined;
454
- k?: string | undefined;
455
- key_ops?: string[] | undefined;
456
- kid?: string | undefined;
457
- n?: string | undefined;
458
- p?: string | undefined;
459
- q?: string | undefined;
460
- qi?: string | undefined;
461
- use?: string | undefined;
462
- x?: string | undefined;
463
- y?: string | undefined;
464
- x5c?: string[] | undefined;
465
- x5t?: string | undefined;
466
- "x5t#S256"?: string | undefined;
467
- x5u?: string | undefined;
468
- }[];
469
- };
470
661
  metadata: {
471
662
  wallet_relying_party: {
472
663
  jwks: {
@@ -494,43 +685,12 @@ export declare const RpEntityConfiguration: z.ZodObject<{
494
685
  x5u?: string | undefined;
495
686
  }[];
496
687
  client_id: string;
688
+ contacts: string[];
497
689
  application_type: string;
498
690
  client_name: string;
499
- contacts: string[];
500
691
  };
501
692
  };
502
- authority_hints: string[];
503
693
  }, {
504
- iss: string;
505
- sub: string;
506
- iat: number;
507
- exp: number;
508
- jwks: {
509
- keys: {
510
- kty: "RSA" | "EC";
511
- alg?: string | undefined;
512
- crv?: string | undefined;
513
- d?: string | undefined;
514
- dp?: string | undefined;
515
- dq?: string | undefined;
516
- e?: string | undefined;
517
- ext?: boolean | undefined;
518
- k?: string | undefined;
519
- key_ops?: string[] | undefined;
520
- kid?: string | undefined;
521
- n?: string | undefined;
522
- p?: string | undefined;
523
- q?: string | undefined;
524
- qi?: string | undefined;
525
- use?: string | undefined;
526
- x?: string | undefined;
527
- y?: string | undefined;
528
- x5c?: string[] | undefined;
529
- x5t?: string | undefined;
530
- "x5t#S256"?: string | undefined;
531
- x5u?: string | undefined;
532
- }[];
533
- };
534
694
  metadata: {
535
695
  wallet_relying_party: {
536
696
  jwks: {
@@ -558,50 +718,14 @@ export declare const RpEntityConfiguration: z.ZodObject<{
558
718
  x5u?: string | undefined;
559
719
  }[];
560
720
  client_id: string;
721
+ contacts: string[];
561
722
  application_type: string;
562
723
  client_name: string;
563
- contacts: string[];
564
724
  };
565
725
  };
566
- authority_hints: string[];
567
726
  }>;
568
727
  }, "strip", z.ZodTypeAny, {
569
- header: {
570
- alg: string;
571
- kid: string;
572
- typ: "entity-statement+jwt";
573
- };
574
728
  payload: {
575
- iss: string;
576
- sub: string;
577
- iat: number;
578
- exp: number;
579
- jwks: {
580
- keys: {
581
- kty: "RSA" | "EC";
582
- alg?: string | undefined;
583
- crv?: string | undefined;
584
- d?: string | undefined;
585
- dp?: string | undefined;
586
- dq?: string | undefined;
587
- e?: string | undefined;
588
- ext?: boolean | undefined;
589
- k?: string | undefined;
590
- key_ops?: string[] | undefined;
591
- kid?: string | undefined;
592
- n?: string | undefined;
593
- p?: string | undefined;
594
- q?: string | undefined;
595
- qi?: string | undefined;
596
- use?: string | undefined;
597
- x?: string | undefined;
598
- y?: string | undefined;
599
- x5c?: string[] | undefined;
600
- x5t?: string | undefined;
601
- "x5t#S256"?: string | undefined;
602
- x5u?: string | undefined;
603
- }[];
604
- };
605
729
  metadata: {
606
730
  wallet_relying_party: {
607
731
  jwks: {
@@ -629,50 +753,14 @@ export declare const RpEntityConfiguration: z.ZodObject<{
629
753
  x5u?: string | undefined;
630
754
  }[];
631
755
  client_id: string;
756
+ contacts: string[];
632
757
  application_type: string;
633
758
  client_name: string;
634
- contacts: string[];
635
759
  };
636
760
  };
637
- authority_hints: string[];
638
761
  };
639
762
  }, {
640
- header: {
641
- alg: string;
642
- kid: string;
643
- typ: "entity-statement+jwt";
644
- };
645
763
  payload: {
646
- iss: string;
647
- sub: string;
648
- iat: number;
649
- exp: number;
650
- jwks: {
651
- keys: {
652
- kty: "RSA" | "EC";
653
- alg?: string | undefined;
654
- crv?: string | undefined;
655
- d?: string | undefined;
656
- dp?: string | undefined;
657
- dq?: string | undefined;
658
- e?: string | undefined;
659
- ext?: boolean | undefined;
660
- k?: string | undefined;
661
- key_ops?: string[] | undefined;
662
- kid?: string | undefined;
663
- n?: string | undefined;
664
- p?: string | undefined;
665
- q?: string | undefined;
666
- qi?: string | undefined;
667
- use?: string | undefined;
668
- x?: string | undefined;
669
- y?: string | undefined;
670
- x5c?: string[] | undefined;
671
- x5t?: string | undefined;
672
- "x5t#S256"?: string | undefined;
673
- x5u?: string | undefined;
674
- }[];
675
- };
676
764
  metadata: {
677
765
  wallet_relying_party: {
678
766
  jwks: {
@@ -700,14 +788,13 @@ export declare const RpEntityConfiguration: z.ZodObject<{
700
788
  x5u?: string | undefined;
701
789
  }[];
702
790
  client_id: string;
791
+ contacts: string[];
703
792
  application_type: string;
704
793
  client_name: string;
705
- contacts: string[];
706
794
  };
707
795
  };
708
- authority_hints: string[];
709
796
  };
710
- }>;
797
+ }>>;
711
798
  export type QRCodePayload = z.infer<typeof QRCodePayload>;
712
799
  export declare const QRCodePayload: z.ZodObject<{
713
800
  protocol: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/rp/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBxB,CAAC;AAGH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;EAKxB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACO,MAAM;IACzB,MAAM,EAAE;CACtB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { TrustAnchorEntityConfiguration } from "./types";
2
+ import type { JWTDecodeResult } from "@pagopa/io-react-native-jwt/lib/typescript/types";
3
+ type ParsedToken = {
4
+ header: JWTDecodeResult["protectedHeader"];
5
+ payload: JWTDecodeResult["payload"];
6
+ };
7
+ /**
8
+ * Validates a provided trust chain against a known trust
9
+ *
10
+ * @param trustAnchorEntity
11
+ * @param chain
12
+ * @returns The list of parsed token representing the chain
13
+ * @throws {IoWalletError} If the chain is not valid
14
+ */
15
+ export declare function verifyTrustChain(trustAnchorEntity: TrustAnchorEntityConfiguration, chain: string[]): Promise<ParsedToken[]>;
16
+ export {};
17
+ //# sourceMappingURL=chain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/trust/chain.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAIjB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAExF,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAC3C,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAiCF;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,iBAAiB,EAAE,8BAA8B,EACjD,KAAK,EAAE,MAAM,EAAE,GACd,OAAO,CAAC,WAAW,EAAE,CAAC,CA+CxB"}
@@ -0,0 +1,16 @@
1
+ import { EntityConfiguration } from "./types";
2
+ import { verifyTrustChain } from "./chain";
3
+ export { verifyTrustChain };
4
+ /**
5
+ * Fetch and parse teh entity configuration document for a given federation entity
6
+ *
7
+ * @param entityBaseUrl The base url of the entity.
8
+ * @param options.appFetch An optional instance of the http client to be used.
9
+ * @returns The parsed entity configuration object
10
+ * @throws {IoWalletError} If the http request fails
11
+ * @throws Parse error if the document is not in the expected shape.
12
+ */
13
+ export declare function getEntityConfiguration(entityBaseUrl: string, { appFetch, }?: {
14
+ appFetch?: GlobalFetch["fetch"];
15
+ }): Promise<EntityConfiguration>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/trust/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC1C,aAAa,EAAE,MAAM,EACrB,EACE,QAAgB,GACjB,GAAE;IACD,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAC5B,GACL,OAAO,CAAC,mBAAmB,CAAC,CAmB9B"}