@athenaintel/sdk 4.3.2326 → 4.3.2328
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/assets/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/assets/client/Client.js +3 -0
- package/dist/cjs/api/types/GeneralAgentRequest.d.ts +1 -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/assets/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/assets/client/Client.mjs +3 -0
- package/dist/esm/api/types/GeneralAgentRequest.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +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.2328",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2328",
|
|
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,
|
|
@@ -395,6 +395,7 @@ export declare class AssetsClient {
|
|
|
395
395
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
396
396
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
397
397
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
398
|
+
* @throws {@link AthenaIntelligence.ServiceUnavailableError}
|
|
398
399
|
*/
|
|
399
400
|
download(request: AthenaIntelligence.DownloadAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
400
401
|
private __download;
|
|
@@ -1792,6 +1792,7 @@ class AssetsClient {
|
|
|
1792
1792
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
1793
1793
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
1794
1794
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
1795
|
+
* @throws {@link AthenaIntelligence.ServiceUnavailableError}
|
|
1795
1796
|
*/
|
|
1796
1797
|
download(request, requestOptions) {
|
|
1797
1798
|
return core.HttpResponsePromise.fromPromise(this.__download(request, requestOptions));
|
|
@@ -1839,6 +1840,8 @@ class AssetsClient {
|
|
|
1839
1840
|
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1840
1841
|
case 422:
|
|
1841
1842
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1843
|
+
case 503:
|
|
1844
|
+
throw new AthenaIntelligence.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1842
1845
|
default:
|
|
1843
1846
|
throw new errors.AthenaIntelligenceError({
|
|
1844
1847
|
statusCode: _response.error.statusCode,
|
|
@@ -8,6 +8,6 @@ export interface GeneralAgentRequest {
|
|
|
8
8
|
config: AthenaIntelligence.GeneralAgentConfig;
|
|
9
9
|
/** The messages to send to the agent. Each message should be a string (for text inputs) or a list of multimodal content parts. */
|
|
10
10
|
messages: AthenaIntelligence.InputMessage[];
|
|
11
|
-
/** Optional thread ID for conversation persistence. If not provided, a new thread will be created. */
|
|
11
|
+
/** Optional thread ID for conversation persistence. If not provided, a new thread will be created. A new thread's ID is lower-case letters, digits, `_` and `-`, begins with a letter or a digit, is at most 128 characters long and does not begin with `asset_`. */
|
|
12
12
|
thread_id?: string | null;
|
|
13
13
|
}
|
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.2328";
|
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.2328",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2328",
|
|
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,
|
|
@@ -395,6 +395,7 @@ export declare class AssetsClient {
|
|
|
395
395
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
396
396
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
397
397
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
398
|
+
* @throws {@link AthenaIntelligence.ServiceUnavailableError}
|
|
398
399
|
*/
|
|
399
400
|
download(request: AthenaIntelligence.DownloadAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
400
401
|
private __download;
|
|
@@ -1756,6 +1756,7 @@ export class AssetsClient {
|
|
|
1756
1756
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
1757
1757
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
1758
1758
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
1759
|
+
* @throws {@link AthenaIntelligence.ServiceUnavailableError}
|
|
1759
1760
|
*/
|
|
1760
1761
|
download(request, requestOptions) {
|
|
1761
1762
|
return core.HttpResponsePromise.fromPromise(this.__download(request, requestOptions));
|
|
@@ -1803,6 +1804,8 @@ export class AssetsClient {
|
|
|
1803
1804
|
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1804
1805
|
case 422:
|
|
1805
1806
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1807
|
+
case 503:
|
|
1808
|
+
throw new AthenaIntelligence.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1806
1809
|
default:
|
|
1807
1810
|
throw new errors.AthenaIntelligenceError({
|
|
1808
1811
|
statusCode: _response.error.statusCode,
|
|
@@ -8,6 +8,6 @@ export interface GeneralAgentRequest {
|
|
|
8
8
|
config: AthenaIntelligence.GeneralAgentConfig;
|
|
9
9
|
/** The messages to send to the agent. Each message should be a string (for text inputs) or a list of multimodal content parts. */
|
|
10
10
|
messages: AthenaIntelligence.InputMessage[];
|
|
11
|
-
/** Optional thread ID for conversation persistence. If not provided, a new thread will be created. */
|
|
11
|
+
/** Optional thread ID for conversation persistence. If not provided, a new thread will be created. A new thread's ID is lower-case letters, digits, `_` and `-`, begins with a letter or a digit, is at most 128 characters long and does not begin with `asset_`. */
|
|
12
12
|
thread_id?: string | null;
|
|
13
13
|
}
|
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.2328";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2328";
|