@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
@@ -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.1937",
47
- "User-Agent": "@athenaintel/sdk/4.3.1937",
46
+ "X-Fern-SDK-Version": "4.3.1938",
47
+ "User-Agent": "@athenaintel/sdk/4.3.1938",
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);
@@ -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.
@@ -45,4 +45,44 @@ export declare class WorkspacesClient {
45
45
  */
46
46
  updateConfiguration(request: AthenaIntelligence.UpdateWorkspaceConfigurationRequestIn, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.WorkspaceConfigurationResponseOut>;
47
47
  private __updateConfiguration;
48
+ /**
49
+ * 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.
50
+ *
51
+ * @param {AthenaIntelligence.GetToolRegistryWorkspacesRequest} request
52
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link AthenaIntelligence.BadRequestError}
55
+ * @throws {@link AthenaIntelligence.ForbiddenError}
56
+ * @throws {@link AthenaIntelligence.NotFoundError}
57
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
58
+ *
59
+ * @example
60
+ * await client.workspaces.getToolRegistry({
61
+ * workspace_id: "workspace_id"
62
+ * })
63
+ */
64
+ getToolRegistry(request: AthenaIntelligence.GetToolRegistryWorkspacesRequest, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.WorkspaceToolRegistryResponseOut>;
65
+ private __getToolRegistry;
66
+ /**
67
+ * 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.
68
+ *
69
+ * @param {AthenaIntelligence.UpdateWorkspaceToolRegistryRequestIn} request
70
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link AthenaIntelligence.BadRequestError}
73
+ * @throws {@link AthenaIntelligence.ForbiddenError}
74
+ * @throws {@link AthenaIntelligence.NotFoundError}
75
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.workspaces.updateToolRegistry({
79
+ * workspace_id: "workspace_id",
80
+ * tool: {
81
+ * enabled: false,
82
+ * tool_id: "search"
83
+ * }
84
+ * })
85
+ */
86
+ updateToolRegistry(request: AthenaIntelligence.UpdateWorkspaceToolRegistryRequestIn, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.WorkspaceToolRegistryResponseOut>;
87
+ private __updateToolRegistry;
48
88
  }
@@ -226,5 +226,176 @@ class WorkspacesClient {
226
226
  }
227
227
  });
228
228
  }
