@athenaintel/sdk 4.3.2259 → 4.3.2260

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.2259",
47
- "User-Agent": "@athenaintel/sdk/4.3.2259",
46
+ "X-Fern-SDK-Version": "4.3.2260",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2260",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
@@ -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 GatewayTimeoutError extends errors.AthenaIntelligenceError {
4
+ constructor(body?: 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.GatewayTimeoutError = void 0;
38
+ const errors = __importStar(require("../../errors/index.js"));
39
+ class GatewayTimeoutError extends errors.AthenaIntelligenceError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "GatewayTimeoutError",
43
+ statusCode: 504,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, GatewayTimeoutError.prototype);
48
+ }
49
+ }
50
+ exports.GatewayTimeoutError = GatewayTimeoutError;
@@ -3,6 +3,7 @@ export * from "./BadRequestError.js";
3
3
  export * from "./ConflictError.js";
4
4
  export * from "./ContentTooLargeError.js";
5
5
  export * from "./ForbiddenError.js";
6
+ export * from "./GatewayTimeoutError.js";
6
7
  export * from "./GoneError.js";
7
8
  export * from "./InternalServerError.js";
8
9
  export * from "./NotFoundError.js";
@@ -19,6 +19,7 @@ __exportStar(require("./BadRequestError.js"), exports);
19
19
  __exportStar(require("./ConflictError.js"), exports);
20
20
  __exportStar(require("./ContentTooLargeError.js"), exports);
21
21
  __exportStar(require("./ForbiddenError.js"), exports);
22
+ __exportStar(require("./GatewayTimeoutError.js"), exports);
22
23
  __exportStar(require("./GoneError.js"), exports);
23
24
  __exportStar(require("./InternalServerError.js"), exports);
24
25
  __exportStar(require("./NotFoundError.js"), exports);
