@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.
Files changed (52) hide show
  1. package/lib/commonjs/client/generated/wallet-provider.js +27 -19
  2. package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
  3. package/lib/commonjs/trust/chain.js +35 -50
  4. package/lib/commonjs/trust/chain.js.map +1 -1
  5. package/lib/commonjs/trust/index.js +139 -16
  6. package/lib/commonjs/trust/index.js.map +1 -1
  7. package/lib/commonjs/trust/types.js +10 -6
  8. package/lib/commonjs/trust/types.js.map +1 -1
  9. package/lib/commonjs/trust/utils.js +36 -0
  10. package/lib/commonjs/trust/utils.js.map +1 -0
  11. package/lib/commonjs/wallet-instance/index.js +10 -0
  12. package/lib/commonjs/wallet-instance/index.js.map +1 -1
  13. package/lib/module/client/generated/wallet-provider.js +22 -15
  14. package/lib/module/client/generated/wallet-provider.js.map +1 -1
  15. package/lib/module/trust/chain.js +32 -46
  16. package/lib/module/trust/chain.js.map +1 -1
  17. package/lib/module/trust/index.js +139 -18
  18. package/lib/module/trust/index.js.map +1 -1
  19. package/lib/module/trust/types.js +8 -5
  20. package/lib/module/trust/types.js.map +1 -1
  21. package/lib/module/trust/utils.js +28 -0
  22. package/lib/module/trust/utils.js.map +1 -0
  23. package/lib/module/wallet-instance/index.js +9 -0
  24. package/lib/module/wallet-instance/index.js.map +1 -1
  25. package/lib/typescript/client/generated/wallet-provider.d.ts +91 -54
  26. package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
  27. package/lib/typescript/credential/status/types.d.ts +6 -6
  28. package/lib/typescript/sd-jwt/index.d.ts +12 -12
  29. package/lib/typescript/sd-jwt/types.d.ts +6 -6
  30. package/lib/typescript/trust/chain.d.ts +4 -9
  31. package/lib/typescript/trust/chain.d.ts.map +1 -1
  32. package/lib/typescript/trust/index.d.ts +101 -53
  33. package/lib/typescript/trust/index.d.ts.map +1 -1
  34. package/lib/typescript/trust/types.d.ts +761 -64
  35. package/lib/typescript/trust/types.d.ts.map +1 -1
  36. package/lib/typescript/trust/utils.d.ts +12 -0
  37. package/lib/typescript/trust/utils.d.ts.map +1 -0
  38. package/lib/typescript/utils/errors.d.ts.map +1 -1
  39. package/lib/typescript/utils/misc.d.ts.map +1 -1
  40. package/lib/typescript/wallet-instance/index.d.ts +8 -0
  41. package/lib/typescript/wallet-instance/index.d.ts.map +1 -1
  42. package/lib/typescript/wallet-instance-attestation/types.d.ts +20 -20
  43. package/package.json +10 -11
  44. package/src/client/generated/wallet-provider.ts +28 -19
  45. package/src/credential/presentation/types.ts +1 -1
  46. package/src/trust/chain.ts +48 -68
  47. package/src/trust/index.ts +185 -20
  48. package/src/trust/types.ts +9 -5
  49. package/src/trust/utils.ts +32 -0
  50. package/src/utils/errors.ts +2 -2
  51. package/src/utils/misc.ts +2 -2
  52. package/src/wallet-instance/index.ts +13 -0
@@ -1,14 +1,15 @@
1
- import { WalletProviderEntityConfiguration, TrustAnchorEntityConfiguration, CredentialIssuerEntityConfiguration, RelyingPartyEntityConfiguration, EntityConfiguration, EntityStatement } from "./types";
1
+ import { CredentialIssuerEntityConfiguration, EntityConfiguration, EntityStatement, RelyingPartyEntityConfiguration, TrustAnchorEntityConfiguration, WalletProviderEntityConfiguration } from "./types";
2
2
  import { validateTrustChain } from "./chain";
3
+ import type { JWK } from "../utils/jwk";
3
4
  export type { WalletProviderEntityConfiguration, TrustAnchorEntityConfiguration, CredentialIssuerEntityConfiguration, RelyingPartyEntityConfiguration, EntityConfiguration, EntityStatement, };
