@inconvoai/node 0.3.1 → 0.5.0

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 (267) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +54 -22
  3. package/client.d.mts +0 -9
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +0 -9
  6. package/client.d.ts.map +1 -1
  7. package/client.js +0 -9
  8. package/client.js.map +1 -1
  9. package/client.mjs +0 -9
  10. package/client.mjs.map +1 -1
  11. package/index.d.mts +1 -1
  12. package/index.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/resources/agents/agents.d.mts +12 -0
  15. package/resources/agents/agents.d.mts.map +1 -1
  16. package/resources/agents/agents.d.ts +12 -0
  17. package/resources/agents/agents.d.ts.map +1 -1
  18. package/resources/agents/agents.js +12 -0
  19. package/resources/agents/agents.js.map +1 -1
  20. package/resources/agents/agents.mjs +12 -0
  21. package/resources/agents/agents.mjs.map +1 -1
  22. package/resources/{conversations → agents/conversations}/conversations.d.mts +59 -10
  23. package/resources/agents/conversations/conversations.d.mts.map +1 -0
  24. package/resources/{conversations → agents/conversations}/conversations.d.ts +59 -10
  25. package/resources/agents/conversations/conversations.d.ts.map +1 -0
  26. package/resources/agents/conversations/conversations.js +64 -0
  27. package/resources/agents/conversations/conversations.js.map +1 -0
  28. package/resources/agents/conversations/conversations.mjs +59 -0
  29. package/resources/agents/conversations/conversations.mjs.map +1 -0
  30. package/resources/{conversations → agents/conversations}/index.d.mts +1 -1
  31. package/resources/agents/conversations/index.d.mts.map +1 -0
  32. package/resources/{conversations → agents/conversations}/index.d.ts +1 -1
  33. package/resources/agents/conversations/index.d.ts.map +1 -0
  34. package/resources/agents/conversations/index.js.map +1 -0
  35. package/resources/agents/conversations/index.mjs.map +1 -0
  36. package/resources/{conversations → agents/conversations}/response/feedback.d.mts +39 -5
  37. package/resources/agents/conversations/response/feedback.d.mts.map +1 -0
  38. package/resources/{conversations → agents/conversations}/response/feedback.d.ts +39 -5
  39. package/resources/agents/conversations/response/feedback.d.ts.map +1 -0
  40. package/resources/agents/conversations/response/feedback.js +50 -0
  41. package/resources/agents/conversations/response/feedback.js.map +1 -0
  42. package/resources/agents/conversations/response/feedback.mjs +46 -0
  43. package/resources/agents/conversations/response/feedback.mjs.map +1 -0
  44. package/resources/agents/conversations/response/index.d.mts.map +1 -0
  45. package/resources/agents/conversations/response/index.d.ts.map +1 -0
  46. package/resources/agents/conversations/response/index.js.map +1 -0
  47. package/resources/agents/conversations/response/index.mjs.map +1 -0
  48. package/resources/{conversations → agents/conversations}/response/response.d.mts +41 -9
  49. package/resources/agents/conversations/response/response.d.mts.map +1 -0
  50. package/resources/{conversations → agents/conversations}/response/response.d.ts +41 -9
  51. package/resources/agents/conversations/response/response.d.ts.map +1 -0
  52. package/resources/{conversations → agents/conversations}/response/response.js +24 -11
  53. package/resources/agents/conversations/response/response.js.map +1 -0
  54. package/resources/{conversations → agents/conversations}/response/response.mjs +23 -10
  55. package/resources/agents/conversations/response/response.mjs.map +1 -0
  56. package/resources/agents/conversations/response.d.mts.map +1 -0
  57. package/resources/agents/conversations/response.d.ts.map +1 -0
  58. package/resources/{conversations → agents/conversations}/response.js +1 -1
  59. package/resources/agents/conversations/response.js.map +1 -0
  60. package/resources/agents/conversations/response.mjs.map +1 -0
  61. package/resources/agents/conversations.d.mts.map +1 -0
  62. package/resources/agents/conversations.d.ts.map +1 -0
  63. package/resources/{conversations.js → agents/conversations.js} +1 -1
  64. package/resources/agents/conversations.js.map +1 -0
  65. package/resources/agents/conversations.mjs.map +1 -0
  66. package/resources/agents/data-summary.d.mts +7 -1
  67. package/resources/agents/data-summary.d.mts.map +1 -1
  68. package/resources/agents/data-summary.d.ts +7 -1
  69. package/resources/agents/data-summary.d.ts.map +1 -1
  70. package/resources/agents/data-summary.js +9 -2
  71. package/resources/agents/data-summary.js.map +1 -1
  72. package/resources/agents/data-summary.mjs +9 -2
  73. package/resources/agents/data-summary.mjs.map +1 -1
  74. package/resources/agents/datasets/context.d.mts +115 -0
  75. package/resources/agents/datasets/context.d.mts.map +1 -0
  76. package/resources/agents/datasets/context.d.ts +115 -0
  77. package/resources/agents/datasets/context.d.ts.map +1 -0
  78. package/resources/agents/datasets/context.js +64 -0
  79. package/resources/agents/datasets/context.js.map +1 -0
  80. package/resources/agents/datasets/context.mjs +60 -0
  81. package/resources/agents/datasets/context.mjs.map +1 -0
  82. package/resources/agents/datasets/datasets.d.mts +14 -0
  83. package/resources/agents/datasets/datasets.d.mts.map +1 -0
  84. package/resources/agents/datasets/datasets.d.ts +14 -0
  85. package/resources/agents/datasets/datasets.d.ts.map +1 -0
  86. package/resources/agents/datasets/datasets.js +21 -0
  87. package/resources/agents/datasets/datasets.js.map +1 -0
  88. package/resources/agents/datasets/datasets.mjs +16 -0
  89. package/resources/agents/datasets/datasets.mjs.map +1 -0
  90. package/resources/agents/datasets/index.d.mts +4 -0
  91. package/resources/agents/datasets/index.d.mts.map +1 -0
  92. package/resources/agents/datasets/index.d.ts +4 -0
  93. package/resources/agents/datasets/index.d.ts.map +1 -0
  94. package/resources/agents/datasets/index.js +11 -0
  95. package/resources/agents/datasets/index.js.map +1 -0
  96. package/resources/agents/datasets/index.mjs +5 -0
  97. package/resources/agents/datasets/index.mjs.map +1 -0
  98. package/resources/agents/datasets/user.d.mts +98 -0
  99. package/resources/agents/datasets/user.d.mts.map +1 -0
  100. package/resources/agents/datasets/user.d.ts +98 -0
  101. package/resources/agents/datasets/user.d.ts.map +1 -0
  102. package/resources/agents/datasets/user.js +59 -0
  103. package/resources/agents/datasets/user.js.map +1 -0
  104. package/resources/agents/datasets/user.mjs +55 -0
  105. package/resources/agents/datasets/user.mjs.map +1 -0
  106. package/resources/agents/datasets.d.mts +2 -0
  107. package/resources/agents/datasets.d.mts.map +1 -0
  108. package/resources/agents/datasets.d.ts +2 -0
  109. package/resources/agents/datasets.d.ts.map +1 -0
  110. package/resources/agents/datasets.js +6 -0
  111. package/resources/agents/datasets.js.map +1 -0
  112. package/resources/agents/datasets.mjs +3 -0
  113. package/resources/agents/datasets.mjs.map +1 -0
  114. package/resources/agents/index.d.mts +3 -0
  115. package/resources/agents/index.d.mts.map +1 -1
  116. package/resources/agents/index.d.ts +3 -0
  117. package/resources/agents/index.d.ts.map +1 -1
  118. package/resources/agents/index.js +7 -1
  119. package/resources/agents/index.js.map +1 -1
  120. package/resources/agents/index.mjs +3 -0
  121. package/resources/agents/index.mjs.map +1 -1
  122. package/resources/agents/mcp-servers/index.d.mts +3 -0
  123. package/resources/agents/mcp-servers/index.d.mts.map +1 -0
  124. package/resources/agents/mcp-servers/index.d.ts +3 -0
  125. package/resources/agents/mcp-servers/index.d.ts.map +1 -0
  126. package/resources/agents/mcp-servers/index.js.map +1 -0
  127. package/resources/agents/mcp-servers/index.mjs.map +1 -0
  128. package/resources/agents/mcp-servers/mcp-servers.d.mts +10 -0
  129. package/resources/agents/mcp-servers/mcp-servers.d.mts.map +1 -0
  130. package/resources/agents/mcp-servers/mcp-servers.d.ts +10 -0
  131. package/resources/agents/mcp-servers/mcp-servers.d.ts.map +1 -0
  132. package/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.js +2 -2
  133. package/resources/agents/mcp-servers/mcp-servers.js.map +1 -0
  134. package/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.mjs +2 -2
  135. package/resources/agents/mcp-servers/mcp-servers.mjs.map +1 -0
  136. package/resources/agents/mcp-servers/tenants.d.mts +79 -0
  137. package/resources/agents/mcp-servers/tenants.d.mts.map +1 -0
  138. package/resources/agents/mcp-servers/tenants.d.ts +79 -0
  139. package/resources/agents/mcp-servers/tenants.d.ts.map +1 -0
  140. package/resources/agents/mcp-servers/tenants.js +50 -0
  141. package/resources/agents/mcp-servers/tenants.js.map +1 -0
  142. package/resources/agents/mcp-servers/tenants.mjs +46 -0
  143. package/resources/agents/mcp-servers/tenants.mjs.map +1 -0
  144. package/resources/agents/mcp-servers.d.mts.map +1 -0
  145. package/resources/agents/mcp-servers.d.ts.map +1 -0
  146. package/resources/{mcp-servers.js → agents/mcp-servers.js} +1 -1
  147. package/resources/agents/mcp-servers.js.map +1 -0
  148. package/resources/agents/mcp-servers.mjs.map +1 -0
  149. package/resources/index.d.mts +0 -3
  150. package/resources/index.d.mts.map +1 -1
  151. package/resources/index.d.ts +0 -3
  152. package/resources/index.d.ts.map +1 -1
  153. package/resources/index.js +1 -7
  154. package/resources/index.js.map +1 -1
  155. package/resources/index.mjs +0 -3
  156. package/resources/index.mjs.map +1 -1
  157. package/src/client.ts +0 -47
  158. package/src/index.ts +1 -1
  159. package/src/resources/agents/agents.ts +36 -0
  160. package/src/resources/{conversations → agents/conversations}/conversations.ts +81 -15
  161. package/src/resources/{conversations → agents/conversations}/index.ts +1 -0
  162. package/src/resources/agents/conversations/response/feedback.ts +121 -0
  163. package/src/resources/{conversations → agents/conversations}/response/response.ts +56 -17
  164. package/src/resources/agents/data-summary.ts +9 -2
  165. package/src/resources/agents/datasets/context.ts +174 -0
  166. package/src/resources/agents/datasets/datasets.ts +53 -0
  167. package/src/resources/agents/datasets/index.ts +21 -0
  168. package/src/resources/agents/datasets/user.ts +151 -0
  169. package/src/resources/agents/datasets.ts +3 -0
  170. package/src/resources/agents/index.ts +12 -0
  171. package/src/resources/{mcp-servers → agents/mcp-servers}/index.ts +1 -0
  172. package/src/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.ts +9 -2
  173. package/src/resources/agents/mcp-servers/tenants.ts +108 -0
  174. package/src/resources/index.ts +0 -19
  175. package/src/version.ts +1 -1
  176. package/version.d.mts +1 -1
  177. package/version.d.ts +1 -1
  178. package/version.js +1 -1
  179. package/version.mjs +1 -1
  180. package/resources/conversations/conversations.d.mts.map +0 -1
  181. package/resources/conversations/conversations.d.ts.map +0 -1
  182. package/resources/conversations/conversations.js +0 -40
  183. package/resources/conversations/conversations.js.map +0 -1
  184. package/resources/conversations/conversations.mjs +0 -35
  185. package/resources/conversations/conversations.mjs.map +0 -1
  186. package/resources/conversations/index.d.mts.map +0 -1
  187. package/resources/conversations/index.d.ts.map +0 -1
  188. package/resources/conversations/index.js.map +0 -1
  189. package/resources/conversations/index.mjs.map +0 -1
  190. package/resources/conversations/response/feedback.d.mts.map +0 -1
  191. package/resources/conversations/response/feedback.d.ts.map +0 -1
  192. package/resources/conversations/response/feedback.js +0 -30
  193. package/resources/conversations/response/feedback.js.map +0 -1
  194. package/resources/conversations/response/feedback.mjs +0 -26
  195. package/resources/conversations/response/feedback.mjs.map +0 -1
  196. package/resources/conversations/response/index.d.mts.map +0 -1
  197. package/resources/conversations/response/index.d.ts.map +0 -1
  198. package/resources/conversations/response/index.js.map +0 -1
  199. package/resources/conversations/response/index.mjs.map +0 -1
  200. package/resources/conversations/response/response.d.mts.map +0 -1
  201. package/resources/conversations/response/response.d.ts.map +0 -1
  202. package/resources/conversations/response/response.js.map +0 -1
  203. package/resources/conversations/response/response.mjs.map +0 -1
  204. package/resources/conversations/response.d.mts.map +0 -1
  205. package/resources/conversations/response.d.ts.map +0 -1
  206. package/resources/conversations/response.js.map +0 -1
  207. package/resources/conversations/response.mjs.map +0 -1
  208. package/resources/conversations.d.mts.map +0 -1
  209. package/resources/conversations.d.ts.map +0 -1
  210. package/resources/conversations.js.map +0 -1
  211. package/resources/conversations.mjs.map +0 -1
  212. package/resources/datasets.d.mts +0 -67
  213. package/resources/datasets.d.mts.map +0 -1
  214. package/resources/datasets.d.ts +0 -67
  215. package/resources/datasets.d.ts.map +0 -1
  216. package/resources/datasets.js +0 -30
  217. package/resources/datasets.js.map +0 -1
  218. package/resources/datasets.mjs +0 -26
  219. package/resources/datasets.mjs.map +0 -1
  220. package/resources/mcp-servers/index.d.mts +0 -3
  221. package/resources/mcp-servers/index.d.mts.map +0 -1
  222. package/resources/mcp-servers/index.d.ts +0 -3
  223. package/resources/mcp-servers/index.d.ts.map +0 -1
  224. package/resources/mcp-servers/index.js.map +0 -1
  225. package/resources/mcp-servers/index.mjs.map +0 -1
  226. package/resources/mcp-servers/mcp-servers.d.mts +0 -10
  227. package/resources/mcp-servers/mcp-servers.d.mts.map +0 -1
  228. package/resources/mcp-servers/mcp-servers.d.ts +0 -10
  229. package/resources/mcp-servers/mcp-servers.d.ts.map +0 -1
  230. package/resources/mcp-servers/mcp-servers.js.map +0 -1
  231. package/resources/mcp-servers/mcp-servers.mjs.map +0 -1
  232. package/resources/mcp-servers/tenants.d.mts +0 -63
  233. package/resources/mcp-servers/tenants.d.mts.map +0 -1
  234. package/resources/mcp-servers/tenants.d.ts +0 -63
  235. package/resources/mcp-servers/tenants.d.ts.map +0 -1
  236. package/resources/mcp-servers/tenants.js +0 -47
  237. package/resources/mcp-servers/tenants.js.map +0 -1
  238. package/resources/mcp-servers/tenants.mjs +0 -43
  239. package/resources/mcp-servers/tenants.mjs.map +0 -1
  240. package/resources/mcp-servers.d.mts.map +0 -1
  241. package/resources/mcp-servers.d.ts.map +0 -1
  242. package/resources/mcp-servers.js.map +0 -1
  243. package/resources/mcp-servers.mjs.map +0 -1
  244. package/src/resources/conversations/response/feedback.ts +0 -85
  245. package/src/resources/datasets.ts +0 -102
  246. package/src/resources/mcp-servers/tenants.ts +0 -81
  247. /package/resources/{conversations → agents/conversations}/index.js +0 -0
  248. /package/resources/{conversations → agents/conversations}/index.mjs +0 -0
  249. /package/resources/{conversations → agents/conversations}/response/index.d.mts +0 -0
  250. /package/resources/{conversations → agents/conversations}/response/index.d.ts +0 -0
  251. /package/resources/{conversations → agents/conversations}/response/index.js +0 -0
  252. /package/resources/{conversations → agents/conversations}/response/index.mjs +0 -0
  253. /package/resources/{conversations → agents/conversations}/response.d.mts +0 -0
  254. /package/resources/{conversations → agents/conversations}/response.d.ts +0 -0
  255. /package/resources/{conversations → agents/conversations}/response.mjs +0 -0
  256. /package/resources/{conversations.d.mts → agents/conversations.d.mts} +0 -0
  257. /package/resources/{conversations.d.ts → agents/conversations.d.ts} +0 -0
  258. /package/resources/{conversations.mjs → agents/conversations.mjs} +0 -0
  259. /package/resources/{mcp-servers → agents/mcp-servers}/index.js +0 -0
  260. /package/resources/{mcp-servers → agents/mcp-servers}/index.mjs +0 -0
  261. /package/resources/{mcp-servers.d.mts → agents/mcp-servers.d.mts} +0 -0
  262. /package/resources/{mcp-servers.d.ts → agents/mcp-servers.d.ts} +0 -0
  263. /package/resources/{mcp-servers.mjs → agents/mcp-servers.mjs} +0 -0
  264. /package/src/resources/{conversations → agents/conversations}/response/index.ts +0 -0
  265. /package/src/resources/{conversations → agents/conversations}/response.ts +0 -0
  266. /package/src/resources/{conversations.ts → agents/conversations.ts} +0 -0
  267. /package/src/resources/{mcp-servers.ts → agents/mcp-servers.ts} +0 -0
