@zkp2p/providers 7.3.0 → 7.5.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",
@@ -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.3.0",
3
+ "version": "7.5.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
  }
@@ -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,80 +124,15 @@
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}}",
130
134
  "appStoreLink": "https://apps.apple.com/us/app/revolut/id370619147",
131
135
  "playStoreLink": "https://play.google.com/store/apps/details?id=com.revolut.revolut"
132
136
  }
133
- },
134
- "additionalProofs": [
135
- {
136
- "url": "https://app.revolut.com/api/retail/user/current/transactions/last?count=20",
137
- "method": "GET",
138
- "body": "",
139
- "paramNames": [],
140
- "paramSelectors": [],
141
- "skipRequestHeaders": [
142
- "x-device-id",
143
- "Cookie"
144
- ],
145
- "secretHeaders": [
146
- "x-device-id",
147
- "Cookie"
148
- ],
149
- "responseMatches": [
150
- {
151
- "type": "regex",
152
- "value": "\"amount\":(?<amount>[0-9\\-]+)"
153
- },
154
- {
155
- "type": "regex",
156
- "value": "\"completedDate\":(?<completedDate>[0-9]+)"
157
- },
158
- {
159
- "type": "regex",
160
- "value": "\"currency\":\"(?<currency>[^\"]+)\""
161
- },
162
- {
163
- "type": "regex",
164
- "value": "\"id\":\"(?<id>[^\"]+)\""
165
- },
166
- {
167
- "type": "regex",
168
- "value": "\"state\":\"(?<state>[^\"]+)\""
169
- },
170
- {
171
- "type": "regex",
172
- "value": "\"username\":\"(?<username>[^\"]+)\""
173
- }
174
- ],
175
- "responseRedactions": [
176
- {
177
- "jsonPath": "$.[{{INDEX}}].counterpart.amount",
178
- "xPath": ""
179
- },
180
- {
181
- "jsonPath": "$.[{{INDEX}}].completedDate",
182
- "xPath": ""
183
- },
184
- {
185
- "jsonPath": "$.[{{INDEX}}].counterpart.currency",
186
- "xPath": ""
187
- },
188
- {
189
- "jsonPath": "$.[{{INDEX}}].id",
190
- "xPath": ""
191
- },
192
- {
193
- "jsonPath": "$.[{{INDEX}}].recipient.username",
194
- "xPath": ""
195
- },
196
- {
197
- "jsonPath": "$.[{{INDEX}}].state",
198
- "xPath": ""
199
- }
200
- ]
201
- }
202
- ]
137
+ }
203
138
  }
@@ -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",