@athenaintel/sdk 4.3.2159 → 4.3.2160

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 (135) hide show
  1. package/README.md +17 -16
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +2 -2
  4. package/dist/cjs/Client.js +4 -4
  5. package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -41
  6. package/dist/cjs/api/resources/agents/client/Client.js +2 -163
  7. package/dist/cjs/api/resources/agents/client/index.d.ts +1 -1
  8. package/dist/cjs/api/resources/agents/client/index.js +0 -15
  9. package/dist/cjs/api/resources/agents/resources/general/client/Client.d.ts +2 -44
  10. package/dist/cjs/api/resources/agents/resources/general/client/Client.js +1 -163
  11. package/dist/cjs/api/resources/agents/resources/general/client/index.d.ts +1 -1
  12. package/dist/cjs/api/resources/agents/resources/general/client/index.js +15 -0
  13. package/dist/cjs/api/{types → resources/agents/resources/general/client/requests}/GeneralAgentRequest.d.ts +11 -2
  14. package/dist/cjs/api/resources/agents/resources/general/client/requests/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/agents/resources/index.d.ts +1 -6
  16. package/dist/cjs/api/resources/agents/resources/index.js +2 -7
  17. package/dist/cjs/api/resources/index.d.ts +0 -1
  18. package/dist/cjs/api/resources/index.js +3 -4
  19. package/dist/cjs/api/resources/tools/client/Client.d.ts +11 -0
  20. package/dist/cjs/api/resources/tools/client/Client.js +11 -0
  21. package/dist/cjs/api/types/index.d.ts +0 -5
  22. package/dist/cjs/api/types/index.js +0 -5
  23. package/dist/cjs/version.d.ts +1 -1
  24. package/dist/cjs/version.js +1 -1
  25. package/dist/esm/BaseClient.mjs +2 -2
  26. package/dist/esm/Client.d.mts +2 -2
  27. package/dist/esm/Client.mjs +4 -4
  28. package/dist/esm/api/resources/agents/client/Client.d.mts +1 -41
  29. package/dist/esm/api/resources/agents/client/Client.mjs +0 -128
  30. package/dist/esm/api/resources/agents/client/index.d.mts +1 -1
  31. package/dist/esm/api/resources/agents/client/index.mjs +1 -1
  32. package/dist/esm/api/resources/agents/resources/general/client/Client.d.mts +2 -44
  33. package/dist/esm/api/resources/agents/resources/general/client/Client.mjs +1 -163
  34. package/dist/esm/api/resources/agents/resources/general/client/index.d.mts +1 -1
  35. package/dist/esm/api/resources/agents/resources/general/client/index.mjs +1 -1
  36. package/dist/esm/api/{types → resources/agents/resources/general/client/requests}/GeneralAgentRequest.d.mts +11 -2
  37. package/dist/esm/api/resources/agents/resources/general/client/requests/index.d.mts +1 -0
  38. package/dist/esm/api/resources/agents/resources/index.d.mts +1 -6
  39. package/dist/esm/api/resources/agents/resources/index.mjs +1 -6
  40. package/dist/esm/api/resources/index.d.mts +0 -1
  41. package/dist/esm/api/resources/index.mjs +0 -1
  42. package/dist/esm/api/resources/tools/client/Client.d.mts +11 -0
  43. package/dist/esm/api/resources/tools/client/Client.mjs +11 -0
  44. package/dist/esm/api/types/index.d.mts +0 -5
  45. package/dist/esm/api/types/index.mjs +0 -5
  46. package/dist/esm/version.d.mts +1 -1
  47. package/dist/esm/version.mjs +1 -1
  48. package/package.json +1 -1
  49. package/reference.md +24 -434
  50. package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.d.ts +0 -20
  51. package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.js +0 -3
  52. package/dist/cjs/api/resources/agents/client/requests/index.d.ts +0 -1
  53. package/dist/cjs/api/resources/agents/resources/drive/client/Client.d.ts +0 -34
  54. package/dist/cjs/api/resources/agents/resources/drive/client/Client.js +0 -138
  55. package/dist/cjs/api/resources/agents/resources/drive/client/index.d.ts +0 -1
  56. package/dist/cjs/api/resources/agents/resources/drive/client/index.js +0 -17
  57. package/dist/cjs/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.d.ts +0 -17
  58. package/dist/cjs/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.js +0 -3
  59. package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.d.ts +0 -1
  60. package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.js +0 -2
  61. package/dist/cjs/api/resources/agents/resources/drive/index.d.ts +0 -1
  62. package/dist/cjs/api/resources/agents/resources/drive/index.js +0 -17
  63. package/dist/cjs/api/resources/agents/resources/research/client/Client.d.ts +0 -34
  64. package/dist/cjs/api/resources/agents/resources/research/client/Client.js +0 -138
  65. package/dist/cjs/api/resources/agents/resources/research/client/index.d.ts +0 -1
  66. package/dist/cjs/api/resources/agents/resources/research/client/index.js +0 -17
  67. package/dist/cjs/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.d.ts +0 -17
  68. package/dist/cjs/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.js +0 -3
  69. package/dist/cjs/api/resources/agents/resources/research/client/requests/index.d.ts +0 -1
  70. package/dist/cjs/api/resources/agents/resources/research/client/requests/index.js +0 -2
  71. package/dist/cjs/api/resources/agents/resources/research/index.d.ts +0 -1
  72. package/dist/cjs/api/resources/agents/resources/research/index.js +0 -17
  73. package/dist/cjs/api/resources/agents/resources/sql/client/Client.d.ts +0 -34
  74. package/dist/cjs/api/resources/agents/resources/sql/client/Client.js +0 -135
  75. package/dist/cjs/api/resources/agents/resources/sql/client/index.d.ts +0 -1
  76. package/dist/cjs/api/resources/agents/resources/sql/client/index.js +0 -17
  77. package/dist/cjs/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.d.ts +0 -17
  78. package/dist/cjs/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.js +0 -3
  79. package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.d.ts +0 -1
  80. package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.js +0 -2
  81. package/dist/cjs/api/resources/agents/resources/sql/index.d.ts +0 -1
  82. package/dist/cjs/api/resources/agents/resources/sql/index.js +0 -17
  83. package/dist/cjs/api/types/CustomAgentResponse.d.ts +0 -4
  84. package/dist/cjs/api/types/CustomAgentResponse.js +0 -3
  85. package/dist/cjs/api/types/DriveAgentResponse.d.ts +0 -4
  86. package/dist/cjs/api/types/DriveAgentResponse.js +0 -3
  87. package/dist/cjs/api/types/ResearchAgentResponse.d.ts +0 -4
  88. package/dist/cjs/api/types/ResearchAgentResponse.js +0 -3
  89. package/dist/cjs/api/types/SqlAgentResponse.d.ts +0 -6
  90. package/dist/cjs/api/types/SqlAgentResponse.js +0 -3
  91. package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.d.mts +0 -20
  92. package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.mjs +0 -2
  93. package/dist/esm/api/resources/agents/client/requests/index.d.mts +0 -1
  94. package/dist/esm/api/resources/agents/resources/drive/client/Client.d.mts +0 -34
  95. package/dist/esm/api/resources/agents/resources/drive/client/Client.mjs +0 -101
  96. package/dist/esm/api/resources/agents/resources/drive/client/index.d.mts +0 -1
  97. package/dist/esm/api/resources/agents/resources/drive/client/index.mjs +0 -1
  98. package/dist/esm/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.d.mts +0 -17
  99. package/dist/esm/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.mjs +0 -2
  100. package/dist/esm/api/resources/agents/resources/drive/client/requests/index.d.mts +0 -1
  101. package/dist/esm/api/resources/agents/resources/drive/client/requests/index.mjs +0 -1
  102. package/dist/esm/api/resources/agents/resources/drive/index.d.mts +0 -1
  103. package/dist/esm/api/resources/agents/resources/drive/index.mjs +0 -1
  104. package/dist/esm/api/resources/agents/resources/research/client/Client.d.mts +0 -34
  105. package/dist/esm/api/resources/agents/resources/research/client/Client.mjs +0 -101
  106. package/dist/esm/api/resources/agents/resources/research/client/index.d.mts +0 -1
  107. package/dist/esm/api/resources/agents/resources/research/client/index.mjs +0 -1
  108. package/dist/esm/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.d.mts +0 -17
  109. package/dist/esm/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.mjs +0 -2
  110. package/dist/esm/api/resources/agents/resources/research/client/requests/index.d.mts +0 -1
  111. package/dist/esm/api/resources/agents/resources/research/client/requests/index.mjs +0 -1
  112. package/dist/esm/api/resources/agents/resources/research/index.d.mts +0 -1
  113. package/dist/esm/api/resources/agents/resources/research/index.mjs +0 -1
  114. package/dist/esm/api/resources/agents/resources/sql/client/Client.d.mts +0 -34
  115. package/dist/esm/api/resources/agents/resources/sql/client/Client.mjs +0 -98
  116. package/dist/esm/api/resources/agents/resources/sql/client/index.d.mts +0 -1
  117. package/dist/esm/api/resources/agents/resources/sql/client/index.mjs +0 -1
  118. package/dist/esm/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.d.mts +0 -17
  119. package/dist/esm/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.mjs +0 -2
  120. package/dist/esm/api/resources/agents/resources/sql/client/requests/index.d.mts +0 -1
  121. package/dist/esm/api/resources/agents/resources/sql/client/requests/index.mjs +0 -1
  122. package/dist/esm/api/resources/agents/resources/sql/index.d.mts +0 -1
  123. package/dist/esm/api/resources/agents/resources/sql/index.mjs +0 -1
  124. package/dist/esm/api/types/CustomAgentResponse.d.mts +0 -4
  125. package/dist/esm/api/types/CustomAgentResponse.mjs +0 -2
  126. package/dist/esm/api/types/DriveAgentResponse.d.mts +0 -4
  127. package/dist/esm/api/types/DriveAgentResponse.mjs +0 -2
  128. package/dist/esm/api/types/ResearchAgentResponse.d.mts +0 -4
  129. package/dist/esm/api/types/ResearchAgentResponse.mjs +0 -2
  130. package/dist/esm/api/types/SqlAgentResponse.d.mts +0 -6
  131. package/dist/esm/api/types/SqlAgentResponse.mjs +0 -2
  132. /package/dist/cjs/api/{types → resources/agents/resources/general/client/requests}/GeneralAgentRequest.js +0 -0
  133. /package/dist/cjs/api/resources/agents/{client → resources/general/client}/requests/index.js +0 -0
  134. /package/dist/esm/api/{types → resources/agents/resources/general/client/requests}/GeneralAgentRequest.mjs +0 -0
  135. /package/dist/esm/api/resources/agents/{client → resources/general/client}/requests/index.mjs +0 -0
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -1,6 +1,15 @@
1
- import type * as AthenaIntelligence from "../index.js";
1
+ import type * as AthenaIntelligence from "../../../../../../index.js";
2
2
  /**
3
- * A chat request for the Athena SDK.
3
+ * @example
4
+ * {
5
+ * config: {
6
+ * enabled_tools: ["search"]
7
+ * },
8
+ * messages: [{
9
+ * content: "Please call the search tool for AAPL news.",
10
+ * role: "user"
11
+ * }]
12
+ * }
4
13
  */
