@zkp2p/providers 7.4.0 → 7.6.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.
@@ -103,6 +103,17 @@
103
103
  },
104
104
  "mobile": {
105
105
  "includeAdditionalCookieDomains": [],
106
+ "additionalClientOptions": {
107
+ "cipherSuites": [
108
+ "TLS_AES_128_GCM_SHA256",
109
+ "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
110
+ "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
111
+ ]
112
+ },
113
+ "userAgent": {
114
+ "android": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36",
115
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36"
116
+ },
106
117
  "useExternalAction": true,
107
118
  "external": {
108
119
  "actionLink": "bofa://movemoney",
@@ -135,7 +135,8 @@
135
135
  },
136
136
  "useExternalAction": true,
137
137
  "userAgent": {
138
- "android": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15"
138
+ "android": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15",
139
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"
139
140
  },
140
141
  "external": {
141
142
  "actionLink": "https://cash.app/{{RECIPIENT_ID}}/{{AMOUNT}}",
@@ -139,6 +139,10 @@
139
139
  "mobile": {
140
140
  "includeAdditionalCookieDomains": [],
141
141
  "useExternalAction": true,
142
+ "userAgent": {
143
+ "android": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36",
144
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36"
145
+ },
142
146
  "external": {
143
147
  "actionLink": "chase://",
144
148
  "appStoreLink": "https://apps.apple.com/bb/app/chase-mobile-u-s/id298867247",
@@ -0,0 +1,110 @@
1
+ {
2
+ "actionType": "transfer_chime",
3
+ "proofEngine": "reclaim",
4
+ "authLink": "https://app.chime.com/",
5
+ "url": "https://app.chime.com/api/graphql",
6
+ "method": "POST",
7
+ "body": "{{BODY}}",
8
+ "metadata": {
9
+ "platform": "chime",
10
+ "urlRegex": "https://app\\.chime\\.com/api/graphql",
11
+ "bodyRegex": "\"operationName\":\"GetPayAnyoneActivityDetailsQuery\"",
12
+ "method": "POST",
13
+ "fallbackUrlRegex": "",
14
+ "fallbackMethod": "",
15
+ "preprocessRegex": "",
16
+ "shouldReplayRequestInPage": true,
17
+ "transactionsExtraction": {
18
+ "transactionJsonPathListSelector": "",
19
+ "transactionJsonPathSelectors": {
20
+ "recipient": "$.data.p2p.p2p_activity.pay_friend.receiver_identifier",
21
+ "amount": "$.data.p2p.p2p_activity.pay_friend.amount",
22
+ "date": "$.data.p2p.p2p_activity.timestamp",
23
+ "paymentId": "$.data.p2p.p2p_activity.pay_friend.id"
24
+ }
25
+ },
26
+ "proofMetadataSelectors": [
27
+ {
28
+ "type": "jsonPath",
29
+ "value": "$.data.p2p.p2p_activity.pay_friend.amount"
30
+ },
31
+ {
32
+ "type": "jsonPath",
33
+ "value": "$.data.p2p.p2p_activity.timestamp"
34
+ },
35
+ {
36
+ "type": "jsonPath",
37
+ "value": "$.data.p2p.p2p_activity.pay_friend.receiver_identifier"
38
+ },
39
+ {
40
+ "type": "jsonPath",
41
+ "value": "$.data.p2p.p2p_activity.pay_friend.id"
42
+ },
43
+ {
44
+ "type": "jsonPath",
45
+ "value": "$.data.p2p.p2p_activity.ux_status"
46
+ }
47
+ ],
48
+ "userInput": {
49
+ "promptText": "Select a Pay Anyone transaction",
50
+ "transactionXpath": "//ul[.//a[starts-with(@href, '/accounts/checking/')]]"
51
+ }
52
+ },
53
+ "paramNames": [
54
+ "BODY"
55
+ ],
56
+ "paramSelectors": [
57
+ {
58
+ "type": "regex",
59
+ "value": "^(.*)$",
60
+ "source": "requestBody"
61
+ }
62
+ ],
63
+ "skipRequestHeaders": [
64
+ "Cookie",
65
+ "Accept-Encoding",
66
+ "referer"
67
+ ],
68
+ "secretHeaders": [
69
+ "Cookie"
70
+ ],
71
+ "responseMatches": [
72
+ {
73
+ "type": "regex",
74
+ "value": "\"receiver_identifier\":\"(?<recipientId>[^\"]+)\""
75
+ },
76
+ {
77
+ "type": "regex",
78
+ "value": "\"amount\":(?<amount>[0-9\\.]+)"
79
+ },
80
+ {
81
+ "type": "regex",
82
+ "value": "\"timestamp\":\"(?<timestamp>[^\"]+)\""
83
+ },
84
+ {
85
+ "type": "regex",
86
+ "value": "\"ux_status\":\"(?<status>[^\"]+)\""
87
+ },
88
+ {
89
+ "type": "regex",
90
+ "value": "\"id\":\"(?<paymentId>[^\"]+)\""
91
+ }
92
+ ],
93
+ "responseRedactions": [
94
+ {
95
+ "jsonPath": "$.data.p2p.p2p_activity.pay_friend.receiver_identifier"
96
+ },
97
+ {
98
+ "jsonPath": "$.data.p2p.p2p_activity.pay_friend.amount"
99
+ },
100
+ {
101
+ "jsonPath": "$.data.p2p.p2p_activity.timestamp"
102
+ },
103
+ {
104
+ "jsonPath": "$.data.p2p.p2p_activity.ux_status"
105
+ },
106
+ {
107
+ "jsonPath": "$.data.p2p.p2p_activity.pay_friend.id"
108
+ }
109
+ ]
110
+ }
@@ -107,6 +107,13 @@
107
107
  },
108
108
  "mobile": {
109
109
  "includeAdditionalCookieDomains": [],
110
+ "additionalClientOptions": {
111
+ "cipherSuites": [
112
+ "TLS_CHACHA20_POLY1305_SHA256",
113
+ "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
114
+ "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
115
+ ]
116
+ },
110
117
  "useExternalAction": true,
111
118
  "external": {
112
119
  "actionLink": "citi://",
@@ -106,5 +106,25 @@
106
106
  "jsonPath": "$.transaction.metadata.hold_decision_status",
107
107
  "xPath": ""
108
108
  }
109
- ]
109
+ ],
110
+ "mobile": {
111
+ "includeAdditionalCookieDomains": [],
112
+ "additionalClientOptions": {
113
+ "cipherSuites": [
114
+ "TLS_CHACHA20_POLY1305_SHA256",
115
+ "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
116
+ "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
117
+ ]
118
+ },
119
+ "userAgent": {
120
+ "android": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15",
121
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"
122
+ },
123
+ "useExternalAction": true,
124
+ "external": {
125
+ "actionLink": "https://monzo.me/{{RECIPIENT_ID}}",
126
+ "appStoreLink": "https://apps.apple.com/us/app/monzo-mobile-banking/id1052238659",
127
+ "playStoreLink": "https://play.google.com/store/apps/details?id=co.uk.getmondo&hl=en_US"
128
+ }
129
+ }
110
130
  }
@@ -16,33 +16,37 @@
16
16
  "transactionsExtraction": {
17
17
  "transactionJsonPathListSelector": "",
18
18
  "transactionJsonPathSelectors": {
19
- "recipient": "$.data.transaction.containers[0].body[1].title",
20
- "amount": "$.data.transaction.containers[0].body[1].amount.money.unscaledAmount",
21
- "date": "$.data.transaction.containers[0].body[1].subtitle",
22
- "paymentId": "$.data.transaction.containers[3].body[0].action.params.transactionId",
23
- "currency": "$.data.transaction.containers[0].body[1].amount.money.currency.code"
19
+ "recipient": "$.data.transaction.containers[0].body[0].title",
20
+ "amount": "$.data.transaction.containers[0].body[0].amount.money.unscaledAmount",
21
+ "date": "$.data.transaction.containers[0].body[0].subtitle",
22
+ "paymentId": "$.data.transaction.containers[1].body[1].action.tracking.property",
23
+ "currency": "$.data.transaction.containers[0].body[0].amount.money.currency.code"
24
24
  }
25
25
  },
26
26
  "proofMetadataSelectors": [
27
27
  {
28
28
  "type": "jsonPath",
29
- "value": "$.data.transaction.containers[0].body[1].amount.money.unscaledAmount"
29
+ "value": "$.data.transaction.containers[0].body[0].amount.money.unscaledAmount"
30
30
  },
31
31
  {
32
32
  "type": "jsonPath",
33
- "value": "$.data.transaction.containers[0].body[1].amount.money.currency.code"
33
+ "value": "$.data.transaction.containers[0].body[0].amount.money.currency.code"
34
34
  },
35
35
  {
36
36
  "type": "jsonPath",
37
- "value": "$.data.transaction.containers[0].body[1].title"
37
+ "value": "$.data.transaction.containers[0].body[0].title"
38
38
  },
39
39
  {
40
40
  "type": "jsonPath",
41
- "value": "$.data.transaction.containers[0].body[1].subtitle"
41
+ "value": "$.data.transaction.containers[0].body[0].subtitle"
42
42
  },
43
43
  {
44
44
  "type": "jsonPath",
45
- "value": "$.data.transaction.containers[3].body[0].action.params.transactionId"
45
+ "value": "$.data.transaction.containers[1].body[1].action.tracking.property"
46
+ },
47
+ {
48
+ "type": "jsonPath",
49
+ "value": "$.data.transaction.containers[1].body[1].action.params.iban"
46
50
  }
47
51
  ],
48
52
  "userInput": {
@@ -85,32 +89,32 @@
85
89
  },
86
90
  {
87
91
  "type": "regex",
88
- "value": "\"transactionId\":\"(?<paymentId>[0-9a-fA-F-]{36})\""
92
+ "value": "\"property\":\"(?<paymentId>[0-9a-fA-F-]{36})\""
89
93
  },
90
94
  {
91
95
  "type": "regex",
92
- "value": "\"accountId\":\"(?<recipientId>[0-9a-fA-F-]{36})\""
96
+ "value": "\"iban\":\"(?<recipientId>[A-Z]{2}[A-Z0-9]+)\""
93
97
  }
94
98
  ],
