sarvam-agents-client 0.1.2 → 0.2.1

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 (303) hide show
  1. package/README.md +15 -0
  2. package/dist/apis/AgentConversationsApi.d.ts +44 -1
  3. package/dist/apis/AgentConversationsApi.js +104 -1
  4. package/dist/apis/AgentsApi.d.ts +77 -5
  5. package/dist/apis/AgentsApi.js +163 -5
  6. package/dist/apis/AppsApi.d.ts +43 -1
  7. package/dist/apis/AppsApi.js +108 -0
  8. package/dist/apis/ArtifactsApi.d.ts +31 -1
  9. package/dist/apis/ArtifactsApi.js +82 -0
  10. package/dist/apis/CustomAPIsApi.d.ts +124 -0
  11. package/dist/apis/CustomAPIsApi.js +305 -0
  12. package/dist/apis/ModelsApi.d.ts +26 -0
  13. package/dist/apis/ModelsApi.js +52 -0
  14. package/dist/apis/index.d.ts +2 -0
  15. package/dist/apis/index.js +2 -0
  16. package/dist/compose/agent.d.ts +44 -0
  17. package/dist/compose/agent.js +222 -0
  18. package/dist/compose/builtins.d.ts +4 -0
  19. package/dist/compose/builtins.js +22 -0
  20. package/dist/compose/deploy.d.ts +30 -0
  21. package/dist/compose/deploy.js +146 -0
  22. package/dist/compose/errors.d.ts +48 -0
  23. package/dist/compose/errors.js +68 -0
  24. package/dist/compose/events.d.ts +63 -0
  25. package/dist/compose/events.js +100 -0
  26. package/dist/compose/fingerprint.d.ts +6 -0
  27. package/dist/compose/fingerprint.js +83 -0
  28. package/dist/compose/index.d.ts +13 -0
  29. package/dist/compose/index.js +33 -0
  30. package/dist/compose/run.d.ts +100 -0
  31. package/dist/compose/run.js +536 -0
  32. package/dist/compose/runState.d.ts +26 -0
  33. package/dist/compose/runState.js +79 -0
  34. package/dist/compose/settingsTransport.d.ts +24 -0
  35. package/dist/compose/settingsTransport.js +280 -0
  36. package/dist/compose/tools.d.ts +17 -0
  37. package/dist/compose/tools.js +44 -0
  38. package/dist/compose/transport.d.ts +34 -0
  39. package/dist/compose/transport.js +2 -0
  40. package/dist/esm/apis/AgentConversationsApi.d.ts +44 -1
  41. package/dist/esm/apis/AgentConversationsApi.js +104 -1
  42. package/dist/esm/apis/AgentsApi.d.ts +77 -5
  43. package/dist/esm/apis/AgentsApi.js +163 -5
  44. package/dist/esm/apis/AppsApi.d.ts +43 -1
  45. package/dist/esm/apis/AppsApi.js +109 -1
  46. package/dist/esm/apis/ArtifactsApi.d.ts +31 -1
  47. package/dist/esm/apis/ArtifactsApi.js +83 -1
  48. package/dist/esm/apis/CustomAPIsApi.d.ts +124 -0
  49. package/dist/esm/apis/CustomAPIsApi.js +301 -0
  50. package/dist/esm/apis/ModelsApi.d.ts +26 -0
  51. package/dist/esm/apis/ModelsApi.js +48 -0
  52. package/dist/esm/apis/index.d.ts +2 -0
  53. package/dist/esm/apis/index.js +2 -0
  54. package/dist/esm/compose/agent.d.ts +44 -0
  55. package/dist/esm/compose/agent.js +218 -0
  56. package/dist/esm/compose/builtins.d.ts +4 -0
  57. package/dist/esm/compose/builtins.js +18 -0
  58. package/dist/esm/compose/deploy.d.ts +30 -0
  59. package/dist/esm/compose/deploy.js +137 -0
  60. package/dist/esm/compose/errors.d.ts +48 -0
  61. package/dist/esm/compose/errors.js +53 -0
  62. package/dist/esm/compose/events.d.ts +63 -0
  63. package/dist/esm/compose/events.js +97 -0
  64. package/dist/esm/compose/fingerprint.d.ts +6 -0
  65. package/dist/esm/compose/fingerprint.js +78 -0
  66. package/dist/esm/compose/index.d.ts +13 -0
  67. package/dist/esm/compose/index.js +8 -0
  68. package/dist/esm/compose/run.d.ts +100 -0
  69. package/dist/esm/compose/run.js +530 -0
  70. package/dist/esm/compose/runState.d.ts +26 -0
  71. package/dist/esm/compose/runState.js +75 -0
  72. package/dist/esm/compose/settingsTransport.d.ts +24 -0
  73. package/dist/esm/compose/settingsTransport.js +276 -0
  74. package/dist/esm/compose/tools.d.ts +17 -0
  75. package/dist/esm/compose/tools.js +34 -0
  76. package/dist/esm/compose/transport.d.ts +34 -0
  77. package/dist/esm/compose/transport.js +1 -0
  78. package/dist/esm/models/AgentChannelRef.d.ts +1 -0
  79. package/dist/esm/models/AgentChannelRef.js +2 -1
  80. package/dist/esm/models/AgentConversationDetail.d.ts +15 -2
  81. package/dist/esm/models/AgentConversationDetail.js +6 -4
  82. package/dist/esm/models/AgentConversationView.d.ts +11 -5
  83. package/dist/esm/models/AgentConversationView.js +4 -4
  84. package/dist/esm/models/AgentCreate.d.ts +8 -0
  85. package/dist/esm/models/AgentCreate.js +2 -0
  86. package/dist/esm/models/AgentCustomApiList.d.ts +33 -0
  87. package/dist/esm/models/AgentCustomApiList.js +44 -0
  88. package/dist/esm/models/AgentResource.d.ts +14 -0
  89. package/dist/esm/models/AgentResource.js +4 -0
  90. package/dist/esm/models/AgentSettingsResponse.d.ts +53 -0
  91. package/dist/esm/models/AgentSettingsResponse.js +52 -0
  92. package/dist/esm/models/AgentUpdate.d.ts +8 -0
  93. package/dist/esm/models/AgentUpdate.js +2 -0
  94. package/dist/esm/models/AppAccountView.d.ts +88 -0
  95. package/dist/esm/models/AppAccountView.js +79 -0
  96. package/dist/esm/models/AppAccountsView.d.ts +66 -0
  97. package/dist/esm/models/AppAccountsView.js +60 -0
  98. package/dist/esm/models/AppResource.d.ts +36 -0
  99. package/dist/esm/models/AppResource.js +12 -0
  100. package/dist/esm/models/AppResourceCheckView.d.ts +74 -0
  101. package/dist/esm/models/AppResourceCheckView.js +63 -0
  102. package/dist/esm/models/AppResourceView.d.ts +68 -0
  103. package/dist/esm/models/AppResourceView.js +67 -0
  104. package/dist/esm/models/AppResourcesView.d.ts +54 -0
  105. package/dist/esm/models/AppResourcesView.js +56 -0
  106. package/dist/esm/models/AppToolsResponse.d.ts +14 -0
  107. package/dist/esm/models/AppToolsResponse.js +4 -0
  108. package/dist/esm/models/AppView.d.ts +42 -0
  109. package/dist/esm/models/AppView.js +14 -0
  110. package/dist/esm/models/ArtifactVersionResponse.d.ts +94 -0
  111. package/dist/esm/models/ArtifactVersionResponse.js +80 -0
  112. package/dist/esm/models/AttachedAgent.d.ts +44 -0
  113. package/dist/esm/models/AttachedAgent.js +49 -0
  114. package/dist/esm/models/Auth.d.ts +30 -0
  115. package/dist/esm/models/Auth.js +52 -0
  116. package/dist/esm/models/BindCustomApiBody.d.ts +32 -0
  117. package/dist/esm/models/BindCustomApiBody.js +43 -0
  118. package/dist/esm/models/ConversationArtifact.d.ts +14 -0
  119. package/dist/esm/models/ConversationArtifact.js +9 -0
  120. package/dist/esm/models/CustomApi.d.ts +102 -0
  121. package/dist/esm/models/CustomApi.js +90 -0
  122. package/dist/esm/models/CustomApiBasicAuth.d.ts +51 -0
  123. package/dist/esm/models/CustomApiBasicAuth.js +57 -0
  124. package/dist/esm/models/CustomApiBearerAuth.d.ts +45 -0
  125. package/dist/esm/models/CustomApiBearerAuth.js +53 -0
  126. package/dist/esm/models/CustomApiCreate.d.ts +57 -0
  127. package/dist/esm/models/CustomApiCreate.js +56 -0
  128. package/dist/esm/models/CustomApiHeader.d.ts +44 -0
  129. package/dist/esm/models/CustomApiHeader.js +47 -0
  130. package/dist/esm/models/CustomApiHeadersAuth.d.ts +46 -0
  131. package/dist/esm/models/CustomApiHeadersAuth.js +54 -0
  132. package/dist/esm/models/CustomApiList.d.ts +64 -0
  133. package/dist/esm/models/CustomApiList.js +64 -0
  134. package/dist/esm/models/CustomApiName.d.ts +44 -0
  135. package/dist/esm/models/CustomApiName.js +49 -0
  136. package/dist/esm/models/CustomApiUpdate.d.ts +58 -0
  137. package/dist/esm/models/CustomApiUpdate.js +50 -0
  138. package/dist/esm/models/CustomApiUpdateAuth.d.ts +30 -0
  139. package/dist/esm/models/CustomApiUpdateAuth.js +52 -0
  140. package/dist/esm/models/ErrorDetailItem.d.ts +5 -0
  141. package/dist/esm/models/ListModels403Response.d.ts +23 -0
  142. package/dist/esm/models/ListModels403Response.js +45 -0
  143. package/dist/esm/models/ModelEndpointView.d.ts +38 -0
  144. package/dist/esm/models/ModelEndpointView.js +45 -0
  145. package/dist/esm/models/ModelView.d.ts +69 -0
  146. package/dist/esm/models/ModelView.js +56 -0
  147. package/dist/esm/models/ModelsResponse.d.ts +33 -0
  148. package/dist/esm/models/ModelsResponse.js +44 -0
  149. package/dist/esm/models/SettingsIssueView.d.ts +44 -0
  150. package/dist/esm/models/SettingsIssueView.js +51 -0
  151. package/dist/esm/models/VersionCommitBody.d.ts +44 -0
  152. package/dist/esm/models/VersionCommitBody.js +51 -0
  153. package/dist/esm/models/VersionUploadUrlBody.d.ts +32 -0
  154. package/dist/esm/models/VersionUploadUrlBody.js +43 -0
  155. package/dist/esm/models/index.d.ts +28 -0
  156. package/dist/esm/models/index.js +28 -0
  157. package/dist/models/AgentChannelRef.d.ts +1 -0
  158. package/dist/models/AgentChannelRef.js +2 -1
  159. package/dist/models/AgentConversationDetail.d.ts +15 -2
  160. package/dist/models/AgentConversationDetail.js +6 -4
  161. package/dist/models/AgentConversationView.d.ts +11 -5
  162. package/dist/models/AgentConversationView.js +4 -4
  163. package/dist/models/AgentCreate.d.ts +8 -0
  164. package/dist/models/AgentCreate.js +2 -0
  165. package/dist/models/AgentCustomApiList.d.ts +33 -0
  166. package/dist/models/AgentCustomApiList.js +51 -0
  167. package/dist/models/AgentResource.d.ts +14 -0
  168. package/dist/models/AgentResource.js +4 -0
  169. package/dist/models/AgentSettingsResponse.d.ts +53 -0
  170. package/dist/models/AgentSettingsResponse.js +59 -0
  171. package/dist/models/AgentUpdate.d.ts +8 -0
  172. package/dist/models/AgentUpdate.js +2 -0
  173. package/dist/models/AppAccountView.d.ts +88 -0
  174. package/dist/models/AppAccountView.js +87 -0
  175. package/dist/models/AppAccountsView.d.ts +66 -0
  176. package/dist/models/AppAccountsView.js +68 -0
  177. package/dist/models/AppResource.d.ts +36 -0
  178. package/dist/models/AppResource.js +12 -0
  179. package/dist/models/AppResourceCheckView.d.ts +74 -0
  180. package/dist/models/AppResourceCheckView.js +71 -0
  181. package/dist/models/AppResourceView.d.ts +68 -0
  182. package/dist/models/AppResourceView.js +74 -0
  183. package/dist/models/AppResourcesView.d.ts +54 -0
  184. package/dist/models/AppResourcesView.js +64 -0
  185. package/dist/models/AppToolsResponse.d.ts +14 -0
  186. package/dist/models/AppToolsResponse.js +4 -0
  187. package/dist/models/AppView.d.ts +42 -0
  188. package/dist/models/AppView.js +14 -0
  189. package/dist/models/ArtifactVersionResponse.d.ts +94 -0
  190. package/dist/models/ArtifactVersionResponse.js +88 -0
  191. package/dist/models/AttachedAgent.d.ts +44 -0
  192. package/dist/models/AttachedAgent.js +56 -0
  193. package/dist/models/Auth.d.ts +30 -0
  194. package/dist/models/Auth.js +58 -0
  195. package/dist/models/BindCustomApiBody.d.ts +32 -0
  196. package/dist/models/BindCustomApiBody.js +50 -0
  197. package/dist/models/ConversationArtifact.d.ts +14 -0
  198. package/dist/models/ConversationArtifact.js +10 -0
  199. package/dist/models/CustomApi.d.ts +102 -0
  200. package/dist/models/CustomApi.js +98 -0
  201. package/dist/models/CustomApiBasicAuth.d.ts +51 -0
  202. package/dist/models/CustomApiBasicAuth.js +65 -0
  203. package/dist/models/CustomApiBearerAuth.d.ts +45 -0
  204. package/dist/models/CustomApiBearerAuth.js +61 -0
  205. package/dist/models/CustomApiCreate.d.ts +57 -0
  206. package/dist/models/CustomApiCreate.js +63 -0
  207. package/dist/models/CustomApiHeader.d.ts +44 -0
  208. package/dist/models/CustomApiHeader.js +54 -0
  209. package/dist/models/CustomApiHeadersAuth.d.ts +46 -0
  210. package/dist/models/CustomApiHeadersAuth.js +62 -0
  211. package/dist/models/CustomApiList.d.ts +64 -0
  212. package/dist/models/CustomApiList.js +71 -0
  213. package/dist/models/CustomApiName.d.ts +44 -0
  214. package/dist/models/CustomApiName.js +56 -0
  215. package/dist/models/CustomApiUpdate.d.ts +58 -0
  216. package/dist/models/CustomApiUpdate.js +57 -0
  217. package/dist/models/CustomApiUpdateAuth.d.ts +30 -0
  218. package/dist/models/CustomApiUpdateAuth.js +58 -0
  219. package/dist/models/ErrorDetailItem.d.ts +5 -0
  220. package/dist/models/ListModels403Response.d.ts +23 -0
  221. package/dist/models/ListModels403Response.js +51 -0
  222. package/dist/models/ModelEndpointView.d.ts +38 -0
  223. package/dist/models/ModelEndpointView.js +52 -0
  224. package/dist/models/ModelView.d.ts +69 -0
  225. package/dist/models/ModelView.js +63 -0
  226. package/dist/models/ModelsResponse.d.ts +33 -0
  227. package/dist/models/ModelsResponse.js +51 -0
  228. package/dist/models/SettingsIssueView.d.ts +44 -0
  229. package/dist/models/SettingsIssueView.js +58 -0
  230. package/dist/models/VersionCommitBody.d.ts +44 -0
  231. package/dist/models/VersionCommitBody.js +58 -0
  232. package/dist/models/VersionUploadUrlBody.d.ts +32 -0
  233. package/dist/models/VersionUploadUrlBody.js +50 -0
  234. package/dist/models/index.d.ts +28 -0
  235. package/dist/models/index.js +28 -0
  236. package/package.json +15 -2
  237. package/src/apis/AgentConversationsApi.ts +172 -3
  238. package/src/apis/AgentsApi.ts +242 -7
  239. package/src/apis/AppsApi.ts +174 -3
  240. package/src/apis/ArtifactsApi.ts +144 -0
  241. package/src/apis/ClarifyApi.ts +3 -3
  242. package/src/apis/CollectionsApi.ts +3 -3
  243. package/src/apis/ConversationsApi.ts +3 -3
  244. package/src/apis/CronsApi.ts +3 -3
  245. package/src/apis/CustomAPIsApi.ts +471 -0
  246. package/src/apis/MessagesApi.ts +3 -3
  247. package/src/apis/ModelsApi.ts +70 -0
  248. package/src/apis/QueueApi.ts +3 -3
  249. package/src/apis/ResponsesApi.ts +3 -3
  250. package/src/apis/SkillsApi.ts +3 -3
  251. package/src/apis/index.ts +2 -0
  252. package/src/compose/agent.ts +254 -0
  253. package/src/compose/builtins.ts +19 -0
  254. package/src/compose/deploy.ts +168 -0
  255. package/src/compose/errors.ts +66 -0
  256. package/src/compose/events.ts +122 -0
  257. package/src/compose/fingerprint.ts +74 -0
  258. package/src/compose/index.ts +13 -0
  259. package/src/compose/run.ts +601 -0
  260. package/src/compose/runState.ts +95 -0
  261. package/src/compose/settingsTransport.ts +299 -0
  262. package/src/compose/tools.ts +42 -0
  263. package/src/compose/transport.ts +48 -0
  264. package/src/models/AgentChannelRef.ts +2 -1
  265. package/src/models/AgentConversationDetail.ts +21 -5
  266. package/src/models/AgentConversationView.ts +15 -8
  267. package/src/models/AgentCreate.ts +8 -0
  268. package/src/models/AgentCustomApiList.ts +74 -0
  269. package/src/models/AgentResource.ts +16 -0
  270. package/src/models/AgentSettingsResponse.ts +99 -0
  271. package/src/models/AgentUpdate.ts +8 -0
  272. package/src/models/AppAccountView.ts +143 -0
  273. package/src/models/AppAccountsView.ts +118 -0
  274. package/src/models/AppResource.ts +48 -0
  275. package/src/models/AppResourceCheckView.ts +117 -0
  276. package/src/models/AppResourceView.ts +120 -0
  277. package/src/models/AppResourcesView.ts +102 -0
  278. package/src/models/AppToolsResponse.ts +16 -0
  279. package/src/models/AppView.ts +56 -0
  280. package/src/models/ArtifactVersionResponse.ts +155 -0
  281. package/src/models/AttachedAgent.ts +83 -0
  282. package/src/models/Auth.ts +84 -0
  283. package/src/models/BindCustomApiBody.ts +66 -0
  284. package/src/models/ConversationArtifact.ts +19 -0
  285. package/src/models/CustomApi.ts +175 -0
  286. package/src/models/CustomApiBasicAuth.ts +94 -0
  287. package/src/models/CustomApiBearerAuth.ts +85 -0
  288. package/src/models/CustomApiCreate.ts +108 -0
  289. package/src/models/CustomApiHeader.ts +82 -0
  290. package/src/models/CustomApiHeadersAuth.ts +93 -0
  291. package/src/models/CustomApiList.ts +120 -0
  292. package/src/models/CustomApiName.ts +83 -0
  293. package/src/models/CustomApiUpdate.ts +106 -0
  294. package/src/models/CustomApiUpdateAuth.ts +84 -0
  295. package/src/models/ErrorDetailItem.ts +5 -0
  296. package/src/models/ListModels403Response.ts +73 -0
  297. package/src/models/ModelEndpointView.ts +74 -0
  298. package/src/models/ModelView.ts +122 -0
  299. package/src/models/ModelsResponse.ts +74 -0
  300. package/src/models/SettingsIssueView.ts +84 -0
  301. package/src/models/VersionCommitBody.ts +84 -0
  302. package/src/models/VersionUploadUrlBody.ts +66 -0
  303. package/src/models/index.ts +28 -0
