@athenaintel/sdk 4.3.2173 → 4.3.2174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@athenaintel/sdk",
46
- "X-Fern-SDK-Version": "4.3.2173",
47
- "User-Agent": "@athenaintel/sdk/4.3.2173",
46
+ "X-Fern-SDK-Version": "4.3.2174",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2174",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -251,7 +251,7 @@ export declare class AssetsClient {
251
251
  createCollabToken(request: AthenaIntelligence.CollabTokenRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.CollabTokenResponse>;
252
252
  private __createCollabToken;
253
253
  /**
254
- * Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type.
254
+ * Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type. With `live_sync=true`, a spreadsheet's .xlsx or a PPTX Studio presentation's .pptx also carries the Athena for Microsoft 365 add-in's link record, so opening it in Excel or PowerPoint with the add-in installed starts syncing it with the asset; other asset types ignore the flag.
255
255
  * @throws {@link AthenaIntelligence.BadRequestError}
256
256
  * @throws {@link AthenaIntelligence.ForbiddenError}
257
257
  * @throws {@link AthenaIntelligence.NotFoundError}
@@ -1105,7 +1105,7 @@ class AssetsClient {
1105
1105
  });
1106
1106
  }
1107
1107
  /**
1108
- * Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type.
1108
+ * Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type. With `live_sync=true`, a spreadsheet's .xlsx or a PPTX Studio presentation's .pptx also carries the Athena for Microsoft 365 add-in's link record, so opening it in Excel or PowerPoint with the add-in installed starts syncing it with the asset; other asset types ignore the flag.
1109
1109
  * @throws {@link AthenaIntelligence.BadRequestError}
1110
1110
  * @throws {@link AthenaIntelligence.ForbiddenError}
1111
1111
  * @throws {@link AthenaIntelligence.NotFoundError}
@@ -1117,14 +1117,21 @@ class AssetsClient {
1117
1117
  __download(request, requestOptions) {
1118
1118
  return __awaiter(this, void 0, void 0, function* () {
1119
1119
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1120
- const { asset_id: assetId } = request;
1120
+ const { asset_id: assetId, live_sync: liveSync, addin_id: addinId } = request;
1121
+ const _queryParams = {};
1122
+ if (liveSync != null) {
1123
+ _queryParams.live_sync = liveSync.toString();
1124
+ }
1125
+ if (addinId !== undefined) {
1126
+ _queryParams.addin_id = addinId;
1127
+ }
1121
1128
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1122
1129
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1123
1130
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1124
1131
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, `api/v0/assets/${core.url.encodePathParam(assetId)}/download`),
1125
1132
  method: "GET",
1126
1133
  headers: _headers,
1127
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1134
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
1128
1135
  responseType: "binary-response",
1129
1136
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
1130
1137
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
@@ -7,4 +7,8 @@
7
7
  export interface DownloadAssetsRequest {
8
8
  /** Unique identifier of the asset to download */
9
9
  asset_id: string;
10
+ /** Office live sync: when true and the asset is an Athena spreadsheet or a PPTX Studio presentation, the downloaded .xlsx / .pptx carries the Athena for Microsoft 365 add-in's link record and opens already syncing with this asset. Ignored for every other asset type. */
11
+ live_sync?: boolean;
12
+ /** GUID of the installed add-in manifest the live-sync record should reference (defaults to this deployment's Athena add-in). Only read together with `live_sync`; use it to target a preview-channel sideload. */
13
+ addin_id?: string | null;
10
14
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2173";
1
+ export declare const SDK_VERSION = "4.3.2174";
@@ -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.2173";
4
+ exports.SDK_VERSION = "4.3.2174";
@@ -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.2173",
10
- "User-Agent": "@athenaintel/sdk/4.3.2173",
9
+ "X-Fern-SDK-Version": "4.3.2174",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2174",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -251,7 +251,7 @@ export declare class AssetsClient {
251
251
  createCollabToken(request: AthenaIntelligence.CollabTokenRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.CollabTokenResponse>;
252
252
  private __createCollabToken;
253
253
  /**
254
- * Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type.
254
+ * Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type. With `live_sync=true`, a spreadsheet's .xlsx or a PPTX Studio presentation's .pptx also carries the Athena for Microsoft 365 add-in's link record, so opening it in Excel or PowerPoint with the add-in installed starts syncing it with the asset; other asset types ignore the flag.
255
255
  * @throws {@link AthenaIntelligence.BadRequestError}
256
256
  * @throws {@link AthenaIntelligence.ForbiddenError}
257
257
  * @throws {@link AthenaIntelligence.NotFoundError}
@@ -1069,7 +1069,7 @@ export class AssetsClient {
1069
1069
  });
1070
1070
  }
1071
1071
  /**
1072
- * Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type.
1072
+ * Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type. With `live_sync=true`, a spreadsheet's .xlsx or a PPTX Studio presentation's .pptx also carries the Athena for Microsoft 365 add-in's link record, so opening it in Excel or PowerPoint with the add-in installed starts syncing it with the asset; other asset types ignore the flag.
1073
1073
  * @throws {@link AthenaIntelligence.BadRequestError}
1074
1074
  * @throws {@link AthenaIntelligence.ForbiddenError}
1075
1075
  * @throws {@link AthenaIntelligence.NotFoundError}
@@ -1081,14 +1081,21 @@ export class AssetsClient {
1081
1081
  __download(request, requestOptions) {
1082
1082
  return __awaiter(this, void 0, void 0, function* () {
1083
1083
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1084
- const { asset_id: assetId } = request;
1084
+ const { asset_id: assetId, live_sync: liveSync, addin_id: addinId } = request;
1085
+ const _queryParams = {};
1086
+ if (liveSync != null) {
1087
+ _queryParams.live_sync = liveSync.toString();
1088
+ }
1089
+ if (addinId !== undefined) {
1090
+ _queryParams.addin_id = addinId;
1091
+ }
1085
1092
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1086
1093
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1087
1094
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1088
1095
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, `api/v0/assets/${core.url.encodePathParam(assetId)}/download`),
1089
1096
  method: "GET",
1090
1097
  headers: _headers,
1091
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1098
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
1092
1099
  responseType: "binary-response",
1093
1100
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
1094
1101
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
@@ -7,4 +7,8 @@
7
7
  export interface DownloadAssetsRequest {
8
8
  /** Unique identifier of the asset to download */
9
9
  asset_id: string;
10
+ /** Office live sync: when true and the asset is an Athena spreadsheet or a PPTX Studio presentation, the downloaded .xlsx / .pptx carries the Athena for Microsoft 365 add-in's link record and opens already syncing with this asset. Ignored for every other asset type. */
11
+ live_sync?: boolean;
12
+ /** GUID of the installed add-in manifest the live-sync record should reference (defaults to this deployment's Athena add-in). Only read together with `live_sync`; use it to target a preview-channel sideload. */
13
+ addin_id?: string | null;
10
14
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2173";
1
+ export declare const SDK_VERSION = "4.3.2174";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2173";
1
+ export const SDK_VERSION = "4.3.2174";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2173",
3
+ "version": "4.3.2174",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -1322,7 +1322,7 @@ await client.assets.createCollabToken({
1322
1322
  <dl>
1323
1323
  <dd>
1324
1324
 
1325
- Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type.
1325
+ Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type. With `live_sync=true`, a spreadsheet's .xlsx or a PPTX Studio presentation's .pptx also carries the Athena for Microsoft 365 add-in's link record, so opening it in Excel or PowerPoint with the add-in installed starts syncing it with the asset; other asset types ignore the flag.
1326
1326
  </dd>
1327
1327
  </dl>
1328
1328
  </dd>