@athenaintel/sdk 4.3.1937 → 4.3.1938

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 (54) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/databases/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/workspaces/client/Client.d.ts +40 -0
  4. package/dist/cjs/api/resources/workspaces/client/Client.js +171 -0
  5. package/dist/cjs/api/resources/workspaces/client/requests/GetToolRegistryWorkspacesRequest.d.ts +9 -0
  6. package/dist/cjs/api/resources/workspaces/client/requests/GetToolRegistryWorkspacesRequest.js +3 -0
  7. package/dist/cjs/api/resources/workspaces/client/requests/UpdateWorkspaceToolRegistryRequestIn.d.ts +18 -0
  8. package/dist/cjs/api/resources/workspaces/client/requests/UpdateWorkspaceToolRegistryRequestIn.js +3 -0
  9. package/dist/cjs/api/resources/workspaces/client/requests/index.d.ts +2 -0
  10. package/dist/cjs/api/types/ApprovalMode.d.ts +7 -0
  11. package/dist/cjs/api/types/ApprovalMode.js +10 -0
  12. package/dist/cjs/api/types/{AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.d.ts → DatabaseStatusResponse.d.ts} +3 -3
  13. package/dist/cjs/api/types/DatabaseStatusResponse.js +15 -0
  14. package/dist/cjs/api/types/DefaultVisibility.d.ts +6 -0
  15. package/dist/cjs/api/types/DefaultVisibility.js +9 -0
  16. package/dist/cjs/api/types/UpdateWorkspaceToolRegistryToolIn.d.ts +12 -0
  17. package/dist/cjs/api/types/UpdateWorkspaceToolRegistryToolIn.js +3 -0
  18. package/dist/cjs/api/types/WorkspaceToolRegistryResponseOut.d.ts +12 -0
  19. package/dist/cjs/api/types/WorkspaceToolRegistryResponseOut.js +3 -0
  20. package/dist/cjs/api/types/WorkspaceToolRegistryToolOut.d.ts +12 -0
  21. package/dist/cjs/api/types/WorkspaceToolRegistryToolOut.js +3 -0
  22. package/dist/cjs/api/types/index.d.ts +6 -1
  23. package/dist/cjs/api/types/index.js +6 -1
  24. package/dist/cjs/version.d.ts +1 -1
  25. package/dist/cjs/version.js +1 -1
  26. package/dist/esm/BaseClient.mjs +2 -2
  27. package/dist/esm/api/resources/databases/client/Client.d.mts +1 -1
  28. package/dist/esm/api/resources/workspaces/client/Client.d.mts +40 -0
  29. package/dist/esm/api/resources/workspaces/client/Client.mjs +171 -0
  30. package/dist/esm/api/resources/workspaces/client/requests/GetToolRegistryWorkspacesRequest.d.mts +9 -0
  31. package/dist/esm/api/resources/workspaces/client/requests/GetToolRegistryWorkspacesRequest.mjs +2 -0
  32. package/dist/esm/api/resources/workspaces/client/requests/UpdateWorkspaceToolRegistryRequestIn.d.mts +18 -0
  33. package/dist/esm/api/resources/workspaces/client/requests/UpdateWorkspaceToolRegistryRequestIn.mjs +2 -0
  34. package/dist/esm/api/resources/workspaces/client/requests/index.d.mts +2 -0
  35. package/dist/esm/api/types/ApprovalMode.d.mts +7 -0
  36. package/dist/esm/api/types/ApprovalMode.mjs +7 -0
  37. package/dist/esm/api/types/{AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.d.mts → DatabaseStatusResponse.d.mts} +3 -3
  38. package/dist/esm/api/types/DatabaseStatusResponse.mjs +12 -0
  39. package/dist/esm/api/types/DefaultVisibility.d.mts +6 -0
  40. package/dist/esm/api/types/DefaultVisibility.mjs +6 -0
  41. package/dist/esm/api/types/UpdateWorkspaceToolRegistryToolIn.d.mts +12 -0
  42. package/dist/esm/api/types/UpdateWorkspaceToolRegistryToolIn.mjs +2 -0
  43. package/dist/esm/api/types/WorkspaceToolRegistryResponseOut.d.mts +12 -0
  44. package/dist/esm/api/types/WorkspaceToolRegistryResponseOut.mjs +2 -0
  45. package/dist/esm/api/types/WorkspaceToolRegistryToolOut.d.mts +12 -0
  46. package/dist/esm/api/types/WorkspaceToolRegistryToolOut.mjs +2 -0
  47. package/dist/esm/api/types/index.d.mts +6 -1
  48. package/dist/esm/api/types/index.mjs +6 -1
  49. package/dist/esm/version.d.mts +1 -1
  50. package/dist/esm/version.mjs +1 -1
  51. package/package.json +1 -1
  52. package/reference.md +135 -1
  53. package/dist/cjs/api/types/AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.js +0 -15
  54. package/dist/esm/api/types/AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.mjs +0 -12
