@didit-protocol/sdk-node 2.12.0 → 2.13.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 +49 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +164 -16
- package/dist/index.d.ts +164 -16
- package/dist/index.js +49 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -278,7 +278,7 @@ function decodeDates(value, plan, named, depth = 0) {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
// src/core/version.ts
|
|
281
|
-
var VERSION = "2.
|
|
281
|
+
var VERSION = "2.13.0";
|
|
282
282
|
|
|
283
283
|
// src/core/runtime.ts
|
|
284
284
|
function processLike() {
|
|
@@ -1665,6 +1665,14 @@ var DATE_PLANS = {
|
|
|
1665
1665
|
action_required: "TransactionWalletOwnershipAction"
|
|
1666
1666
|
}
|
|
1667
1667
|
},
|
|
1668
|
+
TransactionListTravelRule: {
|
|
1669
|
+
p: {
|
|
1670
|
+
data_unmasked: "TravelRuleDataUnmasked",
|
|
1671
|
+
counterparty_vasp: { p: { dd_assessed_at: 1 } },
|
|
1672
|
+
delivery: "TravelRuleDelivery",
|
|
1673
|
+
discovery: { i: "TravelRuleDiscoveryStep" }
|
|
1674
|
+
}
|
|
1675
|
+
},
|
|
1668
1676
|
TransactionNote: { p: { created_at: 1 } },
|
|
1669
1677
|
TransactionRuleDetail: { p: { latest_triggered_at: 1, created_at: 1, updated_at: 1 } },
|
|
1670
1678
|
TransactionSummary: { p: { txn_date: 1, created_at: 1 } },
|
|
@@ -1673,7 +1681,8 @@ var DATE_PLANS = {
|
|
|
1673
1681
|
data_unmasked: "TravelRuleDataUnmasked",
|
|
1674
1682
|
counterparty_vasp: { p: { dd_assessed_at: 1 } },
|
|
1675
1683
|
delivery: "TravelRuleDelivery",
|
|
1676
|
-
discovery: { i: "TravelRuleDiscoveryStep" }
|
|
1684
|
+
discovery: { i: "TravelRuleDiscoveryStep" },
|
|
1685
|
+
deliveries: { i: "TravelRuleDeliveryLogEntry" }
|
|
1677
1686
|
}
|
|
1678
1687
|
},
|
|
1679
1688
|
TransactionWalletOwnershipAction: { p: { expires_at: 1 } },
|
|
@@ -1681,7 +1690,9 @@ var DATE_PLANS = {
|
|
|
1681
1690
|
TransactionsListRelatedResponse: { p: { results: { i: "TransactionSummary" } } },
|
|
1682
1691
|
TransactionsListResponse: {
|
|
1683
1692
|
p: {
|
|
1684
|
-
results: {
|
|
1693
|
+
results: {
|
|
1694
|
+
i: { p: { txn_date: 1, created_at: 1, travel_rule: "TransactionListTravelRule" } }
|
|
1695
|
+
}
|
|
1685
1696
|
}
|
|
1686
1697
|
},
|
|
1687
1698
|
TransactionsNotesListResponse: { p: { results: { i: "TransactionNote" } } },
|
|
@@ -1703,6 +1714,8 @@ var DATE_PLANS = {
|
|
|
1703
1714
|
TravelRuleCounterpartyScreeningStatus: { p: { screening: "TravelRuleCounterpartyScreening" } },
|
|
1704
1715
|
TravelRuleDataUnmasked: { p: { at: 1 } },
|
|
1705
1716
|
TravelRuleDelivery: { p: { next_attempt_at: 1, delivered_at: 1 } },
|
|
1717
|
+
TravelRuleDeliveryLogEntry: { p: { created_at: 1, delivered_at: 1 } },
|
|
1718
|
+
TravelRuleDeliveryLogPage: { p: { results: { i: "TravelRuleDeliveryLogEntry" } } },
|
|
1706
1719
|
TravelRuleDiscoveryStep: { p: { at: 1 } },
|
|
1707
1720
|
TravelRuleInboundResponse: { p: { travel_rule: "TravelRuleTransferDetail" } },
|
|
1708
1721
|
TravelRuleListVaspsResponse: { p: { results: { i: "VaspDirectoryEntry" } } },
|
|
@@ -1762,7 +1775,8 @@ var DATE_PLANS = {
|
|
|
1762
1775
|
data_unmasked: "TravelRuleDataUnmasked",
|
|
1763
1776
|
created_at: 1,
|
|
1764
1777
|
delivery: "TravelRuleDelivery",
|
|
1765
|
-
discovery: { i: "TravelRuleDiscoveryStep" }
|
|
1778
|
+
discovery: { i: "TravelRuleDiscoveryStep" },
|
|
1779
|
+
deliveries: { i: "TravelRuleDeliveryLogEntry" }
|
|
1766
1780
|
}
|
|
1767
1781
|
},
|
|
1768
1782
|
TravelRuleTransferRow: { p: { txn_date: 1, deadline_at: 1, created_at: 1 } },
|
|
@@ -1948,7 +1962,7 @@ var AccountApplications = class extends APIResource {
|
|
|
1948
1962
|
*
|
|
1949
1963
|
* Create an application inside an organization, in the data location you choose (`data_location`, the European Union by default; it can't be changed afterwards). The response includes `api_key`; persist it now (recoverable via GET). Requires owner/admin JWT.
|
|
1950
1964
|
*
|
|
1951
|
-
* Set initiate_login_uri to your HTTPS sign-in page on the exact website_url hostname, or an empty string to disable admin-sent sign-in links. Changing website_url also revalidates the saved sign-in URI. Invalid values return 400 with an initiate_login_uri field error; hostname and URI policy failures use https_url_on_registered_website_required.
|
|
1965
|
+
* Set initiate_login_uri to your HTTPS sign-in page on the exact website_url hostname, or an empty string to disable admin-sent sign-in links. Changing website_url also revalidates the saved sign-in URI. Invalid values return 400 with an initiate_login_uri field error; hostname and URI policy failures use https_url_on_registered_website_required. An MCP token (a "Log in with Didit" grant, `token_use` `mcp`) also needs the `didit:management` scope, which carries the `applications` resource; a grant limited to `didit:verification` is refused with 403 before anything is created.
|
|
1952
1966
|
*
|
|
1953
1967
|
* `POST /organizations/me/{org_id}/applications/`
|
|
1954
1968
|
*
|
|
@@ -1960,7 +1974,7 @@ var AccountApplications = class extends APIResource {
|
|
|
1960
1974
|
/**
|
|
1961
1975
|
* List the organization's applications
|
|
1962
1976
|
*
|
|
1963
|
-
* List the organization's applications, 50 per page by default. Use this to discover `app_id` values when recovering credentials from a new machine, then call `GET /organizations/me/{org_id}/applications/{app_id}/` for the API key. Requires an owner or admin Bearer token.
|
|
1977
|
+
* List the organization's applications, 50 per page by default. Use this to discover `app_id` values when recovering credentials from a new machine, then call `GET /organizations/me/{org_id}/applications/{app_id}/` for the API key. Requires an owner or admin Bearer token. An MCP token (a "Log in with Didit" grant, `token_use` `mcp`) also needs the `didit:management` scope, which carries the `applications` resource; a grant limited to `didit:verification` is refused with 403 before any application is listed.
|
|
1964
1978
|
*
|
|
1965
1979
|
* `GET /organizations/me/{org_id}/applications/`
|
|
1966
1980
|
*
|
|
@@ -1972,7 +1986,7 @@ var AccountApplications = class extends APIResource {
|
|
|
1972
1986
|
/**
|
|
1973
1987
|
* Get Application Credentials
|
|
1974
1988
|
*
|
|
1975
|
-
* Read one application's full record including `client_id` and `api_key`. Use this to recover a lost `api_key`.
|
|
1989
|
+
* Read one application's full record including `client_id` and `api_key`. Use this to recover a lost `api_key`. An MCP token (a "Log in with Didit" grant, `token_use` `mcp`) also needs the `didit:management` scope, which carries the `applications` resource; a grant limited to `didit:verification` is refused with 403 before the application is read.
|
|
1976
1990
|
*
|
|
1977
1991
|
* `GET /organizations/me/{org_id}/applications/{app_id}/`
|
|
1978
1992
|
*
|
|
@@ -1987,7 +2001,7 @@ var AccountApplications = class extends APIResource {
|
|
|
1987
2001
|
*
|
|
1988
2002
|
* Update application metadata (name, URLs, redirect URIs). `api_key` and `client_id` are never rotated. `products` is read-only: a `products` key in the body is ignored. `data_location` can't be changed after the application is created, except once on the live application created with your organization, while it is unused (see the request body). Requires owner/admin JWT.
|
|
1989
2003
|
*
|
|
1990
|
-
* Set initiate_login_uri to your HTTPS sign-in page on the exact website_url hostname, or an empty string to disable admin-sent sign-in links. Changing website_url also revalidates the saved sign-in URI. Invalid values return 400 with an initiate_login_uri field error; hostname and URI policy failures use https_url_on_registered_website_required.
|
|
2004
|
+
* Set initiate_login_uri to your HTTPS sign-in page on the exact website_url hostname, or an empty string to disable admin-sent sign-in links. Changing website_url also revalidates the saved sign-in URI. Invalid values return 400 with an initiate_login_uri field error; hostname and URI policy failures use https_url_on_registered_website_required. An MCP token (a "Log in with Didit" grant, `token_use` `mcp`) also needs the `didit:management` scope, which carries the `applications` resource; a grant limited to `didit:verification` is refused with 403 before anything is changed.
|
|
1991
2005
|
*
|
|
1992
2006
|
* `PATCH /organizations/me/{org_id}/applications/{app_id}/`
|
|
1993
2007
|
*
|
|
@@ -5109,7 +5123,7 @@ var Investigator = class extends APIResource {
|
|
|
5109
5123
|
/**
|
|
5110
5124
|
* Override a recommendation
|
|
5111
5125
|
*
|
|
5112
|
-
* Takes another action with a category and a reason. Also overrides a decision the Investigator took on its own while it still stands. Restricted keys need the `decisions` scope (write); transaction alerts also need `transactions` (write). Escalating a verification or transaction opens a case.
|
|
5126
|
+
* Takes another action with a category and a reason. Also overrides a decision the Investigator took on its own while it still stands. Restricted keys need the `decisions` scope (write); transaction alerts also need `transactions` (write). Escalating a verification or transaction opens a case. Automated transaction decisions can be overridden only while the original decision still stands. The original decision remains unchanged, the override is recorded separately, and an immediate policy question is raised for its recorded situations with the original policy action. The override does not charge for another automated decision.
|
|
5113
5127
|
*
|
|
5114
5128
|
* `POST /v3/investigator/runs/{run_id}/override/`
|
|
5115
5129
|
*
|
|
@@ -8046,6 +8060,12 @@ var TRANSACTIONS_TRAVEL_RULE_CREATE_MESSAGE = {
|
|
|
8046
8060
|
body: "json",
|
|
8047
8061
|
dates: "TravelRuleMessage"
|
|
8048
8062
|
};
|
|
8063
|
+
var TRANSACTIONS_TRAVEL_RULE_LIST_DELIVERIES = {
|
|
8064
|
+
method: "GET",
|
|
8065
|
+
path: "/v3/transactions/{transaction_id}/travel-rule/deliveries/",
|
|
8066
|
+
query: ["limit", "offset"],
|
|
8067
|
+
dates: "TravelRuleDeliveryLogPage"
|
|
8068
|
+
};
|
|
8049
8069
|
var TRANSACTIONS_TRAVEL_RULE_LIST_MESSAGES = {
|
|
8050
8070
|
method: "GET",
|
|
8051
8071
|
path: "/v3/transactions/{transaction_id}/travel-rule/messages/",
|
|
@@ -8095,7 +8115,9 @@ var TRANSACTIONS_LIST = {
|
|
|
8095
8115
|
query: ["limit", "offset", "travel_rule_status", "assignee"],
|
|
8096
8116
|
dates: {
|
|
8097
8117
|
p: {
|
|
8098
|
-
results: {
|
|
8118
|
+
results: {
|
|
8119
|
+
i: { p: { txn_date: 1, created_at: 1, travel_rule: "TransactionListTravelRule" } }
|
|
8120
|
+
}
|
|
8099
8121
|
}
|
|
8100
8122
|
}
|
|
8101
8123
|
};
|
|
@@ -8289,6 +8311,23 @@ var TransactionsTravelRule = class extends APIResource {
|
|
|
8289
8311
|
options
|
|
8290
8312
|
);
|
|
8291
8313
|
}
|
|
8314
|
+
/**
|
|
8315
|
+
* List Travel Rule delivery history
|
|
8316
|
+
*
|
|
8317
|
+
* Read the complete delivery history for a transaction, oldest first. Requires transaction read permission. Unlike the newest 100 entries embedded in detail, this endpoint paginates the full history. See [delivery history](/management-api/travel-rule/list-deliveries).
|
|
8318
|
+
*
|
|
8319
|
+
* `GET /v3/transactions/{transaction_id}/travel-rule/deliveries/`
|
|
8320
|
+
*
|
|
8321
|
+
* @param transactionId Didit-stable transaction UUID that owns the transfer.
|
|
8322
|
+
*/
|
|
8323
|
+
listDeliveries(transactionId, params = {}, options) {
|
|
8324
|
+
return this._client.requestPage(
|
|
8325
|
+
TRANSACTIONS_TRAVEL_RULE_LIST_DELIVERIES,
|
|
8326
|
+
[transactionId],
|
|
8327
|
+
params,
|
|
8328
|
+
options
|
|
8329
|
+
);
|
|
8330
|
+
}
|
|
8292
8331
|
/**
|
|
8293
8332
|
* List Travel Rule messages
|
|
8294
8333
|
*
|