95
99
  "responseRedactions": [
96
100
  {
97
- "jsonPath": "$.data.transaction.containers[0].body[1].amount.money.unscaledAmount",
101
+ "jsonPath": "$.data.transaction.containers[0].body[0].amount.money.unscaledAmount",
98
102
  "xPath": ""
99
103
  },
100
104
  {
101
- "jsonPath": "$.data.transaction.containers[0].body[1].amount.money.currency.code",
105
+ "jsonPath": "$.data.transaction.containers[0].body[0].amount.money.currency.code",
102
106
  "xPath": ""
103
107
  },
104
108
  {
105
- "jsonPath": "$.data.transaction.containers[0].body[1].subtitle",
109
+ "jsonPath": "$.data.transaction.containers[0].body[0].subtitle",
106
110
  "xPath": ""
107
111
  },
108
112
  {
109
- "jsonPath": "$.data.transaction.containers[3].body[0].action.params.transactionId",
113
+ "jsonPath": "$.data.transaction.containers[1].body[1].action.tracking.property",
110
114
  "xPath": ""
111
115
  },
112
116
  {
113
- "jsonPath": "$.data.transaction.containers[3].body[0].action.params.accountId",
117
+ "jsonPath": "$.data.transaction.containers[1].body[1].action.params.iban",
114
118
  "xPath": ""
115
119
  }
116
120
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/providers",
3
- "version": "7.4.0",
3
+ "version": "7.6.0",
4
4
  "description": "Provider JSON templates for ZKP2P",
5
5
  "scripts": {
6
6
  "start": "node index.js"
@@ -107,11 +107,22 @@
107
107
  "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
108
108
  ]
109
109
  },
