@athenaintel/sdk 4.3.2263 → 4.3.2265

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 (40) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/assets/client/Client.d.ts +45 -1
  3. package/dist/cjs/api/resources/assets/client/Client.js +191 -1
  4. package/dist/cjs/api/resources/assets/client/requests/UpdateAgentConfigRequestIn.d.ts +91 -0
  5. package/dist/cjs/api/resources/assets/client/requests/UpdateAgentConfigRequestIn.js +3 -0
  6. package/dist/cjs/api/resources/assets/client/requests/UpdateSkillConfigRequestIn.d.ts +26 -0
  7. package/dist/cjs/api/resources/assets/client/requests/UpdateSkillConfigRequestIn.js +3 -0
  8. package/dist/cjs/api/resources/assets/client/requests/index.d.ts +2 -0
  9. package/dist/cjs/api/types/ActivityItemOut.d.ts +2 -2
  10. package/dist/cjs/api/types/PublicSessionComputerIn.d.ts +23 -0
  11. package/dist/cjs/api/types/PublicSessionComputerIn.js +11 -0
  12. package/dist/cjs/api/types/PublicSessionSetupStepIn.d.ts +9 -0
  13. package/dist/cjs/api/types/PublicSessionSetupStepIn.js +3 -0
  14. package/dist/cjs/api/types/UpdateAssetConfigResponseOut.d.ts +15 -0
  15. package/dist/cjs/api/types/UpdateAssetConfigResponseOut.js +3 -0
  16. package/dist/cjs/api/types/index.d.ts +3 -0
  17. package/dist/cjs/api/types/index.js +3 -0
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/BaseClient.mjs +2 -2
  21. package/dist/esm/api/resources/assets/client/Client.d.mts +45 -1
  22. package/dist/esm/api/resources/assets/client/Client.mjs +191 -1
  23. package/dist/esm/api/resources/assets/client/requests/UpdateAgentConfigRequestIn.d.mts +91 -0
  24. package/dist/esm/api/resources/assets/client/requests/UpdateAgentConfigRequestIn.mjs +2 -0
  25. package/dist/esm/api/resources/assets/client/requests/UpdateSkillConfigRequestIn.d.mts +26 -0
  26. package/dist/esm/api/resources/assets/client/requests/UpdateSkillConfigRequestIn.mjs +2 -0
  27. package/dist/esm/api/resources/assets/client/requests/index.d.mts +2 -0
  28. package/dist/esm/api/types/ActivityItemOut.d.mts +2 -2
  29. package/dist/esm/api/types/PublicSessionComputerIn.d.mts +23 -0
  30. package/dist/esm/api/types/PublicSessionComputerIn.mjs +8 -0
  31. package/dist/esm/api/types/PublicSessionSetupStepIn.d.mts +9 -0
  32. package/dist/esm/api/types/PublicSessionSetupStepIn.mjs +2 -0
  33. package/dist/esm/api/types/UpdateAssetConfigResponseOut.d.mts +15 -0
  34. package/dist/esm/api/types/UpdateAssetConfigResponseOut.mjs +2 -0
  35. package/dist/esm/api/types/index.d.mts +3 -0
  36. package/dist/esm/api/types/index.mjs +3 -0
  37. package/dist/esm/version.d.mts +1 -1
  38. package/dist/esm/version.mjs +1 -1
  39. package/package.json +1 -1
  40. package/reference.md +135 -1
