@zkp2p/providers 7.9.0 → 7.9.1-rc.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 (30) hide show
  1. package/.claude/worktrees/paypal-note-optional-redaction/LICENSE +21 -0
  2. package/.claude/worktrees/paypal-note-optional-redaction/README.md +546 -0
  3. package/.claude/worktrees/paypal-note-optional-redaction/alipay/register_alipay.json +58 -0
  4. package/.claude/worktrees/paypal-note-optional-redaction/alipay/transfer_alipay.json +87 -0
  5. package/.claude/worktrees/paypal-note-optional-redaction/bankofamerica/transfer_zelle.json +126 -0
  6. package/.claude/worktrees/paypal-note-optional-redaction/cashapp/transfer_cashapp.json +147 -0
  7. package/.claude/worktrees/paypal-note-optional-redaction/chase/transfer_zelle.json +156 -0
  8. package/.claude/worktrees/paypal-note-optional-redaction/chime/transfer_chime.json +130 -0
  9. package/.claude/worktrees/paypal-note-optional-redaction/citi/transfer_zelle.json +126 -0
  10. package/.claude/worktrees/paypal-note-optional-redaction/idfc/transfer_idfc.json +109 -0
  11. package/.claude/worktrees/paypal-note-optional-redaction/luxon/transfer_luxon.json +119 -0
  12. package/.claude/worktrees/paypal-note-optional-redaction/mercadopago/transfer_mercadopago.json +129 -0
  13. package/.claude/worktrees/paypal-note-optional-redaction/monzo/transfer_monzo.json +130 -0
  14. package/.claude/worktrees/paypal-note-optional-redaction/n26/transfer_n26.json +130 -0
  15. package/.claude/worktrees/paypal-note-optional-redaction/package.json +22 -0
  16. package/.claude/worktrees/paypal-note-optional-redaction/paypal/register_paypal.json +89 -0
  17. package/.claude/worktrees/paypal-note-optional-redaction/paypal/transfer_business_paypal.json +124 -0
  18. package/.claude/worktrees/paypal-note-optional-redaction/paypal/transfer_paypal.json +138 -0
  19. package/.claude/worktrees/paypal-note-optional-redaction/providers.json +23 -0
  20. package/.claude/worktrees/paypal-note-optional-redaction/revolut/transfer_revolut.json +138 -0
  21. package/.claude/worktrees/paypal-note-optional-redaction/royalbankcanada/transfer_interac.json +89 -0
  22. package/.claude/worktrees/paypal-note-optional-redaction/td_bank/transfer_zelle.json +112 -0
  23. package/.claude/worktrees/paypal-note-optional-redaction/usbank/transfer_zelle.json +127 -0
  24. package/.claude/worktrees/paypal-note-optional-redaction/venmo/register_venmo.json +77 -0
  25. package/.claude/worktrees/paypal-note-optional-redaction/venmo/transfer_venmo.json +120 -0
  26. package/.claude/worktrees/paypal-note-optional-redaction/wellsfargo/transfer_zelle.json +137 -0
  27. package/.claude/worktrees/paypal-note-optional-redaction/wise/register_wise.json +81 -0
  28. package/.claude/worktrees/paypal-note-optional-redaction/wise/transfer_wise.json +157 -0
  29. package/package.json +1 -1
  30. package/paypal/transfer_paypal.json +1 -2
