@zkp2p/providers 7.6.0 → 7.8.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.
@@ -0,0 +1,64 @@
1
+ {
2
+ "actionType": "register_alipay",
3
+ "proofEngine": "reclaim",
4
+ "authLink": "https://custweb.alipay.com/account/index.htm",
5
+ "url": "https://custweb.alipay.com/account/index.htm",
6
+ "method": "GET",
7
+ "body": "",
8
+ "metadata": {
9
+ "platform": "alipay",
10
+ "urlRegex": "https://custweb\\.alipay\\.com/account/index\\.htm",
11
+ "method": "GET",
12
+ "fallbackUrlRegex": "",
13
+ "fallbackMethod": "",
14
+ "preprocessRegex": "",
15
+ "transactionsExtraction": {
16
+ "transactionXPathListSelector": "//div[@id='account-main']//table[contains(@class,'table-list')]",
17
+ "transactionXPathSelectors": {
18
+ "fullName": "normalize-space(.//tr[th[normalize-space()='真实姓名']]//span[@id='username'])",
19
+ "mobile": "normalize-space(.//tr[th[normalize-space()='手机']]//td//span[1])",
20
+ "email": "normalize-space(.//tr[th[normalize-space()='邮箱']]//td//span[1])"
21
+ }
22
+ }
23
+ },
24
+ "paramNames": [],
25
+ "paramSelectors": [],
26
+ "skipRequestHeaders": [
27
+ "Cookie",
28
+ "Accept-Encoding"
29
+ ],
30
+ "secretHeaders": [
31
+ "Cookie"
32
+ ],
33
+ "responseMatches": [
34
+ {
35
+ "type": "regex",
36
+ "value": "\\buserName\\b\\s*:\\s*[\"'](?<fullName>[^\"']+)[\"']"
37
+ },
38
+ {
39
+ "type": "regex",
40
+ "value": "\\bmobile\\b\\s*:\\s*[\"'](?<mobile>[^\"']+)[\"']"
41
+ },
42
+ {
43
+ "type": "regex",
44
+ "value": "\\bemail\\b\\s*:\\s*[\"'](?<email>[^\"']+)[\"']"
45
+ }
46
+ ],
47
+ "responseRedactions": [
48
+ {
49
+ "regex": "\\buserName\\b\\s*:\\s*[\"'][^\"']+[\"']",
50
+ "jsonPath": "",
51
+ "xPath": ""
52
+ },
53
+ {
54
+ "regex": "\\bmobile\\b\\s*:\\s*[\"'][^\"']+[\"']",
55
+ "jsonPath": "",
56
+ "xPath": ""
57
+ },
58
+ {
59
+ "regex": "\\bemail\\b\\s*:\\s*[\"'][^\"']+[\"']",
60
+ "jsonPath": "",
61
+ "xPath": ""
62
+ }
63
+ ]
64
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "actionType": "transfer_zelle",
3
3
  "proofEngine": "reclaim",
4
- "authLink": "https://secure.chase.com/web/auth/dashboard#/dashboard/singleDoor/payments/activity;params=qp,sentactivity",
4
+ "authLink": "https://secure.chase.com/web/auth/dashboard#/dashboard/quickPay/paymentsActivity/index",
5
5
  "url": "https://secure.chase.com/svc/rr/payments/secure/v1/quickpay/payment/activity/list",
6
6
  "method": "POST",
7
7
  "body": "pageId=&sortBy=PROCESS_DATE&orderBy=DESC",
@@ -39,7 +39,11 @@
39
39
  "type": "jsonPath",
40
40
  "value": "$.listItems[{{INDEX}}].date"
41
41
  }
42
- ]
42
+ ],
43
+ "userInput": {
44
+ "promptText": "Click Money Sent to proceed with authentication",
45
+ "transactionXpath": "//a[@id='bottom-quickpay_money_sent_menu_item']"
46
+ }
43
47
  },
44
48
  "paramNames": [],
45
49
  "paramSelectors": [],
@@ -109,9 +109,9 @@
109
109
  "includeAdditionalCookieDomains": [],
110
110
  "additionalClientOptions": {
111
111
  "cipherSuites": [
112
- "TLS_CHACHA20_POLY1305_SHA256",
113
- "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
114
- "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
112
+ "TLS_AES_128_GCM_SHA256",
113
+ "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
114
+ "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
115
115
  ]
116
116
  },
117
117
  "useExternalAction": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/providers",
3
- "version": "7.6.0",
3
+ "version": "7.8.0",
4
4
  "description": "Provider JSON templates for ZKP2P",
