exa-js 2.22.1 → 2.23.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.mjs CHANGED
@@ -4,7 +4,7 @@ import fetch2, { Headers } from "cross-fetch";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "exa-js",
7
- version: "2.22.1",
7
+ version: "2.23.0",
8
8
  description: "Exa SDK for Node.js and the browser",
9
9
  publishConfig: {
10
10
  access: "public"
@@ -672,6 +672,13 @@ var AgentRunsClient = class extends AgentBaseClient {
672
672
  async cancel(runId) {
673
673
  return this.request(`/${runId}/cancel`, "POST");
674
674
  }
675
+ /**
676
+ * Stop a running Agent run, completing it early with the results
677
+ * gathered so far. Only supported for `ultra` effort runs.
678
+ */
679
+ async stop(runId) {
680
+ return this.request(`/${runId}/stop`, "POST");
681
+ }
675
682
  /**
676
683
  * Delete a stored Agent run.
677
684
  */
@@ -824,7 +831,7 @@ var AgentBetaRunsClient = class extends AgentRunsClient {
824
831
  }
825
832
  /**
826
833
  * Stop a running Agent run, completing it early with the results
827
- * gathered so far. Only supported for `max` effort runs.
834
+ * gathered so far. Only supported for `ultra` effort runs.
828
835
  */
829
836
  async stop(runId, options) {
830
837
  return this.request(
@@ -1479,6 +1486,7 @@ var ImportStatus = /* @__PURE__ */ ((ImportStatus2) => {
1479
1486
  ImportStatus2["processing"] = "processing";
1480
1487
  ImportStatus2["completed"] = "completed";
1481
1488
  ImportStatus2["failed"] = "failed";
1489
+ ImportStatus2["canceled"] = "canceled";
1482
1490
  return ImportStatus2;
1483
1491
  })(ImportStatus || {});
1484
1492
  var MonitorObject = /* @__PURE__ */ ((MonitorObject2) => {
@@ -1577,6 +1585,7 @@ var WebsetSearchBehavior = /* @__PURE__ */ ((WebsetSearchBehavior2) => {
1577
1585
  var WebsetSearchCanceledReason = /* @__PURE__ */ ((WebsetSearchCanceledReason2) => {
1578
1586
  WebsetSearchCanceledReason2["webset_deleted"] = "webset_deleted";
1579
1587
  WebsetSearchCanceledReason2["webset_canceled"] = "webset_canceled";
1588
+ WebsetSearchCanceledReason2["out_of_credits"] = "out_of_credits";
1580
1589
  return WebsetSearchCanceledReason2;
1581
1590
  })(WebsetSearchCanceledReason || {});
1582
1591