@didit-protocol/sdk-node 2.15.0 → 2.17.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.
- package/dist/index.cjs +106 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +264 -31
- package/dist/index.d.ts +264 -31
- package/dist/index.js +106 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -328,7 +328,7 @@ function decodeDates(value, plan, named, depth = 0) {
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
// src/core/version.ts
|
|
331
|
-
var VERSION = "2.
|
|
331
|
+
var VERSION = "2.17.0";
|
|
332
332
|
|
|
333
333
|
// src/core/runtime.ts
|
|
334
334
|
function processLike() {
|
|
@@ -1750,6 +1750,7 @@ var DATE_PLANS = {
|
|
|
1750
1750
|
},
|
|
1751
1751
|
TransactionsNotesListResponse: { p: { results: { i: "TransactionNote" } } },
|
|
1752
1752
|
TransactionsRulesListResponse: { p: { results: { i: "TransactionRuleDetail" } } },
|
|
1753
|
+
TravelRuleAssignVaspResponse: { p: { assignee: "TravelRuleVaspAssignee" } },
|
|
1753
1754
|
TravelRuleCounterpartyContact: { p: { verified_at: 1, invalid_at: 1, created_at: 1 } },
|
|
1754
1755
|
TravelRuleCounterpartyContactsListResponse: {
|
|
1755
1756
|
p: { results: { i: "TravelRuleCounterpartyContact" } }
|
|
@@ -1762,12 +1763,16 @@ var DATE_PLANS = {
|
|
|
1762
1763
|
TravelRuleCounterpartyQuestionnaireList: {
|
|
1763
1764
|
p: { questionnaires: { i: "TravelRuleCounterpartyQuestionnaire" } }
|
|
1764
1765
|
},
|
|
1765
|
-
TravelRuleCounterpartyScreening: {
|
|
1766
|
+
TravelRuleCounterpartyScreening: {
|
|
1767
|
+
p: { screened_at: 1, hits: { i: { p: { review: { p: { reviewed_at: 1 } } } } } }
|
|
1768
|
+
},
|
|
1766
1769
|
TravelRuleCounterpartyScreeningResult: { p: { screening: "TravelRuleCounterpartyScreening" } },
|
|
1767
1770
|
TravelRuleCounterpartyScreeningStatus: { p: { screening: "TravelRuleCounterpartyScreening" } },
|
|
1768
1771
|
TravelRuleDataUnmasked: { p: { at: 1 } },
|
|
1769
|
-
TravelRuleDelivery: { p: { next_attempt_at: 1, delivered_at: 1 } },
|
|
1770
|
-
TravelRuleDeliveryLogEntry: {
|
|
1772
|
+
TravelRuleDelivery: { p: { next_attempt_at: 1, delivered_at: 1, updated_at: 1 } },
|
|
1773
|
+
TravelRuleDeliveryLogEntry: {
|
|
1774
|
+
p: { created_at: 1, delivered_at: 1, updated_at: 1, next_attempt_at: 1 }
|
|
1775
|
+
},
|
|
1771
1776
|
TravelRuleDeliveryLogPage: { p: { results: { i: "TravelRuleDeliveryLogEntry" } } },
|
|
1772
1777
|
TravelRuleDiscoveryStep: { p: { at: 1 } },
|
|
1773
1778
|
TravelRuleInboundResponse: { p: { travel_rule: "TravelRuleTransferDetail" } },
|
|
@@ -1807,6 +1812,7 @@ var DATE_PLANS = {
|
|
|
1807
1812
|
}
|
|
1808
1813
|
}
|
|
1809
1814
|
},
|
|
1815
|
+
TravelRuleReviewVaspScreeningHitResponse: { p: { screening: "TravelRuleCounterpartyScreening" } },
|
|
1810
1816
|
TravelRuleSettingsDetail: {
|
|
1811
1817
|
p: {
|
|
1812
1818
|
networks: {
|
|
@@ -1838,9 +1844,14 @@ var DATE_PLANS = {
|
|
|
1838
1844
|
TravelRuleUnmatchedDepositsListResponse: { p: { results: { i: "TravelRuleTransferRow" } } },
|
|
1839
1845
|
TravelRuleUserChoice: { p: { link_expires_at: 1 } },
|
|
1840
1846
|
TravelRuleUserLinkResponse: { p: { expires_at: 1 } },
|
|
1847
|
+
TravelRuleVaspAssignee: { p: { assigned_at: 1 } },
|
|
1841
1848
|
TravelRuleWalletAddressesListResponse: { p: { results: { i: "WalletAddressEntry" } } },
|
|
1849
|
+
TravelRuleWalletAddressesListTransfersResponse: {
|
|
1850
|
+
p: { results: { i: "TravelRuleWalletTransfer" } }
|
|
1851
|
+
},
|
|
1842
1852
|
TravelRuleWalletProofReview: { p: { method_chosen_at: 1, decided_at: 1, created_at: 1 } },
|
|
1843
1853
|
TravelRuleWalletProofsListResponse: { p: { results: { i: "TravelRuleWalletProofReview" } } },
|
|
1854
|
+
TravelRuleWalletTransfer: { p: { created_at: 1 } },
|
|
1844
1855
|
TravelRuleWidgetSessionResponse: { p: { expires_at: 1 } },
|
|
1845
1856
|
TravelRuleWorkspace: {
|
|
1846
1857
|
p: {
|
|
@@ -1890,7 +1901,8 @@ var DATE_PLANS = {
|
|
|
1890
1901
|
essential_checks: { p: { checked_at: 1 } },
|
|
1891
1902
|
decision: "TravelRuleCounterpartyDecision",
|
|
1892
1903
|
entity_screening: "TravelRuleCounterpartyScreening",
|
|
1893
|
-
questionnaires: { i: "TravelRuleCounterpartyQuestionnaire" }
|
|
1904
|
+
questionnaires: { i: "TravelRuleCounterpartyQuestionnaire" },
|
|
1905
|
+
assignee: "TravelRuleVaspAssignee"
|
|
1894
1906
|
}
|
|
1895
1907
|
},
|
|
1896
1908
|
WalletAddressEntry: { p: { created_at: 1 } },
|
|
@@ -8710,6 +8722,17 @@ var TRAVEL_RULE_WALLET_ADDRESSES_LIST = {
|
|
|
8710
8722
|
query: ["limit", "offset"],
|
|
8711
8723
|
dates: { p: { results: { i: "WalletAddressEntry" } } }
|
|
8712
8724
|
};
|
|
8725
|
+
var TRAVEL_RULE_WALLET_ADDRESSES_LIST_TRANSFERS = {
|
|
8726
|
+
method: "GET",
|
|
8727
|
+
path: "/v3/travel-rule/wallet-addresses/{entry_uuid}/transfers/",
|
|
8728
|
+
query: ["limit", "offset"],
|
|
8729
|
+
dates: { p: { results: { i: "TravelRuleWalletTransfer" } } }
|
|
8730
|
+
};
|
|
8731
|
+
var TRAVEL_RULE_WALLET_ADDRESSES_LOOKUP = {
|
|
8732
|
+
method: "GET",
|
|
8733
|
+
path: "/v3/travel-rule/wallet-addresses/lookup/",
|
|
8734
|
+
query: ["address", "chain", "memo"]
|
|
8735
|
+
};
|
|
8713
8736
|
var TRAVEL_RULE_WALLET_ADDRESSES_UPDATE = {
|
|
8714
8737
|
method: "PATCH",
|
|
8715
8738
|
path: "/v3/travel-rule/wallet-addresses/{entry_uuid}/",
|
|
@@ -8759,6 +8782,12 @@ var TRAVEL_RULE_WORKSPACE_VERIFY_DOMAIN_DNS = {
|
|
|
8759
8782
|
path: "/v3/travel-rule/workspace/domain/dns/",
|
|
8760
8783
|
dates: "TravelRuleWorkspace"
|
|
8761
8784
|
};
|
|
8785
|
+
var TRAVEL_RULE_ASSIGN_VASP = {
|
|
8786
|
+
method: "POST",
|
|
8787
|
+
path: "/v3/travel-rule/vasps/{vasp_id}/assign/",
|
|
8788
|
+
body: "json",
|
|
8789
|
+
dates: { p: { assignee: "TravelRuleVaspAssignee" } }
|
|
8790
|
+
};
|
|
8762
8791
|
var TRAVEL_RULE_CLEAR_VASP_DECISION = {
|
|
8763
8792
|
method: "DELETE",
|
|
8764
8793
|
path: "/v3/travel-rule/vasps/{vasp_id}/decision/",
|
|
@@ -8781,6 +8810,10 @@ var TRAVEL_RULE_LIST_VASP_QUESTIONNAIRES = {
|
|
|
8781
8810
|
path: "/v3/travel-rule/vasps/{vasp_id}/questionnaires/",
|
|
8782
8811
|
dates: "TravelRuleCounterpartyQuestionnaireList"
|
|
8783
8812
|
};
|
|
8813
|
+
var TRAVEL_RULE_LIST_VASP_REVIEWERS = {
|
|
8814
|
+
method: "GET",
|
|
8815
|
+
path: "/v3/travel-rule/vasps/reviewers/"
|
|
8816
|
+
};
|
|
8784
8817
|
var TRAVEL_RULE_LIST_VASPS = {
|
|
8785
8818
|
method: "GET",
|
|
8786
8819
|
path: "/v3/travel-rule/vasps/",
|
|
@@ -8823,6 +8856,12 @@ var TRAVEL_RULE_RETRIEVE_VASP_SCREENING = {
|
|
|
8823
8856
|
path: "/v3/travel-rule/vasps/{vasp_id}/screening/",
|
|
8824
8857
|
dates: "TravelRuleCounterpartyScreeningStatus"
|
|
8825
8858
|
};
|
|
8859
|
+
var TRAVEL_RULE_REVIEW_VASP_SCREENING_HIT = {
|
|
8860
|
+
method: "PATCH",
|
|
8861
|
+
path: "/v3/travel-rule/vasps/{vasp_id}/screening/",
|
|
8862
|
+
body: "json",
|
|
8863
|
+
dates: { p: { screening: "TravelRuleCounterpartyScreening" } }
|
|
8864
|
+
};
|
|
8826
8865
|
var TRAVEL_RULE_SCREEN_VASP = {
|
|
8827
8866
|
method: "POST",
|
|
8828
8867
|
path: "/v3/travel-rule/vasps/{vasp_id}/screening/",
|
|
@@ -8953,7 +8992,7 @@ var TravelRuleTransfers = class extends APIResource {
|
|
|
8953
8992
|
/**
|
|
8954
8993
|
* List Travel Rule transfers
|
|
8955
8994
|
*
|
|
8956
|
-
* Your application's Travel Rule transfers, newest first, paginated with `limit` (default 50) and `offset`. Rows carry VASP names, wallets
|
|
8995
|
+
* Your application's Travel Rule transfers, newest first, paginated with `limit` (default 50) and `offset`. Rows carry VASP names, wallets, memos, the transaction's review decision, your own end user's name (masked exactly as the transaction detail masks it), the counterparty VASP's jurisdiction, the chain and the fiat amount; they never carry the counterparty's person data. Comma-separated values select several. An unknown value answers 400 naming the parameter, for example `{"direction": ["Unknown value(s): inbound."]}`.
|
|
8957
8996
|
*
|
|
8958
8997
|
* `GET /v3/travel-rule/transfers/`
|
|
8959
8998
|
*/
|
|
@@ -9038,6 +9077,33 @@ var TravelRuleWalletAddresses = class extends APIResource {
|
|
|
9038
9077
|
list(params = {}, options) {
|
|
9039
9078
|
return this._client.requestPage(TRAVEL_RULE_WALLET_ADDRESSES_LIST, [], params, options);
|
|
9040
9079
|
}
|
|
9080
|
+
/**
|
|
9081
|
+
* List the transfers that used a wallet address
|
|
9082
|
+
*
|
|
9083
|
+
* Paginated list of your Travel Rule transfers whose originator or beneficiary wallet is this address book entry, newest first. The endpoint answers 404 once the entry is deleted.
|
|
9084
|
+
*
|
|
9085
|
+
* `GET /v3/travel-rule/wallet-addresses/{entry_uuid}/transfers/`
|
|
9086
|
+
*
|
|
9087
|
+
* @param entryUuid entry_uuid
|
|
9088
|
+
*/
|
|
9089
|
+
listTransfers(entryUuid, params = {}, options) {
|
|
9090
|
+
return this._client.requestPage(
|
|
9091
|
+
TRAVEL_RULE_WALLET_ADDRESSES_LIST_TRANSFERS,
|
|
9092
|
+
[entryUuid],
|
|
9093
|
+
params,
|
|
9094
|
+
options
|
|
9095
|
+
);
|
|
9096
|
+
}
|
|
9097
|
+
/**
|
|
9098
|
+
* Look up a wallet address
|
|
9099
|
+
*
|
|
9100
|
+
* Checks one exact address, chain and memo against your own wallet address book and then against wallets proven by other Didit Travel Rule participants. It never screens the wallet, never sends a message and never returns holder data from another application. `directory_checked` is always `false`: the lookup does not search a public directory, so `none` means the wallet is neither in your book nor proven on Didit, not that it is unknown elsewhere.
|
|
9101
|
+
*
|
|
9102
|
+
* `GET /v3/travel-rule/wallet-addresses/lookup/`
|
|
9103
|
+
*/
|
|
9104
|
+
lookup(params, options) {
|
|
9105
|
+
return this._client.request(TRAVEL_RULE_WALLET_ADDRESSES_LOOKUP, [], params, options);
|
|
9106
|
+
}
|
|
9041
9107
|
/**
|
|
9042
9108
|
* Update wallet address holder metadata
|
|
9043
9109
|
*
|
|
@@ -9147,6 +9213,18 @@ var TravelRule = class extends APIResource {
|
|
|
9147
9213
|
walletAddresses = new TravelRuleWalletAddresses(this._client);
|
|
9148
9214
|
walletProofs = new TravelRuleWalletProofs(this._client);
|
|
9149
9215
|
workspace = new TravelRuleWorkspaceResource(this._client);
|
|
9216
|
+
/**
|
|
9217
|
+
* Assign a VASP to a member
|
|
9218
|
+
*
|
|
9219
|
+
* Assigns the counterparty to one application member, or unassigns it with `assignee_email: null`. Repeating the same assignment changes nothing (`changed: false`). The assignment is private to your application. Needs the transactions write privilege.
|
|
9220
|
+
*
|
|
9221
|
+
* `POST /v3/travel-rule/vasps/{vasp_id}/assign/`
|
|
9222
|
+
*
|
|
9223
|
+
* @param vaspId The id of a row of GET /v3/travel-rule/vasps/: a directory entry or a Didit network member.
|
|
9224
|
+
*/
|
|
9225
|
+
assignVasp(vaspId, params, options) {
|
|
9226
|
+
return this._client.request(TRAVEL_RULE_ASSIGN_VASP, [vaspId], params, options);
|
|
9227
|
+
}
|
|
9150
9228
|
/**
|
|
9151
9229
|
* Clear your decision on a VASP
|
|
9152
9230
|
*
|
|
@@ -9191,6 +9269,16 @@ var TravelRule = class extends APIResource {
|
|
|
9191
9269
|
listVaspQuestionnaires(vaspId, options) {
|
|
9192
9270
|
return this._client.request(TRAVEL_RULE_LIST_VASP_QUESTIONNAIRES, [vaspId], void 0, options);
|
|
9193
9271
|
}
|
|
9272
|
+
/**
|
|
9273
|
+
* List the members who can be assigned a VASP
|
|
9274
|
+
*
|
|
9275
|
+
* The application members who can review Travel Rule counterparties. Use one `email` as `assignee_email` of `POST /v3/travel-rule/vasps/{vasp_id}/assign/`. Needs the transactions read privilege.
|
|
9276
|
+
*
|
|
9277
|
+
* `GET /v3/travel-rule/vasps/reviewers/`
|
|
9278
|
+
*/
|
|
9279
|
+
listVaspReviewers(options) {
|
|
9280
|
+
return this._client.request(TRAVEL_RULE_LIST_VASP_REVIEWERS, [], void 0, options);
|
|
9281
|
+
}
|
|
9194
9282
|
/**
|
|
9195
9283
|
* Search the VASP directory
|
|
9196
9284
|
*
|
|
@@ -9257,6 +9345,18 @@ var TravelRule = class extends APIResource {
|
|
|
9257
9345
|
retrieveVaspScreening(vaspId, options) {
|
|
9258
9346
|
return this._client.request(TRAVEL_RULE_RETRIEVE_VASP_SCREENING, [vaspId], void 0, options);
|
|
9259
9347
|
}
|
|
9348
|
+
/**
|
|
9349
|
+
* Review a screening hit
|
|
9350
|
+
*
|
|
9351
|
+
* Records your review of one possible match of a screening. The screening score and status are recomputed from the reviewed hits, but the counterparty's decision is never changed for you: decide it with `PUT /v3/travel-rule/vasps/{vasp_id}/decision/`. Repeating the same review changes nothing (`changed: false`). Needs the transactions write privilege.
|
|
9352
|
+
*
|
|
9353
|
+
* `PATCH /v3/travel-rule/vasps/{vasp_id}/screening/`
|
|
9354
|
+
*
|
|
9355
|
+
* @param vaspId The id of a row of GET /v3/travel-rule/vasps/: a directory entry or a Didit network member.
|
|
9356
|
+
*/
|
|
9357
|
+
reviewVaspScreeningHit(vaspId, params, options) {
|
|
9358
|
+
return this._client.request(TRAVEL_RULE_REVIEW_VASP_SCREENING_HIT, [vaspId], params, options);
|
|
9359
|
+
}
|
|
9260
9360
|
/**
|
|
9261
9361
|
* Screen a VASP
|
|
9262
9362
|
*
|