4
5
  /**
5
6
  * Verify a given trust chain is actually valid.
6
7
  * It can handle fast chain renewal, which means we try to fetch a fresh version of each statement.
7
8
  *
8
9
  * @param trustAnchorEntity The entity configuration of the known trust anchor
9
- * @param chain The chain of statements to be validate
10
- * @param options.renewOnFail Whether to renew the provided chain if the validation fails at first. Default: true
11
- * @param options.appFetch Fetch api implementation. Default: the built-in implementation
10
+ * @param chain The chain of statements to be validated
11
+ * @param renewOnFail Whether to renew the provided chain if the validation fails at first. Default: true
12
+ * @param appFetch Fetch api implementation. Default: the built-in implementation
12
13
  * @returns The result of the chain validation
13
14
  * @throws {IoWalletError} When either validation or renewal fail
14
15
  */
@@ -20,7 +21,7 @@ export declare function verifyTrustChain(trustAnchorEntity: TrustAnchorEntityCon
20
21
  * Fetch the signed entity configuration token for an entity
21
22
  *
22
23
  * @param entityBaseUrl The url of the entity to fetch
23
- * @param param.appFetch (optional) fetch api implemention
24
+ * @param appFetch (optional) fetch api implementation
24
25
  * @returns The signed Entity Configuration token
25
26
  */
26
27
  export declare function getSignedEntityConfiguration(entityBaseUrl: string, { appFetch, }?: {
@@ -38,6 +39,7 @@ export declare function getSignedEntityConfiguration(entityBaseUrl: string, { ap
38
39
  *
39
40
  * @param entityBaseUrl The base url of the entity.
40
41
  * @param schema The expected schema of the entity configuration, according to the kind of entity we are fetching from.
42
+ * @param options An optional object with additional options.
41
43
  * @param options.appFetch An optional instance of the http client to be used.
42
44
  * @returns The parsed entity configuration object
43
45
  * @throws {IoWalletError} If the http request fails
@@ -59,11 +61,6 @@ declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema:
59
61
  appFetch?: GlobalFetch["fetch"];
60
62
  }): Promise<EntityConfiguration>;
61
63
  export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
62
- header: {
63
- alg: string;
64
- kid: string;
65
- typ: "entity-statement+jwt";
66
- };
67
64
  payload: {
68
65
  iss: string;
69
66
  sub: string;
@@ -102,6 +99,9 @@ export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Param
102
99
  federation_resolve_endpoint?: string | undefined;
103
100
  federation_trust_mark_status_endpoint?: string | undefined;
104
101
  federation_trust_mark_list_endpoint?: string | undefined;
102
+ federation_trust_mark_endpoint?: string | undefined;
103
+ federation_historical_keys_endpoint?: string | undefined;
104
+ endpoint_auth_signing_alg_values_supported?: string | undefined;
105
105
  organization_name?: string | undefined;
106
106
  homepage_uri?: string | undefined;
107
107
  policy_uri?: string | undefined;
@@ -117,6 +117,11 @@ export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Param
117
117
  } & {
118
118
  [k: string]: unknown;
119
119
  };
120
+ header: {
121
+ alg: string;
122
+ kid: string;
123
+ typ: "entity-statement+jwt";
124
+ };
120
125
  } & {
121
126
  payload: {
122
127
  metadata: {
@@ -159,11 +164,6 @@ export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Param
159
164
  };
160
165
  }>;
161
166
  export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
162
- header: {
163
- alg: string;
164
- kid: string;
165
- typ: "entity-statement+jwt";
166
- };
167
167
  payload: {
168
168
  iss: string;
169
169
  sub: string;
@@ -202,6 +202,9 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
202
202
  federation_resolve_endpoint?: string | undefined;
203
203
  federation_trust_mark_status_endpoint?: string | undefined;
204
204
  federation_trust_mark_list_endpoint?: string | undefined;
205
+ federation_trust_mark_endpoint?: string | undefined;
206
+ federation_historical_keys_endpoint?: string | undefined;
207
+ endpoint_auth_signing_alg_values_supported?: string | undefined;
205
208
  organization_name?: string | undefined;
206
209
  homepage_uri?: string | undefined;
207
210
  policy_uri?: string | undefined;
@@ -217,6 +220,11 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
217
220
  } & {
218
221
  [k: string]: unknown;
219
222
  };
223
+ header: {
224
+ alg: string;
225
+ kid: string;
226
+ typ: "entity-statement+jwt";
227
+ };
220
228
  } & {
221
229
  payload: {
222
230
  jwks: {
@@ -384,11 +392,6 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
384
392
  };
385
393
  }>;
386
394
  export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
387
- header: {
388
- alg: string;
389
- kid: string;
390
- typ: "entity-statement+jwt";
391
- };
392
395
  payload: {
393
396
  iss: string;
394
397
  sub: string;
@@ -427,6 +430,9 @@ export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Paramete
427
430
  federation_resolve_endpoint?: string | undefined;
428
431
  federation_trust_mark_status_endpoint?: string | undefined;
429
432
  federation_trust_mark_list_endpoint?: string | undefined;
433
+ federation_trust_mark_endpoint?: string | undefined;
434
+ federation_historical_keys_endpoint?: string | undefined;
435
+ endpoint_auth_signing_alg_values_supported?: string | undefined;
430
436
  organization_name?: string | undefined;
431
437
  homepage_uri?: string | undefined;
432
438
  policy_uri?: string | undefined;
@@ -442,13 +448,13 @@ export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Paramete
442
448
  } & {
443
449
  [k: string]: unknown;
444
450
  };
445
- }>;
446
- export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
447
451
  header: {
448
452
  alg: string;
449
453
  kid: string;
450
454
  typ: "entity-statement+jwt";
451
455
  };
456
+ }>;
457
+ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
452
458
  payload: {
453
459
  iss: string;
454
460
  sub: string;
@@ -487,6 +493,9 @@ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Paramet
487
493
  federation_resolve_endpoint?: string | undefined;
488
494
  federation_trust_mark_status_endpoint?: string | undefined;
489
495
  federation_trust_mark_list_endpoint?: string | undefined;
496
+ federation_trust_mark_endpoint?: string | undefined;
497
+ federation_historical_keys_endpoint?: string | undefined;
498
+ endpoint_auth_signing_alg_values_supported?: string | undefined;
490
499
  organization_name?: string | undefined;
491
500
  homepage_uri?: string | undefined;
492
501
  policy_uri?: string | undefined;
@@ -502,6 +511,11 @@ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Paramet
502
511
  } & {
503
512
  [k: string]: unknown;
504
513
  };
514
+ header: {
515
+ alg: string;
516
+ kid: string;
517
+ typ: "entity-statement+jwt";
518
+ };
505
519
  } & {
506
520
  payload: {
507
521
  metadata: {
@@ -541,11 +555,6 @@ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Paramet
541
555
  };
542
556
  }>;
543
557
  export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
544
- header: {
545
- alg: string;
546
- kid: string;
547
- typ: "entity-statement+jwt";
548
- };
549
558
  payload: {
550
559
  iss: string;
551
560
  sub: string;
@@ -584,6 +593,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
584
593
  federation_resolve_endpoint?: string | undefined;
585
594
  federation_trust_mark_status_endpoint?: string | undefined;
586
595
  federation_trust_mark_list_endpoint?: string | undefined;
596
+ federation_trust_mark_endpoint?: string | undefined;
597
+ federation_historical_keys_endpoint?: string | undefined;
598
+ endpoint_auth_signing_alg_values_supported?: string | undefined;
587
599
  organization_name?: string | undefined;
588
600
  homepage_uri?: string | undefined;
589
601
  policy_uri?: string | undefined;
@@ -599,12 +611,12 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
599
611
  } & {
600
612
  [k: string]: unknown;
601
613
  };
602
- } | ({
603
614
  header: {
604
615
  alg: string;
605
616
  kid: string;
606
617
  typ: "entity-statement+jwt";
607
618
  };
619
+ } | ({
608
620
  payload: {
609
621
  iss: string;
610
622
  sub: string;
@@ -643,6 +655,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
643
655
  federation_resolve_endpoint?: string | undefined;
644
656
  federation_trust_mark_status_endpoint?: string | undefined;
645
657
  federation_trust_mark_list_endpoint?: string | undefined;
658
+ federation_trust_mark_endpoint?: string | undefined;
659
+ federation_historical_keys_endpoint?: string | undefined;
660
+ endpoint_auth_signing_alg_values_supported?: string | undefined;
646
661
  organization_name?: string | undefined;
647
662
  homepage_uri?: string | undefined;
648
663
  policy_uri?: string | undefined;
@@ -658,6 +673,11 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
658
673
  } & {
659
674
  [k: string]: unknown;
660
675
  };
676
+ header: {
677
+ alg: string;
678
+ kid: string;
679
+ typ: "entity-statement+jwt";
680
+ };
661
681
  } & {
662
682
  payload: {
663
683
  jwks: {
@@ -824,11 +844,6 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
824
844
  };
825
845
  };
826
846
  }) | ({
827
- header: {
828
- alg: string;
829
- kid: string;
830
- typ: "entity-statement+jwt";
831
- };
832
847
  payload: {
833
848
  iss: string;
834
849
  sub: string;
@@ -867,6 +882,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
867
882
  federation_resolve_endpoint?: string | undefined;
868
883
  federation_trust_mark_status_endpoint?: string | undefined;
869
884
  federation_trust_mark_list_endpoint?: string | undefined;
885
+ federation_trust_mark_endpoint?: string | undefined;
886
+ federation_historical_keys_endpoint?: string | undefined;
887
+ endpoint_auth_signing_alg_values_supported?: string | undefined;
870
888
  organization_name?: string | undefined;
871
889
  homepage_uri?: string | undefined;
872
890
  policy_uri?: string | undefined;
@@ -882,6 +900,11 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
882
900
  } & {
883
901
  [k: string]: unknown;
884
902
  };
903
+ header: {
904
+ alg: string;
905
+ kid: string;
906
+ typ: "entity-statement+jwt";
907
+ };
885
908
  } & {
886
909
  payload: {
887
910
  metadata: {
@@ -920,11 +943,6 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
920
943
  };
921
944
  };
922
945
  }) | ({
923
- header: {
924
- alg: string;
925
- kid: string;
926
- typ: "entity-statement+jwt";
927
- };
928
946
  payload: {
929
947
  iss: string;
930
948
  sub: string;
@@ -963,6 +981,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
963
981
  federation_resolve_endpoint?: string | undefined;
964
982
  federation_trust_mark_status_endpoint?: string | undefined;
965
983
  federation_trust_mark_list_endpoint?: string | undefined;
984
+ federation_trust_mark_endpoint?: string | undefined;
985
+ federation_historical_keys_endpoint?: string | undefined;
986
+ endpoint_auth_signing_alg_values_supported?: string | undefined;
966
987
  organization_name?: string | undefined;
967
988
  homepage_uri?: string | undefined;
968
989
  policy_uri?: string | undefined;
@@ -978,6 +999,11 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
978
999
  } & {
979
1000
  [k: string]: unknown;
980
1001
  };
1002
+ header: {
1003
+ alg: string;
1004
+ kid: string;
1005
+ typ: "entity-statement+jwt";
1006
+ };
981
1007
  } & {
982
1008
  payload: {
983
1009
  metadata: {
@@ -1022,9 +1048,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
1022
1048
  /**
1023
1049
  * Fetch and parse the entity statement document for a given federation entity.
1024
1050
  *
1025
- * @param accreditationBodyBaseUrl The base url of the accreditaion body which holds and signs the required entity statement
1051
+ * @param accreditationBodyBaseUrl The base url of the accreditation body which holds and signs the required entity statement
1026
1052
  * @param subordinatedEntityBaseUrl The url that identifies the subordinate entity
1027
- * @param options.appFetch An optional instance of the http client to be used.
1053
+ * @param appFetch An optional instance of the http client to be used.
1028
1054
  * @returns The parsed entity configuration object
1029
1055
  * @throws {IoWalletError} If the http request fails
1030
1056
  * @throws Parse error if the document is not in the expected shape.
@@ -1032,11 +1058,6 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
1032
1058
  export declare function getEntityStatement(accreditationBodyBaseUrl: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
1033
1059
  appFetch?: GlobalFetch["fetch"];
1034
1060
  }): Promise<{
1035
- header: {
1036
- alg: string;
1037
- kid: string;
1038
- typ: "entity-statement+jwt";
1039
- };
1040
1061
  payload: {
1041
1062
  iss: string;
1042
1063
  sub: string;
@@ -1068,22 +1089,49 @@ export declare function getEntityStatement(accreditationBodyBaseUrl: string, sub
1068
1089
  x5u?: string | undefined;
1069
1090
  }[];
1070
1091
  };
1071
- trust_marks: {
1092
+ trust_marks?: {
1072
1093
  id: string;
1073
1094
  trust_mark: string;
1074
- }[];
1095
+ }[] | undefined;
1096
+ };
1097
+ header: {
1098
+ alg: string;
1099
+ kid: string;
1100
+ typ: "entity-statement+jwt";
1075
1101
  };
1076
1102
  }>;
1077
1103
  /**
1078
1104
  * Fetch the entity statement document for a given federation entity.
1079
1105
  *
1080
- * @param accreditationBodyBaseUrl The base url of the accreditaion body which holds and signs the required entity statement
1081
- * @param subordinatedEntityBaseUrl The url that identifies the subordinate entity
1082
- * @param options.appFetch An optional instance of the http client to be used.
1083
- * @returns The signed entity statement token
1084
- * @throws {IoWalletError} If the http request fails
1106
+ * @param federationFetchEndpoint The exact endpoint provided by the parent EC's metadata.
1107
+ * @param subordinatedEntityBaseUrl The url that identifies the subordinate entity.
1108
+ * @param appFetch An optional instance of the http client to be used.
1109
+ * @returns The signed entity statement token.
1110
+ * @throws {IoWalletError} If the http request fails.
1085
1111
  */
1086
- export declare function getSignedEntityStatement(accreditationBodyBaseUrl: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
1112
+ export declare function getSignedEntityStatement(federationFetchEndpoint: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
1087
1113
  appFetch?: GlobalFetch["fetch"];
1088
1114
  }): Promise<string>;
1115
+ /**
1116
+ * Fetch the federation list document from a given endpoint.
1117
+ *
1118
+ * @param federationListEndpoint The URL of the federation list endpoint.
1119
+ * @param appFetch An optional instance of the http client to be used.
1120
+ * @returns The federation list as an array of strings.
1121
+ * @throws {IoWalletError} If the HTTP request fails or the response cannot be parsed.
1122
+ */
1123
+ export declare function getFederationList(federationListEndpoint: string, { appFetch, }?: {
1124
+ appFetch?: GlobalFetch["fetch"];
1125
+ }): Promise<string[]>;
1126
+ /**
1127
+ * Build a not-verified trust chain for a given Relying Party (RP) entity.
1128
+ *
1129
+ * @param relyingPartyEntityBaseUrl The base URL of the RP entity
1130
+ * @param trustAnchorKey The public key of the Trust Anchor (TA) entity
1131
+ * @param appFetch An optional instance of the http client to be used.
1132
+ * @returns A list of signed tokens that represent the trust chain, in the order of the chain (from the RP to the Trust Anchor)
1133
+ * @throws {IoWalletError} When an element of the chain fails to parse
1134
+ * The result of this function can be used to validate the trust chain with {@link verifyTrustChain}
1135
+ */
1136
+ export declare function buildTrustChain(relyingPartyEntityBaseUrl: string, trustAnchorKey: JWK, appFetch?: GlobalFetch["fetch"]): Promise<string[]>;
1089
1137
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/trust/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iCAAiC,EACjC,8BAA8B,EAC9B,mCAAmC,EACnC,+BAA+B,EAC/B,mBAAmB,EACnB,eAAe,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,kBAAkB,EAAmB,MAAM,SAAS,CAAC;AAG9D,YAAY,EACV,iCAAiC,EACjC,8BAA8B,EAC9B,mCAAmC,EACnC,+BAA+B,EAC/B,mBAAmB,EACnB,eAAe,GAChB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CACpC,iBAAiB,EAAE,8BAA8B,EACjD,KAAK,EAAE,MAAM,EAAE,EACf,EACE,QAAgB,EAChB,WAAkB,GACnB,GAAE;IAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,GACjE,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAWh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