@@ -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.2263",
47
- "User-Agent": "@athenaintel/sdk/4.3.2263",
46
+ "X-Fern-SDK-Version": "4.3.2265",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2265",
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,
@@ -140,7 +140,7 @@ export declare class AssetsClient {
140
140
  get(request: AthenaIntelligence.GetAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.PublicAssetOut>;
141
141
  private __get;
142
142
  /**
143
- * 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.
143
+ * 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. Only the title changes: to change a skill's or collab agent's content, use PUT /api/v0/assets/{asset_id}/skill-config or /api/v0/assets/{asset_id}/agent-config.
144
144
  *
145
145
  * @param {AthenaIntelligence.RenameAssetRequestIn} request
146
146
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -241,6 +241,28 @@ export declare class AssetsClient {
241
241
  */
242
242
  getActivityDeltas(request: AthenaIntelligence.AssetActivityDeltaBatchRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetActivityDeltaResponseOut>;
243
243
  private __getActivityDeltas;
244
+ /**
245
+ * Write a collab agent's configuration (system prompt, model, tools, sources, behavior and channel settings) to its draft. Only the fields you send change; an omitted field keeps its current value, and a list or text field you send replaces the old one whole. The write goes to the live draft, the same draft the Athena editor shows, under the asset's existing id. Once the asset has been published, runs keep using the published version until you publish the draft with POST /api/v0/assets/{asset_id}/publish; one never published runs from its draft. Requires edit access to the asset; an archived asset is refused with 409. Unknown fields are refused with 422. A model must be available in the agent's workspace (422 otherwise). Tool or toolkit IDs the registry does not know are written and reported under warnings. A new name also becomes the asset title. The agent's email address and its outbound approval recipients are not set here.
246
+ *
247
+ * @param {AthenaIntelligence.UpdateAgentConfigRequestIn} request
248
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
249
+ *
250
+ * @throws {@link AthenaIntelligence.BadRequestError}
251
+ * @throws {@link AthenaIntelligence.ForbiddenError}
252
+ * @throws {@link AthenaIntelligence.NotFoundError}
253
+ * @throws {@link AthenaIntelligence.ConflictError}
254
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
255
+ * @throws {@link AthenaIntelligence.ServiceUnavailableError}
256
+ *
257
+ * @example
258
+ * await client.assets.updateAgentConfig({
259
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
260
+ * system_prompt: "You review designs for accessibility and consistency.",
261
+ * tools: ["read_asset"]
262
+ * })
263
+ */
264
+ updateAgentConfig(request: AthenaIntelligence.UpdateAgentConfigRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.UpdateAssetConfigResponseOut>;
265
+ private __updateAgentConfig;
244
266
  /**
245
267
  * 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.
246
268
  *
@@ -369,6 +391,28 @@ export declare class AssetsClient {
369
391
  */
370
392
  share(request: AthenaIntelligence.ShareAssetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ShareAssetResponseOut>;
371
393
  private __share;
394
+ /**
395
+ * Write a skill's SKILL.md content (name, description, markdown body and the optional frontmatter) to its draft. Only the fields you send change; an omitted field keeps its current value, and a list or text field you send replaces the old one whole. The write goes to the live draft, the same draft the Athena editor shows, under the asset's existing id. Once the asset has been published, runs keep using the published version until you publish the draft with POST /api/v0/assets/{asset_id}/publish; one never published runs from its draft. Requires edit access to the asset; an archived asset is refused with 409. Unknown fields are refused with 422. The frontmatter is validated as it will read after the write; a skill that would not be spec-compliant is refused with 422 and nothing is written. A new name also becomes the asset title.
396
+ *
397
+ * @param {AthenaIntelligence.UpdateSkillConfigRequestIn} request
398
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
399
+ *
400
+ * @throws {@link AthenaIntelligence.BadRequestError}
401
+ * @throws {@link AthenaIntelligence.ForbiddenError}
402
+ * @throws {@link AthenaIntelligence.NotFoundError}
403
+ * @throws {@link AthenaIntelligence.ConflictError}
404
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
405
+ * @throws {@link AthenaIntelligence.ServiceUnavailableError}
406
+ *
407
+ * @example
408
+ * await client.assets.updateSkillConfig({
409
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
410
+ * body_markdown: "# Ticket triage\n\n1. Read the ticket...",
411
+ * description: "Triage support tickets by urgency and product area."
412
+ * })
413
+ */
414
+ updateSkillConfig(request: AthenaIntelligence.UpdateSkillConfigRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.UpdateAssetConfigResponseOut>;
415
+ private __updateSkillConfig;
372
416
  /**
373
417
  * 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.
374
418
  *
@@ -618,7 +618,7 @@ class AssetsClient {
618
618
  });
619
619
  }
620
620
  /**
621
- * 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.
621
+ * 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. Only the title changes: to change a skill's or collab agent's content, use PUT /api/v0/assets/{asset_id}/skill-config or /api/v0/assets/{asset_id}/agent-config.
622
622
  *
623
623
  * @param {AthenaIntelligence.RenameAssetRequestIn} request
624
624
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1070,6 +1070,101 @@ class AssetsClient {
1070
1070
  }
1071
1071
  });
1072
1072
  }
1073
+ /**
1074
+ * Write a collab agent's configuration (system prompt, model, tools, sources, behavior and channel settings) to its draft. Only the fields you send change; an omitted field keeps its current value, and a list or text field you send replaces the old one whole. The write goes to the live draft, the same draft the Athena editor shows, under the asset's existing id. Once the asset has been published, runs keep using the published version until you publish the draft with POST /api/v0/assets/{asset_id}/publish; one never published runs from its draft. Requires edit access to the asset; an archived asset is refused with 409. Unknown fields are refused with 422. A model must be available in the agent's workspace (422 otherwise). Tool or toolkit IDs the registry does not know are written and reported under warnings. A new name also becomes the asset title. The agent's email address and its outbound approval recipients are not set here.
1075
+ *
1076
+ * @param {AthenaIntelligence.UpdateAgentConfigRequestIn} request
1077
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
1078
+ *
1079
+ * @throws {@link AthenaIntelligence.BadRequestError}
1080
+ * @throws {@link AthenaIntelligence.ForbiddenError}
1081
+ * @throws {@link AthenaIntelligence.NotFoundError}
1082
+ * @throws {@link AthenaIntelligence.ConflictError}
1083
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1084
+ * @throws {@link AthenaIntelligence.ServiceUnavailableError}
1085
+ *
1086
+ * @example
1087
+ * await client.assets.updateAgentConfig({
1088
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
1089
+ * system_prompt: "You review designs for accessibility and consistency.",
1090
+ * tools: ["read_asset"]
1091
+ * })
1092
+ */
1093
+ updateAgentConfig(request, requestOptions) {
1094
+ return core.HttpResponsePromise.fromPromise(this.__updateAgentConfig(request, requestOptions));
1095
+ }
1096
+ __updateAgentConfig(request, requestOptions) {
1097
+ return __awaiter(this, void 0, void 0, function* () {
1098
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1099
+ const { asset_id: assetId } = request, _body = __rest(request, ["asset_id"]);
1100
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1101
+ 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)({
1102
+ "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,
1103
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1104
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
1105
+ 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)}/agent-config`),
1106
+ method: "PUT",
1107
+ headers: _headers,
1108
+ contentType: "application/json",
1109
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1110
+ requestType: "json",
1111
+ body: _body,
1112
+ 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,
1113
+ 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,
1114
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1115
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
1116
+ logging: this._options.logging,
1117
+ });
1118
+ if (_response.ok) {
1119
+ return {
1120
+ data: _response.body,
1121
+ rawResponse: _response.rawResponse,
1122
+ };
1123
+ }
1124
+ if (_response.error.reason === "status-code") {
1125
+ switch (_response.error.statusCode) {
1126
+ case 400:
1127
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
1128
+ case 403:
1129
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
1130
+ case 404:
1131
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
1132
+ case 409:
1133
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
1134
+ case 422:
1135
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1136
+ case 503:
1137
+ throw new AthenaIntelligence.ServiceUnavailableError(_response.error.body, _response.rawResponse);
1138
+ default:
1139
+ throw new errors.AthenaIntelligenceError({
1140
+ statusCode: _response.error.statusCode,
1141
+ body: _response.error.body,
1142
+ rawResponse: _response.rawResponse,
1143
+ });
1144
+ }
1145
+ }
1146
+ switch (_response.error.reason) {
1147
+ case "non-json":
1148
+ throw new errors.AthenaIntelligenceError({
1149
+ statusCode: _response.error.statusCode,
1150
+ body: _response.error.rawBody,
1151
+ rawResponse: _response.rawResponse,
1152
+ });
1153
+ case "body-is-null":
1154
+ throw new errors.AthenaIntelligenceError({
1155
+ statusCode: _response.error.statusCode,
1156
+ rawResponse: _response.rawResponse,
1157
+ });
1158
+ case "timeout":
1159
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling PUT /api/v0/assets/{asset_id}/agent-config.");
1160
+ case "unknown":
1161
+ throw new errors.AthenaIntelligenceError({
1162
+ message: _response.error.errorMessage,
1163
+ rawResponse: _response.rawResponse,
1164
+ });
1165
+ }
1166
+ });
1167
+ }
1073
1168
  /**
1074
1169
  * 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.
1075
1170
  *
@@ -1677,6 +1772,101 @@ class AssetsClient {
1677
1772
  }
1678
1773
  });
1679
1774
  }
1775
+ /**
1776
+ * Write a skill's SKILL.md content (name, description, markdown body and the optional frontmatter) to its draft. Only the fields you send change; an omitted field keeps its current value, and a list or text field you send replaces the old one whole. The write goes to the live draft, the same draft the Athena editor shows, under the asset's existing id. Once the asset has been published, runs keep using the published version until you publish the draft with POST /api/v0/assets/{asset_id}/publish; one never published runs from its draft. Requires edit access to the asset; an archived asset is refused with 409. Unknown fields are refused with 422. The frontmatter is validated as it will read after the write; a skill that would not be spec-compliant is refused with 422 and nothing is written. A new name also becomes the asset title.
1777
+ *
1778
+ * @param {AthenaIntelligence.UpdateSkillConfigRequestIn} request
1779
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
1780
+ *
1781
+ * @throws {@link AthenaIntelligence.BadRequestError}
1782
+ * @throws {@link AthenaIntelligence.ForbiddenError}
1783
+ * @throws {@link AthenaIntelligence.NotFoundError}
1784
+ * @throws {@link AthenaIntelligence.ConflictError}
1785
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1786
+ * @throws {@link AthenaIntelligence.ServiceUnavailableError}
1787
+ *
1788
+ * @example
1789
+ * await client.assets.updateSkillConfig({
1790
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
1791
+ * body_markdown: "# Ticket triage\n\n1. Read the ticket...",
1792
+ * description: "Triage support tickets by urgency and product area."
1793
+ * })
1794
+ */
1795
+ updateSkillConfig(request, requestOptions) {
1796
+ return core.HttpResponsePromise.fromPromise(this.__updateSkillConfig(request, requestOptions));
1797
+ }
1798
+ __updateSkillConfig(request, requestOptions) {
1799
+ return __awaiter(this, void 0, void 0, function* () {
1800
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1801
+ const { asset_id: assetId } = request, _body = __rest(request, ["asset_id"]);
1802
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1803
+ 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)({
1804
+ "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,
1805
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1806
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
1807
+ 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)}/skill-config`),
1808
+ method: "PUT",
1809
+ headers: _headers,
1810
+ contentType: "application/json",
1811
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1812
+ requestType: "json",
1813
+ body: _body,
1814
+ 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,
1815
+ 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,
1816
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1817
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
1818
+ logging: this._options.logging,
1819
+ });
1820
+ if (_response.ok) {
1821
+ return {
1822
+ data: _response.body,
1823
+ rawResponse: _response.rawResponse,
1824
+ };
1825
+ }
1826
+ if (_response.error.reason === "status-code") {
1827
+ switch (_response.error.statusCode) {
1828
+ case 400:
1829
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
1830
+ case 403:
1831
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
1832
+ case 404:
1833
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
1834
+ case 409:
1835
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
1836
+ case 422:
1837
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1838
+ case 503:
1839
+ throw new AthenaIntelligence.ServiceUnavailableError(_response.error.body, _response.rawResponse);
1840
+ default:
1841
+ throw new errors.AthenaIntelligenceError({
1842
+ statusCode: _response.error.statusCode,
1843
+ body: _response.error.body,
1844
+ rawResponse: _response.rawResponse,
1845
+ });
1846
+ }
1847
+ }
1848
+ switch (_response.error.reason) {
1849
+ case "non-json":
1850
+ throw new errors.AthenaIntelligenceError({
1851
+ statusCode: _response.error.statusCode,
1852
+ body: _response.error.rawBody,
1853
+ rawResponse: _response.rawResponse,
1854
+ });
1855
+ case "body-is-null":
1856
+ throw new errors.AthenaIntelligenceError({
1857
+ statusCode: _response.error.statusCode,
1858
+ rawResponse: _response.rawResponse,
1859
+ });
1860
+ case "timeout":
1861
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling PUT /api/v0/assets/{asset_id}/skill-config.");
1862
+ case "unknown":
1863
+ throw new errors.AthenaIntelligenceError({
1864
+ message: _response.error.errorMessage,
1865
+ rawResponse: _response.rawResponse,
1866
+ });
1867
+ }
1868
+ });
1869
+ }
1680
1870
  /**
1681
1871
  * 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.
1682
1872
  *
@@ -0,0 +1,91 @@
1
+ import type * as AthenaIntelligence from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
6
+ * system_prompt: "You review designs for accessibility and consistency.",
7
+ * tools: ["read_asset"]
8
+ * }
9
+ */
10
+ export interface UpdateAgentConfigRequestIn {
11
+ /** ID of the collab agent to update */
12
+ asset_id: string;
13
+ /** UI accent color (hex) */
14
+ accent_color?: string | null;
15
+ /** Auto-compaction */
16
+ auto_compaction_enabled?: boolean | null;
17
+ /** Toolkit IDs available for the agent to select */
18
+ available_toolkits?: string[] | null;
19
+ /** Tool IDs the agent may not use */
20
+ blacklisted_tools?: string[] | null;
21
+ /** Whether the agent can be used as a sub-agent */
22
+ can_be_subagent?: boolean | null;
23
+ /** Allow @-mentioning the agent in an asset's comments pane */
24
+ comments_pane_enabled?: boolean | null;
25
+ /** Inject contextual information into replies */
26
+ context_injection?: boolean | null;
27
+ /** What the agent does and when to use it */
28
+ description?: string | null;
29
+ /** Voice-friendly handle (lowercase words and spaces) used to address the agent as a sub-agent */
30
+ handle?: string | null;
31
+ /** Icon identifier */
32
+ icon?: string | null;
33
+ /** Knowledge base references available to the agent */
34
+ knowledge_base?: string[] | null;
35
+ /** Tags used to filter knowledge base context */
36
+ knowledge_base_tags?: string[] | null;
37
+ /** Maximum number of past messages passed to sub-agents */
38
+ max_past_messages_for_subagents?: number | null;
39
+ /** Allow the agent to attend meetings */
40
+ meeting_attendance_enabled?: boolean | null;
41
+ /** The agent's meeting voice */
42
+ meeting_voice_enabled?: boolean | null;
43
+ /** Model ID the agent runs on; must be available in its workspace */
44
+ model?: string | null;
45
+ /** Muses long-term memory */
46
+ muses_enabled?: boolean | null;
47
+ /** Inject relevant Muses memory before each reply */
48
+ muses_recall_enabled?: boolean | null;
49
+ /** Display name of the agent; also becomes the asset title */
50
+ name?: string | null;
51
+ /** Parallel tool calls */
52
+ parallel_tool_calls?: boolean | null;
53
+ /** Tool IDs that stay enabled whatever else is configured */
54
+ permanent_enabled_tools?: string[] | null;
55
+ /** Plan Mode */
56
+ plan_mode_enabled?: boolean | null;
57
+ /** True stops giving the agent's sessions a computer (existing computers are kept). Not together with session_computer. */
58
+ remove_session_computer?: boolean | null;
59
+ /** Give the agent's sessions a computer the platform creates from an environment */
60
+ session_computer?: AthenaIntelligence.PublicSessionComputerIn | null;
61
+ /** Show the agent only to workspace admins */
62
+ show_only_for_admin?: boolean | null;
63
+ /** How the agent answers a text from a workspace member it isn't shared with: 'default' (the standard no-access message), 'silent' (no reply) or 'custom' (sms_blocked_sender_reply verbatim). The text is always saved in the agent's SMS thread and the agent never runs; senders without an Athena account in the workspace never get a reply. */
64
+ sms_blocked_sender_mode?: string | null;
65
+ /** Reply text sent to blocked SMS senders when sms_blocked_sender_mode is 'custom', e.g. 'Got it, thanks.' (max 320 characters). */
66
+ sms_blocked_sender_reply?: string | null;
67
+ /** SMS access */
68
+ sms_enabled?: boolean | null;
69
+ /** Knowledge source references: native source IDs, or collab_source:<asset_id>; replaces the list */
70
+ sources?: string[] | null;
71
+ /** Whether the agent must follow strict configuration constraints */
72
+ strict_agent_configuration?: boolean | null;
73
+ /** Collab agent IDs available as sub-agents */
74
+ sub_agents?: string[] | null;
75
+ /** Suggested prompts or actions shown for the agent */
76
+ suggestions?: Record<string, unknown>[] | null;
77
+ /** The instructions the agent follows (markdown); replaces the whole prompt */
78
+ system_prompt?: string | null;
79
+ /** Sampling temperature override */
80
+ temperature?: number | null;
81
+ /** Toolkit IDs the agent can use; replaces the list */
82
+ toolkits?: string[] | null;
83
+ /** Tool IDs the agent can use; replaces the list */
84
+ tools?: string[] | null;
85
+ /** Voice access */
86
+ voice_enabled?: boolean | null;
87
+ /** Collab agent IDs available as voice sub-agents */
88
+ voice_sub_agents?: string[] | null;
89
+ /** Email addresses allowed to use the agent */
90
+ whitelisted_emails?: string[] | null;
91
+ }
@@ -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,26 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
5
+ * body_markdown: "# Ticket triage\n\n1. Read the ticket...",
6
+ * description: "Triage support tickets by urgency and product area."
7
+ * }
8
+ */
9
+ export interface UpdateSkillConfigRequestIn {
10
+ /** ID of the skill to update */
11
+ asset_id: string;
12
+ /** Space-separated list of pre-approved tools (experimental); an empty string clears it */
13
+ allowed_tools?: string | null;
14
+ /** The markdown instructions below the SKILL.md frontmatter. Replaces the whole body. */
15
+ body_markdown?: string | null;
16
+ /** Environment requirements (max 500 chars); an empty string clears it */
17
+ compatibility?: string | null;
18
+ /** What the skill does and when to use it (max 1024 chars) */
19
+ description?: string | null;
20
+ /** License name or reference; an empty string clears it */
21
+ license?: string | null;
22
+ /** Additional string metadata; replaces the whole map */
23
+ metadata?: Record<string, string | null> | null;
24
+ /** Skill name slug (lowercase letters, numbers, single hyphens; max 64 chars). Also becomes the asset title. */
25
+ name?: string | null;
26
+ }
@@ -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 });
@@ -17,4 +17,6 @@ export type { PublishAssetRequestIn } from "./PublishAssetRequestIn.js";
17
17
  export type { RemoveWorkspaceAccessAssetsRequest } from "./RemoveWorkspaceAccessAssetsRequest.js";
