@athenaintel/sdk 4.3.2168 → 4.3.2170

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.2168",
47
- "User-Agent": "@athenaintel/sdk/4.3.2168",
46
+ "X-Fern-SDK-Version": "4.3.2170",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2170",
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);
@@ -36,6 +36,7 @@ export declare class SemanticModelClient {
36
36
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
38
  * @throws {@link AthenaIntelligence.UnauthorizedError}
39
+ * @throws {@link AthenaIntelligence.ForbiddenError}
39
40
  * @throws {@link AthenaIntelligence.NotFoundError}
40
41
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
41
42
  * @throws {@link AthenaIntelligence.BadGatewayError}
@@ -154,6 +154,7 @@ class SemanticModelClient {
154
154
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
155
155
  *
156
156
  * @throws {@link AthenaIntelligence.UnauthorizedError}
157
+ * @throws {@link AthenaIntelligence.ForbiddenError}
157
158
  * @throws {@link AthenaIntelligence.NotFoundError}
158
159
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
159
160
  * @throws {@link AthenaIntelligence.BadGatewayError}
@@ -193,6 +194,8 @@ class SemanticModelClient {
193
194
  switch (_response.error.statusCode) {
194
195
  case 401:
195
196
  throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
197
+ case 403:
198
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
196
199
  case 404:
197
200
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
198
201
  case 422:
@@ -5,6 +5,8 @@ export interface GeneralAgentConfig {
5
5
  enabled_tools?: GeneralAgentConfig.EnabledTools.Item[];
6
6
  knowledge_base_asset_ids?: string[];
7
7
  model?: string | null;
8
+ /** A JSON Schema (type: object) the agent's final answer must conform to. When set, the response carries the validated payload in `structured_output` and the request fails with a 500 rather than returning prose that does not match the schema. */
9
+ structured_output?: Record<string, unknown> | null;
8
10
  system_prompt?: string;
9
11
  }
10
12
  export declare namespace GeneralAgentConfig {
@@ -4,4 +4,6 @@ import type * as AthenaIntelligence from "../index.js";
4
4
  */
5
5
  export interface GeneralAgentResponse {
6
6
  messages: AthenaIntelligence.GeneralAgentResponseMessage[];
7
+ /** The agent's final answer as an object matching `config.structured_output`. Null when no schema was requested. */
8
+ structured_output?: Record<string, unknown> | null;
7
9
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2168";
1
+ export declare const SDK_VERSION = "4.3.2170";
@@ -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.2168";
4
+ exports.SDK_VERSION = "4.3.2170";
@@ -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.2168",
10
- "User-Agent": "@athenaintel/sdk/4.3.2168",
9
+ "X-Fern-SDK-Version": "4.3.2170",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2170",
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);
@@ -36,6 +36,7 @@ export declare class SemanticModelClient {
36
36
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
38
  * @throws {@link AthenaIntelligence.UnauthorizedError}
39
+ * @throws {@link AthenaIntelligence.ForbiddenError}
39
40
  * @throws {@link AthenaIntelligence.NotFoundError}
40
41
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
41
42
  * @throws {@link AthenaIntelligence.BadGatewayError}
@@ -118,6 +118,7 @@ export class SemanticModelClient {
118
118
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
119
119
  *
120
120
  * @throws {@link AthenaIntelligence.UnauthorizedError}
121
+ * @throws {@link AthenaIntelligence.ForbiddenError}
121
122
  * @throws {@link AthenaIntelligence.NotFoundError}
122
123
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
123
124
  * @throws {@link AthenaIntelligence.BadGatewayError}
@@ -157,6 +158,8 @@ export class SemanticModelClient {
157
158
  switch (_response.error.statusCode) {
158
159
  case 401:
159
160
  throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
161
+ case 403:
162
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
160
163
  case 404:
161
164
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
162
165
  case 422:
@@ -5,6 +5,8 @@ export interface GeneralAgentConfig {
5
5
  enabled_tools?: GeneralAgentConfig.EnabledTools.Item[];
6
6
  knowledge_base_asset_ids?: string[];
7
7
  model?: string | null;
8
+ /** A JSON Schema (type: object) the agent's final answer must conform to. When set, the response carries the validated payload in `structured_output` and the request fails with a 500 rather than returning prose that does not match the schema. */
9
+ structured_output?: Record<string, unknown> | null;
8
10
  system_prompt?: string;
9
11
  }
10
12
  export declare namespace GeneralAgentConfig {
@@ -4,4 +4,6 @@ import type * as AthenaIntelligence from "../index.mjs";
4
4
  */
5
5
  export interface GeneralAgentResponse {
6
6
  messages: AthenaIntelligence.GeneralAgentResponseMessage[];
7
+ /** The agent's final answer as an object matching `config.structured_output`. Null when no schema was requested. */
8
+ structured_output?: Record<string, unknown> | null;
7
9
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2168";
1
+ export declare const SDK_VERSION = "4.3.2170";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2168";
1
+ export const SDK_VERSION = "4.3.2170";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2168",
3
+ "version": "4.3.2170",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",