@@ -0,0 +1,81 @@
1
+ {
2
+ "actionType": "register_wise",
3
+ "proofEngine": "reclaim",
4
+ "authLink": "https://wise.com/flows/request",
5
+ "url": "https://wise.com/gateway/v4/profiles/{{PROFILE_ID}}/multi-currency-account",
6
+ "method": "GET",
7
+ "body": "",
8
+ "metadata": {
9
+ "platform": "wise",
10
+ "urlRegex": "https://wise.com/gateway/v1/profiles/[0-9]+/identifiers/profile-link$",
11
+ "method": "GET",
12
+ "fallbackUrlRegex": "",
13
+ "fallbackMethod": "",
14
+ "preprocessRegex": "",
15
+ "transactionsExtraction": {
16
+ "transactionJsonPathListSelector": "",
17
+ "transactionJsonPathSelectors": {
18
+ "wiseTag": "$.nickname"
19
+ }
20
+ }
21
+ },
22
+ "paramNames": [
23
+ "PROFILE_ID"
24
+ ],
25
+ "paramSelectors": [
26
+ {
27
+ "type": "regex",
28
+ "value": "https://wise.com/gateway/v1/profiles/([0-9]+)/identifiers/profile-link$",
29
+ "source": "url"
30
+ }
31
+ ],
32
+ "skipRequestHeaders": [],
33
+ "secretHeaders": [
34
+ "Cookie",
35
+ "X-Access-Token"
36
+ ],
37
+ "responseMatches": [
38
+ {
39
+ "type": "regex",
40
+ "value": "\"recipientId\":(?<mcAccountId>[0-9]+)"
41
+ }
42
+ ],
43
+ "responseRedactions": [
44
+ {
45
+ "jsonPath": "$.recipientId"
46
+ }
47
+ ],
48
+ "additionalProofs": [
49
+ {
50
+ "url": "https://wise.com/gateway/v1/profiles/{{PROFILE_ID}}/identifiers/profile-link",
51
+ "method": "GET",
52
+ "body": "",
53
+ "paramNames": [
54
+ "PROFILE_ID"
55
+ ],
56
+ "paramSelectors": [
57
+ {
58
+ "type": "regex",
59
+ "value": "https://wise.com/gateway/v1/profiles/([0-9]+)/identifiers/profile-link$",
60
+ "source": "url"
61
+ }
62
+ ],
63
+ "skipRequestHeaders": [],
64
+ "secretHeaders": [
65
+ "Cookie",
66
+ "X-Access-Token"
67
+ ],
68
+ "responseMatches": [
69
+ {
70
+ "type": "regex",
71
+ "value": "\"nickname\":\"@(?<wiseTag>[^\"]+)\""
72
+ }
73
+ ],
74
+ "responseRedactions": [
75
+ {
76
+ "jsonPath": "$.nickname"
77
+ }
78
+ ]
79
+ }
80
+ ]
81
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "actionType": "transfer_wise",
3
+ "proofEngine": "reclaim",
4
+ "authLink": "https://wise.com/all-transactions?direction=OUTGOING",
5
+ "url": "https://wise.com/gateway/v3/profiles/{{PROFILE_ID}}/transfers/{{TRANSACTION_ID}}",
6
+ "method": "GET",
7
+ "body": "",
8
+ "metadata": {
9
+ "platform": "wise",
10
+ "urlRegex": "https://wise.com/gateway/v1/profiles/\\S+/activities/list",
11
+ "method": "POST",
12
+ "fallbackUrlRegex": "",
13
+ "fallbackMethod": "",
14
+ "preprocessRegex": "",
15
+ "transactionsExtraction": {
16
+ "transactionJsonPathListSelector": "$",
17
+ "transactionJsonPathSelectors": {
18
+ "amount": "$.primaryAmount",
19
+ "paymentId": "$.resource.id",
20
+ "recipient": "$.title",
21
+ "date": "$.visibleOn",
22
+ "currency": "$.currency"
23
+ }
24
+ },
25
+ "proofMetadataSelectors": [
26
+ {
27
+ "type": "jsonPath",
28
+ "value": "$.[{{INDEX}}].primaryAmount"
29
+ },
30
+ {
31
+ "type": "jsonPath",
32
+ "value": "$.[{{INDEX}}].resource.id"
33
+ },
34
+ {
35
+ "type": "jsonPath",
36
+ "value": "$.[{{INDEX}}].title"
37
+ },
38
+ {
39
+ "type": "jsonPath",
40
+ "value": "$.[{{INDEX}}].visibleOn"
41
+ }
42
+ ]
43
+ },
44
+ "paramNames": [
45
+ "TRANSACTION_ID",
46
+ "PROFILE_ID"
47
+ ],
48
+ "paramSelectors": [
49
+ {
50
+ "type": "jsonPath",
51
+ "value": "$.[{{INDEX}}].resource.id"
52
+ },
53
+ {
54
+ "type": "jsonPath",
55
+ "value": "$.[{{INDEX}}].ownedByProfile"
56
+ }
57
+ ],
58
+ "skipRequestHeaders": [],
59
+ "secretHeaders": [
60
+ "Cookie",
61
+ "X-Access-Token"
62
+ ],
63
+ "responseMatches": [
64
+ {
65
+ "type": "regex",
66
+ "value": "\"id\":(?<paymentId>[0-9]+)"
67
+ },
68
+ {
69
+ "type": "regex",
70
+ "value": "\"state\":\"(?<state>[^\"]+)\""
71
+ },
72
+ {
73
+ "type": "regex",
74
+ "value": "\"state\":\"OUTGOING_PAYMENT_SENT\",\"date\":(?<timestamp>[0-9]+)"
75
+ },
76
+ {
77
+ "type": "regex",
78
+ "value": "\"sourceAmount\":(?<sourceAmount>[0-9\\.]+)"
79
+ },
80
+ {
81
+ "type": "regex",
82
+ "value": "\"sourceCurrency\":\"(?<sourceCurrency>[^\"]+)\""
83
+ },
84
+ {
85
+ "type": "regex",
86
+ "value": "\"targetAmount\":(?<targetAmount>[0-9\\.]+)"
87
+ },
88
+ {
89
+ "type": "regex",
90
+ "value": "\"targetCurrency\":\"(?<targetCurrency>[^\"]+)\""
91
+ },
92
+ {
93
+ "type": "regex",
94
+ "value": "\"targetRecipientId\":(?<targetRecipientId>[0-9]+)"
95
+ }
96
+ ],
97
+ "responseRedactions": [
98
+ {
99
+ "jsonPath": "$.id",
100
+ "xPath": ""
101
+ },
102
+ {
103
+ "jsonPath": "$.state",
104
+ "xPath": ""
105
+ },
106
+ {
107
+ "jsonPath": "$.stateHistory",
108
+ "xPath": ""
109
+ },
110
+ {
111
+ "jsonPath": "$.sourceAmount",
112
+ "xPath": ""
113
+ },
114
+ {
115
+ "jsonPath": "$.sourceCurrency",
116
+ "xPath": ""
117
+ },
118
+ {
119
+ "jsonPath": "$.targetAmount",
120
+ "xPath": ""
121
+ },
122
+ {
123
+ "jsonPath": "$.targetCurrency",
124
+ "xPath": ""
125
+ },
126
+ {
127
+ "jsonPath": "$.targetRecipientId",
128
+ "xPath": ""
129
+ }
130
+ ],
131
+ "mobile": {
132
+ "includeAdditionalCookieDomains": [],
133
+ "additionalClientOptions": {
134
+ "cipherSuites": [
135
+ "TLS_CHACHA20_POLY1305_SHA256",
136
+ "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
137
+ "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
138
+ ]
139
+ },
140
+ "userAgent": {
141
+ "android": "Mozilla/5.0 (Linux; Android 13; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.207 Mobile Safari/537.36",
142
+ "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"
143
+ },
144
+ "useExternalAction": true,
145
+ "external": {
146
+ "actionLink": "transferwise://pay/me/{{RECIPIENT_ID}}",
147
+ "appStoreLink": "https://apps.apple.com/us/app/wise-international-transfers/id612261027",
148
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.transferwise.android"
149
+ },
150
+ "login": {
151
+ "usernameSelector": "#email, input[name=\"email\"][type=\"email\"], input.cs-email[type=\"email\"]",
152
+ "passwordSelector": "#password, input[name=\"password\"][type=\"password\"], input.cs-password[type=\"password\"]",
153
+ "submitSelector": "button[type=\"submit\"]",
154
+ "revealTimeoutMs": 5000
155
+ }
156
+ }
157
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/providers",
3
- "version": "7.9.0",
3
+ "version": "7.9.1-rc.0",
4
4
  "description": "Provider JSON templates for ZKP2P",
5
5
  "scripts": {
6
6
  "start": "node index.js"
@@ -105,8 +105,7 @@
105
105
  "xPath": ""
106
106
  },
107
107
  {
108
- "jsonPath": "$.data.notesInfo.note",
109
- "xPath": ""
108
+ "regex": "\"notesInfo\"\\s*:\\s*\\{[^}]*\"note\"\\s*:\\s*\"(?<note>[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*)\"|\\}\\s*$"
110
109
  }
111
110
  ],
112
111
  "mobile": {