@stack-spot/portal-network 1.0.0-betaadp.3 → 1.0.0-dev.1768423147036

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 (220) hide show
  1. package/CHANGELOG.md +633 -0
  2. package/dist/api/account.d.ts +413 -277
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +261 -176
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/accountAssetManager.d.ts +309 -0
  7. package/dist/api/accountAssetManager.d.ts.map +1 -0
  8. package/dist/api/accountAssetManager.js +169 -0
  9. package/dist/api/accountAssetManager.js.map +1 -0
  10. package/dist/api/agent-tools.d.ts +818 -261
  11. package/dist/api/agent-tools.d.ts.map +1 -1
  12. package/dist/api/agent-tools.js +245 -50
  13. package/dist/api/agent-tools.js.map +1 -1
  14. package/dist/api/agent.d.ts +55 -55
  15. package/dist/api/agent.d.ts.map +1 -1
  16. package/dist/api/ai.d.ts +488 -98
  17. package/dist/api/ai.d.ts.map +1 -1
  18. package/dist/api/ai.js +426 -146
  19. package/dist/api/ai.js.map +1 -1
  20. package/dist/api/cloudPlatform.d.ts +374 -221
  21. package/dist/api/cloudPlatform.d.ts.map +1 -1
  22. package/dist/api/cloudPlatform.js +299 -93
  23. package/dist/api/cloudPlatform.js.map +1 -1
  24. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  25. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  26. package/dist/api/cloudPlatformHorizon.js +69 -1
  27. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  28. package/dist/api/codeShift.d.ts +1125 -83
  29. package/dist/api/codeShift.d.ts.map +1 -1
  30. package/dist/api/codeShift.js +538 -16
  31. package/dist/api/codeShift.js.map +1 -1
  32. package/dist/api/dataIntegration.d.ts +291 -1
  33. package/dist/api/dataIntegration.d.ts.map +1 -1
  34. package/dist/api/dataIntegration.js +254 -0
  35. package/dist/api/dataIntegration.js.map +1 -1
  36. package/dist/api/discover.d.ts +98 -12
  37. package/dist/api/discover.d.ts.map +1 -1
  38. package/dist/api/discover.js +78 -2
  39. package/dist/api/discover.js.map +1 -1
  40. package/dist/api/edpBfa.d.ts +215 -0
  41. package/dist/api/edpBfa.d.ts.map +1 -0
  42. package/dist/api/edpBfa.js +87 -0
  43. package/dist/api/edpBfa.js.map +1 -0
  44. package/dist/api/genAiInference.d.ts +22 -2
  45. package/dist/api/genAiInference.d.ts.map +1 -1
  46. package/dist/api/genAiInference.js +22 -3
  47. package/dist/api/genAiInference.js.map +1 -1
  48. package/dist/api/workflows.d.ts +68 -5
  49. package/dist/api/workflows.d.ts.map +1 -1
  50. package/dist/api/workflows.js +16 -0
  51. package/dist/api/workflows.js.map +1 -1
  52. package/dist/api/workspace-ai.d.ts +41 -0
  53. package/dist/api/workspace-ai.d.ts.map +1 -1
  54. package/dist/api/workspace-ai.js +34 -0
  55. package/dist/api/workspace-ai.js.map +1 -1
  56. package/dist/api/workspaceManager.d.ts +16 -10
  57. package/dist/api/workspaceManager.d.ts.map +1 -1
  58. package/dist/api/workspaceManager.js +10 -0
  59. package/dist/api/workspaceManager.js.map +1 -1
  60. package/dist/api-addresses.d.ts +20 -18
  61. package/dist/api-addresses.d.ts.map +1 -1
  62. package/dist/api-addresses.js +81 -21
  63. package/dist/api-addresses.js.map +1 -1
  64. package/dist/apis-itau.json +241 -0
  65. package/dist/apis.json +17 -1
  66. package/dist/client/account-asset-manager.d.ts +112 -0
  67. package/dist/client/account-asset-manager.d.ts.map +1 -0
  68. package/dist/client/account-asset-manager.js +160 -0
  69. package/dist/client/account-asset-manager.js.map +1 -0
  70. package/dist/client/account.d.ts +265 -242
  71. package/dist/client/account.d.ts.map +1 -1
  72. package/dist/client/account.js +80 -34
  73. package/dist/client/account.js.map +1 -1
  74. package/dist/client/agent-tools.d.ts +295 -121
  75. package/dist/client/agent-tools.d.ts.map +1 -1
  76. package/dist/client/agent-tools.js +166 -12
  77. package/dist/client/agent-tools.js.map +1 -1
  78. package/dist/client/agent.d.ts +46 -46
  79. package/dist/client/agent.d.ts.map +1 -1
  80. package/dist/client/ai.d.ts +265 -79
  81. package/dist/client/ai.d.ts.map +1 -1
  82. package/dist/client/ai.js +268 -24
  83. package/dist/client/ai.js.map +1 -1
  84. package/dist/client/api-management.d.ts +10 -1
  85. package/dist/client/api-management.d.ts.map +1 -1
  86. package/dist/client/api-management.js +11 -2
  87. package/dist/client/api-management.js.map +1 -1
  88. package/dist/client/cloud-account.d.ts +13 -13
  89. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  90. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  91. package/dist/client/cloud-platform-horizon.js +19 -1
  92. package/dist/client/cloud-platform-horizon.js.map +1 -1
  93. package/dist/client/cloud-platform.d.ts +213 -46
  94. package/dist/client/cloud-platform.d.ts.map +1 -1
  95. package/dist/client/cloud-platform.js +168 -33
  96. package/dist/client/cloud-platform.js.map +1 -1
  97. package/dist/client/cloud-runtimes.d.ts +4 -4
  98. package/dist/client/cloud-services.d.ts +17 -17
  99. package/dist/client/cloud-services.d.ts.map +1 -1
  100. package/dist/client/code-shift.d.ts +535 -162
  101. package/dist/client/code-shift.d.ts.map +1 -1
  102. package/dist/client/code-shift.js +296 -7
  103. package/dist/client/code-shift.js.map +1 -1
  104. package/dist/client/content.d.ts +127 -132
  105. package/dist/client/content.d.ts.map +1 -1
  106. package/dist/client/data-integration.d.ts +92 -53
  107. package/dist/client/data-integration.d.ts.map +1 -1
  108. package/dist/client/data-integration.js +38 -2
  109. package/dist/client/data-integration.js.map +1 -1
  110. package/dist/client/discover.d.ts +31 -10
  111. package/dist/client/discover.d.ts.map +1 -1
  112. package/dist/client/discover.js +239 -3
  113. package/dist/client/discover.js.map +1 -1
  114. package/dist/client/edp-bfa.d.ts +16 -0
  115. package/dist/client/edp-bfa.d.ts.map +1 -0
  116. package/dist/client/edp-bfa.js +24 -0
  117. package/dist/client/edp-bfa.js.map +1 -0
  118. package/dist/client/event-bus.d.ts.map +1 -1
  119. package/dist/client/gen-ai-inference.d.ts +20 -20
  120. package/dist/client/insights.d.ts +7 -7
  121. package/dist/client/notification.d.ts +17 -10
  122. package/dist/client/notification.d.ts.map +1 -1
  123. package/dist/client/notification.js +10 -1
  124. package/dist/client/notification.js.map +1 -1
  125. package/dist/client/runtime-manager.d.ts +8 -8
  126. package/dist/client/secrets.d.ts.map +1 -1
  127. package/dist/client/secrets.js +1 -1
  128. package/dist/client/secrets.js.map +1 -1
  129. package/dist/client/types.d.ts +50 -7
  130. package/dist/client/types.d.ts.map +1 -1
  131. package/dist/client/workflow.d.ts +10 -10
  132. package/dist/client/workspace-ai.d.ts +65 -55
  133. package/dist/client/workspace-ai.d.ts.map +1 -1
  134. package/dist/client/workspace-ai.js +19 -9
  135. package/dist/client/workspace-ai.js.map +1 -1
  136. package/dist/client/workspace-manager.d.ts +115 -76
  137. package/dist/client/workspace-manager.d.ts.map +1 -1
  138. package/dist/client/workspace-manager.js +47 -2
  139. package/dist/client/workspace-manager.js.map +1 -1
  140. package/dist/client/workspace-search.d.ts +2 -2
  141. package/dist/client/workspace.d.ts +58 -105
  142. package/dist/client/workspace.d.ts.map +1 -1
  143. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  144. package/dist/error/DefaultAPIError.js.map +1 -1
  145. package/dist/error/StackspotAPIError.d.ts +3 -4
  146. package/dist/error/StackspotAPIError.d.ts.map +1 -1
  147. package/dist/error/StackspotAPIError.js +3 -3
  148. package/dist/error/StackspotAPIError.js.map +1 -1
  149. package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
  150. package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
  151. package/dist/error/dictionary/accountAssetManager.js +11 -0
  152. package/dist/error/dictionary/accountAssetManager.js.map +1 -0
  153. package/dist/error/dictionary/cloud-platform.d.ts +76 -8
  154. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  155. package/dist/error/dictionary/cloud-platform.js +80 -12
  156. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  157. package/dist/error/dictionary/workspace-ai.d.ts +9 -0
  158. package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
  159. package/dist/error/dictionary/workspace-ai.js +9 -0
  160. package/dist/error/dictionary/workspace-ai.js.map +1 -0
  161. package/dist/index.d.ts +5 -3
  162. package/dist/index.d.ts.map +1 -1
  163. package/dist/index.js +4 -2
  164. package/dist/index.js.map +1 -1
  165. package/dist/network/NetworkClient.d.ts +4 -2
  166. package/dist/network/NetworkClient.d.ts.map +1 -1
  167. package/dist/network/NetworkClient.js +16 -4
  168. package/dist/network/NetworkClient.js.map +1 -1
  169. package/dist/network/types.d.ts +2 -0
  170. package/dist/network/types.d.ts.map +1 -1
  171. package/dist/utils/StreamedJson.d.ts +3 -1
  172. package/dist/utils/StreamedJson.d.ts.map +1 -1
  173. package/dist/utils/StreamedJson.js +23 -3
  174. package/dist/utils/StreamedJson.js.map +1 -1
  175. package/package.dev.json +3 -0
  176. package/package.json +10 -9
  177. package/package.stg.json +3 -0
  178. package/readme.md +40 -1
  179. package/src/api/account.ts +701 -540
  180. package/src/api/accountAssetManager.ts +771 -0
  181. package/src/api/agent-tools.ts +1354 -556
  182. package/src/api/ai.ts +891 -170
  183. package/src/api/cloudPlatform.ts +667 -298
  184. package/src/api/cloudPlatformHorizon.ts +412 -9
  185. package/src/api/codeShift.ts +2088 -97
  186. package/src/api/dataIntegration.ts +635 -1
  187. package/src/api/discover.ts +180 -14
  188. package/src/api/edpBfa.ts +472 -0
  189. package/src/api/genAiInference.ts +47 -4
  190. package/src/api/workflows.ts +100 -5
  191. package/src/api/workspace-ai.ts +83 -0
  192. package/src/api/workspaceManager.ts +25 -10
  193. package/src/api-addresses.ts +113 -38
  194. package/src/apis-itau.json +241 -0
  195. package/src/apis.json +17 -1
  196. package/src/client/account-asset-manager.ts +100 -0
  197. package/src/client/account.ts +71 -40
  198. package/src/client/agent-tools.ts +111 -18
  199. package/src/client/ai.ts +237 -24
  200. package/src/client/api-management.ts +7 -2
  201. package/src/client/cloud-platform-horizon.ts +12 -4
  202. package/src/client/cloud-platform.ts +101 -27
  203. package/src/client/code-shift.ts +196 -8
  204. package/src/client/data-integration.ts +28 -1
  205. package/src/client/discover.ts +238 -5
  206. package/src/client/edp-bfa.ts +24 -0
  207. package/src/client/notification.ts +6 -1
  208. package/src/client/secrets.ts +1 -1
  209. package/src/client/types.ts +55 -9
  210. package/src/client/workspace-ai.ts +37 -26
  211. package/src/client/workspace-manager.ts +31 -2
  212. package/src/error/DefaultAPIError.ts +5 -5
  213. package/src/error/StackspotAPIError.ts +4 -4
  214. package/src/error/dictionary/accountAssetManager.ts +12 -0
  215. package/src/error/dictionary/cloud-platform.ts +80 -12
  216. package/src/error/dictionary/workspace-ai.ts +10 -0
  217. package/src/index.ts +6 -3
  218. package/src/network/NetworkClient.ts +18 -6
  219. package/src/network/types.ts +3 -0
  220. package/src/utils/StreamedJson.tsx +19 -4
