@athenaintel/sdk 4.3.2300 → 4.3.2302

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.2300",
47
- "User-Agent": "@athenaintel/sdk/4.3.2300",
46
+ "X-Fern-SDK-Version": "4.3.2302",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2302",
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,
@@ -418,7 +418,7 @@ export declare class AssetsClient {
418
418
  move(request: AthenaIntelligence.MoveAssetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.MoveAssetResponseOut>;
419
419
  private __move;
420
420
  /**
421
- * Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. Requires edit access to the asset.
421
+ * Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. For a collab agent, pass expected_version_id, the version you saw published, to publish only over it: if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Requires edit access to the asset.
422
422
  *
423
423
  * @param {AthenaIntelligence.PublishAssetRequestIn} request
424
424
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -426,6 +426,7 @@ export declare class AssetsClient {
426
426
  * @throws {@link AthenaIntelligence.BadRequestError}
427
427
  * @throws {@link AthenaIntelligence.ForbiddenError}
428
428
  * @throws {@link AthenaIntelligence.NotFoundError}
429
+ * @throws {@link AthenaIntelligence.ConflictError}
429
430
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
430
431
  *
431
432
  * @example
@@ -1958,7 +1958,7 @@ class AssetsClient {
1958
1958
  });
1959
1959
  }
1960
1960
  /**
1961
- * Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. Requires edit access to the asset.
1961
+ * Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. For a collab agent, pass expected_version_id, the version you saw published, to publish only over it: if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Requires edit access to the asset.
1962
1962
  *
1963
1963
  * @param {AthenaIntelligence.PublishAssetRequestIn} request
1964
1964
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1966,6 +1966,7 @@ class AssetsClient {
1966
1966
  * @throws {@link AthenaIntelligence.BadRequestError}
1967
1967
  * @throws {@link AthenaIntelligence.ForbiddenError}
1968
1968
  * @throws {@link AthenaIntelligence.NotFoundError}
1969
+ * @throws {@link AthenaIntelligence.ConflictError}
1969
1970
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1970
1971
  *
1971
1972
  * @example
@@ -2013,6 +2014,8 @@ class AssetsClient {
2013
2014
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
2014
2015
  case 404:
2015
2016
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
2017
+ case 409:
2018
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
2016
2019
  case 422:
2017
2020
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2018
2021
  default:
@@ -8,6 +8,8 @@
8
8
  export interface PublishAssetRequestIn {
9
9
  /** ID of the skill or collab agent to publish */
10
10
  asset_id: string;
11
+ /** Collab agents only: the version you saw published. The publish goes ahead only while the agent still serves it; if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Omit it to publish over whatever is published. A skill refuses it with 400. */
12
+ expected_version_id?: string | null;
11
13
  /** Optional release note shown in the publish history */
12
14
  note?: string | null;
13
15
  /** Existing version to promote to published. Omit to snapshot and publish the current draft. */
@@ -158,7 +158,7 @@ export declare class ToolsClient {
158
158
  rawData(request: AthenaIntelligence.RawDataToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
159
159
  private __rawData;
160
160
  /**
161
- * Save a file as an asset in the target workspace.
161
+ * Save a file as an asset in the target workspace. Send the file as the multipart form field `file`. `parent_folder_id` and `workspace_id` are optional and may be sent either as query parameters or as multipart form fields next to `file`; sent both ways, the two values must match (a 400 otherwise). The asset is saved into `workspace_id` (default: the caller's current workspace) and filed into `parent_folder_id` (default: the caller's default folder), which must be a folder in that workspace the caller can edit.
162
162
  *
163
163
  * @param {AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost} request
164
164
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -757,7 +757,7 @@ class ToolsClient {
757
757
  });
758
758
  }
759
759
  /**
760
- * Save a file as an asset in the target workspace.
760
+ * Save a file as an asset in the target workspace. Send the file as the multipart form field `file`. `parent_folder_id` and `workspace_id` are optional and may be sent either as query parameters or as multipart form fields next to `file`; sent both ways, the two values must match (a 400 otherwise). The asset is saved into `workspace_id` (default: the caller's current workspace) and filed into `parent_folder_id` (default: the caller's default folder), which must be a folder in that workspace the caller can edit.
761
761
  *
762
762
  * @param {AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost} request
763
763
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2300";
1
+ export declare const SDK_VERSION = "4.3.2302";
@@ -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.2300";
4
+ exports.SDK_VERSION = "4.3.2302";
@@ -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.2300",
10
- "User-Agent": "@athenaintel/sdk/4.3.2300",
9
+ "X-Fern-SDK-Version": "4.3.2302",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2302",
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,
@@ -418,7 +418,7 @@ export declare class AssetsClient {
418
418
  move(request: AthenaIntelligence.MoveAssetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.MoveAssetResponseOut>;
419
419
  private __move;
420
420
  /**
421
- * Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. Requires edit access to the asset.
421
+ * Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. For a collab agent, pass expected_version_id, the version you saw published, to publish only over it: if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Requires edit access to the asset.
422
422
  *
423
423
  * @param {AthenaIntelligence.PublishAssetRequestIn} request
424
424
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -426,6 +426,7 @@ export declare class AssetsClient {
426
426
  * @throws {@link AthenaIntelligence.BadRequestError}
427
427
  * @throws {@link AthenaIntelligence.ForbiddenError}
428
428
  * @throws {@link AthenaIntelligence.NotFoundError}
429
+ * @throws {@link AthenaIntelligence.ConflictError}
429
430
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
430
431
  *
431
432
  * @example
@@ -1922,7 +1922,7 @@ export class AssetsClient {
1922
1922
  });
1923
1923
  }
1924
1924
  /**
1925
- * Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. Requires edit access to the asset.
1925
+ * Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. For a collab agent, pass expected_version_id, the version you saw published, to publish only over it: if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Requires edit access to the asset.
1926
1926
  *
1927
1927
  * @param {AthenaIntelligence.PublishAssetRequestIn} request
1928
1928
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1930,6 +1930,7 @@ export class AssetsClient {
1930
1930
  * @throws {@link AthenaIntelligence.BadRequestError}
1931
1931
  * @throws {@link AthenaIntelligence.ForbiddenError}
1932
1932
  * @throws {@link AthenaIntelligence.NotFoundError}
1933
+ * @throws {@link AthenaIntelligence.ConflictError}
1933
1934
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1934
1935
  *
1935
1936
  * @example
@@ -1977,6 +1978,8 @@ export class AssetsClient {
1977
1978
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
1978
1979
  case 404:
1979
1980
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
1981
+ case 409:
1982
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
1980
1983
  case 422:
1981
1984
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1982
1985
  default:
@@ -8,6 +8,8 @@
8
8
  export interface PublishAssetRequestIn {
9
9
  /** ID of the skill or collab agent to publish */
10
10
  asset_id: string;
11
+ /** Collab agents only: the version you saw published. The publish goes ahead only while the agent still serves it; if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Omit it to publish over whatever is published. A skill refuses it with 400. */
12
+ expected_version_id?: string | null;
11
13
  /** Optional release note shown in the publish history */
12
14
  note?: string | null;
13
15
  /** Existing version to promote to published. Omit to snapshot and publish the current draft. */
@@ -158,7 +158,7 @@ export declare class ToolsClient {
158
158
  rawData(request: AthenaIntelligence.RawDataToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
159
159
  private __rawData;
160
160
  /**
161
- * Save a file as an asset in the target workspace.
161
+ * Save a file as an asset in the target workspace. Send the file as the multipart form field `file`. `parent_folder_id` and `workspace_id` are optional and may be sent either as query parameters or as multipart form fields next to `file`; sent both ways, the two values must match (a 400 otherwise). The asset is saved into `workspace_id` (default: the caller's current workspace) and filed into `parent_folder_id` (default: the caller's default folder), which must be a folder in that workspace the caller can edit.
162
162
  *
163
163
  * @param {AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost} request
164
164
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -721,7 +721,7 @@ export class ToolsClient {
721
721
  });
722
722
  }
723
723
  /**
724
- * Save a file as an asset in the target workspace.
724
+ * Save a file as an asset in the target workspace. Send the file as the multipart form field `file`. `parent_folder_id` and `workspace_id` are optional and may be sent either as query parameters or as multipart form fields next to `file`; sent both ways, the two values must match (a 400 otherwise). The asset is saved into `workspace_id` (default: the caller's current workspace) and filed into `parent_folder_id` (default: the caller's default folder), which must be a folder in that workspace the caller can edit.
725
725
  *
726
726
  * @param {AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost} request
727
727
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2300";
1
+ export declare const SDK_VERSION = "4.3.2302";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2300";
1
+ export const SDK_VERSION = "4.3.2302";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2300",
3
+ "version": "4.3.2302",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -1838,7 +1838,7 @@ await client.assets.move({
1838
1838
  <dl>
1839
1839
  <dd>
1840
1840
 
1841
- Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. Requires edit access to the asset.
1841
+ Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. For a collab agent, pass expected_version_id, the version you saw published, to publish only over it: if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Requires edit access to the asset.
1842
1842
  </dd>
1843
1843
  </dl>
1844
1844
  </dd>
@@ -5917,7 +5917,7 @@ await client.tools.rawData({
5917
5917
  <dl>
5918
5918
  <dd>
5919
5919
 
5920
- Save a file as an asset in the target workspace.
5920
+ Save a file as an asset in the target workspace. Send the file as the multipart form field `file`. `parent_folder_id` and `workspace_id` are optional and may be sent either as query parameters or as multipart form fields next to `file`; sent both ways, the two values must match (a 400 otherwise). The asset is saved into `workspace_id` (default: the caller's current workspace) and filed into `parent_folder_id` (default: the caller's default folder), which must be a folder in that workspace the caller can edit.
5921
5921
  </dd>
5922
5922
  </dl>
5923
5923
  </dd>