@@ -190,4 +190,175 @@ export class WorkspacesClient {
190
190
  }
191
191
  });
192
192
  }
193
+ /**
194
+ * Retrieve the persisted per-workspace Tool Registry policy. The response contains explicit tool overrides; environment feature flags, billing restrictions, and disabled tags may further restrict effective availability. Requires workspace owner or admin permissions.
195
+ *
196
+ * @param {AthenaIntelligence.GetToolRegistryWorkspacesRequest} request
197
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
198
+ *
199
+ * @throws {@link AthenaIntelligence.BadRequestError}
200
+ * @throws {@link AthenaIntelligence.ForbiddenError}
201
+ * @throws {@link AthenaIntelligence.NotFoundError}
202
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
203
+ *
204
+ * @example
205
+ * await client.workspaces.getToolRegistry({
206
+ * workspace_id: "workspace_id"
207
+ * })
208
+ */
209
+ getToolRegistry(request, requestOptions) {
210
+ return core.HttpResponsePromise.fromPromise(this.__getToolRegistry(request, requestOptions));
211
+ }
212
+ __getToolRegistry(request, requestOptions) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
215
+ const { workspace_id: workspaceId } = request;
216
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
217
+ 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);
218
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
219
+ 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/workspaces/${core.url.encodePathParam(workspaceId)}/tool-registry`),
220
+ method: "GET",
221
+ headers: _headers,
222
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
223
+ 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,
224
+ 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,
225
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
226
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
227
+ logging: this._options.logging,
228
+ });
229
+ if (_response.ok) {
230
+ return {
231
+ data: _response.body,
232
+ rawResponse: _response.rawResponse,
233
+ };
234
+ }
235
+ if (_response.error.reason === "status-code") {
236
+ switch (_response.error.statusCode) {
237
+ case 400:
238
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
239
+ case 403:
240
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
241
+ case 404:
242
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
243
+ case 422:
244
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
245
+ default:
246
+ throw new errors.AthenaIntelligenceError({
247
+ statusCode: _response.error.statusCode,
248
+ body: _response.error.body,
249
+ rawResponse: _response.rawResponse,
250
+ });
251
+ }
252
+ }
253
+ switch (_response.error.reason) {
254
+ case "non-json":
255
+ throw new errors.AthenaIntelligenceError({
256
+ statusCode: _response.error.statusCode,
257
+ body: _response.error.rawBody,
258
+ rawResponse: _response.rawResponse,
259
+ });
260
+ case "body-is-null":
261
+ throw new errors.AthenaIntelligenceError({
262
+ statusCode: _response.error.statusCode,
263
+ rawResponse: _response.rawResponse,
264
+ });
265
+ case "timeout":
266
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/workspaces/{workspace_id}/tool-registry.");
267
+ case "unknown":
268
+ throw new errors.AthenaIntelligenceError({
269
+ message: _response.error.errorMessage,
270
+ rawResponse: _response.rawResponse,
271
+ });
272
+ }
273
+ });
274
+ }
275
+ /**
276
+ * Update the default visibility or one per-tool override for a workspace. Requests are partial and idempotent, making this endpoint suitable for configuration automation across many workspaces. Base tools cannot be disabled. Requires workspace owner or admin permissions.
277
+ *
278
+ * @param {AthenaIntelligence.UpdateWorkspaceToolRegistryRequestIn} request
279
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
280
+ *
281
+ * @throws {@link AthenaIntelligence.BadRequestError}
282
+ * @throws {@link AthenaIntelligence.ForbiddenError}
283
+ * @throws {@link AthenaIntelligence.NotFoundError}
284
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
285
+ *
286
+ * @example
287
+ * await client.workspaces.updateToolRegistry({
288
+ * workspace_id: "workspace_id",
289
+ * tool: {
290
+ * enabled: false,
291
+ * tool_id: "search"
292
+ * }
293
+ * })
294
+ */
295
+ updateToolRegistry(request, requestOptions) {
296
+ return core.HttpResponsePromise.fromPromise(this.__updateToolRegistry(request, requestOptions));
297
+ }
298
+ __updateToolRegistry(request, requestOptions) {
299
+ return __awaiter(this, void 0, void 0, function* () {
300
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
301
+ const { workspace_id: workspaceId } = request, _body = __rest(request, ["workspace_id"]);
302
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
303
+ 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);
304
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
305
+ 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/workspaces/${core.url.encodePathParam(workspaceId)}/tool-registry`),
306
+ method: "PATCH",
307
+ headers: _headers,
308
+ contentType: "application/json",
309
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
310
+ requestType: "json",
311
+ body: _body,
312
+ 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,
313
+ 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,
314
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
315
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
316
+ logging: this._options.logging,
317
+ });
318
+ if (_response.ok) {
319
+ return {
320
+ data: _response.body,
321
+ rawResponse: _response.rawResponse,
322
+ };
323
+ }
324
+ if (_response.error.reason === "status-code") {
325
+ switch (_response.error.statusCode) {
326
+ case 400:
327
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
328
+ case 403:
329
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
330
+ case 404:
331
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
332
+ case 422:
333
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
334
+ default:
335
+ throw new errors.AthenaIntelligenceError({
336
+ statusCode: _response.error.statusCode,
337
+ body: _response.error.body,
338
+ rawResponse: _response.rawResponse,
339
+ });
340
+ }
341
+ }
342
+ switch (_response.error.reason) {
343
+ case "non-json":
344
+ throw new errors.AthenaIntelligenceError({
345
+ statusCode: _response.error.statusCode,
346
+ body: _response.error.rawBody,
347
+ rawResponse: _response.rawResponse,
348
+ });
349
+ case "body-is-null":
350
+ throw new errors.AthenaIntelligenceError({
351
+ statusCode: _response.error.statusCode,
352
+ rawResponse: _response.rawResponse,
353
+ });
354
+ case "timeout":
355
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling PATCH /api/v0/workspaces/{workspace_id}/tool-registry.");
356
+ case "unknown":
357
+ throw new errors.AthenaIntelligenceError({
358
+ message: _response.error.errorMessage,
359
+ rawResponse: _response.rawResponse,
360
+ });
361
+ }
362
+ });
363
+ }
193
364
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * workspace_id: "workspace_id"
5
+ * }
6
+ */
7
+ export interface GetToolRegistryWorkspacesRequest {
8
+ workspace_id: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,18 @@
1
+ import type * as AthenaIntelligence from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * workspace_id: "workspace_id",
6
+ * tool: {
7
+ * enabled: false,
8
+ * tool_id: "search"
9
+ * }
10
+ * }
11
+ */
12
+ export interface UpdateWorkspaceToolRegistryRequestIn {
13
+ workspace_id: string;
14
+ /** Default visibility for tools without an explicit override */
15
+ default_visibility?: AthenaIntelligence.DefaultVisibility | null;
16
+ /** An optional update to one tool override */
17
+ tool?: AthenaIntelligence.UpdateWorkspaceToolRegistryToolIn | null;
18
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,2 +1,4 @@
1
1
  export type { GetConfigurationWorkspacesRequest } from "./GetConfigurationWorkspacesRequest.mjs";
2
+ export type { GetToolRegistryWorkspacesRequest } from "./GetToolRegistryWorkspacesRequest.mjs";
2
3
  export type { UpdateWorkspaceConfigurationRequestIn } from "./UpdateWorkspaceConfigurationRequestIn.mjs";
4
+ export type { UpdateWorkspaceToolRegistryRequestIn } from "./UpdateWorkspaceToolRegistryRequestIn.mjs";
@@ -0,0 +1,7 @@
1
+ /** Approval requirement modes for tools. */
2
+ export declare const ApprovalMode: {
3
+ readonly NoApproval: "no_approval";
4
+ readonly RequiredWithOverride: "required_with_override";
5
+ readonly RequiredNoOverride: "required_no_override";
6
+ };
7
+ export type ApprovalMode = (typeof ApprovalMode)[keyof typeof ApprovalMode];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Approval requirement modes for tools. */
3
+ export const ApprovalMode = {
4
+ NoApproval: "no_approval",
5
+ RequiredWithOverride: "required_with_override",
6
+ RequiredNoOverride: "required_no_override",
7
+ };
@@ -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,6 @@
1
+ /** Default visibility for new tools. */
2
+ export declare const DefaultVisibility: {
3
+ readonly Visible: "visible";
4
+ readonly Hidden: "hidden";
5
+ };
6
+ export type DefaultVisibility = (typeof DefaultVisibility)[keyof typeof DefaultVisibility];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Default visibility for new tools. */
3
+ export const DefaultVisibility = {
4
+ Visible: "visible",
5
+ Hidden: "hidden",
6
+ };
@@ -0,0 +1,12 @@
1
+ import type * as AthenaIntelligence from "../index.mjs";
2
+ /**
3
+ * A partial update to one workspace tool override.
4
+ */
5
+ export interface UpdateWorkspaceToolRegistryToolIn {
6
+ /** Approval policy for the tool */
7
+ approval_mode?: AthenaIntelligence.ApprovalMode | null;
8
+ /** Whether to enable the tool */
9
+ enabled?: boolean | null;
10
+ /** The canonical tool identifier */
11
+ tool_id: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ import type * as AthenaIntelligence from "../index.mjs";
2
+ /**
3
+ * Persisted Tool Registry policy for a workspace.
4
+ */
5
+ export interface WorkspaceToolRegistryResponseOut {
6
+ /** Default visibility for tools without an explicit override */
7
+ default_visibility: AthenaIntelligence.DefaultVisibility;
8
+ /** Persisted per-tool overrides, sorted by tool ID */
9
+ tools: AthenaIntelligence.WorkspaceToolRegistryToolOut[];
10
+ /** The workspace ID */
11
+ workspace_id: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ import type * as AthenaIntelligence from "../index.mjs";
2
+ /**
3
+ * A persisted per-tool override in a workspace Tool Registry.
4
+ */
5
+ export interface WorkspaceToolRegistryToolOut {
6
+ /** The approval policy applied to the tool */
7
+ approval_mode: AthenaIntelligence.ApprovalMode;
8
+ /** Whether the tool is enabled */
9
+ enabled: boolean;
10
+ /** The canonical tool identifier */
11
+ tool_id: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,10 +1,10 @@
1
- export * from "./AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.mjs";
2
1
  export * from "./AopAsyncExecuteResponseOut.mjs";
3
2
  export * from "./AopConfigResponseOut.mjs";
4
3
  export * from "./AopConfigUpdateResponseOut.mjs";
5
4
  export * from "./AopCreateResponseOut.mjs";
6
5
  export * from "./AopExecuteRequestIn.mjs";
7
6
  export * from "./AopExecuteResponseOut.mjs";
7
+ export * from "./ApprovalMode.mjs";
8
8
  export * from "./ArchiveAssetResponseOut.mjs";
9
9
  export * from "./AssetCapabilitiesResponseOut.mjs";
10
10
  export * from "./AssetComment.mjs";
@@ -34,11 +34,13 @@ export * from "./DatabaseColumnInfo.mjs";
34
34
  export * from "./DatabaseDataResponse.mjs";
35
35
  export * from "./DatabaseMutationResponse.mjs";
36
36
  export * from "./DatabaseSqlResponse.mjs";
37
+ export * from "./DatabaseStatusResponse.mjs";
37
38
  export * from "./DatabaseTableInfo.mjs";
38
39
  export * from "./DatabaseTableSchemaResponse.mjs";
39
40
  export * from "./DatabaseTablesResponse.mjs";
40
41
  export * from "./DataFrameRequestOut.mjs";
41
42
  export * from "./DataFrameUnknownFormatError.mjs";
43
+ export * from "./DefaultVisibility.mjs";
42
44
  export * from "./DeleteDataRequest.mjs";
43
45
  export * from "./DeployComputerResponseOut.mjs";
44
46
  export * from "./DimensionProperties.mjs";
@@ -99,10 +101,13 @@ export * from "./ThreadStopResponseOut.mjs";
99
101
  export * from "./ToolResultContent.mjs";
100
102
  export * from "./ToolUseContent.mjs";
101
103
  export * from "./UpdateWorkspaceDisclaimerIn.mjs";
104
+ export * from "./UpdateWorkspaceToolRegistryToolIn.mjs";
102
105
  export * from "./UserInfoOut.mjs";
103
106
  export * from "./WorkspaceAccessResponseOut.mjs";
104
107
  export * from "./WorkspaceConfigurationResponseOut.mjs";
105
108
  export * from "./WorkspaceDisclaimerOut.mjs";
106
109
  export * from "./WorkspaceInfoOut.mjs";
107
110
  export * from "./WorkspaceShareAccess.mjs";
111
+ export * from "./WorkspaceToolRegistryResponseOut.mjs";
112
+ export * from "./WorkspaceToolRegistryToolOut.mjs";
108
113
  export * from "./WrapStrategy.mjs";
@@ -1,10 +1,10 @@
1
- export * from "./AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.mjs";
2
1
  export * from "./AopAsyncExecuteResponseOut.mjs";
3
2
  export * from "./AopConfigResponseOut.mjs";
4
3
  export * from "./AopConfigUpdateResponseOut.mjs";
5
4
  export * from "./AopCreateResponseOut.mjs";
6
5
  export * from "./AopExecuteRequestIn.mjs";
7
6
  export * from "./AopExecuteResponseOut.mjs";
7
+ export * from "./ApprovalMode.mjs";
8
8
  export * from "./ArchiveAssetResponseOut.mjs";
9
9
  export * from "./AssetCapabilitiesResponseOut.mjs";
10
10
  export * from "./AssetComment.mjs";
@@ -34,11 +34,13 @@ export * from "./DatabaseColumnInfo.mjs";
34
34
  export * from "./DatabaseDataResponse.mjs";
35
35
  export * from "./DatabaseMutationResponse.mjs";
36
36
  export * from "./DatabaseSqlResponse.mjs";
37
+ export * from "./DatabaseStatusResponse.mjs";
37
38
  export * from "./DatabaseTableInfo.mjs";
38
39
  export * from "./DatabaseTableSchemaResponse.mjs";
39
40
  export * from "./DatabaseTablesResponse.mjs";
40
41
  export * from "./DataFrameRequestOut.mjs";
41
42
  export * from "./DataFrameUnknownFormatError.mjs";
43
+ export * from "./DefaultVisibility.mjs";
42
44
  export * from "./DeleteDataRequest.mjs";
43
45
  export * from "./DeployComputerResponseOut.mjs";
44
46
  export * from "./DimensionProperties.mjs";
@@ -99,10 +101,13 @@ export * from "./ThreadStopResponseOut.mjs";
99
101
  export * from "./ToolResultContent.mjs";
100
102
  export * from "./ToolUseContent.mjs";
101
103
  export * from "./UpdateWorkspaceDisclaimerIn.mjs";
104
+ export * from "./UpdateWorkspaceToolRegistryToolIn.mjs";
102
105
  export * from "./UserInfoOut.mjs";
103
106
  export * from "./WorkspaceAccessResponseOut.mjs";
104
107
  export * from "./WorkspaceConfigurationResponseOut.mjs";
105
108
  export * from "./WorkspaceDisclaimerOut.mjs";
106
109
  export * from "./WorkspaceInfoOut.mjs";
107
110
  export * from "./WorkspaceShareAccess.mjs";
111
+ export * from "./WorkspaceToolRegistryResponseOut.mjs";
112
+ export * from "./WorkspaceToolRegistryToolOut.mjs";
108
113
  export * from "./WrapStrategy.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.1937";
1
+ export declare const SDK_VERSION = "4.3.1938";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.1937";
1
+ export const SDK_VERSION = "4.3.1938";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.1937",
3
+ "version": "4.3.1938",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -1298,7 +1298,7 @@ await client.computer.revokeSshAccess({
1298
1298
  </details>
1299
1299
 
1300
1300
  ## Databases
1301
- <details><summary><code>client.databases.<a href="/src/api/resources/databases/client/Client.ts">getStatus</a>({ ...params }) -> AthenaIntelligence.AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse</code></summary>
1301
+ <details><summary><code>client.databases.<a href="/src/api/resources/databases/client/Client.ts">getStatus</a>({ ...params }) -> AthenaIntelligence.DatabaseStatusResponse</code></summary>
1302
1302
  <dl>
1303
1303
  <dd>
1304
1304
 
@@ -3563,6 +3563,140 @@ await client.workspaces.updateConfiguration({
3563
3563
  </dl>
3564
3564
 
3565
3565
 
3566
+ </dd>
3567
+ </dl>
3568
+ </details>
3569
+
3570
+ <details><summary><code>client.workspaces.<a href="/src/api/resources/workspaces/client/Client.ts">getToolRegistry</a>({ ...params }) -> AthenaIntelligence.WorkspaceToolRegistryResponseOut</code></summary>
3571
+ <dl>
3572
+ <dd>
3573
+
3574
+ #### 📝 Description
3575
+
3576
+ <dl>
3577
+ <dd>
3578
+
3579
+ <dl>
3580
+ <dd>
3581
+
3582
+ Retrieve the persisted per-workspace Tool Registry policy. The response contains explicit tool overrides; environment feature flags, billing restrictions, and disabled tags may further restrict effective availability. Requires workspace owner or admin permissions.
3583
+ </dd>
3584
+ </dl>
3585
+ </dd>
3586
+ </dl>
3587
+
3588
+ #### 🔌 Usage
3589
+
3590
+ <dl>
3591
+ <dd>
3592
+
3593
+ <dl>
3594
+ <dd>
3595
+
3596
+ ```typescript
3597
+ await client.workspaces.getToolRegistry({
3598
+ workspace_id: "workspace_id"
3599
+ });
3600
+
3601
+ ```
3602
+ </dd>
3603
+ </dl>
3604
+ </dd>
3605
+ </dl>
3606
+
3607
+ #### ⚙️ Parameters
3608
+
3609
+ <dl>
3610
+ <dd>
3611
+
3612
+ <dl>
3613
+ <dd>
3614
+
3615
+ **request:** `AthenaIntelligence.GetToolRegistryWorkspacesRequest`
3616
+
3617
+ </dd>
3618
+ </dl>
3619
+
3620
+ <dl>
3621
+ <dd>
3622
+
3623
+ **requestOptions:** `WorkspacesClient.RequestOptions`
3624
+
3625
+ </dd>
3626
+ </dl>
3627
+ </dd>
3628
+ </dl>
3629
+
3630
+
3631
+ </dd>
3632
+ </dl>
3633
+ </details>
3634
+
3635
+ <details><summary><code>client.workspaces.<a href="/src/api/resources/workspaces/client/Client.ts">updateToolRegistry</a>({ ...params }) -> AthenaIntelligence.WorkspaceToolRegistryResponseOut</code></summary>
3636
+ <dl>
3637
+ <dd>
3638
+
3639
+ #### 📝 Description
3640
+
3641
+ <dl>
3642
+ <dd>
3643
+
3644
+ <dl>
3645
+ <dd>
3646
+
3647
+ Update the default visibility or one per-tool override for a workspace. Requests are partial and idempotent, making this endpoint suitable for configuration automation across many workspaces. Base tools cannot be disabled. Requires workspace owner or admin permissions.
3648
+ </dd>
3649
+ </dl>
3650
+ </dd>
3651
+ </dl>
3652
+
3653
+ #### 🔌 Usage
3654
+
3655
+ <dl>
3656
+ <dd>
3657
+
3658
+ <dl>
3659
+ <dd>
3660
+
3661
+ ```typescript
3662
+ await client.workspaces.updateToolRegistry({
3663
+ workspace_id: "workspace_id",
3664
+ tool: {
3665
+ enabled: false,
3666
+ tool_id: "search"
3667
+ }
3668
+ });
3669
+
3670
+ ```
3671
+ </dd>
3672
+ </dl>
3673
+ </dd>
3674
+ </dl>
3675
+
3676
+ #### ⚙️ Parameters
3677
+
3678
+ <dl>
3679
+ <dd>
3680
+
3681
+ <dl>
3682
+ <dd>
3683
+
3684
+ **request:** `AthenaIntelligence.UpdateWorkspaceToolRegistryRequestIn`
3685
+
3686
+ </dd>
3687
+ </dl>
3688
+
3689
+ <dl>
3690
+ <dd>
3691
+
3692
+ **requestOptions:** `WorkspacesClient.RequestOptions`
3693
+
3694
+ </dd>
3695
+ </dl>
3696
+ </dd>
3697
+ </dl>
3698
+
3699
+
3566
3700
  </dd>
3567
3701
  </dl>
3568
3702
  </details>
@@ -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 = {}));