@athenaintel/sdk 4.3.2269 → 4.3.2271

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 (57) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/errors/ContentTooLargeError.d.ts +1 -2
  4. package/dist/cjs/api/errors/UnsupportedMediaTypeError.d.ts +1 -2
  5. package/dist/cjs/api/resources/assets/client/Client.d.ts +43 -2
  6. package/dist/cjs/api/resources/assets/client/Client.js +199 -2
  7. package/dist/cjs/api/resources/assets/client/requests/BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost.d.ts +19 -0
  8. package/dist/cjs/api/resources/assets/client/requests/CreateAssetRequestIn.d.ts +1 -1
  9. package/dist/cjs/api/resources/assets/client/requests/GetWorkbookAssetsRequest.d.ts +10 -0
  10. package/dist/cjs/api/resources/assets/client/requests/index.d.ts +2 -0
  11. package/dist/cjs/api/types/CreatableAssetType.d.ts +2 -0
  12. package/dist/cjs/api/types/CreatableAssetType.js +2 -0
  13. package/dist/cjs/api/types/FileBackedSheetResponseOut.d.ts +9 -0
  14. package/dist/cjs/api/types/FileBackedSheetResponseOut.js +3 -0
  15. package/dist/cjs/api/types/FileBackedWorkbookResponseOut.d.ts +10 -0
  16. package/dist/cjs/api/types/FileBackedWorkbookResponseOut.js +3 -0
  17. package/dist/cjs/api/types/StudioTokenRequestIn.d.ts +6 -0
  18. package/dist/cjs/api/types/StudioTokenRequestIn.js +3 -0
  19. package/dist/cjs/api/types/StudioTokenResponseOut.d.ts +3 -2
  20. package/dist/cjs/api/types/StudioTokenResponseOut.js +2 -1
  21. package/dist/cjs/api/types/index.d.ts +2 -2
  22. package/dist/cjs/api/types/index.js +2 -2
  23. package/dist/cjs/version.d.ts +1 -1
  24. package/dist/cjs/version.js +1 -1
  25. package/dist/esm/BaseClient.mjs +2 -2
  26. package/dist/esm/api/errors/ContentTooLargeError.d.mts +1 -2
  27. package/dist/esm/api/errors/UnsupportedMediaTypeError.d.mts +1 -2
  28. package/dist/esm/api/resources/assets/client/Client.d.mts +43 -2
  29. package/dist/esm/api/resources/assets/client/Client.mjs +199 -2
  30. package/dist/esm/api/resources/assets/client/requests/BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost.d.mts +19 -0
  31. package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.d.mts +1 -1
  32. package/dist/esm/api/resources/assets/client/requests/GetWorkbookAssetsRequest.d.mts +10 -0
  33. package/dist/esm/api/resources/assets/client/requests/index.d.mts +2 -0
  34. package/dist/esm/api/types/CreatableAssetType.d.mts +2 -0
  35. package/dist/esm/api/types/CreatableAssetType.mjs +2 -0
  36. package/dist/esm/api/types/FileBackedSheetResponseOut.d.mts +9 -0
  37. package/dist/esm/api/types/FileBackedSheetResponseOut.mjs +2 -0
  38. package/dist/esm/api/types/FileBackedWorkbookResponseOut.d.mts +10 -0
  39. package/dist/esm/api/types/FileBackedWorkbookResponseOut.mjs +2 -0
  40. package/dist/esm/api/types/StudioTokenRequestIn.d.mts +6 -0
  41. package/dist/esm/api/types/StudioTokenRequestIn.mjs +3 -0
  42. package/dist/esm/api/types/StudioTokenResponseOut.d.mts +3 -2
  43. package/dist/esm/api/types/StudioTokenResponseOut.mjs +2 -1
  44. package/dist/esm/api/types/index.d.mts +2 -2
  45. package/dist/esm/api/types/index.mjs +2 -2
  46. package/dist/esm/version.d.mts +1 -1
  47. package/dist/esm/version.mjs +1 -1
  48. package/package.json +1 -1
  49. package/reference.md +132 -2
  50. package/dist/cjs/api/types/DataFrameUnknownFormatError.d.ts +0 -5
  51. package/dist/cjs/api/types/FileTooLargeError.d.ts +0 -3
  52. package/dist/esm/api/types/DataFrameUnknownFormatError.d.mts +0 -5
  53. package/dist/esm/api/types/FileTooLargeError.d.mts +0 -3
  54. /package/dist/cjs/api/{types/DataFrameUnknownFormatError.js → resources/assets/client/requests/BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost.js} +0 -0
  55. /package/dist/cjs/api/{types/FileTooLargeError.js → resources/assets/client/requests/GetWorkbookAssetsRequest.js} +0 -0
  56. /package/dist/esm/api/{types/DataFrameUnknownFormatError.mjs → resources/assets/client/requests/BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost.mjs} +0 -0
  57. /package/dist/esm/api/{types/FileTooLargeError.mjs → resources/assets/client/requests/GetWorkbookAssetsRequest.mjs} +0 -0
package/README.md CHANGED
@@ -96,7 +96,7 @@ import { AthenaIntelligenceClient } from "@athenaintel/sdk";
96
96
  import * as fs from "fs";
97
97
 
98
98
  const client = new AthenaIntelligenceClient({ apiKey: "YOUR_API_KEY", sessionCredential: "YOUR_SESSION_CREDENTIAL" });