18
18
  export type { RenameAssetRequestIn } from "./RenameAssetRequestIn.js";
19
19
  export type { ShareAssetRequestIn } from "./ShareAssetRequestIn.js";
20
+ export type { UpdateAgentConfigRequestIn } from "./UpdateAgentConfigRequestIn.js";
21
+ export type { UpdateSkillConfigRequestIn } from "./UpdateSkillConfigRequestIn.js";
20
22
  export type { UpdateWorkspaceAccessRequestIn } from "./UpdateWorkspaceAccessRequestIn.js";
@@ -2,11 +2,11 @@
2
2
  * One entry in an asset's activity log.
3
3
  */
4
4
  export interface ActivityItemOut {
5
- /** Who made the edit: 'user', 'agent', 'canvas-ai', 'rollback', or 'version-restore'. Matches the in-app Activity pane. */
5
+ /** Who made the edit: 'user', 'agent', 'canvas-ai', 'rollback', 'version-restore', or 'system' (an automatic update, such as a query refreshed on open, which is nobody's edit). An edit naming an agent or an agent session is 'agent' whoever signed it. Matches the in-app Activity pane. */
6
6
  actor_type: string;
7
7
  /** Attribution metadata carried by the edit. Common keys: user_id, agent_id, session_id, user_message_tracking_id, ai_message_tracking_id, source. Join session_id against your trace store to link an edit to the run that produced it. */
8
8
  attributions?: Record<string, string>;
9
- /** Raw Keryx author id. 'backend-service' for agent writes; a user id for direct edits. Prefer actor_type for classification. */
9
+ /** Raw Keryx author id: 'backend-service' for Athena's own writes (most agent writes), otherwise the user id that signed the write, which can be an agent run applied from that user's browser. Prefer actor_type for classification. */
10
10
  by: string;
11
11
  /** Keryx clock at the start of the edit, in epoch milliseconds. Use with to_clock to request this item's delta. */
12
12
  from_clock: number;
@@ -0,0 +1,23 @@
1
+ import type * as AthenaIntelligence from "../index.js";
2
+ /**
3
+ * The computer the platform gives each of a collab agent's sessions.
4
+ */
5
+ export interface PublicSessionComputerIn {
6
+ /** The environment asset the computer is created from */
7
+ environment_asset_id: string;
8
+ /** 'session' gives every session its own computer; 'person' (the default) gives each person one computer reused across their sessions. */
9
+ scope?: PublicSessionComputerIn.Scope | null;
10
+ /** Commands each session runs once on its computer first */
11
+ session_setup?: AthenaIntelligence.PublicSessionSetupStepIn[] | null;
12
+ /** Title of created computers; {person} becomes the person's name */
13
+ title?: string | null;
14
+ /** Absolute path the agent's commands start in */
15
+ working_directory?: string | null;
16
+ }
17
+ export declare namespace PublicSessionComputerIn {
18
+ const Scope: {
19
+ readonly Session: "session";
20
+ readonly Person: "person";
21
+ };
22
+ type Scope = (typeof Scope)[keyof typeof Scope];
23
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PublicSessionComputerIn = void 0;
5
+ var PublicSessionComputerIn;
6
+ (function (PublicSessionComputerIn) {
7
+ PublicSessionComputerIn.Scope = {
8
+ Session: "session",
9
+ Person: "person",
10
+ };
11
+ })(PublicSessionComputerIn || (exports.PublicSessionComputerIn = PublicSessionComputerIn = {}));
@@ -0,0 +1,9 @@
1
+ /**
2
+ * One command a collab agent's session runs on its computer before starting.
3
+ */
4
+ export interface PublicSessionSetupStepIn {
5
+ /** Shell command to run on the computer */
6
+ command: string;
7
+ /** Seconds this step may take (default 120). All steps together must fit in 600 s. */
8
+ timeout_seconds?: number | null;
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,15 @@
1
+ /**
2
+ * Response model for writing a skill's or collab agent's draft.
3
+ */
4
+ export interface UpdateAssetConfigResponseOut {
5
+ /** ID of the updated asset */
6
+ asset_id: string;
7
+ /** Type of the asset: skill or collab_agent */
8
+ asset_type: string;
9
+ /** Always false: the write changed the draft only. Publish it with POST /api/v0/assets/{asset_id}/publish. */
10
+ published: boolean;
11
+ /** Title of the asset after the write */
12
+ title: string;
13
+ /** Non-fatal notes, such as tool or toolkit IDs the registry does not know */
14
+ warnings?: string[];
15
+ }
@@ -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 });
@@ -113,6 +113,8 @@ export * from "./PresenceTokenResponseOut.js";
113
113
  export * from "./PromptMessage.js";
114
114
  export * from "./PublicAssetOut.js";
115
115
  export * from "./PublicCollabAgentConfigIn.js";
116
+ export * from "./PublicSessionComputerIn.js";
117
+ export * from "./PublicSessionSetupStepIn.js";
116
118
  export * from "./PublicSkillConfigIn.js";
117
119
  export * from "./PublishAssetResponseOut.js";
118
120
  export * from "./ReadCapabilitiesOut.js";
@@ -156,6 +158,7 @@ export * from "./ThreadStatusResponseOut.js";
156
158
  export * from "./ThreadStopResponseOut.js";
157
159
  export * from "./ToolResultContent.js";
158
160
  export * from "./ToolUseContent.js";
161
+ export * from "./UpdateAssetConfigResponseOut.js";
159
162
  export * from "./UpdateWorkspaceDisclaimerIn.js";
160
163
  export * from "./UpdateWorkspaceToolRegistryToolIn.js";
161
164
  export * from "./UserInfoOut.js";
@@ -129,6 +129,8 @@ __exportStar(require("./PresenceTokenResponseOut.js"), exports);
129
129
  __exportStar(require("./PromptMessage.js"), exports);
130
130
  __exportStar(require("./PublicAssetOut.js"), exports);
131
131
  __exportStar(require("./PublicCollabAgentConfigIn.js"), exports);
132
+ __exportStar(require("./PublicSessionComputerIn.js"), exports);
133
+ __exportStar(require("./PublicSessionSetupStepIn.js"), exports);
132
134
  __exportStar(require("./PublicSkillConfigIn.js"), exports);
133
135
  __exportStar(require("./PublishAssetResponseOut.js"), exports);
134
136
  __exportStar(require("./ReadCapabilitiesOut.js"), exports);
@@ -172,6 +174,7 @@ __exportStar(require("./ThreadStatusResponseOut.js"), exports);
172
174
  __exportStar(require("./ThreadStopResponseOut.js"), exports);
173
175
  __exportStar(require("./ToolResultContent.js"), exports);
174
176
  __exportStar(require("./ToolUseContent.js"), exports);
177
+ __exportStar(require("./UpdateAssetConfigResponseOut.js"), exports);
175
178
  __exportStar(require("./UpdateWorkspaceDisclaimerIn.js"), exports);
176
179
  __exportStar(require("./UpdateWorkspaceToolRegistryToolIn.js"), exports);
177
180
  __exportStar(require("./UserInfoOut.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2263";
1
+ export declare const SDK_VERSION = "4.3.2265";
@@ -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.2263";
4
+ exports.SDK_VERSION = "4.3.2265";
@@ -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.2263",
10
- "User-Agent": "@athenaintel/sdk/4.3.2263",
9
+ "X-Fern-SDK-Version": "4.3.2265",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2265",
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,