@@ -4,19 +4,30 @@ export * from './AgentChannelRef.js';
4
4
  export * from './AgentConversationDetail.js';
5
5
  export * from './AgentConversationView.js';
6
6
  export * from './AgentCreate.js';
7
+ export * from './AgentCustomApiList.js';
7
8
  export * from './AgentResource.js';
8
9
  export * from './AgentSearchChannel.js';
10
+ export * from './AgentSettingsResponse.js';
9
11
  export * from './AgentTemplateResource.js';
10
12
  export * from './AgentUpdate.js';
11
13
  export * from './ApiKeyBody.js';
14
+ export * from './AppAccountView.js';
15
+ export * from './AppAccountsView.js';
12
16
  export * from './AppCategory.js';
13
17
  export * from './AppConnectResponse.js';
14
18
  export * from './AppResource.js';
19
+ export * from './AppResourceCheckView.js';
20
+ export * from './AppResourceView.js';
21
+ export * from './AppResourcesView.js';
15
22
  export * from './AppToolView.js';
16
23
  export * from './AppToolsResponse.js';
17
24
  export * from './AppView.js';
18
25
  export * from './ArtifactResponse.js';
26
+ export * from './ArtifactVersionResponse.js';
27
+ export * from './AttachedAgent.js';
28
+ export * from './Auth.js';
19
29
  export * from './BindCollectionBody.js';
