@athenaintel/sdk 4.3.2001 → 4.3.2003

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.
Files changed (26) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/assets/client/Client.d.ts +20 -0
  3. package/dist/cjs/api/resources/assets/client/Client.js +88 -0
  4. package/dist/cjs/api/resources/assets/client/requests/ConvertExcelToSheetRequestIn.d.ts +17 -0
  5. package/dist/cjs/api/resources/assets/client/requests/ConvertExcelToSheetRequestIn.js +3 -0
  6. package/dist/cjs/api/resources/assets/client/requests/index.d.ts +1 -0
  7. package/dist/cjs/api/types/ConvertExcelToSheetResponseOut.d.ts +19 -0
  8. package/dist/cjs/api/types/ConvertExcelToSheetResponseOut.js +3 -0
  9. package/dist/cjs/api/types/index.d.ts +1 -0
  10. package/dist/cjs/api/types/index.js +1 -0
  11. package/dist/cjs/version.d.ts +1 -1
  12. package/dist/cjs/version.js +1 -1
  13. package/dist/esm/BaseClient.mjs +2 -2
  14. package/dist/esm/api/resources/assets/client/Client.d.mts +20 -0
  15. package/dist/esm/api/resources/assets/client/Client.mjs +88 -0
  16. package/dist/esm/api/resources/assets/client/requests/ConvertExcelToSheetRequestIn.d.mts +17 -0
  17. package/dist/esm/api/resources/assets/client/requests/ConvertExcelToSheetRequestIn.mjs +2 -0
  18. package/dist/esm/api/resources/assets/client/requests/index.d.mts +1 -0
  19. package/dist/esm/api/types/ConvertExcelToSheetResponseOut.d.mts +19 -0
  20. package/dist/esm/api/types/ConvertExcelToSheetResponseOut.mjs +2 -0
  21. package/dist/esm/api/types/index.d.mts +1 -0
  22. package/dist/esm/api/types/index.mjs +1 -0
  23. package/dist/esm/version.d.mts +1 -1
  24. package/dist/esm/version.mjs +1 -1
  25. package/package.json +1 -1
  26. package/reference.md +66 -0
@@ -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.2001",
47
- "User-Agent": "@athenaintel/sdk/4.3.2001",
46
+ "X-Fern-SDK-Version": "4.3.2003",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2003",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -24,6 +24,26 @@ export declare class AssetsClient {
24
24
  */
