@zkp2p/providers 7.5.0 → 7.7.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": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?userName\\s*:\\s*'(?<fullName>[^']+)'"
37
+ },
38
+ {
39
+ "type": "regex",
40
+ "value": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?mobile\\s*:\\s*'(?<mobile>[^']+)'"
41
+ },
42
+ {
43
+ "type": "regex",
44
+ "value": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?email\\s*:\\s*'(?<email>[^']+)'"
45
+ }
46
+ ],
47
+ "responseRedactions": [
48
+ {
49
+ "regex": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?userName\\s*:\\s*'[^']+'",
50
+ "jsonPath": "",
51
+ "xPath": ""
52
+ },
53
+ {
54
+ "regex": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?mobile\\s*:\\s*'[^']+'",
55
+ "jsonPath": "",
56
+ "xPath": ""
57
+ },
58
+ {
59
+ "regex": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?email\\s*:\\s*'[^']+'",
60
+ "jsonPath": "",
61
+ "xPath": ""
62
+ }
63
+ ]
64
+ }
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/providers",
3
- "version": "7.5.0",
3
+ "version": "7.7.0",
4
4
  "description": "Provider JSON templates for ZKP2P",
5
5
  "scripts": {
6
6
  "start": "node index.js"
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"] },
@@ -15,6 +17,6 @@
15
17
  { "id": "venmo", "files": ["venmo/transfer_venmo.json"] },
16
18
  { "id": "wise", "files": ["wise/transfer_wise.json"] },
17
19
  { "id": "n26", "files": ["n26/transfer_n26.json"] },
18
- { "id": "alipay", "files": ["alipay/transfer_alipay.json"] }
20
+ { "id": "alipay", "files": ["alipay/transfer_alipay.json", "alipay/register_alipay.json"] }
19
21
  ]
20
22
  }