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

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 (215) 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 +243 -149
  11. package/dist/api/agent-tools.d.ts.map +1 -1
  12. package/dist/api/agent-tools.js +77 -5
  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 +487 -98
  17. package/dist/api/ai.d.ts.map +1 -1
  18. package/dist/api/ai.js +427 -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/workspaceManager.d.ts +16 -10
  53. package/dist/api/workspaceManager.d.ts.map +1 -1
  54. package/dist/api/workspaceManager.js +10 -0
  55. package/dist/api/workspaceManager.js.map +1 -1
  56. package/dist/api-addresses.d.ts +20 -18
  57. package/dist/api-addresses.d.ts.map +1 -1
  58. package/dist/api-addresses.js +81 -21
  59. package/dist/api-addresses.js.map +1 -1
  60. package/dist/apis-itau.json +241 -0
  61. package/dist/apis.json +17 -1
  62. package/dist/client/account-asset-manager.d.ts +112 -0
  63. package/dist/client/account-asset-manager.d.ts.map +1 -0
  64. package/dist/client/account-asset-manager.js +160 -0
  65. package/dist/client/account-asset-manager.js.map +1 -0
  66. package/dist/client/account.d.ts +265 -242
  67. package/dist/client/account.d.ts.map +1 -1
  68. package/dist/client/account.js +80 -34
  69. package/dist/client/account.js.map +1 -1
  70. package/dist/client/agent-tools.d.ts +166 -119
  71. package/dist/client/agent-tools.d.ts.map +1 -1
  72. package/dist/client/agent-tools.js +62 -11
  73. package/dist/client/agent-tools.js.map +1 -1
  74. package/dist/client/agent.d.ts +46 -46
  75. package/dist/client/agent.d.ts.map +1 -1
  76. package/dist/client/ai.d.ts +266 -79
  77. package/dist/client/ai.d.ts.map +1 -1
  78. package/dist/client/ai.js +262 -20
  79. package/dist/client/ai.js.map +1 -1
  80. package/dist/client/api-management.d.ts +10 -1
  81. package/dist/client/api-management.d.ts.map +1 -1
  82. package/dist/client/api-management.js +11 -2
  83. package/dist/client/api-management.js.map +1 -1
  84. package/dist/client/cloud-account.d.ts +13 -13
  85. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  86. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  87. package/dist/client/cloud-platform-horizon.js +19 -1
  88. package/dist/client/cloud-platform-horizon.js.map +1 -1
  89. package/dist/client/cloud-platform.d.ts +213 -46
  90. package/dist/client/cloud-platform.d.ts.map +1 -1
  91. package/dist/client/cloud-platform.js +168 -33
  92. package/dist/client/cloud-platform.js.map +1 -1
  93. package/dist/client/cloud-runtimes.d.ts +4 -4
  94. package/dist/client/cloud-services.d.ts +17 -17
  95. package/dist/client/cloud-services.d.ts.map +1 -1
  96. package/dist/client/code-shift.d.ts +535 -162
  97. package/dist/client/code-shift.d.ts.map +1 -1
  98. package/dist/client/code-shift.js +296 -7
  99. package/dist/client/code-shift.js.map +1 -1
  100. package/dist/client/content.d.ts +127 -132
  101. package/dist/client/content.d.ts.map +1 -1
  102. package/dist/client/data-integration.d.ts +92 -53
  103. package/dist/client/data-integration.d.ts.map +1 -1
  104. package/dist/client/data-integration.js +38 -2
  105. package/dist/client/data-integration.js.map +1 -1
  106. package/dist/client/discover.d.ts +31 -10
  107. package/dist/client/discover.d.ts.map +1 -1
  108. package/dist/client/discover.js +239 -3
  109. package/dist/client/discover.js.map +1 -1
  110. package/dist/client/edp-bfa.d.ts +16 -0
  111. package/dist/client/edp-bfa.d.ts.map +1 -0
  112. package/dist/client/edp-bfa.js +24 -0
  113. package/dist/client/edp-bfa.js.map +1 -0
  114. package/dist/client/event-bus.d.ts.map +1 -1
  115. package/dist/client/gen-ai-inference.d.ts +20 -20
  116. package/dist/client/insights.d.ts +7 -7
  117. package/dist/client/notification.d.ts +17 -10
  118. package/dist/client/notification.d.ts.map +1 -1
  119. package/dist/client/notification.js +10 -1
  120. package/dist/client/notification.js.map +1 -1
  121. package/dist/client/runtime-manager.d.ts +8 -8
  122. package/dist/client/secrets.d.ts.map +1 -1
  123. package/dist/client/secrets.js +1 -1
  124. package/dist/client/secrets.js.map +1 -1
  125. package/dist/client/types.d.ts +50 -7
  126. package/dist/client/types.d.ts.map +1 -1
  127. package/dist/client/workflow.d.ts +10 -10
  128. package/dist/client/workspace-ai.d.ts +53 -53
  129. package/dist/client/workspace-ai.d.ts.map +1 -1
  130. package/dist/client/workspace-ai.js +3 -7
  131. package/dist/client/workspace-ai.js.map +1 -1
  132. package/dist/client/workspace-manager.d.ts +115 -76
  133. package/dist/client/workspace-manager.d.ts.map +1 -1
  134. package/dist/client/workspace-manager.js +47 -2
  135. package/dist/client/workspace-manager.js.map +1 -1
  136. package/dist/client/workspace-search.d.ts +2 -2
  137. package/dist/client/workspace.d.ts +58 -105
  138. package/dist/client/workspace.d.ts.map +1 -1
  139. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  140. package/dist/error/DefaultAPIError.js.map +1 -1
  141. package/dist/error/StackspotAPIError.d.ts +3 -4
  142. package/dist/error/StackspotAPIError.d.ts.map +1 -1
  143. package/dist/error/StackspotAPIError.js +3 -3
  144. package/dist/error/StackspotAPIError.js.map +1 -1
  145. package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
  146. package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
  147. package/dist/error/dictionary/accountAssetManager.js +11 -0
  148. package/dist/error/dictionary/accountAssetManager.js.map +1 -0
  149. package/dist/error/dictionary/cloud-platform.d.ts +76 -8
  150. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  151. package/dist/error/dictionary/cloud-platform.js +80 -12
  152. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  153. package/dist/error/dictionary/workspace-ai.d.ts +9 -0
  154. package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
  155. package/dist/error/dictionary/workspace-ai.js +9 -0
  156. package/dist/error/dictionary/workspace-ai.js.map +1 -0
  157. package/dist/index.d.ts +5 -3
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +4 -2
  160. package/dist/index.js.map +1 -1
  161. package/dist/network/NetworkClient.d.ts +4 -2
  162. package/dist/network/NetworkClient.d.ts.map +1 -1
  163. package/dist/network/NetworkClient.js +16 -4
  164. package/dist/network/NetworkClient.js.map +1 -1
  165. package/dist/network/types.d.ts +2 -0
  166. package/dist/network/types.d.ts.map +1 -1
  167. package/dist/utils/StreamedJson.d.ts +3 -1
  168. package/dist/utils/StreamedJson.d.ts.map +1 -1
  169. package/dist/utils/StreamedJson.js +23 -3
  170. package/dist/utils/StreamedJson.js.map +1 -1
  171. package/package.dev.json +3 -0
  172. package/package.json +10 -9
  173. package/package.stg.json +3 -0
  174. package/readme.md +40 -1
  175. package/src/api/account.ts +701 -540
  176. package/src/api/accountAssetManager.ts +771 -0
  177. package/src/api/agent-tools.ts +332 -151
  178. package/src/api/ai.ts +891 -170
  179. package/src/api/cloudPlatform.ts +667 -298
  180. package/src/api/cloudPlatformHorizon.ts +412 -9
  181. package/src/api/codeShift.ts +2088 -97
  182. package/src/api/dataIntegration.ts +635 -1
  183. package/src/api/discover.ts +180 -14
  184. package/src/api/edpBfa.ts +472 -0
  185. package/src/api/genAiInference.ts +47 -4
  186. package/src/api/workflows.ts +100 -5
  187. package/src/api/workspaceManager.ts +25 -10
  188. package/src/api-addresses.ts +113 -38
  189. package/src/apis-itau.json +241 -0
  190. package/src/apis.json +17 -1
  191. package/src/client/account-asset-manager.ts +100 -0
  192. package/src/client/account.ts +71 -40
  193. package/src/client/agent-tools.ts +57 -17
  194. package/src/client/ai.ts +232 -20
  195. package/src/client/api-management.ts +7 -2
  196. package/src/client/cloud-platform-horizon.ts +12 -4
  197. package/src/client/cloud-platform.ts +101 -27
  198. package/src/client/code-shift.ts +196 -8
  199. package/src/client/data-integration.ts +28 -1
  200. package/src/client/discover.ts +238 -5
  201. package/src/client/edp-bfa.ts +24 -0
  202. package/src/client/notification.ts +6 -1
  203. package/src/client/secrets.ts +1 -1
  204. package/src/client/types.ts +55 -9
  205. package/src/client/workspace-ai.ts +19 -23
  206. package/src/client/workspace-manager.ts +31 -2
  207. package/src/error/DefaultAPIError.ts +5 -5
  208. package/src/error/StackspotAPIError.ts +4 -4
  209. package/src/error/dictionary/accountAssetManager.ts +12 -0
  210. package/src/error/dictionary/cloud-platform.ts +80 -12
  211. package/src/error/dictionary/workspace-ai.ts +10 -0
  212. package/src/index.ts +6 -3
  213. package/src/network/NetworkClient.ts +18 -6
  214. package/src/network/types.ts +3 -0
  215. package/src/utils/StreamedJson.tsx +19 -4