5
14
  export interface GeneralAgentRequest {
6
15
  /** The channel through which the request is being made. */
@@ -0,0 +1 @@
1
+ export type { GeneralAgentRequest } from "./GeneralAgentRequest.js";
@@ -1,7 +1,2 @@
1
- export * from "./drive/client/requests/index.js";
2
- export * as drive from "./drive/index.js";
1
+ export * from "./general/client/requests/index.js";
3
2
  export * as general from "./general/index.js";
4
- export * from "./research/client/requests/index.js";
5
- export * as research from "./research/index.js";
6
- export * from "./sql/client/requests/index.js";
7
- export * as sql from "./sql/index.js";
@@ -36,11 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.sql = exports.research = exports.general = exports.drive = void 0;
40
- __exportStar(require("./drive/client/requests/index.js"), exports);
41
- exports.drive = __importStar(require("./drive/index.js"));
39
+ exports.general = void 0;
40
+ __exportStar(require("./general/client/requests/index.js"), exports);
42
41
  exports.general = __importStar(require("./general/index.js"));
43
- __exportStar(require("./research/client/requests/index.js"), exports);
44
- exports.research = __importStar(require("./research/index.js"));
45
- __exportStar(require("./sql/client/requests/index.js"), exports);
46
- exports.sql = __importStar(require("./sql/index.js"));
@@ -1,4 +1,3 @@
1
- export * from "./agents/client/requests/index.js";
2
1
  export * as agents from "./agents/index.js";
3
2
  export * from "./aop/client/requests/index.js";
4
3
  export * as aop from "./aop/index.js";
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
18
  var __importStar = (this && this.__importStar) || (function () {
22
19
  var ownKeys = function(o) {
23
20
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -35,9 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
35
32
  return result;
36
33
  };
37
34
  })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.workspaces = exports.users = exports.tools = exports.threads = exports.sessions = exports.semanticModel = exports.query = exports.meetings = exports.databases = exports.computer = exports.collabAgents = exports.assets = exports.aop = exports.agents = void 0;
40
- __exportStar(require("./agents/client/requests/index.js"), exports);
41
40
  exports.agents = __importStar(require("./agents/index.js"));
42
41
  __exportStar(require("./aop/client/requests/index.js"), exports);
43
42
  exports.aop = __importStar(require("./aop/index.js"));
@@ -121,6 +121,17 @@ export declare class ToolsClient {
121
121
  listContents(request?: AthenaIntelligence.ListContentsToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.FolderResponse>;
122
122
  private __listContents;
123
123
  /**
124
+ * Read a tabular asset as a JSON data frame.
125
+ *
126
+ * Returns `columns`, an optional `index`, and `data` rows (pandas "split"
127
+ * orientation) for an asset the caller can read: an Athena spreadsheet, a
128
+ * file-backed live spreadsheet (SharePoint, OneDrive, Drive, iManage), or an
129
+ * uploaded CSV, Excel or Parquet file. `row_limit` caps the rows returned,
130
+ * `columns` selects columns by name or position, `sheet_name` picks the sheet
131
+ * of an Excel file (the first by default), and `separator` sets the delimiter
132
+ * of a CSV file. Any other asset type is a 415; a file the parser cannot read
133
+ * is a 500 carrying the parser's message.
134
+ *
124
135
  * @param {AthenaIntelligence.DataFrameToolsRequest} request
125
136
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
126
137
  *
@@ -557,6 +557,17 @@ class ToolsClient {
557
557
  });
558
558
  }
559
559
  /**
560
+ * Read a tabular asset as a JSON data frame.
561
+ *
562
+ * Returns `columns`, an optional `index`, and `data` rows (pandas "split"
563
+ * orientation) for an asset the caller can read: an Athena spreadsheet, a
564
+ * file-backed live spreadsheet (SharePoint, OneDrive, Drive, iManage), or an
565
+ * uploaded CSV, Excel or Parquet file. `row_limit` caps the rows returned,
566
+ * `columns` selects columns by name or position, `sheet_name` picks the sheet
567
+ * of an Excel file (the first by default), and `separator` sets the delimiter
568
+ * of a CSV file. Any other asset type is a 415; a file the parser cannot read
569
+ * is a 500 carrying the parser's message.
570
+ *
560
571
  * @param {AthenaIntelligence.DataFrameToolsRequest} request
561
572
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
562
573
  *
@@ -41,7 +41,6 @@ export * from "./CreatableAssetType.js";
41
41
  export * from "./CreateAssetResponseOut.js";
42
42
  export * from "./CreateNewSheetTabResponse.js";
43
43
  export * from "./CreateProjectResponseOut.js";
44
- export * from "./CustomAgentResponse.js";
45
44
  export * from "./DatabaseColumnInfo.js";
46
45
  export * from "./DatabaseDataResponse.js";
47
46
  export * from "./DatabaseMutationResponse.js";
@@ -57,7 +56,6 @@ export * from "./DeleteDataRequest.js";
57
56
  export * from "./DeleteSshKeyResponseOut.js";
58
57
  export * from "./DeployComputerResponseOut.js";
59
58
  export * from "./DimensionProperties.js";
60
- export * from "./DriveAgentResponse.js";
61
59
  export * from "./DuplicateAssetResponseOut.js";
62
60
  export * from "./EmailDraftResponseOut.js";
63
61
  export * from "./EmailSearchResponseOut.js";
@@ -65,7 +63,6 @@ export * from "./EmailSearchResultOut.js";
65
63
  export * from "./FileTooLargeError.js";
66
64
  export * from "./FolderResponse.js";
67
65
  export * from "./GeneralAgentConfig.js";
68
- export * from "./GeneralAgentRequest.js";
69
66
  export * from "./GeneralAgentResponse.js";
70
67
  export * from "./GeneralAgentResponseMessage.js";
71
68
  export * from "./GeneralAgentResponseMessageKwargs.js";
@@ -90,7 +87,6 @@ export * from "./PublicAssetOut.js";
90
87
  export * from "./ReadCapabilitiesOut.js";
91
88
  export * from "./RedactedThinkingContent.js";
92
89
  export * from "./RenameAssetResponseOut.js";
93
- export * from "./ResearchAgentResponse.js";
94
90
  export * from "./RevokeSshAccessResponseOut.js";
95
91
  export * from "./RunTaskResponse.js";
96
92
  export * from "./SaveAssetRequestOut.js";
@@ -104,7 +100,6 @@ export * from "./ShareRecipient.js";
104
100
  export * from "./ShareRecipientResultOut.js";
105
101
  export * from "./Sheet.js";
106
102
  export * from "./SheetOperationResponse.js";
107
- export * from "./SqlAgentResponse.js";
108
103
  export * from "./SshAccessInfoOut.js";
109
104
  export * from "./SshAccessResponseOut.js";
110
105
  export * from "./SshKeyListResponseOut.js";
@@ -57,7 +57,6 @@ __exportStar(require("./CreatableAssetType.js"), exports);
57
57
  __exportStar(require("./CreateAssetResponseOut.js"), exports);
58
58
  __exportStar(require("./CreateNewSheetTabResponse.js"), exports);
59
59
  __exportStar(require("./CreateProjectResponseOut.js"), exports);
60
- __exportStar(require("./CustomAgentResponse.js"), exports);
61
60
  __exportStar(require("./DatabaseColumnInfo.js"), exports);
62
61
  __exportStar(require("./DatabaseDataResponse.js"), exports);
63
62
  __exportStar(require("./DatabaseMutationResponse.js"), exports);
@@ -73,7 +72,6 @@ __exportStar(require("./DeleteDataRequest.js"), exports);
73
72
  __exportStar(require("./DeleteSshKeyResponseOut.js"), exports);
74
73
  __exportStar(require("./DeployComputerResponseOut.js"), exports);
75
74
  __exportStar(require("./DimensionProperties.js"), exports);
76
- __exportStar(require("./DriveAgentResponse.js"), exports);
77
75
  __exportStar(require("./DuplicateAssetResponseOut.js"), exports);
78
76
  __exportStar(require("./EmailDraftResponseOut.js"), exports);
79
77
  __exportStar(require("./EmailSearchResponseOut.js"), exports);
@@ -81,7 +79,6 @@ __exportStar(require("./EmailSearchResultOut.js"), exports);
81
79
  __exportStar(require("./FileTooLargeError.js"), exports);
82
80
  __exportStar(require("./FolderResponse.js"), exports);
83
81
  __exportStar(require("./GeneralAgentConfig.js"), exports);
84
- __exportStar(require("./GeneralAgentRequest.js"), exports);
85
82
  __exportStar(require("./GeneralAgentResponse.js"), exports);
86
83
  __exportStar(require("./GeneralAgentResponseMessage.js"), exports);
87
84
  __exportStar(require("./GeneralAgentResponseMessageKwargs.js"), exports);
@@ -106,7 +103,6 @@ __exportStar(require("./PublicAssetOut.js"), exports);
106
103
  __exportStar(require("./ReadCapabilitiesOut.js"), exports);
107
104
  __exportStar(require("./RedactedThinkingContent.js"), exports);
108
105
  __exportStar(require("./RenameAssetResponseOut.js"), exports);
109
- __exportStar(require("./ResearchAgentResponse.js"), exports);
110
106
  __exportStar(require("./RevokeSshAccessResponseOut.js"), exports);
111
107
  __exportStar(require("./RunTaskResponse.js"), exports);
112
108
  __exportStar(require("./SaveAssetRequestOut.js"), exports);
@@ -120,7 +116,6 @@ __exportStar(require("./ShareRecipient.js"), exports);
120
116
  __exportStar(require("./ShareRecipientResultOut.js"), exports);
121
117
  __exportStar(require("./Sheet.js"), exports);
122
118
  __exportStar(require("./SheetOperationResponse.js"), exports);
123
- __exportStar(require("./SqlAgentResponse.js"), exports);
124
119
  __exportStar(require("./SshAccessInfoOut.js"), exports);
125
120
  __exportStar(require("./SshAccessResponseOut.js"), exports);
126
121
  __exportStar(require("./SshKeyListResponseOut.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2159";
1
+ export declare const SDK_VERSION = "4.3.2160";
@@ -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.2159";
4
+ exports.SDK_VERSION = "4.3.2160";
@@ -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.2159",
10
- "User-Agent": "@athenaintel/sdk/4.3.2159",
9
+ "X-Fern-SDK-Version": "4.3.2160",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2160",
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);
@@ -22,7 +22,6 @@ export declare namespace AthenaIntelligenceClient {
22
22
  }
23
23
  export declare class AthenaIntelligenceClient {
24
24
  protected readonly _options: NormalizedClientOptionsWithAuth<AthenaIntelligenceClient.Options>;
25
- protected _agents: AgentsClient | undefined;
26
25
  protected _aop: AopClient | undefined;
27
26
  protected _assets: AssetsClient | undefined;
28
27
  protected _collabAgents: CollabAgentsClient | undefined;
@@ -36,8 +35,8 @@ export declare class AthenaIntelligenceClient {
36
35
  protected _threads: ThreadsClient | undefined;
37
36
  protected _tools: ToolsClient | undefined;
38
37
  protected _workspaces: WorkspacesClient | undefined;
38
+ protected _agents: AgentsClient | undefined;
39
39
  constructor(options?: AthenaIntelligenceClient.Options);
40
- get agents(): AgentsClient;
41
40
  get aop(): AopClient;
42
41
  get assets(): AssetsClient;
43
42
  get collabAgents(): CollabAgentsClient;
@@ -51,4 +50,5 @@ export declare class AthenaIntelligenceClient {
51
50
  get threads(): ThreadsClient;
52
51
  get tools(): ToolsClient;
53
52
  get workspaces(): WorkspacesClient;
53
+ get agents(): AgentsClient;
54
54
  }
@@ -18,10 +18,6 @@ export class AthenaIntelligenceClient {
18
18
  constructor(options = {}) {
19
19
  this._options = normalizeClientOptionsWithAuth(options);
20
20
  }
21
- get agents() {
22
- var _a;
23
- return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new AgentsClient(this._options)));
24
- }
25
21
  get aop() {
26
22
  var _a;
27
23
  return ((_a = this._aop) !== null && _a !== void 0 ? _a : (this._aop = new AopClient(this._options)));
@@ -74,4 +70,8 @@ export class AthenaIntelligenceClient {
74
70
  var _a;
75
71
  return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new WorkspacesClient(this._options)));
76
72
  }
73
+ get agents() {
74
+ var _a;
75
+ return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new AgentsClient(this._options)));
76
+ }
77
77
  }
@@ -1,53 +1,13 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
1
+ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
- import * as AthenaIntelligence from "../../../index.mjs";
5
- import { DriveClient } from "../resources/drive/client/Client.mjs";
6
3
  import { GeneralClient } from "../resources/general/client/Client.mjs";
7
- import { ResearchClient } from "../resources/research/client/Client.mjs";
8
- import { SqlClient } from "../resources/sql/client/Client.mjs";
9
4
  export declare namespace AgentsClient {
10
5
  interface Options extends BaseClientOptions {
11
6
  }
12
- interface RequestOptions extends BaseRequestOptions {
13
- }
14
7
  }
15
8
  export declare class AgentsClient {
16
9
  protected readonly _options: NormalizedClientOptionsWithAuth<AgentsClient.Options>;
17
- protected _drive: DriveClient | undefined;
18
10
  protected _general: GeneralClient | undefined;
19
- protected _research: ResearchClient | undefined;
20
- protected _sql: SqlClient | undefined;
21
11
  constructor(options?: AgentsClient.Options);
22
- get drive(): DriveClient;
23
12
  get general(): GeneralClient;
24
- get research(): ResearchClient;
25
- get sql(): SqlClient;
26
- /**
27
- * Coming soon!
28
- *
29
- * Invoke a custom agent created in [spaces](https://resources.athenaintel.com/docs/agents/create-your-agent).
30
- *
31
- * Custom agents can be created and configured in spaces to perform specialized tasks.
32
- * Refer to the specific agent's documentation for details on configuration options
33
- * and expected responses.
34
- *
35
- * @param {AthenaIntelligence.CustomAgentRequest} request
36
- * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
37
- *
38
- * @throws {@link AthenaIntelligence.UnprocessableEntityError}
39
- *
40
- * @example
41
- * await client.agents.invokeById({
42
- * agent_id: "agent_id",
43
- * config: {
44
- * "key": "value"
45
- * },
46
- * messages: [{
47
- * "key": "value"
48
- * }]
49
- * })
50
- */
51
- invokeById(request: AthenaIntelligence.CustomAgentRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.CustomAgentResponse>;
52
- private __invokeById;
53
13
  }
@@ -1,140 +1,12 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __rest = (this && this.__rest) || function (s, e) {
12
- var t = {};
13
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
- t[p] = s[p];
15
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
- t[p[i]] = s[p[i]];
19
- }
20
- return t;
21
- };
22
2
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
- import { mergeHeaders } from "../../../../core/headers.mjs";
24
- import * as core from "../../../../core/index.mjs";
25
- import * as environments from "../../../../environments.mjs";
26
- import * as errors from "../../../../errors/index.mjs";
27
- import * as AthenaIntelligence from "../../../index.mjs";
28
- import { DriveClient } from "../resources/drive/client/Client.mjs";
29
3
  import { GeneralClient } from "../resources/general/client/Client.mjs";
30
- import { ResearchClient } from "../resources/research/client/Client.mjs";
31
- import { SqlClient } from "../resources/sql/client/Client.mjs";
32
4
  export class AgentsClient {
33
5
  constructor(options = {}) {
34
6
  this._options = normalizeClientOptionsWithAuth(options);
35
7
  }
36
- get drive() {
37
- var _a;
38
- return ((_a = this._drive) !== null && _a !== void 0 ? _a : (this._drive = new DriveClient(this._options)));
39
- }
40
8
  get general() {
41
9
  var _a;
42
10
  return ((_a = this._general) !== null && _a !== void 0 ? _a : (this._general = new GeneralClient(this._options)));
43
11
  }
44
- get research() {
45
- var _a;
46
- return ((_a = this._research) !== null && _a !== void 0 ? _a : (this._research = new ResearchClient(this._options)));
47
- }
48
- get sql() {
49
- var _a;
50
- return ((_a = this._sql) !== null && _a !== void 0 ? _a : (this._sql = new SqlClient(this._options)));
51
- }
52
- /**
53
- * Coming soon!
54
- *
55
- * Invoke a custom agent created in [spaces](https://resources.athenaintel.com/docs/agents/create-your-agent).
56
- *
57
- * Custom agents can be created and configured in spaces to perform specialized tasks.
58
- * Refer to the specific agent's documentation for details on configuration options
59
- * and expected responses.
60
- *
61
- * @param {AthenaIntelligence.CustomAgentRequest} request
62
- * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
63
- *
64
- * @throws {@link AthenaIntelligence.UnprocessableEntityError}
65
- *
66
- * @example
67
- * await client.agents.invokeById({
68
- * agent_id: "agent_id",
69
- * config: {
70
- * "key": "value"
71
- * },
72
- * messages: [{
73
- * "key": "value"
74
- * }]
75
- * })
76
- */
77
- invokeById(request, requestOptions) {
78
- return core.HttpResponsePromise.fromPromise(this.__invokeById(request, requestOptions));
79
- }
80
- __invokeById(request, requestOptions) {
81
- return __awaiter(this, void 0, void 0, function* () {
82
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
83
- const { agent_id: agentId } = request, _body = __rest(request, ["agent_id"]);
84
- const _authRequest = yield this._options.authProvider.getAuthRequest();
85
- 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);
86
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
87
- 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/agents/${core.url.encodePathParam(agentId)}/invoke`),
88
- method: "POST",
89
- headers: _headers,
90
- contentType: "application/json",
91
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
92
- requestType: "json",
93
- body: _body,
94
- 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,
95
- 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,
96
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
97
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
98
- logging: this._options.logging,
99
- });
100
- if (_response.ok) {
101
- return {
102
- data: _response.body,
103
- rawResponse: _response.rawResponse,
104
- };
105
- }
106
- if (_response.error.reason === "status-code") {
107
- switch (_response.error.statusCode) {
108
- case 422:
109
- throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
110
- default:
111
- throw new errors.AthenaIntelligenceError({
112
- statusCode: _response.error.statusCode,
113
- body: _response.error.body,
114
- rawResponse: _response.rawResponse,
115
- });
116
- }
117
- }
118
- switch (_response.error.reason) {
119
- case "non-json":
120
- throw new errors.AthenaIntelligenceError({
121
- statusCode: _response.error.statusCode,
122
- body: _response.error.rawBody,
123
- rawResponse: _response.rawResponse,
124
- });
125
- case "body-is-null":
126
- throw new errors.AthenaIntelligenceError({
127
- statusCode: _response.error.statusCode,
128
- rawResponse: _response.rawResponse,
129
- });
130
- case "timeout":
131
- throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/agents/{agent_id}/invoke.");
132
- case "unknown":
133
- throw new errors.AthenaIntelligenceError({
134
- message: _response.error.errorMessage,
135
- rawResponse: _response.rawResponse,
136
- });
137
- }
138
- });
139
- }
140
12
  }
@@ -1 +1 @@
1
- export * from "./requests/index.mjs";
1
+ export {};
@@ -1 +1 @@
1
- export * from "./requests/index.mjs";
1
+ export {};
@@ -11,34 +11,13 @@ export declare namespace GeneralClient {
11
11
  export declare class GeneralClient {
12
12
  protected readonly _options: NormalizedClientOptionsWithAuth<GeneralClient.Options>;
13
13
  constructor(options?: GeneralClient.Options);
14
- /**
15
- * Coming soon! Call the general agent with batched requests and return the results.
16
- *
17
- * @param {AthenaIntelligence.GeneralAgentRequest[]} request
18
- * @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
19
- *
20
- * @throws {@link AthenaIntelligence.UnprocessableEntityError}
21
- *
22
- * @example
23
- * await client.agents.general.batch([{
24
- * config: {
25
- * enabled_tools: ["search"]
26
- * },
27
- * messages: [{
28
- * content: "Please call the search tool for AAPL news.",
29
- * role: "user"
30
- * }]
31
- * }])
32
- */
33
- batch(request: AthenaIntelligence.GeneralAgentRequest[], requestOptions?: GeneralClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.GeneralAgentResponse[]>;
34
- private __batch;
35
14
  /**
36
15
  * Call the general Athena agent synchronously.
37
16
  *
38
17
  * Call the agent with the messages list, wait for the agent to complete,
39
18
  * and return the result.
40
19
  *
41
- * @param {AthenaIntelligence.GeneralAgentRequest} request
20
+ * @param {AthenaIntelligence.agents.GeneralAgentRequest} request
42
21
  * @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
43
22
  *
44
23
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
@@ -54,27 +33,6 @@ export declare class GeneralClient {
54
33
  * }]
55
34
  * })
56
35
  */
57
- invoke(request: AthenaIntelligence.GeneralAgentRequest, requestOptions?: GeneralClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.GeneralAgentResponse>;
36
+ invoke(request: AthenaIntelligence.agents.GeneralAgentRequest, requestOptions?: GeneralClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.GeneralAgentResponse>;
58
37
  private __invoke;
59
- /**
60
- * Coming soon! Call the general agent and stream events for real-time chat applications.
61
- *
62
- * @param {AthenaIntelligence.GeneralAgentRequest} request
63
- * @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
64
- *
65
- * @throws {@link AthenaIntelligence.UnprocessableEntityError}
66
- *
67
- * @example
68
- * await client.agents.general.streamEvents({
69
- * config: {
70
- * enabled_tools: ["search"]
71
- * },
72
- * messages: [{
73
- * content: "Please call the search tool for AAPL news.",
74
- * role: "user"
75
- * }]
76
- * })
77
- */
78
- streamEvents(request: AthenaIntelligence.GeneralAgentRequest, requestOptions?: GeneralClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.GeneralAgentResponse>;
79
- private __streamEvents;
80
38
  }