@athenaintel/sdk 4.3.2213 → 4.3.2214

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.2213",
47
- "User-Agent": "@athenaintel/sdk/4.3.2213",
46
+ "X-Fern-SDK-Version": "4.3.2214",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2214",
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,
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../core/index.js";
2
+ import * as errors from "../../errors/index.js";
3
+ export declare class GoneError extends errors.AthenaIntelligenceError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.GoneError = void 0;
38
+ const errors = __importStar(require("../../errors/index.js"));
39
+ class GoneError extends errors.AthenaIntelligenceError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "GoneError",
43
+ statusCode: 410,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, GoneError.prototype);
48
+ }
49
+ }
50
+ exports.GoneError = GoneError;
@@ -3,6 +3,7 @@ export * from "./BadRequestError.js";
3
3
  export * from "./ConflictError.js";
4
4
  export * from "./ContentTooLargeError.js";
5
5
  export * from "./ForbiddenError.js";
6
+ export * from "./GoneError.js";
6
7
  export * from "./InternalServerError.js";
7
8
  export * from "./NotFoundError.js";
8
9
  export * from "./NotImplementedError.js";
@@ -19,6 +19,7 @@ __exportStar(require("./BadRequestError.js"), exports);
19
19
  __exportStar(require("./ConflictError.js"), exports);
20
20
  __exportStar(require("./ContentTooLargeError.js"), exports);
21
21
  __exportStar(require("./ForbiddenError.js"), exports);
22
+ __exportStar(require("./GoneError.js"), exports);
22
23
  __exportStar(require("./InternalServerError.js"), exports);
23
24
  __exportStar(require("./NotFoundError.js"), exports);
24
25
  __exportStar(require("./NotImplementedError.js"), exports);