@@ -42,6 +42,7 @@ export declare class SemanticModelClient {
42
42
  * @throws {@link AthenaIntelligence.ConflictError}
43
43
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
44
44
  * @throws {@link AthenaIntelligence.BadGatewayError}
45
+ * @throws {@link AthenaIntelligence.GatewayTimeoutError}
45
46
  *
46
47
  * @example
47
48
  * await client.semanticModel.getMeta({
@@ -63,6 +64,7 @@ export declare class SemanticModelClient {
63
64
  * @throws {@link AthenaIntelligence.ConflictError}
64
65
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
65
66
  * @throws {@link AthenaIntelligence.BadGatewayError}
67
+ * @throws {@link AthenaIntelligence.GatewayTimeoutError}
66
68
  *
67
69
  * @example
68
70
  * await client.semanticModel.query({
@@ -162,6 +162,7 @@ class SemanticModelClient {
162
162
  * @throws {@link AthenaIntelligence.ConflictError}
163
163
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
164
164
  * @throws {@link AthenaIntelligence.BadGatewayError}
165
+ * @throws {@link AthenaIntelligence.GatewayTimeoutError}
165
166
  *
166
167
  * @example
167
168
  * await client.semanticModel.getMeta({
@@ -212,6 +213,8 @@ class SemanticModelClient {
212
213
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
213
214
  case 502:
214
215
  throw new AthenaIntelligence.BadGatewayError(_response.error.body, _response.rawResponse);
216
+ case 504:
217
+ throw new AthenaIntelligence.GatewayTimeoutError(_response.error.body, _response.rawResponse);
215
218
  default:
216
219
  throw new errors.AthenaIntelligenceError({
217
220
  statusCode: _response.error.statusCode,
@@ -255,6 +258,7 @@ class SemanticModelClient {
255
258
  * @throws {@link AthenaIntelligence.ConflictError}
256
259
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
257
260
  * @throws {@link AthenaIntelligence.BadGatewayError}
261
+ * @throws {@link AthenaIntelligence.GatewayTimeoutError}
258
262
  *
259
263
  * @example
260
264
  * await client.semanticModel.query({
@@ -309,6 +313,8 @@ class SemanticModelClient {
309
313
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
310
314
  case 502:
311
315
  throw new AthenaIntelligence.BadGatewayError(_response.error.body, _response.rawResponse);
316
+ case 504:
317
+ throw new AthenaIntelligence.GatewayTimeoutError(_response.error.body, _response.rawResponse);
312
318
  default:
313
319
  throw new errors.AthenaIntelligenceError({
314
320
  statusCode: _response.error.statusCode,
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2259";
1
+ export declare const SDK_VERSION = "4.3.2260";
@@ -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.2259";
4
+ exports.SDK_VERSION = "4.3.2260";
@@ -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.2259",
10
- "User-Agent": "@athenaintel/sdk/4.3.2259",
9
+ "X-Fern-SDK-Version": "4.3.2260",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2260",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
@@ -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 GatewayTimeoutError extends errors.AthenaIntelligenceError {
4
+ constructor(body?: 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 GatewayTimeoutError extends errors.AthenaIntelligenceError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "GatewayTimeoutError",
7
+ statusCode: 504,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, GatewayTimeoutError.prototype);
12
+ }
13
+ }
@@ -3,6 +3,7 @@ export * from "./BadRequestError.mjs";
3
3
  export * from "./ConflictError.mjs";
4
4
  export * from "./ContentTooLargeError.mjs";
5
5
  export * from "./ForbiddenError.mjs";
6
+ export * from "./GatewayTimeoutError.mjs";
6
7
  export * from "./GoneError.mjs";
7
8
  export * from "./InternalServerError.mjs";
8
9
  export * from "./NotFoundError.mjs";
@@ -3,6 +3,7 @@ export * from "./BadRequestError.mjs";
3
3
  export * from "./ConflictError.mjs";
4
4
  export * from "./ContentTooLargeError.mjs";
5
5
  export * from "./ForbiddenError.mjs";
6
+ export * from "./GatewayTimeoutError.mjs";
6
7
  export * from "./GoneError.mjs";
7
8
  export * from "./InternalServerError.mjs";
8
9
  export * from "./NotFoundError.mjs";
@@ -42,6 +42,7 @@ export declare class SemanticModelClient {
42
42
  * @throws {@link AthenaIntelligence.ConflictError}
43
43
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
44
44
  * @throws {@link AthenaIntelligence.BadGatewayError}
45
+ * @throws {@link AthenaIntelligence.GatewayTimeoutError}
45
46
  *
46
47
  * @example
47
48
  * await client.semanticModel.getMeta({
@@ -63,6 +64,7 @@ export declare class SemanticModelClient {
63
64
  * @throws {@link AthenaIntelligence.ConflictError}
64
65
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
65
66
  * @throws {@link AthenaIntelligence.BadGatewayError}
67
+ * @throws {@link AthenaIntelligence.GatewayTimeoutError}
66
68
  *
67
69
  * @example
68
70
  * await client.semanticModel.query({
@@ -126,6 +126,7 @@ export class SemanticModelClient {
126
126
  * @throws {@link AthenaIntelligence.ConflictError}
127
127
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
128
128
  * @throws {@link AthenaIntelligence.BadGatewayError}
129
+ * @throws {@link AthenaIntelligence.GatewayTimeoutError}
129
130
  *
130
131
  * @example
131
132
  * await client.semanticModel.getMeta({
@@ -176,6 +177,8 @@ export class SemanticModelClient {
176
177
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
177
178
  case 502:
178
179
  throw new AthenaIntelligence.BadGatewayError(_response.error.body, _response.rawResponse);
180
+ case 504:
181
+ throw new AthenaIntelligence.GatewayTimeoutError(_response.error.body, _response.rawResponse);
179
182
  default:
180
183
  throw new errors.AthenaIntelligenceError({
181
184
  statusCode: _response.error.statusCode,
@@ -219,6 +222,7 @@ export class SemanticModelClient {
219
222
  * @throws {@link AthenaIntelligence.ConflictError}
220
223
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
221
224
  * @throws {@link AthenaIntelligence.BadGatewayError}
225
+ * @throws {@link AthenaIntelligence.GatewayTimeoutError}
222
226
  *
223
227
  * @example
224
228
  * await client.semanticModel.query({
@@ -273,6 +277,8 @@ export class SemanticModelClient {
273
277
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
274
278
  case 502:
275
279
  throw new AthenaIntelligence.BadGatewayError(_response.error.body, _response.rawResponse);
280
+ case 504:
281
+ throw new AthenaIntelligence.GatewayTimeoutError(_response.error.body, _response.rawResponse);
276
282
  default:
277
283
  throw new errors.AthenaIntelligenceError({
278
284
  statusCode: _response.error.statusCode,
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2259";
1
+ export declare const SDK_VERSION = "4.3.2260";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2259";
1
+ export const SDK_VERSION = "4.3.2260";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2259",
3
+ "version": "4.3.2260",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",