229
+ /**
230
+ * 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.
231
+ *
232
+ * @param {AthenaIntelligence.GetToolRegistryWorkspacesRequest} request
233
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
234
+ *
235
+ * @throws {@link AthenaIntelligence.BadRequestError}
236
+ * @throws {@link AthenaIntelligence.ForbiddenError}
237
+ * @throws {@link AthenaIntelligence.NotFoundError}
238
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
239
+ *
240
+ * @example
241
+ * await client.workspaces.getToolRegistry({
242
+ * workspace_id: "workspace_id"
243
+ * })
244
+ */
245
+ getToolRegistry(request, requestOptions) {
246
+ return core.HttpResponsePromise.fromPromise(this.__getToolRegistry(request, requestOptions));
247
+ }
248
+ __getToolRegistry(request, requestOptions) {
249
+ return __awaiter(this, void 0, void 0, function* () {
250
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
251
+ const { workspace_id: workspaceId } = request;
252
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
253
+ 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);
254
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
255
+ 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`),
256
+ method: "GET",
257
+ headers: _headers,
258
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
259
+ 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,
260
+ 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,
261
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
262
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
263
+ logging: this._options.logging,
264
+ });
265
+ if (_response.ok) {
266
+ return {
267
+ data: _response.body,
268
+ rawResponse: _response.rawResponse,
269
+ };
270
+ }
271
+ if (_response.error.reason === "status-code") {
272
+ switch (_response.error.statusCode) {
273
+ case 400:
274
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
275
+ case 403:
276
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
277
+ case 404:
278
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
279
+ case 422:
280
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
281
+ default:
282
+ throw new errors.AthenaIntelligenceError({
283
+ statusCode: _response.error.statusCode,
284
+ body: _response.error.body,
285
+ rawResponse: _response.rawResponse,
286
+ });
287
+ }
288
+ }
289
+ switch (_response.error.reason) {
290
+ case "non-json":
291
+ throw new errors.AthenaIntelligenceError({
292
+ statusCode: _response.error.statusCode,
293
+ body: _response.error.rawBody,
294
+ rawResponse: _response.rawResponse,
295
+ });
296
+ case "body-is-null":
297
+ throw new errors.AthenaIntelligenceError({
298
+ statusCode: _response.error.statusCode,
299
+ rawResponse: _response.rawResponse,
300
+ });
301
+ case "timeout":
302
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/workspaces/{workspace_id}/tool-registry.");
303
+ case "unknown":
304
+ throw new errors.AthenaIntelligenceError({
305
+ message: _response.error.errorMessage,
306
+ rawResponse: _response.rawResponse,
307
+ });
308
+ }
309
+ });
310
+ }
311
+ /**
312
+ * 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.
313
+ *
314
+ * @param {AthenaIntelligence.UpdateWorkspaceToolRegistryRequestIn} request
315
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
316
+ *
317
+ * @throws {@link AthenaIntelligence.BadRequestError}
318
+ * @throws {@link AthenaIntelligence.ForbiddenError}
319
+ * @throws {@link AthenaIntelligence.NotFoundError}
320
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
321
+ *
322
+ * @example
323
+ * await client.workspaces.updateToolRegistry({
324
+ * workspace_id: "workspace_id",
325
+ * tool: {
326
+ * enabled: false,
327
+ * tool_id: "search"
328
+ * }
329
+ * })
330
+ */
331
+ updateToolRegistry(request, requestOptions) {
332
+ return core.HttpResponsePromise.fromPromise(this.__updateToolRegistry(request, requestOptions));
333
+ }
334
+ __updateToolRegistry(request, requestOptions) {
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
337
+ const { workspace_id: workspaceId } = request, _body = __rest(request, ["workspace_id"]);
338
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
339
+ 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);
340
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
341
+ 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`),
342
+ method: "PATCH",
343
+ headers: _headers,
344
+ contentType: "application/json",
345
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
346
+ requestType: "json",
347
+ body: _body,
348
+ 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,
349
+ 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,
350
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
351
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
352
+ logging: this._options.logging,
353
+ });
354
+ if (_response.ok) {
355
+ return {
356
+ data: _response.body,
357
+ rawResponse: _response.rawResponse,
358
+ };
359
+ }
360
+ if (_response.error.reason === "status-code") {
361
+ switch (_response.error.statusCode) {
362
+ case 400:
363
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
364
+ case 403:
365
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
366
+ case 404:
367
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
368
+ case 422:
369
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
370
+ default:
371
+ throw new errors.AthenaIntelligenceError({
372
+ statusCode: _response.error.statusCode,
373
+ body: _response.error.body,
374
+ rawResponse: _response.rawResponse,
375
+ });
376
+ }
377
+ }
378
+ switch (_response.error.reason) {
379
+ case "non-json":
380
+ throw new errors.AthenaIntelligenceError({
381
+ statusCode: _response.error.statusCode,
382
+ body: _response.error.rawBody,
383
+ rawResponse: _response.rawResponse,
384
+ });
385
+ case "body-is-null":
386
+ throw new errors.AthenaIntelligenceError({
387
+ statusCode: _response.error.statusCode,
388
+ rawResponse: _response.rawResponse,
389
+ });
390
+ case "timeout":
391
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling PATCH /api/v0/workspaces/{workspace_id}/tool-registry.");
392
+ case "unknown":
393
+ throw new errors.AthenaIntelligenceError({
394
+ message: _response.error.errorMessage,
395
+ rawResponse: _response.rawResponse,
396
+ });
397
+ }
398
+ });
399
+ }
229
400
  }
230
401
  exports.WorkspacesClient = WorkspacesClient;
@@ -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,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,18 @@
1
+ import type * as AthenaIntelligence from "../../../../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,4 @@
1
1
  export type { GetConfigurationWorkspacesRequest } from "./GetConfigurationWorkspacesRequest.js";
2
+ export type { GetToolRegistryWorkspacesRequest } from "./GetToolRegistryWorkspacesRequest.js";
2
3
  export type { UpdateWorkspaceConfigurationRequestIn } from "./UpdateWorkspaceConfigurationRequestIn.js";