110
+ "userAgent": {
111
+ "android": "Mozilla/5.0 (Linux; Android 13; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.207 Mobile Safari/537.36",
112
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15"
113
+ },
110
114
  "useExternalAction": true,
111
115
  "external": {
112
116
  "actionLink": "paypal://",
113
117
  "appStoreLink": "https://apps.apple.com/us/app/paypal-pay-send-save/id283646709",
114
118
  "playStoreLink": "https://play.google.com/store/apps/details?id=com.paypal.android.p2pmobile&hl=en_US"
119
+ },
120
+ "login": {
121
+ "usernameSelector": "#email, input[name=\"login_email\"][type=\"email\"]",
122
+ "passwordSelector": "#password, input[name=\"login_password\"][type=\"password\"]",
123
+ "nextSelector": "#btnNext, button[name=\"btnNext\"][type=\"submit\"]",
124
+ "submitSelector": "#btnLogin, button[name=\"btnLogin\"], button.actionContinue[value=\"Login\"], button[value=\"Login\"][type=\"submit\"]",
125
+ "revealTimeoutMs": 5000
115
126
  }
116
127
  }
117
128
  }
package/providers.json CHANGED
@@ -3,10 +3,12 @@
3
3
  { "id": "bankofamerica", "files": ["bankofamerica/transfer_zelle.json"] },