5
5
  "scripts": {
6
6
  "start": "node index.js"
package/providers.json CHANGED
@@ -17,6 +17,7 @@
17
17
  { "id": "venmo", "files": ["venmo/transfer_venmo.json"] },
18
18
  { "id": "wise", "files": ["wise/transfer_wise.json"] },
19
19
  { "id": "n26", "files": ["n26/transfer_n26.json"] },
20
- { "id": "alipay", "files": ["alipay/transfer_alipay.json"] }
20
+ { "id": "alipay", "files": ["alipay/transfer_alipay.json", "alipay/register_alipay.json"] },
21
+ { "id": "td_bank", "files": ["td_bank/transfer_zelle.json"] }
21
22
  ]
22
23
  }
@@ -0,0 +1,112 @@
1
+ {
2
+ "actionType": "transfer_zelle",
3
+ "proofEngine": "reclaim",
4
+ "authLink": "https://onlinebanking.tdbank.com/",
5
+ "url": "https://mobilews.cashedge.com/mobilewebservice/v2/activity?returnTotalSplitAmount=true&returnZellePaymentID=true&returnReasonCode=true&returnPayeeTransferFee=true",
6
+ "method": "GET",
7
+ "skipRequestHeaders": [
8
+ "Cookie",
9
+ "Accept-Encoding",
10
+ "FSV-HomeId",
11
+ "CEUserAgent"
12
+ ],
13
+ "body": "",
14
+ "metadata": {
15
+ "platform": "zelle",
16
+ "urlRegex": "https://mobilews\\.cashedge\\.com/mobilewebservice/v2/activity.*",
17
+ "method": "GET",
18
+ "fallbackUrlRegex": "",
19
+ "fallbackMethod": "",
20
+ "shouldReplayRequestInPage": false,
21
+ "shouldSkipCloseTab": false,
22
+ "transactionsExtraction": {
23
+ "transactionJsonPathListSelector": "$.activities",
24
+ "transactionJsonPathSelectors": {
25
+ "recipient": "$.sendEmailTo",
26
+ "amount": "$.transferAmount.value",
27
+ "date": "$.creationDate.value",
28
+ "paymentId": "$.zellePaymentID"
29
+ }
30
+ },
31
+ "proofMetadataSelectors": [
32
+ {
33
+ "type": "jsonPath",
34
+ "value": "$.activities[{{INDEX}}].sendEmailTo"
35
+ },
36
+ {
37
+ "type": "jsonPath",
38
+ "value": "$.activities[{{INDEX}}].transferAmount.value"
39
+ },
40
+ {
41
+ "type": "jsonPath",
42
+ "value": "$.activities[{{INDEX}}].creationDate.value"
43
+ },
44
+ {
45
+ "type": "jsonPath",
46
+ "value": "$.activities[{{INDEX}}].zellePaymentID"
47
+ }
48
+ ]
49
+ },
50
+ "paramNames": [],
51
+ "paramSelectors": [],
52
+ "secretHeaders": [
53
+ "Cookie",
54
+ "sessionID",
55
+ "FSV-HomeId"
56
+ ],
57
+ "responseMatches": [
58
+ {
59
+ "type": "regex",
60
+ "value": "\"sendEmailTo\":\"(?<recipient>[^\"]+)\""
61
+ },
62
+ {
63
+ "type": "regex",
64
+ "value": "\"transferAmount\":\\{\"value\":(?<amount>[\\d.]+)\\}"
65
+ },
66
+ {
67
+ "type": "regex",
68
+ "value": "\"transferStatus\":\"(?<status>[^\"]+)\""
69
+ },
70
+ {
71
+ "type": "regex",
72
+ "value": "\"zellePaymentID\":\"(?<paymentId>[^\"]+)\""
73
+ },
74
+ {
75
+ "type": "regex",
76
+ "value": "\"paymentType\":\"(?<type>[^\"]+)\""
77
+ },
78
+ {
79
+ "type": "regex",
80
+ "value": "\"creationDate\":\\{\"value\":\"(?<date>[^\"]+)\"\\}"
81
+ }
82
+ ],
83
+ "responseRedactions": [
84
+ {
85
+ "jsonPath": "$.activities[{{INDEX}}].sendEmailTo"
86
+ },
87
+ {
88
+ "jsonPath": "$.activities[{{INDEX}}].transferAmount"
89
+ },
90
+ {
91
+ "jsonPath": "$.activities[{{INDEX}}].transferStatus"
92
+ },
93
+ {
94
+ "jsonPath": "$.activities[{{INDEX}}].zellePaymentID"
95
+ },
96
+ {
97
+ "jsonPath": "$.activities[{{INDEX}}].paymentType"
98
+ },
99
+ {
100
+ "jsonPath": "$.activities[{{INDEX}}].creationDate"
101
+ }
102
+ ],
103
+ "mobile": {
104
+ "includeAdditionalCookieDomains": ["cashedge.com"],
105
+ "useExternalAction": true,
106
+ "external": {
107
+ "actionLink": "tdbank://",
108
+ "appStoreLink": "https://apps.apple.com/us/app/td-bank-us/id382107453",
109
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.tdbank"
110
+ }
111
+ }
112
+ }