30
+ export * from './BindCustomApiBody.js';
20
31
  export * from './Body.js';
21
32
  export * from './Capabilities.js';
22
33
  export * from './ChatError.js';
@@ -45,6 +56,16 @@ export * from './CronResource.js';
45
56
  export * from './CronRunRead.js';
46
57
  export * from './CronUpdate.js';
47
58
  export * from './Currentscope.js';
59
+ export * from './CustomApi.js';
60
+ export * from './CustomApiBasicAuth.js';
61
+ export * from './CustomApiBearerAuth.js';
62
+ export * from './CustomApiCreate.js';
63
+ export * from './CustomApiHeader.js';
64
+ export * from './CustomApiHeadersAuth.js';
65
+ export * from './CustomApiList.js';
66
+ export * from './CustomApiName.js';
67
+ export * from './CustomApiUpdate.js';
68
+ export * from './CustomApiUpdateAuth.js';
48
69
  export * from './DeliveryTarget.js';
49
70
  export * from './DownloadUrlResponse.js';
50
71
  export * from './EditQueuedInput.js';
@@ -84,9 +105,13 @@ export * from './InlineCreateSkillBody.js';
84
105
  export * from './InputMessage.js';
85
106
  export * from './InstructionsBody.js';
86
107
  export * from './InstructionsResponse.js';
