@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.
@@ -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.2228",
47
- "User-Agent": "@athenaintel/sdk/4.3.2228",
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
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2228";
1
+ export declare const SDK_VERSION = "4.3.2230";
@@ -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.2228";
4
+ exports.SDK_VERSION = "4.3.2230";
@@ -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.2228",
10
- "User-Agent": "@athenaintel/sdk/4.3.2228",
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
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2228";
1
+ export declare const SDK_VERSION = "4.3.2230";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2228";
1
+ export const SDK_VERSION = "4.3.2230";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2228",
3
+ "version": "4.3.2230",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",