@athenaintel/sdk 4.3.2010 → 4.3.2011

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.2010",
47
- "User-Agent": "@athenaintel/sdk/4.3.2010",
46
+ "X-Fern-SDK-Version": "4.3.2011",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2011",
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 TooManyRequestsError 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.TooManyRequestsError = void 0;
38
+ const errors = __importStar(require("../../errors/index.js"));
39
+ class TooManyRequestsError extends errors.AthenaIntelligenceError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "TooManyRequestsError",
43
+ statusCode: 429,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, TooManyRequestsError.prototype);
48
+ }
49
+ }
50
+ exports.TooManyRequestsError = TooManyRequestsError;
@@ -7,6 +7,7 @@ export * from "./InternalServerError.js";
7
7
  export * from "./NotFoundError.js";
8
8
  export * from "./NotImplementedError.js";
9
9
  export * from "./ServiceUnavailableError.js";
10
+ export * from "./TooManyRequestsError.js";
10
11
  export * from "./UnauthorizedError.js";
11
12
  export * from "./UnprocessableEntityError.js";
12
13
  export * from "./UnsupportedMediaTypeError.js";
@@ -23,6 +23,7 @@ __exportStar(require("./InternalServerError.js"), exports);
23
23
  __exportStar(require("./NotFoundError.js"), exports);
24
24
  __exportStar(require("./NotImplementedError.js"), exports);
25
25
  __exportStar(require("./ServiceUnavailableError.js"), exports);
26
+ __exportStar(require("./TooManyRequestsError.js"), exports);
26
27
  __exportStar(require("./UnauthorizedError.js"), exports);
27
28
  __exportStar(require("./UnprocessableEntityError.js"), exports);
28
29
  __exportStar(require("./UnsupportedMediaTypeError.js"), exports);
@@ -73,6 +73,7 @@ export declare class AssetsClient {
73
73
  *
74
74
  * @throws {@link AthenaIntelligence.BadRequestError}
75
75
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
76
+ * @throws {@link AthenaIntelligence.TooManyRequestsError}
76
77
  * @throws {@link AthenaIntelligence.InternalServerError}
77
78
  *
78
79
  * @example
@@ -337,6 +337,7 @@ class AssetsClient {
337
337
  *
338
338
  * @throws {@link AthenaIntelligence.BadRequestError}
339
339
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
340
+ * @throws {@link AthenaIntelligence.TooManyRequestsError}
340
341
  * @throws {@link AthenaIntelligence.InternalServerError}
341
342
  *
342
343
  * @example
@@ -389,6 +390,8 @@ class AssetsClient {
389
390
  throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
390
391
  case 422:
391
392
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
393
+ case 429:
394
+ throw new AthenaIntelligence.TooManyRequestsError(_response.error.body, _response.rawResponse);
392
395
  case 500:
393
396
  throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
394
397
  default:
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2010";
1
+ export declare const SDK_VERSION = "4.3.2011";
@@ -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.2010";
4
+ exports.SDK_VERSION = "4.3.2011";
@@ -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.2010",
10
- "User-Agent": "@athenaintel/sdk/4.3.2010",
9
+ "X-Fern-SDK-Version": "4.3.2011",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2011",
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 TooManyRequestsError 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 TooManyRequestsError extends errors.AthenaIntelligenceError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "TooManyRequestsError",
7
+ statusCode: 429,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, TooManyRequestsError.prototype);
12
+ }
13
+ }
@@ -7,6 +7,7 @@ export * from "./InternalServerError.mjs";
7
7
  export * from "./NotFoundError.mjs";
8
8
  export * from "./NotImplementedError.mjs";
9
9
  export * from "./ServiceUnavailableError.mjs";
10
+ export * from "./TooManyRequestsError.mjs";
10
11
  export * from "./UnauthorizedError.mjs";
11
12
  export * from "./UnprocessableEntityError.mjs";
12
13
  export * from "./UnsupportedMediaTypeError.mjs";
@@ -7,6 +7,7 @@ export * from "./InternalServerError.mjs";
7
7
  export * from "./NotFoundError.mjs";
8
8
  export * from "./NotImplementedError.mjs";
9
9
  export * from "./ServiceUnavailableError.mjs";
10
+ export * from "./TooManyRequestsError.mjs";
10
11
  export * from "./UnauthorizedError.mjs";
11
12
  export * from "./UnprocessableEntityError.mjs";
12
13
  export * from "./UnsupportedMediaTypeError.mjs";
@@ -73,6 +73,7 @@ export declare class AssetsClient {
73
73
  *
74
74
  * @throws {@link AthenaIntelligence.BadRequestError}
75
75
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
76
+ * @throws {@link AthenaIntelligence.TooManyRequestsError}
76
77
  * @throws {@link AthenaIntelligence.InternalServerError}
77
78
  *
78
79
  * @example
@@ -301,6 +301,7 @@ export class AssetsClient {
301
301
  *
302
302
  * @throws {@link AthenaIntelligence.BadRequestError}
303
303
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
304
+ * @throws {@link AthenaIntelligence.TooManyRequestsError}
304
305
  * @throws {@link AthenaIntelligence.InternalServerError}
305
306
  *
306
307
  * @example
@@ -353,6 +354,8 @@ export class AssetsClient {
353
354
  throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
354
355
  case 422:
355
356
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
357
+ case 429:
358
+ throw new AthenaIntelligence.TooManyRequestsError(_response.error.body, _response.rawResponse);
356
359
  case 500:
357
360
  throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
358
361
  default:
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2010";
1
+ export declare const SDK_VERSION = "4.3.2011";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2010";
1
+ export const SDK_VERSION = "4.3.2011";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2010",
3
+ "version": "4.3.2011",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",