108
+ export * from './ListModels403Response.js';
87
109
  export * from './MessagePart.js';
88
110
  export * from './MessagesResponse.js';
89
111
  export * from './MintUploadUrl403Response.js';
112
+ export * from './ModelEndpointView.js';
113
+ export * from './ModelView.js';
114
+ export * from './ModelsResponse.js';
90
115
  export * from './PageAgentConversationView.js';
91
116
  export * from './PageAppView.js';
92
117
  export * from './PageCollectionBindingView.js';
@@ -113,6 +138,7 @@ export * from './SearchResult.js';
113
138
  export * from './ServerSideIngestError.js';
114
139
  export * from './ServerSideIngestFile.js';
115
140
  export * from './ServerSideIngestResponse.js';
141
+ export * from './SettingsIssueView.js';
116
142
  export * from './SkillDetailView.js';
117
143
  export * from './SkillResource.js';
118
144
  export * from './SkillUpdate.js';
@@ -133,3 +159,5 @@ export * from './UploadUrlBody.js';
133
159
  export * from './UploadUrlResponse.js';
134
160
  export * from './ValidationError.js';
135
161
  export * from './ValidationErrorLocInner.js';
162
+ export * from './VersionCommitBody.js';
163
+ export * from './VersionUploadUrlBody.js';
@@ -22,19 +22,30 @@ __exportStar(require("./AgentChannelRef.js"), exports);
22
22
  __exportStar(require("./AgentConversationDetail.js"), exports);