99
- await client.tools.saveAsset({
99
+ await client.assets.createFromFile({
100
100
  file: fs.createReadStream("/path/to/your/file")
101
101
  });
102
102
  ```
@@ -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.2269",
47
- "User-Agent": "@athenaintel/sdk/4.3.2269",
46
+ "X-Fern-SDK-Version": "4.3.2271",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2271",
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,
@@ -1,6 +1,5 @@
1
1
  import type * as core from "../../core/index.js";
2
2
  import * as errors from "../../errors/index.js";
3
- import type * as AthenaIntelligence from "../index.js";
4
3
  export declare class ContentTooLargeError extends errors.AthenaIntelligenceError {
5
- constructor(body: AthenaIntelligence.FileTooLargeError, rawResponse?: core.RawResponse);
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import type * as core from "../../core/index.js";
2
2
  import * as errors from "../../errors/index.js";
3
- import type * as AthenaIntelligence from "../index.js";
4
3
  export declare class UnsupportedMediaTypeError extends errors.AthenaIntelligenceError {
5
- constructor(body: AthenaIntelligence.DataFrameUnknownFormatError, rawResponse?: core.RawResponse);
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
6
5
  }
@@ -50,7 +50,7 @@ export declare class AssetsClient {
50
50
  convertExcelToSheet(request: AthenaIntelligence.ConvertExcelToSheetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ConvertExcelToSheetResponseOut>;
51
51
  private __convertExcelToSheet;
52
52
  /**
53
- * Create a new asset such as a spreadsheet, document, folder, database, computer, user interface, skill, collab agent, figure, 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. Databases accept suspend_timeout_seconds, the auto-suspend window from the database's Settings in Athena: 0 keeps the database running (it never suspends, and keeps using capacity), otherwise 60 to 86400 seconds. A database is provisioned in the background: poll GET /api/v0/databases/{asset_id}/compute-status until it reports running or suspended. Figures take figure_config, a FigureSpec (kind, rendered and provenance, plus spec or chart), validated as the Athena UI's figures are. Without workspace_id the asset is created in the workspace of parent_folder_id when one is given, otherwise in your current workspace; you must be a member of that workspace.
53
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, user interface, skill, collab agent, figure, Word document, presentation, 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. Databases accept suspend_timeout_seconds, the auto-suspend window from the database's Settings in Athena: 0 keeps the database running (it never suspends, and keeps using capacity), otherwise 60 to 86400 seconds. A database is provisioned in the background: poll GET /api/v0/databases/{asset_id}/compute-status until it reports running or suspended. Figures take figure_config, a FigureSpec (kind, rendered and provenance, plus spec or chart), validated as the Athena UI's figures are. A word_document is a Word document holding Athena's default template, and a presentation is a blank widescreen PPTX Studio deck (the workspace's default template is not applied): Athena creates each with its own studio credential, as your write, and answers once the studio has seeded it (502, keeping nothing, when PPTX Studio could not seed a deck). Edit them through DOCX Studio or PPTX Studio with a token from POST /api/v0/assets/{asset_id}/studio-token. From an agent run (a verified X-Athena-Session-Credential), their first write also records the run, and a presentation takes the create_presentation_pptx_studio tool policy. Without workspace_id the asset is created in the workspace of parent_folder_id when one is given, otherwise in your current workspace; you must be a member of that workspace.
54
54
  *
55
55
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
56
56
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -60,6 +60,7 @@ export declare class AssetsClient {
60
60
  * @throws {@link AthenaIntelligence.GoneError}
61
61
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
62
62
  * @throws {@link AthenaIntelligence.InternalServerError}
63
+ * @throws {@link AthenaIntelligence.BadGatewayError}
63
64
  * @throws {@link AthenaIntelligence.ServiceUnavailableError}
64
65
  *
65
66
  * @example
@@ -71,6 +72,27 @@ export declare class AssetsClient {
71
72
  */
72
73
  create(request: AthenaIntelligence.CreateAssetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.CreateAssetResponseOut>;
73
74
  private __create;
75
+ /**
76
+ * Create a Word document from a .docx file, or a presentation from a .pptx or .potx file, holding that file's content: the asset Athena makes when you create one from a file in the app. Athena imports the file through DOCX Studio or PPTX Studio with its own studio credential, as your write, and answers once the asset is ready (a large deck can take a few minutes). Nothing is left behind when the import fails. The file's name decides the type; the title defaults to the name without its extension. Gates are those of POST /api/v0/assets/create: membership in the workspace (workspace_id, else parent_folder_id's, else your current one) and EDIT on parent_folder_id. With source_asset_id (an asset you can read, for example the document the file was exported from) and no parent_folder_id, the new asset goes into the source's folder when you may create there, otherwise at your root. Unlike POST /api/v0/tools/file/save, which stores the file itself and turns an Office upload into its editable type in the background, this makes the editable asset in the request and keeps no file asset. A Word file may be up to 18.75 MiB, a PowerPoint file up to 100 MiB. From an agent run (a verified X-Athena-Session-Credential), a Word document's first write also records the run, and a presentation takes the create_presentation_pptx_studio tool policy.
77
+ *
78
+ * @param {AthenaIntelligence.BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost} request
79
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link AthenaIntelligence.BadRequestError}
82
+ * @throws {@link AthenaIntelligence.ForbiddenError}
83
+ * @throws {@link AthenaIntelligence.NotFoundError}
84
+ * @throws {@link AthenaIntelligence.ContentTooLargeError}
85
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
86
+ * @throws {@link AthenaIntelligence.BadGatewayError}
87
+ *
88
+ * @example
89
+ * import { createReadStream } from "fs";
90
+ * await client.assets.createFromFile({
91
+ * file: fs.createReadStream("/path/to/your/file")
92
+ * })
93
+ */
94
+ createFromFile(request: AthenaIntelligence.BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.CreateAssetResponseOut>;
95
+ private __createFromFile;
74
96
  /**
75
97
  * Create a new project with custom metadata. Projects can be typed (e.g., 'candidate', 'user', 'company') and include flexible custom metadata for storing additional information.
76
98
  *
@@ -414,7 +436,7 @@ export declare class AssetsClient {
414
436
  updateSkillConfig(request: AthenaIntelligence.UpdateSkillConfigRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.UpdateAssetConfigResponseOut>;
415
437
  private __updateSkillConfig;
416
438
  /**
417
- * Mint a short-lived asset token for the service that edits an asset: a spreadsheet's, a Word document's or a deck's, named in ``audience``. The token names the caller, this asset and one access level, lasts 15 minutes and is good only on that service's routes for this asset, so code (an SDK in a computer, for example) never sends the service a long-lived credential. The caller must be able to view the asset and be a member of its workspace; the token is read-write only when the caller can edit the asset and asked for edit. A computer's or session's credential mints tokens for assets of its own workspace only. Any other asset (another type, a live provider file, or one outside every workspace) is refused with 422.
439
+ * Mint a short-lived asset token for the service that edits an asset: a spreadsheet's, a Word document's or a deck's, named in ``audience``. The token names the caller, this asset and one access level, lasts 15 minutes and is good only on that service's routes for this asset, so code (an SDK in a computer, for example) never sends the service a long-lived credential. The caller must be able to view the asset and be a member of its workspace; the token is read-write only when the caller can edit the asset and asked for edit. A computer's or session's credential mints tokens for assets of its own workspace only. With audience 'pptx-studio-source' it mints the read-only token the deck editing service reads a spreadsheet, figure or semantic model with for a linked table, OLE object or chart; a recording's token is always that one. Any other asset (another type, a live provider file, or one outside every workspace) is refused with 422.
418
440
  *
419
441
  * @param {AthenaIntelligence.CreateStudioTokenAssetsRequest} request
420
442
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -435,6 +457,25 @@ export declare class AssetsClient {
435
457
  */
436
458
  createStudioToken(request: AthenaIntelligence.CreateStudioTokenAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.StudioTokenResponseOut>;
437
459
  private __createStudioToken;
460
+ /**
461
+ * Read a spreadsheet file's contents as rows, every tab: an uploaded .xlsx, .xlsm, .xls, .csv, .tsv or Parquet file, or a linked file in SharePoint, Google Drive, OneDrive or iManage. Excel and Parquet cells keep their types; a CSV or TSV field that reads as a number becomes one. A sheet is read whole up to a safety ceiling, and a file over 40 MB is refused (413). A native Athena spreadsheet answers 409: its contents are the collaborative sheet, which the spreadsheet SDK opens directly. Nothing is written.
462
+ *
463
+ * @param {AthenaIntelligence.GetWorkbookAssetsRequest} request
464
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
465
+ *
466
+ * @throws {@link AthenaIntelligence.NotFoundError}
467
+ * @throws {@link AthenaIntelligence.ConflictError}
468
+ * @throws {@link AthenaIntelligence.ContentTooLargeError}
469
+ * @throws {@link AthenaIntelligence.UnsupportedMediaTypeError}
470
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
471
+ *
472
+ * @example
473
+ * await client.assets.getWorkbook({
474
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f"
475
+ * })
476
+ */
477
+ getWorkbook(request: AthenaIntelligence.GetWorkbookAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.FileBackedWorkbookResponseOut>;
478
+ private __getWorkbook;
438
479
  /**
439
480
  * Update the workspace-level access on an asset. Needs edit access to the asset. Set 'view' or 'edit' to grant workspace-wide access, which also needs permission to share with the workspace. Set 'none' (or null) to remove the workspace-wide share, as DELETE does; removing a folder's share also removes it from the assets inside the folder. People and groups the asset is shared with directly keep their access.
440
481
  *
@@ -255,7 +255,7 @@ class AssetsClient {
255
255
  });
256
256
  }
257
257
  /**
258
- * Create a new asset such as a spreadsheet, document, folder, database, computer, user interface, skill, collab agent, figure, 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. Databases accept suspend_timeout_seconds, the auto-suspend window from the database's Settings in Athena: 0 keeps the database running (it never suspends, and keeps using capacity), otherwise 60 to 86400 seconds. A database is provisioned in the background: poll GET /api/v0/databases/{asset_id}/compute-status until it reports running or suspended. Figures take figure_config, a FigureSpec (kind, rendered and provenance, plus spec or chart), validated as the Athena UI's figures are. Without workspace_id the asset is created in the workspace of parent_folder_id when one is given, otherwise in your current workspace; you must be a member of that workspace.
258
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, user interface, skill, collab agent, figure, Word document, presentation, 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. Databases accept suspend_timeout_seconds, the auto-suspend window from the database's Settings in Athena: 0 keeps the database running (it never suspends, and keeps using capacity), otherwise 60 to 86400 seconds. A database is provisioned in the background: poll GET /api/v0/databases/{asset_id}/compute-status until it reports running or suspended. Figures take figure_config, a FigureSpec (kind, rendered and provenance, plus spec or chart), validated as the Athena UI's figures are. A word_document is a Word document holding Athena's default template, and a presentation is a blank widescreen PPTX Studio deck (the workspace's default template is not applied): Athena creates each with its own studio credential, as your write, and answers once the studio has seeded it (502, keeping nothing, when PPTX Studio could not seed a deck). Edit them through DOCX Studio or PPTX Studio with a token from POST /api/v0/assets/{asset_id}/studio-token. From an agent run (a verified X-Athena-Session-Credential), their first write also records the run, and a presentation takes the create_presentation_pptx_studio tool policy. Without workspace_id the asset is created in the workspace of parent_folder_id when one is given, otherwise in your current workspace; you must be a member of that workspace.
259
259
  *
260
260
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
261
261
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -265,6 +265,7 @@ class AssetsClient {
265
265
  * @throws {@link AthenaIntelligence.GoneError}
266
266
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
267
267
  * @throws {@link AthenaIntelligence.InternalServerError}
268
+ * @throws {@link AthenaIntelligence.BadGatewayError}
268
269
  * @throws {@link AthenaIntelligence.ServiceUnavailableError}
269
270
  *
270
271
  * @example
@@ -316,6 +317,8 @@ class AssetsClient {
316
317
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
317
318
  case 500:
318
319
  throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
320
+ case 502:
321
+ throw new AthenaIntelligence.BadGatewayError(_response.error.body, _response.rawResponse);
319
322
  case 503:
320
323
  throw new AthenaIntelligence.ServiceUnavailableError(_response.error.body, _response.rawResponse);
321
324
  default:
@@ -348,6 +351,113 @@ class AssetsClient {
348
351
  }
349
352
  });
350
353
  }
354
+ /**
355
+ * Create a Word document from a .docx file, or a presentation from a .pptx or .potx file, holding that file's content: the asset Athena makes when you create one from a file in the app. Athena imports the file through DOCX Studio or PPTX Studio with its own studio credential, as your write, and answers once the asset is ready (a large deck can take a few minutes). Nothing is left behind when the import fails. The file's name decides the type; the title defaults to the name without its extension. Gates are those of POST /api/v0/assets/create: membership in the workspace (workspace_id, else parent_folder_id's, else your current one) and EDIT on parent_folder_id. With source_asset_id (an asset you can read, for example the document the file was exported from) and no parent_folder_id, the new asset goes into the source's folder when you may create there, otherwise at your root. Unlike POST /api/v0/tools/file/save, which stores the file itself and turns an Office upload into its editable type in the background, this makes the editable asset in the request and keeps no file asset. A Word file may be up to 18.75 MiB, a PowerPoint file up to 100 MiB. From an agent run (a verified X-Athena-Session-Credential), a Word document's first write also records the run, and a presentation takes the create_presentation_pptx_studio tool policy.
356
+ *
357
+ * @param {AthenaIntelligence.BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost} request
358
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
359
+ *
360
+ * @throws {@link AthenaIntelligence.BadRequestError}
361
+ * @throws {@link AthenaIntelligence.ForbiddenError}
362
+ * @throws {@link AthenaIntelligence.NotFoundError}
363
+ * @throws {@link AthenaIntelligence.ContentTooLargeError}
364
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
365
+ * @throws {@link AthenaIntelligence.BadGatewayError}
366
+ *
367
+ * @example
368
+ * import { createReadStream } from "fs";
369
+ * await client.assets.createFromFile({
370
+ * file: fs.createReadStream("/path/to/your/file")
371
+ * })
372
+ */
373
+ createFromFile(request, requestOptions) {
374
+ return core.HttpResponsePromise.fromPromise(this.__createFromFile(request, requestOptions));
375
+ }
376
+ __createFromFile(request, requestOptions) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
379
+ const _queryParams = {};
380
+ if (request.title !== undefined) {
381
+ _queryParams.title = request.title;
382
+ }
383
+ if (request.parent_folder_id !== undefined) {
384
+ _queryParams.parent_folder_id = request.parent_folder_id;
385
+ }
386
+ if (request.workspace_id !== undefined) {
387
+ _queryParams.workspace_id = request.workspace_id;
388
+ }
389
+ if (request.source_asset_id !== undefined) {
390
+ _queryParams.source_asset_id = request.source_asset_id;
391
+ }
392
+ const _request = yield core.newFormData();
393
+ yield _request.appendFile("file", request.file);
394
+ const _maybeEncodedRequest = yield _request.getRequest();
395
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
396
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "X-Athena-Session-Credential": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sessionCredential) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sessionCredential }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
397
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
398
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.AthenaIntelligenceEnvironment.Production, "api/v0/assets/create-from-file"),
399
+ method: "POST",
400
+ headers: _headers,
401
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
402
+ requestType: "file",
403
+ duplex: _maybeEncodedRequest.duplex,
404
+ body: _maybeEncodedRequest.body,
405
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
406
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
407
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
408
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
409
+ logging: this._options.logging,
410
+ });
411
+ if (_response.ok) {
412
+ return {
413
+ data: _response.body,
414
+ rawResponse: _response.rawResponse,
415
+ };
416
+ }
417
+ if (_response.error.reason === "status-code") {
418
+ switch (_response.error.statusCode) {
419
+ case 400:
420
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
421
+ case 403:
422
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
423
+ case 404:
424
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
425
+ case 413:
426
+ throw new AthenaIntelligence.ContentTooLargeError(_response.error.body, _response.rawResponse);
427
+ case 422:
428
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
429
+ case 502:
430
+ throw new AthenaIntelligence.BadGatewayError(_response.error.body, _response.rawResponse);
431
+ default:
432
+ throw new errors.AthenaIntelligenceError({
433
+ statusCode: _response.error.statusCode,
434
+ body: _response.error.body,
435
+ rawResponse: _response.rawResponse,
436
+ });
437
+ }
438
+ }
439
+ switch (_response.error.reason) {
440
+ case "non-json":
441
+ throw new errors.AthenaIntelligenceError({
442
+ statusCode: _response.error.statusCode,
443
+ body: _response.error.rawBody,
444
+ rawResponse: _response.rawResponse,
445
+ });
446
+ case "body-is-null":
447
+ throw new errors.AthenaIntelligenceError({
448
+ statusCode: _response.error.statusCode,
449
+ rawResponse: _response.rawResponse,
450
+ });
451
+ case "timeout":
452
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/assets/create-from-file.");
453
+ case "unknown":
454
+ throw new errors.AthenaIntelligenceError({
455
+ message: _response.error.errorMessage,
456
+ rawResponse: _response.rawResponse,
457
+ });
458
+ }
459
+ });
460
+ }
351
461
  /**
352
462
  * Create a new project with custom metadata. Projects can be typed (e.g., 'candidate', 'user', 'company') and include flexible custom metadata for storing additional information.
353
463
  *
@@ -1868,7 +1978,7 @@ class AssetsClient {
1868
1978
  });
1869
1979
  }
1870
1980
  /**
1871
- * Mint a short-lived asset token for the service that edits an asset: a spreadsheet's, a Word document's or a deck's, named in ``audience``. The token names the caller, this asset and one access level, lasts 15 minutes and is good only on that service's routes for this asset, so code (an SDK in a computer, for example) never sends the service a long-lived credential. The caller must be able to view the asset and be a member of its workspace; the token is read-write only when the caller can edit the asset and asked for edit. A computer's or session's credential mints tokens for assets of its own workspace only. Any other asset (another type, a live provider file, or one outside every workspace) is refused with 422.
1981
+ * Mint a short-lived asset token for the service that edits an asset: a spreadsheet's, a Word document's or a deck's, named in ``audience``. The token names the caller, this asset and one access level, lasts 15 minutes and is good only on that service's routes for this asset, so code (an SDK in a computer, for example) never sends the service a long-lived credential. The caller must be able to view the asset and be a member of its workspace; the token is read-write only when the caller can edit the asset and asked for edit. A computer's or session's credential mints tokens for assets of its own workspace only. With audience 'pptx-studio-source' it mints the read-only token the deck editing service reads a spreadsheet, figure or semantic model with for a linked table, OLE object or chart; a recording's token is always that one. Any other asset (another type, a live provider file, or one outside every workspace) is refused with 422.
1872
1982
  *
1873
1983
  * @param {AthenaIntelligence.CreateStudioTokenAssetsRequest} request
1874
1984
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1960,6 +2070,93 @@ class AssetsClient {
1960
2070
  }
1961
2071
  });
1962
2072
  }
2073
+ /**
2074
+ * Read a spreadsheet file's contents as rows, every tab: an uploaded .xlsx, .xlsm, .xls, .csv, .tsv or Parquet file, or a linked file in SharePoint, Google Drive, OneDrive or iManage. Excel and Parquet cells keep their types; a CSV or TSV field that reads as a number becomes one. A sheet is read whole up to a safety ceiling, and a file over 40 MB is refused (413). A native Athena spreadsheet answers 409: its contents are the collaborative sheet, which the spreadsheet SDK opens directly. Nothing is written.
2075
+ *
2076
+ * @param {AthenaIntelligence.GetWorkbookAssetsRequest} request
2077
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
2078
+ *
2079
+ * @throws {@link AthenaIntelligence.NotFoundError}
2080
+ * @throws {@link AthenaIntelligence.ConflictError}
2081
+ * @throws {@link AthenaIntelligence.ContentTooLargeError}
2082
+ * @throws {@link AthenaIntelligence.UnsupportedMediaTypeError}
2083
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
2084
+ *
2085
+ * @example
2086
+ * await client.assets.getWorkbook({
2087
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f"
2088
+ * })
2089
+ */
2090
+ getWorkbook(request, requestOptions) {
2091
+ return core.HttpResponsePromise.fromPromise(this.__getWorkbook(request, requestOptions));
2092
+ }
2093
+ __getWorkbook(request, requestOptions) {
2094
+ return __awaiter(this, void 0, void 0, function* () {
2095
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
2096
+ const { asset_id: assetId } = request;
2097
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
2098
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
2099
+ "X-Athena-Session-Credential": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sessionCredential) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sessionCredential,
2100
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
2101
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
2102
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.AthenaIntelligenceEnvironment.Production, `api/v0/assets/${core.url.encodePathParam(assetId)}/workbook`),
2103
+ method: "GET",
2104
+ headers: _headers,
2105
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
2106
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
2107
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
2108
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2109
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
2110
+ logging: this._options.logging,
2111
+ });
2112
+ if (_response.ok) {
2113
+ return {
2114
+ data: _response.body,
2115
+ rawResponse: _response.rawResponse,
2116
+ };
2117
+ }
2118
+ if (_response.error.reason === "status-code") {
2119
+ switch (_response.error.statusCode) {
2120
+ case 404:
2121
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
2122
+ case 409:
2123
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
2124
+ case 413:
2125
+ throw new AthenaIntelligence.ContentTooLargeError(_response.error.body, _response.rawResponse);
2126
+ case 415:
2127
+ throw new AthenaIntelligence.UnsupportedMediaTypeError(_response.error.body, _response.rawResponse);
2128
+ case 422:
2129
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2130
+ default:
2131
+ throw new errors.AthenaIntelligenceError({
2132
+ statusCode: _response.error.statusCode,
2133
+ body: _response.error.body,
2134
+ rawResponse: _response.rawResponse,
2135
+ });
2136
+ }
2137
+ }
2138
+ switch (_response.error.reason) {
2139
+ case "non-json":
2140
+ throw new errors.AthenaIntelligenceError({
2141
+ statusCode: _response.error.statusCode,
2142
+ body: _response.error.rawBody,
2143
+ rawResponse: _response.rawResponse,
2144
+ });
2145
+ case "body-is-null":
2146
+ throw new errors.AthenaIntelligenceError({
2147
+ statusCode: _response.error.statusCode,
2148
+ rawResponse: _response.rawResponse,
2149
+ });
2150
+ case "timeout":
2151
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/assets/{asset_id}/workbook.");
2152
+ case "unknown":
2153
+ throw new errors.AthenaIntelligenceError({
2154
+ message: _response.error.errorMessage,
2155
+ rawResponse: _response.rawResponse,
2156
+ });
2157
+ }
2158
+ });
2159
+ }
1963
2160
  /**
1964
2161
  * Update the workspace-level access on an asset. Needs edit access to the asset. Set 'view' or 'edit' to grant workspace-wide access, which also needs permission to share with the workspace. Set 'none' (or null) to remove the workspace-wide share, as DELETE does; removing a folder's share also removes it from the assets inside the folder. People and groups the asset is shared with directly keep their access.
1965
2162
  *
@@ -0,0 +1,19 @@
1
+ import type * as core from "../../../../../core/index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * file: fs.createReadStream("/path/to/your/file")
6
+ * }
7
+ */
8
+ export interface BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost {
9
+ /** Title for the new asset; defaults to the file's name */
10
+ title?: string | null;
11
+ /** ID of the folder to create the asset in */
12
+ parent_folder_id?: string | null;
13
+ /** ID of the workspace to create the asset in; defaults to the workspace of parent_folder_id, else your current workspace */
14
+ workspace_id?: string | null;
15
+ /** An asset you can read that the file came from; without parent_folder_id the new asset goes next to it when you may create there */
16
+ source_asset_id?: string | null;
17
+ /** The .docx, .pptx or .potx file to create the asset from */
18
+ file: core.file.Uploadable;
19
+ }
@@ -10,7 +10,7 @@ import type * as AthenaIntelligence from "../../../../index.js";
10
10
  export interface CreateAssetRequestIn {
11
11
  /** collab_agent only. Initial agent configuration. Created as a draft; publish it with POST /api/v0/assets/{asset_id}/publish. */
12
12
  agent_config?: AthenaIntelligence.PublicCollabAgentConfigIn | null;
13
- /** Type of asset to create. Supported types: 'spreadsheet' (or 'sheet'), 'document' (or 'doc'), 'folder', 'database' (or 'db'), 'computer', 'generic_doc', 'user_interface' (or 'ui'), 'skill', 'collab_agent' (or 'agent'), 'figure' */
13
+ /** Type of asset to create. Supported types: 'spreadsheet' (or 'sheet'), 'document' (or 'doc'), 'folder', 'database' (or 'db'), 'computer', 'generic_doc', 'user_interface' (or 'ui'), 'skill', 'collab_agent' (or 'agent'), 'figure', 'word_document' (or 'word'), 'presentation' (or 'deck'). 'document' is Athena's rich-text document; a Word document is 'word_document'. */
14
14
  asset_type: AthenaIntelligence.CreatableAssetType;
15
15
  /** 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. */
16
16
  cpu?: number | null;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f"
5
+ * }
6
+ */
7
+ export interface GetWorkbookAssetsRequest {
8
+ /** The spreadsheet file asset to read */
9
+ asset_id: string;
10
+ }
@@ -1,5 +1,6 @@
1
1
  export type { ArchiveAssetsRequest } from "./ArchiveAssetsRequest.js";
2
2
  export type { AssetActivityDeltaBatchRequestIn } from "./AssetActivityDeltaBatchRequestIn.js";
3
+ export type { BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost } from "./BodyCreateAssetFromFilePublicApiV0AssetsCreateFromFilePost.js";
3
4
  export type { CollabTokenRequest } from "./CollabTokenRequest.js";
4
5
  export type { ConvertExcelToSheetRequestIn } from "./ConvertExcelToSheetRequestIn.js";
5
6
  export type { ConvertToUserInterfaceAssetsRequest } from "./ConvertToUserInterfaceAssetsRequest.js";
@@ -11,6 +12,7 @@ export type { DuplicateAssetRequestIn } from "./DuplicateAssetRequestIn.js";
11
12
  export type { GetAccessAssetsRequest } from "./GetAccessAssetsRequest.js";
12
13
  export type { GetActivityDeltaAssetsRequest } from "./GetActivityDeltaAssetsRequest.js";
13
14
  export type { GetAssetsRequest } from "./GetAssetsRequest.js";
15
+ export type { GetWorkbookAssetsRequest } from "./GetWorkbookAssetsRequest.js";
14
16
  export type { ListActivityAssetsRequest } from "./ListActivityAssetsRequest.js";
15
17
  export type { ListAssetsRequest } from "./ListAssetsRequest.js";
16
18
  export type { MoveAssetRequestIn } from "./MoveAssetRequestIn.js";
@@ -10,5 +10,7 @@ export declare const CreatableAssetType: {
10
10
  readonly Skill: "skill";
11
11
  readonly CollabAgent: "collab_agent";
12
12
  readonly Figure: "figure";
13
+ readonly WordDocument: "word_document";
14
+ readonly Presentation: "presentation";
13
15
  };
14
16
  export type CreatableAssetType = (typeof CreatableAssetType)[keyof typeof CreatableAssetType];
@@ -14,4 +14,6 @@ exports.CreatableAssetType = {
14
14
  Skill: "skill",
15
15
  CollabAgent: "collab_agent",
16
16
  Figure: "figure",
17
+ WordDocument: "word_document",
18
+ Presentation: "presentation",
17
19
  };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * One tab of a spreadsheet file, as rows of values.
3
+ */
4
+ export interface FileBackedSheetResponseOut {
5
+ /** The tab's name; for a CSV, TSV or Parquet file, the file's name without its extension. */
6
+ name: string;
7
+ /** The tab's rows from its first row down, each a list of its cell values: numbers, strings, booleans, ISO dates, or null for an empty cell. A CSV or TSV field that reads as a number is one. */
8
+ rows: unknown[][];
9
+ }
@@ -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 });
@@ -0,0 +1,10 @@
1
+ import type * as AthenaIntelligence from "../index.js";
2
+ /**
3
+ * An uploaded or linked spreadsheet file's contents, read-only.
4
+ */
5
+ export interface FileBackedWorkbookResponseOut {
6
+ /** Always true: a file's contents are read here, never written. */
7
+ read_only: boolean;
8
+ /** Every tab of the file, in its order. */
9
+ sheets: AthenaIntelligence.FileBackedSheetResponseOut[];
10
+ }
@@ -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 });
@@ -4,6 +4,8 @@
4
4
  export interface StudioTokenRequestIn {
5
5
  /** 'edit' asks for a read-write token and gets one only when the caller can edit the asset (and it is not archived); 'view' always gets a read-only token. Omitted, the token carries the caller's own access. */
6
6
  access?: StudioTokenRequestIn.Access;
7
+ /** Omitted, the token is for the service that edits the asset. 'pptx-studio-source' asks for the read-only token the deck editing service reads a spreadsheet, figure or semantic model with for a linked table, OLE object or chart on a deck; send it beside the deck's own token. A recording's token is always that one: a deck placing a range of it is the one service that reads it. A token for this audience only reads, whatever 'access' asks. */
8
+ audience?: StudioTokenRequestIn.Audience | null;
7
9
  }
8
10
  export declare namespace StudioTokenRequestIn {
9
11
  /** 'edit' asks for a read-write token and gets one only when the caller can edit the asset (and it is not archived); 'view' always gets a read-only token. Omitted, the token carries the caller's own access. */
@@ -12,4 +14,8 @@ export declare namespace StudioTokenRequestIn {
12
14
  readonly Edit: "edit";
13
15
  };
14
16
  type Access = (typeof Access)[keyof typeof Access];
17
+ const Audience: {
18
+ readonly PptxStudioSource: "pptx-studio-source";
19
+ };
20
+ type Audience = (typeof Audience)[keyof typeof Audience];
15
21
  }
@@ -9,4 +9,7 @@ var StudioTokenRequestIn;
9
9
  View: "view",
10
10
  Edit: "edit",
11
11
  };
12
+ StudioTokenRequestIn.Audience = {
13
+ PptxStudioSource: "pptx-studio-source",
14
+ };
12
15
  })(StudioTokenRequestIn || (exports.StudioTokenRequestIn = StudioTokenRequestIn = {}));
@@ -6,7 +6,7 @@ export interface StudioTokenResponseOut {
6
6
  access_type: StudioTokenResponseOut.AccessType;
7
7
  /** The asset the token is for. */
8
8
  asset_id: string;
9
- /** The editing service the token is for, as the token's audience identifier: one for spreadsheets, one for Word documents, one for decks. Compare it with the service you call before sending the token. */
9
+ /** The service the token is for, as the token's audience identifier: the editing service of spreadsheets, of Word documents or of decks, or 'pptx-studio-source', the deck editing service reading this asset for a deck (a recording, or a source asked for with 'audience'). Compare it with the service you call before sending the token. */
10
10
  audience: StudioTokenResponseOut.Audience;
11
11
  /** For a deck, the id the deck's editing service names it by in its routes (an older deck's own deck id, else its asset id); the token is good for that id. Null for any other asset. */
12
12
  deck_id?: string | null;
@@ -22,10 +22,11 @@ export declare namespace StudioTokenResponseOut {
22
22
  readonly Rw: "rw";
23
23
  };
24
24
  type AccessType = (typeof AccessType)[keyof typeof AccessType];
25
- /** The editing service the token is for, as the token's audience identifier: one for spreadsheets, one for Word documents, one for decks. Compare it with the service you call before sending the token. */
25
+ /** The service the token is for, as the token's audience identifier: the editing service of spreadsheets, of Word documents or of decks, or 'pptx-studio-source', the deck editing service reading this asset for a deck (a recording, or a source asked for with 'audience'). Compare it with the service you call before sending the token. */
26
26
  const Audience: {
27
27
  readonly DocxStudio: "docx-studio";
28
28
  readonly PptxStudio: "pptx-studio";
29
+ readonly PptxStudioSource: "pptx-studio-source";
29
30
  readonly XlsxStudio: "xlsx-studio";
30
31
  };
31
32
  type Audience = (typeof Audience)[keyof typeof Audience];
@@ -9,10 +9,11 @@ var StudioTokenResponseOut;
9
9
  R: "r",
10
10
  Rw: "rw",
11
11
  };
12
- /** The editing service the token is for, as the token's audience identifier: one for spreadsheets, one for Word documents, one for decks. Compare it with the service you call before sending the token. */
12
+ /** The service the token is for, as the token's audience identifier: the editing service of spreadsheets, of Word documents or of decks, or 'pptx-studio-source', the deck editing service reading this asset for a deck (a recording, or a source asked for with 'audience'). Compare it with the service you call before sending the token. */
13
13
  StudioTokenResponseOut.Audience = {
14
14
  DocxStudio: "docx-studio",
15
15
  PptxStudio: "pptx-studio",
16
+ PptxStudioSource: "pptx-studio-source",
16
17
  XlsxStudio: "xlsx-studio",
17
18
  };
18
19
  })(StudioTokenResponseOut || (exports.StudioTokenResponseOut = StudioTokenResponseOut = {}));
@@ -64,7 +64,6 @@ export * from "./DatabaseTableSchemaResponse.js";
64
64
  export * from "./DatabaseTablesResponse.js";
65
65
  export * from "./DatabaseWakeResponseOut.js";
66
66
  export * from "./DataFrameRequestOut.js";
67
- export * from "./DataFrameUnknownFormatError.js";
68
67
  export * from "./DefaultVisibility.js";
69
68
  export * from "./DeleteDataRequest.js";
70
69
  export * from "./DeleteSshKeyResponseOut.js";
@@ -75,7 +74,8 @@ export * from "./EmailDraftResponseOut.js";
75
74
  export * from "./EmailMessageResponseOut.js";
76
75
  export * from "./EmailSearchResponseOut.js";
77
76
  export * from "./EmailSearchResultOut.js";
78
- export * from "./FileTooLargeError.js";
77
+ export * from "./FileBackedSheetResponseOut.js";
78
+ export * from "./FileBackedWorkbookResponseOut.js";
79
79
  export * from "./FolderResponse.js";
80
80
  export * from "./GeneralAgentAsyncInvokeResponseOut.js";
81
81
  export * from "./GeneralAgentConfig.js";
@@ -80,7 +80,6 @@ __exportStar(require("./DatabaseTableSchemaResponse.js"), exports);
80
80
  __exportStar(require("./DatabaseTablesResponse.js"), exports);
81
81
  __exportStar(require("./DatabaseWakeResponseOut.js"), exports);
82
82
  __exportStar(require("./DataFrameRequestOut.js"), exports);
83
- __exportStar(require("./DataFrameUnknownFormatError.js"), exports);
84
83
  __exportStar(require("./DefaultVisibility.js"), exports);
85
84
  __exportStar(require("./DeleteDataRequest.js"), exports);
86
85
  __exportStar(require("./DeleteSshKeyResponseOut.js"), exports);
@@ -91,7 +90,8 @@ __exportStar(require("./EmailDraftResponseOut.js"), exports);
91
90
  __exportStar(require("./EmailMessageResponseOut.js"), exports);
92
91
  __exportStar(require("./EmailSearchResponseOut.js"), exports);
93
92
  __exportStar(require("./EmailSearchResultOut.js"), exports);
94
- __exportStar(require("./FileTooLargeError.js"), exports);
93
+ __exportStar(require("./FileBackedSheetResponseOut.js"), exports);
94
+ __exportStar(require("./FileBackedWorkbookResponseOut.js"), exports);
95
95
  __exportStar(require("./FolderResponse.js"), exports);
96
96
  __exportStar(require("./GeneralAgentAsyncInvokeResponseOut.js"), exports);
97
97
  __exportStar(require("./GeneralAgentConfig.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2269";
1
+ export declare const SDK_VERSION = "4.3.2271";
@@ -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.2269";
4
+ exports.SDK_VERSION = "4.3.2271";
@@ -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.2269",
10
- "User-Agent": "@athenaintel/sdk/4.3.2269",
9
+ "X-Fern-SDK-Version": "4.3.2271",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2271",
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,