@@ -1,10 +1,22 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as DataSummaryAPI from "./data-summary.js";
3
3
  import { DataSummary, DataSummaryRetrieveResponse } from "./data-summary.js";
4
+ import * as ConversationsAPI from "./conversations/conversations.js";
5
+ import { ConversationCreateParams, ConversationCreateResponse, ConversationListParams, ConversationListResponse, ConversationListResponsesConversationsCursor, ConversationRetrieveParams, Conversations, InconvoConversation } from "./conversations/conversations.js";
6
+ import * as DatasetsAPI from "./datasets/datasets.js";
7
+ import { Datasets } from "./datasets/datasets.js";
8
+ import * as McpServersAPI from "./mcp-servers/mcp-servers.js";
9
+ import { McpServers } from "./mcp-servers/mcp-servers.js";
4
10
  export declare class Agents extends APIResource {
5
11
  dataSummary: DataSummaryAPI.DataSummary;
12
+ conversations: ConversationsAPI.Conversations;
13
+ datasets: DatasetsAPI.Datasets;
14
+ mcpServers: McpServersAPI.McpServers;
6
15
  }
7
16
  export declare namespace Agents {
8
17
  export { DataSummary as DataSummary, type DataSummaryRetrieveResponse as DataSummaryRetrieveResponse };
18
+ export { Conversations as Conversations, type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationRetrieveParams as ConversationRetrieveParams, type ConversationListParams as ConversationListParams, };
19
+ export { Datasets as Datasets };
20
+ export { McpServers as McpServers };
9
21
  }