25
25
  list(request?: AthenaIntelligence.ListAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.PaginatedAssetsOut>;
26
26
  private __list;
27
+ /**
28
+ * Convert an uploaded Excel (.xlsx) asset into a new, editable Athena sheet asset — the same conversion the Athena UI performs. The new sheet is created alongside the source Excel asset. Pass run_async for large workbooks to get the sheet immediately and poll athena_metadata.conversionStatus for completion.
29
+ *
30
+ * @param {AthenaIntelligence.ConvertExcelToSheetRequestIn} request
31
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link AthenaIntelligence.BadRequestError}
34
+ * @throws {@link AthenaIntelligence.ForbiddenError}
35
+ * @throws {@link AthenaIntelligence.NotFoundError}
36
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
37
+ * @throws {@link AthenaIntelligence.InternalServerError}
38
+ *
39
+ * @example
40
+ * await client.assets.convertExcelToSheet({
41
+ * excel_asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
42
+ * run_async: false
43
+ * })
44
+ */
45
+ convertExcelToSheet(request: AthenaIntelligence.ConvertExcelToSheetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ConvertExcelToSheetResponseOut>;
46
+ private __convertExcelToSheet;
27
47
  /**
28
48
  * Create a new asset such as a spreadsheet, document, folder, database, or computer in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously.
29
49
  *
@@ -152,6 +152,94 @@ class AssetsClient {
152
152
  }
153
153
  });
154
154
  }
155
+ /**
156
+ * Convert an uploaded Excel (.xlsx) asset into a new, editable Athena sheet asset — the same conversion the Athena UI performs. The new sheet is created alongside the source Excel asset. Pass run_async for large workbooks to get the sheet immediately and poll athena_metadata.conversionStatus for completion.
157
+ *
158
+ * @param {AthenaIntelligence.ConvertExcelToSheetRequestIn} request
159
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
160
+ *
161
+ * @throws {@link AthenaIntelligence.BadRequestError}
162
+ * @throws {@link AthenaIntelligence.ForbiddenError}
163
+ * @throws {@link AthenaIntelligence.NotFoundError}
164
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
165
+ * @throws {@link AthenaIntelligence.InternalServerError}
166
+ *
167
+ * @example
168
+ * await client.assets.convertExcelToSheet({
169
+ * excel_asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
170
+ * run_async: false
171
+ * })
172
+ */
173
+ convertExcelToSheet(request, requestOptions) {
174
+ return core.HttpResponsePromise.fromPromise(this.__convertExcelToSheet(request, requestOptions));
175
+ }
176
+ __convertExcelToSheet(request, requestOptions) {
177
+ return __awaiter(this, void 0, void 0, function* () {
178
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
179
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
180
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
181
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
182
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/assets/convert-excel-to-sheet"),
183
+ method: "POST",
184
+ headers: _headers,
185
+ contentType: "application/json",
186
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
187
+ requestType: "json",
188
+ body: request,
189
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
190
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
191
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
192
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
193
+ logging: this._options.logging,
194
+ });
195
+ if (_response.ok) {
196
+ return {
197
+ data: _response.body,
198
+ rawResponse: _response.rawResponse,
199
+ };
200
+ }
201
+ if (_response.error.reason === "status-code") {
202
+ switch (_response.error.statusCode) {
203
+ case 400:
204
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
205
+ case 403:
206
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
207
+ case 404:
208
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
209
+ case 422:
210
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
211
+ case 500:
212
+ throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
213
+ default:
214
+ throw new errors.AthenaIntelligenceError({
215
+ statusCode: _response.error.statusCode,
216
+ body: _response.error.body,
217
+ rawResponse: _response.rawResponse,
218
+ });
219
+ }
220
+ }
221
+ switch (_response.error.reason) {
222
+ case "non-json":
223
+ throw new errors.AthenaIntelligenceError({
224
+ statusCode: _response.error.statusCode,
225
+ body: _response.error.rawBody,
226
+ rawResponse: _response.rawResponse,
227
+ });
228
+ case "body-is-null":
229
+ throw new errors.AthenaIntelligenceError({
230
+ statusCode: _response.error.statusCode,
231
+ rawResponse: _response.rawResponse,
232
+ });
233
+ case "timeout":
234
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/assets/convert-excel-to-sheet.");
235
+ case "unknown":
236
+ throw new errors.AthenaIntelligenceError({
237
+ message: _response.error.errorMessage,
238
+ rawResponse: _response.rawResponse,
239
+ });
240
+ }
241
+ });
242
+ }
155
243
  /**
156
244
  * Create a new asset such as a spreadsheet, document, folder, database, or computer in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously.
157
245
  *
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * excel_asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
5
+ * run_async: false
6
+ * }
7
+ */
8
+ export interface ConvertExcelToSheetRequestIn {
9
+ /** ID of the Excel (.xlsx) asset to convert into an Athena sheet */
10
+ excel_asset_id: string;
11
+ /** Optional password used to decrypt a password-protected workbook. Password-protected workbooks always convert on the 'legacy' engine. */
12
+ password?: string | null;
13
+ /** Return the sheet asset immediately and convert in the background. Large workbooks outlive the gateway's ~60s response window on the synchronous path — with run_async the caller polls athena_metadata.conversionStatus ('converting' | 'completed' | 'failed', with conversionError on failure) instead. */
14
+ run_async?: boolean;
15
+ /** Engine for the converted sheet ('rnc' | 'legacy'). Defaults to the deployment's default engine. */
16
+ spreadsheet_engine?: string | null;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export type { ArchiveAssetsRequest } from "./ArchiveAssetsRequest.js";
2
+ export type { ConvertExcelToSheetRequestIn } from "./ConvertExcelToSheetRequestIn.js";
2
3
  export type { CreateAssetRequestIn } from "./CreateAssetRequestIn.js";
3
4
  export type { CreateProjectRequestIn } from "./CreateProjectRequestIn.js";
4
5
  export type { DownloadAssetsRequest } from "./DownloadAssetsRequest.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Response model for converting an Excel asset to an Athena sheet.
3
+ */
4
+ export interface ConvertExcelToSheetResponseOut {
5
+ /** Type of the created sheet asset */
6
+ asset_type: string;
7
+ /** Conversion status for background (run_async) conversions: 'converting' immediately after the request. Poll the asset's athena_metadata.conversionStatus for 'completed' | 'failed'. Null for synchronous conversions, which have already completed. */
8
+ conversion_status?: string | null;
9
+ /** ID of the source Excel asset */
10
+ excel_asset_id: string;
11
+ /** ID of the sheet asset's parent folder */
12
+ parent_folder_id?: string | null;
13
+ /** ID of the newly created Athena sheet asset */
14
+ sheet_asset_id: string;
15
+ /** Title of the created sheet asset */
16
+ title: string;
17
+ /** ID of the workspace that owns the sheet asset */
18
+ workspace_id?: string | null;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,6 +25,7 @@ export * from "./ChunkResult.js";
25
25
  export * from "./ConversationAssetInfo.js";
26
26
  export * from "./ConversationMessage.js";
27
27
  export * from "./ConversationResult.js";
28
+ export * from "./ConvertExcelToSheetResponseOut.js";
28
29
  export * from "./CreatableAssetType.js";
29
30
  export * from "./CreateAssetResponseOut.js";
30
31
  export * from "./CreateNewSheetTabResponse.js";
@@ -41,6 +41,7 @@ __exportStar(require("./ChunkResult.js"), exports);
41
41
  __exportStar(require("./ConversationAssetInfo.js"), exports);
42
42
  __exportStar(require("./ConversationMessage.js"), exports);
43
43
  __exportStar(require("./ConversationResult.js"), exports);
44
+ __exportStar(require("./ConvertExcelToSheetResponseOut.js"), exports);
44
45
  __exportStar(require("./CreatableAssetType.js"), exports);
45
46
  __exportStar(require("./CreateAssetResponseOut.js"), exports);
46
47
  __exportStar(require("./CreateNewSheetTabResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2001";
1
+ export declare const SDK_VERSION = "4.3.2003";
@@ -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.2001";
4
+ exports.SDK_VERSION = "4.3.2003";
@@ -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.2001",
10
- "User-Agent": "@athenaintel/sdk/4.3.2001",
9
+ "X-Fern-SDK-Version": "4.3.2003",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2003",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -24,6 +24,26 @@ export declare class AssetsClient {
24
24
  */
25
25
  list(request?: AthenaIntelligence.ListAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.PaginatedAssetsOut>;
26
26
  private __list;
27
+ /**
28
+ * Convert an uploaded Excel (.xlsx) asset into a new, editable Athena sheet asset — the same conversion the Athena UI performs. The new sheet is created alongside the source Excel asset. Pass run_async for large workbooks to get the sheet immediately and poll athena_metadata.conversionStatus for completion.
29
+ *
30
+ * @param {AthenaIntelligence.ConvertExcelToSheetRequestIn} request
31
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link AthenaIntelligence.BadRequestError}
34
+ * @throws {@link AthenaIntelligence.ForbiddenError}
35
+ * @throws {@link AthenaIntelligence.NotFoundError}
36
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
37
+ * @throws {@link AthenaIntelligence.InternalServerError}
38
+ *
39
+ * @example
40
+ * await client.assets.convertExcelToSheet({
41
+ * excel_asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
42
+ * run_async: false
43
+ * })
44
+ */
45
+ convertExcelToSheet(request: AthenaIntelligence.ConvertExcelToSheetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ConvertExcelToSheetResponseOut>;
46
+ private __convertExcelToSheet;
27
47
  /**
28
48
  * Create a new asset such as a spreadsheet, document, folder, database, or computer in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously.
29
49
  *
@@ -116,6 +116,94 @@ export class AssetsClient {
116
116
  }
117
117
  });
118
118
  }
119
+ /**
120
+ * Convert an uploaded Excel (.xlsx) asset into a new, editable Athena sheet asset — the same conversion the Athena UI performs. The new sheet is created alongside the source Excel asset. Pass run_async for large workbooks to get the sheet immediately and poll athena_metadata.conversionStatus for completion.
121
+ *
122
+ * @param {AthenaIntelligence.ConvertExcelToSheetRequestIn} request
123
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
124
+ *
125
+ * @throws {@link AthenaIntelligence.BadRequestError}
126
+ * @throws {@link AthenaIntelligence.ForbiddenError}
127
+ * @throws {@link AthenaIntelligence.NotFoundError}
128
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
129
+ * @throws {@link AthenaIntelligence.InternalServerError}
130
+ *
131
+ * @example
132
+ * await client.assets.convertExcelToSheet({
133
+ * excel_asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
134
+ * run_async: false
135
+ * })
136
+ */
137
+ convertExcelToSheet(request, requestOptions) {
138
+ return core.HttpResponsePromise.fromPromise(this.__convertExcelToSheet(request, requestOptions));
139
+ }
140
+ __convertExcelToSheet(request, requestOptions) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
143
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
144
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
145
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
146
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/assets/convert-excel-to-sheet"),
147
+ method: "POST",
148
+ headers: _headers,
149
+ contentType: "application/json",
150
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
151
+ requestType: "json",
152
+ body: request,
153
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
154
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
155
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
156
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
157
+ logging: this._options.logging,
158
+ });
159
+ if (_response.ok) {
160
+ return {
161
+ data: _response.body,
162
+ rawResponse: _response.rawResponse,
163
+ };
164
+ }
165
+ if (_response.error.reason === "status-code") {
166
+ switch (_response.error.statusCode) {
167
+ case 400:
168
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
169
+ case 403:
170
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
171
+ case 404:
172
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
173
+ case 422:
174
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
175
+ case 500:
176
+ throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
177
+ default:
178
+ throw new errors.AthenaIntelligenceError({
179
+ statusCode: _response.error.statusCode,
180
+ body: _response.error.body,
181
+ rawResponse: _response.rawResponse,
182
+ });
183
+ }
184
+ }
185
+ switch (_response.error.reason) {
186
+ case "non-json":
187
+ throw new errors.AthenaIntelligenceError({
188
+ statusCode: _response.error.statusCode,
189
+ body: _response.error.rawBody,
190
+ rawResponse: _response.rawResponse,
191
+ });
192
+ case "body-is-null":
193
+ throw new errors.AthenaIntelligenceError({
194
+ statusCode: _response.error.statusCode,
195
+ rawResponse: _response.rawResponse,
196
+ });
197
+ case "timeout":
198
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/assets/convert-excel-to-sheet.");
199
+ case "unknown":
200
+ throw new errors.AthenaIntelligenceError({
201
+ message: _response.error.errorMessage,
202
+ rawResponse: _response.rawResponse,
203
+ });
204
+ }
205
+ });
206
+ }
119
207
  /**
120
208
  * Create a new asset such as a spreadsheet, document, folder, database, or computer in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously.
121
209
  *
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * excel_asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
5
+ * run_async: false
6
+ * }
7
+ */
8
+ export interface ConvertExcelToSheetRequestIn {
9
+ /** ID of the Excel (.xlsx) asset to convert into an Athena sheet */
10
+ excel_asset_id: string;
11
+ /** Optional password used to decrypt a password-protected workbook. Password-protected workbooks always convert on the 'legacy' engine. */
12
+ password?: string | null;
13
+ /** Return the sheet asset immediately and convert in the background. Large workbooks outlive the gateway's ~60s response window on the synchronous path — with run_async the caller polls athena_metadata.conversionStatus ('converting' | 'completed' | 'failed', with conversionError on failure) instead. */
14
+ run_async?: boolean;
15
+ /** Engine for the converted sheet ('rnc' | 'legacy'). Defaults to the deployment's default engine. */
16
+ spreadsheet_engine?: string | null;
17
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,4 +1,5 @@
1
1
  export type { ArchiveAssetsRequest } from "./ArchiveAssetsRequest.mjs";
2
+ export type { ConvertExcelToSheetRequestIn } from "./ConvertExcelToSheetRequestIn.mjs";
2
3
  export type { CreateAssetRequestIn } from "./CreateAssetRequestIn.mjs";
3
4
  export type { CreateProjectRequestIn } from "./CreateProjectRequestIn.mjs";
4
5
  export type { DownloadAssetsRequest } from "./DownloadAssetsRequest.mjs";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Response model for converting an Excel asset to an Athena sheet.
3
+ */
4
+ export interface ConvertExcelToSheetResponseOut {
5
+ /** Type of the created sheet asset */
6
+ asset_type: string;
7
+ /** Conversion status for background (run_async) conversions: 'converting' immediately after the request. Poll the asset's athena_metadata.conversionStatus for 'completed' | 'failed'. Null for synchronous conversions, which have already completed. */
8
+ conversion_status?: string | null;
9
+ /** ID of the source Excel asset */
10
+ excel_asset_id: string;
11
+ /** ID of the sheet asset's parent folder */
12
+ parent_folder_id?: string | null;
13
+ /** ID of the newly created Athena sheet asset */
14
+ sheet_asset_id: string;
15
+ /** Title of the created sheet asset */
16
+ title: string;
17
+ /** ID of the workspace that owns the sheet asset */
18
+ workspace_id?: string | null;
19
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -25,6 +25,7 @@ export * from "./ChunkResult.mjs";
25
25
  export * from "./ConversationAssetInfo.mjs";
26
26
  export * from "./ConversationMessage.mjs";
27
27
  export * from "./ConversationResult.mjs";
28
+ export * from "./ConvertExcelToSheetResponseOut.mjs";
28
29
  export * from "./CreatableAssetType.mjs";
29
30
  export * from "./CreateAssetResponseOut.mjs";
30
31
  export * from "./CreateNewSheetTabResponse.mjs";
@@ -25,6 +25,7 @@ export * from "./ChunkResult.mjs";
25
25
  export * from "./ConversationAssetInfo.mjs";
26
26
  export * from "./ConversationMessage.mjs";
27
27
  export * from "./ConversationResult.mjs";
28
+ export * from "./ConvertExcelToSheetResponseOut.mjs";
28
29
  export * from "./CreatableAssetType.mjs";
29
30
  export * from "./CreateAssetResponseOut.mjs";
30
31
  export * from "./CreateNewSheetTabResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2001";
1
+ export declare const SDK_VERSION = "4.3.2003";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2001";
1
+ export const SDK_VERSION = "4.3.2003";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2001",
3
+ "version": "4.3.2003",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -483,6 +483,72 @@ await client.assets.list();
483
483
  </dl>
484
484
 
485
485
 
486
+ </dd>
487
+ </dl>
488
+ </details>
489
+
490
+ <details><summary><code>client.assets.<a href="/src/api/resources/assets/client/Client.ts">convertExcelToSheet</a>({ ...params }) -> AthenaIntelligence.ConvertExcelToSheetResponseOut</code></summary>
491
+ <dl>
492
+ <dd>
493
+
494
+ #### 📝 Description
495
+
496
+ <dl>
497
+ <dd>
498
+
499
+ <dl>
500
+ <dd>
501
+
502
+ Convert an uploaded Excel (.xlsx) asset into a new, editable Athena sheet asset — the same conversion the Athena UI performs. The new sheet is created alongside the source Excel asset. Pass run_async for large workbooks to get the sheet immediately and poll athena_metadata.conversionStatus for completion.
503
+ </dd>
504
+ </dl>
505
+ </dd>
506
+ </dl>
507
+
508
+ #### 🔌 Usage
509
+
510
+ <dl>
511
+ <dd>
512
+
513
+ <dl>
514
+ <dd>
515
+
516
+ ```typescript
517
+ await client.assets.convertExcelToSheet({
518
+ excel_asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
519
+ run_async: false
520
+ });
521
+
522
+ ```
523
+ </dd>
524
+ </dl>
525
+ </dd>
526
+ </dl>
527
+
528
+ #### ⚙️ Parameters
529
+
530
+ <dl>
531
+ <dd>
532
+
533
+ <dl>
534
+ <dd>
535
+
536
+ **request:** `AthenaIntelligence.ConvertExcelToSheetRequestIn`
537
+
538
+ </dd>
539
+ </dl>
540
+
541
+ <dl>
542
+ <dd>
543
+
544
+ **requestOptions:** `AssetsClient.RequestOptions`
545
+
546
+ </dd>
547
+ </dl>
548
+ </dd>
549
+ </dl>
550
+
551
+
486
552
  </dd>
487
553
  </dl>
488
554
  </details>