@athenaintel/sdk 4.3.2036 → 4.3.2037

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.2036",
47
- "User-Agent": "@athenaintel/sdk/4.3.2036",
46
+ "X-Fern-SDK-Version": "4.3.2037",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2037",
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);
@@ -132,6 +132,24 @@ export declare class AssetsClient {
132
132
  */
133
133
  get(request: AthenaIntelligence.GetAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.PublicAssetOut>;
134
134
  private __get;
135
+ /**
136
+ * Update an asset's display title. This supports folders and all other asset types the caller can edit, and applies the same rename side effects as the Athena application.
137
+ *
138
+ * @param {AthenaIntelligence.RenameAssetRequestIn} request
139
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @throws {@link AthenaIntelligence.ForbiddenError}
142
+ * @throws {@link AthenaIntelligence.NotFoundError}
143
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
144
+ *
145
+ * @example
146
+ * await client.assets.rename({
147
+ * asset_id: "asset_id",
148
+ * title: "Clara Substantive Run - July 2026"
149
+ * })
150
+ */
151
+ rename(request: AthenaIntelligence.RenameAssetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.RenameAssetResponseOut>;
152
+ private __rename;
135
153
  /**
136
154
  * Archive an asset by its ID. The asset will be hidden from active listings (e.g. GET /assets with default filters) but can still be retrieved directly by ID. For folders, all children are also archived recursively. For meetings, associated sub-assets (recordings, transcripts) are archived as well. Only the creator of the asset can archive it.
137
155
  *
@@ -589,6 +589,89 @@ class AssetsClient {
589
589
  }
590
590
  });
591
591
  }
592
+ /**
593
+ * Update an asset's display title. This supports folders and all other asset types the caller can edit, and applies the same rename side effects as the Athena application.
594
+ *
595
+ * @param {AthenaIntelligence.RenameAssetRequestIn} request
596
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
597
+ *
598
+ * @throws {@link AthenaIntelligence.ForbiddenError}
599
+ * @throws {@link AthenaIntelligence.NotFoundError}
600
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
601
+ *
602
+ * @example
603
+ * await client.assets.rename({
604
+ * asset_id: "asset_id",
605
+ * title: "Clara Substantive Run - July 2026"
606
+ * })
607
+ */
608
+ rename(request, requestOptions) {
609
+ return core.HttpResponsePromise.fromPromise(this.__rename(request, requestOptions));
610
+ }
611
+ __rename(request, requestOptions) {
612
+ return __awaiter(this, void 0, void 0, function* () {
613
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
614
+ const { asset_id: assetId } = request, _body = __rest(request, ["asset_id"]);
615
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
616
+ 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);
617
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
618
+ 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)}`),
619
+ method: "PATCH",
620
+ headers: _headers,
621
+ contentType: "application/json",
622
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
623
+ requestType: "json",
624
+ body: _body,
625
+ 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,
626
+ 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,
627
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
628
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
629
+ logging: this._options.logging,
630
+ });
631
+ if (_response.ok) {
632
+ return {
633
+ data: _response.body,
634
+ rawResponse: _response.rawResponse,
635
+ };
636
+ }
637
+ if (_response.error.reason === "status-code") {
638
+ switch (_response.error.statusCode) {
639
+ case 403:
640
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
641
+ case 404:
642
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
643
+ case 422:
644
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
645
+ default:
646
+ throw new errors.AthenaIntelligenceError({
647
+ statusCode: _response.error.statusCode,
648
+ body: _response.error.body,
649
+ rawResponse: _response.rawResponse,
650
+ });
651
+ }
652
+ }
653
+ switch (_response.error.reason) {
654
+ case "non-json":
655
+ throw new errors.AthenaIntelligenceError({
656
+ statusCode: _response.error.statusCode,
657
+ body: _response.error.rawBody,
658
+ rawResponse: _response.rawResponse,
659
+ });
660
+ case "body-is-null":
661
+ throw new errors.AthenaIntelligenceError({
662
+ statusCode: _response.error.statusCode,
663
+ rawResponse: _response.rawResponse,
664
+ });
665
+ case "timeout":
666
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling PATCH /api/v0/assets/{asset_id}.");
667
+ case "unknown":
668
+ throw new errors.AthenaIntelligenceError({
669
+ message: _response.error.errorMessage,
670
+ rawResponse: _response.rawResponse,
671
+ });
672
+ }
673
+ });
674
+ }
592
675
  /**
593
676
  * Archive an asset by its ID. The asset will be hidden from active listings (e.g. GET /assets with default filters) but can still be retrieved directly by ID. For folders, all children are also archived recursively. For meetings, associated sub-assets (recordings, transcripts) are archived as well. Only the creator of the asset can archive it.
594
677
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * asset_id: "asset_id",
5
+ * title: "Clara Substantive Run - July 2026"
6
+ * }
7
+ */
8
+ export interface RenameAssetRequestIn {
9
+ asset_id: string;
10
+ /** New display title for the asset */
11
+ title: string;
12
+ }
@@ -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 });
@@ -7,5 +7,6 @@ export type { DuplicateAssetRequestIn } from "./DuplicateAssetRequestIn.js";
7
7
  export type { GetAssetsRequest } from "./GetAssetsRequest.js";
8
8
  export type { ListAssetsRequest } from "./ListAssetsRequest.js";
9
9
  export type { MoveAssetRequestIn } from "./MoveAssetRequestIn.js";
10
+ export type { RenameAssetRequestIn } from "./RenameAssetRequestIn.js";
10
11
  export type { ShareAssetRequestIn } from "./ShareAssetRequestIn.js";
11
12
  export type { UpdateWorkspaceAccessRequestIn } from "./UpdateWorkspaceAccessRequestIn.js";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Response model for renaming an asset.
3
+ */
4
+ export interface RenameAssetResponseOut {
5
+ /** Athena asset type */
6
+ asset_type: string;
7
+ /** Unique identifier of the renamed asset */
8
+ id: string;
9
+ /** Updated asset title */
10
+ title: string;
11
+ /** Timestamp when the asset was updated */
12
+ updated_at: string;
13
+ }
@@ -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 });
@@ -72,6 +72,7 @@ export * from "./PromptMessage.js";
72
72
  export * from "./PublicAssetOut.js";
73
73
  export * from "./ReadCapabilitiesOut.js";
74
74
  export * from "./RedactedThinkingContent.js";
75
+ export * from "./RenameAssetResponseOut.js";
75
76
  export * from "./ResearchAgentResponse.js";
76
77
  export * from "./RevokeSshAccessResponseOut.js";
77
78
  export * from "./RunTaskResponse.js";
@@ -88,6 +88,7 @@ __exportStar(require("./PromptMessage.js"), exports);
88
88
  __exportStar(require("./PublicAssetOut.js"), exports);
89
89
  __exportStar(require("./ReadCapabilitiesOut.js"), exports);
90
90
  __exportStar(require("./RedactedThinkingContent.js"), exports);
91
+ __exportStar(require("./RenameAssetResponseOut.js"), exports);
91
92
  __exportStar(require("./ResearchAgentResponse.js"), exports);
92
93
  __exportStar(require("./RevokeSshAccessResponseOut.js"), exports);
93
94
  __exportStar(require("./RunTaskResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2036";
1
+ export declare const SDK_VERSION = "4.3.2037";
@@ -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.2036";
4
+ exports.SDK_VERSION = "4.3.2037";
@@ -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.2036",
10
- "User-Agent": "@athenaintel/sdk/4.3.2036",
9
+ "X-Fern-SDK-Version": "4.3.2037",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2037",
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);
@@ -132,6 +132,24 @@ export declare class AssetsClient {
132
132
  */
133
133
  get(request: AthenaIntelligence.GetAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.PublicAssetOut>;
134
134
  private __get;
135
+ /**
136
+ * Update an asset's display title. This supports folders and all other asset types the caller can edit, and applies the same rename side effects as the Athena application.
137
+ *
138
+ * @param {AthenaIntelligence.RenameAssetRequestIn} request
139
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @throws {@link AthenaIntelligence.ForbiddenError}
142
+ * @throws {@link AthenaIntelligence.NotFoundError}
143
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
144
+ *
145
+ * @example
146
+ * await client.assets.rename({
147
+ * asset_id: "asset_id",
148
+ * title: "Clara Substantive Run - July 2026"
149
+ * })
150
+ */
151
+ rename(request: AthenaIntelligence.RenameAssetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.RenameAssetResponseOut>;
152
+ private __rename;
135
153
  /**
136
154
  * Archive an asset by its ID. The asset will be hidden from active listings (e.g. GET /assets with default filters) but can still be retrieved directly by ID. For folders, all children are also archived recursively. For meetings, associated sub-assets (recordings, transcripts) are archived as well. Only the creator of the asset can archive it.
137
155
  *
@@ -553,6 +553,89 @@ export class AssetsClient {
553
553
  }
554
554
  });
555
555
  }
556
+ /**
557
+ * Update an asset's display title. This supports folders and all other asset types the caller can edit, and applies the same rename side effects as the Athena application.
558
+ *
559
+ * @param {AthenaIntelligence.RenameAssetRequestIn} request
560
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
561
+ *
562
+ * @throws {@link AthenaIntelligence.ForbiddenError}
563
+ * @throws {@link AthenaIntelligence.NotFoundError}
564
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
565
+ *
566
+ * @example
567
+ * await client.assets.rename({
568
+ * asset_id: "asset_id",
569
+ * title: "Clara Substantive Run - July 2026"
570
+ * })
571
+ */
572
+ rename(request, requestOptions) {
573
+ return core.HttpResponsePromise.fromPromise(this.__rename(request, requestOptions));
574
+ }
575
+ __rename(request, requestOptions) {
576
+ return __awaiter(this, void 0, void 0, function* () {
577
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
578
+ const { asset_id: assetId } = request, _body = __rest(request, ["asset_id"]);
579
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
580
+ 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);
581
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
582
+ 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)}`),
583
+ method: "PATCH",
584
+ headers: _headers,
585
+ contentType: "application/json",
586
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
587
+ requestType: "json",
588
+ body: _body,
589
+ 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,
590
+ 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,
591
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
592
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
593
+ logging: this._options.logging,
594
+ });
595
+ if (_response.ok) {
596
+ return {
597
+ data: _response.body,
598
+ rawResponse: _response.rawResponse,
599
+ };
600
+ }
601
+ if (_response.error.reason === "status-code") {
602
+ switch (_response.error.statusCode) {
603
+ case 403:
604
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
605
+ case 404:
606
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
607
+ case 422:
608
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
609
+ default:
610
+ throw new errors.AthenaIntelligenceError({
611
+ statusCode: _response.error.statusCode,
612
+ body: _response.error.body,
613
+ rawResponse: _response.rawResponse,
614
+ });
615
+ }
616
+ }
617
+ switch (_response.error.reason) {
618
+ case "non-json":
619
+ throw new errors.AthenaIntelligenceError({
620
+ statusCode: _response.error.statusCode,
621
+ body: _response.error.rawBody,
622
+ rawResponse: _response.rawResponse,
623
+ });
624
+ case "body-is-null":
625
+ throw new errors.AthenaIntelligenceError({
626
+ statusCode: _response.error.statusCode,
627
+ rawResponse: _response.rawResponse,
628
+ });
629
+ case "timeout":
630
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling PATCH /api/v0/assets/{asset_id}.");
631
+ case "unknown":
632
+ throw new errors.AthenaIntelligenceError({
633
+ message: _response.error.errorMessage,
634
+ rawResponse: _response.rawResponse,
635
+ });
636
+ }
637
+ });
638
+ }
556
639
  /**
557
640
  * Archive an asset by its ID. The asset will be hidden from active listings (e.g. GET /assets with default filters) but can still be retrieved directly by ID. For folders, all children are also archived recursively. For meetings, associated sub-assets (recordings, transcripts) are archived as well. Only the creator of the asset can archive it.
558
641
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * asset_id: "asset_id",
5
+ * title: "Clara Substantive Run - July 2026"
6
+ * }
7
+ */
8
+ export interface RenameAssetRequestIn {
9
+ asset_id: string;
10
+ /** New display title for the asset */
11
+ title: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -7,5 +7,6 @@ export type { DuplicateAssetRequestIn } from "./DuplicateAssetRequestIn.mjs";
7
7
  export type { GetAssetsRequest } from "./GetAssetsRequest.mjs";
8
8
  export type { ListAssetsRequest } from "./ListAssetsRequest.mjs";
9
9
  export type { MoveAssetRequestIn } from "./MoveAssetRequestIn.mjs";
10
+ export type { RenameAssetRequestIn } from "./RenameAssetRequestIn.mjs";
10
11
  export type { ShareAssetRequestIn } from "./ShareAssetRequestIn.mjs";
11
12
  export type { UpdateWorkspaceAccessRequestIn } from "./UpdateWorkspaceAccessRequestIn.mjs";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Response model for renaming an asset.
3
+ */
4
+ export interface RenameAssetResponseOut {
5
+ /** Athena asset type */
6
+ asset_type: string;
7
+ /** Unique identifier of the renamed asset */
8
+ id: string;
9
+ /** Updated asset title */
10
+ title: string;
11
+ /** Timestamp when the asset was updated */
12
+ updated_at: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -72,6 +72,7 @@ export * from "./PromptMessage.mjs";
72
72
  export * from "./PublicAssetOut.mjs";
73
73
  export * from "./ReadCapabilitiesOut.mjs";
74
74
  export * from "./RedactedThinkingContent.mjs";
75
+ export * from "./RenameAssetResponseOut.mjs";
75
76
  export * from "./ResearchAgentResponse.mjs";
76
77
  export * from "./RevokeSshAccessResponseOut.mjs";
77
78
  export * from "./RunTaskResponse.mjs";
@@ -72,6 +72,7 @@ export * from "./PromptMessage.mjs";
72
72
  export * from "./PublicAssetOut.mjs";
73
73
  export * from "./ReadCapabilitiesOut.mjs";
74
74
  export * from "./RedactedThinkingContent.mjs";
75
+ export * from "./RenameAssetResponseOut.mjs";
75
76
  export * from "./ResearchAgentResponse.mjs";
76
77
  export * from "./RevokeSshAccessResponseOut.mjs";
77
78
  export * from "./RunTaskResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2036";
1
+ export declare const SDK_VERSION = "4.3.2037";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2036";
1
+ export const SDK_VERSION = "4.3.2037";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2036",
3
+ "version": "4.3.2037",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -824,6 +824,72 @@ await client.assets.get({
824
824
  </dl>
825
825
 
826
826
 
827
+ </dd>
828
+ </dl>
829
+ </details>
830
+
831
+ <details><summary><code>client.assets.<a href="/src/api/resources/assets/client/Client.ts">rename</a>({ ...params }) -> AthenaIntelligence.RenameAssetResponseOut</code></summary>
832
+ <dl>
833
+ <dd>
834
+
835
+ #### 📝 Description
836
+
837
+ <dl>
838
+ <dd>
839
+
840
+ <dl>
841
+ <dd>
842
+
843
+ Update an asset's display title. This supports folders and all other asset types the caller can edit, and applies the same rename side effects as the Athena application.
844
+ </dd>
845
+ </dl>
846
+ </dd>
847
+ </dl>
848
+
849
+ #### 🔌 Usage
850
+
851
+ <dl>
852
+ <dd>
853
+
854
+ <dl>
855
+ <dd>
856
+
857
+ ```typescript
858
+ await client.assets.rename({
859
+ asset_id: "asset_id",
860
+ title: "Clara Substantive Run - July 2026"
861
+ });
862
+
863
+ ```
864
+ </dd>
865
+ </dl>
866
+ </dd>
867
+ </dl>
868
+
869
+ #### ⚙️ Parameters
870
+
871
+ <dl>
872
+ <dd>
873
+
874
+ <dl>
875
+ <dd>
876
+
877
+ **request:** `AthenaIntelligence.RenameAssetRequestIn`
878
+
879
+ </dd>
880
+ </dl>
881
+
882
+ <dl>
883
+ <dd>
884
+
885
+ **requestOptions:** `AssetsClient.RequestOptions`
886
+
887
+ </dd>
888
+ </dl>
889
+ </dd>
890
+ </dl>
891
+
892
+
827
893
  </dd>
828
894
  </dl>
829
895
  </details>