@didit-protocol/sdk-node 2.15.0 → 2.16.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 +48 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +144 -24
- package/dist/index.d.ts +144 -24
- package/dist/index.js +48 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -324,7 +324,7 @@ function decodeDates(value, plan, named, depth = 0) {
|
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
// src/core/version.ts
|
|
327
|
-
var VERSION = "2.
|
|
327
|
+
var VERSION = "2.16.0";
|
|
328
328
|
|
|
329
329
|
// src/core/runtime.ts
|
|
330
330
|
function processLike() {
|
|
@@ -1762,8 +1762,10 @@ var DATE_PLANS = {
|
|
|
1762
1762
|
TravelRuleCounterpartyScreeningResult: { p: { screening: "TravelRuleCounterpartyScreening" } },
|
|
1763
1763
|
TravelRuleCounterpartyScreeningStatus: { p: { screening: "TravelRuleCounterpartyScreening" } },
|
|
1764
1764
|
TravelRuleDataUnmasked: { p: { at: 1 } },
|
|
1765
|
-
TravelRuleDelivery: { p: { next_attempt_at: 1, delivered_at: 1 } },
|
|
1766
|
-
TravelRuleDeliveryLogEntry: {
|
|
1765
|
+
TravelRuleDelivery: { p: { next_attempt_at: 1, delivered_at: 1, updated_at: 1 } },
|
|
1766
|
+
TravelRuleDeliveryLogEntry: {
|
|
1767
|
+
p: { created_at: 1, delivered_at: 1, updated_at: 1, next_attempt_at: 1 }
|
|
1768
|
+
},
|
|
1767
1769
|
TravelRuleDeliveryLogPage: { p: { results: { i: "TravelRuleDeliveryLogEntry" } } },
|
|
1768
1770
|
TravelRuleDiscoveryStep: { p: { at: 1 } },
|
|
1769
1771
|
TravelRuleInboundResponse: { p: { travel_rule: "TravelRuleTransferDetail" } },
|
|
@@ -1835,8 +1837,12 @@ var DATE_PLANS = {
|
|
|
1835
1837
|
TravelRuleUserChoice: { p: { link_expires_at: 1 } },
|
|
1836
1838
|
TravelRuleUserLinkResponse: { p: { expires_at: 1 } },
|
|
1837
1839
|
TravelRuleWalletAddressesListResponse: { p: { results: { i: "WalletAddressEntry" } } },
|
|
1840
|
+
TravelRuleWalletAddressesListTransfersResponse: {
|
|
1841
|
+
p: { results: { i: "TravelRuleWalletTransfer" } }
|
|
1842
|
+
},
|
|
1838
1843
|
TravelRuleWalletProofReview: { p: { method_chosen_at: 1, decided_at: 1, created_at: 1 } },
|
|
1839
1844
|
TravelRuleWalletProofsListResponse: { p: { results: { i: "TravelRuleWalletProofReview" } } },
|
|
1845
|
+
TravelRuleWalletTransfer: { p: { created_at: 1 } },
|
|
1840
1846
|
TravelRuleWidgetSessionResponse: { p: { expires_at: 1 } },
|
|
1841
1847
|
TravelRuleWorkspace: {
|
|
1842
1848
|
p: {
|
|
@@ -8706,6 +8712,17 @@ var TRAVEL_RULE_WALLET_ADDRESSES_LIST = {
|
|
|
8706
8712
|
query: ["limit", "offset"],
|
|
8707
8713
|
dates: { p: { results: { i: "WalletAddressEntry" } } }
|
|
8708
8714
|
};
|
|
8715
|
+
var TRAVEL_RULE_WALLET_ADDRESSES_LIST_TRANSFERS = {
|
|
8716
|
+
method: "GET",
|
|
8717
|
+
path: "/v3/travel-rule/wallet-addresses/{entry_uuid}/transfers/",
|
|
8718
|
+
query: ["limit", "offset"],
|
|
8719
|
+
dates: { p: { results: { i: "TravelRuleWalletTransfer" } } }
|
|
8720
|
+
};
|
|
8721
|
+
var TRAVEL_RULE_WALLET_ADDRESSES_LOOKUP = {
|
|
8722
|
+
method: "GET",
|
|
8723
|
+
path: "/v3/travel-rule/wallet-addresses/lookup/",
|
|
8724
|
+
query: ["address", "chain", "memo"]
|
|
8725
|
+
};
|
|
8709
8726
|
var TRAVEL_RULE_WALLET_ADDRESSES_UPDATE = {
|
|
8710
8727
|
method: "PATCH",
|
|
8711
8728
|
path: "/v3/travel-rule/wallet-addresses/{entry_uuid}/",
|
|
@@ -8949,7 +8966,7 @@ var TravelRuleTransfers = class extends APIResource {
|
|
|
8949
8966
|
/**
|
|
8950
8967
|
* List Travel Rule transfers
|
|
8951
8968
|
*
|
|
8952
|
-
* Your application's Travel Rule transfers, newest first, paginated with `limit` (default 50) and `offset`. Rows carry VASP names, wallets
|
|
8969
|
+
* 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."]}`.
|
|
8953
8970
|
*
|
|
8954
8971
|
* `GET /v3/travel-rule/transfers/`
|
|
8955
8972
|
*/
|
|
@@ -9034,6 +9051,33 @@ var TravelRuleWalletAddresses = class extends APIResource {
|
|
|
9034
9051
|
list(params = {}, options) {
|
|
9035
9052
|
return this._client.requestPage(TRAVEL_RULE_WALLET_ADDRESSES_LIST, [], params, options);
|
|
9036
9053
|
}
|
|
9054
|
+
/**
|
|
9055
|
+
* List the transfers that used a wallet address
|
|
9056
|
+
*
|
|
9057
|
+
* 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.
|
|
9058
|
+
*
|
|
9059
|
+
* `GET /v3/travel-rule/wallet-addresses/{entry_uuid}/transfers/`
|
|
9060
|
+
*
|
|
9061
|
+
* @param entryUuid entry_uuid
|
|
9062
|
+
*/
|
|
9063
|
+
listTransfers(entryUuid, params = {}, options) {
|
|
9064
|
+
return this._client.requestPage(
|
|
9065
|
+
TRAVEL_RULE_WALLET_ADDRESSES_LIST_TRANSFERS,
|
|
9066
|
+
[entryUuid],
|
|
9067
|
+
params,
|
|
9068
|
+
options
|
|
9069
|
+
);
|
|
9070
|
+
}
|
|
9071
|
+
/**
|
|
9072
|
+
* Look up a wallet address
|
|
9073
|
+
*
|
|
9074
|
+
* 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.
|
|
9075
|
+
*
|
|
9076
|
+
* `GET /v3/travel-rule/wallet-addresses/lookup/`
|
|
9077
|
+
*/
|
|
9078
|
+
lookup(params, options) {
|
|
9079
|
+
return this._client.request(TRAVEL_RULE_WALLET_ADDRESSES_LOOKUP, [], params, options);
|
|
9080
|
+
}
|
|
9037
9081
|
/**
|
|
9038
9082
|
* Update wallet address holder metadata
|
|
9039
9083
|
*
|