4
+ export type { UpdateWorkspaceToolRegistryRequestIn } from "./UpdateWorkspaceToolRegistryRequestIn.js";
@@ -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,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ApprovalMode = void 0;
5
+ /** Approval requirement modes for tools. */
6
+ exports.ApprovalMode = {
7
+ NoApproval: "no_approval",
8
+ RequiredWithOverride: "required_with_override",
9
+ RequiredNoOverride: "required_no_override",
10
+ };
@@ -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,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,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DefaultVisibility = void 0;
5
+ /** Default visibility for new tools. */
6
+ exports.DefaultVisibility = {
7
+ Visible: "visible",
8
+ Hidden: "hidden",
9
+ };
@@ -0,0 +1,12 @@
1
+ import type * as AthenaIntelligence from "../index.js";
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,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,12 @@
1
+ import type * as AthenaIntelligence from "../index.js";
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,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,12 @@
1
+ import type * as AthenaIntelligence from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,10 @@
1
- export * from "./AgoraWebApiPublicV0ModelsDatabaseDataDatabaseStatusResponse.js";
2
1
  export * from "./AopAsyncExecuteResponseOut.js";
3
2
  export * from "./AopConfigResponseOut.js";
4
3
  export * from "./AopConfigUpdateResponseOut.js";
5
4
  export * from "./AopCreateResponseOut.js";
6
5
  export * from "./AopExecuteRequestIn.js";
7
6
  export * from "./AopExecuteResponseOut.js";
7
+ export * from "./ApprovalMode.js";
8
8
  export * from "./ArchiveAssetResponseOut.js";
9
9
  export * from "./AssetCapabilitiesResponseOut.js";
10
10
  export * from "./AssetComment.js";
@@ -34,11 +34,13 @@ export * from "./DatabaseColumnInfo.js";
34
34
  export * from "./DatabaseDataResponse.js";
35
35
  export * from "./DatabaseMutationResponse.js";
36
36
  export * from "./DatabaseSqlResponse.js";
37
+ export * from "./DatabaseStatusResponse.js";
37
38
  export * from "./DatabaseTableInfo.js";
38
39
  export * from "./DatabaseTableSchemaResponse.js";
39
40
  export * from "./DatabaseTablesResponse.js";
40
41
  export * from "./DataFrameRequestOut.js";
41
42
  export * from "./DataFrameUnknownFormatError.js";
43
+ export * from "./DefaultVisibility.js";
42
44
  export * from "./DeleteDataRequest.js";
43
45
  export * from "./DeployComputerResponseOut.js";
44
46
  export * from "./DimensionProperties.js";
@@ -99,10 +101,13 @@ export * from "./ThreadStopResponseOut.js";
99
101
  export * from "./ToolResultContent.js";
100
102
  export * from "./ToolUseContent.js";
101
103
  export * from "./UpdateWorkspaceDisclaimerIn.js";
104
+ export * from "./UpdateWorkspaceToolRegistryToolIn.js";
102
105
  export * from "./UserInfoOut.js";
103
106
  export * from "./WorkspaceAccessResponseOut.js";
104
107
  export * from "./WorkspaceConfigurationResponseOut.js";
105
108
  export * from "./WorkspaceDisclaimerOut.js";
106
109
  export * from "./WorkspaceInfoOut.js";
107
110
  export * from "./WorkspaceShareAccess.js";
111
+ export * from "./WorkspaceToolRegistryResponseOut.js";
112
+ export * from "./WorkspaceToolRegistryToolOut.js";
108
113
  export * from "./WrapStrategy.js";
@@ -14,13 +14,13 @@ 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);
21
20
  __exportStar(require("./AopCreateResponseOut.js"), exports);
22
21
  __exportStar(require("./AopExecuteRequestIn.js"), exports);
23
22
  __exportStar(require("./AopExecuteResponseOut.js"), exports);
23
+ __exportStar(require("./ApprovalMode.js"), exports);
24
24
  __exportStar(require("./ArchiveAssetResponseOut.js"), exports);
25
25
  __exportStar(require("./AssetCapabilitiesResponseOut.js"), exports);
26
26
  __exportStar(require("./AssetComment.js"), exports);
@@ -50,11 +50,13 @@ __exportStar(require("./DatabaseColumnInfo.js"), exports);
50
50
  __exportStar(require("./DatabaseDataResponse.js"), exports);
51
51
  __exportStar(require("./DatabaseMutationResponse.js"), exports);
52
52
  __exportStar(require("./DatabaseSqlResponse.js"), exports);