23
23
  __exportStar(require("./AgentConversationView.js"), exports);
24
24
  __exportStar(require("./AgentCreate.js"), exports);
25
+ __exportStar(require("./AgentCustomApiList.js"), exports);
25
26
  __exportStar(require("./AgentResource.js"), exports);
26
27
  __exportStar(require("./AgentSearchChannel.js"), exports);
28
+ __exportStar(require("./AgentSettingsResponse.js"), exports);
27
29
  __exportStar(require("./AgentTemplateResource.js"), exports);
28
30
  __exportStar(require("./AgentUpdate.js"), exports);
29
31
  __exportStar(require("./ApiKeyBody.js"), exports);
32
+ __exportStar(require("./AppAccountView.js"), exports);
33
+ __exportStar(require("./AppAccountsView.js"), exports);
30
34
  __exportStar(require("./AppCategory.js"), exports);
31
35
  __exportStar(require("./AppConnectResponse.js"), exports);
32
36
  __exportStar(require("./AppResource.js"), exports);
37
+ __exportStar(require("./AppResourceCheckView.js"), exports);
38
+ __exportStar(require("./AppResourceView.js"), exports);
39
+ __exportStar(require("./AppResourcesView.js"), exports);
33
40
  __exportStar(require("./AppToolView.js"), exports);
34
41
  __exportStar(require("./AppToolsResponse.js"), exports);
35
42
  __exportStar(require("./AppView.js"), exports);
36
43
  __exportStar(require("./ArtifactResponse.js"), exports);
44
+ __exportStar(require("./ArtifactVersionResponse.js"), exports);
45
+ __exportStar(require("./AttachedAgent.js"), exports);
46
+ __exportStar(require("./Auth.js"), exports);
37
47
  __exportStar(require("./BindCollectionBody.js"), exports);