4
4
  { "id": "cashapp", "files": ["cashapp/transfer_cashapp.json"] },
5
5
  { "id": "chase", "files": ["chase/transfer_zelle.json"] },
6
+ { "id": "chime", "files": ["chime/transfer_chime.json"] },
6
7
  { "id": "citi", "files": ["citi/transfer_zelle.json"] },
7
8
  { "id": "idfc", "files": ["idfc/transfer_idfc.json"] },
8
9
  { "id": "luxon", "files": ["luxon/transfer_luxon.json"] },
9
10
  { "id": "mercadopago", "files": ["mercadopago/transfer_mercadopago.json"] },
11
+ { "id": "mercury", "files": ["mercury/mercury-wires.json"] },
10
12
  { "id": "monzo", "files": ["monzo/transfer_monzo.json"] },
11
13
  { "id": "paypal", "files": ["paypal/transfer_paypal.json"] },
12
14
  { "id": "revolut", "files": ["revolut/transfer_revolut.json"] },
@@ -13,7 +13,7 @@
13
13
  "platform": "revolut",
14
14
  "urlRegex": "https://app.revolut.com/api/retail/user/current/transactions/last\\?count=20$",
15
15
  "method": "GET",
16
- "fallbackUrlRegex": "https://app.revolut.com/api/retail/user/current/transactions/last\\?count=20&\\S+",
16
+ "fallbackUrlRegex": "https://app.revolut.com/api/retail/user/current/transactions/last\\S+",
17
17
  "fallbackMethod": "GET",
18
18
  "preprocessRegex": "",
19
19
  "transactionsExtraction": {
@@ -124,6 +124,10 @@
124
124
  "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
125
125
  ]
126
126
  },
127
+ "userAgent": {
128
+ "android": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15",
129
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"
130
+ },
127
131
  "useExternalAction": true,
128
132
  "external": {
129
133
  "actionLink": "https://revolut.me/{{RECIPIENT_ID}}",
@@ -104,9 +104,6 @@
104
104
  ]
105
105
  },
106
106
  "useExternalAction": true,
107
- "userAgent": {
108
- "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15"
109
- },
110
107
  "external": {
111
108
  "actionLink": "venmo://paycharge?txn=pay&recipients={{RECIPIENT_ID}}&note=Thx&amount={{AMOUNT}}",
112
109
  "appStoreLink": "https://apps.apple.com/us/app/venmo/id351727428",