@athenaintel/sdk 4.3.2164 → 4.3.2165
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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/aop/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/aop/client/Client.js +4 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/aop/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/aop/client/Client.mjs +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
46
|
+
"X-Fern-SDK-Version": "4.3.2165",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2165",
|
|
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);
|
|
@@ -109,11 +109,12 @@ export declare class AopClient {
|
|
|
109
109
|
getConfig(request: AthenaIntelligence.GetConfigAopRequest, requestOptions?: AopClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AopConfigResponseOut>;
|
|
110
110
|
private __getConfig;
|
|
111
111
|
/**
|
|
112
|
-
* 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.
|
|
112
|
+
* 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.
|
|
113
113
|
*
|
|
114
114
|
* @param {AthenaIntelligence.AopConfigUpdateRequestIn} request
|
|
115
115
|
* @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
116
|
*
|
|
117
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
117
118
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
118
119
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
119
120
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -429,11 +429,12 @@ class AopClient {
|
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
/**
|
|
432
|
-
* 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.
|
|
432
|
+
* 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.
|
|
433
433
|
*
|
|
434
434
|
* @param {AthenaIntelligence.AopConfigUpdateRequestIn} request
|
|
435
435
|
* @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
436
436
|
*
|
|
437
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
437
438
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
438
439
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
439
440
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -480,6 +481,8 @@ class AopClient {
|
|
|
480
481
|
}
|
|
481
482
|
if (_response.error.reason === "status-code") {
|
|
482
483
|
switch (_response.error.statusCode) {
|
|
484
|
+
case 400:
|
|
485
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
483
486
|
case 401:
|
|
484
487
|
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
485
488
|
case 403:
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2165";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
9
|
+
"X-Fern-SDK-Version": "4.3.2165",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2165",
|
|
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);
|
|
@@ -109,11 +109,12 @@ export declare class AopClient {
|
|
|
109
109
|
getConfig(request: AthenaIntelligence.GetConfigAopRequest, requestOptions?: AopClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AopConfigResponseOut>;
|
|
110
110
|
private __getConfig;
|
|
111
111
|
/**
|
|
112
|
-
* 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.
|
|
112
|
+
* 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.
|
|
113
113
|
*
|
|
114
114
|
* @param {AthenaIntelligence.AopConfigUpdateRequestIn} request
|
|
115
115
|
* @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
116
|
*
|
|
117
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
117
118
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
118
119
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
119
120
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -393,11 +393,12 @@ export class AopClient {
|
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
|
-
* 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.
|
|
396
|
+
* 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.
|
|
397
397
|
*
|
|
398
398
|
* @param {AthenaIntelligence.AopConfigUpdateRequestIn} request
|
|
399
399
|
* @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
400
400
|
*
|
|
401
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
401
402
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
402
403
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
403
404
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -444,6 +445,8 @@ export class AopClient {
|
|
|
444
445
|
}
|
|
445
446
|
if (_response.error.reason === "status-code") {
|
|
446
447
|
switch (_response.error.statusCode) {
|
|
448
|
+
case 400:
|
|
449
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
447
450
|
case 401:
|
|
448
451
|
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
449
452
|
case 403:
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2165";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2165";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -295,7 +295,7 @@ await client.aop.getConfig({
|
|
|
295
295
|
<dl>
|
|
296
296
|
<dd>
|
|
297
297
|
|
|
298
|
-
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.
|
|
298
|
+
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.
|
|
299
299
|
</dd>
|
|
300
300
|
</dl>
|
|
301
301
|
</dd>
|