@athenaintel/sdk 4.3.2281 → 4.3.2282

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.2281",
47
- "User-Agent": "@athenaintel/sdk/4.3.2281",
46
+ "X-Fern-SDK-Version": "4.3.2282",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2282",
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,
@@ -166,7 +166,7 @@ export declare class AopClient {
166
166
  getConfig(request: AthenaIntelligence.GetConfigAopRequest, requestOptions?: AopClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AopConfigResponseOut>;
167
167
  private __getConfig;
168
168
  /**
169
- * Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched.
169
+ * Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched. The update publishes at once, so an update that would give runs tools the published version does not (resolved as runs resolve them, the assigned agent's tools included) is rejected with 409 and nothing is changed unless confirm_sensitive is true; the detail names the added tools.
170
170
  *
171
171
  * @param {AthenaIntelligence.AopConfigUpdateRequestIn} request
172
172
  * @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -175,6 +175,7 @@ export declare class AopClient {
175
175
  * @throws {@link AthenaIntelligence.UnauthorizedError}
176
176
  * @throws {@link AthenaIntelligence.ForbiddenError}
177
177
  * @throws {@link AthenaIntelligence.NotFoundError}
178
+ * @throws {@link AthenaIntelligence.ConflictError}
178
179
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
179
180
  *
180
181
  * @example
@@ -644,7 +644,7 @@ class AopClient {
644
644
  });
645
645
  }
646
646
  /**
647
- * Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched.
647
+ * Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched. The update publishes at once, so an update that would give runs tools the published version does not (resolved as runs resolve them, the assigned agent's tools included) is rejected with 409 and nothing is changed unless confirm_sensitive is true; the detail names the added tools.
648
648
  *
649
649
  * @param {AthenaIntelligence.AopConfigUpdateRequestIn} request
650
650
  * @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -653,6 +653,7 @@ class AopClient {
653
653
  * @throws {@link AthenaIntelligence.UnauthorizedError}
654
654
  * @throws {@link AthenaIntelligence.ForbiddenError}
655
655
  * @throws {@link AthenaIntelligence.NotFoundError}
656
+ * @throws {@link AthenaIntelligence.ConflictError}
656
657
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
657
658
  *
658
659
  * @example
@@ -706,6 +707,8 @@ class AopClient {
706
707
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
707
708
  case 404:
708
709
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
710
+ case 409:
711
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
709
712
  case 422:
710
713
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
711
714
  default:
@@ -16,6 +16,8 @@ export interface AopConfigUpdateRequestIn {
16
16
  agentId?: string | null;
17
17
  /** Full agent configuration override for this AOP */
18
18
  agent_config?: Record<string, unknown> | null;
19
+ /** Confirms that the new configuration may give runs tools the published version does not (as runs resolve them, the assigned agent's tools included). Without it, such an update is refused with 409 and nothing is changed; the response names the added tools */
20
+ confirm_sensitive?: boolean;
19
21
  /** Human-readable description of what the AOP does */
20
22
  description?: string | null;
21
23
  /** Icon identifier for UI display */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2281";
1
+ export declare const SDK_VERSION = "4.3.2282";
@@ -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.2281";
4
+ exports.SDK_VERSION = "4.3.2282";
@@ -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.2281",
10
- "User-Agent": "@athenaintel/sdk/4.3.2281",
9
+ "X-Fern-SDK-Version": "4.3.2282",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2282",
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,
@@ -166,7 +166,7 @@ export declare class AopClient {
166
166
  getConfig(request: AthenaIntelligence.GetConfigAopRequest, requestOptions?: AopClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AopConfigResponseOut>;
167
167
  private __getConfig;
168
168
  /**
169
- * Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched.
169
+ * Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched. The update publishes at once, so an update that would give runs tools the published version does not (resolved as runs resolve them, the assigned agent's tools included) is rejected with 409 and nothing is changed unless confirm_sensitive is true; the detail names the added tools.
170
170
  *
171
171
  * @param {AthenaIntelligence.AopConfigUpdateRequestIn} request
172
172
  * @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -175,6 +175,7 @@ export declare class AopClient {
175
175
  * @throws {@link AthenaIntelligence.UnauthorizedError}
176
176
  * @throws {@link AthenaIntelligence.ForbiddenError}
177
177
  * @throws {@link AthenaIntelligence.NotFoundError}
178
+ * @throws {@link AthenaIntelligence.ConflictError}
178
179
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
179
180
  *
180
181
  * @example
@@ -608,7 +608,7 @@ export class AopClient {
608
608
  });
609
609
  }
610
610
  /**
611
- * Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched.
611
+ * Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched. The update publishes at once, so an update that would give runs tools the published version does not (resolved as runs resolve them, the assigned agent's tools included) is rejected with 409 and nothing is changed unless confirm_sensitive is true; the detail names the added tools.
612
612
  *
613
613
  * @param {AthenaIntelligence.AopConfigUpdateRequestIn} request
614
614
  * @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -617,6 +617,7 @@ export class AopClient {
617
617
  * @throws {@link AthenaIntelligence.UnauthorizedError}
618
618
  * @throws {@link AthenaIntelligence.ForbiddenError}
619
619
  * @throws {@link AthenaIntelligence.NotFoundError}
620
+ * @throws {@link AthenaIntelligence.ConflictError}
620
621
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
621
622
  *
622
623
  * @example
@@ -670,6 +671,8 @@ export class AopClient {
670
671
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
671
672
  case 404:
672
673
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
674
+ case 409:
675
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
673
676
  case 422:
674
677
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
675
678
  default:
@@ -16,6 +16,8 @@ export interface AopConfigUpdateRequestIn {
16
16
  agentId?: string | null;
17
17
  /** Full agent configuration override for this AOP */
18
18
  agent_config?: Record<string, unknown> | null;
19
+ /** Confirms that the new configuration may give runs tools the published version does not (as runs resolve them, the assigned agent's tools included). Without it, such an update is refused with 409 and nothing is changed; the response names the added tools */
20
+ confirm_sensitive?: boolean;
19
21
  /** Human-readable description of what the AOP does */
20
22
  description?: string | null;
21
23
  /** Icon identifier for UI display */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2281";
1
+ export declare const SDK_VERSION = "4.3.2282";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2281";
1
+ export const SDK_VERSION = "4.3.2282";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2281",
3
+ "version": "4.3.2282",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -444,7 +444,7 @@ await client.aop.getConfig({
444
444
  <dl>
445
445
  <dd>
446
446
 
447
- Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched.
447
+ Overwrite the configuration of an existing AOP asset. Replaces the entire AOP configuration (prompt, agent config, structured output, etc.) with the provided values. Fields not included in the request body will be reset to their defaults, except user_notification_configs, which is preserved from the existing configuration when omitted; send an explicit null to clear it. The update is rejected with 400 when the configuration would enable more tools at run time than the per-run limit, counting every tool of each toolkit @mentioned in the prompt; the detail names toolkits to remove and the existing configuration is left untouched. The update publishes at once, so an update that would give runs tools the published version does not (resolved as runs resolve them, the assigned agent's tools included) is rejected with 409 and nothing is changed unless confirm_sensitive is true; the detail names the added tools.
448
448
  </dd>
449
449
  </dl>
450
450
  </dd>