@@ -28,6 +28,7 @@ export type HttpValidationError = {
28
28
  detail?: ValidationError[];
29
29
  };
30
30
  export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
31
+ export type ToolkitType = "mcp" | "web_request";
31
32
  export type CustomToolkitSimpleResponse = {
32
33
  id: string;
33
34
  name: string;
@@ -35,6 +36,7 @@ export type CustomToolkitSimpleResponse = {
35
36
  avatar?: string | null;
36
37
  visibility_level: VisibilityLevelEnum;
37
38
  creator_name: string | null;
39
+ toolkit_type?: ToolkitType | null;
38
40
  };
39
41
  export type ToolkitRequest = {
40
42
  /** Toolkit name (up to 150 characters, required) */
@@ -46,6 +48,20 @@ export type ToolkitRequest = {
46
48
  /** Visibility level (default 'PERSONAL') */
47
49
  visibility_level?: VisibilityLevelEnum;
48
50
  };
51
+ export type ToolkitMcpRequest = {
52
+ /** Toolkit name (up to 150 characters, required) */
53
+ name: string;
54
+ /** Toolkit description (up to 1024 characters, optional) */
55
+ description?: string | null;
56
+ /** Toolkit avatar (text base64, optional) */
57
+ avatar?: string | null;
58
+ /** Visibility level (default 'PERSONAL') */
59
+ visibility_level?: VisibilityLevelEnum;
60
+ url: string;
61
+ toolkit_type: ToolkitType;
62
+ /** List of secret IDs (optional) */
63
+ secrets?: string[] | null;
64
+ };
49
65
  export type CreatedResponse = {
50
66
  id: string;
51
67
  };
@@ -71,10 +87,12 @@ export type CustomToolkitResponse = {
71
87
  avatar?: string | null;
72
88
  visibility_level: VisibilityLevelEnum;
73
89
  creator_name: string | null;
90
+ toolkit_type?: ToolkitType | null;
74
91
  tools: CustomToolkitToolResponse[];
75
92
  secret_id?: string | null;
76
93
  secrets?: string[] | null;
77
94
  is_usable_by_others: boolean;
95
+ url?: string | null;
78
96
  };
79
97
  export type ToolkitUpdateRequest = {
80
98
  /** Toolkit name (up to 150 characters, optional) */
@@ -90,6 +108,22 @@ export type ToolkitUpdateRequest = {
90
108
  /** List of secret IDs (optional) */
91
109
  secrets?: string[] | null;
92
110
  };
111
+ export type ToolkitMcpUpdateRequest = {
112
+ /** Toolkit name (up to 150 characters, optional) */
113
+ name?: string | null;
114
+ /** Toolkit description (up to 1024 characters, optional) */
115
+ description?: string | null;
116
+ /** Toolkit avatar (text base64, optional) */
117
+ avatar?: string | null;
118
+ /** Visibility level (optional) */
119
+ visibility_level?: VisibilityLevelEnum | null;
120
+ /** IAM secret ID (optional) */
121
+ secret_id?: string | null;
122
+ /** List of secret IDs (optional) */
123
+ secrets?: string[] | null;
124
+ /** MCP Server URL */
125
+ url?: string | null;
126
+ };
93
127
  export type ToolkitForkRequest = {
94
128
  /** Toolkit name (up to 150 characters, required) */
95
129
  name: string;
@@ -99,148 +133,7 @@ export type ToolkitForkRequest = {
99
133
  avatar?: string | null;
100
134
  };
101
135
  export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
102
- export type Reference = {
103
- $ref: string;
104
- summary?: string | null;
105
- description?: string | null;
106
- [key: string]: any;
107
- };
108
- export type DataType = "null" | "string" | "number" | "integer" | "boolean" | "array" | "object";
109
- export type Discriminator = {
110
- propertyName: string;
111
- mapping?: {
112
- [key: string]: string;
113
- } | null;
114
- [key: string]: any;
115
- };
116
- export type Xml = {
117
- name?: string | null;
118
- "namespace"?: string | null;
119
- prefix?: string | null;
120
- attribute?: boolean;
121
- wrapped?: boolean;
122
- [key: string]: any;
123
- };
124
- export type ExternalDocumentation = {
125
- description?: string | null;
126
- url: string;
127
- [key: string]: any;
128
- };
129
- export type Schema = {
130
- allOf?: (Reference | Schema)[] | null;
131
- anyOf?: (Reference | Schema)[] | null;
132
- oneOf?: (Reference | Schema)[] | null;
133
- not?: Reference | Schema | null;
134
- "if"?: Reference | Schema | null;
135
- then?: Reference | Schema | null;
136
- "else"?: Reference | Schema | null;
137
- dependentSchemas?: {
138
- [key: string]: Reference | Schema;
139
- } | null;
140
- prefixItems?: (Reference | Schema)[] | null;
141
- items?: Reference | Schema | null;
142
- contains?: Reference | Schema | null;
143
- properties?: {
144
- [key: string]: Reference | Schema;
145
- } | null;
146
- patternProperties?: {
147
- [key: string]: Reference | Schema;
148
- } | null;
149
- additionalProperties?: Reference | Schema | boolean | null;
150
- propertyNames?: Reference | Schema | null;
151
- unevaluatedItems?: Reference | Schema | null;
152
- unevaluatedProperties?: Reference | Schema | null;
153
- "type"?: DataType | DataType[] | null;
154
- "enum"?: any[] | null;
155
- "const"?: any | null;
156
- multipleOf?: number | null;
157
- maximum?: number | null;
158
- exclusiveMaximum?: number | null;
159
- minimum?: number | null;
160
- exclusiveMinimum?: number | null;
161
- maxLength?: number | null;
162
- minLength?: number | null;
163
- pattern?: string | null;
164
- maxItems?: number | null;
165
- minItems?: number | null;
166
- uniqueItems?: boolean | null;
167
- maxContains?: number | null;
168
- minContains?: number | null;
169
- maxProperties?: number | null;
170
- minProperties?: number | null;
171
- required?: string[] | null;
172
- dependentRequired?: {
173
- [key: string]: string[];
174
- } | null;
175
- format?: string | null;
176
- contentEncoding?: string | null;
177
- contentMediaType?: string | null;
178
- contentSchema?: Reference | Schema | null;
179
- title?: string | null;
180
- description?: string | null;
181
- "default"?: any | null;
182
- deprecated?: boolean | null;
183
- readOnly?: boolean | null;
184
- writeOnly?: boolean | null;
185
- discriminator?: Discriminator | null;
186
- xml?: Xml | null;
187
- externalDocs?: ExternalDocumentation | null;
188
- [key: string]: any;
189
- };
190
- export type Header = {
191
- description?: string | null;
192
- required?: boolean;
193
- deprecated?: boolean;
194
- style?: string | null;
195
- explode?: boolean | null;
196
- schema?: Reference | Schema | null;
197
- content?: {
198
- [key: string]: MediaType;
199
- } | null;
200
- [key: string]: any;
201
- };
202
- export type Encoding = {
203
- contentType?: string | null;
204
- headers?: {
205
- [key: string]: Header | Reference;
206
- } | null;
207
- style?: string | null;
208
- explode?: boolean | null;
209
- allowReserved?: boolean;
210
- [key: string]: any;
211
- };
212
- export type MediaType = {
213
- schema?: Reference | Schema | null;
214
- encoding?: {
215
- [key: string]: Encoding;
216
- } | null;
217
- [key: string]: any;
218
- };
219
- export type ParameterLocation = "query" | "header" | "path" | "cookie";
220
- export type Parameter = {
221
- description?: string | null;
222
- required?: boolean;
223
- deprecated?: boolean;
224
- style?: string | null;
225
- explode?: boolean | null;
226
- schema?: Reference | Schema | null;
227
- content?: {
228
- [key: string]: MediaType;
229
- } | null;
230
- name: string;
231
- "in": ParameterLocation;
232
- allowEmptyValue?: boolean;
233
- allowReserved?: boolean;
234
- [key: string]: any;
235
- };
236
- export type RequestBody = {
237
- description?: string | null;
238
- content: {
239
- [key: string]: MediaType;
240
- };
241
- required?: boolean;
242
- [key: string]: any;
243
- };
136
+ export type JsonValue = any;
244
137
  export type CustomToolRequest = {
245
138
  /** Tool name (up to 256 characters, required) */
246
139
  name: string;
@@ -251,9 +144,9 @@ export type CustomToolRequest = {
251
144
  /** Endpoint URL (required, must use https schema) */
252
145
  url: string;
253
146
  /** Dict of parameters (optional) */
254
- parameters?: Parameter[] | null;
147
+ parameters?: JsonValue[] | null;
255
148
  /** Dict of request body (optional) */
256
- request_body?: RequestBody | null;
149
+ request_body?: JsonValue | null;
257
150
  /** Response transformation (optional) */
258
151
  response_transformation?: string | null;
259
152
  };
@@ -277,18 +170,43 @@ export type AgentUsingToolsResponse = {
277
170
  name: string;
278
171
  avatar?: string | null;
279
172
  };
280
- export type AssignCustomToolsAgentRequest = {
281
- toolkit_id: string;
282
- tools_ids: string[];
173
+ export type Function = {
174
+ name: string;
175
+ description: string;
176
+ parameters: {
177
+ [key: string]: any;
178
+ };
179
+ strict?: boolean;
283
180
  };
284
- export type AssignToolsToAgentRequest = {
285
- builtin_tool_ids?: string[] | null;
286
- custom_tools?: AssignCustomToolsAgentRequest[] | null;
287
- sub_agents_ids?: string[] | null;
181
+ export type McpToolFunction = {
182
+ "type"?: string | null;
183
+ "function"?: Function | null;
184
+ id?: string | null;
185
+ };
186
+ export type ToolkitMcpResponse = {
187
+ id?: string | null;
188
+ name?: string | null;
189
+ description?: string | null;
190
+ avatar?: string | null;
191
+ visibility_level?: string | null;
192
+ secret_id?: string | null;
193
+ secrets?: string[] | null;
194
+ url?: string | null;
195
+ toolkit_type?: ToolkitType | null;
196
+ tools?: McpToolFunction[] | null;
197
+ };
198
+ export type MultiAgentToolkitResponse = {
199
+ id: string;
200
+ agent_version_number: number | null;
201
+ avatar: string | null;
202
+ name: string;
203
+ description: string;
288
204
  };
289
205
  export type AgentToolsResponse = {
290
206
  builtin_toolkits?: BuiltinToolkitResponse[];
291
207
  custom_toolkits?: CustomToolkitResponse[];
208
+ mcp_toolkits?: ToolkitMcpResponse[];
209
+ multi_agent_toolkits?: MultiAgentToolkitResponse[];
292
210
  };
293
211
  export type SchemaEnum = "OPENAI";
294
212
  export type FunctionParameter = {
@@ -307,7 +225,7 @@ export type FunctionParameter = {
307
225
  /** Allow arbitrary data of specific typed */
308
226
  additionalProperties?: boolean;
309
227
  };
310
- export type Function = {
228
+ export type Function2 = {
311
229
  /** The name of the function */
312
230
  name: string;
313
231
  /** A description of what the function does */
@@ -318,14 +236,17 @@ export type Function = {
318
236
  strict: boolean;
319
237
  };
320
238
  export type OpenAiTool = {
239
+ /** Unique identifier for the tool */
240
+ id?: string | null;
321
241
  /** The type of the tool; must be 'function' */
322
242
  "type": "function";
323
243
  /** The function associated with this tool */
324
- "function": Function;
244
+ "function": Function2;
325
245
  };
326
246
  export type ExecuteAgentToolRequest = {
327
247
  arguments?: string | null;
328
248
  upload_ids?: string[] | null;
249
+ execution_id?: string | null;
329
250
  };
330
251
  export type AgentToolExecutionResponse = {
331
252
  result: string;
@@ -338,6 +259,7 @@ export type KnowledgeSourcesConfig = {
338
259
  similarity_function?: string;
339
260
  post_processing?: boolean;
340
261
  };
262
+ export type AgentVersionStatus = "draft" | "published" | "deprecated";
341
263
  export type ListAgentResponse = {
342
264
  id: string;
343
265
  name: string;
@@ -348,6 +270,10 @@ export type ListAgentResponse = {
348
270
  avatar: string | null;
349
271
  suggested_prompts: string[] | null;
350
272
  knowledge_sources_config: KnowledgeSourcesConfig;
273
+ version_number: number;
274
+ status: AgentVersionStatus;
275
+ is_recommended: boolean;
276
+ has_multiagent_tool?: boolean;
351
277
  "type"?: string;
352
278
  system_prompt?: string;
353
279
  creator_name?: string;
@@ -362,6 +288,13 @@ export type KnowledgeSourcesConfigRequest = {
362
288
  knowledge_sources?: string[] | null;
363
289
  sealed?: boolean | null;
364
290
  };
291
+ export type AssignCustomToolsAgentRequest = {
292
+ toolkit_id: string;
293
+ tools_ids: string[];
294
+ };
295
+ export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
296
+ export type AgentMemory = "vector" | "buffer";
297
+ export type PlannerType = "simple" | "tool_oriented";
365
298
  export type NewAgentRequest = {
366
299
  /** LLM model name */
367
300
  model_name?: string | null;
@@ -385,19 +318,39 @@ export type NewAgentRequest = {
385
318
  builtin_tools_ids?: string[];
386
319
  /** Custom tools to assign to the agent */
387
320
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
321
+ mcp_toolkit_ids?: string[] | null;
322
+ /** Multi-agents assignment to the agent */
388
323
  sub_agents_ids?: string[] | null;
389
324
  detail_mode?: boolean;
390
325
  structured_output?: string | null;
391
326
  llm_settings?: {
392
327
  [key: string]: any;
393
328
  } | null;
329
+ /** Agent mode */
330
+ mode?: AgentMode;
331
+ /** Agent memory */
332
+ memory?: AgentMemory;
333
+ /** Available models for this particular agent */
334
+ available_models_ids?: string[];
335
+ /** Agent planner type */
336
+ planner_type?: PlannerType | null;
337
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
338
+ max_llm_interactions?: number | null;
339
+ /** LLM planner model name */
340
+ planner_model_name?: string | null;
341
+ /** LLM planner model id */
342
+ planner_model_id?: string | null;
394
343
  };
395
344
  export type SearchAgentsRequest = {
396
345
  /** Agent ids to filter for */
397
346
  ids: string[];
398
347
  };
348
+ export type AssignMultiAgentVersionRequest = {
349
+ agent_core_id: string;
350
+ version_number?: number | null;
351
+ };
399
352
  export type WorkspaceForkRequest = {
400
- agent_ids: string[];
353
+ agents: AssignMultiAgentVersionRequest[];
401
354
  member_id: string;
402
355
  };
403
356
  export type AgentItemFork = {
@@ -437,7 +390,7 @@ export type ListMultiAgentsResponse = {
437
390
  visibility_level: VisibilityLevelEnum;
438
391
  has_multiagent_tool: boolean;
439
392
  };
440
- export type KnowledgeSourceDetails = {
393
+ export type KnowledgeSourceDetailsResponse = {
441
394
  id: string;
442
395
  slug: string;
443
396
  name: string;
@@ -445,100 +398,102 @@ export type KnowledgeSourceDetails = {
445
398
  "type": string;
446
399
  creator?: string | null;
447
400
  "default": boolean;
448
- visibility_level: VisibilityLevelEnum;
401
+ visibility_level: string;
449
402
  model_name: string;
450
403
  username?: string | null;
451
404
  };
452
- export type KnowledgeSourceConfigModel = {
453
- similarity_function: SimilarityFunctionEnum;
405
+ export type KnowledgeSourcesConfigResponse = {
406
+ knowledge_sources: string[];
454
407
  max_number_of_kos: number;
455
408
  relevancy_threshold: number;
409
+ similarity_function: string;
456
410
  post_processing: boolean;
457
- knowledge_sources: string[];
458
- knowledge_sources_details: KnowledgeSourceDetails[];
459
411
  sealed: boolean;
412
+ knowledge_sources_details?: KnowledgeSourceDetailsResponse[] | null;
460
413
  created_by?: string | null;
461
414
  created_at?: string | null;
462
415
  updated_by?: string | null;
463
416
  updated_at?: string | null;
464
417
  };
465
- export type BuiltinToolDto = {
466
- id: string;
467
- name: string;
468
- description: string;
469
- toolkit_id: string;
470
- };
471
- export type BuiltinToolkitDto = {
472
- id: string;
473
- name: string;
474
- description: string;
475
- image_url: string;
476
- tools: BuiltinToolDto[];
477
- };
478
- export type CustomToolkitToolDto = {
479
- id: string;
480
- name: string;
481
- description: string;
482
- method: string;
483
- url: string;
484
- parameters?: {
485
- [key: string]: any;
486
- }[] | null;
487
- request_body?: {
488
- [key: string]: any;
489
- } | null;
490
- response_transformation?: string | null;
491
- creator_name?: string | null;
492
- };
493
- export type CustomToolkitDto = {
494
- id: string;
495
- name: string;
496
- description: string | null;
497
- avatar: string | null;
498
- tools: CustomToolkitToolDto[];
499
- secrets: string[] | null;
500
- visibility_level: VisibilityLevelEnum;
501
- creator_name: string;
502
- is_usable_by_others: boolean;
503
- };
504
- export type AgentToolsDto = {
505
- builtin_toolkits?: BuiltinToolkitDto[];
506
- custom_toolkits?: CustomToolkitDto[];
418
+ export type LlmSettingsResponse = {
419
+ property_key: string;
420
+ property_value: string;
421
+ property_type: string;
507
422
  };
508
- export type LlmSettingsModel = {
509
- property_key?: string | null;
510
- property_value?: string | null;
511
- property_type?: string | null;
512
- agent_id: string;
513
- created_by?: string | null;
514
- created_at?: string | null;
515
- updated_by?: string | null;
516
- updated_at?: string | null;
423
+ export type AgentLlmModelResponse = {
424
+ model_id: string;
425
+ model_name: string;
426
+ is_default: boolean;
517
427
  };
518
- export type AgentModel = {
428
+ export type FindByIdAgentResponse = {
429
+ /** Agent core ID */
519
430
  id: string;
431
+ /** Agent name */
520
432
  name: string;
433
+ /** Agent unique slug */
521
434
  slug: string;
435
+ /** Agent description */
522
436
  description?: string | null;
523
- system_prompt: string;
524
- visibility_level: string;
437
+ /** Agent avatar image URL */
525
438
  avatar?: string | null;
439
+ /** Agent visibility level */
440
+ visibility_level: string;
441
+ /** Agent type */
526
442
  "type": string;
527
- conversation_starter?: string[] | null;
443
+ /** Whether agent is use-only (hides implementation) */
528
444
  use_only: boolean;
445
+ /** Whether agent is internal */
446
+ is_internal: boolean;
447
+ /** Whether detail mode is enabled */
529
448
  detail_mode: boolean;
530
- structured_output?: {
531
- [key: string]: any;
532
- } | null;
449
+ /** Agent execution mode */
450
+ mode: AgentMode;
451
+ /** Agent memory type */
452
+ memory: AgentMemory;
453
+ /** Version status */
454
+ status: AgentVersionStatus;
455
+ /** Version number */
456
+ version_number: number;
457
+ /** Whether this is the recommended version */
458
+ is_recommended: boolean;
459
+ /** Whether this is the latest version */
460
+ is_latest: boolean;
461
+ /** System prompt for the agent */
462
+ system_prompt?: string | null;
463
+ /** Default LLM model ID */
533
464
  model_id?: string | null;
465
+ /** Default LLM model name */
534
466
  model_name?: string | null;
535
- knowledge_sources_config?: KnowledgeSourceConfigModel | null;
536
- toolkits?: AgentToolsDto | null;
537
- settings?: LlmSettingsModel[];
538
- is_sub_agent?: boolean | null;
467
+ /** Original agent ID if forked */
468
+ origin_fork_id?: string | null;
469
+ /** Suggested conversation starters */
470
+ conversation_starter?: string[] | null;
471
+ /** JSON schema for structured output */
472
+ structured_output?: string | null;
473
+ /** Base version ID for version history */
474
+ base_version_id?: string | null;
475
+ planner_type?: PlannerType | null;
476
+ /** Maximum number of LLM interactions */
477
+ max_llm_interactions?: number | null;
478
+ /** Default LLM planner model ID */
479
+ planner_model_id?: string | null;
480
+ /** Default LLM planner model name */
481
+ planner_model_name?: string | null;
482
+ /** Knowledge sources configuration with details */
483
+ knowledge_sources_config?: KnowledgeSourcesConfigResponse | null;
484
+ /** Agent toolkits (builtin and custom) */
485
+ toolkits?: AgentToolsResponse;
486
+ /** LLM settings */
487
+ settings?: LlmSettingsResponse[];
488
+ /** Available LLM models for this agent */
489
+ available_llm_models?: AgentLlmModelResponse[];
490
+ /** Creator username */
539
491
  created_by?: string | null;
492
+ /** Creation timestamp */
540
493
  created_at?: string | null;
494
+ /** Last updater username */
541
495
  updated_by?: string | null;
496
+ /** Last update timestamp */
542
497
  updated_at?: string | null;
543
498
  };
544
499
  export type UpdateAgentRequest = {
@@ -557,20 +512,38 @@ export type UpdateAgentRequest = {
557
512
  avatar?: string | null;
558
513
  /** Agent suggested prompt */
559
514
  suggested_prompts?: string[];
515
+ /** agent status */
516
+ status?: AgentVersionStatus | null;
560
517
  /** System prompt */
561
518
  system_prompt?: string | null;
562
519
  /** Agent type */
563
520
  "type"?: AgentType | null;
564
521
  knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
565
522
  builtin_tools_ids?: string[];
523
+ /** Multi-agents assignment to the agent */
566
524
  sub_agents_ids?: string[];
567
525
  /** Custom tools to assign to the agent */
568
526
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
527
+ mcp_toolkit_ids?: string[] | null;
569
528
  detail_mode?: boolean | null;
570
529
  structured_output?: string | null;
571
530
  llm_settings?: {
572
531
  [key: string]: any;
573
532
  } | null;
533
+ /** Agent mode */
534
+ mode?: AgentMode | null;
535
+ /** Available models for this particular agent */
536
+ available_models_ids?: string[];
537
+ /** Agent memory */
538
+ memory?: AgentMemory;
539
+ /** Agent planner type */
540
+ planner_type?: PlannerType;
541
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
542
+ max_llm_interactions?: number | null;
543
+ /** LLM planner model name */
544
+ planner_model_name?: string | null;
545
+ /** LLM planner model id */
546
+ planner_model_id?: string | null;
574
547
  };
575
548
  export type ForkAgentRequest = {
576
549
  /** Agent slug to fork */
@@ -580,6 +553,144 @@ export type ForkAgentRequest = {
580
553
  export type PublishAgentRequest = {
581
554
  use_only?: boolean;
582
555
  is_public?: boolean;
556
+ version_number?: number | null;
557
+ };
558
+ export type CreateVersionRequest = {
559
+ /** The version number to use as base for the new version. If not provided, uses latest version */
560
+ base_version_number?: number | null;
561
+ };
562
+ export type AgentVersionResponse = {
563
+ /** Agent version unique identifier */
564
+ id: string;
565
+ /** Reference to parent agent core */
566
+ agent_core_id: string;
567
+ /** Whether detail mode is enabled for responses */
568
+ detail_mode: boolean;
569
+ /** Whether version is internal-only */
570
+ is_internal: boolean;
571
+ /** Agent execution mode (autonomous, orchestrator, etc.) */
572
+ mode: AgentMode;
573
+ /** Memory type used by the agent */
574
+ memory: string;
575
+ /** Version status (draft, published, archived) */
576
+ status: AgentVersionStatus;
577
+ /** Sequential version number */
578
+ version_number: number;
579
+ /** Whether this is the recommended version for use */
580
+ is_recommended: boolean;
581
+ /** Whether this is the most recent version */
582
+ is_latest: boolean;
583
+ /** Base version ID used for creating this version */
584
+ base_version_id?: string | null;
585
+ /** Original agent version ID if this is a fork */
586
+ origin_fork_id?: string | null;
587
+ /** System prompt for the agent version */
588
+ system_prompt?: string | null;
589
+ /** LLM model ID used by this version */
590
+ model_id?: string | null;
591
+ /** LLM model name used by this version */
592
+ model_name?: string | null;
593
+ /** Suggested conversation starters */
594
+ conversation_starter?: string[] | null;
595
+ /** JSON schema for structured output format */
596
+ structured_output?: string | null;
597
+ planner_type?: PlannerType | null;
598
+ max_llm_interactions?: number | null;
599
+ /** Default LLM planner model ID */
600
+ planner_model_id?: string | null;
601
+ /** Default LLM planner model name */
602
+ planner_model_name?: string | null;
603
+ /** Knowledge sources configuration for RAG capabilities */
604
+ knowledge_sources_config?: KnowledgeSourcesConfig | null;
605
+ /** List of tools (builtin) assigned to this version */
606
+ toolkits?: AgentToolsResponse;
607
+ /** LLM-specific settings for this version */
608
+ settings?: LlmSettingsResponse[];
609
+ /** Available LLM models for this version */
610
+ llm_models?: AgentLlmModelResponse[];
611
+ /** Username of version creator */
612
+ created_by?: string | null;
613
+ /** Version creation timestamp */
614
+ created_at?: string | null;
615
+ /** Username of last updater */
616
+ updated_by?: string | null;
617
+ /** Last update timestamp */
618
+ updated_at?: string | null;
619
+ };
620
+ export type CreateVersionResponse = {
621
+ /** Agent core unique identifier */
622
+ id: string;
623
+ /** Agent name */
624
+ name: string;
625
+ /** Agent unique slug */
626
+ slug: string;
627
+ /** Agent description */
628
+ description?: string | null;
629
+ /** Agent avatar image URL */
630
+ avatar?: string | null;
631
+ /** Agent visibility level (personal, shared, account) */
632
+ visibility_level: string;
633
+ /** The newly created agent version details */
634
+ version: AgentVersionResponse;
635
+ /** Username of agent creator */
636
+ created_by?: string | null;
637
+ /** Agent creation timestamp */
638
+ created_at?: string | null;
639
+ /** Username of last updater */
640
+ updated_by?: string | null;
641
+ /** Last update timestamp */
642
+ updated_at?: string | null;
643
+ };
644
+ export type ListAgentVersionResponse = {
645
+ id: string;
646
+ version_number: number;
647
+ status: AgentVersionStatus;
648
+ is_recommended: boolean;
649
+ };
650
+ export type ForkedAgentCoreAndVersionResponse = {
651
+ /** Agent core unique identifier */
652
+ id: string;
653
+ /** Agent name */
654
+ name: string;
655
+ /** Agent unique slug */
656
+ slug: string;
657
+ /** Agent description */
658
+ description: string;
659
+ /** Agent avatar image URL */
660
+ avatar?: string | null;
661
+ /** Agent visibility level (personal, shared, account) */
662
+ visibility_level: string;
663
+ /** The newly created agent version details */
664
+ version: AgentVersionResponse;
665
+ /** Username of agent creator */
666
+ created_by?: string | null;
667
+ /** Agent creation timestamp */
668
+ created_at?: string | null;
669
+ /** Username of last updater */
670
+ updated_by?: string | null;
671
+ /** Last update timestamp */
672
+ updated_at?: string | null;
673
+ };
674
+ export type KnowledgeSourceDetailsResponse2 = {
675
+ id: string;
676
+ slug: string;
677
+ name: string;
678
+ description: string;
679
+ "type": string;
680
+ creator?: string | null;
681
+ "default": boolean;
682
+ visibility_level: VisibilityLevelEnum;
683
+ model_name: string;
684
+ username?: string | null;
685
+ };
686
+ export type KnowledgeSourcesConfigResponse2 = {
687
+ knowledge_sources: string[];
688
+ max_number_of_kos?: number;
689
+ relevancy_threshold?: number;
690
+ similarity_function?: SimilarityFunctionEnum;
691
+ post_processing?: boolean;
692
+ knowledge_sources_details?: KnowledgeSourceDetailsResponse2[];
693
+ sealed: boolean;
583
694
  };
584
695
  export type ListAgentResponseV2 = {
585
696
  id: string;
@@ -590,10 +701,288 @@ export type ListAgentResponseV2 = {
590
701
  visibility_level: string;
591
702
  avatar: string | null;
592
703
  conversation_starter: string[] | null;
593
- knowledge_sources_config: KnowledgeSourcesConfig;
704
+ knowledge_sources_config: KnowledgeSourcesConfigResponse2;
705
+ "type"?: string;
706
+ system_prompt?: string;
707
+ creator_name?: string;
708
+ version_number: number;
709
+ status: AgentVersionStatus;
710
+ is_recommended: boolean;
711
+ };
712
+ export type NewAgentRequestV2 = {
713
+ /** LLM model name */
714
+ model_name?: string | null;
715
+ /** LLM model id */
716
+ model_id?: string | null;
717
+ /** Agent name */
718
+ name: string;
719
+ /** Agent unique slug */
720
+ slug: string;
721
+ /** Agent description */
722
+ description?: string | null;
723
+ /** Agent avatar image */
724
+ avatar?: string | null;
725
+ /** Agent suggested prompt */
726
+ suggested_prompts?: string[];
727
+ /** System prompt */
728
+ system_prompt?: string | null;
729
+ /** Agent type */
730
+ "type": AgentType;
731
+ knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
732
+ builtin_tools_ids?: string[];
733
+ /** Custom tools to assign to the agent */
734
+ custom_tools?: AssignCustomToolsAgentRequest[] | null;
735
+ /** Multi-agents assignment to the agent */
736
+ sub_agents_ids?: AssignMultiAgentVersionRequest[] | null;
737
+ mcp_toolkit_ids?: string[] | null;
738
+ detail_mode?: boolean;
739
+ structured_output?: string | null;
740
+ llm_settings?: {
741
+ [key: string]: any;
742
+ } | null;
743
+ /** Agent mode */
744
+ mode?: AgentMode;
745
+ /** Agent memory */
746
+ memory?: AgentMemory;
747
+ /** Available models for this particular agent */
748
+ available_models_ids?: string[];
749
+ /** Agent planner type */
750
+ planner_type?: PlannerType | null;
751
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
752
+ max_llm_interactions?: number | null;
753
+ /** LLM planner model name */
754
+ planner_model_name?: string | null;
755
+ /** LLM planner model id */
756
+ planner_model_id?: string | null;
757
+ };
758
+ export type SearchAgentVersionRequest = {
759
+ agent_core_id: string;
760
+ version_number?: number | null;
761
+ };
762
+ export type SearchAgentsRequestV2 = {
763
+ agents: SearchAgentVersionRequest[];
764
+ };
765
+ export type UpdateAgentRequestV2 = {
766
+ use_only?: boolean | null;
767
+ /** LLM model name */
768
+ model_name?: string | null;
769
+ /** LLM model id */
770
+ model_id?: string | null;
771
+ /** Agent name */
772
+ name?: string | null;
773
+ /** Agent unique slug */
774
+ slug?: string | null;
775
+ /** agent status */
776
+ status?: AgentVersionStatus | null;
777
+ /** Agent description */
778
+ description?: string | null;
779
+ /** Agent avatar image */
780
+ avatar?: string | null;
781
+ /** Agent suggested prompt */
782
+ suggested_prompts?: string[];
783
+ /** System prompt */
784
+ system_prompt?: string | null;
785
+ /** Agent type */
786
+ "type"?: AgentType | null;
787
+ knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
788
+ builtin_tools_ids?: string[];
789
+ /** Multi-agents assignment to the agent */
790
+ sub_agents_ids?: AssignMultiAgentVersionRequest[];
791
+ /** Custom tools to assign to the agent */
792
+ custom_tools?: AssignCustomToolsAgentRequest[] | null;
793
+ mcp_toolkit_ids?: string[] | null;
794
+ detail_mode?: boolean | null;
795
+ structured_output?: string | null;
796
+ llm_settings?: {
797
+ [key: string]: any;
798
+ } | null;
799
+ /** Agent mode */
800
+ mode?: AgentMode | null;
801
+ /** Available models for this particular agent */
802
+ available_models_ids?: string[];
803
+ /** Agent memory */
804
+ memory?: AgentMemory;
805
+ /** Agent planner type */
806
+ planner_type?: PlannerType;
807
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
808
+ max_llm_interactions?: number | null;
809
+ /** LLM planner model name */
810
+ planner_model_name?: string | null;
811
+ /** LLM planner model id */
812
+ planner_model_id?: string | null;
813
+ };
814
+ export type CustomToolkitResponse2 = {
815
+ id: string;
816
+ name: string;
817
+ description?: string | null;
818
+ avatar?: string | null;
819
+ visibility_level: string;
820
+ creator_name: string | null;
821
+ toolkit_type?: ToolkitType | null;
822
+ tools: CustomToolkitToolResponse[];
823
+ secret_id?: string | null;
824
+ secrets?: string[] | null;
825
+ is_usable_by_others: boolean;
826
+ url?: string | null;
827
+ };
828
+ export type AgentToolsResponse2 = {
829
+ builtin_toolkits?: BuiltinToolkitResponse[];
830
+ custom_toolkits?: CustomToolkitResponse2[];
831
+ mcp_toolkits?: ToolkitMcpResponse[];
832
+ multi_agent_toolkits?: MultiAgentToolkitResponse[];
833
+ };
834
+ export type AgentVersionResponse2 = {
835
+ /** System prompt for the agent version */
836
+ system_prompt: string;
837
+ /** Whether detail mode is enabled for responses */
838
+ detail_mode: boolean;
839
+ /** Whether version is internal-only */
840
+ is_internal: boolean;
841
+ /** Agent execution mode (autonomous, orchestrator, etc.) */
842
+ mode: AgentMode;
843
+ /** Memory type used by the agent */
844
+ memory: string;
845
+ /** Version status (draft, published, archived) */
846
+ status: AgentVersionStatus;
847
+ /** Sequential version number */
848
+ version_number: number;
849
+ /** Whether this is the recommended version for use */
850
+ is_recommended: boolean;
851
+ /** Whether this is the most recent version */
852
+ is_latest: boolean;
853
+ /** Base version ID used for creating this version */
854
+ base_version_id?: string | null;
855
+ /** Original agent version ID if this is a fork */
856
+ origin_fork_id?: string | null;
857
+ /** LLM model ID used by this version */
858
+ model_id?: string | null;
859
+ /** LLM model name used by this version */
860
+ model_name?: string | null;
861
+ /** Suggested conversation starters */
862
+ conversation_starter?: string[] | null;
863
+ /** JSON schema for structured output format */
864
+ structured_output?: string | null;
865
+ planner_type?: PlannerType | null;
866
+ /** Maximum number of LLM interactions */
867
+ max_llm_interactions?: number | null;
868
+ /** Default LLM planner model ID */
869
+ planner_model_id?: string | null;
870
+ /** Default LLM planner model name */
871
+ planner_model_name?: string | null;
872
+ /** Knowledge sources configuration for RAG capabilities */
873
+ knowledge_sources_config?: KnowledgeSourcesConfigResponse2 | null;
874
+ /** List of tools (builtin) assigned to this version */
875
+ toolkits?: AgentToolsResponse2;
876
+ /** LLM-specific settings for this version */
877
+ settings?: LlmSettingsResponse[];
878
+ /** Available LLM models for this version */
879
+ available_llm_models?: AgentLlmModelResponse[];
880
+ /** Username of version creator */
881
+ created_by?: string | null;
882
+ /** Version creation timestamp */
883
+ created_at?: string | null;
884
+ /** Username of last updater */
885
+ updated_by?: string | null;
886
+ /** Last update timestamp */
887
+ updated_at?: string | null;
888
+ };
889
+ export type AgentCoreWithSingleVersionResponse = {
890
+ /** Agent core unique identifier (ULID format) */
891
+ id: string;
892
+ /** Agent display name */
893
+ name: string;
894
+ /** Agent unique slug for URL-friendly identification */
895
+ slug: string;
896
+ /** Agent core type */
897
+ "type": string;
898
+ /** Whether agent is use-only (hides implementation) */
899
+ use_only: boolean;
900
+ /** Detailed description of the agent's purpose and capabilities */
901
+ description?: string | null;
902
+ /** URL or path to agent's avatar image */
903
+ avatar?: string | null;
904
+ /** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
905
+ visibility_level: string;
906
+ /** Specific or recommend version associated with this agent core */
907
+ version: AgentVersionResponse2;
908
+ /** Whether the current user has marked this agent as favorite */
909
+ is_favorite?: boolean;
910
+ /** Whether this agent was recently used by the current user */
911
+ is_recently_used?: boolean;
912
+ /** Username or identifier of the user who created this agent */
913
+ created_by?: string | null;
914
+ /** Timestamp when the agent was created (ISO 8601 format) */
915
+ created_at?: string | null;
916
+ /** Username or identifier of the user who last updated this agent */
917
+ updated_by?: string | null;
918
+ /** Timestamp of the last update (ISO 8601 format) */
919
+ updated_at?: string | null;
920
+ };
921
+ export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
922
+ export type ListAgentRequestV4 = {
923
+ /** Agent name to filter the list */
924
+ name?: string | null;
925
+ /** Agent slug to filter the list */
926
+ slug?: string | null;
927
+ /** Paginated param to configure page size */
928
+ size?: number;
929
+ /** Paginated param to configure which page is being requested */
930
+ page?: number;
931
+ /** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
932
+ visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
933
+ order?: OrderEnum | null;
934
+ };
935
+ export type KnowledgeSourcesConfigResponseV3 = {
936
+ knowledge_sources: string[];
937
+ max_number_of_kos?: number;
938
+ relevancy_threshold?: number;
939
+ similarity_function?: string;
940
+ post_processing?: boolean;
941
+ };
942
+ export type AgentResponseV3 = {
943
+ id: string;
944
+ name: string;
945
+ slug: string;
946
+ created_by: string | null;
947
+ created_at: string | null;
948
+ visibility_level: AgentVisibilityLevelEnum | VisibilityLevelEnum;
949
+ avatar: string | null;
950
+ suggested_prompts: string[] | null;
951
+ knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
952
+ has_multiagent_tool?: boolean;
594
953
  "type"?: string;
595
954
  system_prompt?: string;
596
955
  creator_name?: string;
956
+ is_favorite?: boolean;
957
+ is_recently_used?: boolean;
958
+ version_number: number;
959
+ status: AgentVersionStatus;
960
+ is_recommended: boolean;
961
+ };
962
+ export type PaginatedResponseAgentResponseV3 = {
963
+ total_pages: number;
964
+ items: AgentResponseV3[];
965
+ };
966
+ export type ListAgentVersionResponse2 = {
967
+ version_number: number;
968
+ status: AgentVersionStatus;
969
+ is_recommended: boolean;
970
+ };
971
+ export type ListAgentCoreResponse = {
972
+ id: string;
973
+ name: string;
974
+ slug: string;
975
+ visibility_level: string;
976
+ avatar: string | null;
977
+ created_by: string | null;
978
+ created_at: string | null;
979
+ is_favorite?: boolean;
980
+ is_recently_used?: boolean;
981
+ version: ListAgentVersionResponse2;
982
+ };
983
+ export type PaginatedResponseListAgentCoreResponse = {
984
+ total_pages: number;
985
+ items: ListAgentCoreResponse[];
597
986
  };
598
987
  export type InternalListToolkitsRequest = {
599
988
  /** List of toolkit IDs to retrieve */
@@ -615,6 +1004,34 @@ export type ToolkitForkResponse = {
615
1004
  /** List of toolkit IDs that failed to fork */
616
1005
  error_ids: string[];
617
1006
  };
1007
+ export type PaginatedResponseCustomToolkitSimpleResponse = {
1008
+ total_pages: number;
1009
+ items: CustomToolkitSimpleResponse[];
1010
+ };
1011
+ export type ParametersModel = {
1012
+ properties: {
1013
+ [key: string]: {
1014
+ [key: string]: any;
1015
+ };
1016
+ };
1017
+ required?: string[] | null;
1018
+ "type": string;
1019
+ additionalProperties: boolean;
1020
+ };
1021
+ export type FunctionModel = {
1022
+ name: string;
1023
+ description: string;
1024
+ parameters: ParametersModel;
1025
+ strict?: boolean;
1026
+ };
1027
+ export type FunctionItem = {
1028
+ "type": string;
1029
+ "function": FunctionModel;
1030
+ };
1031
+ export type FunctionsResponse = {
1032
+ last_update: string;
1033
+ tools: FunctionItem[];
1034
+ };
618
1035
  /**
619
1036
  * Health Check
620
1037
  */
@@ -651,13 +1068,13 @@ export declare function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUse
651
1068
  /**
652
1069
  * Create Toolkit
653
1070
  */
654
- export declare function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitRequest }: {
1071
+ export declare function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
655
1072
  xAccountId?: string | null;
656
1073
  xUsername?: string | null;
657
1074
  xUserId?: string | null;
658
1075
  xUserFullName?: string | null;
659
1076
  authorization: string;
660
- toolkitRequest: ToolkitRequest;
1077
+ body: ToolkitRequest | ToolkitMcpRequest;
661
1078
  }, opts?: Oazapfts.RequestOpts): Promise<CreatedResponse>;
662
1079
  /**
663
1080
  * Get Toolkit
@@ -673,14 +1090,14 @@ export declare function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId
673
1090
  /**
674
1091
  * Update Toolkit
675
1092
  */
676
- export declare function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitUpdateRequest }: {
1093
+ export declare function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
677
1094
  toolkitId: string;
678
1095
  xAccountId?: string | null;
679
1096
  xUsername?: string | null;
680
1097
  xUserId?: string | null;
681
1098
  xUserFullName?: string | null;
682
1099
  authorization: string;
683
- toolkitUpdateRequest: ToolkitUpdateRequest;
1100
+ body: ToolkitUpdateRequest | ToolkitMcpUpdateRequest;
684
1101
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
685
1102
  /**
686
1103
  * Delete Toolkit
@@ -800,24 +1217,12 @@ export declare function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({
800
1217
  authorization: string;
801
1218
  listAgentsUsingToolsRequest: ListAgentsUsingToolsRequest;
802
1219
  }, opts?: Oazapfts.RequestOpts): Promise<AgentUsingToolsResponse[]>;
803
- /**
804
- * Assign Tools
805
- */
806
- export declare function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, assignToolsToAgentRequest }: {
807
- agentId: string;
808
- isPublic?: boolean;
809
- xAccountId?: string | null;
810
- xUsername?: string | null;
811
- xUserId?: string | null;
812
- xUserFullName?: string | null;
813
- authorization: string;
814
- assignToolsToAgentRequest: AssignToolsToAgentRequest;
815
- }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
816
1220
  /**
817
1221
  * List Tools
818
1222
  */
819
- export declare function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1223
+ export declare function listToolsV1AgentsAgentIdToolsGet({ agentId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
820
1224
  agentId: string;
1225
+ versionNumber?: number | null;
821
1226
  isPublic?: boolean;
822
1227
  xAccountId?: string | null;
823
1228
  xUsername?: string | null;
@@ -825,24 +1230,13 @@ export declare function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xA
825
1230
  xUserFullName?: string | null;
826
1231
  authorization: string;
827
1232
  }, opts?: Oazapfts.RequestOpts): Promise<AgentToolsResponse>;
828
- /**
829
- * Delete Tools
830
- */
831
- export declare function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
832
- agentId: string;
833
- isPublic?: boolean;
834
- xAccountId?: string | null;
835
- xUsername?: string | null;
836
- xUserId?: string | null;
837
- xUserFullName?: string | null;
838
- authorization: string;
839
- }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
840
1233
  /**
841
1234
  * List Tools By Agent For Schema
842
1235
  */
843
- export declare function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1236
+ export declare function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
844
1237
  agentId: string;
845
1238
  schema: SchemaEnum;
1239
+ versionNumber?: number | null;
846
1240
  isPublic?: boolean;
847
1241
  xAccountId?: string | null;
848
1242
  xUsername?: string | null;
@@ -868,7 +1262,8 @@ export declare function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentTo
868
1262
  /**
869
1263
  * List Agents
870
1264
  */
871
- export declare function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1265
+ export declare function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1266
+ isPublic?: boolean;
872
1267
  name?: string | null;
873
1268
  slug?: string | null;
874
1269
  visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
@@ -893,9 +1288,9 @@ export declare function createAgentV1AgentsPost({ isPublic, xAccountId, xUsernam
893
1288
  newAgentRequest: NewAgentRequest;
894
1289
  }, opts?: Oazapfts.RequestOpts): Promise<CreatedResponse>;
895
1290
  /**
896
- * Search Agents
1291
+ * Search Agents By Ids
897
1292
  */
898
- export declare function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
1293
+ export declare function searchAgentsByIdsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
899
1294
  xAccountId?: string | null;
900
1295
  xUsername?: string | null;
901
1296
  xUserId?: string | null;
@@ -965,15 +1360,16 @@ export declare function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visi
965
1360
  /**
966
1361
  * Get Agent
967
1362
  */
968
- export declare function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1363
+ export declare function getAgentV1AgentsAgentIdGet({ agentId, details, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
969
1364
  agentId: string;
970
1365
  details?: boolean;
1366
+ versionNumber?: number | null;
971
1367
  xAccountId?: string | null;
972
1368
  xUsername?: string | null;
973
1369
  xUserId?: string | null;
974
1370
  xUserFullName?: string | null;
975
1371
  authorization: string;
976
- }, opts?: Oazapfts.RequestOpts): Promise<AgentModel>;
1372
+ }, opts?: Oazapfts.RequestOpts): Promise<FindByIdAgentResponse>;
977
1373
  /**
978
1374
  * Update Agent
979
1375
  */
@@ -1079,6 +1475,78 @@ export declare function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAc
1079
1475
  xUserFullName?: string | null;
1080
1476
  authorization: string;
1081
1477
  }, opts?: Oazapfts.RequestOpts): Promise<ListAgentResponse[]>;
1478
+ /**
1479
+ * Migrate Agent Avatar By Id
1480
+ */
1481
+ export declare function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1482
+ agentId: string;
1483
+ xAccountId?: string | null;
1484
+ xUsername?: string | null;
1485
+ xUserId?: string | null;
1486
+ xUserFullName?: string | null;
1487
+ authorization: string;
1488
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1489
+ /**
1490
+ * Create Version
1491
+ */
1492
+ export declare function createVersionV1AgentsAgentCoreIdVersionsPost({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization, createVersionRequest }: {
1493
+ agentCoreId: string;
1494
+ xAccountId?: string | null;
1495
+ xUsername?: string | null;
1496
+ xUserId?: string | null;
1497
+ xUserFullName?: string | null;
1498
+ authorization: string;
1499
+ createVersionRequest: CreateVersionRequest;
1500
+ }, opts?: Oazapfts.RequestOpts): Promise<CreateVersionResponse>;
1501
+ /**
1502
+ * List Versions Of Agent Core
1503
+ */
1504
+ export declare function listVersionsOfAgentCoreV1AgentsAgentCoreIdVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1505
+ agentCoreId: string;
1506
+ xAccountId?: string | null;
1507
+ xUsername?: string | null;
1508
+ xUserId?: string | null;
1509
+ xUserFullName?: string | null;
1510
+ authorization: string;
1511
+ }, opts?: Oazapfts.RequestOpts): Promise<ListAgentVersionResponse[]>;
1512
+ /**
1513
+ * Delete Version
1514
+ */
1515
+ export declare function deleteVersionV1AgentsAgentCoreIdVersionsVersionNumberDelete({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1516
+ agentCoreId: string;
1517
+ versionNumber: number;
1518
+ isPublic?: boolean;
1519
+ xAccountId?: string | null;
1520
+ xUsername?: string | null;
1521
+ xUserId?: string | null;
1522
+ xUserFullName?: string | null;
1523
+ authorization: string;
1524
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1525
+ /**
1526
+ * Patch Version Recommended
1527
+ */
1528
+ export declare function patchVersionRecommendedV1AgentsAgentCoreIdVersionsVersionNumberPatch({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1529
+ agentCoreId: string;
1530
+ versionNumber: number;
1531
+ xAccountId?: string | null;
1532
+ xUsername?: string | null;
1533
+ xUserId?: string | null;
1534
+ xUserFullName?: string | null;
1535
+ authorization: string;
1536
+ }, opts?: Oazapfts.RequestOpts): Promise<AgentVersionResponse>;
1537
+ /**
1538
+ * Fork Agent Version
1539
+ */
1540
+ export declare function forkAgentVersionV1AgentsAgentCoreIdVersionsVersionNumberForkPost({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
1541
+ agentCoreId: string;
1542
+ versionNumber: number;
1543
+ xAccountId?: string | null;
1544
+ xUsername?: string | null;
1545
+ xUserId?: string | null;
1546
+ xUserFullName?: string | null;
1547
+ authorization: string;
1548
+ forkAgentRequest: ForkAgentRequest;
1549
+ }, opts?: Oazapfts.RequestOpts): Promise<ForkedAgentCoreAndVersionResponse>;
1082
1550
  /**
1083
1551
  * List Agents
1084
1552
  */
@@ -1094,17 +1562,79 @@ export declare function listAgentsV2AgentsGet({ name, slug, visibility, size, pa
1094
1562
  xUserFullName?: string | null;
1095
1563
  authorization: string;
1096
1564
  }, opts?: Oazapfts.RequestOpts): Promise<ListAgentResponseV2[]>;
1565
+ /**
1566
+ * Create Agent
1567
+ */
1568
+ export declare function createAgentV2AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequestV2 }: {
1569
+ isPublic?: boolean;
1570
+ xAccountId?: string | null;
1571
+ xUsername?: string | null;
1572
+ xUserId?: string | null;
1573
+ xUserFullName?: string | null;
1574
+ authorization: string;
1575
+ newAgentRequestV2: NewAgentRequestV2;
1576
+ }, opts?: Oazapfts.RequestOpts): Promise<CreatedResponse>;
1097
1577
  /**
1098
1578
  * Search Agents
1099
1579
  */
1100
- export declare function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
1580
+ export declare function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequestV2 }: {
1101
1581
  xAccountId?: string | null;
1102
1582
  xUsername?: string | null;
1103
1583
  xUserId?: string | null;
1104
1584
  xUserFullName?: string | null;
1105
1585
  authorization: string;
1106
- searchAgentsRequest: SearchAgentsRequest;
1586
+ searchAgentsRequestV2: SearchAgentsRequestV2;
1107
1587
  }, opts?: Oazapfts.RequestOpts): Promise<ListAgentResponseV2[]>;
1588
+ /**
1589
+ * Update Agent
1590
+ */
1591
+ export declare function updateAgentV2AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequestV2 }: {
1592
+ agentId: string;
1593
+ isPublic?: boolean;
1594
+ xAccountId?: string | null;
1595
+ xUsername?: string | null;
1596
+ xUserId?: string | null;
1597
+ xUserFullName?: string | null;
1598
+ authorization: string;
1599
+ updateAgentRequestV2: UpdateAgentRequestV2;
1600
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1601
+ /**
1602
+ * Find By Agent Core Id
1603
+ */
1604
+ export declare function findByAgentCoreIdV2AgentsAgentCoreIdGet({ agentCoreId, versionNumber, returnAllVersions, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1605
+ agentCoreId: string;
1606
+ versionNumber?: number | null;
1607
+ returnAllVersions?: boolean | null;
1608
+ xAccountId?: string | null;
1609
+ xUsername?: string | null;
1610
+ xUserId?: string | null;
1611
+ xUserFullName?: string | null;
1612
+ authorization: string;
1613
+ }, opts?: Oazapfts.RequestOpts): Promise<AgentCoreWithSingleVersionResponse>;
1614
+ /**
1615
+ * List Agents
1616
+ */
1617
+ export declare function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1618
+ filters: ListAgentRequestV4;
1619
+ isPublic?: boolean;
1620
+ xAccountId?: string | null;
1621
+ xUsername?: string | null;
1622
+ xUserId?: string | null;
1623
+ xUserFullName?: string | null;
1624
+ authorization: string;
1625
+ }, opts?: Oazapfts.RequestOpts): Promise<PaginatedResponseAgentResponseV3>;
1626
+ /**
1627
+ * List Agent Core with all versions
1628
+ */
1629
+ export declare function listAgentsV4AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1630
+ filters: ListAgentRequestV4;
1631
+ isPublic?: boolean;
1632
+ xAccountId?: string | null;
1633
+ xUsername?: string | null;
1634
+ xUserId?: string | null;
1635
+ xUserFullName?: string | null;
1636
+ authorization: string;
1637
+ }, opts?: Oazapfts.RequestOpts): Promise<PaginatedResponseListAgentCoreResponse>;
1108
1638
  /**
1109
1639
  * Internal List Toolkits By Ids
1110
1640
  */
@@ -1138,4 +1668,31 @@ export declare function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccou
1138
1668
  authorization: string;
1139
1669
  internalToolkitForkRequest: InternalToolkitForkRequest;
1140
1670
  }, opts?: Oazapfts.RequestOpts): Promise<ToolkitForkResponse>;
1671
+ /**
1672
+ * List Toolkits
1673
+ */
1674
+ export declare function listToolkitsV2ToolkitsGet({ name, visibilityList, size, page, order, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1675
+ name?: string | null;
1676
+ visibilityList?: VisibilityLevelEnum[];
1677
+ size?: number;
1678
+ page?: number;
1679
+ order?: OrderEnum | null;
1680
+ xAccountId?: string | null;
1681
+ xUsername?: string | null;
1682
+ xUserId?: string | null;
1683
+ xUserFullName?: string | null;
1684
+ authorization: string;
1685
+ }, opts?: Oazapfts.RequestOpts): Promise<PaginatedResponseCustomToolkitSimpleResponse>;
1686
+ /**
1687
+ * List Mcp Tools
1688
+ */
1689
+ export declare function listMcpToolsV1McpToolsToolkitIdGet({ toolkitId, cacheControl, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1690
+ toolkitId: string;
1691
+ cacheControl?: string | null;
1692
+ xAccountId?: string | null;
1693
+ xUsername?: string | null;
1694
+ xUserId?: string | null;
1695
+ xUserFullName?: string | null;
1696
+ authorization: string;
1697
+ }, opts?: Oazapfts.RequestOpts): Promise<FunctionsResponse>;
1141
1698
  //# sourceMappingURL=agent-tools.d.ts.map