@athenaintel/sdk 4.3.2270 → 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 (42) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/errors/UnsupportedMediaTypeError.d.ts +1 -2
  3. package/dist/cjs/api/resources/assets/client/Client.d.ts +20 -1
  4. package/dist/cjs/api/resources/assets/client/Client.js +88 -1
  5. package/dist/cjs/api/resources/assets/client/requests/GetWorkbookAssetsRequest.d.ts +10 -0
  6. package/dist/cjs/api/resources/assets/client/requests/index.d.ts +1 -0
  7. package/dist/cjs/api/types/FileBackedSheetResponseOut.d.ts +9 -0
  8. package/dist/cjs/api/types/FileBackedSheetResponseOut.js +3 -0
  9. package/dist/cjs/api/types/FileBackedWorkbookResponseOut.d.ts +10 -0
  10. package/dist/cjs/api/types/FileBackedWorkbookResponseOut.js +3 -0
  11. package/dist/cjs/api/types/StudioTokenRequestIn.d.ts +6 -0
  12. package/dist/cjs/api/types/StudioTokenRequestIn.js +3 -0
  13. package/dist/cjs/api/types/StudioTokenResponseOut.d.ts +3 -2
  14. package/dist/cjs/api/types/StudioTokenResponseOut.js +2 -1
  15. package/dist/cjs/api/types/index.d.ts +2 -1
  16. package/dist/cjs/api/types/index.js +2 -1
  17. package/dist/cjs/version.d.ts +1 -1
  18. package/dist/cjs/version.js +1 -1
  19. package/dist/esm/BaseClient.mjs +2 -2
  20. package/dist/esm/api/errors/UnsupportedMediaTypeError.d.mts +1 -2
  21. package/dist/esm/api/resources/assets/client/Client.d.mts +20 -1
  22. package/dist/esm/api/resources/assets/client/Client.mjs +88 -1
  23. package/dist/esm/api/resources/assets/client/requests/GetWorkbookAssetsRequest.d.mts +10 -0
  24. package/dist/esm/api/resources/assets/client/requests/index.d.mts +1 -0
  25. package/dist/esm/api/types/FileBackedSheetResponseOut.d.mts +9 -0
  26. package/dist/esm/api/types/FileBackedSheetResponseOut.mjs +2 -0
  27. package/dist/esm/api/types/FileBackedWorkbookResponseOut.d.mts +10 -0
  28. package/dist/esm/api/types/FileBackedWorkbookResponseOut.mjs +2 -0
  29. package/dist/esm/api/types/StudioTokenRequestIn.d.mts +6 -0
  30. package/dist/esm/api/types/StudioTokenRequestIn.mjs +3 -0
  31. package/dist/esm/api/types/StudioTokenResponseOut.d.mts +3 -2
  32. package/dist/esm/api/types/StudioTokenResponseOut.mjs +2 -1
  33. package/dist/esm/api/types/index.d.mts +2 -1
  34. package/dist/esm/api/types/index.mjs +2 -1
  35. package/dist/esm/version.d.mts +1 -1
  36. package/dist/esm/version.mjs +1 -1
  37. package/package.json +1 -1
  38. package/reference.md +66 -1
  39. package/dist/cjs/api/types/DataFrameUnknownFormatError.d.ts +0 -5
  40. package/dist/esm/api/types/DataFrameUnknownFormatError.d.mts +0 -5
  41. /package/dist/cjs/api/{types/DataFrameUnknownFormatError.js → resources/assets/client/requests/GetWorkbookAssetsRequest.js} +0 -0
  42. /package/dist/esm/api/{types/DataFrameUnknownFormatError.mjs → resources/assets/client/requests/GetWorkbookAssetsRequest.mjs} +0 -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.2270",
47
- "User-Agent": "@athenaintel/sdk/4.3.2270",
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 UnsupportedMediaTypeError extends errors.AthenaIntelligenceError {
5
- constructor(body: AthenaIntelligence.DataFrameUnknownFormatError, rawResponse?: core.RawResponse);
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
6
5
  }
