@didit-protocol/sdk-node 2.0.0 → 2.1.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 CHANGED
@@ -282,7 +282,7 @@ function decodeDates(value, plan, named, depth = 0) {
282
282
  }
283
283
 
284
284
  // src/core/version.ts
285
- var VERSION = "2.0.0";
285
+ var VERSION = "2.1.0";
286
286
 
287
287
  // src/core/runtime.ts
288
288
  function processLike() {
@@ -1948,7 +1948,7 @@ var AccountApplications = class extends APIResource {
1948
1948
  /**
1949
1949
  * Create Application
1950
1950
  *
1951
- * Create an application inside an organization. The response includes `api_key`; persist it now (recoverable via GET). Requires owner/admin JWT.
1951
+ * 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.
1952
1952
  *
1953
1953
  * `POST /organizations/me/{org_id}/applications/`
1954
1954
  *
@@ -1985,7 +1985,7 @@ var AccountApplications = class extends APIResource {
1985
1985
  /**
1986
1986
  * Update Application
1987
1987
  *
1988
- * 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. Requires owner/admin JWT.
1988
+ * 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
1989
  *
1990
1990
  * `PATCH /organizations/me/{org_id}/applications/{app_id}/`
1991
1991
  *
@@ -2304,7 +2304,7 @@ var Billing = class extends APIResource {
2304
2304
  /**
2305
2305
  * Top up credits
2306
2306
  *
2307
- * Add credits via a hosted Stripe Checkout session (**\$50 to \$10,000** per top-up). Top-ups are available on the Free, Growth and Scale plans, added at face value with no discount or bonus, and last 12 months; Enterprise annual contracts cannot top up. Redirect the customer to the returned `checkout_session_url`.
2307
+ * Add credits via a hosted Stripe Checkout session (**\$50 to \$20,000** per top-up). Top-ups are available on the Free, Growth and Scale plans, added at face value with no discount or bonus, and last 12 months; Enterprise annual contracts cannot top up. Redirect the customer to the returned `checkout_session_url`.
2308
2308
  *
2309
2309
  * `POST /v3/billing/top-up/`
2310
2310
  */
@@ -8131,7 +8131,7 @@ var TransactionsRules = class extends APIResource {
8131
8131
  /**
8132
8132
  * Create rule
8133
8133
  *
8134
- * Create a CUSTOM transaction-monitoring rule. Titles are unique per application (duplicate -> 400). A `change_status` action targeting `AWAITING_USER` must carry `workflow_id`. Rules created in ACTIVE mode apply to new transactions immediately - the recommended workflow is create in TEST mode, backtest, then switch mode to ACTIVE.
8134
+ * Create a CUSTOM transaction-monitoring rule. Titles are unique per application (duplicate -> 400). A `change_status` action targeting `AWAITING_USER` must carry `workflow_id`. Rules created in ACTIVE mode apply to new transactions immediately - the recommended workflow is create in TEST mode, backtest, then switch mode to ACTIVE. To change a library rule, create it as a copy: send the library rule's definition with `metadata.based_on` (its library key) and `metadata.based_on_rule_uuid`.
8135
8135
  *
8136
8136
  * `POST /v3/transactions/rules/`
8137
8137
  */
@@ -8205,7 +8205,7 @@ var TransactionsRules = class extends APIResource {
8205
8205
  /**
8206
8206
  * Update rule
8207
8207
  *
8208
- * Partially update a rule. Custom rules accept every configuration field. Library (PRESET) rules accept only `mode` - use it to activate, disable, or switch a preset to TEST; any other field returns 400. An installed copy of a withheld library rule is switched off: setting its `mode` to anything but `DISABLED` answers 400 ("This library rule cannot run yet: its conditions read data the rules engine cannot evaluate.").
8208
+ * Partially update a rule. Custom rules accept every configuration field. Library (PRESET) rules accept only `mode` - use it to activate, disable, or switch a preset to TEST; any other field returns 400, because Didit maintains library rules and applies their updates automatically. To change a library rule's conditions, create a custom copy with `POST /v3/transactions/rules/` using the library rule's definition and `metadata.based_on` (the library key) and `metadata.based_on_rule_uuid`, then switch the library rule off with `mode: DISABLED` so a transaction does not alert twice. An installed copy of a withheld library rule is switched off: setting its `mode` to anything but `DISABLED` answers 400 ("This library rule cannot run yet: its conditions read data the rules engine cannot evaluate.").
8209
8209
  *
8210
8210
  * `PATCH /v3/transactions/rules/{rule_uuid}/`
8211
8211
  *