48
+ __exportStar(require("./BindCustomApiBody.js"), exports);
38
49
  __exportStar(require("./Body.js"), exports);
39
50
  __exportStar(require("./Capabilities.js"), exports);
40
51
  __exportStar(require("./ChatError.js"), exports);
@@ -63,6 +74,16 @@ __exportStar(require("./CronResource.js"), exports);
63
74
  __exportStar(require("./CronRunRead.js"), exports);
64
75
  __exportStar(require("./CronUpdate.js"), exports);
65
76
  __exportStar(require("./Currentscope.js"), exports);
77
+ __exportStar(require("./CustomApi.js"), exports);
78
+ __exportStar(require("./CustomApiBasicAuth.js"), exports);
79
+ __exportStar(require("./CustomApiBearerAuth.js"), exports);
80
+ __exportStar(require("./CustomApiCreate.js"), exports);
81
+ __exportStar(require("./CustomApiHeader.js"), exports);
82
+ __exportStar(require("./CustomApiHeadersAuth.js"), exports);
83
+ __exportStar(require("./CustomApiList.js"), exports);
84
+ __exportStar(require("./CustomApiName.js"), exports);
85
+ __exportStar(require("./CustomApiUpdate.js"), exports);
86
+ __exportStar(require("./CustomApiUpdateAuth.js"), exports);
66
87
  __exportStar(require("./DeliveryTarget.js"), exports);
67
88
  __exportStar(require("./DownloadUrlResponse.js"), exports);
68
89
  __exportStar(require("./EditQueuedInput.js"), exports);
@@ -102,9 +123,13 @@ __exportStar(require("./InlineCreateSkillBody.js"), exports);
102
123
  __exportStar(require("./InputMessage.js"), exports);
103
124
  __exportStar(require("./InstructionsBody.js"), exports);
104
125
  __exportStar(require("./InstructionsResponse.js"), exports);
126
+ __exportStar(require("./ListModels403Response.js"), exports);
105
127
  __exportStar(require("./MessagePart.js"), exports);
106
128
  __exportStar(require("./MessagesResponse.js"), exports);
107
129
  __exportStar(require("./MintUploadUrl403Response.js"), exports);
130
+ __exportStar(require("./ModelEndpointView.js"), exports);
131
+ __exportStar(require("./ModelView.js"), exports);
132
+ __exportStar(require("./ModelsResponse.js"), exports);
108
133
  __exportStar(require("./PageAgentConversationView.js"), exports);
109
134
  __exportStar(require("./PageAppView.js"), exports);
110
135
  __exportStar(require("./PageCollectionBindingView.js"), exports);
@@ -131,6 +156,7 @@ __exportStar(require("./SearchResult.js"), exports);
131
156
  __exportStar(require("./ServerSideIngestError.js"), exports);
132
157
  __exportStar(require("./ServerSideIngestFile.js"), exports);
133
158
  __exportStar(require("./ServerSideIngestResponse.js"), exports);
159
+ __exportStar(require("./SettingsIssueView.js"), exports);
134
160
  __exportStar(require("./SkillDetailView.js"), exports);
135
161
  __exportStar(require("./SkillResource.js"), exports);
136
162
  __exportStar(require("./SkillUpdate.js"), exports);
@@ -151,3 +177,5 @@ __exportStar(require("./UploadUrlBody.js"), exports);
151
177
  __exportStar(require("./UploadUrlResponse.js"), exports);
152
178
  __exportStar(require("./ValidationError.js"), exports);
153
179
  __exportStar(require("./ValidationErrorLocInner.js"), exports);
180
+ __exportStar(require("./VersionCommitBody.js"), exports);
181
+ __exportStar(require("./VersionUploadUrlBody.js"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sarvam-agents-client",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "description": "Client for the Sarvam Agents API: chat with an agent, exchange files with it, and set it up from your own code.",
5
5
  "author": "Sarvam AI <support@sarvam.ai>",
6
6
  "license": "MIT",
@@ -25,6 +25,11 @@
25
25
  "import": "./dist/esm/index.js",
26
26
  "require": "./dist/index.js"
27
27
  },
28
+ "./compose": {
29
+ "types": "./dist/compose/index.d.ts",
30
+ "import": "./dist/esm/compose/index.js",
31
+ "require": "./dist/compose/index.js"
32
+ },
28
33
  "./package.json": "./package.json"
29
34
  },
30
35
  "files": [
@@ -38,10 +43,18 @@
38
43
  },
39
44
  "scripts": {
40
45
  "build": "tsc && tsc -p tsconfig.esm.json && node -e \"require('fs').writeFileSync('dist/esm/package.json', '{\\\"type\\\": \\\"module\\\"}')\"",
41
- "test": "node --test test/streaming.test.mjs test/security.test.mjs",
46
+ "test": "node --test test/*.test.mjs test/compose/*.test.mjs test/live/*.test.mjs",
42
47
  "prepublishOnly": "npm run build && npm test"
43
48
  },
44
49
  "devDependencies": {
50
+ "@types/node": "^18.19.130",
45
51
  "typescript": "5.6.3"
52
+ },
53
+ "typesVersions": {
54
+ "*": {
55
+ "compose": [
56
+ "./dist/compose/index.d.ts"
57
+ ]
58
+ }
46
59
  }
