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
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { CustomApiName } from './CustomApiName.js';
17
+ import {
18
+ CustomApiNameFromJSON,
19
+ CustomApiNameFromJSONTyped,
20
+ CustomApiNameToJSON,
21
+ CustomApiNameToJSONTyped,
22
+ } from './CustomApiName.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AgentCustomApiList
28
+ */
29
+ export interface AgentCustomApiList {
30
+ /**
31
+ *
32
+ * @type {Array<CustomApiName>}
33
+ * @memberof AgentCustomApiList
34
+ */
35
+ data: Array<CustomApiName>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AgentCustomApiList interface.
40
+ */
41
+ export function instanceOfAgentCustomApiList(value: object): value is AgentCustomApiList {
42
+ if (!('data' in value) || value['data'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function AgentCustomApiListFromJSON(json: any): AgentCustomApiList {
47
+ return AgentCustomApiListFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function AgentCustomApiListFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentCustomApiList {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'data': ((json['data'] as Array<any>).map(CustomApiNameFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function AgentCustomApiListToJSON(json: any): AgentCustomApiList {
61
+ return AgentCustomApiListToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AgentCustomApiListToJSONTyped(value?: AgentCustomApiList | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'data': ((value['data'] as Array<any>).map(CustomApiNameToJSON)),
72
+ };
73
+ }
74
+
@@ -146,6 +146,12 @@ export interface AgentResource {
146
146
  * @memberof AgentResource
147
147
  */
148
148
  deployState?: AgentResourceDeployStateEnum | null;
149
+ /**
150
+ *
151
+ * @type {Date}
152
+ * @memberof AgentResource
153
+ */
154
+ deployedAt?: Date | null;
149
155
  /**
150
156
  *
151
157
  * @type {string}
@@ -158,6 +164,12 @@ export interface AgentResource {
158
164
  * @memberof AgentResource
159
165
  */
160
166
  isDefault?: boolean;
167
+ /**
168
+ *
169
+ * @type {{ [key: string]: any; }}
170
+ * @memberof AgentResource
171
+ */
172
+ settings?: { [key: string]: any; } | null;
161
173
  /**
162
174
  *
163
175
  * @type {number}
@@ -274,8 +286,10 @@ export function AgentResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
274
286
  'highlight': json['highlight'] == null ? undefined : ((json['highlight'] as Array<any>).map(FieldHighlightFromJSON)),
275
287
  'agentTypes': json['agentTypes'] == null ? undefined : json['agentTypes'],
276
288
  'deployState': json['deployState'] == null ? undefined : json['deployState'],
289
+ 'deployedAt': json['deployedAt'] == null ? undefined : (new Date(json['deployedAt'])),
277
290
  'clonedFromAgentId': json['clonedFromAgentId'] == null ? undefined : json['clonedFromAgentId'],
278
291
  'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
292
+ 'settings': json['settings'] == null ? undefined : json['settings'],
279
293
  'interactionCount': json['interactionCount'] == null ? undefined : json['interactionCount'],
280
294
  'slackChannelName': json['slackChannelName'] == null ? undefined : json['slackChannelName'],
281
295
  'slackUrl': json['slackUrl'] == null ? undefined : json['slackUrl'],
@@ -312,8 +326,10 @@ export function AgentResourceToJSONTyped(value?: AgentResource | null, ignoreDis
312
326
  'highlight': value['highlight'] == null ? undefined : ((value['highlight'] as Array<any>).map(FieldHighlightToJSON)),
313
327
  'agentTypes': value['agentTypes'],
314
328
  'deployState': value['deployState'],
329
+ 'deployedAt': value['deployedAt'] == null ? undefined : ((value['deployedAt'] as any).toISOString()),
315
330
  'clonedFromAgentId': value['clonedFromAgentId'],
316
331
  'isDefault': value['isDefault'],
332
+ 'settings': value['settings'],
317
333
  'interactionCount': value['interactionCount'],
318
334
  'slackChannelName': value['slackChannelName'],
319
335
  'slackUrl': value['slackUrl'],
@@ -0,0 +1,99 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { SettingsIssueView } from './SettingsIssueView.js';
17
+ import {
18
+ SettingsIssueViewFromJSON,
19
+ SettingsIssueViewFromJSONTyped,
20
+ SettingsIssueViewToJSON,
21
+ SettingsIssueViewToJSONTyped,
22
+ } from './SettingsIssueView.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AgentSettingsResponse
28
+ */
29
+ export interface AgentSettingsResponse {
30
+ /**
31
+ *
32
+ * @type {{ [key: string]: any; }}
33
+ * @memberof AgentSettingsResponse
34
+ */
35
+ settings: { [key: string]: any; };
36
+ /**
37
+ *
38
+ * @type {Array<SettingsIssueView>}
39
+ * @memberof AgentSettingsResponse
40
+ */
41
+ warnings: Array<SettingsIssueView>;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AgentSettingsResponse
46
+ */
47
+ version?: number | null;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AgentSettingsResponse
52
+ */
53
+ previousVersion?: number | null;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the AgentSettingsResponse interface.
58
+ */
59
+ export function instanceOfAgentSettingsResponse(value: object): value is AgentSettingsResponse {
60
+ if (!('settings' in value) || value['settings'] === undefined) return false;
61
+ if (!('warnings' in value) || value['warnings'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function AgentSettingsResponseFromJSON(json: any): AgentSettingsResponse {
66
+ return AgentSettingsResponseFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function AgentSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSettingsResponse {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'settings': json['settings'],
76
+ 'warnings': ((json['warnings'] as Array<any>).map(SettingsIssueViewFromJSON)),
77
+ 'version': json['version'] == null ? undefined : json['version'],
78
+ 'previousVersion': json['previousVersion'] == null ? undefined : json['previousVersion'],
79
+ };
80
+ }
81
+
82
+ export function AgentSettingsResponseToJSON(json: any): AgentSettingsResponse {
83
+ return AgentSettingsResponseToJSONTyped(json, false);
84
+ }
85
+
86
+ export function AgentSettingsResponseToJSONTyped(value?: AgentSettingsResponse | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'settings': value['settings'],
94
+ 'warnings': ((value['warnings'] as Array<any>).map(SettingsIssueViewToJSON)),
95
+ 'version': value['version'],
96
+ 'previousVersion': value['previousVersion'],
97
+ };
98
+ }
99
+
@@ -57,6 +57,12 @@ export interface AgentUpdate {
57
57
  * @memberof AgentUpdate
58
58
  */
59
59
  llmConfig?: { [key: string]: any; } | null;
60
+ /**
61
+ *
62
+ * @type {{ [key: string]: any; }}
63
+ * @memberof AgentUpdate
64
+ */
65
+ settings?: { [key: string]: any; } | null;
60
66
  }
61
67
 
62
68
  /**
@@ -81,6 +87,7 @@ export function AgentUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean
81
87
  'description': json['description'] == null ? undefined : json['description'],
82
88
  'appearance': json['appearance'] == null ? undefined : json['appearance'],
83
89
  'llmConfig': json['llmConfig'] == null ? undefined : json['llmConfig'],
90
+ 'settings': json['settings'] == null ? undefined : json['settings'],
84
91
  };
85
92
  }
86
93
 
@@ -100,6 +107,7 @@ export function AgentUpdateToJSONTyped(value?: AgentUpdate | null, ignoreDiscrim
100
107
  'description': value['description'],
101
108
  'appearance': value['appearance'],
102
109
  'llmConfig': value['llmConfig'],
110
+ 'settings': value['settings'],
103
111
  };
104
112
  }
105
113
 
@@ -0,0 +1,143 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * One linked account the caller can reach.
18
+ *
19
+ * ``id`` is the join key for ``AppResourceView.account_id`` and
20
+ * ``AppResourceCheckView.account_id``. ``owner_id`` / ``owner_login``
21
+ * are the provider's user/org, matching ``AppResourceView.owner_id``.
22
+ * @export
23
+ * @interface AppAccountView
24
+ */
25
+ export interface AppAccountView {
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof AppAccountView
30
+ */
31
+ id: number;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof AppAccountView
36
+ */
37
+ ownerLogin: string;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof AppAccountView
42
+ */
43
+ ownerId: number;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof AppAccountView
48
+ */
49
+ accountType: AppAccountViewAccountTypeEnum;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof AppAccountView
54
+ */
55
+ selection: AppAccountViewSelectionEnum;
56
+ /**
57
+ *
58
+ * @type {boolean}
59
+ * @memberof AppAccountView
60
+ */
61
+ suspended: boolean;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof AppAccountView
66
+ */
67
+ manageUrl?: string | null;
68
+ }
69
+
70
+
71
+ /**
72
+ * @export
73
+ */
74
+ export const AppAccountViewAccountTypeEnum = {
75
+ User: 'user',
76
+ Organization: 'organization'
77
+ } as const;
78
+ export type AppAccountViewAccountTypeEnum = typeof AppAccountViewAccountTypeEnum[keyof typeof AppAccountViewAccountTypeEnum];
79
+
80
+ /**
81
+ * @export
82
+ */
83
+ export const AppAccountViewSelectionEnum = {
84
+ All: 'all',
85
+ Selected: 'selected'
86
+ } as const;
87
+ export type AppAccountViewSelectionEnum = typeof AppAccountViewSelectionEnum[keyof typeof AppAccountViewSelectionEnum];
88
+
89
+
90
+ /**
91
+ * Check if a given object implements the AppAccountView interface.
92
+ */
93
+ export function instanceOfAppAccountView(value: object): value is AppAccountView {
94
+ if (!('id' in value) || value['id'] === undefined) return false;
95
+ if (!('ownerLogin' in value) || value['ownerLogin'] === undefined) return false;
96
+ if (!('ownerId' in value) || value['ownerId'] === undefined) return false;
97
+ if (!('accountType' in value) || value['accountType'] === undefined) return false;
98
+ if (!('selection' in value) || value['selection'] === undefined) return false;
99
+ if (!('suspended' in value) || value['suspended'] === undefined) return false;
100
+ return true;
101
+ }
102
+
103
+ export function AppAccountViewFromJSON(json: any): AppAccountView {
104
+ return AppAccountViewFromJSONTyped(json, false);
105
+ }
106
+
107
+ export function AppAccountViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppAccountView {
108
+ if (json == null) {
109
+ return json;
110
+ }
111
+ return {
112
+
113
+ 'id': json['id'],
114
+ 'ownerLogin': json['ownerLogin'],
115
+ 'ownerId': json['ownerId'],
116
+ 'accountType': json['accountType'],
117
+ 'selection': json['selection'],
118
+ 'suspended': json['suspended'],
119
+ 'manageUrl': json['manageUrl'] == null ? undefined : json['manageUrl'],
120
+ };
121
+ }
122
+
123
+ export function AppAccountViewToJSON(json: any): AppAccountView {
124
+ return AppAccountViewToJSONTyped(json, false);
125
+ }
126
+
127
+ export function AppAccountViewToJSONTyped(value?: AppAccountView | null, ignoreDiscriminator: boolean = false): any {
128
+ if (value == null) {
129
+ return value;
130
+ }
131
+
132
+ return {
133
+
134
+ 'id': value['id'],
135
+ 'ownerLogin': value['ownerLogin'],
136
+ 'ownerId': value['ownerId'],
137
+ 'accountType': value['accountType'],
138
+ 'selection': value['selection'],
139
+ 'suspended': value['suspended'],
140
+ 'manageUrl': value['manageUrl'],
141
+ };
142
+ }
143
+
@@ -0,0 +1,118 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { AppAccountView } from './AppAccountView.js';
17
+ import {
18
+ AppAccountViewFromJSON,
19
+ AppAccountViewFromJSONTyped,
20
+ AppAccountViewToJSON,
21
+ AppAccountViewToJSONTyped,
22
+ } from './AppAccountView.js';
23
+
24
+ /**
25
+ * ``GET /v1/apps/{integration_id}/accounts`` — identity + linked accounts.
26
+ * @export
27
+ * @interface AppAccountsView
28
+ */
29
+ export interface AppAccountsView {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AppAccountsView
34
+ */
35
+ connection: AppAccountsViewConnectionEnum;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AppAccountsView
40
+ */
41
+ login?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AppAccountsView
46
+ */
47
+ addAccountUrl?: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<AppAccountView>}
51
+ * @memberof AppAccountsView
52
+ */
53
+ accounts?: Array<AppAccountView>;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof AppAccountsView
58
+ */
59
+ truncated?: boolean;
60
+ }
61
+
62
+
63
+ /**
64
+ * @export
65
+ */
66
+ export const AppAccountsViewConnectionEnum = {
67
+ Connected: 'connected',
68
+ NotConnected: 'not_connected',
69
+ ReconnectRequired: 'reconnect_required'
70
+ } as const;
71
+ export type AppAccountsViewConnectionEnum = typeof AppAccountsViewConnectionEnum[keyof typeof AppAccountsViewConnectionEnum];
72
+
73
+
74
+ /**
75
+ * Check if a given object implements the AppAccountsView interface.
76
+ */
77
+ export function instanceOfAppAccountsView(value: object): value is AppAccountsView {
78
+ if (!('connection' in value) || value['connection'] === undefined) return false;
79
+ return true;
80
+ }
81
+
82
+ export function AppAccountsViewFromJSON(json: any): AppAccountsView {
83
+ return AppAccountsViewFromJSONTyped(json, false);
84
+ }
85
+
86
+ export function AppAccountsViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppAccountsView {
87
+ if (json == null) {
88
+ return json;
89
+ }
90
+ return {
91
+
92
+ 'connection': json['connection'],
93
+ 'login': json['login'] == null ? undefined : json['login'],
94
+ 'addAccountUrl': json['addAccountUrl'] == null ? undefined : json['addAccountUrl'],
95
+ 'accounts': json['accounts'] == null ? undefined : ((json['accounts'] as Array<any>).map(AppAccountViewFromJSON)),
96
+ 'truncated': json['truncated'] == null ? undefined : json['truncated'],
97
+ };
98
+ }
99
+
100
+ export function AppAccountsViewToJSON(json: any): AppAccountsView {
101
+ return AppAccountsViewToJSONTyped(json, false);
102
+ }
103
+
104
+ export function AppAccountsViewToJSONTyped(value?: AppAccountsView | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'connection': value['connection'],
112
+ 'login': value['login'],
113
+ 'addAccountUrl': value['addAccountUrl'],
114
+ 'accounts': value['accounts'] == null ? undefined : ((value['accounts'] as Array<any>).map(AppAccountViewToJSON)),
115
+ 'truncated': value['truncated'],
116
+ };
117
+ }
118
+
@@ -158,6 +158,42 @@ export interface AppResource {
158
158
  * @memberof AppResource
159
159
  */
160
160
  authType: AppResourceAuthTypeEnum;
161
+ /**
162
+ *
163
+ * @type {boolean}
164
+ * @memberof AppResource
165
+ */
166
+ setupRequired?: boolean;
167
+ /**
168
+ *
169
+ * @type {boolean}
170
+ * @memberof AppResource
171
+ */
172
+ canEditSetup?: boolean;
173
+ /**
174
+ *
175
+ * @type {boolean}
176
+ * @memberof AppResource
177
+ */
178
+ orgWide?: boolean;
179
+ /**
180
+ *
181
+ * @type {string}
182
+ * @memberof AppResource
183
+ */
184
+ orgName?: string | null;
185
+ /**
186
+ *
187
+ * @type {boolean}
188
+ * @memberof AppResource
189
+ */
190
+ isManagedConnector?: boolean;
191
+ /**
192
+ *
193
+ * @type {string}
194
+ * @memberof AppResource
195
+ */
196
+ connectorMode?: string | null;
161
197
  }
162
198
 
163
199
 
@@ -222,6 +258,12 @@ export function AppResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
222
258
  'iconUrl': json['iconUrl'] == null ? undefined : json['iconUrl'],
223
259
  'category': json['category'] == null ? undefined : AppCategoryFromJSON(json['category']),
224
260
  'authType': json['authType'],
261
+ 'setupRequired': json['setupRequired'] == null ? undefined : json['setupRequired'],
262
+ 'canEditSetup': json['canEditSetup'] == null ? undefined : json['canEditSetup'],
263
+ 'orgWide': json['orgWide'] == null ? undefined : json['orgWide'],
264
+ 'orgName': json['orgName'] == null ? undefined : json['orgName'],
265
+ 'isManagedConnector': json['isManagedConnector'] == null ? undefined : json['isManagedConnector'],
266
+ 'connectorMode': json['connectorMode'] == null ? undefined : json['connectorMode'],
225
267
  };
226
268
  }
227
269
 
@@ -254,6 +296,12 @@ export function AppResourceToJSONTyped(value?: AppResource | null, ignoreDiscrim
254
296
  'iconUrl': value['iconUrl'],
255
297
  'category': AppCategoryToJSON(value['category']),
256
298
  'authType': value['authType'],
299
+ 'setupRequired': value['setupRequired'],
300
+ 'canEditSetup': value['canEditSetup'],
301
+ 'orgWide': value['orgWide'],
302
+ 'orgName': value['orgName'],
303
+ 'isManagedConnector': value['isManagedConnector'],
304
+ 'connectorMode': value['connectorMode'],
257
305
  };
258
306
  }
259
307
 
@@ -0,0 +1,117 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * ``GET /v1/apps/{integration_id}/resources/{namespace}/{name}``.
18
+ *
19
+ * ``state``: ``has_access`` (in a linked account), ``read_only`` (public,
20
+ * no account), ``not_selected`` (the owner's account does not include
21
+ * it), ``not_installed`` (no account on the owner), ``not_visible``
22
+ * (the provider hides it from this user), ``suspended`` (the owner's
23
+ * account is suspended), ``unknown`` (the listing cap was hit first,
24
+ * or the account's resource list was hidden while the resource itself
25
+ * is visible), ``not_connected`` / ``reconnect_required`` (no usable
26
+ * connection).
27
+ * @export
28
+ * @interface AppResourceCheckView
29
+ */
30
+ export interface AppResourceCheckView {
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof AppResourceCheckView
35
+ */
36
+ state: AppResourceCheckViewStateEnum;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof AppResourceCheckView
41
+ */
42
+ accountId?: number | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AppResourceCheckView
47
+ */
48
+ actionUrl?: string | null;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof AppResourceCheckView
53
+ */
54
+ truncated?: boolean;
55
+ }
56
+
57
+
58
+ /**
59
+ * @export
60
+ */
61
+ export const AppResourceCheckViewStateEnum = {
62
+ HasAccess: 'has_access',
63
+ ReadOnly: 'read_only',
64
+ NotSelected: 'not_selected',
65
+ NotInstalled: 'not_installed',
66
+ NotVisible: 'not_visible',
67
+ Suspended: 'suspended',
68
+ Unknown: 'unknown',
69
+ NotConnected: 'not_connected',
70
+ ReconnectRequired: 'reconnect_required'
71
+ } as const;
72
+ export type AppResourceCheckViewStateEnum = typeof AppResourceCheckViewStateEnum[keyof typeof AppResourceCheckViewStateEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the AppResourceCheckView interface.
77
+ */
78
+ export function instanceOfAppResourceCheckView(value: object): value is AppResourceCheckView {
79
+ if (!('state' in value) || value['state'] === undefined) return false;
80
+ return true;
81
+ }
82
+
83
+ export function AppResourceCheckViewFromJSON(json: any): AppResourceCheckView {
84
+ return AppResourceCheckViewFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function AppResourceCheckViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppResourceCheckView {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'state': json['state'],
94
+ 'accountId': json['accountId'] == null ? undefined : json['accountId'],
95
+ 'actionUrl': json['actionUrl'] == null ? undefined : json['actionUrl'],
96
+ 'truncated': json['truncated'] == null ? undefined : json['truncated'],
97
+ };
98
+ }
99
+
100
+ export function AppResourceCheckViewToJSON(json: any): AppResourceCheckView {
101
+ return AppResourceCheckViewToJSONTyped(json, false);
102
+ }
103
+
104
+ export function AppResourceCheckViewToJSONTyped(value?: AppResourceCheckView | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'state': value['state'],
112
+ 'accountId': value['accountId'],
113
+ 'actionUrl': value['actionUrl'],
114
+ 'truncated': value['truncated'],
115
+ };
116
+ }
117
+