53
+ __exportStar(require("./DatabaseStatusResponse.js"), exports);
53
54
  __exportStar(require("./DatabaseTableInfo.js"), exports);
54
55
  __exportStar(require("./DatabaseTableSchemaResponse.js"), exports);
55
56
  __exportStar(require("./DatabaseTablesResponse.js"), exports);
56
57
  __exportStar(require("./DataFrameRequestOut.js"), exports);
57
58
  __exportStar(require("./DataFrameUnknownFormatError.js"), exports);
59
+ __exportStar(require("./DefaultVisibility.js"), exports);
58
60
  __exportStar(require("./DeleteDataRequest.js"), exports);
59
61
  __exportStar(require("./DeployComputerResponseOut.js"), exports);
60
62
  __exportStar(require("./DimensionProperties.js"), exports);
@@ -115,10 +117,13 @@ __exportStar(require("./ThreadStopResponseOut.js"), exports);
115
117
  __exportStar(require("./ToolResultContent.js"), exports);
116
118
  __exportStar(require("./ToolUseContent.js"), exports);
117
119
  __exportStar(require("./UpdateWorkspaceDisclaimerIn.js"), exports);
120
+ __exportStar(require("./UpdateWorkspaceToolRegistryToolIn.js"), exports);
118
121
  __exportStar(require("./UserInfoOut.js"), exports);
119
122
  __exportStar(require("./WorkspaceAccessResponseOut.js"), exports);
120
123
  __exportStar(require("./WorkspaceConfigurationResponseOut.js"), exports);
121
124
  __exportStar(require("./WorkspaceDisclaimerOut.js"), exports);
122
125
  __exportStar(require("./WorkspaceInfoOut.js"), exports);
123
126
  __exportStar(require("./WorkspaceShareAccess.js"), exports);
127
+ __exportStar(require("./WorkspaceToolRegistryResponseOut.js"), exports);
128
+ __exportStar(require("./WorkspaceToolRegistryToolOut.js"), exports);
124
129
  __exportStar(require("./WrapStrategy.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.1937";
1
+ export declare const SDK_VERSION = "4.3.1938";
@@ -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.1937";
4
+ exports.SDK_VERSION = "4.3.1938";
@@ -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.1937",
10
- "User-Agent": "@athenaintel/sdk/4.3.1937",
9
+ "X-Fern-SDK-Version": "4.3.1938",
10
+ "User-Agent": "@athenaintel/sdk/4.3.1938",
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);
@@ -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.
@@ -45,4 +45,44 @@ export declare class WorkspacesClient {
45
45
  */
46
46
  updateConfiguration(request: AthenaIntelligence.UpdateWorkspaceConfigurationRequestIn, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.WorkspaceConfigurationResponseOut>;
47
47
  private __updateConfiguration;
48
+ /**
49
+ * 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.
50
+ *
51
+ * @param {AthenaIntelligence.GetToolRegistryWorkspacesRequest} request
52
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link AthenaIntelligence.BadRequestError}
55
+ * @throws {@link AthenaIntelligence.ForbiddenError}
56
+ * @throws {@link AthenaIntelligence.NotFoundError}
57
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
58
+ *
59
+ * @example
60
+ * await client.workspaces.getToolRegistry({
61
+ * workspace_id: "workspace_id"
62
+ * })
63
+ */
64
+ getToolRegistry(request: AthenaIntelligence.GetToolRegistryWorkspacesRequest, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.WorkspaceToolRegistryResponseOut>;
65
+ private __getToolRegistry;
66
+ /**
67
+ * 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.
68
+ *
69
+ * @param {AthenaIntelligence.UpdateWorkspaceToolRegistryRequestIn} request
70
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link AthenaIntelligence.BadRequestError}
73
+ * @throws {@link AthenaIntelligence.ForbiddenError}
74
+ * @throws {@link AthenaIntelligence.NotFoundError}
75
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.workspaces.updateToolRegistry({
79
+ * workspace_id: "workspace_id",
80
+ * tool: {
81
+ * enabled: false,
82
+ * tool_id: "search"
83
+ * }
84
+ * })
85
+ */
86
+ updateToolRegistry(request: AthenaIntelligence.UpdateWorkspaceToolRegistryRequestIn, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.WorkspaceToolRegistryResponseOut>;
87
+ private __updateToolRegistry;
48
88
  }