@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.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.16.0";
|
|
332
332
|
|
|
333
333
|
// src/core/runtime.ts
|
|
334
334
|
function processLike() {
|
|
@@ -1766,8 +1766,10 @@ var DATE_PLANS = {
|
|
|
1766
1766
|
TravelRuleCounterpartyScreeningResult: { p: { screening: "TravelRuleCounterpartyScreening" } },
|
|
1767
1767
|
TravelRuleCounterpartyScreeningStatus: { p: { screening: "TravelRuleCounterpartyScreening" } },
|
|
1768
1768
|
TravelRuleDataUnmasked: { p: { at: 1 } },
|
|
1769
|
-
TravelRuleDelivery: { p: { next_attempt_at: 1, delivered_at: 1 } },
|
|
1770
|
-
TravelRuleDeliveryLogEntry: {
|
|
1769
|
+
TravelRuleDelivery: { p: { next_attempt_at: 1, delivered_at: 1, updated_at: 1 } },
|
|
1770
|
+
TravelRuleDeliveryLogEntry: {
|
|
1771
|
+
p: { created_at: 1, delivered_at: 1, updated_at: 1, next_attempt_at: 1 }
|
|
1772
|
+
},
|
|
1771
1773
|
TravelRuleDeliveryLogPage: { p: { results: { i: "TravelRuleDeliveryLogEntry" } } },
|
|
1772
1774
|
TravelRuleDiscoveryStep: { p: { at: 1 } },
|
|
1773
1775
|
TravelRuleInboundResponse: { p: { travel_rule: "TravelRuleTransferDetail" } },
|
|
@@ -1839,8 +1841,12 @@ var DATE_PLANS = {
|
|
|
1839
1841
|
TravelRuleUserChoice: { p: { link_expires_at: 1 } },
|
|
1840
1842
|
TravelRuleUserLinkResponse: { p: { expires_at: 1 } },
|
|
1841
1843
|
TravelRuleWalletAddressesListResponse: { p: { results: { i: "WalletAddressEntry" } } },
|
|
1844
|
+
TravelRuleWalletAddressesListTransfersResponse: {
|
|
1845
|
+
p: { results: { i: "TravelRuleWalletTransfer" } }
|
|
1846
|
+
},
|
|
1842
1847
|
TravelRuleWalletProofReview: { p: { method_chosen_at: 1, decided_at: 1, created_at: 1 } },
|
|
1843
1848
|
TravelRuleWalletProofsListResponse: { p: { results: { i: "TravelRuleWalletProofReview" } } },
|
|
1849
|
+
TravelRuleWalletTransfer: { p: { created_at: 1 } },
|
|
1844
1850
|
TravelRuleWidgetSessionResponse: { p: { expires_at: 1 } },
|
|
1845
1851
|
TravelRuleWorkspace: {
|
|
1846
1852
|
p: {
|
|
@@ -8710,6 +8716,17 @@ var TRAVEL_RULE_WALLET_ADDRESSES_LIST = {
|
|
|
8710
8716
|
query: ["limit", "offset"],
|
|
8711
8717
|
dates: { p: { results: { i: "WalletAddressEntry" } } }
|
|
8712
8718
|
};
|
|
8719
|
+
var TRAVEL_RULE_WALLET_ADDRESSES_LIST_TRANSFERS = {
|
|
8720
|
+
method: "GET",
|
|
8721
|
+
path: "/v3/travel-rule/wallet-addresses/{entry_uuid}/transfers/",
|
|
8722
|
+
query: ["limit", "offset"],
|
|
8723
|
+
dates: { p: { results: { i: "TravelRuleWalletTransfer" } } }
|
|
8724
|
+
};
|
|
8725
|
+
var TRAVEL_RULE_WALLET_ADDRESSES_LOOKUP = {
|
|
8726
|
+
method: "GET",
|
|
8727
|
+
path: "/v3/travel-rule/wallet-addresses/lookup/",
|
|
8728
|
+
query: ["address", "chain", "memo"]
|
|
8729
|
+
};
|
|
8713
8730
|
var TRAVEL_RULE_WALLET_ADDRESSES_UPDATE = {
|
|
8714
8731
|
method: "PATCH",
|
|
8715
8732
|
path: "/v3/travel-rule/wallet-addresses/{entry_uuid}/",
|
|
@@ -8953,7 +8970,7 @@ var TravelRuleTransfers = class extends APIResource {
|
|
|
8953
8970
|
/**
|
|
8954
8971
|
* List Travel Rule transfers
|
|
8955
8972
|
*
|
|
8956
|
-
* Your application's Travel Rule transfers, newest first, paginated with `limit` (default 50) and `offset`. Rows carry VASP names, wallets
|
|
8973
|
+
* 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
8974
|
*
|
|
8958
8975
|
* `GET /v3/travel-rule/transfers/`
|
|
8959
8976
|
*/
|
|
@@ -9038,6 +9055,33 @@ var TravelRuleWalletAddresses = class extends APIResource {
|
|
|
9038
9055
|
list(params = {}, options) {
|
|
9039
9056
|
return this._client.requestPage(TRAVEL_RULE_WALLET_ADDRESSES_LIST, [], params, options);
|
|
9040
9057
|
}
|
|
9058
|
+
/**
|
|
9059
|
+
* List the transfers that used a wallet address
|
|
9060
|
+
*
|
|
9061
|
+
* 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.
|
|
9062
|
+
*
|
|
9063
|
+
* `GET /v3/travel-rule/wallet-addresses/{entry_uuid}/transfers/`
|
|
9064
|
+
*
|
|
9065
|
+
* @param entryUuid entry_uuid
|
|
9066
|
+
*/
|
|
9067
|
+
listTransfers(entryUuid, params = {}, options) {
|
|
9068
|
+
return this._client.requestPage(
|
|
9069
|
+
TRAVEL_RULE_WALLET_ADDRESSES_LIST_TRANSFERS,
|
|
9070
|
+
[entryUuid],
|
|
9071
|
+
params,
|
|
9072
|
+
options
|
|
9073
|
+
);
|
|
9074
|
+
}
|
|
9075
|
+
/**
|
|
9076
|
+
* Look up a wallet address
|
|
9077
|
+
*
|
|
9078
|
+
* 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.
|
|
9079
|
+
*
|
|
9080
|
+
* `GET /v3/travel-rule/wallet-addresses/lookup/`
|
|
9081
|
+
*/
|
|
9082
|
+
lookup(params, options) {
|
|
9083
|
+
return this._client.request(TRAVEL_RULE_WALLET_ADDRESSES_LOOKUP, [], params, options);
|
|
9084
|
+
}
|
|
9041
9085
|
/**
|
|
9042
9086
|
* Update wallet address holder metadata
|
|
9043
9087
|
*
|