@zkp2p/providers 1.0.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,89 @@
1
+ {
2
+ "actionType": "transfer_interac",
3
+ "authLink": "https://www1.royalbank.com/sgw1/olb/index-en/#/payment-history",
4
+ "url": "https://www1.royalbank.com/sgw5/digital/emt-presentation-service/v1/{{PAYMENT_ID}}",
5
+ "method": "GET",
6
+ "body": "",
7
+ "metadata": {
8
+ "platform": "royalbankcanada",
9
+ "urlRegex": "https://www1.royalbank.com/sgw5/digital/payment-history-presentation-service/v1/summary\\?timestamp=\\S+",
10
+ "method": "GET",
11
+ "fallbackUrlRegex": "",
12
+ "fallbackMethod": "",
13
+ "preprocessRegex": "",
14
+ "transactionsExtraction": {
15
+ "transactionJsonPathListSelector": "$.paymentHistoryList",
16
+ "transactionJsonPathSelectors": {
17
+ "amount": "$.amount",
18
+ "paymentId": "$.paymentID",
19
+ "recipient": "$.payeeAccount",
20
+ "date": "$.date",
21
+ "currency": "$.currency"
22
+ }
23
+ },
24
+ "proofMetadataSelectors": [
25
+ {
26
+ "type": "jsonPath",
27
+ "value": "$.paymentHistoryList[{{INDEX}}].amount"
28
+ },
29
+ {
30
+ "type": "jsonPath",
31
+ "value": "$.paymentHistoryList[{{INDEX}}].paymentId"
32
+ },
33
+ {
34
+ "type": "jsonPath",
35
+ "value": "$.paymentHistoryList[{{INDEX}}].payeeAccount"
36
+ },
37
+ {
38
+ "type": "jsonPath",
39
+ "value": "$.paymentHistoryList[{{INDEX}}].date"
40
+ }
41
+ ]
42
+ },
43
+ "paramNames": [
44
+ "PAYMENT_ID"
45
+ ],
46
+ "paramSelectors": [
47
+ {
48
+ "type": "jsonPath",
49
+ "value": "$.paymentHistoryList[{{INDEX}}].paymentID"
50
+ }
51
+ ],
52
+ "skipRequestHeaders": [
53
+ "Cookie",
54
+ "Accept-Encoding",
55
+ "x-dtpc"
56
+ ],
57
+ "secretHeaders": [
58
+ "Cookie"
59
+ ],
60
+ "responseMatches": [
61
+ {
62
+ "type": "regex",
63
+ "value": "\"status\":\"(?<status>[^\"]+)\""
64
+ },
65
+ {
66
+ "type": "regex",
67
+ "value": "\"amount\":(?<amount>[0-9\\.]+)"
68
+ },
69
+ {
70
+ "type": "regex",
71
+ "value": "\"email\":\"(?<email>[^\"]+)\"",
72
+ "hash": true
73
+ }
74
+ ],
75
+ "responseRedactions": [
76
+ {
77
+ "jsonPath": "$.status",
78
+ "xPath": ""
79
+ },
80
+ {
81
+ "jsonPath": "$.amount",
82
+ "xPath": ""
83
+ },
84
+ {
85
+ "jsonPath": "$.email",
86
+ "xPath": ""
87
+ }
88
+ ]
89
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "actionType": "transfer_zelle",
3
+ "authLink": "https://onlinebanking.usbank.com/auth/login/",
4
+ "url": "https://onlinebanking.usbank.com/digital/api/graphql/v1",
5
+ "method": "POST",
6
+ "body": "{\"operationName\":\"paymentListInquiry\",\"variables\":{\"inquiry\":{\"transactionType\":\"PAYMENT\",\"pageNumber\":1,\"pageSize\":7,\"pageInfo\":{\"transactionTypeSubCategories\":[{\"paymentStatusCode\":\"COMPLETE\",\"nextDateFetchKey\":\"\"}]}}},\"query\":\"fragment ActivityFields on ZellePayment {\\n messageReference\\n isCancellable\\n paymentAmountSplit {\\n linkedPaymentAmount\\n splitRequestedAmount\\n splitTotalAmount\\n __typename\\n }\\n payeeAccountToken\\n payeeId\\n payeeName\\n payeePartyName {\\n firstName\\n lastName\\n __typename\\n }\\n payerAccountName\\n payeeAccountName\\n payeeAccountAliasId\\n payerAccountAliasId\\n payerId\\n payerName\\n paymentAuxStatus\\n paymentDirection\\n paymentMemo\\n paymentPurpose\\n paymentReference\\n paymentSchedule {\\n scheduleId\\n nextPaymentDate\\n frequency\\n scheduleDay\\n otherDay\\n hasRecurringAutoPayment\\n stopBy\\n maximumAmount: maximumTransactionAmount\\n maximumTransactionCount\\n __typename\\n }\\n paymentStatus\\n paymentType\\n transferAmount\\n transferAmountCurrency\\n transferDate\\n valueDate\\n lastUpdatedDate\\n __typename\\n transactionSource\\n transactionTypeCode\\n rejectionReason\\n payerAccountToken\\n deliverySpeed\\n transactionReference\\n}\\n\\nquery paymentListInquiry($inquiry: ZellePaymentInquiryRequest) {\\n inquiry: zellePaymentListInquiry(\\n appName: ZELLE\\n zellePaymentInquiryRequest: $inquiry\\n ) {\\n activities: payments {\\n ...ActivityFields\\n __typename\\n }\\n pageInfo {\\n transactionTypeSubCategories {\\n paymentStatusCode\\n nextDateFetchKey\\n __typename\\n }\\n __typename\\n }\\n additionalTransactions\\n totalPages\\n pageSize\\n pageNumber\\n totalRecords\\n __typename\\n }\\n}\\n\"}",
7
+ "metadata": {
8
+ "platform": "zelle",
9
+ "urlRegex": "https://onlinebanking.usbank.com/digital/api/graphql/v1",
10
+ "method": "POST",
11
+ "fallbackUrlRegex": "https://onlinebanking.usbank.com/digital/api/customer-management/graphql/v2",
12
+ "fallbackMethod": "POST",
13
+ "preprocessRegex": "",
14
+ "transactionsExtraction": {
15
+ "transactionJsonPathListSelector": "$.data.inquiry.activities",
16
+ "transactionJsonPathSelectors": {
17
+ "amount": "$.transferAmount",
18
+ "paymentId": "$.paymentReference",
19
+ "recipient": "$.payeeAccountAliasId",
20
+ "date": "$.transferDate",
21
+ "currency": "$.transferAmountCurrency"
22
+ }
23
+ },
24
+ "proofMetadataSelectors": [
25
+ {
26
+ "type": "jsonPath",
27
+ "value": "$.data.inquiry.activities[{{INDEX}}].transferAmount"
28
+ },
29
+ {
30
+ "type": "jsonPath",
31
+ "value": "$.data.inquiry.activities[{{INDEX}}].paymentReference"
32
+ },
33
+ {
34
+ "type": "jsonPath",
35
+ "value": "$.data.inquiry.activities[{{INDEX}}].payeeAccountAliasId"
36
+ },
37
+ {
38
+ "type": "jsonPath",
39
+ "value": "$.data.inquiry.activities[{{INDEX}}].transferDate"
40
+ }
41
+ ]
42
+ },
43
+ "paramNames": [],
44
+ "paramSelectors": [],
45
+ "skipRequestHeaders": [
46
+ "Cookie",
47
+ "Accept-Encoding",
48
+ "Authorization",
49
+ "referer"
50
+ ],
51
+ "secretHeaders": [
52
+ "Cookie",
53
+ "Authorization",
54
+ "referer"
55
+ ],
56
+ "responseMatches": [
57
+ {
58
+ "type": "regex",
59
+ "value": "\"paymentReference\":\"(?<paymentReference>[^\"]+)\""
60
+ },
61
+ {
62
+ "type": "regex",
63
+ "value": "\"paymentStatus\":\"COMPLETE\""
64
+ },
65
+ {
66
+ "type": "regex",
67
+ "value": "\"transferDate\":\"(?<transferDate>[^\"]+)\""
68
+ },
69
+ {
70
+ "type": "regex",
71
+ "value": "\"transferAmount\":\"(?<transferAmount>[0-9\\.]+)\""
72
+ },
73
+ {
74
+ "type": "regex",
75
+ "value": "\"payeeAccountAliasId\":\"(?<payeeAccountAliasId>[^\"]+)\""
76
+ },
77
+ {
78
+ "type": "regex",
79
+ "value": "\"transferAmountCurrency\":\"(?<transferAmountCurrency>[^\"]+)\""
80
+ },
81
+ {
82
+ "type": "regex",
83
+ "value": "\"paymentDirection\":\"OUTBOUND\""
84
+ }
85
+ ],
86
+ "responseRedactions": [
87
+ {
88
+ "jsonPath": "$.data.inquiry.activities[{{INDEX}}].paymentReference",
89
+ "xPath": ""
90
+ },
91
+ {
92
+ "jsonPath": "$.data.inquiry.activities[{{INDEX}}].paymentStatus",
93
+ "xPath": ""
94
+ },
95
+ {
96
+ "jsonPath": "$.data.inquiry.activities[{{INDEX}}].transferDate",
97
+ "xPath": ""
98
+ },
99
+ {
100
+ "jsonPath": "$.data.inquiry.activities[{{INDEX}}].transferAmount",
101
+ "xPath": ""
102
+ },
103
+ {
104
+ "jsonPath": "$.data.inquiry.activities[{{INDEX}}].payeeAccountAliasId",
105
+ "xPath": ""
106
+ },
107
+ {
108
+ "jsonPath": "$.data.inquiry.activities[{{INDEX}}].transferAmountCurrency",
109
+ "xPath": ""
110
+ },
111
+ {
112
+ "jsonPath": "$.data.inquiry.activities[{{INDEX}}].paymentDirection",
113
+ "xPath": ""
114
+ }
115
+ ],
116
+ "additionalProofs": [],
117
+ "mobile": {
118
+ "includeAdditionalCookieDomains": [],
119
+ "useExternalAction": true,
120
+ "external": {
121
+ "actionLink": "usbank://",
122
+ "appStoreLink": "https://apps.apple.com/us/app/u-s-bank-mobile-banking/id458734623",
123
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.usbank.mobilebanking"
124
+ }
125
+ }
126
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "actionType": "transfer_venmo",
3
+ "authLink": "https://account.venmo.com/?feed=mine",
4
+ "url": "https://account.venmo.com/api/stories?feedType=me&externalId={{SENDER_ID}}",
5
+ "method": "GET",
6
+ "body": "",
7
+ "metadata": {
8
+ "platform": "venmo",
9
+ "urlRegex": "https://account.venmo.com/api/stories\\?feedType=me&externalId=\\S+",
10
+ "method": "GET",
11
+ "fallbackUrlRegex": "",
12
+ "fallbackMethod": "",
13
+ "preprocessRegex": "",
14
+ "transactionsExtraction": {
15
+ "transactionJsonPathListSelector": "$.stories",
16
+ "transactionJsonPathSelectors": {
17
+ "recipient": "$.title.receiver.username",
18
+ "amount": "$.amount",
19
+ "date": "$.date",
20
+ "paymentId": "$.paymentId",
21
+ "currency": "$.currency"
22
+ }
23
+ },
24
+ "proofMetadataSelectors": [
25
+ {
26
+ "type": "jsonPath",
27
+ "value": "$.stories[{{INDEX}}].amount"
28
+ },
29
+ {
30
+ "type": "jsonPath",
31
+ "value": "$.stories[{{INDEX}}].paymentId"
32
+ },
33
+ {
34
+ "type": "jsonPath",
35
+ "value": "$.stories[{{INDEX}}].title.receiver.username"
36
+ }
37
+ ]
38
+ },
39
+ "paramNames": [
40
+ "SENDER_ID"
41
+ ],
42
+ "paramSelectors": [
43
+ {
44
+ "type": "jsonPath",
45
+ "value": "$.stories[{{INDEX}}].title.sender.id"
46
+ }
47
+ ],
48
+ "skipRequestHeaders": [],
49
+ "secretHeaders": [
50
+ "Cookie"
51
+ ],
52
+ "responseMatches": [
53
+ {
54
+ "type": "regex",
55
+ "value": "\"amount\":\"- \\$(?<amount>[^\"]+)\""
56
+ },
57
+ {
58
+ "type": "regex",
59
+ "value": "\"date\":\"(?<date>[^\"]+)\""
60
+ },
61
+ {
62
+ "type": "regex",
63
+ "value": "\"paymentId\":\"(?<paymentId>[^\"]+)\""
64
+ },
65
+ {
66
+ "type": "regex",
67
+ "value": "\"id\":\"(?<receiverId>[^\"]+)\"",
68
+ "hash": true
69
+ },
70
+ {
71
+ "type": "regex",
72
+ "value": "\"subType\":\"(none|business_profile)\""
73
+ }
74
+ ],
75
+ "responseRedactions": [
76
+ {
77
+ "jsonPath": "$.stories[{{INDEX}}].amount",
78
+ "xPath": ""
79
+ },
80
+ {
81
+ "jsonPath": "$.stories[{{INDEX}}].date",
82
+ "xPath": ""
83
+ },
84
+ {
85
+ "jsonPath": "$.stories[{{INDEX}}].paymentId",
86
+ "xPath": ""
87
+ },
88
+ {
89
+ "jsonPath": "$.stories[{{INDEX}}].title.receiver.id",
90
+ "xPath": ""
91
+ },
92
+ {
93
+ "jsonPath": "$.stories[{{INDEX}}].subType",
94
+ "xPath": ""
95
+ }
96
+ ],
97
+ "mobile": {
98
+ "includeAdditionalCookieDomains": [],
99
+ "useExternalAction": true,
100
+ "userAgent": {
101
+ "android": "Mozilla/5.0 (Linux; Android 13; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.207 Mobile Safari/537.36",
102
+ "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"
103
+ },
104
+ "external": {
105
+ "actionLink": "venmo://paycharge?txn=pay&recipients={{RECIPIENT_ID}}&note=🎁&amount={{AMOUNT}}",
106
+ "appStoreLink": "https://apps.apple.com/us/app/venmo/id351727428",
107
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.venmo"
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,133 @@
1
+ {
2
+ "actionType": "transfer_wise",
3
+ "authLink": "https://wise.com/all-transactions?direction=OUTGOING",
4
+ "url": "https://wise.com/gateway/v3/profiles/{{PROFILE_ID}}/transfers/{{TRANSACTION_ID}}",
5
+ "method": "GET",
6
+ "body": "",
7
+ "metadata": {
8
+ "platform": "wise",
9
+ "urlRegex": "https://wise.com/gateway/v1/profiles/\\S+/activities/list",
10
+ "method": "POST",
11
+ "fallbackUrlRegex": "",
12
+ "fallbackMethod": "",
13
+ "preprocessRegex": "",
14
+ "transactionsExtraction": {
15
+ "transactionJsonPathListSelector": "$",
16
+ "transactionJsonPathSelectors": {
17
+ "amount": "$.primaryAmount",
18
+ "paymentId": "$.resource.id",
19
+ "recipient": "$.title",
20
+ "date": "$.visibleOn",
21
+ "currency": "$.currency"
22
+ }
23
+ },
24
+ "proofMetadataSelectors": [
25
+ {
26
+ "type": "jsonPath",
27
+ "value": "$.[{{INDEX}}].primaryAmount"
28
+ },
29
+ {
30
+ "type": "jsonPath",
31
+ "value": "$.[{{INDEX}}].resource.id"
32
+ },
33
+ {
34
+ "type": "jsonPath",
35
+ "value": "$.[{{INDEX}}].title"
36
+ },
37
+ {
38
+ "type": "jsonPath",
39
+ "value": "$.[{{INDEX}}].visibleOn"
40
+ }
41
+ ]
42
+ },
43
+ "paramNames": [
44
+ "TRANSACTION_ID",
45
+ "PROFILE_ID"
46
+ ],
47
+ "paramSelectors": [
48
+ {
49
+ "type": "jsonPath",
50
+ "value": "$.[{{INDEX}}].resource.id"
51
+ },
52
+ {
53
+ "type": "jsonPath",
54
+ "value": "$.[{{INDEX}}].ownedByProfile"
55
+ }
56
+ ],
57
+ "skipRequestHeaders": [],
58
+ "secretHeaders": [
59
+ "Cookie",
60
+ "X-Access-Token"
61
+ ],
62
+ "responseMatches": [
63
+ {
64
+ "type": "regex",
65
+ "value": "\"id\":(?<paymentId>[0-9]+)"
66
+ },
67
+ {
68
+ "type": "regex",
69
+ "value": "\"state\":\"(?<state>[^\"]+)\""
70
+ },
71
+ {
72
+ "type": "regex",
73
+ "value": "\"state\":\"OUTGOING_PAYMENT_SENT\",\"date\":(?<timestamp>[0-9]+)"
74
+ },
75
+ {
76
+ "type": "regex",
77
+ "value": "\"targetAmount\":(?<targetAmount>[0-9\\.]+)"
78
+ },
79
+ {
80
+ "type": "regex",
81
+ "value": "\"targetCurrency\":\"(?<targetCurrency>[^\"]+)\""
82
+ },
83
+ {
84
+ "type": "regex",
85
+ "value": "\"targetRecipientId\":(?<targetRecipientId>[0-9]+)",
86
+ "hash": true
87
+ }
88
+ ],
89
+ "responseRedactions": [
90
+ {
91
+ "jsonPath": "$.id",
92
+ "xPath": ""
93
+ },
94
+ {
95
+ "jsonPath": "$.state",
96
+ "xPath": ""
97
+ },
98
+ {
99
+ "jsonPath": "$.stateHistory",
100
+ "xPath": ""
101
+ },
102
+ {
103
+ "jsonPath": "$.targetAmount",
104
+ "xPath": ""
105
+ },
106
+ {
107
+ "jsonPath": "$.targetCurrency",
108
+ "xPath": ""
109
+ },
110
+ {
111
+ "jsonPath": "$.targetRecipientId",
112
+ "xPath": ""
113
+ }
114
+ ],
115
+ "mobile": {
116
+ "includeAdditionalCookieDomains": [],
117
+ "userAgent": {
118
+ "android": "Mozilla/5.0 (Linux; Android 13; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.207 Mobile Safari/537.36",
119
+ "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"
120
+ },
121
+ "useExternalAction": false,
122
+ "external": {
123
+ "actionLink": "transferwise://pay/me/{{RECIPIENT_ID}}",
124
+ "appStoreLink": "https://apps.apple.com/us/app/wise-international-transfers/id612261027",
125
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.transferwise.android"
126
+ },
127
+ "internal": {
128
+ "actionLink": "https://wise.com/send/",
129
+ "actionCompletedUrlRegex": "https://wise.com/transactions/activities/by-resource/TRANSFER/\\S+",
130
+ "injectedJavaScript": "(function(){const style=document.createElement('style');style.textContent='.zkp2p-dropdown{position:absolute;background:#FFF;border:1px solid #E0E0E0;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,0.15);z-index:99999;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;font-size:14px;color:#333;width:200px;}.zkp2p-dropdown-item{padding:12px 16px;cursor:pointer;}.zkp2p-dropdown-item:hover{background:#F5F5F5;}.zkp2p-dropdown-item:active{background:#E8E8E8;}.zkp2p-dropdown-name{font-weight:500;color:#333;font-size:16px;margin-bottom:2px;}.zkp2p-dropdown-type{color:#666;font-size:14px;}';document.head.appendChild(style);const fillSearchField=function(value){const searchInput=document.querySelector('input[placeholder=\"Name, Wisetag, email, phone number\"]');if(searchInput){searchInput.focus();const nativeInputValueSetter=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,'value').set;nativeInputValueSetter.call(searchInput,value);searchInput.dispatchEvent(new Event('input',{bubbles:true,cancelable:true}));searchInput.dispatchEvent(new Event('change',{bubbles:true,cancelable:true}));setTimeout(()=>{nativeInputValueSetter.call(searchInput,value+' ');searchInput.dispatchEvent(new Event('input',{bubbles:true}));setTimeout(()=>{nativeInputValueSetter.call(searchInput,value);searchInput.dispatchEvent(new Event('input',{bubbles:true}));searchInput.dispatchEvent(new KeyboardEvent('keydown',{key:'Enter',keyCode:13,bubbles:true,cancelable:true}));},50);},50);}};const createDropdown=function(input){const existing=document.getElementById('zkp2p-dropdown');if(existing)existing.remove();const rect=input.getBoundingClientRect();const dropdown=document.createElement('div');dropdown.className='zkp2p-dropdown';dropdown.id='zkp2p-dropdown';dropdown.style.position='absolute';dropdown.style.top=(rect.bottom+window.scrollY+4)+'px';dropdown.style.left=(rect.left-20)+'px';dropdown.style.display='block';const item=document.createElement('div');item.className='zkp2p-dropdown-item';const recipientId='@{{RECIPIENT_ID}}';item.innerHTML='<div class=\"zkp2p-dropdown-content\"><div class=\"zkp2p-dropdown-name\">'+recipientId+'</div><div class=\"zkp2p-dropdown-type\">Wisetag for ZKP2P</div></div>';item.addEventListener('click',function(){fillSearchField(recipientId);dropdown.remove();});dropdown.appendChild(item);document.body.appendChild(dropdown);setTimeout(()=>{document.addEventListener('click',function hideDropdown(e){if(!dropdown.contains(e.target)&&e.target!==input){dropdown.remove();document.removeEventListener('click',hideDropdown);}});},100);};const setupDropdown=function(){const searchInput=document.querySelector('input[placeholder=\"Name, Wisetag, email, phone number\"]');if(searchInput&&!searchInput.hasAttribute('data-zkp2p')){searchInput.setAttribute('data-zkp2p','true');searchInput.addEventListener('focus',function(){createDropdown(this);});}};setTimeout(setupDropdown,1500);const observer=new MutationObserver(setupDropdown);observer.observe(document.body,{childList:true,subtree:true});})();"
131
+ }
132
+ }
133
+ }