@stack-spot/portal-network 0.202.1 → 0.203.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +247 -0
- package/dist/api/account.d.ts +344 -91
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +203 -46
- package/dist/api/account.js.map +1 -1
- package/dist/api/accountAssetManager.d.ts +309 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -0
- package/dist/api/accountAssetManager.js +169 -0
- package/dist/api/accountAssetManager.js.map +1 -0
- package/dist/api/agent-tools.d.ts +623 -141
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +168 -45
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +135 -24
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +79 -26
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +127 -9
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +73 -6
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +79 -4
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +73 -7
- package/dist/api/discover.js.map +1 -1
- package/dist/api/edpBfa.d.ts +215 -0
- package/dist/api/edpBfa.d.ts.map +1 -0
- package/dist/api/edpBfa.js +87 -0
- package/dist/api/edpBfa.js.map +1 -0
- package/dist/api/workspace-ai.d.ts +41 -0
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +34 -0
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/api-addresses.d.ts +13 -20
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +60 -17
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +16 -0
- package/dist/apis.json +16 -0
- package/dist/client/account-asset-manager.d.ts +112 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -0
- package/dist/client/account-asset-manager.js +160 -0
- package/dist/client/account-asset-manager.js.map +1 -0
- package/dist/client/account.d.ts +11 -9
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +11 -8
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +108 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +95 -10
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts +148 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +149 -17
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +54 -3
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +46 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +8 -1
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +16 -2
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +28 -1
- package/dist/client/discover.js.map +1 -1
- package/dist/client/edp-bfa.d.ts +16 -0
- package/dist/client/edp-bfa.d.ts.map +1 -0
- package/dist/client/edp-bfa.js +24 -0
- package/dist/client/edp-bfa.js.map +1 -0
- package/dist/client/notification.d.ts +7 -0
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +10 -1
- package/dist/client/notification.js.map +1 -1
- package/dist/client/types.d.ts +11 -3
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workspace-ai.d.ts +13 -3
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +17 -3
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +15 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +19 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
- package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
- package/dist/error/dictionary/accountAssetManager.js +11 -0
- package/dist/error/dictionary/accountAssetManager.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +12 -2
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/network/types.d.ts +1 -0
- package/dist/network/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/readme.md +39 -1
- package/src/api/account.ts +592 -165
- package/src/api/accountAssetManager.ts +771 -0
- package/src/api/agent-tools.ts +824 -188
- package/src/api/ai.ts +206 -38
- package/src/api/codeShift.ts +233 -12
- package/src/api/discover.ts +153 -10
- package/src/api/edpBfa.ts +472 -0
- package/src/api/workspace-ai.ts +83 -0
- package/src/api-addresses.ts +93 -37
- package/src/apis-itau.json +16 -0
- package/src/apis.json +16 -0
- package/src/client/account-asset-manager.ts +100 -0
- package/src/client/account.ts +11 -7
- package/src/client/agent-tools.ts +64 -16
- package/src/client/ai.ts +129 -19
- package/src/client/code-shift.ts +29 -0
- package/src/client/data-integration.ts +9 -2
- package/src/client/discover.ts +15 -2
- package/src/client/edp-bfa.ts +24 -0
- package/src/client/notification.ts +6 -1
- package/src/client/types.ts +12 -3
- package/src/client/workspace-ai.ts +21 -6
- package/src/client/workspace-manager.ts +13 -0
- package/src/error/dictionary/accountAssetManager.ts +12 -0
- package/src/index.ts +4 -1
- package/src/network/NetworkClient.ts +13 -4
- package/src/network/types.ts +1 -0
package/src/api/agent-tools.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime"
|
|
8
|
-
import * as QS from "@oazapfts/runtime/query"
|
|
7
|
+
import * as Oazapfts from "@oazapfts/runtime"
|
|
8
|
+
import * as QS from "@oazapfts/runtime/query"
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
11
|
baseUrl: "/",
|
|
@@ -175,15 +175,18 @@ export type AgentUsingToolsResponse = {
|
|
|
175
175
|
name: string;
|
|
176
176
|
avatar?: string | null;
|
|
177
177
|
};
|
|
178
|
-
export type
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
export type Function = {
|
|
179
|
+
name: string;
|
|
180
|
+
description: string;
|
|
181
|
+
parameters: {
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
};
|
|
184
|
+
strict?: boolean;
|
|
181
185
|
};
|
|
182
|
-
export type
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
mcp_toolkit_ids?: string[] | null;
|
|
186
|
+
export type McpToolFunction = {
|
|
187
|
+
"type"?: string | null;
|
|
188
|
+
"function"?: Function | null;
|
|
189
|
+
id?: string | null;
|
|
187
190
|
};
|
|
188
191
|
export type ToolkitMcpResponse = {
|
|
189
192
|
id?: string | null;
|
|
@@ -195,11 +198,20 @@ export type ToolkitMcpResponse = {
|
|
|
195
198
|
secrets?: string[] | null;
|
|
196
199
|
url?: string | null;
|
|
197
200
|
toolkit_type?: ToolkitType | null;
|
|
201
|
+
tools?: McpToolFunction[] | null;
|
|
202
|
+
};
|
|
203
|
+
export type MultiAgentToolkitResponse = {
|
|
204
|
+
id: string;
|
|
205
|
+
agent_version_number: number | null;
|
|
206
|
+
avatar: string | null;
|
|
207
|
+
name: string;
|
|
208
|
+
description: string;
|
|
198
209
|
};
|
|
199
210
|
export type AgentToolsResponse = {
|
|
200
211
|
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
201
212
|
custom_toolkits?: CustomToolkitResponse[];
|
|
202
213
|
mcp_toolkits?: ToolkitMcpResponse[];
|
|
214
|
+
multi_agent_toolkits?: MultiAgentToolkitResponse[];
|
|
203
215
|
};
|
|
204
216
|
export type SchemaEnum = "OPENAI";
|
|
205
217
|
export type FunctionParameter = {
|
|
@@ -218,7 +230,7 @@ export type FunctionParameter = {
|
|
|
218
230
|
/** Allow arbitrary data of specific typed */
|
|
219
231
|
additionalProperties?: boolean;
|
|
220
232
|
};
|
|
221
|
-
export type
|
|
233
|
+
export type Function2 = {
|
|
222
234
|
/** The name of the function */
|
|
223
235
|
name: string;
|
|
224
236
|
/** A description of what the function does */
|
|
@@ -234,7 +246,7 @@ export type OpenAiTool = {
|
|
|
234
246
|
/** The type of the tool; must be 'function' */
|
|
235
247
|
"type": "function";
|
|
236
248
|
/** The function associated with this tool */
|
|
237
|
-
"function":
|
|
249
|
+
"function": Function2;
|
|
238
250
|
};
|
|
239
251
|
export type ExecuteAgentToolRequest = {
|
|
240
252
|
arguments?: string | null;
|
|
@@ -252,6 +264,7 @@ export type KnowledgeSourcesConfig = {
|
|
|
252
264
|
similarity_function?: string;
|
|
253
265
|
post_processing?: boolean;
|
|
254
266
|
};
|
|
267
|
+
export type AgentVersionStatus = "draft" | "published" | "deprecated";
|
|
255
268
|
export type ListAgentResponse = {
|
|
256
269
|
id: string;
|
|
257
270
|
name: string;
|
|
@@ -262,6 +275,9 @@ export type ListAgentResponse = {
|
|
|
262
275
|
avatar: string | null;
|
|
263
276
|
suggested_prompts: string[] | null;
|
|
264
277
|
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
278
|
+
version_number: number;
|
|
279
|
+
status: AgentVersionStatus;
|
|
280
|
+
is_recommended: boolean;
|
|
265
281
|
has_multiagent_tool?: boolean;
|
|
266
282
|
"type"?: string;
|
|
267
283
|
system_prompt?: string;
|
|
@@ -277,8 +293,13 @@ export type KnowledgeSourcesConfigRequest = {
|
|
|
277
293
|
knowledge_sources?: string[] | null;
|
|
278
294
|
sealed?: boolean | null;
|
|
279
295
|
};
|
|
296
|
+
export type AssignCustomToolsAgentRequest = {
|
|
297
|
+
toolkit_id: string;
|
|
298
|
+
tools_ids: string[];
|
|
299
|
+
};
|
|
280
300
|
export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
|
|
281
301
|
export type AgentMemory = "vector" | "buffer";
|
|
302
|
+
export type PlannerType = "simple" | "tool_oriented";
|
|
282
303
|
export type NewAgentRequest = {
|
|
283
304
|
/** LLM model name */
|
|
284
305
|
model_name?: string | null;
|
|
@@ -303,6 +324,7 @@ export type NewAgentRequest = {
|
|
|
303
324
|
/** Custom tools to assign to the agent */
|
|
304
325
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
305
326
|
mcp_toolkit_ids?: string[] | null;
|
|
327
|
+
/** Multi-agents assignment to the agent */
|
|
306
328
|
sub_agents_ids?: string[] | null;
|
|
307
329
|
detail_mode?: boolean;
|
|
308
330
|
structured_output?: string | null;
|
|
@@ -315,13 +337,25 @@ export type NewAgentRequest = {
|
|
|
315
337
|
memory?: AgentMemory;
|
|
316
338
|
/** Available models for this particular agent */
|
|
317
339
|
available_models_ids?: string[];
|
|
340
|
+
/** Agent planner type */
|
|
341
|
+
planner_type?: PlannerType | null;
|
|
342
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
343
|
+
max_llm_interactions?: number | null;
|
|
344
|
+
/** LLM planner model name */
|
|
345
|
+
planner_model_name?: string | null;
|
|
346
|
+
/** LLM planner model id */
|
|
347
|
+
planner_model_id?: string | null;
|
|
318
348
|
};
|
|
319
349
|
export type SearchAgentsRequest = {
|
|
320
350
|
/** Agent ids to filter for */
|
|
321
351
|
ids: string[];
|
|
322
352
|
};
|
|
353
|
+
export type AssignMultiAgentVersionRequest = {
|
|
354
|
+
agent_core_id: string;
|
|
355
|
+
version_number?: number | null;
|
|
356
|
+
};
|
|
323
357
|
export type WorkspaceForkRequest = {
|
|
324
|
-
|
|
358
|
+
agents: AssignMultiAgentVersionRequest[];
|
|
325
359
|
member_id: string;
|
|
326
360
|
};
|
|
327
361
|
export type AgentItemFork = {
|
|
@@ -361,7 +395,7 @@ export type ListMultiAgentsResponse = {
|
|
|
361
395
|
visibility_level: VisibilityLevelEnum;
|
|
362
396
|
has_multiagent_tool: boolean;
|
|
363
397
|
};
|
|
364
|
-
export type
|
|
398
|
+
export type KnowledgeSourceDetailsResponse = {
|
|
365
399
|
id: string;
|
|
366
400
|
slug: string;
|
|
367
401
|
name: string;
|
|
@@ -369,129 +403,103 @@ export type KnowledgeSourceDetails = {
|
|
|
369
403
|
"type": string;
|
|
370
404
|
creator?: string | null;
|
|
371
405
|
"default": boolean;
|
|
372
|
-
visibility_level:
|
|
406
|
+
visibility_level: string;
|
|
373
407
|
model_name: string;
|
|
374
408
|
username?: string | null;
|
|
375
409
|
};
|
|
376
|
-
export type
|
|
377
|
-
|
|
410
|
+
export type KnowledgeSourcesConfigResponse = {
|
|
411
|
+
knowledge_sources: string[];
|
|
378
412
|
max_number_of_kos: number;
|
|
379
413
|
relevancy_threshold: number;
|
|
414
|
+
similarity_function: string;
|
|
380
415
|
post_processing: boolean;
|
|
381
|
-
knowledge_sources: string[];
|
|
382
|
-
knowledge_sources_details: KnowledgeSourceDetails[];
|
|
383
416
|
sealed: boolean;
|
|
417
|
+
knowledge_sources_details?: KnowledgeSourceDetailsResponse[] | null;
|
|
384
418
|
created_by?: string | null;
|
|
385
419
|
created_at?: string | null;
|
|
386
420
|
updated_by?: string | null;
|
|
387
421
|
updated_at?: string | null;
|
|
388
422
|
};
|
|
389
|
-
export type
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
toolkit_id: string;
|
|
394
|
-
};
|
|
395
|
-
export type BuiltinToolkitDto = {
|
|
396
|
-
id: string;
|
|
397
|
-
name: string;
|
|
398
|
-
description: string;
|
|
399
|
-
image_url: string;
|
|
400
|
-
tools: BuiltinToolDto[];
|
|
401
|
-
};
|
|
402
|
-
export type CustomToolkitToolDto = {
|
|
403
|
-
id: string;
|
|
404
|
-
name: string;
|
|
405
|
-
description: string;
|
|
406
|
-
method: string;
|
|
407
|
-
url: string;
|
|
408
|
-
parameters?: {
|
|
409
|
-
[key: string]: any;
|
|
410
|
-
}[] | null;
|
|
411
|
-
request_body?: {
|
|
412
|
-
[key: string]: any;
|
|
413
|
-
} | null;
|
|
414
|
-
response_transformation?: string | null;
|
|
415
|
-
creator_name?: string | null;
|
|
416
|
-
};
|
|
417
|
-
export type CustomToolkitDto = {
|
|
418
|
-
id: string;
|
|
419
|
-
name: string;
|
|
420
|
-
description: string | null;
|
|
421
|
-
avatar: string | null;
|
|
422
|
-
tools: CustomToolkitToolDto[];
|
|
423
|
-
secrets: string[] | null;
|
|
424
|
-
visibility_level: VisibilityLevelEnum;
|
|
425
|
-
creator_name: string;
|
|
426
|
-
is_usable_by_others: boolean;
|
|
427
|
-
url: string | null;
|
|
428
|
-
toolkit_type: ToolkitType | null;
|
|
429
|
-
};
|
|
430
|
-
export type SecretScope = "ACCOUNT" | "SCOPED" | "SPOT" | "USER" | "UNKNOWN";
|
|
431
|
-
export type SecretDto = {
|
|
432
|
-
id: string;
|
|
433
|
-
scope?: SecretScope | null;
|
|
423
|
+
export type LlmSettingsResponse = {
|
|
424
|
+
property_key: string;
|
|
425
|
+
property_value: string;
|
|
426
|
+
property_type: string;
|
|
434
427
|
};
|
|
435
|
-
export type
|
|
436
|
-
secrets: SecretDto[] | null;
|
|
437
|
-
name: string;
|
|
438
|
-
description?: string | null;
|
|
439
|
-
avatar?: string | null;
|
|
440
|
-
visibility_level?: VisibilityLevelEnum;
|
|
441
|
-
id?: string | null;
|
|
442
|
-
url?: string | null;
|
|
443
|
-
tools?: any[] | null;
|
|
444
|
-
/** Toolkit type */
|
|
445
|
-
toolkit_type?: ToolkitType | null;
|
|
446
|
-
};
|
|
447
|
-
export type AgentToolsDto = {
|
|
448
|
-
builtin_toolkits?: BuiltinToolkitDto[];
|
|
449
|
-
custom_toolkits?: CustomToolkitDto[];
|
|
450
|
-
mcp_toolkits?: ToolkitMcpdto[];
|
|
451
|
-
};
|
|
452
|
-
export type LlmSettingsModel = {
|
|
453
|
-
property_key?: string | null;
|
|
454
|
-
property_value?: string | null;
|
|
455
|
-
property_type?: string | null;
|
|
456
|
-
agent_id: string;
|
|
457
|
-
created_by?: string | null;
|
|
458
|
-
created_at?: string | null;
|
|
459
|
-
updated_by?: string | null;
|
|
460
|
-
updated_at?: string | null;
|
|
461
|
-
};
|
|
462
|
-
export type AgentLlmModelDto = {
|
|
428
|
+
export type AgentLlmModelResponse = {
|
|
463
429
|
model_id: string;
|
|
464
430
|
model_name: string;
|
|
465
|
-
is_default
|
|
431
|
+
is_default: boolean;
|
|
466
432
|
};
|
|
467
|
-
export type
|
|
433
|
+
export type FindByIdAgentResponse = {
|
|
434
|
+
/** Agent core ID */
|
|
468
435
|
id: string;
|
|
436
|
+
/** Agent name */
|
|
469
437
|
name: string;
|
|
438
|
+
/** Agent unique slug */
|
|
470
439
|
slug: string;
|
|
440
|
+
/** Agent description */
|
|
471
441
|
description?: string | null;
|
|
472
|
-
|
|
473
|
-
visibility_level: string;
|
|
442
|
+
/** Agent avatar image URL */
|
|
474
443
|
avatar?: string | null;
|
|
444
|
+
/** Agent visibility level */
|
|
445
|
+
visibility_level: string;
|
|
446
|
+
/** Agent type */
|
|
475
447
|
"type": string;
|
|
476
|
-
|
|
448
|
+
/** Whether agent is use-only (hides implementation) */
|
|
477
449
|
use_only: boolean;
|
|
450
|
+
/** Whether agent is internal */
|
|
451
|
+
is_internal: boolean;
|
|
452
|
+
/** Whether detail mode is enabled */
|
|
478
453
|
detail_mode: boolean;
|
|
454
|
+
/** Agent execution mode */
|
|
479
455
|
mode: AgentMode;
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
456
|
+
/** Agent memory type */
|
|
457
|
+
memory: AgentMemory;
|
|
458
|
+
/** Version status */
|
|
459
|
+
status: AgentVersionStatus;
|
|
460
|
+
/** Version number */
|
|
461
|
+
version_number: number;
|
|
462
|
+
/** Whether this is the recommended version */
|
|
463
|
+
is_recommended: boolean;
|
|
464
|
+
/** Whether this is the latest version */
|
|
465
|
+
is_latest: boolean;
|
|
466
|
+
/** System prompt for the agent */
|
|
467
|
+
system_prompt?: string | null;
|
|
468
|
+
/** Default LLM model ID */
|
|
483
469
|
model_id?: string | null;
|
|
470
|
+
/** Default LLM model name */
|
|
484
471
|
model_name?: string | null;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
472
|
+
/** Original agent ID if forked */
|
|
473
|
+
origin_fork_id?: string | null;
|
|
474
|
+
/** Suggested conversation starters */
|
|
475
|
+
conversation_starter?: string[] | null;
|
|
476
|
+
/** JSON schema for structured output */
|
|
477
|
+
structured_output?: string | null;
|
|
478
|
+
/** Base version ID for version history */
|
|
479
|
+
base_version_id?: string | null;
|
|
480
|
+
planner_type?: PlannerType | null;
|
|
481
|
+
/** Maximum number of LLM interactions */
|
|
482
|
+
max_llm_interactions?: number | null;
|
|
483
|
+
/** Default LLM planner model ID */
|
|
484
|
+
planner_model_id?: string | null;
|
|
485
|
+
/** Default LLM planner model name */
|
|
486
|
+
planner_model_name?: string | null;
|
|
487
|
+
/** Knowledge sources configuration with details */
|
|
488
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse | null;
|
|
489
|
+
/** Agent toolkits (builtin and custom) */
|
|
490
|
+
toolkits?: AgentToolsResponse;
|
|
491
|
+
/** LLM settings */
|
|
492
|
+
settings?: LlmSettingsResponse[];
|
|
493
|
+
/** Available LLM models for this agent */
|
|
494
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
495
|
+
/** Creator username */
|
|
489
496
|
created_by?: string | null;
|
|
497
|
+
/** Creation timestamp */
|
|
490
498
|
created_at?: string | null;
|
|
499
|
+
/** Last updater username */
|
|
491
500
|
updated_by?: string | null;
|
|
501
|
+
/** Last update timestamp */
|
|
492
502
|
updated_at?: string | null;
|
|
493
|
-
available_llm_models?: AgentLlmModelDto[];
|
|
494
|
-
memory?: AgentMemory;
|
|
495
503
|
};
|
|
496
504
|
export type UpdateAgentRequest = {
|
|
497
505
|
use_only?: boolean | null;
|
|
@@ -509,12 +517,15 @@ export type UpdateAgentRequest = {
|
|
|
509
517
|
avatar?: string | null;
|
|
510
518
|
/** Agent suggested prompt */
|
|
511
519
|
suggested_prompts?: string[];
|
|
520
|
+
/** agent status */
|
|
521
|
+
status?: AgentVersionStatus | null;
|
|
512
522
|
/** System prompt */
|
|
513
523
|
system_prompt?: string | null;
|
|
514
524
|
/** Agent type */
|
|
515
525
|
"type"?: AgentType | null;
|
|
516
526
|
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
517
527
|
builtin_tools_ids?: string[];
|
|
528
|
+
/** Multi-agents assignment to the agent */
|
|
518
529
|
sub_agents_ids?: string[];
|
|
519
530
|
/** Custom tools to assign to the agent */
|
|
520
531
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
@@ -530,6 +541,14 @@ export type UpdateAgentRequest = {
|
|
|
530
541
|
available_models_ids?: string[];
|
|
531
542
|
/** Agent memory */
|
|
532
543
|
memory?: AgentMemory;
|
|
544
|
+
/** Agent planner type */
|
|
545
|
+
planner_type?: PlannerType;
|
|
546
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
547
|
+
max_llm_interactions?: number | null;
|
|
548
|
+
/** LLM planner model name */
|
|
549
|
+
planner_model_name?: string | null;
|
|
550
|
+
/** LLM planner model id */
|
|
551
|
+
planner_model_id?: string | null;
|
|
533
552
|
};
|
|
534
553
|
export type ForkAgentRequest = {
|
|
535
554
|
/** Agent slug to fork */
|
|
@@ -539,6 +558,144 @@ export type ForkAgentRequest = {
|
|
|
539
558
|
export type PublishAgentRequest = {
|
|
540
559
|
use_only?: boolean;
|
|
541
560
|
is_public?: boolean;
|
|
561
|
+
version_number?: number | null;
|
|
562
|
+
};
|
|
563
|
+
export type CreateVersionRequest = {
|
|
564
|
+
/** The version number to use as base for the new version. If not provided, uses latest version */
|
|
565
|
+
base_version_number?: number | null;
|
|
566
|
+
};
|
|
567
|
+
export type AgentVersionResponse = {
|
|
568
|
+
/** Agent version unique identifier */
|
|
569
|
+
id: string;
|
|
570
|
+
/** Reference to parent agent core */
|
|
571
|
+
agent_core_id: string;
|
|
572
|
+
/** Whether detail mode is enabled for responses */
|
|
573
|
+
detail_mode: boolean;
|
|
574
|
+
/** Whether version is internal-only */
|
|
575
|
+
is_internal: boolean;
|
|
576
|
+
/** Agent execution mode (autonomous, orchestrator, etc.) */
|
|
577
|
+
mode: AgentMode;
|
|
578
|
+
/** Memory type used by the agent */
|
|
579
|
+
memory: string;
|
|
580
|
+
/** Version status (draft, published, archived) */
|
|
581
|
+
status: AgentVersionStatus;
|
|
582
|
+
/** Sequential version number */
|
|
583
|
+
version_number: number;
|
|
584
|
+
/** Whether this is the recommended version for use */
|
|
585
|
+
is_recommended: boolean;
|
|
586
|
+
/** Whether this is the most recent version */
|
|
587
|
+
is_latest: boolean;
|
|
588
|
+
/** Base version ID used for creating this version */
|
|
589
|
+
base_version_id?: string | null;
|
|
590
|
+
/** Original agent version ID if this is a fork */
|
|
591
|
+
origin_fork_id?: string | null;
|
|
592
|
+
/** System prompt for the agent version */
|
|
593
|
+
system_prompt?: string | null;
|
|
594
|
+
/** LLM model ID used by this version */
|
|
595
|
+
model_id?: string | null;
|
|
596
|
+
/** LLM model name used by this version */
|
|
597
|
+
model_name?: string | null;
|
|
598
|
+
/** Suggested conversation starters */
|
|
599
|
+
conversation_starter?: string[] | null;
|
|
600
|
+
/** JSON schema for structured output format */
|
|
601
|
+
structured_output?: string | null;
|
|
602
|
+
planner_type?: PlannerType | null;
|
|
603
|
+
max_llm_interactions?: number | null;
|
|
604
|
+
/** Default LLM planner model ID */
|
|
605
|
+
planner_model_id?: string | null;
|
|
606
|
+
/** Default LLM planner model name */
|
|
607
|
+
planner_model_name?: string | null;
|
|
608
|
+
/** Knowledge sources configuration for RAG capabilities */
|
|
609
|
+
knowledge_sources_config?: KnowledgeSourcesConfig | null;
|
|
610
|
+
/** List of tools (builtin) assigned to this version */
|
|
611
|
+
toolkits?: AgentToolsResponse;
|
|
612
|
+
/** LLM-specific settings for this version */
|
|
613
|
+
settings?: LlmSettingsResponse[];
|
|
614
|
+
/** Available LLM models for this version */
|
|
615
|
+
llm_models?: AgentLlmModelResponse[];
|
|
616
|
+
/** Username of version creator */
|
|
617
|
+
created_by?: string | null;
|
|
618
|
+
/** Version creation timestamp */
|
|
619
|
+
created_at?: string | null;
|
|
620
|
+
/** Username of last updater */
|
|
621
|
+
updated_by?: string | null;
|
|
622
|
+
/** Last update timestamp */
|
|
623
|
+
updated_at?: string | null;
|
|
624
|
+
};
|
|
625
|
+
export type CreateVersionResponse = {
|
|
626
|
+
/** Agent core unique identifier */
|
|
627
|
+
id: string;
|
|
628
|
+
/** Agent name */
|
|
629
|
+
name: string;
|
|
630
|
+
/** Agent unique slug */
|
|
631
|
+
slug: string;
|
|
632
|
+
/** Agent description */
|
|
633
|
+
description?: string | null;
|
|
634
|
+
/** Agent avatar image URL */
|
|
635
|
+
avatar?: string | null;
|
|
636
|
+
/** Agent visibility level (personal, shared, account) */
|
|
637
|
+
visibility_level: string;
|
|
638
|
+
/** The newly created agent version details */
|
|
639
|
+
version: AgentVersionResponse;
|
|
640
|
+
/** Username of agent creator */
|
|
641
|
+
created_by?: string | null;
|
|
642
|
+
/** Agent creation timestamp */
|
|
643
|
+
created_at?: string | null;
|
|
644
|
+
/** Username of last updater */
|
|
645
|
+
updated_by?: string | null;
|
|
646
|
+
/** Last update timestamp */
|
|
647
|
+
updated_at?: string | null;
|
|
648
|
+
};
|
|
649
|
+
export type ListAgentVersionResponse = {
|
|
650
|
+
id: string;
|
|
651
|
+
version_number: number;
|
|
652
|
+
status: AgentVersionStatus;
|
|
653
|
+
is_recommended: boolean;
|
|
654
|
+
};
|
|
655
|
+
export type ForkedAgentCoreAndVersionResponse = {
|
|
656
|
+
/** Agent core unique identifier */
|
|
657
|
+
id: string;
|
|
658
|
+
/** Agent name */
|
|
659
|
+
name: string;
|
|
660
|
+
/** Agent unique slug */
|
|
661
|
+
slug: string;
|
|
662
|
+
/** Agent description */
|
|
663
|
+
description: string;
|
|
664
|
+
/** Agent avatar image URL */
|
|
665
|
+
avatar?: string | null;
|
|
666
|
+
/** Agent visibility level (personal, shared, account) */
|
|
667
|
+
visibility_level: string;
|
|
668
|
+
/** The newly created agent version details */
|
|
669
|
+
version: AgentVersionResponse;
|
|
670
|
+
/** Username of agent creator */
|
|
671
|
+
created_by?: string | null;
|
|
672
|
+
/** Agent creation timestamp */
|
|
673
|
+
created_at?: string | null;
|
|
674
|
+
/** Username of last updater */
|
|
675
|
+
updated_by?: string | null;
|
|
676
|
+
/** Last update timestamp */
|
|
677
|
+
updated_at?: string | null;
|
|
678
|
+
};
|
|
679
|
+
export type KnowledgeSourceDetailsResponse2 = {
|
|
680
|
+
id: string;
|
|
681
|
+
slug: string;
|
|
682
|
+
name: string;
|
|
683
|
+
description: string;
|
|
684
|
+
"type": string;
|
|
685
|
+
creator?: string | null;
|
|
686
|
+
"default": boolean;
|
|
687
|
+
visibility_level: VisibilityLevelEnum;
|
|
688
|
+
model_name: string;
|
|
689
|
+
username?: string | null;
|
|
690
|
+
};
|
|
691
|
+
export type KnowledgeSourcesConfigResponse2 = {
|
|
692
|
+
knowledge_sources: string[];
|
|
693
|
+
max_number_of_kos?: number;
|
|
694
|
+
relevancy_threshold?: number;
|
|
695
|
+
similarity_function?: SimilarityFunctionEnum;
|
|
696
|
+
post_processing?: boolean;
|
|
697
|
+
knowledge_sources_details?: KnowledgeSourceDetailsResponse2[];
|
|
698
|
+
sealed: boolean;
|
|
542
699
|
};
|
|
543
700
|
export type ListAgentResponseV2 = {
|
|
544
701
|
id: string;
|
|
@@ -549,13 +706,225 @@ export type ListAgentResponseV2 = {
|
|
|
549
706
|
visibility_level: string;
|
|
550
707
|
avatar: string | null;
|
|
551
708
|
conversation_starter: string[] | null;
|
|
552
|
-
knowledge_sources_config:
|
|
709
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponse2;
|
|
553
710
|
"type"?: string;
|
|
554
711
|
system_prompt?: string;
|
|
555
712
|
creator_name?: string;
|
|
713
|
+
version_number: number;
|
|
714
|
+
status: AgentVersionStatus;
|
|
715
|
+
is_recommended: boolean;
|
|
716
|
+
};
|
|
717
|
+
export type NewAgentRequestV2 = {
|
|
718
|
+
/** LLM model name */
|
|
719
|
+
model_name?: string | null;
|
|
720
|
+
/** LLM model id */
|
|
721
|
+
model_id?: string | null;
|
|
722
|
+
/** Agent name */
|
|
723
|
+
name: string;
|
|
724
|
+
/** Agent unique slug */
|
|
725
|
+
slug: string;
|
|
726
|
+
/** Agent description */
|
|
727
|
+
description?: string | null;
|
|
728
|
+
/** Agent avatar image */
|
|
729
|
+
avatar?: string | null;
|
|
730
|
+
/** Agent suggested prompt */
|
|
731
|
+
suggested_prompts?: string[];
|
|
732
|
+
/** System prompt */
|
|
733
|
+
system_prompt?: string | null;
|
|
734
|
+
/** Agent type */
|
|
735
|
+
"type": AgentType;
|
|
736
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
737
|
+
builtin_tools_ids?: string[];
|
|
738
|
+
/** Custom tools to assign to the agent */
|
|
739
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
740
|
+
/** Multi-agents assignment to the agent */
|
|
741
|
+
sub_agents_ids?: AssignMultiAgentVersionRequest[] | null;
|
|
742
|
+
mcp_toolkit_ids?: string[] | null;
|
|
743
|
+
detail_mode?: boolean;
|
|
744
|
+
structured_output?: string | null;
|
|
745
|
+
llm_settings?: {
|
|
746
|
+
[key: string]: any;
|
|
747
|
+
} | null;
|
|
748
|
+
/** Agent mode */
|
|
749
|
+
mode?: AgentMode;
|
|
750
|
+
/** Agent memory */
|
|
751
|
+
memory?: AgentMemory;
|
|
752
|
+
/** Available models for this particular agent */
|
|
753
|
+
available_models_ids?: string[];
|
|
754
|
+
/** Agent planner type */
|
|
755
|
+
planner_type?: PlannerType | null;
|
|
756
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
757
|
+
max_llm_interactions?: number | null;
|
|
758
|
+
/** LLM planner model name */
|
|
759
|
+
planner_model_name?: string | null;
|
|
760
|
+
/** LLM planner model id */
|
|
761
|
+
planner_model_id?: string | null;
|
|
762
|
+
};
|
|
763
|
+
export type SearchAgentVersionRequest = {
|
|
764
|
+
agent_core_id: string;
|
|
765
|
+
version_number?: number | null;
|
|
766
|
+
};
|
|
767
|
+
export type SearchAgentsRequestV2 = {
|
|
768
|
+
agents: SearchAgentVersionRequest[];
|
|
769
|
+
};
|
|
770
|
+
export type UpdateAgentRequestV2 = {
|
|
771
|
+
use_only?: boolean | null;
|
|
772
|
+
/** LLM model name */
|
|
773
|
+
model_name?: string | null;
|
|
774
|
+
/** LLM model id */
|
|
775
|
+
model_id?: string | null;
|
|
776
|
+
/** Agent name */
|
|
777
|
+
name?: string | null;
|
|
778
|
+
/** Agent unique slug */
|
|
779
|
+
slug?: string | null;
|
|
780
|
+
/** agent status */
|
|
781
|
+
status?: AgentVersionStatus | null;
|
|
782
|
+
/** Agent description */
|
|
783
|
+
description?: string | null;
|
|
784
|
+
/** Agent avatar image */
|
|
785
|
+
avatar?: string | null;
|
|
786
|
+
/** Agent suggested prompt */
|
|
787
|
+
suggested_prompts?: string[];
|
|
788
|
+
/** System prompt */
|
|
789
|
+
system_prompt?: string | null;
|
|
790
|
+
/** Agent type */
|
|
791
|
+
"type"?: AgentType | null;
|
|
792
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
793
|
+
builtin_tools_ids?: string[];
|
|
794
|
+
/** Multi-agents assignment to the agent */
|
|
795
|
+
sub_agents_ids?: AssignMultiAgentVersionRequest[];
|
|
796
|
+
/** Custom tools to assign to the agent */
|
|
797
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
798
|
+
mcp_toolkit_ids?: string[] | null;
|
|
799
|
+
detail_mode?: boolean | null;
|
|
800
|
+
structured_output?: string | null;
|
|
801
|
+
llm_settings?: {
|
|
802
|
+
[key: string]: any;
|
|
803
|
+
} | null;
|
|
804
|
+
/** Agent mode */
|
|
805
|
+
mode?: AgentMode | null;
|
|
806
|
+
/** Available models for this particular agent */
|
|
807
|
+
available_models_ids?: string[];
|
|
808
|
+
/** Agent memory */
|
|
809
|
+
memory?: AgentMemory;
|
|
810
|
+
/** Agent planner type */
|
|
811
|
+
planner_type?: PlannerType;
|
|
812
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
813
|
+
max_llm_interactions?: number | null;
|
|
814
|
+
/** LLM planner model name */
|
|
815
|
+
planner_model_name?: string | null;
|
|
816
|
+
/** LLM planner model id */
|
|
817
|
+
planner_model_id?: string | null;
|
|
818
|
+
};
|
|
819
|
+
export type CustomToolkitResponse2 = {
|
|
820
|
+
id: string;
|
|
821
|
+
name: string;
|
|
822
|
+
description?: string | null;
|
|
823
|
+
avatar?: string | null;
|
|
824
|
+
visibility_level: string;
|
|
825
|
+
creator_name: string | null;
|
|
826
|
+
toolkit_type?: ToolkitType | null;
|
|
827
|
+
tools: CustomToolkitToolResponse[];
|
|
828
|
+
secret_id?: string | null;
|
|
829
|
+
secrets?: string[] | null;
|
|
830
|
+
is_usable_by_others: boolean;
|
|
831
|
+
url?: string | null;
|
|
832
|
+
};
|
|
833
|
+
export type AgentToolsResponse2 = {
|
|
834
|
+
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
835
|
+
custom_toolkits?: CustomToolkitResponse2[];
|
|
836
|
+
mcp_toolkits?: ToolkitMcpResponse[];
|
|
837
|
+
multi_agent_toolkits?: MultiAgentToolkitResponse[];
|
|
838
|
+
};
|
|
839
|
+
export type AgentVersionResponse2 = {
|
|
840
|
+
/** System prompt for the agent version */
|
|
841
|
+
system_prompt: string;
|
|
842
|
+
/** Whether detail mode is enabled for responses */
|
|
843
|
+
detail_mode: boolean;
|
|
844
|
+
/** Whether version is internal-only */
|
|
845
|
+
is_internal: boolean;
|
|
846
|
+
/** Agent execution mode (autonomous, orchestrator, etc.) */
|
|
847
|
+
mode: AgentMode;
|
|
848
|
+
/** Memory type used by the agent */
|
|
849
|
+
memory: string;
|
|
850
|
+
/** Version status (draft, published, archived) */
|
|
851
|
+
status: AgentVersionStatus;
|
|
852
|
+
/** Sequential version number */
|
|
853
|
+
version_number: number;
|
|
854
|
+
/** Whether this is the recommended version for use */
|
|
855
|
+
is_recommended: boolean;
|
|
856
|
+
/** Whether this is the most recent version */
|
|
857
|
+
is_latest: boolean;
|
|
858
|
+
/** Base version ID used for creating this version */
|
|
859
|
+
base_version_id?: string | null;
|
|
860
|
+
/** Original agent version ID if this is a fork */
|
|
861
|
+
origin_fork_id?: string | null;
|
|
862
|
+
/** LLM model ID used by this version */
|
|
863
|
+
model_id?: string | null;
|
|
864
|
+
/** LLM model name used by this version */
|
|
865
|
+
model_name?: string | null;
|
|
866
|
+
/** Suggested conversation starters */
|
|
867
|
+
conversation_starter?: string[] | null;
|
|
868
|
+
/** JSON schema for structured output format */
|
|
869
|
+
structured_output?: string | null;
|
|
870
|
+
planner_type?: PlannerType | null;
|
|
871
|
+
/** Maximum number of LLM interactions */
|
|
872
|
+
max_llm_interactions?: number | null;
|
|
873
|
+
/** Default LLM planner model ID */
|
|
874
|
+
planner_model_id?: string | null;
|
|
875
|
+
/** Default LLM planner model name */
|
|
876
|
+
planner_model_name?: string | null;
|
|
877
|
+
/** Knowledge sources configuration for RAG capabilities */
|
|
878
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse2 | null;
|
|
879
|
+
/** List of tools (builtin) assigned to this version */
|
|
880
|
+
toolkits?: AgentToolsResponse2;
|
|
881
|
+
/** LLM-specific settings for this version */
|
|
882
|
+
settings?: LlmSettingsResponse[];
|
|
883
|
+
/** Available LLM models for this version */
|
|
884
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
885
|
+
/** Username of version creator */
|
|
886
|
+
created_by?: string | null;
|
|
887
|
+
/** Version creation timestamp */
|
|
888
|
+
created_at?: string | null;
|
|
889
|
+
/** Username of last updater */
|
|
890
|
+
updated_by?: string | null;
|
|
891
|
+
/** Last update timestamp */
|
|
892
|
+
updated_at?: string | null;
|
|
893
|
+
};
|
|
894
|
+
export type AgentCoreWithSingleVersionResponse = {
|
|
895
|
+
/** Agent core unique identifier (ULID format) */
|
|
896
|
+
id: string;
|
|
897
|
+
/** Agent display name */
|
|
898
|
+
name: string;
|
|
899
|
+
/** Agent unique slug for URL-friendly identification */
|
|
900
|
+
slug: string;
|
|
901
|
+
/** Agent core type */
|
|
902
|
+
"type": string;
|
|
903
|
+
/** Whether agent is use-only (hides implementation) */
|
|
904
|
+
use_only: boolean;
|
|
905
|
+
/** Detailed description of the agent's purpose and capabilities */
|
|
906
|
+
description?: string | null;
|
|
907
|
+
/** URL or path to agent's avatar image */
|
|
908
|
+
avatar?: string | null;
|
|
909
|
+
/** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
|
|
910
|
+
visibility_level: string;
|
|
911
|
+
/** Specific or recommend version associated with this agent core */
|
|
912
|
+
version: AgentVersionResponse2;
|
|
913
|
+
/** Whether the current user has marked this agent as favorite */
|
|
914
|
+
is_favorite?: boolean;
|
|
915
|
+
/** Whether this agent was recently used by the current user */
|
|
916
|
+
is_recently_used?: boolean;
|
|
917
|
+
/** Username or identifier of the user who created this agent */
|
|
918
|
+
created_by?: string | null;
|
|
919
|
+
/** Timestamp when the agent was created (ISO 8601 format) */
|
|
920
|
+
created_at?: string | null;
|
|
921
|
+
/** Username or identifier of the user who last updated this agent */
|
|
922
|
+
updated_by?: string | null;
|
|
923
|
+
/** Timestamp of the last update (ISO 8601 format) */
|
|
924
|
+
updated_at?: string | null;
|
|
556
925
|
};
|
|
557
926
|
export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
|
|
558
|
-
export type
|
|
927
|
+
export type ListAgentRequestV4 = {
|
|
559
928
|
/** Agent name to filter the list */
|
|
560
929
|
name?: string | null;
|
|
561
930
|
/** Agent slug to filter the list */
|
|
@@ -581,7 +950,7 @@ export type AgentResponseV3 = {
|
|
|
581
950
|
slug: string;
|
|
582
951
|
created_by: string | null;
|
|
583
952
|
created_at: string | null;
|
|
584
|
-
visibility_level:
|
|
953
|
+
visibility_level: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
585
954
|
avatar: string | null;
|
|
586
955
|
suggested_prompts: string[] | null;
|
|
587
956
|
knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
|
|
@@ -591,11 +960,35 @@ export type AgentResponseV3 = {
|
|
|
591
960
|
creator_name?: string;
|
|
592
961
|
is_favorite?: boolean;
|
|
593
962
|
is_recently_used?: boolean;
|
|
963
|
+
version_number: number;
|
|
964
|
+
status: AgentVersionStatus;
|
|
965
|
+
is_recommended: boolean;
|
|
594
966
|
};
|
|
595
967
|
export type PaginatedResponseAgentResponseV3 = {
|
|
596
968
|
total_pages: number;
|
|
597
969
|
items: AgentResponseV3[];
|
|
598
970
|
};
|
|
971
|
+
export type ListAgentVersionResponse2 = {
|
|
972
|
+
version_number: number;
|
|
973
|
+
status: AgentVersionStatus;
|
|
974
|
+
is_recommended: boolean;
|
|
975
|
+
};
|
|
976
|
+
export type ListAgentCoreResponse = {
|
|
977
|
+
id: string;
|
|
978
|
+
name: string;
|
|
979
|
+
slug: string;
|
|
980
|
+
visibility_level: string;
|
|
981
|
+
avatar: string | null;
|
|
982
|
+
created_by: string | null;
|
|
983
|
+
created_at: string | null;
|
|
984
|
+
is_favorite?: boolean;
|
|
985
|
+
is_recently_used?: boolean;
|
|
986
|
+
version: ListAgentVersionResponse2;
|
|
987
|
+
};
|
|
988
|
+
export type PaginatedResponseListAgentCoreResponse = {
|
|
989
|
+
total_pages: number;
|
|
990
|
+
items: ListAgentCoreResponse[];
|
|
991
|
+
};
|
|
599
992
|
export type InternalListToolkitsRequest = {
|
|
600
993
|
/** List of toolkit IDs to retrieve */
|
|
601
994
|
toolkit_ids: string[];
|
|
@@ -1145,46 +1538,12 @@ export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkit
|
|
|
1145
1538
|
})
|
|
1146
1539
|
})));
|
|
1147
1540
|
}
|
|
1148
|
-
/**
|
|
1149
|
-
* Assign Tools
|
|
1150
|
-
*/
|
|
1151
|
-
export function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, assignToolsToAgentRequest }: {
|
|
1152
|
-
agentId: string;
|
|
1153
|
-
isPublic?: boolean;
|
|
1154
|
-
xAccountId?: string | null;
|
|
1155
|
-
xUsername?: string | null;
|
|
1156
|
-
xUserId?: string | null;
|
|
1157
|
-
xUserFullName?: string | null;
|
|
1158
|
-
authorization: string;
|
|
1159
|
-
assignToolsToAgentRequest: AssignToolsToAgentRequest;
|
|
1160
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1161
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1162
|
-
status: 204;
|
|
1163
|
-
} | {
|
|
1164
|
-
status: 404;
|
|
1165
|
-
} | {
|
|
1166
|
-
status: 422;
|
|
1167
|
-
data: HttpValidationError;
|
|
1168
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1169
|
-
is_public: isPublic
|
|
1170
|
-
}))}`, oazapfts.json({
|
|
1171
|
-
...opts,
|
|
1172
|
-
method: "POST",
|
|
1173
|
-
body: assignToolsToAgentRequest,
|
|
1174
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1175
|
-
"x-account-id": xAccountId,
|
|
1176
|
-
"x-username": xUsername,
|
|
1177
|
-
"x-user-id": xUserId,
|
|
1178
|
-
"x-user-full-name": xUserFullName,
|
|
1179
|
-
authorization
|
|
1180
|
-
})
|
|
1181
|
-
})));
|
|
1182
|
-
}
|
|
1183
1541
|
/**
|
|
1184
1542
|
* List Tools
|
|
1185
1543
|
*/
|
|
1186
|
-
export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1544
|
+
export function listToolsV1AgentsAgentIdToolsGet({ agentId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1187
1545
|
agentId: string;
|
|
1546
|
+
versionNumber?: number | null;
|
|
1188
1547
|
isPublic?: boolean;
|
|
1189
1548
|
xAccountId?: string | null;
|
|
1190
1549
|
xUsername?: string | null;
|
|
@@ -1201,6 +1560,7 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
|
|
|
1201
1560
|
status: 422;
|
|
1202
1561
|
data: HttpValidationError;
|
|
1203
1562
|
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1563
|
+
version_number: versionNumber,
|
|
1204
1564
|
is_public: isPublic
|
|
1205
1565
|
}))}`, {
|
|
1206
1566
|
...opts,
|
|
@@ -1213,45 +1573,13 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
|
|
|
1213
1573
|
})
|
|
1214
1574
|
}));
|
|
1215
1575
|
}
|
|
1216
|
-
/**
|
|
1217
|
-
* Delete Tools
|
|
1218
|
-
*/
|
|
1219
|
-
export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1220
|
-
agentId: string;
|
|
1221
|
-
isPublic?: boolean;
|
|
1222
|
-
xAccountId?: string | null;
|
|
1223
|
-
xUsername?: string | null;
|
|
1224
|
-
xUserId?: string | null;
|
|
1225
|
-
xUserFullName?: string | null;
|
|
1226
|
-
authorization: string;
|
|
1227
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1228
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1229
|
-
status: 204;
|
|
1230
|
-
} | {
|
|
1231
|
-
status: 404;
|
|
1232
|
-
} | {
|
|
1233
|
-
status: 422;
|
|
1234
|
-
data: HttpValidationError;
|
|
1235
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1236
|
-
is_public: isPublic
|
|
1237
|
-
}))}`, {
|
|
1238
|
-
...opts,
|
|
1239
|
-
method: "DELETE",
|
|
1240
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1241
|
-
"x-account-id": xAccountId,
|
|
1242
|
-
"x-username": xUsername,
|
|
1243
|
-
"x-user-id": xUserId,
|
|
1244
|
-
"x-user-full-name": xUserFullName,
|
|
1245
|
-
authorization
|
|
1246
|
-
})
|
|
1247
|
-
}));
|
|
1248
|
-
}
|
|
1249
1576
|
/**
|
|
1250
1577
|
* List Tools By Agent For Schema
|
|
1251
1578
|
*/
|
|
1252
|
-
export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1579
|
+
export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1253
1580
|
agentId: string;
|
|
1254
1581
|
schema: SchemaEnum;
|
|
1582
|
+
versionNumber?: number | null;
|
|
1255
1583
|
isPublic?: boolean;
|
|
1256
1584
|
xAccountId?: string | null;
|
|
1257
1585
|
xUsername?: string | null;
|
|
@@ -1270,6 +1598,7 @@ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ a
|
|
|
1270
1598
|
status: 422;
|
|
1271
1599
|
data: HttpValidationError;
|
|
1272
1600
|
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
|
|
1601
|
+
version_number: versionNumber,
|
|
1273
1602
|
is_public: isPublic
|
|
1274
1603
|
}))}`, {
|
|
1275
1604
|
...opts,
|
|
@@ -1396,9 +1725,9 @@ export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUser
|
|
|
1396
1725
|
})));
|
|
1397
1726
|
}
|
|
1398
1727
|
/**
|
|
1399
|
-
* Search Agents
|
|
1728
|
+
* Search Agents By Ids
|
|
1400
1729
|
*/
|
|
1401
|
-
export function
|
|
1730
|
+
export function searchAgentsByIdsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
|
|
1402
1731
|
xAccountId?: string | null;
|
|
1403
1732
|
xUsername?: string | null;
|
|
1404
1733
|
xUserId?: string | null;
|
|
@@ -1597,9 +1926,10 @@ export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility,
|
|
|
1597
1926
|
/**
|
|
1598
1927
|
* Get Agent
|
|
1599
1928
|
*/
|
|
1600
|
-
export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1929
|
+
export function getAgentV1AgentsAgentIdGet({ agentId, details, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1601
1930
|
agentId: string;
|
|
1602
1931
|
details?: boolean;
|
|
1932
|
+
versionNumber?: number | null;
|
|
1603
1933
|
xAccountId?: string | null;
|
|
1604
1934
|
xUsername?: string | null;
|
|
1605
1935
|
xUserId?: string | null;
|
|
@@ -1608,14 +1938,15 @@ export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUser
|
|
|
1608
1938
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1609
1939
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1610
1940
|
status: 200;
|
|
1611
|
-
data:
|
|
1941
|
+
data: FindByIdAgentResponse;
|
|
1612
1942
|
} | {
|
|
1613
1943
|
status: 404;
|
|
1614
1944
|
} | {
|
|
1615
1945
|
status: 422;
|
|
1616
1946
|
data: HttpValidationError;
|
|
1617
1947
|
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1618
|
-
details
|
|
1948
|
+
details,
|
|
1949
|
+
version_number: versionNumber
|
|
1619
1950
|
}))}`, {
|
|
1620
1951
|
...opts,
|
|
1621
1952
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1943,6 +2274,172 @@ export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId
|
|
|
1943
2274
|
})
|
|
1944
2275
|
}));
|
|
1945
2276
|
}
|
|
2277
|
+
/**
|
|
2278
|
+
* Create Version
|
|
2279
|
+
*/
|
|
2280
|
+
export function createVersionV1AgentsAgentCoreIdVersionsPost({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization, createVersionRequest }: {
|
|
2281
|
+
agentCoreId: string;
|
|
2282
|
+
xAccountId?: string | null;
|
|
2283
|
+
xUsername?: string | null;
|
|
2284
|
+
xUserId?: string | null;
|
|
2285
|
+
xUserFullName?: string | null;
|
|
2286
|
+
authorization: string;
|
|
2287
|
+
createVersionRequest: CreateVersionRequest;
|
|
2288
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2289
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2290
|
+
status: 200;
|
|
2291
|
+
data: CreateVersionResponse;
|
|
2292
|
+
} | {
|
|
2293
|
+
status: 201;
|
|
2294
|
+
data: CreateVersionResponse;
|
|
2295
|
+
} | {
|
|
2296
|
+
status: 404;
|
|
2297
|
+
} | {
|
|
2298
|
+
status: 422;
|
|
2299
|
+
data: HttpValidationError;
|
|
2300
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, oazapfts.json({
|
|
2301
|
+
...opts,
|
|
2302
|
+
method: "POST",
|
|
2303
|
+
body: createVersionRequest,
|
|
2304
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2305
|
+
"x-account-id": xAccountId,
|
|
2306
|
+
"x-username": xUsername,
|
|
2307
|
+
"x-user-id": xUserId,
|
|
2308
|
+
"x-user-full-name": xUserFullName,
|
|
2309
|
+
authorization
|
|
2310
|
+
})
|
|
2311
|
+
})));
|
|
2312
|
+
}
|
|
2313
|
+
/**
|
|
2314
|
+
* List Versions Of Agent Core
|
|
2315
|
+
*/
|
|
2316
|
+
export function listVersionsOfAgentCoreV1AgentsAgentCoreIdVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2317
|
+
agentCoreId: string;
|
|
2318
|
+
xAccountId?: string | null;
|
|
2319
|
+
xUsername?: string | null;
|
|
2320
|
+
xUserId?: string | null;
|
|
2321
|
+
xUserFullName?: string | null;
|
|
2322
|
+
authorization: string;
|
|
2323
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2324
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2325
|
+
status: 200;
|
|
2326
|
+
data: ListAgentVersionResponse[];
|
|
2327
|
+
} | {
|
|
2328
|
+
status: 404;
|
|
2329
|
+
} | {
|
|
2330
|
+
status: 422;
|
|
2331
|
+
data: HttpValidationError;
|
|
2332
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, {
|
|
2333
|
+
...opts,
|
|
2334
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2335
|
+
"x-account-id": xAccountId,
|
|
2336
|
+
"x-username": xUsername,
|
|
2337
|
+
"x-user-id": xUserId,
|
|
2338
|
+
"x-user-full-name": xUserFullName,
|
|
2339
|
+
authorization
|
|
2340
|
+
})
|
|
2341
|
+
}));
|
|
2342
|
+
}
|
|
2343
|
+
/**
|
|
2344
|
+
* Delete Version
|
|
2345
|
+
*/
|
|
2346
|
+
export function deleteVersionV1AgentsAgentCoreIdVersionsVersionNumberDelete({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2347
|
+
agentCoreId: string;
|
|
2348
|
+
versionNumber: number;
|
|
2349
|
+
isPublic?: boolean;
|
|
2350
|
+
xAccountId?: string | null;
|
|
2351
|
+
xUsername?: string | null;
|
|
2352
|
+
xUserId?: string | null;
|
|
2353
|
+
xUserFullName?: string | null;
|
|
2354
|
+
authorization: string;
|
|
2355
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2356
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2357
|
+
status: 204;
|
|
2358
|
+
} | {
|
|
2359
|
+
status: 404;
|
|
2360
|
+
} | {
|
|
2361
|
+
status: 422;
|
|
2362
|
+
data: HttpValidationError;
|
|
2363
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}${QS.query(QS.explode({
|
|
2364
|
+
is_public: isPublic
|
|
2365
|
+
}))}`, {
|
|
2366
|
+
...opts,
|
|
2367
|
+
method: "DELETE",
|
|
2368
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2369
|
+
"x-account-id": xAccountId,
|
|
2370
|
+
"x-username": xUsername,
|
|
2371
|
+
"x-user-id": xUserId,
|
|
2372
|
+
"x-user-full-name": xUserFullName,
|
|
2373
|
+
authorization
|
|
2374
|
+
})
|
|
2375
|
+
}));
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Patch Version Recommended
|
|
2379
|
+
*/
|
|
2380
|
+
export function patchVersionRecommendedV1AgentsAgentCoreIdVersionsVersionNumberPatch({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2381
|
+
agentCoreId: string;
|
|
2382
|
+
versionNumber: number;
|
|
2383
|
+
xAccountId?: string | null;
|
|
2384
|
+
xUsername?: string | null;
|
|
2385
|
+
xUserId?: string | null;
|
|
2386
|
+
xUserFullName?: string | null;
|
|
2387
|
+
authorization: string;
|
|
2388
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2389
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2390
|
+
status: 200;
|
|
2391
|
+
data: AgentVersionResponse;
|
|
2392
|
+
} | {
|
|
2393
|
+
status: 404;
|
|
2394
|
+
} | {
|
|
2395
|
+
status: 422;
|
|
2396
|
+
data: HttpValidationError;
|
|
2397
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}`, {
|
|
2398
|
+
...opts,
|
|
2399
|
+
method: "PATCH",
|
|
2400
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2401
|
+
"x-account-id": xAccountId,
|
|
2402
|
+
"x-username": xUsername,
|
|
2403
|
+
"x-user-id": xUserId,
|
|
2404
|
+
"x-user-full-name": xUserFullName,
|
|
2405
|
+
authorization
|
|
2406
|
+
})
|
|
2407
|
+
}));
|
|
2408
|
+
}
|
|
2409
|
+
/**
|
|
2410
|
+
* Fork Agent Version
|
|
2411
|
+
*/
|
|
2412
|
+
export function forkAgentVersionV1AgentsAgentCoreIdVersionsVersionNumberForkPost({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
2413
|
+
agentCoreId: string;
|
|
2414
|
+
versionNumber: number;
|
|
2415
|
+
xAccountId?: string | null;
|
|
2416
|
+
xUsername?: string | null;
|
|
2417
|
+
xUserId?: string | null;
|
|
2418
|
+
xUserFullName?: string | null;
|
|
2419
|
+
authorization: string;
|
|
2420
|
+
forkAgentRequest: ForkAgentRequest;
|
|
2421
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2422
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2423
|
+
status: 201;
|
|
2424
|
+
data: ForkedAgentCoreAndVersionResponse;
|
|
2425
|
+
} | {
|
|
2426
|
+
status: 404;
|
|
2427
|
+
} | {
|
|
2428
|
+
status: 422;
|
|
2429
|
+
data: HttpValidationError;
|
|
2430
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}/fork`, oazapfts.json({
|
|
2431
|
+
...opts,
|
|
2432
|
+
method: "POST",
|
|
2433
|
+
body: forkAgentRequest,
|
|
2434
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2435
|
+
"x-account-id": xAccountId,
|
|
2436
|
+
"x-username": xUsername,
|
|
2437
|
+
"x-user-id": xUserId,
|
|
2438
|
+
"x-user-full-name": xUserFullName,
|
|
2439
|
+
authorization
|
|
2440
|
+
})
|
|
2441
|
+
})));
|
|
2442
|
+
}
|
|
1946
2443
|
/**
|
|
1947
2444
|
* List Agents
|
|
1948
2445
|
*/
|
|
@@ -1983,16 +2480,51 @@ export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
1983
2480
|
})
|
|
1984
2481
|
}));
|
|
1985
2482
|
}
|
|
2483
|
+
/**
|
|
2484
|
+
* Create Agent
|
|
2485
|
+
*/
|
|
2486
|
+
export function createAgentV2AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequestV2 }: {
|
|
2487
|
+
isPublic?: boolean;
|
|
2488
|
+
xAccountId?: string | null;
|
|
2489
|
+
xUsername?: string | null;
|
|
2490
|
+
xUserId?: string | null;
|
|
2491
|
+
xUserFullName?: string | null;
|
|
2492
|
+
authorization: string;
|
|
2493
|
+
newAgentRequestV2: NewAgentRequestV2;
|
|
2494
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2495
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2496
|
+
status: 201;
|
|
2497
|
+
data: CreatedResponse;
|
|
2498
|
+
} | {
|
|
2499
|
+
status: 404;
|
|
2500
|
+
} | {
|
|
2501
|
+
status: 422;
|
|
2502
|
+
data: HttpValidationError;
|
|
2503
|
+
}>(`/v2/agents${QS.query(QS.explode({
|
|
2504
|
+
is_public: isPublic
|
|
2505
|
+
}))}`, oazapfts.json({
|
|
2506
|
+
...opts,
|
|
2507
|
+
method: "POST",
|
|
2508
|
+
body: newAgentRequestV2,
|
|
2509
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2510
|
+
"x-account-id": xAccountId,
|
|
2511
|
+
"x-username": xUsername,
|
|
2512
|
+
"x-user-id": xUserId,
|
|
2513
|
+
"x-user-full-name": xUserFullName,
|
|
2514
|
+
authorization
|
|
2515
|
+
})
|
|
2516
|
+
})));
|
|
2517
|
+
}
|
|
1986
2518
|
/**
|
|
1987
2519
|
* Search Agents
|
|
1988
2520
|
*/
|
|
1989
|
-
export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization,
|
|
2521
|
+
export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequestV2 }: {
|
|
1990
2522
|
xAccountId?: string | null;
|
|
1991
2523
|
xUsername?: string | null;
|
|
1992
2524
|
xUserId?: string | null;
|
|
1993
2525
|
xUserFullName?: string | null;
|
|
1994
2526
|
authorization: string;
|
|
1995
|
-
|
|
2527
|
+
searchAgentsRequestV2: SearchAgentsRequestV2;
|
|
1996
2528
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1997
2529
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1998
2530
|
status: 200;
|
|
@@ -2005,7 +2537,42 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
2005
2537
|
}>("/v2/agents/search", oazapfts.json({
|
|
2006
2538
|
...opts,
|
|
2007
2539
|
method: "POST",
|
|
2008
|
-
body:
|
|
2540
|
+
body: searchAgentsRequestV2,
|
|
2541
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2542
|
+
"x-account-id": xAccountId,
|
|
2543
|
+
"x-username": xUsername,
|
|
2544
|
+
"x-user-id": xUserId,
|
|
2545
|
+
"x-user-full-name": xUserFullName,
|
|
2546
|
+
authorization
|
|
2547
|
+
})
|
|
2548
|
+
})));
|
|
2549
|
+
}
|
|
2550
|
+
/**
|
|
2551
|
+
* Update Agent
|
|
2552
|
+
*/
|
|
2553
|
+
export function updateAgentV2AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequestV2 }: {
|
|
2554
|
+
agentId: string;
|
|
2555
|
+
isPublic?: boolean;
|
|
2556
|
+
xAccountId?: string | null;
|
|
2557
|
+
xUsername?: string | null;
|
|
2558
|
+
xUserId?: string | null;
|
|
2559
|
+
xUserFullName?: string | null;
|
|
2560
|
+
authorization: string;
|
|
2561
|
+
updateAgentRequestV2: UpdateAgentRequestV2;
|
|
2562
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2563
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2564
|
+
status: 204;
|
|
2565
|
+
} | {
|
|
2566
|
+
status: 404;
|
|
2567
|
+
} | {
|
|
2568
|
+
status: 422;
|
|
2569
|
+
data: HttpValidationError;
|
|
2570
|
+
}>(`/v2/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
2571
|
+
is_public: isPublic
|
|
2572
|
+
}))}`, oazapfts.json({
|
|
2573
|
+
...opts,
|
|
2574
|
+
method: "PATCH",
|
|
2575
|
+
body: updateAgentRequestV2,
|
|
2009
2576
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2010
2577
|
"x-account-id": xAccountId,
|
|
2011
2578
|
"x-username": xUsername,
|
|
@@ -2015,11 +2582,46 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
2015
2582
|
})
|
|
2016
2583
|
})));
|
|
2017
2584
|
}
|
|
2585
|
+
/**
|
|
2586
|
+
* Find By Agent Core Id
|
|
2587
|
+
*/
|
|
2588
|
+
export function findByAgentCoreIdV2AgentsAgentCoreIdGet({ agentCoreId, versionNumber, returnAllVersions, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2589
|
+
agentCoreId: string;
|
|
2590
|
+
versionNumber?: number | null;
|
|
2591
|
+
returnAllVersions?: boolean | null;
|
|
2592
|
+
xAccountId?: string | null;
|
|
2593
|
+
xUsername?: string | null;
|
|
2594
|
+
xUserId?: string | null;
|
|
2595
|
+
xUserFullName?: string | null;
|
|
2596
|
+
authorization: string;
|
|
2597
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2598
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2599
|
+
status: 200;
|
|
2600
|
+
data: AgentCoreWithSingleVersionResponse;
|
|
2601
|
+
} | {
|
|
2602
|
+
status: 404;
|
|
2603
|
+
} | {
|
|
2604
|
+
status: 422;
|
|
2605
|
+
data: HttpValidationError;
|
|
2606
|
+
}>(`/v2/agents/${encodeURIComponent(agentCoreId)}${QS.query(QS.explode({
|
|
2607
|
+
version_number: versionNumber,
|
|
2608
|
+
return_all_versions: returnAllVersions
|
|
2609
|
+
}))}`, {
|
|
2610
|
+
...opts,
|
|
2611
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2612
|
+
"x-account-id": xAccountId,
|
|
2613
|
+
"x-username": xUsername,
|
|
2614
|
+
"x-user-id": xUserId,
|
|
2615
|
+
"x-user-full-name": xUserFullName,
|
|
2616
|
+
authorization
|
|
2617
|
+
})
|
|
2618
|
+
}));
|
|
2619
|
+
}
|
|
2018
2620
|
/**
|
|
2019
2621
|
* List Agents
|
|
2020
2622
|
*/
|
|
2021
2623
|
export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2022
|
-
filters:
|
|
2624
|
+
filters: ListAgentRequestV4;
|
|
2023
2625
|
isPublic?: boolean;
|
|
2024
2626
|
xAccountId?: string | null;
|
|
2025
2627
|
xUsername?: string | null;
|
|
@@ -2049,6 +2651,40 @@ export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername
|
|
|
2049
2651
|
})
|
|
2050
2652
|
}));
|
|
2051
2653
|
}
|
|
2654
|
+
/**
|
|
2655
|
+
* List Agent Core with all versions
|
|
2656
|
+
*/
|
|
2657
|
+
export function listAgentsV4AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2658
|
+
filters: ListAgentRequestV4;
|
|
2659
|
+
isPublic?: boolean;
|
|
2660
|
+
xAccountId?: string | null;
|
|
2661
|
+
xUsername?: string | null;
|
|
2662
|
+
xUserId?: string | null;
|
|
2663
|
+
xUserFullName?: string | null;
|
|
2664
|
+
authorization: string;
|
|
2665
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2666
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2667
|
+
status: 200;
|
|
2668
|
+
data: PaginatedResponseListAgentCoreResponse;
|
|
2669
|
+
} | {
|
|
2670
|
+
status: 404;
|
|
2671
|
+
} | {
|
|
2672
|
+
status: 422;
|
|
2673
|
+
data: HttpValidationError;
|
|
2674
|
+
}>(`/v4/agents${QS.query(QS.explode({
|
|
2675
|
+
filters,
|
|
2676
|
+
is_public: isPublic
|
|
2677
|
+
}))}`, {
|
|
2678
|
+
...opts,
|
|
2679
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2680
|
+
"x-account-id": xAccountId,
|
|
2681
|
+
"x-username": xUsername,
|
|
2682
|
+
"x-user-id": xUserId,
|
|
2683
|
+
"x-user-full-name": xUserFullName,
|
|
2684
|
+
authorization
|
|
2685
|
+
})
|
|
2686
|
+
}));
|
|
2687
|
+
}
|
|
2052
2688
|
/**
|
|
2053
2689
|
* Internal List Toolkits By Ids
|
|
2054
2690
|
*/
|