@athenaintel/sdk 4.3.2228 → 4.3.2230
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/resources/assets/client/requests/RenameAssetRequestIn.d.ts +2 -0
- 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/resources/assets/client/requests/RenameAssetRequestIn.d.mts +2 -0
- 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.2230",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2230",
|
|
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,
|
|
@@ -76,6 +76,7 @@ export declare class AssetsClient {
|
|
|
76
76
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
78
78
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
79
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
79
80
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
80
81
|
* @throws {@link AthenaIntelligence.TooManyRequestsError}
|
|
81
82
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
@@ -348,6 +348,7 @@ class AssetsClient {
|
|
|
348
348
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
349
349
|
*
|
|
350
350
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
351
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
351
352
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
352
353
|
* @throws {@link AthenaIntelligence.TooManyRequestsError}
|
|
353
354
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
@@ -402,6 +403,8 @@ class AssetsClient {
|
|
|
402
403
|
switch (_response.error.statusCode) {
|
|
403
404
|
case 400:
|
|
404
405
|
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
406
|
+
case 403:
|
|
407
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
405
408
|
case 422:
|
|
406
409
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
407
410
|
case 429:
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
export interface RenameAssetRequestIn {
|
|
9
9
|
/** Unique identifier of the asset to rename */
|
|
10
10
|
asset_id: string;
|
|
11
|
+
/** Rename only while the asset still carries this title. When another client renamed it in the meantime the request fails with 409 and the stored title is kept. */
|
|
12
|
+
expected_title?: string | null;
|
|
11
13
|
/** New display title for the asset */
|
|
12
14
|
title: string;
|
|
13
15
|
}
|
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.2230";
|
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.2230",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2230",
|
|
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,
|
|
@@ -76,6 +76,7 @@ export declare class AssetsClient {
|
|
|
76
76
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
78
78
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
79
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
79
80
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
80
81
|
* @throws {@link AthenaIntelligence.TooManyRequestsError}
|
|
81
82
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
@@ -312,6 +312,7 @@ export class AssetsClient {
|
|
|
312
312
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
313
313
|
*
|
|
314
314
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
315
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
315
316
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
316
317
|
* @throws {@link AthenaIntelligence.TooManyRequestsError}
|
|
317
318
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
@@ -366,6 +367,8 @@ export class AssetsClient {
|
|
|
366
367
|
switch (_response.error.statusCode) {
|
|
367
368
|
case 400:
|
|
368
369
|
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
370
|
+
case 403:
|
|
371
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
369
372
|
case 422:
|
|
370
373
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
371
374
|
case 429:
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
export interface RenameAssetRequestIn {
|
|
9
9
|
/** Unique identifier of the asset to rename */
|
|
10
10
|
asset_id: string;
|
|
11
|
+
/** Rename only while the asset still carries this title. When another client renamed it in the meantime the request fails with 409 and the stored title is kept. */
|
|
12
|
+
expected_title?: string | null;
|
|
11
13
|
/** New display title for the asset */
|
|
12
14
|
title: string;
|
|
13
15
|
}
|
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.2230";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2230";
|