@@ -436,7 +436,7 @@ export declare class AssetsClient {
436
436
  updateSkillConfig(request: AthenaIntelligence.UpdateSkillConfigRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.UpdateAssetConfigResponseOut>;
437
437
  private __updateSkillConfig;
438
438
  /**
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. 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.
440
440
  *
441
441
  * @param {AthenaIntelligence.CreateStudioTokenAssetsRequest} request
442
442
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -457,6 +457,25 @@ export declare class AssetsClient {
457
457
  */
458
458
  createStudioToken(request: AthenaIntelligence.CreateStudioTokenAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.StudioTokenResponseOut>;
459
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;
460
479
  /**
461
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.
462
481
  *
@@ -1978,7 +1978,7 @@ class AssetsClient {
1978
1978
  });
1979
1979
  }
1980
1980
  /**
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. 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.
1982
1982
  *
1983
1983
  * @param {AthenaIntelligence.CreateStudioTokenAssetsRequest} request
1984
1984
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -2070,6 +2070,93 @@ class AssetsClient {
2070
2070
  }
2071
2071
  });
2072
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
+ }
2073
2160
  /**
2074
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.
2075
2162
  *
@@ -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
+ }
@@ -12,6 +12,7 @@ export type { DuplicateAssetRequestIn } from "./DuplicateAssetRequestIn.js";
12
12
  export type { GetAccessAssetsRequest } from "./GetAccessAssetsRequest.js";
13
13
  export type { GetActivityDeltaAssetsRequest } from "./GetActivityDeltaAssetsRequest.js";
14
14
  export type { GetAssetsRequest } from "./GetAssetsRequest.js";
15
+ export type { GetWorkbookAssetsRequest } from "./GetWorkbookAssetsRequest.js";
15
16
  export type { ListActivityAssetsRequest } from "./ListActivityAssetsRequest.js";
16
17
  export type { ListAssetsRequest } from "./ListAssetsRequest.js";
17
18
  export type { MoveAssetRequestIn } from "./MoveAssetRequestIn.js";
@@ -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,6 +74,8 @@ export * from "./EmailDraftResponseOut.js";
75
74
  export * from "./EmailMessageResponseOut.js";
76
75
  export * from "./EmailSearchResponseOut.js";
77
76
  export * from "./EmailSearchResultOut.js";
77
+ export * from "./FileBackedSheetResponseOut.js";
78
+ export * from "./FileBackedWorkbookResponseOut.js";
78
79
  export * from "./FolderResponse.js";
79
80
  export * from "./GeneralAgentAsyncInvokeResponseOut.js";
80
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,6 +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);
93
+ __exportStar(require("./FileBackedSheetResponseOut.js"), exports);
94
+ __exportStar(require("./FileBackedWorkbookResponseOut.js"), exports);
94
95
  __exportStar(require("./FolderResponse.js"), exports);
95
96
  __exportStar(require("./GeneralAgentAsyncInvokeResponseOut.js"), exports);
96
97
  __exportStar(require("./GeneralAgentConfig.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2270";
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.2270";
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.2270",
10
- "User-Agent": "@athenaintel/sdk/4.3.2270",
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,
@@ -1,6 +1,5 @@
1
1
  import type * as core from "../../core/index.mjs";
2
2
  import * as errors from "../../errors/index.mjs";
3
- import type * as AthenaIntelligence from "../index.mjs";
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
  }
@@ -436,7 +436,7 @@ export declare class AssetsClient {
436
436
  updateSkillConfig(request: AthenaIntelligence.UpdateSkillConfigRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.UpdateAssetConfigResponseOut>;
437
437
  private __updateSkillConfig;
438
438
  /**
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. 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.
440
440
  *
441
441
  * @param {AthenaIntelligence.CreateStudioTokenAssetsRequest} request
442
442
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -457,6 +457,25 @@ export declare class AssetsClient {
457
457
  */
458
458
  createStudioToken(request: AthenaIntelligence.CreateStudioTokenAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.StudioTokenResponseOut>;
459
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;
460
479
  /**
461
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.
462
481
  *
@@ -1942,7 +1942,7 @@ export class AssetsClient {
1942
1942
  });
1943
1943
  }
1944
1944
  /**
1945
- * 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.
1945
+ * 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.
1946
1946
  *
1947
1947
  * @param {AthenaIntelligence.CreateStudioTokenAssetsRequest} request
1948
1948
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -2034,6 +2034,93 @@ export class AssetsClient {
2034
2034
  }
2035
2035
  });
2036
2036
  }
2037
+ /**
2038
+ * 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.
2039
+ *
2040
+ * @param {AthenaIntelligence.GetWorkbookAssetsRequest} request
2041
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
2042
+ *
2043
+ * @throws {@link AthenaIntelligence.NotFoundError}
2044
+ * @throws {@link AthenaIntelligence.ConflictError}
2045
+ * @throws {@link AthenaIntelligence.ContentTooLargeError}
2046
+ * @throws {@link AthenaIntelligence.UnsupportedMediaTypeError}
2047
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
2048
+ *
2049
+ * @example
2050
+ * await client.assets.getWorkbook({
2051
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f"
2052
+ * })
2053
+ */
2054
+ getWorkbook(request, requestOptions) {
2055
+ return core.HttpResponsePromise.fromPromise(this.__getWorkbook(request, requestOptions));
2056
+ }
2057
+ __getWorkbook(request, requestOptions) {
2058
+ return __awaiter(this, void 0, void 0, function* () {
2059
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
2060
+ const { asset_id: assetId } = request;
2061
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
2062
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
2063
+ "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,
2064
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
2065
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
2066
+ 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`),
2067
+ method: "GET",
2068
+ headers: _headers,
2069
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
2070
+ 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,
2071
+ 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,
2072
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2073
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
2074
+ logging: this._options.logging,
2075
+ });
2076
+ if (_response.ok) {
2077
+ return {
2078
+ data: _response.body,
2079
+ rawResponse: _response.rawResponse,
2080
+ };
2081
+ }
2082
+ if (_response.error.reason === "status-code") {
2083
+ switch (_response.error.statusCode) {
2084
+ case 404:
2085
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
2086
+ case 409:
2087
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
2088
+ case 413:
2089
+ throw new AthenaIntelligence.ContentTooLargeError(_response.error.body, _response.rawResponse);
2090
+ case 415:
2091
+ throw new AthenaIntelligence.UnsupportedMediaTypeError(_response.error.body, _response.rawResponse);
2092
+ case 422:
2093
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2094
+ default:
2095
+ throw new errors.AthenaIntelligenceError({
2096
+ statusCode: _response.error.statusCode,
2097
+ body: _response.error.body,
2098
+ rawResponse: _response.rawResponse,
2099
+ });
2100
+ }
2101
+ }
2102
+ switch (_response.error.reason) {
2103
+ case "non-json":
2104
+ throw new errors.AthenaIntelligenceError({
2105
+ statusCode: _response.error.statusCode,
2106
+ body: _response.error.rawBody,
2107
+ rawResponse: _response.rawResponse,
2108
+ });
2109
+ case "body-is-null":
2110
+ throw new errors.AthenaIntelligenceError({
2111
+ statusCode: _response.error.statusCode,
2112
+ rawResponse: _response.rawResponse,
2113
+ });
2114
+ case "timeout":
2115
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/assets/{asset_id}/workbook.");
2116
+ case "unknown":
2117
+ throw new errors.AthenaIntelligenceError({
2118
+ message: _response.error.errorMessage,
2119
+ rawResponse: _response.rawResponse,
2120
+ });
2121
+ }
2122
+ });
2123
+ }
2037
2124
  /**
2038
2125
  * 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.
2039
2126
  *
@@ -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
+ }
@@ -12,6 +12,7 @@ export type { DuplicateAssetRequestIn } from "./DuplicateAssetRequestIn.mjs";
12
12
  export type { GetAccessAssetsRequest } from "./GetAccessAssetsRequest.mjs";
13
13
  export type { GetActivityDeltaAssetsRequest } from "./GetActivityDeltaAssetsRequest.mjs";
14
14
  export type { GetAssetsRequest } from "./GetAssetsRequest.mjs";
15
+ export type { GetWorkbookAssetsRequest } from "./GetWorkbookAssetsRequest.mjs";
15
16
  export type { ListActivityAssetsRequest } from "./ListActivityAssetsRequest.mjs";
16
17
  export type { ListAssetsRequest } from "./ListAssetsRequest.mjs";
17
18
  export type { MoveAssetRequestIn } from "./MoveAssetRequestIn.mjs";
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as AthenaIntelligence from "../index.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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
  }
@@ -6,4 +6,7 @@ export var StudioTokenRequestIn;
6
6
  View: "view",
7
7
  Edit: "edit",
8
8
  };
9
+ StudioTokenRequestIn.Audience = {
10
+ PptxStudioSource: "pptx-studio-source",
11
+ };
9
12
  })(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];
@@ -6,10 +6,11 @@ export var StudioTokenResponseOut;
6
6
  R: "r",
7
7
  Rw: "rw",
8
8
  };
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
  StudioTokenResponseOut.Audience = {
11
11
  DocxStudio: "docx-studio",
12
12
  PptxStudio: "pptx-studio",
13
+ PptxStudioSource: "pptx-studio-source",
13
14
  XlsxStudio: "xlsx-studio",
14
15
  };
15
16
  })(StudioTokenResponseOut || (StudioTokenResponseOut = {}));
@@ -64,7 +64,6 @@ export * from "./DatabaseTableSchemaResponse.mjs";
64
64
  export * from "./DatabaseTablesResponse.mjs";
65
65
  export * from "./DatabaseWakeResponseOut.mjs";
66
66
  export * from "./DataFrameRequestOut.mjs";
67
- export * from "./DataFrameUnknownFormatError.mjs";
68
67
  export * from "./DefaultVisibility.mjs";
69
68
  export * from "./DeleteDataRequest.mjs";
70
69
  export * from "./DeleteSshKeyResponseOut.mjs";
@@ -75,6 +74,8 @@ export * from "./EmailDraftResponseOut.mjs";
75
74
  export * from "./EmailMessageResponseOut.mjs";
76
75
  export * from "./EmailSearchResponseOut.mjs";
77
76
  export * from "./EmailSearchResultOut.mjs";
77
+ export * from "./FileBackedSheetResponseOut.mjs";
78
+ export * from "./FileBackedWorkbookResponseOut.mjs";
78
79
  export * from "./FolderResponse.mjs";
79
80
  export * from "./GeneralAgentAsyncInvokeResponseOut.mjs";
80
81
  export * from "./GeneralAgentConfig.mjs";
@@ -64,7 +64,6 @@ export * from "./DatabaseTableSchemaResponse.mjs";
64
64
  export * from "./DatabaseTablesResponse.mjs";
65
65
  export * from "./DatabaseWakeResponseOut.mjs";
66
66
  export * from "./DataFrameRequestOut.mjs";
67
- export * from "./DataFrameUnknownFormatError.mjs";
68
67
  export * from "./DefaultVisibility.mjs";
69
68
  export * from "./DeleteDataRequest.mjs";
70
69
  export * from "./DeleteSshKeyResponseOut.mjs";
@@ -75,6 +74,8 @@ export * from "./EmailDraftResponseOut.mjs";
75
74
  export * from "./EmailMessageResponseOut.mjs";
76
75
  export * from "./EmailSearchResponseOut.mjs";
77
76
  export * from "./EmailSearchResultOut.mjs";
77
+ export * from "./FileBackedSheetResponseOut.mjs";
78
+ export * from "./FileBackedWorkbookResponseOut.mjs";
78
79
  export * from "./FolderResponse.mjs";
79
80
  export * from "./GeneralAgentAsyncInvokeResponseOut.mjs";
80
81
  export * from "./GeneralAgentConfig.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2270";
1
+ export declare const SDK_VERSION = "4.3.2271";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2270";
1
+ export const SDK_VERSION = "4.3.2271";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2270",
3
+ "version": "4.3.2271",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -1923,7 +1923,7 @@ await client.assets.updateSkillConfig({
1923
1923
  <dl>
1924
1924
  <dd>
1925
1925
 
1926
- 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.
1926
+ 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.
1927
1927
  </dd>
1928
1928
  </dl>
1929
1929
  </dd>
@@ -1975,6 +1975,71 @@ await client.assets.createStudioToken({
1975
1975
  </dl>
1976
1976
 
1977
1977
 
1978
+ </dd>
1979
+ </dl>
1980
+ </details>
1981
+
1982
+ <details><summary><code>client.assets.<a href="/src/api/resources/assets/client/Client.ts">getWorkbook</a>({ ...params }) -> AthenaIntelligence.FileBackedWorkbookResponseOut</code></summary>
1983
+ <dl>
1984
+ <dd>
1985
+
1986
+ #### 📝 Description
1987
+
1988
+ <dl>
1989
+ <dd>
1990
+
1991
+ <dl>
1992
+ <dd>
1993
+
1994
+ 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.
1995
+ </dd>
1996
+ </dl>
1997
+ </dd>
1998
+ </dl>
1999
+
2000
+ #### 🔌 Usage
2001
+
2002
+ <dl>
2003
+ <dd>
2004
+
2005
+ <dl>
2006
+ <dd>
2007
+
2008
+ ```typescript
2009
+ await client.assets.getWorkbook({
2010
+ asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f"
2011
+ });
2012
+
2013
+ ```
2014
+ </dd>
2015
+ </dl>
2016
+ </dd>
2017
+ </dl>
2018
+
2019
+ #### ⚙️ Parameters
2020
+
2021
+ <dl>
2022
+ <dd>
2023
+
2024
+ <dl>
2025
+ <dd>
2026
+
2027
+ **request:** `AthenaIntelligence.GetWorkbookAssetsRequest`
2028
+
2029
+ </dd>
2030
+ </dl>
2031
+
2032
+ <dl>
2033
+ <dd>
2034
+
2035
+ **requestOptions:** `AssetsClient.RequestOptions`
2036
+
2037
+ </dd>
2038
+ </dl>
2039
+ </dd>
2040
+ </dl>
2041
+
2042
+
1978
2043
  </dd>
1979
2044
  </dl>
1980
2045
  </details>
@@ -1,5 +0,0 @@
1
- export interface DataFrameUnknownFormatError {
2
- asset_id: string;
3
- media_type: string;
4
- message: string;
5
- }
@@ -1,5 +0,0 @@
1
- export interface DataFrameUnknownFormatError {
2
- asset_id: string;
3
- media_type: string;
4
- message: string;
5
- }