@athenaintel/sdk 4.3.2247 → 4.3.2249

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.2247",
47
- "User-Agent": "@athenaintel/sdk/4.3.2247",
46
+ "X-Fern-SDK-Version": "4.3.2249",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2249",
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,
@@ -147,6 +147,7 @@ export declare class AssetsClient {
147
147
  *
148
148
  * @throws {@link AthenaIntelligence.ForbiddenError}
149
149
  * @throws {@link AthenaIntelligence.NotFoundError}
150
+ * @throws {@link AthenaIntelligence.ConflictError}
150
151
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
151
152
  *
152
153
  * @example
@@ -376,6 +377,7 @@ export declare class AssetsClient {
376
377
  *
377
378
  * @throws {@link AthenaIntelligence.ForbiddenError}
378
379
  * @throws {@link AthenaIntelligence.NotFoundError}
380
+ * @throws {@link AthenaIntelligence.ConflictError}
379
381
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
380
382
  *
381
383
  * @example
@@ -622,6 +622,7 @@ class AssetsClient {
622
622
  *
623
623
  * @throws {@link AthenaIntelligence.ForbiddenError}
624
624
  * @throws {@link AthenaIntelligence.NotFoundError}
625
+ * @throws {@link AthenaIntelligence.ConflictError}
625
626
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
626
627
  *
627
628
  * @example
@@ -667,6 +668,8 @@ class AssetsClient {
667
668
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
668
669
  case 404:
669
670
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
671
+ case 409:
672
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
670
673
  case 422:
671
674
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
672
675
  default:
@@ -1679,6 +1682,7 @@ class AssetsClient {
1679
1682
  *
1680
1683
  * @throws {@link AthenaIntelligence.ForbiddenError}
1681
1684
  * @throws {@link AthenaIntelligence.NotFoundError}
1685
+ * @throws {@link AthenaIntelligence.ConflictError}
1682
1686
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1683
1687
  *
1684
1688
  * @example
@@ -1724,6 +1728,8 @@ class AssetsClient {
1724
1728
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
1725
1729
  case 404:
1726
1730
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
1731
+ case 409:
1732
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
1727
1733
  case 422:
1728
1734
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1729
1735
  default:
@@ -20,6 +20,10 @@ export declare class TasksClient {
20
20
  * detail.code `ENVIRONMENT_FEATURE_DISABLED` and detail.key `task_studio_toolkit`
21
21
  * before creating or running a job. This restriction also applies to administrators.
22
22
  *
23
+ * A task the workspace Tool Registry holds for approval returns HTTP 403 with
24
+ * detail.code `tool_requires_approval` before running: an API call carries no
25
+ * approval. Run it from a chat session or behind an automation's approval gate.
26
+ *
23
27
  * @param {AthenaIntelligence.tools.RunTaskRequest} request
24
28
  * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
25
29
  *
@@ -63,6 +63,10 @@ class TasksClient {
63
63
  * detail.code `ENVIRONMENT_FEATURE_DISABLED` and detail.key `task_studio_toolkit`
64
64
  * before creating or running a job. This restriction also applies to administrators.
65
65
  *
66
+ * A task the workspace Tool Registry holds for approval returns HTTP 403 with
67
+ * detail.code `tool_requires_approval` before running: an API call carries no
68
+ * approval. Run it from a chat session or behind an automation's approval gate.
69
+ *
66
70
  * @param {AthenaIntelligence.tools.RunTaskRequest} request
67
71
  * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
68
72
  *
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2247";
1
+ export declare const SDK_VERSION = "4.3.2249";
@@ -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.2247";
4
+ exports.SDK_VERSION = "4.3.2249";
@@ -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.2247",
10
- "User-Agent": "@athenaintel/sdk/4.3.2247",
9
+ "X-Fern-SDK-Version": "4.3.2249",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2249",
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,
@@ -147,6 +147,7 @@ export declare class AssetsClient {
147
147
  *
148
148
  * @throws {@link AthenaIntelligence.ForbiddenError}
149
149
  * @throws {@link AthenaIntelligence.NotFoundError}
150
+ * @throws {@link AthenaIntelligence.ConflictError}
150
151
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
151
152
  *
152
153
  * @example
@@ -376,6 +377,7 @@ export declare class AssetsClient {
376
377
  *
377
378
  * @throws {@link AthenaIntelligence.ForbiddenError}
378
379
  * @throws {@link AthenaIntelligence.NotFoundError}
380
+ * @throws {@link AthenaIntelligence.ConflictError}
379
381
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
380
382
  *
381
383
  * @example
@@ -586,6 +586,7 @@ export class AssetsClient {
586
586
  *
587
587
  * @throws {@link AthenaIntelligence.ForbiddenError}
588
588
  * @throws {@link AthenaIntelligence.NotFoundError}
589
+ * @throws {@link AthenaIntelligence.ConflictError}
589
590
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
590
591
  *
591
592
  * @example
@@ -631,6 +632,8 @@ export class AssetsClient {
631
632
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
632
633
  case 404:
633
634
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
635
+ case 409:
636
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
634
637
  case 422:
635
638
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
636
639
  default:
@@ -1643,6 +1646,7 @@ export class AssetsClient {
1643
1646
  *
1644
1647
  * @throws {@link AthenaIntelligence.ForbiddenError}
1645
1648
  * @throws {@link AthenaIntelligence.NotFoundError}
1649
+ * @throws {@link AthenaIntelligence.ConflictError}
1646
1650
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1647
1651
  *
1648
1652
  * @example
@@ -1688,6 +1692,8 @@ export class AssetsClient {
1688
1692
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
1689
1693
  case 404:
1690
1694
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
1695
+ case 409:
1696
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
1691
1697
  case 422:
1692
1698
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1693
1699
  default:
@@ -20,6 +20,10 @@ export declare class TasksClient {
20
20
  * detail.code `ENVIRONMENT_FEATURE_DISABLED` and detail.key `task_studio_toolkit`
21
21
  * before creating or running a job. This restriction also applies to administrators.
22
22
  *
23
+ * A task the workspace Tool Registry holds for approval returns HTTP 403 with
24
+ * detail.code `tool_requires_approval` before running: an API call carries no
25
+ * approval. Run it from a chat session or behind an automation's approval gate.
26
+ *
23
27
  * @param {AthenaIntelligence.tools.RunTaskRequest} request
24
28
  * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
25
29
  *
@@ -27,6 +27,10 @@ export class TasksClient {
27
27
  * detail.code `ENVIRONMENT_FEATURE_DISABLED` and detail.key `task_studio_toolkit`
28
28
  * before creating or running a job. This restriction also applies to administrators.
29
29
  *
30
+ * A task the workspace Tool Registry holds for approval returns HTTP 403 with
31
+ * detail.code `tool_requires_approval` before running: an API call carries no
32
+ * approval. Run it from a chat session or behind an automation's approval gate.
33
+ *
30
34
  * @param {AthenaIntelligence.tools.RunTaskRequest} request
31
35
  * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
32
36
  *
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2247";
1
+ export declare const SDK_VERSION = "4.3.2249";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2247";
1
+ export const SDK_VERSION = "4.3.2249";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2247",
3
+ "version": "4.3.2249",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -7511,6 +7511,10 @@ Executes a serverless function script or flow synchronously. Server handles poll
7511
7511
  When Tool Studio is disabled in the environment, returns HTTP 403 with
7512
7512
  detail.code `ENVIRONMENT_FEATURE_DISABLED` and detail.key `task_studio_toolkit`
7513
7513
  before creating or running a job. This restriction also applies to administrators.
7514
+
7515
+ A task the workspace Tool Registry holds for approval returns HTTP 403 with
7516
+ detail.code `tool_requires_approval` before running: an API call carries no
7517
+ approval. Run it from a chat session or behind an automation's approval gate.
7514
7518
  </dd>
7515
7519
  </dl>
7516
7520
  </dd>