@athenaintel/sdk 4.3.324 → 4.3.326

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@athenaintel/sdk",
46
- "X-Fern-SDK-Version": "4.3.324",
47
- "User-Agent": "@athenaintel/sdk/4.3.324",
46
+ "X-Fern-SDK-Version": "4.3.326",
47
+ "User-Agent": "@athenaintel/sdk/4.3.326",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../core/index.js";
2
+ import * as errors from "../../errors/index.js";
3
+ export declare class ConflictError extends errors.AthenaIntelligenceError {
4
+ constructor(body: Record<string, unknown>, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ConflictError = void 0;
38
+ const errors = __importStar(require("../../errors/index.js"));
39
+ class ConflictError extends errors.AthenaIntelligenceError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "ConflictError",
43
+ statusCode: 409,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, ConflictError.prototype);
48
+ }
49
+ }
50
+ exports.ConflictError = ConflictError;
@@ -1,4 +1,5 @@
1
1
  export * from "./BadRequestError.js";
2
+ export * from "./ConflictError.js";
2
3
  export * from "./ContentTooLargeError.js";
3
4
  export * from "./ForbiddenError.js";
4
5
  export * from "./InternalServerError.js";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BadRequestError.js"), exports);
18
+ __exportStar(require("./ConflictError.js"), exports);
18
19
  __exportStar(require("./ContentTooLargeError.js"), exports);
19
20
  __exportStar(require("./ForbiddenError.js"), exports);
20
21
  __exportStar(require("./InternalServerError.js"), exports);
@@ -27,4 +27,22 @@ export declare class ThreadsClient {
27
27
  */
28
28
  getStatus(thread_id: string, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ThreadStatusResponseOut>;
29
29
  private __getStatus;
30
+ /**
31
+ * Stop a running thread execution. This will stop the thread if it is currently running and mark it as stopped.
32
+ *
33
+ * @param {string} thread_id - The unique thread ID to stop
34
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link AthenaIntelligence.BadRequestError}
37
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
38
+ * @throws {@link AthenaIntelligence.NotFoundError}
39
+ * @throws {@link AthenaIntelligence.ConflictError}
40
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
41
+ * @throws {@link AthenaIntelligence.InternalServerError}
42
+ *
43
+ * @example
44
+ * await client.threads.stop("thread_id")
45
+ */
46
+ stop(thread_id: string, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ThreadStopResponseOut>;
47
+ private __stop;
30
48
  }
@@ -133,5 +133,90 @@ class ThreadsClient {
133
133
  }
134
134
  });
135
135
  }
136
+ /**
137
+ * Stop a running thread execution. This will stop the thread if it is currently running and mark it as stopped.
138
+ *
139
+ * @param {string} thread_id - The unique thread ID to stop
140
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
141
+ *
142
+ * @throws {@link AthenaIntelligence.BadRequestError}
143
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
144
+ * @throws {@link AthenaIntelligence.NotFoundError}
145
+ * @throws {@link AthenaIntelligence.ConflictError}
146
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
147
+ * @throws {@link AthenaIntelligence.InternalServerError}
148
+ *
149
+ * @example
150
+ * await client.threads.stop("thread_id")
151
+ */
152
+ stop(thread_id, requestOptions) {
153
+ return core.HttpResponsePromise.fromPromise(this.__stop(thread_id, requestOptions));
154
+ }
155
+ __stop(thread_id, requestOptions) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
158
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
159
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
160
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
161
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, `api/v0/threads/${core.url.encodePathParam(thread_id)}/stop`),
162
+ method: "POST",
163
+ headers: _headers,
164
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
165
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
166
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
167
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
168
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
169
+ logging: this._options.logging,
170
+ });
171
+ if (_response.ok) {
172
+ return {
173
+ data: _response.body,
174
+ rawResponse: _response.rawResponse,
175
+ };
176
+ }
177
+ if (_response.error.reason === "status-code") {
178
+ switch (_response.error.statusCode) {
179
+ case 400:
180
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
181
+ case 401:
182
+ throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
183
+ case 404:
184
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
185
+ case 409:
186
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
187
+ case 422:
188
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
189
+ case 500:
190
+ throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
191
+ default:
192
+ throw new errors.AthenaIntelligenceError({
193
+ statusCode: _response.error.statusCode,
194
+ body: _response.error.body,
195
+ rawResponse: _response.rawResponse,
196
+ });
197
+ }
198
+ }
199
+ switch (_response.error.reason) {
200
+ case "non-json":
201
+ throw new errors.AthenaIntelligenceError({
202
+ statusCode: _response.error.statusCode,
203
+ body: _response.error.rawBody,
204
+ rawResponse: _response.rawResponse,
205
+ });
206
+ case "body-is-null":
207
+ throw new errors.AthenaIntelligenceError({
208
+ statusCode: _response.error.statusCode,
209
+ rawResponse: _response.rawResponse,
210
+ });
211
+ case "timeout":
212
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/threads/{thread_id}/stop.");
213
+ case "unknown":
214
+ throw new errors.AthenaIntelligenceError({
215
+ message: _response.error.errorMessage,
216
+ rawResponse: _response.rawResponse,
217
+ });
218
+ }
219
+ });
220
+ }
136
221
  }