10
22
  //# sourceMappingURL=agents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE,2BAA2B,EAAE;AAEnD,qBAAa,MAAO,SAAQ,WAAW;IACrC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CACxG"}
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE,2BAA2B,EAAE;OAC5C,KAAK,gBAAgB;OACrB,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,4CAA4C,EAC5C,0BAA0B,EAC1B,aAAa,EACb,mBAAmB,EACpB;OACM,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;OACZ,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,qBAAa,MAAO,SAAQ,WAAW;IACrC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IACjG,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAOD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;IAEvG,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;IAEhC,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC;CACrC"}
@@ -6,12 +6,24 @@ const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
7
  const DataSummaryAPI = tslib_1.__importStar(require("./data-summary.js"));
8
8
  const data_summary_1 = require("./data-summary.js");
9
+ const ConversationsAPI = tslib_1.__importStar(require("./conversations/conversations.js"));
10
+ const conversations_1 = require("./conversations/conversations.js");
11
+ const DatasetsAPI = tslib_1.__importStar(require("./datasets/datasets.js"));
12
+ const datasets_1 = require("./datasets/datasets.js");
13
+ const McpServersAPI = tslib_1.__importStar(require("./mcp-servers/mcp-servers.js"));
14
+ const mcp_servers_1 = require("./mcp-servers/mcp-servers.js");
9
15
  class Agents extends resource_1.APIResource {
10
16
  constructor() {
11
17
  super(...arguments);
12
18
  this.dataSummary = new DataSummaryAPI.DataSummary(this._client);
19
+ this.conversations = new ConversationsAPI.Conversations(this._client);
20
+ this.datasets = new DatasetsAPI.Datasets(this._client);
21
+ this.mcpServers = new McpServersAPI.McpServers(this._client);
13
22
  }
14
23
  }
