@athenaintel/sdk 4.3.2035 → 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.
Files changed (34) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/assets/client/Client.d.ts +18 -0
  3. package/dist/cjs/api/resources/assets/client/Client.js +83 -0
  4. package/dist/cjs/api/resources/assets/client/requests/RenameAssetRequestIn.d.ts +12 -0
  5. package/dist/cjs/api/resources/assets/client/requests/RenameAssetRequestIn.js +3 -0
  6. package/dist/cjs/api/resources/assets/client/requests/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/databases/client/Client.d.ts +1 -1
  8. package/dist/cjs/api/types/{AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.d.ts → DatabaseStatusResponse.d.ts} +3 -3
  9. package/dist/cjs/api/types/DatabaseStatusResponse.js +15 -0
  10. package/dist/cjs/api/types/RenameAssetResponseOut.d.ts +13 -0
  11. package/dist/cjs/api/types/RenameAssetResponseOut.js +3 -0
  12. package/dist/cjs/api/types/index.d.ts +2 -1
  13. package/dist/cjs/api/types/index.js +2 -1
  14. package/dist/cjs/version.d.ts +1 -1
  15. package/dist/cjs/version.js +1 -1
  16. package/dist/esm/BaseClient.mjs +2 -2
  17. package/dist/esm/api/resources/assets/client/Client.d.mts +18 -0
  18. package/dist/esm/api/resources/assets/client/Client.mjs +83 -0
  19. package/dist/esm/api/resources/assets/client/requests/RenameAssetRequestIn.d.mts +12 -0
  20. package/dist/esm/api/resources/assets/client/requests/RenameAssetRequestIn.mjs +2 -0
  21. package/dist/esm/api/resources/assets/client/requests/index.d.mts +1 -0
  22. package/dist/esm/api/resources/databases/client/Client.d.mts +1 -1
  23. package/dist/esm/api/types/{AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.d.mts → DatabaseStatusResponse.d.mts} +3 -3
  24. package/dist/esm/api/types/DatabaseStatusResponse.mjs +12 -0
  25. package/dist/esm/api/types/RenameAssetResponseOut.d.mts +13 -0
  26. package/dist/esm/api/types/RenameAssetResponseOut.mjs +2 -0
  27. package/dist/esm/api/types/index.d.mts +2 -1
  28. package/dist/esm/api/types/index.mjs +2 -1
  29. package/dist/esm/version.d.mts +1 -1
  30. package/dist/esm/version.mjs +1 -1
  31. package/package.json +1 -1
  32. package/reference.md +67 -1
  33. package/dist/cjs/api/types/AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.js +0 -15
  34. package/dist/esm/api/types/AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.mjs +0 -12
@@ -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.2035",
47
- "User-Agent": "@athenaintel/sdk/4.3.2035",
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";
@@ -35,7 +35,7 @@ export declare class DatabasesClient {
35
35
  * asset_id: "asset_id"
36
36
  * })
37
37
  */