137
222
  exports.ThreadsClient = ThreadsClient;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Response model for thread stop.
3
+ */
4
+ export interface ThreadStopResponseOut {
5
+ /** Status message about the stop */
6
+ message: string;
7
+ /** New status of the thread (always 'stopped') */
8
+ status: string;
9
+ /** ISO timestamp when thread was stopped */
10
+ stopped_at: string;
11
+ /** The thread ID that was stopped */
12
+ thread_id: string;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -59,4 +59,5 @@ export * from "./TextContent.js";
59
59
  export * from "./TextFormatModel.js";
60
60
  export * from "./ThemeColor.js";
61
61
  export * from "./ThreadStatusResponseOut.js";
62
+ export * from "./ThreadStopResponseOut.js";
62
63
  export * from "./WrapStrategy.js";
@@ -75,4 +75,5 @@ __exportStar(require("./TextContent.js"), exports);
75
75
  __exportStar(require("./TextFormatModel.js"), exports);
76
76
  __exportStar(require("./ThemeColor.js"), exports);
77
77
  __exportStar(require("./ThreadStatusResponseOut.js"), exports);
78
+ __exportStar(require("./ThreadStopResponseOut.js"), exports);
78
79
  __exportStar(require("./WrapStrategy.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.324";
1
+ export declare const SDK_VERSION = "4.3.326";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "4.3.324";
4
+ exports.SDK_VERSION = "4.3.326";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@athenaintel/sdk",
9
- "X-Fern-SDK-Version": "4.3.324",
10
- "User-Agent": "@athenaintel/sdk/4.3.324",
9
+ "X-Fern-SDK-Version": "4.3.326",
10
+ "User-Agent": "@athenaintel/sdk/4.3.326",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../core/index.mjs";
2
+ import * as errors from "../../errors/index.mjs";
3
+ export declare class ConflictError extends errors.AthenaIntelligenceError {
4
+ constructor(body: Record<string, unknown>, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,13 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../errors/index.mjs";
3
+ export class ConflictError extends errors.AthenaIntelligenceError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "ConflictError",
7
+ statusCode: 409,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, ConflictError.prototype);
12
+ }
13
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./BadRequestError.mjs";
2
+ export * from "./ConflictError.mjs";
2
3
  export * from "./ContentTooLargeError.mjs";
3
4
  export * from "./ForbiddenError.mjs";
4
5
  export * from "./InternalServerError.mjs";
@@ -1,4 +1,5 @@
1
1
  export * from "./BadRequestError.mjs";
2
+ export * from "./ConflictError.mjs";
2
3
  export * from "./ContentTooLargeError.mjs";
3
4
  export * from "./ForbiddenError.mjs";
4
5
  export * from "./InternalServerError.mjs";
@@ -27,4 +27,22 @@ export declare class ThreadsClient {
27
27
  */
28
28
  getStatus(thread_id: string, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ThreadStatusResponseOut>;
29
29
  private __getStatus;
30
+ /**
31
+ * Stop a running thread execution. This will stop the thread if it is currently running and mark it as stopped.
32
+ *
33
+ * @param {string} thread_id - The unique thread ID to stop
34
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link AthenaIntelligence.BadRequestError}
37
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
38
+ * @throws {@link AthenaIntelligence.NotFoundError}
39
+ * @throws {@link AthenaIntelligence.ConflictError}
40
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
41
+ * @throws {@link AthenaIntelligence.InternalServerError}
42
+ *
43
+ * @example
44
+ * await client.threads.stop("thread_id")
45
+ */
46
+ stop(thread_id: string, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ThreadStopResponseOut>;
47
+ private __stop;
30
48
  }
@@ -97,4 +97,89 @@ export class ThreadsClient {
97
97
  }
98
98
  });
99
99
  }
100
+ /**
101
+ * Stop a running thread execution. This will stop the thread if it is currently running and mark it as stopped.
102
+ *
103
+ * @param {string} thread_id - The unique thread ID to stop
104
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
105
+ *
106
+ * @throws {@link AthenaIntelligence.BadRequestError}
107
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
108
+ * @throws {@link AthenaIntelligence.NotFoundError}
109
+ * @throws {@link AthenaIntelligence.ConflictError}
110
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
111
+ * @throws {@link AthenaIntelligence.InternalServerError}
112
+ *
113
+ * @example
114
+ * await client.threads.stop("thread_id")
115
+ */
116
+ stop(thread_id, requestOptions) {
117
+ return core.HttpResponsePromise.fromPromise(this.__stop(thread_id, requestOptions));
118
+ }
119
+ __stop(thread_id, requestOptions) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
122
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
123
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
124
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
125
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, `api/v0/threads/${core.url.encodePathParam(thread_id)}/stop`),
126
+ method: "POST",
127
+ headers: _headers,
128
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
129
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
130
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
131
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
132
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
133
+ logging: this._options.logging,
134
+ });
135
+ if (_response.ok) {
136
+ return {
137
+ data: _response.body,
138
+ rawResponse: _response.rawResponse,
139
+ };
140
+ }
141
+ if (_response.error.reason === "status-code") {
142
+ switch (_response.error.statusCode) {
143
+ case 400:
144
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
145
+ case 401:
146
+ throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
147
+ case 404:
148
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
149
+ case 409:
150
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
151
+ case 422:
152
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
153
+ case 500:
154
+ throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
155
+ default:
156
+ throw new errors.AthenaIntelligenceError({
157
+ statusCode: _response.error.statusCode,
158
+ body: _response.error.body,
159
+ rawResponse: _response.rawResponse,
160
+ });
161
+ }
162
+ }
163
+ switch (_response.error.reason) {
164
+ case "non-json":
165
+ throw new errors.AthenaIntelligenceError({
166
+ statusCode: _response.error.statusCode,
167
+ body: _response.error.rawBody,
168
+ rawResponse: _response.rawResponse,
169
+ });
170
+ case "body-is-null":
171
+ throw new errors.AthenaIntelligenceError({
172
+ statusCode: _response.error.statusCode,
173
+ rawResponse: _response.rawResponse,
174
+ });
175
+ case "timeout":
176
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/threads/{thread_id}/stop.");
177
+ case "unknown":
178
+ throw new errors.AthenaIntelligenceError({
179
+ message: _response.error.errorMessage,
180
+ rawResponse: _response.rawResponse,
181
+ });
182
+ }
183
+ });
184
+ }
100
185
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Response model for thread stop.
3
+ */
4
+ export interface ThreadStopResponseOut {
5
+ /** Status message about the stop */
6
+ message: string;
7
+ /** New status of the thread (always 'stopped') */
8
+ status: string;
9
+ /** ISO timestamp when thread was stopped */
10
+ stopped_at: string;
11
+ /** The thread ID that was stopped */
12
+ thread_id: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -59,4 +59,5 @@ export * from "./TextContent.mjs";
59
59
  export * from "./TextFormatModel.mjs";
60
60
  export * from "./ThemeColor.mjs";
61
61
  export * from "./ThreadStatusResponseOut.mjs";
62
+ export * from "./ThreadStopResponseOut.mjs";
62
63
  export * from "./WrapStrategy.mjs";
@@ -59,4 +59,5 @@ export * from "./TextContent.mjs";
59
59
  export * from "./TextFormatModel.mjs";
60
60
  export * from "./ThemeColor.mjs";
61
61
  export * from "./ThreadStatusResponseOut.mjs";
62
+ export * from "./ThreadStopResponseOut.mjs";
62
63
  export * from "./WrapStrategy.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.324";
1
+ export declare const SDK_VERSION = "4.3.326";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.324";
1
+ export const SDK_VERSION = "4.3.326";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.324",
3
+ "version": "4.3.326",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -1274,6 +1274,69 @@ await client.threads.getStatus("thread_id");
1274
1274
  </dl>
1275
1275
 
1276
1276
 
1277
+ </dd>
1278
+ </dl>
1279
+ </details>
1280
+
1281
+ <details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">stop</a>(thread_id) -> AthenaIntelligence.ThreadStopResponseOut</code></summary>
1282
+ <dl>
1283
+ <dd>
1284
+
1285
+ #### 📝 Description
1286
+
1287
+ <dl>
1288
+ <dd>
1289
+
1290
+ <dl>
1291
+ <dd>
1292
+
1293
+ Stop a running thread execution. This will stop the thread if it is currently running and mark it as stopped.
1294
+ </dd>
1295
+ </dl>
1296
+ </dd>
1297
+ </dl>
1298
+
1299
+ #### 🔌 Usage
1300
+
1301
+ <dl>
1302
+ <dd>
1303
+
1304
+ <dl>
1305
+ <dd>
1306
+
1307
+ ```typescript
1308
+ await client.threads.stop("thread_id");
1309
+
1310
+ ```
1311
+ </dd>
1312
+ </dl>
1313
+ </dd>
1314
+ </dl>
1315
+
1316
+ #### ⚙️ Parameters
1317
+
1318
+ <dl>
1319
+ <dd>
1320
+
1321
+ <dl>
1322
+ <dd>
1323
+
1324
+ **thread_id:** `string` — The unique thread ID to stop
1325
+
1326
+ </dd>
1327
+ </dl>
1328
+
1329
+ <dl>
1330
+ <dd>
1331
+
1332
+ **requestOptions:** `ThreadsClient.RequestOptions`
1333
+
1334
+ </dd>
1335
+ </dl>
1336
+ </dd>
1337
+ </dl>
1338
+
1339
+
1277
1340
  </dd>
1278
1341
  </dl>
1279
1342
  </details>