15
24
  exports.Agents = Agents;
16
25
  Agents.DataSummary = data_summary_1.DataSummary;
26
+ Agents.Conversations = conversations_1.Conversations;
27
+ Agents.Datasets = datasets_1.Datasets;
28
+ Agents.McpServers = mcp_servers_1.McpServers;
17
29
  //# sourceMappingURL=agents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0EAAiD;AACjD,oDAA0E;AAE1E,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,WAAW,GAAG,0BAAW,CAAC"}
1
+ {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0EAAiD;AACjD,oDAA0E;AAC1E,2FAAkE;AAClE,oEASuC;AACvC,4EAAmD;AACnD,qDAA+C;AAC/C,oFAA2D;AAC3D,8DAAuD;AAEvD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AALD,wBAKC;AAED,MAAM,CAAC,WAAW,GAAG,0BAAW,CAAC;AACjC,MAAM,CAAC,aAAa,GAAG,6BAAa,CAAC;AACrC,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,UAAU,GAAG,wBAAU,CAAC"}
@@ -2,11 +2,23 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as DataSummaryAPI from "./data-summary.mjs";
4
4
  import { DataSummary } from "./data-summary.mjs";
5
+ import * as ConversationsAPI from "./conversations/conversations.mjs";
6
+ import { Conversations, } from "./conversations/conversations.mjs";
7
+ import * as DatasetsAPI from "./datasets/datasets.mjs";
8
+ import { Datasets } from "./datasets/datasets.mjs";
9
+ import * as McpServersAPI from "./mcp-servers/mcp-servers.mjs";
10
+ import { McpServers } from "./mcp-servers/mcp-servers.mjs";
5
11
  export class Agents extends APIResource {
6
12
  constructor() {
7
13
  super(...arguments);
8
14
  this.dataSummary = new DataSummaryAPI.DataSummary(this._client);
15
+ this.conversations = new ConversationsAPI.Conversations(this._client);
16
+ this.datasets = new DatasetsAPI.Datasets(this._client);
17
+ this.mcpServers = new McpServersAPI.McpServers(this._client);
9
18
  }
10
19
  }
11
20
  Agents.DataSummary = DataSummary;
21
+ Agents.Conversations = Conversations;
22
+ Agents.Datasets = Datasets;
23
+ Agents.McpServers = McpServers;
12
24
  //# sourceMappingURL=agents.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAA+B;AAEnD,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAA+B;OAC5C,KAAK,gBAAgB;OACrB,EAOL,aAAa,GAEd;OACM,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;OACZ,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAED,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;AACjC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC;AACrC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC"}
@@ -1,23 +1,49 @@
1
- import { APIResource } from "../../core/resource.mjs";
1
+ import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as ResponseAPI from "./response/response.mjs";
3
3
  import { Chart, Response, ResponseCreateParams, ResponseCreateResponse, ResponseRetrieveParams, ResponseRetrieveResponse, Table } from "./response/response.mjs";
4
- import { APIPromise } from "../../core/api-promise.mjs";
5
- import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from "../../core/pagination.mjs";
6
- import { RequestOptions } from "../../internal/request-options.mjs";
4
+ import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from "../../../core/pagination.mjs";
6
+ import { RequestOptions } from "../../../internal/request-options.mjs";
7
7
  export declare class Conversations extends APIResource {
8
8
  response: ResponseAPI.Response;
9
9
  /**
10
10
  * Create conversation
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const conversation =
15
+ * await client.agents.conversations.create('agentId', {
16
+ * userIdentifier: 'user_123',
17
+ * });
18
+ * ```
11
19
  */
12
- create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
20
+ create(agentID: string, body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
13
21
  /**
14
22
  * Retrieve conversation
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const inconvoConversation =
27
+ * await client.agents.conversations.retrieve('id', {
28
+ * agentId: 'agentId',
29
+ * });
30
+ * ```
15
31
  */
16
- retrieve(id: string, options?: RequestOptions): APIPromise<InconvoConversation>;
32
+ retrieve(id: string, params: ConversationRetrieveParams, options?: RequestOptions): APIPromise<InconvoConversation>;
17
33
  /**
18
34
  * List conversations
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * // Automatically fetches more pages as needed.
39
+ * for await (const conversationListResponse of client.agents.conversations.list(
40
+ * 'agentId',
41
+ * )) {
42
+ * // ...
43
+ * }
44
+ * ```
19
45
  */
20
- list(query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse>;
46
+ list(agentID: string, query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse>;
21
47
  }
22
48
  export type ConversationListResponsesConversationsCursor = ConversationsCursor<ConversationListResponse>;
23
49
  export interface InconvoConversation {
@@ -26,6 +52,10 @@ export interface InconvoConversation {
26
52
  userContext: {
27
53
  [key: string]: string | number;
28
54
  };
55
+ /**
56
+ * Unique identifier for the end-user (may be null for legacy conversations)
57
+ */
58
+ userIdentifier?: string | null;
29
59
  }
30
60
  export declare namespace InconvoConversation {
31
61
  interface Message {
@@ -52,15 +82,30 @@ export interface ConversationListResponse {
52
82
  userContext: {
53
83
  [key: string]: string | number;
54
84
  };
85
+ /**
86
+ * Unique identifier for the end-user (may be null for legacy conversations)
87
+ */
88
+ userIdentifier?: string | null;
55
89
  }
56
90
  export interface ConversationCreateParams {
57
91
  /**
58
- * Context key-values used for tenancy / filtering.
92
+ * Unique identifier for the end-user (1-256 chars). Allowed characters:
93
+ * alphanumeric, underscore, hyphen, colon, period, at symbol.
59
94
  */
60
- userContext: {
95
+ userIdentifier: string;
96
+ /**
97
+ * Optional context key-values for additional filtering/tenancy.
98
+ */
99
+ userContext?: {
61
100
  [key: string]: unknown;
62
101
  };
63
102
  }
103
+ export interface ConversationRetrieveParams {
104
+ /**
105
+ * The unique identifier of the agent
106
+ */
107
+ agentId: string;
108
+ }
64
109
  export interface ConversationListParams extends ConversationsCursorParams {
65
110
  /**
66
111
  * Arbitrary userContext filters, encoded as a deep object. Example: GET
@@ -69,9 +114,13 @@ export interface ConversationListParams extends ConversationsCursorParams {
69
114
  userContext?: {
70
115
  [key: string]: string | number;
71
116
  };
117
+ /**
118
+ * Filter by user identifier
119
+ */
120
+ userIdentifier?: string;
72
121
  }
73
122
  export declare namespace Conversations {
74
- export { type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, };
123
+ export { type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationRetrieveParams as ConversationRetrieveParams, type ConversationListParams as ConversationListParams, };
75
124
  export { Response as Response, type Chart as Chart, type Table as Table, type ResponseCreateResponse as ResponseCreateResponse, type ResponseRetrieveResponse as ResponseRetrieveResponse, type ResponseCreateParams as ResponseCreateParams, type ResponseRetrieveParams as ResponseRetrieveParams, };
76
125
  }
77
126
  //# sourceMappingURL=conversations.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/conversations/conversations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,KAAK,EACL,QAAQ,EACR,oBAAoB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AI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,23 +1,49 @@
1
- import { APIResource } from "../../core/resource.js";
1
+ import { APIResource } from "../../../core/resource.js";
2
2
  import * as ResponseAPI from "./response/response.js";
3
3
  import { Chart, Response, ResponseCreateParams, ResponseCreateResponse, ResponseRetrieveParams, ResponseRetrieveResponse, Table } from "./response/response.js";
4
- import { APIPromise } from "../../core/api-promise.js";
5
- import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from "../../core/pagination.js";
6
- import { RequestOptions } from "../../internal/request-options.js";
4
+ import { APIPromise } from "../../../core/api-promise.js";
5
+ import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from "../../../core/pagination.js";
6
+ import { RequestOptions } from "../../../internal/request-options.js";
7
7
  export declare class Conversations extends APIResource {
8
8
  response: ResponseAPI.Response;
9
9
  /**
10
10
  * Create conversation
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const conversation =
15
+ * await client.agents.conversations.create('agentId', {
16
+ * userIdentifier: 'user_123',
17
+ * });
18
+ * ```
11
19
  */
12
- create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
20
+ create(agentID: string, body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
13
21
  /**
14
22
  * Retrieve conversation
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const inconvoConversation =
27
+ * await client.agents.conversations.retrieve('id', {
28
+ * agentId: 'agentId',
29
+ * });
30
+ * ```
15
31
  */
16
- retrieve(id: string, options?: RequestOptions): APIPromise<InconvoConversation>;
32
+ retrieve(id: string, params: ConversationRetrieveParams, options?: RequestOptions): APIPromise<InconvoConversation>;
17
33
  /**
18
34
  * List conversations
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * // Automatically fetches more pages as needed.
39
+ * for await (const conversationListResponse of client.agents.conversations.list(
40
+ * 'agentId',
41
+ * )) {
42
+ * // ...
43
+ * }
44
+ * ```
19
45
  */
20
- list(query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse>;
46
+ list(agentID: string, query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse>;
21
47
  }
22
48
  export type ConversationListResponsesConversationsCursor = ConversationsCursor<ConversationListResponse>;
23
49
  export interface InconvoConversation {
@@ -26,6 +52,10 @@ export interface InconvoConversation {
26
52
  userContext: {
27
53
  [key: string]: string | number;
28
54
  };
55
+ /**
56
+ * Unique identifier for the end-user (may be null for legacy conversations)
57
+ */
58
+ userIdentifier?: string | null;
29
59
  }
30
60
  export declare namespace InconvoConversation {
31
61
  interface Message {
@@ -52,15 +82,30 @@ export interface ConversationListResponse {
52
82
  userContext: {
53
83
  [key: string]: string | number;
54
84
  };
85
+ /**
86
+ * Unique identifier for the end-user (may be null for legacy conversations)
87
+ */
88
+ userIdentifier?: string | null;
55
89
  }
56
90
  export interface ConversationCreateParams {
57
91
  /**
58
- * Context key-values used for tenancy / filtering.
92
+ * Unique identifier for the end-user (1-256 chars). Allowed characters:
93
+ * alphanumeric, underscore, hyphen, colon, period, at symbol.
59
94
  */
60
- userContext: {
95
+ userIdentifier: string;
96
+ /**
97
+ * Optional context key-values for additional filtering/tenancy.
98
+ */
99
+ userContext?: {
61
100
  [key: string]: unknown;
62
101
  };
63
102
  }
103
+ export interface ConversationRetrieveParams {
104
+ /**
105
+ * The unique identifier of the agent
106
+ */
107
+ agentId: string;
108
+ }
64
109
  export interface ConversationListParams extends ConversationsCursorParams {
65
110
  /**
66
111
  * Arbitrary userContext filters, encoded as a deep object. Example: GET
@@ -69,9 +114,13 @@ export interface ConversationListParams extends ConversationsCursorParams {
69
114
  userContext?: {
70
115
  [key: string]: string | number;
71
116
  };
117
+ /**
118
+ * Filter by user identifier
119
+ */
120
+ userIdentifier?: string;
72
121
  }
73
122
  export declare namespace Conversations {
74
- export { type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, };
123
+ export { type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationRetrieveParams as ConversationRetrieveParams, type ConversationListParams as ConversationListParams, };
75
124
  export { Response as Response, type Chart as Chart, type Table as Table, type ResponseCreateResponse as ResponseCreateResponse, type ResponseRetrieveResponse as ResponseRetrieveResponse, type ResponseCreateParams as ResponseCreateParams, type ResponseRetrieveParams as ResponseRetrieveParams, };
76
125
  }
77
126
  //# sourceMappingURL=conversations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/conversations/conversations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,KAAK,EACL,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,EACN;OACM,EAAE,UAAU,EAAE;OACd,EAAE,mBAAmB,EAAE,KAAK,yBAAyB,EAAE,WAAW,EAAE;OACpE,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,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"use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Conversations = void 0;
5
+ const tslib_1 = require("../../../internal/tslib.js");
6
+ const resource_1 = require("../../../core/resource.js");
7
+ const ResponseAPI = tslib_1.__importStar(require("./response/response.js"));
8
+ const response_1 = require("./response/response.js");
9
+ const pagination_1 = require("../../../core/pagination.js");
10
+ const path_1 = require("../../../internal/utils/path.js");
11
+ class Conversations extends resource_1.APIResource {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.response = new ResponseAPI.Response(this._client);
15
+ }
16
+ /**
17
+ * Create conversation
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const conversation =
22
+ * await client.agents.conversations.create('agentId', {
23
+ * userIdentifier: 'user_123',
24
+ * });
25
+ * ```
26
+ */
27
+ create(agentID, body, options) {
28
+ return this._client.post((0, path_1.path) `/agents/${agentID}/conversations`, { body, ...options });
29
+ }
30
+ /**
31
+ * Retrieve conversation
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const inconvoConversation =
36
+ * await client.agents.conversations.retrieve('id', {
37
+ * agentId: 'agentId',
38
+ * });
39
+ * ```
40
+ */
41
+ retrieve(id, params, options) {
42
+ const { agentId } = params;
43
+ return this._client.get((0, path_1.path) `/agents/${agentId}/conversations/${id}`, options);
44
+ }
45
+ /**
46
+ * List conversations
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * // Automatically fetches more pages as needed.
51
+ * for await (const conversationListResponse of client.agents.conversations.list(
52
+ * 'agentId',
53
+ * )) {
54
+ * // ...
55
+ * }
56
+ * ```
57
+ */
58
+ list(agentID, query = {}, options) {
59
+ return this._client.getAPIList((0, path_1.path) `/agents/${agentID}/conversations`, (pagination_1.ConversationsCursor), { query, ...options });
60
+ }
61
+ }
62
+ exports.Conversations = Conversations;
63
+ Conversations.Response = response_1.Response;
64
+ //# sourceMappingURL=conversations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../../src/resources/agents/conversations/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,4EAAmD;AACnD,qDAQ6B;AAE7B,4DAA4G;AAE5G,0DAAoD;AAEpD,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiE1E,CAAC;IA/DC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAe,EACf,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,OAAe,EACf,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,WAAW,OAAO,gBAAgB,EACtC,CAAA,gCAA6C,CAAA,EAC7C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAlED,sCAkEC;AAyFD,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -0,0 +1,59 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import * as ResponseAPI from "./response/response.mjs";
4
+ import { Response, } from "./response/response.mjs";
5
+ import { ConversationsCursor } from "../../../core/pagination.mjs";
6
+ import { path } from "../../../internal/utils/path.mjs";
7
+ export class Conversations extends APIResource {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.response = new ResponseAPI.Response(this._client);
11
+ }
12
+ /**
13
+ * Create conversation
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const conversation =
18
+ * await client.agents.conversations.create('agentId', {
19
+ * userIdentifier: 'user_123',
20
+ * });
21
+ * ```
22
+ */
23
+ create(agentID, body, options) {
24
+ return this._client.post(path `/agents/${agentID}/conversations`, { body, ...options });
25
+ }
26
+ /**
27
+ * Retrieve conversation
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const inconvoConversation =
32
+ * await client.agents.conversations.retrieve('id', {
33
+ * agentId: 'agentId',
34
+ * });
35
+ * ```
36
+ */
37
+ retrieve(id, params, options) {
38
+ const { agentId } = params;
39
+ return this._client.get(path `/agents/${agentId}/conversations/${id}`, options);
40
+ }
41
+ /**
42
+ * List conversations
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * // Automatically fetches more pages as needed.
47
+ * for await (const conversationListResponse of client.agents.conversations.list(
48
+ * 'agentId',
49
+ * )) {
50
+ * // ...
51
+ * }
52
+ * ```
53
+ */
54
+ list(agentID, query = {}, options) {
55
+ return this._client.getAPIList(path `/agents/${agentID}/conversations`, (ConversationsCursor), { query, ...options });
56
+ }
57
+ }
58
+ Conversations.Response = Response;
59
+ //# sourceMappingURL=conversations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../../src/resources/agents/conversations/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAEL,QAAQ,GAMT;OAEM,EAAE,mBAAmB,EAA+C;OAEpE,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiE1E,CAAC;IA/DC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAe,EACf,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,OAAO,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,OAAe,EACf,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,WAAW,OAAO,gBAAgB,EACtC,CAAA,mBAA6C,CAAA,EAC7C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAyFD,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
- export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations.mjs";
1
+ export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationRetrieveParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations.mjs";
2
2
  export { Response, type Chart, type Table, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCreateParams, type ResponseRetrieveParams, } from "./response/index.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/conversations/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,4CAA4C,GAClD;OACM,EACL,QAAQ,EACR,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B"}
@@ -1,3 +1,3 @@
1
- export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations.js";
1
+ export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationRetrieveParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations.js";
2
2
  export { Response, type Chart, type Table, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCreateParams, type ResponseRetrieveParams, } from "./response/index.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/conversations/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,4CAA4C,GAClD;OACM,EACL,QAAQ,EACR,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/agents/conversations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDASyB;AARvB,8GAAA,aAAa,OAAA;AASf,6CAQ0B;AAPxB,iGAAA,QAAQ,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/agents/conversations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAQd;OACM,EACL,QAAQ,GAOT"}
@@ -1,13 +1,39 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../../internal/request-options.mjs";
1
+ import { APIResource } from "../../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../../../internal/request-options.mjs";
4
4
  export declare class FeedbackResource extends APIResource {
5
5
  /**
6
6
  * Create feedback
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const feedback =
11
+ * await client.agents.conversations.response.feedback.create(
12
+ * 'response_id',
13
+ * {
14
+ * agentId: 'agentId',
15
+ * convo_id: 'convo_id',
16
+ * rating: 'positive',
17
+ * },
18
+ * );
19
+ * ```
7
20
  */
8
21
  create(responseID: string, params: FeedbackCreateParams, options?: RequestOptions): APIPromise<Feedback>;
9
22
  /**
10
23
  * Update feedback
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const feedback =
28
+ * await client.agents.conversations.response.feedback.update(
29
+ * 'feedback_id',
30
+ * {
31
+ * agentId: 'agentId',
32
+ * convo_id: 'convo_id',
33
+ * response_id: 'response_id',
34
+ * },
35
+ * );
36
+ * ```
11
37
  */
12
38
  update(feedbackID: string, params: FeedbackUpdateParams, options?: RequestOptions): APIPromise<Feedback>;
13
39
  }
@@ -17,10 +43,14 @@ export interface Feedback {
17
43
  comment?: string;
18
44
  }
19
45
  export interface FeedbackCreateParams {
46
+ /**
47
+ * Path param: The unique identifier of the agent
48
+ */
49
+ agentId: string;
20
50
  /**
21
51
  * Path param
22
52
  */
23
- id: string;
53
+ convo_id: string;
24
54
  /**
25
55
  * Body param
26
56
  */
@@ -31,10 +61,14 @@ export interface FeedbackCreateParams {
31
61
  comment?: string;
32
62
  }
33
63
  export interface FeedbackUpdateParams {
64
+ /**
65
+ * Path param: The unique identifier of the agent
66
+ */
67
+ agentId: string;
34
68
  /**
35
69
  * Path param
36
70
  */
37
- id: string;
71
+ convo_id: string;
38
72
  /**
39
73
  * Path param
40
74
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedback.d.mts","sourceRoot":"","sources":["../../../../src/resources/agents/conversations/response/feedback.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAQxG;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAOzG;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;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