47
60
  }
@@ -17,8 +17,10 @@ import * as runtime from '../runtime.js';
17
17
  import type {
18
18
  AgentConversationDetail,
19
19
  ChatError,
20
+ DownloadUrlResponse,
20
21
  HTTPValidationError,
21
- MintUploadUrl403Response,
22
+ ListModels403Response,
23
+ MessagesResponse,
22
24
  PageAgentConversationView,
23
25
  } from '../models/index.js';
24
26
  import {
@@ -26,24 +28,45 @@ import {
26
28
  AgentConversationDetailToJSON,
27
29
  ChatErrorFromJSON,
28
30
  ChatErrorToJSON,
31
+ DownloadUrlResponseFromJSON,
32
+ DownloadUrlResponseToJSON,
29
33
  HTTPValidationErrorFromJSON,
30
34
  HTTPValidationErrorToJSON,
31
- MintUploadUrl403ResponseFromJSON,
32
- MintUploadUrl403ResponseToJSON,
35
+ ListModels403ResponseFromJSON,
36
+ ListModels403ResponseToJSON,
37
+ MessagesResponseFromJSON,
38
+ MessagesResponseToJSON,
33
39
  PageAgentConversationViewFromJSON,
34
40
  PageAgentConversationViewToJSON,
35
41
  } from '../models/index.js';
36
42
 
43
+ export interface AgentConversationArtifactDownloadUrlRequest {
44
+ agentId: string;
45
+ conversationId: string;
46
+ artifactId: string;
47
+ expires?: number;
48
+ disposition?: AgentConversationArtifactDownloadUrlDispositionEnum;
49
+ }
50
+
37
51
  export interface GetAgentConversationRequest {
38
52
  agentId: string;
39
53
  conversationId: string;
40
54
  }
41
55
 
56
+ export interface ListAgentConversationMessagesRequest {
57
+ agentId: string;
58
+ conversationId: string;
59
+ before: string;
60
+ turnLimit?: number | null;
61
+ }
62
+
42
63
  export interface ListAgentConversationsRequest {
43
64
  agentId: string;
44
65
  limit?: number;
45
66
  cursor?: string | null;
46
67
  sessionType?: ListAgentConversationsSessionTypeEnum;
68
+ workspaceId?: Array<string>;
69
+ mine?: boolean | null;
47
70
  }
48
71
 
49
72
  /**
@@ -51,6 +74,71 @@ export interface ListAgentConversationsRequest {
51
74
  */
52
75
  export class AgentConversationsApi extends runtime.BaseAPI {
53
76
 
77
+ /**
78
+ * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign through the owner-identity route the share links use. The gateway still checks the ids against the artifact\'s real owner.
79
+ * Agent Conversation Artifact Download Url Route
80
+ */
81
+ async agentConversationArtifactDownloadUrlRaw(requestParameters: AgentConversationArtifactDownloadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DownloadUrlResponse>> {
82
+ if (requestParameters['agentId'] == null) {
83
+ throw new runtime.RequiredError(
84
+ 'agentId',
85
+ 'Required parameter "agentId" was null or undefined when calling agentConversationArtifactDownloadUrl().'
86
+ );
87
+ }
88
+
89
+ if (requestParameters['conversationId'] == null) {
90
+ throw new runtime.RequiredError(
91
+ 'conversationId',
92
+ 'Required parameter "conversationId" was null or undefined when calling agentConversationArtifactDownloadUrl().'
93
+ );
94
+ }
95
+
96
+ if (requestParameters['artifactId'] == null) {
97
+ throw new runtime.RequiredError(
98
+ 'artifactId',
99
+ 'Required parameter "artifactId" was null or undefined when calling agentConversationArtifactDownloadUrl().'
100
+ );
101
+ }
102
+
103
+ const queryParameters: any = {};
104
+
105
+ if (requestParameters['expires'] != null) {
106
+ queryParameters['expires'] = requestParameters['expires'];
107
+ }
108
+
109
+ if (requestParameters['disposition'] != null) {
110
+ queryParameters['disposition'] = requestParameters['disposition'];
111
+ }
112
+
113
+ const headerParameters: runtime.HTTPHeaders = {};
114
+
115
+ if (this.configuration && this.configuration.accessToken) {
116
+ const token = this.configuration.accessToken;
117
+ const tokenString = await token("bearerAuth", []);
118
+
119
+ if (tokenString) {
120
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
121
+ }
122
+ }
123
+ const response = await this.request({
124
+ path: `/v1/agents/{agentId}/conversations/{conversationId}/artifacts/{artifactId}/download-url`.replace(`{${"agentId"}}`, runtime.encodePathParam('agentId', requestParameters['agentId'])).replace(`{${"conversationId"}}`, runtime.encodePathParam('conversationId', requestParameters['conversationId'])).replace(`{${"artifactId"}}`, runtime.encodePathParam('artifactId', requestParameters['artifactId'])),
125
+ method: 'GET',
126
+ headers: headerParameters,
127
+ query: queryParameters,
128
+ }, initOverrides);
129
+
130
+ return new runtime.JSONApiResponse(response, (jsonValue) => DownloadUrlResponseFromJSON(jsonValue));
131
+ }
132
+
133
+ /**
134
+ * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign through the owner-identity route the share links use. The gateway still checks the ids against the artifact\'s real owner.
135
+ * Agent Conversation Artifact Download Url Route
136
+ */
137
+ async agentConversationArtifactDownloadUrl(requestParameters: AgentConversationArtifactDownloadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DownloadUrlResponse> {
138
+ const response = await this.agentConversationArtifactDownloadUrlRaw(requestParameters, initOverrides);
139
+ return await response.value();
140
+ }
141
+
54
142
  /**
55
143
  * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
56
144
  * Get Agent Conversation Route
@@ -101,6 +189,71 @@ export class AgentConversationsApi extends runtime.BaseAPI {
101
189
  return await response.value();
102
190
  }
103
191
 
192
+ /**
193
+ * Older history of one session from the log: the backward page of the self route ``GET /v1/conversations/{id}/messages?before=``. Only the backward path is offered, because the detail already returns the newest window and there is no live stream to catch up with.
194
+ * List Agent Conversation Messages Route
195
+ */
196
+ async listAgentConversationMessagesRaw(requestParameters: ListAgentConversationMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessagesResponse>> {
197
+ if (requestParameters['agentId'] == null) {
198
+ throw new runtime.RequiredError(
199
+ 'agentId',
200
+ 'Required parameter "agentId" was null or undefined when calling listAgentConversationMessages().'
201
+ );
202
+ }
203
+
204
+ if (requestParameters['conversationId'] == null) {
205
+ throw new runtime.RequiredError(
206
+ 'conversationId',
207
+ 'Required parameter "conversationId" was null or undefined when calling listAgentConversationMessages().'
208
+ );
209
+ }
210
+
211
+ if (requestParameters['before'] == null) {
212
+ throw new runtime.RequiredError(
213
+ 'before',
214
+ 'Required parameter "before" was null or undefined when calling listAgentConversationMessages().'
215
+ );
216
+ }
217
+
218
+ const queryParameters: any = {};
219
+
220
+ if (requestParameters['before'] != null) {
221
+ queryParameters['before'] = requestParameters['before'];
222
+ }
223
+
224
+ if (requestParameters['turnLimit'] != null) {
225
+ queryParameters['turnLimit'] = requestParameters['turnLimit'];
226
+ }
227
+
228
+ const headerParameters: runtime.HTTPHeaders = {};
229
+
230
+ if (this.configuration && this.configuration.accessToken) {
231
+ const token = this.configuration.accessToken;
232
+ const tokenString = await token("bearerAuth", []);
233
+
234
+ if (tokenString) {
235
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
236
+ }
237
+ }
238
+ const response = await this.request({
239
+ path: `/v1/agents/{agentId}/conversations/{conversationId}/messages`.replace(`{${"agentId"}}`, runtime.encodePathParam('agentId', requestParameters['agentId'])).replace(`{${"conversationId"}}`, runtime.encodePathParam('conversationId', requestParameters['conversationId'])),
240
+ method: 'GET',
241
+ headers: headerParameters,
242
+ query: queryParameters,
243
+ }, initOverrides);
244
+
245
+ return new runtime.JSONApiResponse(response, (jsonValue) => MessagesResponseFromJSON(jsonValue));
246
+ }
247
+
248
+ /**
249
+ * Older history of one session from the log: the backward page of the self route ``GET /v1/conversations/{id}/messages?before=``. Only the backward path is offered, because the detail already returns the newest window and there is no live stream to catch up with.
250
+ * List Agent Conversation Messages Route
251
+ */
252
+ async listAgentConversationMessages(requestParameters: ListAgentConversationMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessagesResponse> {
253
+ const response = await this.listAgentConversationMessagesRaw(requestParameters, initOverrides);
254
+ return await response.value();
255
+ }
256
+
104
257
  /**
105
258
  * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
106
259
  * List Agent Conversations Route
@@ -127,6 +280,14 @@ export class AgentConversationsApi extends runtime.BaseAPI {
127
280
  queryParameters['sessionType'] = requestParameters['sessionType'];
128
281
  }
129
282
 
283
+ if (requestParameters['workspaceId'] != null) {
284
+ queryParameters['workspaceId'] = requestParameters['workspaceId'];
285
+ }
286
+
287
+ if (requestParameters['mine'] != null) {
288
+ queryParameters['mine'] = requestParameters['mine'];
289
+ }
290
+
130
291
  const headerParameters: runtime.HTTPHeaders = {};
131
292
 
132
293
  if (this.configuration && this.configuration.accessToken) {
@@ -158,6 +319,14 @@ export class AgentConversationsApi extends runtime.BaseAPI {
158
319
 
159
320
  }
160
321
 
322
+ /**
323
+ * @export
324
+ */
325
+ export const AgentConversationArtifactDownloadUrlDispositionEnum = {
326
+ Inline: 'inline',
327
+ Attachment: 'attachment'
328
+ } as const;
329
+ export type AgentConversationArtifactDownloadUrlDispositionEnum = typeof AgentConversationArtifactDownloadUrlDispositionEnum[keyof typeof AgentConversationArtifactDownloadUrlDispositionEnum];
161
330
  /**
162
331
  * @export
163
332
  */