38
- getStatus(request: AthenaIntelligence.GetStatusDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse>;
38
+ getStatus(request: AthenaIntelligence.GetStatusDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DatabaseStatusResponse>;
39
39
  private __getStatus;
40
40
  /**
41
41
  * Get a list of all tables in the database with optional row counts.
@@ -4,7 +4,7 @@
4
4
  * Used to determine if a serverless database is running or suspended
5
5
  * (scale-to-zero). Poll this endpoint to know when a database is ready.
6
6
  */
7
- export interface AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse {
7
+ export interface DatabaseStatusResponse {
8
8
  /** The database asset ID */
9
9
  asset_id: string;
10
10
  /** Optional status message or error details */
@@ -12,9 +12,9 @@ export interface AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse {
12
12
  /** Database provider ('neon_cloud' or 'kronos') */
13
13
  provider: string;
14
14
  /** Standardized database status */
15
- status: AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.Status;
15
+ status: DatabaseStatusResponse.Status;
16
16
  }
17
- export declare namespace AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse {
17
+ export declare namespace DatabaseStatusResponse {
18
18
  /** Standardized database status */
19
19
  const Status: {
20
20
  readonly Running: "running";
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DatabaseStatusResponse = void 0;
5
+ var DatabaseStatusResponse;
6
+ (function (DatabaseStatusResponse) {
7
+ /** Standardized database status */
8
+ DatabaseStatusResponse.Status = {
9
+ Running: "running",
10
+ Suspended: "suspended",
11
+ Starting: "starting",
12
+ Failed: "failed",
13
+ Unknown: "unknown",
14
+ };
15
+ })(DatabaseStatusResponse || (exports.DatabaseStatusResponse = DatabaseStatusResponse = {}));
@@ -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 });
@@ -1,4 +1,3 @@
1
- export * from "./AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.js";
2
1
  export * from "./AopAsyncExecuteResponseOut.js";
3
2
  export * from "./AopConfigResponseOut.js";
4
3
  export * from "./AopConfigUpdateResponseOut.js";
@@ -36,6 +35,7 @@ export * from "./DatabaseColumnInfo.js";
36
35
  export * from "./DatabaseDataResponse.js";
37
36
  export * from "./DatabaseMutationResponse.js";
38
37
  export * from "./DatabaseSqlResponse.js";
38
+ export * from "./DatabaseStatusResponse.js";
39
39
  export * from "./DatabaseTableInfo.js";
40
40
  export * from "./DatabaseTableSchemaResponse.js";
41
41
  export * from "./DatabaseTablesResponse.js";
@@ -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";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.js"), exports);
18
17
  __exportStar(require("./AopAsyncExecuteResponseOut.js"), exports);
19
18
  __exportStar(require("./AopConfigResponseOut.js"), exports);
20
19
  __exportStar(require("./AopConfigUpdateResponseOut.js"), exports);
@@ -52,6 +51,7 @@ __exportStar(require("./DatabaseColumnInfo.js"), exports);
52
51
  __exportStar(require("./DatabaseDataResponse.js"), exports);
53
52
  __exportStar(require("./DatabaseMutationResponse.js"), exports);
54
53
  __exportStar(require("./DatabaseSqlResponse.js"), exports);
54
+ __exportStar(require("./DatabaseStatusResponse.js"), exports);
55
55
  __exportStar(require("./DatabaseTableInfo.js"), exports);
56
56
  __exportStar(require("./DatabaseTableSchemaResponse.js"), exports);
57
57
  __exportStar(require("./DatabaseTablesResponse.js"), exports);
@@ -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.2035";
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.2035";
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.2035",
10
- "User-Agent": "@athenaintel/sdk/4.3.2035",
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";
@@ -35,7 +35,7 @@ export declare class DatabasesClient {
35
35
  * asset_id: "asset_id"
36
36
  * })
37
37
  */
38
- getStatus(request: AthenaIntelligence.GetStatusDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse>;
38
+ getStatus(request: AthenaIntelligence.GetStatusDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DatabaseStatusResponse>;
39
39
  private __getStatus;
40
40
  /**
41
41
  * Get a list of all tables in the database with optional row counts.
@@ -4,7 +4,7 @@
4
4
  * Used to determine if a serverless database is running or suspended
5
5
  * (scale-to-zero). Poll this endpoint to know when a database is ready.
6
6
  */
7
- export interface AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse {
7
+ export interface DatabaseStatusResponse {
8
8
  /** The database asset ID */
9
9
  asset_id: string;
10
10
  /** Optional status message or error details */
@@ -12,9 +12,9 @@ export interface AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse {
12
12
  /** Database provider ('neon_cloud' or 'kronos') */
13
13
  provider: string;
14
14
  /** Standardized database status */
15
- status: AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.Status;
15
+ status: DatabaseStatusResponse.Status;
16
16
  }
17
- export declare namespace AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse {
17
+ export declare namespace DatabaseStatusResponse {
18
18
  /** Standardized database status */
19
19
  const Status: {
20
20
  readonly Running: "running";
@@ -0,0 +1,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var DatabaseStatusResponse;
3
+ (function (DatabaseStatusResponse) {
4
+ /** Standardized database status */
5
+ DatabaseStatusResponse.Status = {
6
+ Running: "running",
7
+ Suspended: "suspended",
8
+ Starting: "starting",
9
+ Failed: "failed",
10
+ Unknown: "unknown",
11
+ };
12
+ })(DatabaseStatusResponse || (DatabaseStatusResponse = {}));
@@ -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 {};
@@ -1,4 +1,3 @@
1
- export * from "./AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.mjs";
2
1
  export * from "./AopAsyncExecuteResponseOut.mjs";
3
2
  export * from "./AopConfigResponseOut.mjs";
4
3
  export * from "./AopConfigUpdateResponseOut.mjs";
@@ -36,6 +35,7 @@ export * from "./DatabaseColumnInfo.mjs";
36
35
  export * from "./DatabaseDataResponse.mjs";
37
36
  export * from "./DatabaseMutationResponse.mjs";
38
37
  export * from "./DatabaseSqlResponse.mjs";
38
+ export * from "./DatabaseStatusResponse.mjs";
39
39
  export * from "./DatabaseTableInfo.mjs";
40
40
  export * from "./DatabaseTableSchemaResponse.mjs";
41
41
  export * from "./DatabaseTablesResponse.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,4 +1,3 @@
1
- export * from "./AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.mjs";
2
1
  export * from "./AopAsyncExecuteResponseOut.mjs";
3
2
  export * from "./AopConfigResponseOut.mjs";
4
3
  export * from "./AopConfigUpdateResponseOut.mjs";
@@ -36,6 +35,7 @@ export * from "./DatabaseColumnInfo.mjs";
36
35
  export * from "./DatabaseDataResponse.mjs";
37
36
  export * from "./DatabaseMutationResponse.mjs";
38
37
  export * from "./DatabaseSqlResponse.mjs";
38
+ export * from "./DatabaseStatusResponse.mjs";
39
39
  export * from "./DatabaseTableInfo.mjs";
40
40
  export * from "./DatabaseTableSchemaResponse.mjs";
41
41
  export * from "./DatabaseTablesResponse.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.2035";
1
+ export declare const SDK_VERSION = "4.3.2037";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2035";
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.2035",
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>
@@ -1364,7 +1430,7 @@ await client.computer.revokeSshAccess({
1364
1430
  </details>
1365
1431
 
1366
1432
  ## Databases
1367
- <details><summary><code>client.databases.<a href="/src/api/resources/databases/client/Client.ts">getStatus</a>({ ...params }) -> AthenaIntelligence.AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse</code></summary>
1433
+ <details><summary><code>client.databases.<a href="/src/api/resources/databases/client/Client.ts">getStatus</a>({ ...params }) -> AthenaIntelligence.DatabaseStatusResponse</code></summary>
1368
1434
  <dl>
1369
1435
  <dd>
1370
1436
 
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse = void 0;
5
- var AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse;
6
- (function (AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse) {
7
- /** Standardized database status */
8
- AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.Status = {
9
- Running: "running",
10
- Suspended: "suspended",
11
- Starting: "starting",
12
- Failed: "failed",
13
- Unknown: "unknown",
14
- };
15
- })(AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse || (exports.AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse = AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse = {}));
@@ -1,12 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse;
3
- (function (AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse) {
4
- /** Standardized database status */
5
- AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.Status = {
6
- Running: "running",
7
- Suspended: "suspended",
8
- Starting: "starting",
9
- Failed: "failed",
10
- Unknown: "unknown",
11
- };
12
- })(AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse || (AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse = {}));