@athenaintel/sdk 4.3.2130 → 4.3.2131

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.2130",
47
- "User-Agent": "@athenaintel/sdk/4.3.2130",
46
+ "X-Fern-SDK-Version": "4.3.2131",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2131",
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);
@@ -237,19 +237,23 @@ class ThreadsClient {
237
237
  }
238
238
  __getStatus(request, requestOptions) {
239
239
  return __awaiter(this, void 0, void 0, function* () {
240
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
241
- const { thread_id: threadId } = request;
240
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
241
+ const { thread_id: threadId, include_messages: includeMessages } = request;
242
+ const _queryParams = {};
243
+ if (includeMessages !== undefined) {
244
+ _queryParams.include_messages = (_a = includeMessages === null || includeMessages === void 0 ? void 0 : includeMessages.toString()) !== null && _a !== void 0 ? _a : null;
245
+ }
242
246
  const _authRequest = yield this._options.authProvider.getAuthRequest();
243
- 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);
244
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
245
- 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(threadId)}/status`),
247
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
248
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
249
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.AthenaIntelligenceEnvironment.Production, `api/v0/threads/${core.url.encodePathParam(threadId)}/status`),
246
250
  method: "GET",
247
251
  headers: _headers,
248
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
249
- 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,
250
- 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,
252
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
253
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
254
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
251
255
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
252
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
256
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
253
257
  logging: this._options.logging,
254
258
  });
255
259
  if (_response.ok) {
@@ -7,4 +7,6 @@
7
7
  export interface GetStatusThreadsRequest {
8
8
  /** The unique thread ID to check status for */
9
9
  thread_id: string;
10
+ /** Whether to materialize checkpoint messages. By default, deployments with lightweight active reads enabled omit messages while a run is scheduled, queued, or running, and include them once it is terminal. Set true to force messages or false to skip them. */
11
+ include_messages?: boolean | null;
10
12
  }
@@ -23,7 +23,7 @@ export interface ConversationAssetInfo {
23
23
  linked_aops: Record<string, unknown>[] | null;
24
24
  /** List of linked project assets */
25
25
  linked_projects: Record<string, unknown>[] | null;
26
- /** Complete list of messages in the conversation from checkpoints */
26
+ /** Complete list of messages in the conversation from checkpoints. May be null for active status polls when lightweight reads are enabled; terminal responses include messages by default. */
27
27
  messages?: AthenaIntelligence.ConversationMessage[] | null;
28
28
  /** Model used in conversation */
29
29
  model: string | null;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2130";
1
+ export declare const SDK_VERSION = "4.3.2131";
@@ -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.2130";
4
+ exports.SDK_VERSION = "4.3.2131";
@@ -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.2130",
10
- "User-Agent": "@athenaintel/sdk/4.3.2130",
9
+ "X-Fern-SDK-Version": "4.3.2131",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2131",
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);
@@ -201,19 +201,23 @@ export class ThreadsClient {
201
201
  }
202
202
  __getStatus(request, requestOptions) {
203
203
  return __awaiter(this, void 0, void 0, function* () {
204
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
205
- const { thread_id: threadId } = request;
204
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
205
+ const { thread_id: threadId, include_messages: includeMessages } = request;
206
+ const _queryParams = {};
207
+ if (includeMessages !== undefined) {
208
+ _queryParams.include_messages = (_a = includeMessages === null || includeMessages === void 0 ? void 0 : includeMessages.toString()) !== null && _a !== void 0 ? _a : null;
209
+ }
206
210
  const _authRequest = yield this._options.authProvider.getAuthRequest();
207
- 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);
208
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
209
- 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(threadId)}/status`),
211
+ const _headers = mergeHeaders(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
212
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
213
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.AthenaIntelligenceEnvironment.Production, `api/v0/threads/${core.url.encodePathParam(threadId)}/status`),
210
214
  method: "GET",
211
215
  headers: _headers,
212
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
213
- 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,
214
- 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,
216
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
217
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
218
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
215
219
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
216
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
220
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
217
221
  logging: this._options.logging,
218
222
  });
219
223
  if (_response.ok) {
@@ -7,4 +7,6 @@
7
7
  export interface GetStatusThreadsRequest {
8
8
  /** The unique thread ID to check status for */
9
9
  thread_id: string;
10
+ /** Whether to materialize checkpoint messages. By default, deployments with lightweight active reads enabled omit messages while a run is scheduled, queued, or running, and include them once it is terminal. Set true to force messages or false to skip them. */
11
+ include_messages?: boolean | null;
10
12
  }
@@ -23,7 +23,7 @@ export interface ConversationAssetInfo {
23
23
  linked_aops: Record<string, unknown>[] | null;
24
24
  /** List of linked project assets */
25
25
  linked_projects: Record<string, unknown>[] | null;
26
- /** Complete list of messages in the conversation from checkpoints */
26
+ /** Complete list of messages in the conversation from checkpoints. May be null for active status polls when lightweight reads are enabled; terminal responses include messages by default. */
27
27
  messages?: AthenaIntelligence.ConversationMessage[] | null;
28
28
  /** Model used in conversation */
29
29
  model: string | null;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2130";
1
+ export declare const SDK_VERSION = "4.3.2131";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2130";
1
+ export const SDK_VERSION = "4.3.2131";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2130",
3
+ "version": "4.3.2131",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",