@@ -48,13 +48,14 @@ export declare class AssetsClient {
48
48
  convertExcelToSheet(request: AthenaIntelligence.ConvertExcelToSheetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ConvertExcelToSheetResponseOut>;
49
49
  private __convertExcelToSheet;
50
50
  /**
51
- * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
51
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. Computers accept the same configuration as the Athena UI's creation dialog: template, provider, cpu, memory (GiB), disk (GiB) and env_vars. Sizes must be offered by the environment's computer resource policy, and only admins may pick a size other than the template default (403 otherwise). In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
52
52
  *
53
53
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
54
54
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
55
55
  *
56
56
  * @throws {@link AthenaIntelligence.BadRequestError}
57
57
  * @throws {@link AthenaIntelligence.ForbiddenError}
58
+ * @throws {@link AthenaIntelligence.GoneError}
58
59
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
59
60
  * @throws {@link AthenaIntelligence.InternalServerError}
60
61
  * @throws {@link AthenaIntelligence.ServiceUnavailableError}
@@ -248,13 +248,14 @@ class AssetsClient {
248
248
  });
249
249
  }
250
250
  /**
251
- * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
251
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. Computers accept the same configuration as the Athena UI's creation dialog: template, provider, cpu, memory (GiB), disk (GiB) and env_vars. Sizes must be offered by the environment's computer resource policy, and only admins may pick a size other than the template default (403 otherwise). In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
252
252
  *
253
253
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
254
254
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
255
255
  *
256
256
  * @throws {@link AthenaIntelligence.BadRequestError}
257
257
  * @throws {@link AthenaIntelligence.ForbiddenError}
258
+ * @throws {@link AthenaIntelligence.GoneError}
258
259
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
259
260
  * @throws {@link AthenaIntelligence.InternalServerError}
260
261
  * @throws {@link AthenaIntelligence.ServiceUnavailableError}
@@ -302,6 +303,8 @@ class AssetsClient {
302
303
  throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
303
304
  case 403:
304
305
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
306
+ case 410:
307
+ throw new AthenaIntelligence.GoneError(_response.error.body, _response.rawResponse);
305
308
  case 422:
306
309
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
307
310
  case 500:
@@ -10,8 +10,20 @@ import type * as AthenaIntelligence from "../../../../index.js";
10
10
  export interface CreateAssetRequestIn {
11
11
  /** Type of asset to create. Supported types: 'spreadsheet' (or 'sheet'), 'document' (or 'doc'), 'folder', 'database' (or 'db'), 'computer' */
12
12
  asset_type: AthenaIntelligence.CreatableAssetType;
13
+ /** Computer only. vCPU count. Defaults to the template's default. Must be a size the environment's computer resource policy offers; sizes other than the template default require an admin. */
14
+ cpu?: number | null;
15
+ /** Computer only. Disk size in GiB. Defaults to the template's default. Same policy and admin rules as cpu. */
16
+ disk?: number | null;
17
+ /** Computer only. Environment variables to set on the computer. Must include every key the template or environment requires. Also accepted as 'envVars'. */
18
+ env_vars?: Record<string, string | null> | null;
19
+ /** Computer only. Memory in GiB. Defaults to the template's default. Same policy and admin rules as cpu. */
20
+ memory?: number | null;
13
21
  /** ID of the parent folder to create the asset in */
14
22
  parent_folder_id?: string | null;
23
+ /** Computer only. Runtime provider for the computer (e.g. 'talos_v2'). Defaults to the environment's configured computer provider. */
24
+ provider?: string | null;
25
+ /** Computer only. Template key to create the computer from, as picked in the Athena UI's computer creation dialog (e.g. 'default'), or an 'environment:<asset_id>' reference to a saved environment. Defaults to the default template. Also accepted as 'snapshot'. */
26
+ template?: string | null;
15
27
  /** Title for the new asset */
16
28
  title?: string | null;
17
29
  /** ID of the workspace to create the asset in. If not provided, the asset is created in the user's current workspace. The user must be a member of the specified workspace. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2213";
1
+ export declare const SDK_VERSION = "4.3.2214";
@@ -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.2213";
4
+ exports.SDK_VERSION = "4.3.2214";
@@ -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.2213",
10
- "User-Agent": "@athenaintel/sdk/4.3.2213",
9
+ "X-Fern-SDK-Version": "4.3.2214",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2214",
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,
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../core/index.mjs";
2
+ import * as errors from "../../errors/index.mjs";
3
+ export declare class GoneError extends errors.AthenaIntelligenceError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,13 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../errors/index.mjs";
3
+ export class GoneError extends errors.AthenaIntelligenceError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "GoneError",
7
+ statusCode: 410,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, GoneError.prototype);
12
+ }
13
+ }
@@ -3,6 +3,7 @@ export * from "./BadRequestError.mjs";
3
3
  export * from "./ConflictError.mjs";
4
4
  export * from "./ContentTooLargeError.mjs";
5
5
  export * from "./ForbiddenError.mjs";
6
+ export * from "./GoneError.mjs";
6
7
  export * from "./InternalServerError.mjs";
7
8
  export * from "./NotFoundError.mjs";
8
9
  export * from "./NotImplementedError.mjs";
@@ -3,6 +3,7 @@ export * from "./BadRequestError.mjs";
3
3
  export * from "./ConflictError.mjs";
4
4
  export * from "./ContentTooLargeError.mjs";
5
5
  export * from "./ForbiddenError.mjs";
6
+ export * from "./GoneError.mjs";
6
7
  export * from "./InternalServerError.mjs";
7
8
  export * from "./NotFoundError.mjs";
8
9
  export * from "./NotImplementedError.mjs";
@@ -48,13 +48,14 @@ export declare class AssetsClient {
48
48
  convertExcelToSheet(request: AthenaIntelligence.ConvertExcelToSheetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ConvertExcelToSheetResponseOut>;
49
49
  private __convertExcelToSheet;
50
50
  /**
51
- * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
51
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. Computers accept the same configuration as the Athena UI's creation dialog: template, provider, cpu, memory (GiB), disk (GiB) and env_vars. Sizes must be offered by the environment's computer resource policy, and only admins may pick a size other than the template default (403 otherwise). In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
52
52
  *
53
53
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
54
54
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
55
55
  *
56
56
  * @throws {@link AthenaIntelligence.BadRequestError}
57
57
  * @throws {@link AthenaIntelligence.ForbiddenError}
58
+ * @throws {@link AthenaIntelligence.GoneError}
58
59
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
59
60
  * @throws {@link AthenaIntelligence.InternalServerError}
60
61
  * @throws {@link AthenaIntelligence.ServiceUnavailableError}
@@ -212,13 +212,14 @@ export class AssetsClient {
212
212
  });
213
213
  }
214
214
  /**
215
- * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
215
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. Computers accept the same configuration as the Athena UI's creation dialog: template, provider, cpu, memory (GiB), disk (GiB) and env_vars. Sizes must be offered by the environment's computer resource policy, and only admins may pick a size other than the template default (403 otherwise). In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
216
216
  *
217
217
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
218
218
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
219
219
  *
220
220
  * @throws {@link AthenaIntelligence.BadRequestError}
221
221
  * @throws {@link AthenaIntelligence.ForbiddenError}
222
+ * @throws {@link AthenaIntelligence.GoneError}
222
223
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
223
224
  * @throws {@link AthenaIntelligence.InternalServerError}
224
225
  * @throws {@link AthenaIntelligence.ServiceUnavailableError}
@@ -266,6 +267,8 @@ export class AssetsClient {
266
267
  throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
267
268
  case 403:
268
269
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
270
+ case 410:
271
+ throw new AthenaIntelligence.GoneError(_response.error.body, _response.rawResponse);
269
272
  case 422:
270
273
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
271
274
  case 500:
@@ -10,8 +10,20 @@ import type * as AthenaIntelligence from "../../../../index.mjs";
10
10
  export interface CreateAssetRequestIn {
11
11
  /** Type of asset to create. Supported types: 'spreadsheet' (or 'sheet'), 'document' (or 'doc'), 'folder', 'database' (or 'db'), 'computer' */
12
12
  asset_type: AthenaIntelligence.CreatableAssetType;
13
+ /** Computer only. vCPU count. Defaults to the template's default. Must be a size the environment's computer resource policy offers; sizes other than the template default require an admin. */
14
+ cpu?: number | null;
15
+ /** Computer only. Disk size in GiB. Defaults to the template's default. Same policy and admin rules as cpu. */
16
+ disk?: number | null;
17
+ /** Computer only. Environment variables to set on the computer. Must include every key the template or environment requires. Also accepted as 'envVars'. */
18
+ env_vars?: Record<string, string | null> | null;
19
+ /** Computer only. Memory in GiB. Defaults to the template's default. Same policy and admin rules as cpu. */
20
+ memory?: number | null;
13
21
  /** ID of the parent folder to create the asset in */
14
22
  parent_folder_id?: string | null;
23
+ /** Computer only. Runtime provider for the computer (e.g. 'talos_v2'). Defaults to the environment's configured computer provider. */
24
+ provider?: string | null;
25
+ /** Computer only. Template key to create the computer from, as picked in the Athena UI's computer creation dialog (e.g. 'default'), or an 'environment:<asset_id>' reference to a saved environment. Defaults to the default template. Also accepted as 'snapshot'. */
26
+ template?: string | null;
15
27
  /** Title for the new asset */
16
28
  title?: string | null;
17
29
  /** ID of the workspace to create the asset in. If not provided, the asset is created in the user's current workspace. The user must be a member of the specified workspace. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2213";
1
+ export declare const SDK_VERSION = "4.3.2214";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2213";
1
+ export const SDK_VERSION = "4.3.2214";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2213",
3
+ "version": "4.3.2214",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -647,7 +647,7 @@ await client.assets.convertExcelToSheet({
647
647
  <dl>
648
648
  <dd>
649
649
 
650
- Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
650
+ Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. Computers accept the same configuration as the Athena UI's creation dialog: template, provider, cpu, memory (GiB), disk (GiB) and env_vars. Sizes must be offered by the environment's computer resource policy, and only admins may pick a size other than the template default (403 otherwise). In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
651
651
  </dd>
652
652
  </dl>
653
653
  </dd>