@@ -33,6 +33,7 @@ export type HttpValidationError = {
33
33
  detail?: ValidationError[];
34
34
  };
35
35
  export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
36
+ export type ToolkitType = "mcp" | "web_request";
36
37
  export type CustomToolkitSimpleResponse = {
37
38
  id: string;
38
39
  name: string;
@@ -40,6 +41,7 @@ export type CustomToolkitSimpleResponse = {
40
41
  avatar?: string | null;
41
42
  visibility_level: VisibilityLevelEnum;
42
43
  creator_name: string | null;
44
+ toolkit_type?: ToolkitType | null;
43
45
  };
44
46
  export type ToolkitRequest = {
45
47
  /** Toolkit name (up to 150 characters, required) */
@@ -51,6 +53,20 @@ export type ToolkitRequest = {
51
53
  /** Visibility level (default 'PERSONAL') */
52
54
  visibility_level?: VisibilityLevelEnum;
53
55
  };
56
+ export type ToolkitMcpRequest = {
57
+ /** Toolkit name (up to 150 characters, required) */
58
+ name: string;
59
+ /** Toolkit description (up to 1024 characters, optional) */
60
+ description?: string | null;
61
+ /** Toolkit avatar (text base64, optional) */
62
+ avatar?: string | null;
63
+ /** Visibility level (default 'PERSONAL') */
64
+ visibility_level?: VisibilityLevelEnum;
65
+ url: string;
66
+ toolkit_type: ToolkitType;
67
+ /** List of secret IDs (optional) */
68
+ secrets?: string[] | null;
69
+ };
54
70
  export type CreatedResponse = {
55
71
  id: string;
56
72
  };
@@ -76,10 +92,12 @@ export type CustomToolkitResponse = {
76
92
  avatar?: string | null;
77
93
  visibility_level: VisibilityLevelEnum;
78
94
  creator_name: string | null;
95
+ toolkit_type?: ToolkitType | null;
79
96
  tools: CustomToolkitToolResponse[];
80
97
  secret_id?: string | null;
81
98
  secrets?: string[] | null;
82
99
  is_usable_by_others: boolean;
100
+ url?: string | null;
83
101
  };
84
102
  export type ToolkitUpdateRequest = {
85
103
  /** Toolkit name (up to 150 characters, optional) */
@@ -95,6 +113,22 @@ export type ToolkitUpdateRequest = {
95
113
  /** List of secret IDs (optional) */
96
114
  secrets?: string[] | null;
97
115
  };
116
+ export type ToolkitMcpUpdateRequest = {
117
+ /** Toolkit name (up to 150 characters, optional) */
118
+ name?: string | null;
119
+ /** Toolkit description (up to 1024 characters, optional) */
120
+ description?: string | null;
121
+ /** Toolkit avatar (text base64, optional) */
122
+ avatar?: string | null;
123
+ /** Visibility level (optional) */
124
+ visibility_level?: VisibilityLevelEnum | null;
125
+ /** IAM secret ID (optional) */
126
+ secret_id?: string | null;
127
+ /** List of secret IDs (optional) */
128
+ secrets?: string[] | null;
129
+ /** MCP Server URL */
130
+ url?: string | null;
131
+ };
98
132
  export type ToolkitForkRequest = {
99
133
  /** Toolkit name (up to 150 characters, required) */
100
134
  name: string;
@@ -104,148 +138,7 @@ export type ToolkitForkRequest = {
104
138
  avatar?: string | null;
105
139
  };
106
140
  export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
107
- export type Reference = {
108
- $ref: string;
109
- summary?: string | null;
110
- description?: string | null;
111
- [key: string]: any;
112
- };
113
- export type DataType = "null" | "string" | "number" | "integer" | "boolean" | "array" | "object";
114
- export type Discriminator = {
115
- propertyName: string;
116
- mapping?: {
117
- [key: string]: string;
118
- } | null;
119
- [key: string]: any;
120
- };
121
- export type Xml = {
122
- name?: string | null;
123
- "namespace"?: string | null;
124
- prefix?: string | null;
125
- attribute?: boolean;
126
- wrapped?: boolean;
127
- [key: string]: any;
128
- };
129
- export type ExternalDocumentation = {
130
- description?: string | null;
131
- url: string;
132
- [key: string]: any;
133
- };
134
- export type Schema = {
135
- allOf?: (Reference | Schema)[] | null;
136
- anyOf?: (Reference | Schema)[] | null;
137
- oneOf?: (Reference | Schema)[] | null;
138
- not?: Reference | Schema | null;
139
- "if"?: Reference | Schema | null;
140
- then?: Reference | Schema | null;
141
- "else"?: Reference | Schema | null;
142
- dependentSchemas?: {
143
- [key: string]: Reference | Schema;
144
- } | null;
145
- prefixItems?: (Reference | Schema)[] | null;
146
- items?: Reference | Schema | null;
147
- contains?: Reference | Schema | null;
148
- properties?: {
149
- [key: string]: Reference | Schema;
150
- } | null;
151
- patternProperties?: {
152
- [key: string]: Reference | Schema;
153
- } | null;
154
- additionalProperties?: Reference | Schema | boolean | null;
155
- propertyNames?: Reference | Schema | null;
156
- unevaluatedItems?: Reference | Schema | null;
157
- unevaluatedProperties?: Reference | Schema | null;
158
- "type"?: DataType | DataType[] | null;
159
- "enum"?: any[] | null;
160
- "const"?: any | null;
161
- multipleOf?: number | null;
162
- maximum?: number | null;
163
- exclusiveMaximum?: number | null;
164
- minimum?: number | null;
165
- exclusiveMinimum?: number | null;
166
- maxLength?: number | null;
167
- minLength?: number | null;
168
- pattern?: string | null;
169
- maxItems?: number | null;
170
- minItems?: number | null;
171
- uniqueItems?: boolean | null;
172
- maxContains?: number | null;
173
- minContains?: number | null;
174
- maxProperties?: number | null;
175
- minProperties?: number | null;
176
- required?: string[] | null;
177
- dependentRequired?: {
178
- [key: string]: string[];
179
- } | null;
180
- format?: string | null;
181
- contentEncoding?: string | null;
182
- contentMediaType?: string | null;
183
- contentSchema?: Reference | Schema | null;
184
- title?: string | null;
185
- description?: string | null;
186
- "default"?: any | null;
187
- deprecated?: boolean | null;
188
- readOnly?: boolean | null;
189
- writeOnly?: boolean | null;
190
- discriminator?: Discriminator | null;
191
- xml?: Xml | null;
192
- externalDocs?: ExternalDocumentation | null;
193
- [key: string]: any;
194
- };
195
- export type Header = {
196
- description?: string | null;
197
- required?: boolean;
198
- deprecated?: boolean;
199
- style?: string | null;
200
- explode?: boolean | null;
201
- schema?: Reference | Schema | null;
202
- content?: {
203
- [key: string]: MediaType;
204
- } | null;
205
- [key: string]: any;
206
- };
207
- export type Encoding = {
208
- contentType?: string | null;
209
- headers?: {
210
- [key: string]: Header | Reference;
211
- } | null;
212
- style?: string | null;
213
- explode?: boolean | null;
214
- allowReserved?: boolean;
215
- [key: string]: any;
216
- };
217
- export type MediaType = {
218
- schema?: Reference | Schema | null;
219
- encoding?: {
220
- [key: string]: Encoding;
221
- } | null;
222
- [key: string]: any;
223
- };
224
- export type ParameterLocation = "query" | "header" | "path" | "cookie";
225
- export type Parameter = {
226
- description?: string | null;
227
- required?: boolean;
228
- deprecated?: boolean;
229
- style?: string | null;
230
- explode?: boolean | null;
231
- schema?: Reference | Schema | null;
232
- content?: {
233
- [key: string]: MediaType;
234
- } | null;
235
- name: string;
236
- "in": ParameterLocation;
237
- allowEmptyValue?: boolean;
238
- allowReserved?: boolean;
239
- [key: string]: any;
240
- };
241
- export type RequestBody = {
242
- description?: string | null;
243
- content: {
244
- [key: string]: MediaType;
245
- };
246
- required?: boolean;
247
- [key: string]: any;
248
- };
141
+ export type JsonValue = any;
249
142
  export type CustomToolRequest = {
250
143
  /** Tool name (up to 256 characters, required) */
251
144
  name: string;
@@ -256,9 +149,9 @@ export type CustomToolRequest = {
256
149
  /** Endpoint URL (required, must use https schema) */
257
150
  url: string;
258
151
  /** Dict of parameters (optional) */
259
- parameters?: Parameter[] | null;
152
+ parameters?: JsonValue[] | null;
260
153
  /** Dict of request body (optional) */
261
- request_body?: RequestBody | null;
154
+ request_body?: JsonValue | null;
262
155
  /** Response transformation (optional) */
263
156
  response_transformation?: string | null;
264
157
  };
@@ -290,10 +183,23 @@ export type AssignToolsToAgentRequest = {
290
183
  builtin_tool_ids?: string[] | null;
291
184
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
292
185
  sub_agents_ids?: string[] | null;
186
+ mcp_toolkit_ids?: string[] | null;
187
+ };
188
+ export type ToolkitMcpResponse = {
189
+ id?: string | null;
190
+ name?: string | null;
191
+ description?: string | null;
192
+ avatar?: string | null;
193
+ visibility_level?: string | null;
194
+ secret_id?: string | null;
195
+ secrets?: string[] | null;
196
+ url?: string | null;
197
+ toolkit_type?: ToolkitType | null;
293
198
  };
294
199
  export type AgentToolsResponse = {
295
200
  builtin_toolkits?: BuiltinToolkitResponse[];
296
201
  custom_toolkits?: CustomToolkitResponse[];
202
+ mcp_toolkits?: ToolkitMcpResponse[];
297
203
  };
298
204
  export type SchemaEnum = "OPENAI";
299
205
  export type FunctionParameter = {
@@ -323,6 +229,8 @@ export type Function = {
323
229
  strict: boolean;
324
230
  };
325
231
  export type OpenAiTool = {
232
+ /** Unique identifier for the tool */
233
+ id?: string | null;
326
234
  /** The type of the tool; must be 'function' */
327
235
  "type": "function";
328
236
  /** The function associated with this tool */
@@ -331,6 +239,7 @@ export type OpenAiTool = {
331
239
  export type ExecuteAgentToolRequest = {
332
240
  arguments?: string | null;
333
241
  upload_ids?: string[] | null;
242
+ execution_id?: string | null;
334
243
  };
335
244
  export type AgentToolExecutionResponse = {
336
245
  result: string;
@@ -353,6 +262,7 @@ export type ListAgentResponse = {
353
262
  avatar: string | null;
354
263
  suggested_prompts: string[] | null;
355
264
  knowledge_sources_config: KnowledgeSourcesConfig;
265
+ has_multiagent_tool?: boolean;
356
266
  "type"?: string;
357
267
  system_prompt?: string;
358
268
  creator_name?: string;
@@ -367,6 +277,9 @@ export type KnowledgeSourcesConfigRequest = {
367
277
  knowledge_sources?: string[] | null;
368
278
  sealed?: boolean | null;
369
279
  };
280
+ export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
281
+ export type AgentMemory = "vector" | "buffer";
282
+ export type PlannerType = "simple" | "tool_oriented";
370
283
  export type NewAgentRequest = {
371
284
  /** LLM model name */
372
285
  model_name?: string | null;
@@ -390,12 +303,23 @@ export type NewAgentRequest = {
390
303
  builtin_tools_ids?: string[];
391
304
  /** Custom tools to assign to the agent */
392
305
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
306
+ mcp_toolkit_ids?: string[] | null;
393
307
  sub_agents_ids?: string[] | null;
394
308
  detail_mode?: boolean;
395
309
  structured_output?: string | null;
396
310
  llm_settings?: {
397
311
  [key: string]: any;
398
312
  } | null;
313
+ /** Agent mode */
314
+ mode?: AgentMode;
315
+ /** Agent memory */
316
+ memory?: AgentMemory;
317
+ /** Available models for this particular agent */
318
+ available_models_ids?: string[];
319
+ /** Agent planner type */
320
+ planner_type?: PlannerType | null;
321
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
322
+ max_llm_interactions?: number | null;
399
323
  };
400
324
  export type SearchAgentsRequest = {
401
325
  /** Agent ids to filter for */
@@ -505,10 +429,38 @@ export type CustomToolkitDto = {
505
429
  visibility_level: VisibilityLevelEnum;
506
430
  creator_name: string;
507
431
  is_usable_by_others: boolean;
432
+ url: string | null;
433
+ toolkit_type: ToolkitType | null;
434
+ };
435
+ export type SecretScope = "ACCOUNT" | "SCOPED" | "SPOT" | "USER" | "UNKNOWN";
436
+ export type SecretDto = {
437
+ id: string;
438
+ scope?: SecretScope | null;
439
+ };
440
+ export type Function2 = {
441
+ name: string;
442
+ description: string;
443
+ parameters: {
444
+ [key: string]: any;
445
+ };
446
+ strict?: boolean;
447
+ };
448
+ export type ToolkitMcpdto = {
449
+ secrets: SecretDto[] | null;
450
+ name: string;
451
+ description?: string | null;
452
+ avatar?: string | null;
453
+ visibility_level?: VisibilityLevelEnum;
454
+ id?: string | null;
455
+ url?: string | null;
456
+ tools?: Function2[] | null;
457
+ /** Toolkit type */
458
+ toolkit_type?: ToolkitType | null;
508
459
  };
509
460
  export type AgentToolsDto = {
510
461
  builtin_toolkits?: BuiltinToolkitDto[];
511
462
  custom_toolkits?: CustomToolkitDto[];
463
+ mcp_toolkits?: ToolkitMcpdto[];
512
464
  };
513
465
  export type LlmSettingsModel = {
514
466
  property_key?: string | null;
@@ -520,6 +472,11 @@ export type LlmSettingsModel = {
520
472
  updated_by?: string | null;
521
473
  updated_at?: string | null;
522
474
  };
475
+ export type AgentLlmModelDto = {
476
+ model_id: string;
477
+ model_name: string;
478
+ is_default?: boolean;
479
+ };
523
480
  export type AgentModel = {
524
481
  id: string;
525
482
  name: string;
@@ -532,6 +489,7 @@ export type AgentModel = {
532
489
  conversation_starter?: string[] | null;
533
490
  use_only: boolean;
534
491
  detail_mode: boolean;
492
+ mode: AgentMode;
535
493
  structured_output?: {
536
494
  [key: string]: any;
537
495
  } | null;
@@ -545,6 +503,10 @@ export type AgentModel = {
545
503
  created_at?: string | null;
546
504
  updated_by?: string | null;
547
505
  updated_at?: string | null;
506
+ available_llm_models?: AgentLlmModelDto[];
507
+ memory?: AgentMemory;
508
+ planner_type?: PlannerType | null;
509
+ max_llm_interactions?: number | null;
548
510
  };
549
511
  export type UpdateAgentRequest = {
550
512
  use_only?: boolean | null;
@@ -571,11 +533,22 @@ export type UpdateAgentRequest = {
571
533
  sub_agents_ids?: string[];
572
534
  /** Custom tools to assign to the agent */
573
535
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
536
+ mcp_toolkit_ids?: string[] | null;
574
537
  detail_mode?: boolean | null;
575
538
  structured_output?: string | null;
576
539
  llm_settings?: {
577
540
  [key: string]: any;
578
541
  } | null;
542
+ /** Agent mode */
543
+ mode?: AgentMode | null;
544
+ /** Available models for this particular agent */
545
+ available_models_ids?: string[];
546
+ /** Agent memory */
547
+ memory?: AgentMemory;
548
+ /** Agent planner type */
549
+ planner_type?: PlannerType;
550
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
551
+ max_llm_interactions?: number | null;
579
552
  };
580
553
  export type ForkAgentRequest = {
581
554
  /** Agent slug to fork */
@@ -600,6 +573,48 @@ export type ListAgentResponseV2 = {
600
573
  system_prompt?: string;
601
574
  creator_name?: string;
602
575
  };
576
+ export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
577
+ export type ListAgentRequestV3 = {
578
+ /** Agent name to filter the list */
579
+ name?: string | null;
580
+ /** Agent slug to filter the list */
581
+ slug?: string | null;
582
+ /** Paginated param to configure page size */
583
+ size?: number;
584
+ /** Paginated param to configure which page is being requested */
585
+ page?: number;
586
+ /** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
587
+ visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
588
+ order?: OrderEnum | null;
589
+ };
590
+ export type KnowledgeSourcesConfigResponseV3 = {
591
+ knowledge_sources: string[];
592
+ max_number_of_kos?: number;
593
+ relevancy_threshold?: number;
594
+ similarity_function?: string;
595
+ post_processing?: boolean;
596
+ };
597
+ export type AgentResponseV3 = {
598
+ id: string;
599
+ name: string;
600
+ slug: string;
601
+ created_by: string | null;
602
+ created_at: string | null;
603
+ visibility_level: string;
604
+ avatar: string | null;
605
+ suggested_prompts: string[] | null;
606
+ knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
607
+ has_multiagent_tool?: boolean;
608
+ "type"?: string;
609
+ system_prompt?: string;
610
+ creator_name?: string;
611
+ is_favorite?: boolean;
612
+ is_recently_used?: boolean;
613
+ };
614
+ export type PaginatedResponseAgentResponseV3 = {
615
+ total_pages: number;
616
+ items: AgentResponseV3[];
617
+ };
603
618
  export type InternalListToolkitsRequest = {
604
619
  /** List of toolkit IDs to retrieve */
605
620
  toolkit_ids: string[];
@@ -620,6 +635,34 @@ export type ToolkitForkResponse = {
620
635
  /** List of toolkit IDs that failed to fork */
621
636
  error_ids: string[];
622
637
  };
638
+ export type PaginatedResponseCustomToolkitSimpleResponse = {
639
+ total_pages: number;
640
+ items: CustomToolkitSimpleResponse[];
641
+ };
642
+ export type ParametersModel = {
643
+ properties: {
644
+ [key: string]: {
645
+ [key: string]: any;
646
+ };
647
+ };
648
+ required?: string[] | null;
649
+ "type": string;
650
+ additionalProperties: boolean;
651
+ };
652
+ export type FunctionModel = {
653
+ name: string;
654
+ description: string;
655
+ parameters: ParametersModel;
656
+ strict?: boolean;
657
+ };
658
+ export type FunctionItem = {
659
+ "type": string;
660
+ "function": FunctionModel;
661
+ };
662
+ export type FunctionsResponse = {
663
+ last_update: string;
664
+ tools: FunctionItem[];
665
+ };
623
666
  /**
624
667
  * Health Check
625
668
  */
@@ -714,13 +757,13 @@ export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, x
714
757
  /**
715
758
  * Create Toolkit
716
759
  */
717
- export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitRequest }: {
760
+ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
718
761
  xAccountId?: string | null;
719
762
  xUsername?: string | null;
720
763
  xUserId?: string | null;
721
764
  xUserFullName?: string | null;
722
765
  authorization: string;
723
- toolkitRequest: ToolkitRequest;
766
+ body: ToolkitRequest | ToolkitMcpRequest;
724
767
  }, opts?: Oazapfts.RequestOpts) {
725
768
  return oazapfts.ok(oazapfts.fetchJson<{
726
769
  status: 201;
@@ -733,7 +776,7 @@ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xU
733
776
  }>("/v1/toolkits", oazapfts.json({
734
777
  ...opts,
735
778
  method: "POST",
736
- body: toolkitRequest,
779
+ body,
737
780
  headers: oazapfts.mergeHeaders(opts?.headers, {
738
781
  "x-account-id": xAccountId,
739
782
  "x-username": xUsername,
@@ -776,14 +819,14 @@ export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsern
776
819
  /**
777
820
  * Update Toolkit
778
821
  */
779
- export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitUpdateRequest }: {
822
+ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
780
823
  toolkitId: string;
781
824
  xAccountId?: string | null;
782
825
  xUsername?: string | null;
783
826
  xUserId?: string | null;
784
827
  xUserFullName?: string | null;
785
828
  authorization: string;
786
- toolkitUpdateRequest: ToolkitUpdateRequest;
829
+ body: ToolkitUpdateRequest | ToolkitMcpUpdateRequest;
787
830
  }, opts?: Oazapfts.RequestOpts) {
788
831
  return oazapfts.ok(oazapfts.fetchJson<{
789
832
  status: 204;
@@ -795,7 +838,7 @@ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, x
795
838
  }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
796
839
  ...opts,
797
840
  method: "PATCH",
798
- body: toolkitUpdateRequest,
841
+ body,
799
842
  headers: oazapfts.mergeHeaders(opts?.headers, {
800
843
  "x-account-id": xAccountId,
801
844
  "x-username": xUsername,
@@ -1297,7 +1340,8 @@ export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, is
1297
1340
  /**
1298
1341
  * List Agents
1299
1342
  */
1300
- export function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1343
+ export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1344
+ isPublic?: boolean;
1301
1345
  name?: string | null;
1302
1346
  slug?: string | null;
1303
1347
  visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
@@ -1318,6 +1362,7 @@ export function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAcc
1318
1362
  status: 422;
1319
1363
  data: HttpValidationError;
1320
1364
  }>(`/v1/agents${QS.query(QS.explode({
1365
+ is_public: isPublic,
1321
1366
  name,
1322
1367
  slug,
1323
1368
  visibility,
@@ -1887,6 +1932,36 @@ export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId,
1887
1932
  })
1888
1933
  }));
1889
1934
  }
1935
+ /**
1936
+ * Migrate Agent Avatar By Id
1937
+ */
1938
+ export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1939
+ agentId: string;
1940
+ xAccountId?: string | null;
1941
+ xUsername?: string | null;
1942
+ xUserId?: string | null;
1943
+ xUserFullName?: string | null;
1944
+ authorization: string;
1945
+ }, opts?: Oazapfts.RequestOpts) {
1946
+ return oazapfts.ok(oazapfts.fetchJson<{
1947
+ status: 204;
1948
+ } | {
1949
+ status: 404;
1950
+ } | {
1951
+ status: 422;
1952
+ data: HttpValidationError;
1953
+ }>(`/v1/agents/${encodeURIComponent(agentId)}/migrate-avatar`, {
1954
+ ...opts,
1955
+ method: "POST",
1956
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1957
+ "x-account-id": xAccountId,
1958
+ "x-username": xUsername,
1959
+ "x-user-id": xUserId,
1960
+ "x-user-full-name": xUserFullName,
1961
+ authorization
1962
+ })
1963
+ }));
1964
+ }
1890
1965
  /**
1891
1966
  * List Agents
1892
1967
  */
@@ -1959,6 +2034,40 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
1959
2034
  })
1960
2035
  })));
1961
2036
  }
2037
+ /**
2038
+ * List Agents
2039
+ */
2040
+ export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2041
+ filters: ListAgentRequestV3;
2042
+ isPublic?: boolean;
2043
+ xAccountId?: string | null;
2044
+ xUsername?: string | null;
2045
+ xUserId?: string | null;
2046
+ xUserFullName?: string | null;
2047
+ authorization: string;
2048
+ }, opts?: Oazapfts.RequestOpts) {
2049
+ return oazapfts.ok(oazapfts.fetchJson<{
2050
+ status: 200;
2051
+ data: PaginatedResponseAgentResponseV3;
2052
+ } | {
2053
+ status: 404;
2054
+ } | {
2055
+ status: 422;
2056
+ data: HttpValidationError;
2057
+ }>(`/v3/agents${QS.query(QS.explode({
2058
+ filters,
2059
+ is_public: isPublic
2060
+ }))}`, {
2061
+ ...opts,
2062
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2063
+ "x-account-id": xAccountId,
2064
+ "x-username": xUsername,
2065
+ "x-user-id": xUserId,
2066
+ "x-user-full-name": xUserFullName,
2067
+ authorization
2068
+ })
2069
+ }));
2070
+ }
1962
2071
  /**
1963
2072
  * Internal List Toolkits By Ids
1964
2073
  */
@@ -2054,3 +2163,75 @@ export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xU
2054
2163
  })
2055
2164
  })));
2056
2165
  }
2166
+ /**
2167
+ * List Toolkits
2168
+ */
2169
+ export function listToolkitsV2ToolkitsGet({ name, visibilityList, size, page, order, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2170
+ name?: string | null;
2171
+ visibilityList?: VisibilityLevelEnum[];
2172
+ size?: number;
2173
+ page?: number;
2174
+ order?: OrderEnum | null;
2175
+ xAccountId?: string | null;
2176
+ xUsername?: string | null;
2177
+ xUserId?: string | null;
2178
+ xUserFullName?: string | null;
2179
+ authorization: string;
2180
+ }, opts?: Oazapfts.RequestOpts) {
2181
+ return oazapfts.ok(oazapfts.fetchJson<{
2182
+ status: 200;
2183
+ data: PaginatedResponseCustomToolkitSimpleResponse;
2184
+ } | {
2185
+ status: 404;
2186
+ } | {
2187
+ status: 422;
2188
+ data: HttpValidationError;
2189
+ }>(`/v2/toolkits${QS.query(QS.explode({
2190
+ name,
2191
+ visibility_list: visibilityList,
2192
+ size,
2193
+ page,
2194
+ order
2195
+ }))}`, {
2196
+ ...opts,
2197
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2198
+ "x-account-id": xAccountId,
2199
+ "x-username": xUsername,
2200
+ "x-user-id": xUserId,
2201
+ "x-user-full-name": xUserFullName,
2202
+ authorization
2203
+ })
2204
+ }));
2205
+ }
2206
+ /**
2207
+ * List Mcp Tools
2208
+ */
2209
+ export function listMcpToolsV1McpToolsToolkitIdGet({ toolkitId, cacheControl, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2210
+ toolkitId: string;
2211
+ cacheControl?: string | null;
2212
+ xAccountId?: string | null;
2213
+ xUsername?: string | null;
2214
+ xUserId?: string | null;
2215
+ xUserFullName?: string | null;
2216
+ authorization: string;
2217
+ }, opts?: Oazapfts.RequestOpts) {
2218
+ return oazapfts.ok(oazapfts.fetchJson<{
2219
+ status: 200;
2220
+ data: FunctionsResponse;
2221
+ } | {
2222
+ status: 404;
2223
+ } | {
2224
+ status: 422;
2225
+ data: HttpValidationError;
2226
+ }>(`/v1/mcp-tools/${encodeURIComponent(toolkitId)}`, {
2227
+ ...opts,
2228
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2229
+ "cache-control": cacheControl,
2230
+ "x-account-id": xAccountId,
2231
+ "x-username": xUsername,
2232
+ "x-user-id": xUserId,
2233
+ "x-user-full-name": xUserFullName,
2234
+ authorization
2235
+ })
2236
+ }));
2237
+ }