@zkp2p/providers 7.8.3 → 7.8.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/providers",
3
- "version": "7.8.3",
3
+ "version": "7.8.5",
4
4
  "description": "Provider JSON templates for ZKP2P",
5
5
  "scripts": {
6
6
  "start": "node index.js"
package/providers.json CHANGED
@@ -14,8 +14,8 @@
14
14
  { "id": "revolut", "files": ["revolut/transfer_revolut.json"] },
15
15
  { "id": "royalbankcanada", "files": ["royalbankcanada/transfer_interac.json"] },
16
16
  { "id": "usbank", "files": ["usbank/transfer_zelle.json"] },
17
- { "id": "venmo", "files": ["venmo/transfer_venmo.json"] },
18
- { "id": "wise", "files": ["wise/transfer_wise.json"] },
17
+ { "id": "venmo", "files": ["venmo/transfer_venmo.json", "venmo/register_venmo.json"] },
18
+ { "id": "wise", "files": ["wise/transfer_wise.json", "wise/register_wise.json"] },
19
19
  { "id": "n26", "files": ["n26/transfer_n26.json"] },
20
20
  { "id": "alipay", "files": ["alipay/transfer_alipay.json", "alipay/register_alipay.json"] },
21
21
  { "id": "td_bank", "files": ["td_bank/transfer_zelle.json"] }
@@ -0,0 +1,77 @@
1
+ {
2
+ "actionType": "register_venmo",
3
+ "proofEngine": "reclaim",
4
+ "authLink": "https://account.venmo.com/?feed=mine",
5
+ "url": "https://account.venmo.com/api/stories?feedType=me&externalId={{SENDER_ID}}",
6
+ "method": "GET",
7
+ "body": "",
8
+ "metadata": {
9
+ "platform": "venmo",
10
+ "urlRegex": "https://account.venmo.com/api/stories\\?feedType=me&externalId=\\S+",
11
+ "method": "GET",
12
+ "fallbackUrlRegex": "",
13
+ "fallbackMethod": "",
14
+ "preprocessRegex": "",
15
+ "transactionsExtraction": {
16
+ "transactionJsonPathListSelector": "$.stories",
17
+ "transactionJsonPathSelectors": {
18
+ "senderId": "$.title.sender.id"
19
+ }
20
+ },
21
+ "proofMetadataSelectors": [
22
+ {
23
+ "type": "jsonPath",
24
+ "value": "$.stories[{{INDEX}}].paymentId"
25
+ }
26
+ ]
27
+ },
28
+ "paramNames": [
29
+ "SENDER_ID"
30
+ ],
31
+ "paramSelectors": [
32
+ {
33
+ "type": "regex",
34
+ "value": "externalId=([0-9]+)",
35
+ "source": "url"
36
+ }
37
+ ],
38
+ "skipRequestHeaders": [],
39
+ "secretHeaders": [
40
+ "Cookie"
41
+ ],
42
+ "responseMatches": [
43
+ {
44
+ "type": "regex",
45
+ "value": "\"paymentId\":\"[^\"]+\""
46
+ }
47
+ ],
48
+ "responseRedactions": [
49
+ {
50
+ "jsonPath": "$.stories[{{INDEX}}].paymentId",
51
+ "xPath": ""
52
+ }
53
+ ],
54
+ "mobile": {
55
+ "includeAdditionalCookieDomains": [],
56
+ "additionalClientOptions": {
57
+ "cipherSuites": [
58
+ "TLS_AES_128_GCM_SHA256",
59
+ "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
60
+ "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
61
+ ]
62
+ },
63
+ "useExternalAction": true,
64
+ "external": {
65
+ "actionLink": "venmo://paycharge?txn=pay&recipients={{RECIPIENT_ID}}&note=Thx&amount={{AMOUNT}}",
66
+ "appStoreLink": "https://apps.apple.com/us/app/venmo/id351727428",
67
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.venmo"
68
+ },
69
+ "login": {
70
+ "usernameSelector": "#email, input[name=\"login_email\"], input[name=\"username\"], input[type=\"email\"], input[data-testid=\"text-input-username\"]",
71
+ "passwordSelector": "#password, input[name=\"login_password\"][type=\"password\"][data-testid=\"text-input-password\"]",
72
+ "nextSelector": "#btnNext, button[data-testid=\"button-next\"], button.next_button[type=\"submit\"]",
73
+ "submitSelector": "#btnLogin, button[data-testid=\"button-submit\"][type=\"submit\"], button.login_button[type=\"submit\"]",
74
+ "revealTimeoutMs": 5000
75
+ }
76
+ }
77
+ }
@@ -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
+ }