@stack-spot/portal-network 1.0.0-dev.1768944806600 → 1.0.0-dev.1769117840606
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 +13 -0
- package/dist/api/accountAssetManager.d.ts +14 -10
- package/dist/api/accountAssetManager.d.ts.map +1 -1
- package/dist/api/accountAssetManager.js +5 -2
- package/dist/api/accountAssetManager.js.map +1 -1
- package/dist/api/agent-tools.d.ts +752 -164
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +203 -43
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +3 -2
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +1 -2
- package/dist/api/ai.js.map +1 -1
- 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/client/account-asset-manager.d.ts +3 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +130 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +105 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts +72 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +71 -6
- package/dist/client/ai.js.map +1 -1
- package/dist/client/workspace-ai.d.ts +15 -4
- 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/package.json +1 -1
- package/src/api/accountAssetManager.ts +18 -11
- package/src/api/agent-tools.ts +1259 -472
- package/src/api/ai.ts +3 -3
- package/src/api/workspace-ai.ts +83 -0
- package/src/client/agent-tools.ts +55 -2
- package/src/client/ai.ts +41 -6
- package/src/client/workspace-ai.ts +23 -7
package/src/api/agent-tools.ts
CHANGED
|
@@ -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;
|
|
@@ -244,6 +256,19 @@ export type ExecuteAgentToolRequest = {
|
|
|
244
256
|
export type AgentToolExecutionResponse = {
|
|
245
257
|
result: string;
|
|
246
258
|
};
|
|
259
|
+
export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
|
|
260
|
+
export type ListAccountAgentResponseV1 = {
|
|
261
|
+
name: string;
|
|
262
|
+
username: string;
|
|
263
|
+
created_at?: string | null;
|
|
264
|
+
visibility_level: string;
|
|
265
|
+
id: string;
|
|
266
|
+
slug: string;
|
|
267
|
+
};
|
|
268
|
+
export type PaginatedResponseListAccountAgentResponseV1 = {
|
|
269
|
+
total_pages: number;
|
|
270
|
+
items: ListAccountAgentResponseV1[];
|
|
271
|
+
};
|
|
247
272
|
export type AgentVisibilityLevelEnum = "built_in" | "recently_used";
|
|
248
273
|
export type KnowledgeSourcesConfig = {
|
|
249
274
|
knowledge_sources: string[];
|
|
@@ -252,16 +277,26 @@ export type KnowledgeSourcesConfig = {
|
|
|
252
277
|
similarity_function?: string;
|
|
253
278
|
post_processing?: boolean;
|
|
254
279
|
};
|
|
280
|
+
export type AgentVersionStatus = "draft" | "published" | "deprecated";
|
|
255
281
|
export type ListAgentResponse = {
|
|
282
|
+
/** Username of creator */
|
|
283
|
+
created_by?: string | null;
|
|
284
|
+
/** Creation timestamp */
|
|
285
|
+
created_at?: string | null;
|
|
286
|
+
/** Username of last updater */
|
|
287
|
+
updated_by?: string | null;
|
|
288
|
+
/** Last update timestamp */
|
|
289
|
+
updated_at?: string | null;
|
|
256
290
|
id: string;
|
|
257
291
|
name: string;
|
|
258
292
|
slug: string;
|
|
259
|
-
created_by: string | null;
|
|
260
|
-
created_at: string | null;
|
|
261
293
|
visibility_level: string;
|
|
262
|
-
avatar
|
|
263
|
-
suggested_prompts
|
|
294
|
+
avatar?: string | null;
|
|
295
|
+
suggested_prompts?: string[] | null;
|
|
264
296
|
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
297
|
+
version_number: number;
|
|
298
|
+
status: AgentVersionStatus;
|
|
299
|
+
is_recommended: boolean;
|
|
265
300
|
has_multiagent_tool?: boolean;
|
|
266
301
|
"type"?: string;
|
|
267
302
|
system_prompt?: string;
|
|
@@ -277,6 +312,10 @@ export type KnowledgeSourcesConfigRequest = {
|
|
|
277
312
|
knowledge_sources?: string[] | null;
|
|
278
313
|
sealed?: boolean | null;
|
|
279
314
|
};
|
|
315
|
+
export type AssignCustomToolsAgentRequest = {
|
|
316
|
+
toolkit_id: string;
|
|
317
|
+
tools_ids: string[];
|
|
318
|
+
};
|
|
280
319
|
export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
|
|
281
320
|
export type AgentMemory = "vector" | "buffer" | "summary";
|
|
282
321
|
export type PlannerType = "simple" | "tool_oriented";
|
|
@@ -304,8 +343,10 @@ export type NewAgentRequest = {
|
|
|
304
343
|
/** Custom tools to assign to the agent */
|
|
305
344
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
306
345
|
mcp_toolkit_ids?: string[] | null;
|
|
346
|
+
/** Multi-agents assignment to the agent */
|
|
307
347
|
sub_agents_ids?: string[] | null;
|
|
308
348
|
detail_mode?: boolean;
|
|
349
|
+
/** JSON schema for structured output */
|
|
309
350
|
structured_output?: string | null;
|
|
310
351
|
llm_settings?: {
|
|
311
352
|
[key: string]: any;
|
|
@@ -320,13 +361,21 @@ export type NewAgentRequest = {
|
|
|
320
361
|
planner_type?: PlannerType | null;
|
|
321
362
|
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
322
363
|
max_llm_interactions?: number | null;
|
|
364
|
+
/** LLM planner model name */
|
|
365
|
+
planner_model_name?: string | null;
|
|
366
|
+
/** LLM planner model id */
|
|
367
|
+
planner_model_id?: string | null;
|
|
323
368
|
};
|
|
324
369
|
export type SearchAgentsRequest = {
|
|
325
370
|
/** Agent ids to filter for */
|
|
326
371
|
ids: string[];
|
|
327
372
|
};
|
|
373
|
+
export type AssignMultiAgentVersionRequest = {
|
|
374
|
+
agent_core_id: string;
|
|
375
|
+
version_number?: number | null;
|
|
376
|
+
};
|
|
328
377
|
export type WorkspaceForkRequest = {
|
|
329
|
-
|
|
378
|
+
agents: AssignMultiAgentVersionRequest[];
|
|
330
379
|
member_id: string;
|
|
331
380
|
};
|
|
332
381
|
export type AgentItemFork = {
|
|
@@ -366,7 +415,7 @@ export type ListMultiAgentsResponse = {
|
|
|
366
415
|
visibility_level: VisibilityLevelEnum;
|
|
367
416
|
has_multiagent_tool: boolean;
|
|
368
417
|
};
|
|
369
|
-
export type
|
|
418
|
+
export type KnowledgeSourceDetailsResponse = {
|
|
370
419
|
id: string;
|
|
371
420
|
slug: string;
|
|
372
421
|
name: string;
|
|
@@ -374,140 +423,110 @@ export type KnowledgeSourceDetails = {
|
|
|
374
423
|
"type": string;
|
|
375
424
|
creator?: string | null;
|
|
376
425
|
"default": boolean;
|
|
377
|
-
visibility_level:
|
|
426
|
+
visibility_level: string;
|
|
378
427
|
model_name: string;
|
|
379
428
|
username?: string | null;
|
|
380
429
|
};
|
|
381
|
-
export type
|
|
382
|
-
|
|
383
|
-
max_number_of_kos: number;
|
|
384
|
-
relevancy_threshold: number;
|
|
385
|
-
post_processing: boolean;
|
|
386
|
-
knowledge_sources: string[];
|
|
387
|
-
knowledge_sources_details: KnowledgeSourceDetails[];
|
|
388
|
-
sealed: boolean;
|
|
430
|
+
export type KnowledgeSourcesConfigResponse = {
|
|
431
|
+
/** Username of creator */
|
|
389
432
|
created_by?: string | null;
|
|
433
|
+
/** Creation timestamp */
|
|
390
434
|
created_at?: string | null;
|
|
435
|
+
/** Username of last updater */
|
|
391
436
|
updated_by?: string | null;
|
|
437
|
+
/** Last update timestamp */
|
|
392
438
|
updated_at?: string | null;
|
|
439
|
+
knowledge_sources: string[];
|
|
440
|
+
max_number_of_kos: number;
|
|
441
|
+
relevancy_threshold: number;
|
|
442
|
+
similarity_function: string;
|
|
443
|
+
post_processing: boolean;
|
|
444
|
+
sealed: boolean;
|
|
445
|
+
knowledge_sources_details?: KnowledgeSourceDetailsResponse[] | null;
|
|
393
446
|
};
|
|
394
|
-
export type
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
toolkit_id: string;
|
|
399
|
-
};
|
|
400
|
-
export type BuiltinToolkitDto = {
|
|
401
|
-
id: string;
|
|
402
|
-
name: string;
|
|
403
|
-
description: string;
|
|
404
|
-
image_url: string;
|
|
405
|
-
tools: BuiltinToolDto[];
|
|
406
|
-
};
|
|
407
|
-
export type CustomToolkitToolDto = {
|
|
408
|
-
id: string;
|
|
409
|
-
name: string;
|
|
410
|
-
description: string;
|
|
411
|
-
method: string;
|
|
412
|
-
url: string;
|
|
413
|
-
parameters?: {
|
|
414
|
-
[key: string]: any;
|
|
415
|
-
}[] | null;
|
|
416
|
-
request_body?: {
|
|
417
|
-
[key: string]: any;
|
|
418
|
-
} | null;
|
|
419
|
-
response_transformation?: string | null;
|
|
420
|
-
creator_name?: string | null;
|
|
421
|
-
};
|
|
422
|
-
export type CustomToolkitDto = {
|
|
423
|
-
id: string;
|
|
424
|
-
name: string;
|
|
425
|
-
description: string | null;
|
|
426
|
-
avatar: string | null;
|
|
427
|
-
tools: CustomToolkitToolDto[];
|
|
428
|
-
secrets: string[] | null;
|
|
429
|
-
visibility_level: VisibilityLevelEnum;
|
|
430
|
-
creator_name: string;
|
|
431
|
-
created_by: string;
|
|
432
|
-
is_usable_by_others: boolean;
|
|
433
|
-
url: string | null;
|
|
434
|
-
toolkit_type: ToolkitType | null;
|
|
435
|
-
};
|
|
436
|
-
export type SecretScope = "ACCOUNT" | "SCOPED" | "SPOT" | "USER" | "UNKNOWN";
|
|
437
|
-
export type SecretDto = {
|
|
438
|
-
id: string;
|
|
439
|
-
scope?: SecretScope | null;
|
|
440
|
-
};
|
|
441
|
-
export type Function2 = {
|
|
442
|
-
name: string;
|
|
443
|
-
description: string;
|
|
444
|
-
parameters: {
|
|
445
|
-
[key: string]: any;
|
|
446
|
-
};
|
|
447
|
-
strict?: boolean;
|
|
448
|
-
};
|
|
449
|
-
export type ToolkitMcpdto = {
|
|
450
|
-
secrets: SecretDto[] | null;
|
|
451
|
-
name: string;
|
|
452
|
-
description?: string | null;
|
|
453
|
-
avatar?: string | null;
|
|
454
|
-
visibility_level?: VisibilityLevelEnum;
|
|
455
|
-
id?: string | null;
|
|
456
|
-
url?: string | null;
|
|
457
|
-
tools?: Function2[] | null;
|
|
458
|
-
/** Toolkit type */
|
|
459
|
-
toolkit_type?: ToolkitType | null;
|
|
447
|
+
export type LlmSettingsResponse = {
|
|
448
|
+
property_key: string;
|
|
449
|
+
property_value: string;
|
|
450
|
+
property_type: string;
|
|
460
451
|
};
|
|
461
|
-
export type
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
452
|
+
export type AgentLlmModelResponse = {
|
|
453
|
+
model_id: string;
|
|
454
|
+
model_name: string;
|
|
455
|
+
is_default: boolean;
|
|
465
456
|
};
|
|
466
|
-
export type
|
|
467
|
-
|
|
468
|
-
property_value?: string | null;
|
|
469
|
-
property_type?: string | null;
|
|
470
|
-
agent_id: string;
|
|
457
|
+
export type FindByIdAgentResponse = {
|
|
458
|
+
/** Username of creator */
|
|
471
459
|
created_by?: string | null;
|
|
460
|
+
/** Creation timestamp */
|
|
472
461
|
created_at?: string | null;
|
|
462
|
+
/** Username of last updater */
|
|
473
463
|
updated_by?: string | null;
|
|
464
|
+
/** Last update timestamp */
|
|
474
465
|
updated_at?: string | null;
|
|
475
|
-
|
|
476
|
-
export type AgentLlmModelDto = {
|
|
477
|
-
model_id: string;
|
|
478
|
-
model_name: string;
|
|
479
|
-
is_default?: boolean;
|
|
480
|
-
};
|
|
481
|
-
export type AgentModel = {
|
|
466
|
+
/** Agent core ID */
|
|
482
467
|
id: string;
|
|
468
|
+
/** Agent name */
|
|
483
469
|
name: string;
|
|
470
|
+
/** Agent unique slug */
|
|
484
471
|
slug: string;
|
|
472
|
+
/** Agent description */
|
|
485
473
|
description?: string | null;
|
|
486
|
-
|
|
487
|
-
visibility_level: string;
|
|
474
|
+
/** Agent avatar image URL */
|
|
488
475
|
avatar?: string | null;
|
|
476
|
+
/** Agent visibility level */
|
|
477
|
+
visibility_level: string;
|
|
478
|
+
/** Agent type */
|
|
489
479
|
"type": string;
|
|
490
|
-
|
|
480
|
+
/** Whether agent is use-only (hides implementation) */
|
|
491
481
|
use_only: boolean;
|
|
482
|
+
/** Whether agent is internal */
|
|
483
|
+
is_internal: boolean;
|
|
484
|
+
/** Whether detail mode is enabled */
|
|
492
485
|
detail_mode: boolean;
|
|
486
|
+
/** Agent execution mode */
|
|
493
487
|
mode: AgentMode;
|
|
488
|
+
/** Agent memory type */
|
|
489
|
+
memory: AgentMemory;
|
|
490
|
+
/** Version status */
|
|
491
|
+
status: AgentVersionStatus;
|
|
492
|
+
/** Version number */
|
|
493
|
+
version_number: number;
|
|
494
|
+
/** Whether this is the recommended version */
|
|
495
|
+
is_recommended: boolean;
|
|
496
|
+
/** Whether this is the latest version */
|
|
497
|
+
is_latest: boolean;
|
|
498
|
+
/** System prompt for the agent */
|
|
499
|
+
system_prompt?: string | null;
|
|
500
|
+
/** Default LLM model ID */
|
|
501
|
+
model_id?: string | null;
|
|
502
|
+
/** Default LLM model name */
|
|
503
|
+
model_name?: string | null;
|
|
504
|
+
/** Original agent ID if forked */
|
|
505
|
+
origin_fork_id?: string | null;
|
|
506
|
+
/** Suggested conversation starters */
|
|
507
|
+
conversation_starter?: string[] | null;
|
|
508
|
+
/** JSON schema for structured output */
|
|
494
509
|
structured_output?: {
|
|
495
510
|
[key: string]: any;
|
|
496
511
|
} | null;
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
toolkits?: AgentToolsDto | null;
|
|
501
|
-
settings?: LlmSettingsModel[];
|
|
502
|
-
is_sub_agent?: boolean | null;
|
|
503
|
-
created_by?: string | null;
|
|
504
|
-
created_at?: string | null;
|
|
505
|
-
updated_by?: string | null;
|
|
506
|
-
updated_at?: string | null;
|
|
507
|
-
available_llm_models?: AgentLlmModelDto[];
|
|
508
|
-
memory?: AgentMemory;
|
|
512
|
+
/** Base version ID for version history */
|
|
513
|
+
base_version_id?: string | null;
|
|
514
|
+
/** Agent planner type */
|
|
509
515
|
planner_type?: PlannerType | null;
|
|
516
|
+
/** Maximum number of LLM interactions */
|
|
510
517
|
max_llm_interactions?: number | null;
|
|
518
|
+
/** Default LLM planner model ID */
|
|
519
|
+
planner_model_id?: string | null;
|
|
520
|
+
/** Default LLM planner model name */
|
|
521
|
+
planner_model_name?: string | null;
|
|
522
|
+
/** Knowledge sources configuration with details */
|
|
523
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse | null;
|
|
524
|
+
/** Agent toolkits (builtin and custom) */
|
|
525
|
+
toolkits?: AgentToolsResponse;
|
|
526
|
+
/** LLM settings */
|
|
527
|
+
settings?: LlmSettingsResponse[];
|
|
528
|
+
/** Available LLM models for this agent */
|
|
529
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
511
530
|
};
|
|
512
531
|
export type UpdateAgentRequest = {
|
|
513
532
|
use_only?: boolean | null;
|
|
@@ -525,17 +544,21 @@ export type UpdateAgentRequest = {
|
|
|
525
544
|
avatar?: string | null;
|
|
526
545
|
/** Agent suggested prompt */
|
|
527
546
|
suggested_prompts?: string[];
|
|
547
|
+
/** agent status */
|
|
548
|
+
status?: AgentVersionStatus | null;
|
|
528
549
|
/** System prompt */
|
|
529
550
|
system_prompt?: string | null;
|
|
530
551
|
/** Agent type */
|
|
531
552
|
"type"?: AgentType | null;
|
|
532
553
|
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
533
554
|
builtin_tools_ids?: string[];
|
|
555
|
+
/** Multi-agents assignment to the agent */
|
|
534
556
|
sub_agents_ids?: string[];
|
|
535
557
|
/** Custom tools to assign to the agent */
|
|
536
558
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
537
559
|
mcp_toolkit_ids?: string[] | null;
|
|
538
560
|
detail_mode?: boolean | null;
|
|
561
|
+
/** JSON schema for structured output */
|
|
539
562
|
structured_output?: string | null;
|
|
540
563
|
llm_settings?: {
|
|
541
564
|
[key: string]: any;
|
|
@@ -550,6 +573,10 @@ export type UpdateAgentRequest = {
|
|
|
550
573
|
planner_type?: PlannerType;
|
|
551
574
|
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
552
575
|
max_llm_interactions?: number | null;
|
|
576
|
+
/** LLM planner model name */
|
|
577
|
+
planner_model_name?: string | null;
|
|
578
|
+
/** LLM planner model id */
|
|
579
|
+
planner_model_id?: string | null;
|
|
553
580
|
};
|
|
554
581
|
export type ForkAgentRequest = {
|
|
555
582
|
/** Agent slug to fork */
|
|
@@ -559,86 +586,532 @@ export type ForkAgentRequest = {
|
|
|
559
586
|
export type PublishAgentRequest = {
|
|
560
587
|
use_only?: boolean;
|
|
561
588
|
is_public?: boolean;
|
|
589
|
+
version_number?: number | null;
|
|
562
590
|
};
|
|
563
|
-
export type
|
|
591
|
+
export type CreateVersionRequest = {
|
|
592
|
+
/** The version number to use as base for the new version. If not provided, uses latest version */
|
|
593
|
+
base_version_number?: number | null;
|
|
594
|
+
};
|
|
595
|
+
export type AgentVersionResponse = {
|
|
596
|
+
/** Username of creator */
|
|
597
|
+
created_by?: string | null;
|
|
598
|
+
/** Creation timestamp */
|
|
599
|
+
created_at?: string | null;
|
|
600
|
+
/** Username of last updater */
|
|
601
|
+
updated_by?: string | null;
|
|
602
|
+
/** Last update timestamp */
|
|
603
|
+
updated_at?: string | null;
|
|
604
|
+
/** Agent version unique identifier */
|
|
605
|
+
id: string;
|
|
606
|
+
/** Reference to parent agent core */
|
|
607
|
+
agent_core_id: string;
|
|
608
|
+
/** Whether detail mode is enabled for responses */
|
|
609
|
+
detail_mode: boolean;
|
|
610
|
+
/** Whether version is internal-only */
|
|
611
|
+
is_internal: boolean;
|
|
612
|
+
/** Agent execution mode (autonomous, orchestrator, etc.) */
|
|
613
|
+
mode: AgentMode;
|
|
614
|
+
/** Memory type used by the agent */
|
|
615
|
+
memory: string;
|
|
616
|
+
/** Version status (draft, published, archived) */
|
|
617
|
+
status: AgentVersionStatus;
|
|
618
|
+
/** Sequential version number */
|
|
619
|
+
version_number: number;
|
|
620
|
+
/** Whether this is the recommended version for use */
|
|
621
|
+
is_recommended: boolean;
|
|
622
|
+
/** Whether this is the most recent version */
|
|
623
|
+
is_latest: boolean;
|
|
624
|
+
/** Base version ID used for creating this version */
|
|
625
|
+
base_version_id?: string | null;
|
|
626
|
+
/** Original agent version ID if this is a fork */
|
|
627
|
+
origin_fork_id?: string | null;
|
|
628
|
+
/** System prompt for the agent version */
|
|
629
|
+
system_prompt?: string | null;
|
|
630
|
+
/** LLM model ID used by this version */
|
|
631
|
+
model_id?: string | null;
|
|
632
|
+
/** LLM model name used by this version */
|
|
633
|
+
model_name?: string | null;
|
|
634
|
+
/** Suggested conversation starters */
|
|
635
|
+
conversation_starter?: string[] | null;
|
|
636
|
+
/** JSON schema for structured output */
|
|
637
|
+
structured_output?: {
|
|
638
|
+
[key: string]: any;
|
|
639
|
+
} | null;
|
|
640
|
+
/** Agent planner type */
|
|
641
|
+
planner_type?: PlannerType | null;
|
|
642
|
+
max_llm_interactions?: number | null;
|
|
643
|
+
/** Default LLM planner model ID */
|
|
644
|
+
planner_model_id?: string | null;
|
|
645
|
+
/** Default LLM planner model name */
|
|
646
|
+
planner_model_name?: string | null;
|
|
647
|
+
/** Knowledge sources configuration with details */
|
|
648
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse | null;
|
|
649
|
+
/** List of tools (builtin) assigned to this version */
|
|
650
|
+
toolkits?: AgentToolsResponse;
|
|
651
|
+
/** LLM-specific settings for this version */
|
|
652
|
+
settings?: LlmSettingsResponse[];
|
|
653
|
+
/** Available LLM models for this version */
|
|
654
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
655
|
+
};
|
|
656
|
+
export type CreateVersionResponse = {
|
|
657
|
+
/** Username of creator */
|
|
658
|
+
created_by?: string | null;
|
|
659
|
+
/** Creation timestamp */
|
|
660
|
+
created_at?: string | null;
|
|
661
|
+
/** Username of last updater */
|
|
662
|
+
updated_by?: string | null;
|
|
663
|
+
/** Last update timestamp */
|
|
664
|
+
updated_at?: string | null;
|
|
665
|
+
/** Agent core unique identifier */
|
|
564
666
|
id: string;
|
|
667
|
+
/** Agent name */
|
|
565
668
|
name: string;
|
|
669
|
+
/** Agent unique slug */
|
|
566
670
|
slug: string;
|
|
567
|
-
|
|
568
|
-
|
|
671
|
+
/** Agent description */
|
|
672
|
+
description?: string | null;
|
|
673
|
+
/** Agent avatar image URL */
|
|
674
|
+
avatar?: string | null;
|
|
675
|
+
/** Agent visibility level (personal, shared, account) */
|
|
569
676
|
visibility_level: string;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
573
|
-
"type"?: string;
|
|
574
|
-
system_prompt?: string;
|
|
575
|
-
creator_name?: string;
|
|
677
|
+
/** The newly created agent version details */
|
|
678
|
+
version: AgentVersionResponse;
|
|
576
679
|
};
|
|
577
|
-
export type
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
slug?: string | null;
|
|
583
|
-
/** Paginated param to configure page size */
|
|
584
|
-
size?: number;
|
|
585
|
-
/** Paginated param to configure which page is being requested */
|
|
586
|
-
page?: number;
|
|
587
|
-
/** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
|
|
588
|
-
visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
|
|
589
|
-
order?: OrderEnum | null;
|
|
680
|
+
export type ListAgentVersionResponse = {
|
|
681
|
+
id: string;
|
|
682
|
+
version_number: number;
|
|
683
|
+
status: AgentVersionStatus;
|
|
684
|
+
is_recommended: boolean;
|
|
590
685
|
};
|
|
591
|
-
export type
|
|
686
|
+
export type AgentCoreWithSingleVersionResponse = {
|
|
687
|
+
/** Username of creator */
|
|
688
|
+
created_by?: string | null;
|
|
689
|
+
/** Creation timestamp */
|
|
690
|
+
created_at?: string | null;
|
|
691
|
+
/** Username of last updater */
|
|
692
|
+
updated_by?: string | null;
|
|
693
|
+
/** Last update timestamp */
|
|
694
|
+
updated_at?: string | null;
|
|
695
|
+
/** Agent core unique identifier (ULID format) */
|
|
696
|
+
id: string;
|
|
697
|
+
/** Agent display name */
|
|
698
|
+
name: string;
|
|
699
|
+
/** Agent unique slug for URL-friendly identification */
|
|
700
|
+
slug: string;
|
|
701
|
+
/** Agent core type */
|
|
702
|
+
"type": string;
|
|
703
|
+
/** Whether agent is use-only (hides implementation) */
|
|
704
|
+
use_only: boolean;
|
|
705
|
+
/** Detailed description of the agent's purpose and capabilities */
|
|
706
|
+
description?: string | null;
|
|
707
|
+
/** URL or path to agent's avatar image */
|
|
708
|
+
avatar?: string | null;
|
|
709
|
+
/** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
|
|
710
|
+
visibility_level: string;
|
|
711
|
+
/** Origin ID of forking agent */
|
|
712
|
+
origin_fork_id?: string | null;
|
|
713
|
+
/** Specific or recommend version associated with this agent core */
|
|
714
|
+
version: AgentVersionResponse;
|
|
715
|
+
};
|
|
716
|
+
export type AgentCoreResponse = {
|
|
717
|
+
/** Username of creator */
|
|
718
|
+
created_by?: string | null;
|
|
719
|
+
/** Creation timestamp */
|
|
720
|
+
created_at?: string | null;
|
|
721
|
+
/** Username of last updater */
|
|
722
|
+
updated_by?: string | null;
|
|
723
|
+
/** Last update timestamp */
|
|
724
|
+
updated_at?: string | null;
|
|
725
|
+
/** Agent core unique identifier (ULID format) */
|
|
726
|
+
id: string;
|
|
727
|
+
/** Agent display name */
|
|
728
|
+
name: string;
|
|
729
|
+
/** Agent unique slug for URL-friendly identification */
|
|
730
|
+
slug: string;
|
|
731
|
+
/** Agent core type */
|
|
732
|
+
"type": string;
|
|
733
|
+
/** Whether agent is use-only (hides implementation) */
|
|
734
|
+
use_only: boolean;
|
|
735
|
+
/** Detailed description of the agent's purpose and capabilities */
|
|
736
|
+
description?: string | null;
|
|
737
|
+
/** URL or path to agent's avatar image */
|
|
738
|
+
avatar?: string | null;
|
|
739
|
+
/** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
|
|
740
|
+
visibility_level: string;
|
|
741
|
+
/** Specific or recommend version associated with this agent core */
|
|
742
|
+
versions: AgentVersionResponse[];
|
|
743
|
+
};
|
|
744
|
+
export type KnowledgeSourceDetailsResponse2 = {
|
|
745
|
+
id: string;
|
|
746
|
+
slug: string;
|
|
747
|
+
name: string;
|
|
748
|
+
description: string;
|
|
749
|
+
"type": string;
|
|
750
|
+
creator?: string | null;
|
|
751
|
+
"default": boolean;
|
|
752
|
+
visibility_level: VisibilityLevelEnum;
|
|
753
|
+
model_name: string;
|
|
754
|
+
username?: string | null;
|
|
755
|
+
};
|
|
756
|
+
export type KnowledgeSourcesConfigResponse2 = {
|
|
592
757
|
knowledge_sources: string[];
|
|
593
758
|
max_number_of_kos?: number;
|
|
594
759
|
relevancy_threshold?: number;
|
|
595
|
-
similarity_function?:
|
|
760
|
+
similarity_function?: SimilarityFunctionEnum;
|
|
596
761
|
post_processing?: boolean;
|
|
762
|
+
knowledge_sources_details?: KnowledgeSourceDetailsResponse2[];
|
|
763
|
+
sealed: boolean;
|
|
597
764
|
};
|
|
598
|
-
export type
|
|
765
|
+
export type ListAgentResponseV2 = {
|
|
766
|
+
/** Username of creator */
|
|
767
|
+
created_by?: string | null;
|
|
768
|
+
/** Creation timestamp */
|
|
769
|
+
created_at?: string | null;
|
|
770
|
+
/** Username of last updater */
|
|
771
|
+
updated_by?: string | null;
|
|
772
|
+
/** Last update timestamp */
|
|
773
|
+
updated_at?: string | null;
|
|
599
774
|
id: string;
|
|
600
775
|
name: string;
|
|
601
776
|
slug: string;
|
|
602
|
-
created_by: string | null;
|
|
603
|
-
created_at: string | null;
|
|
604
777
|
visibility_level: string;
|
|
605
|
-
avatar
|
|
606
|
-
|
|
607
|
-
knowledge_sources_config:
|
|
608
|
-
has_multiagent_tool?: boolean;
|
|
778
|
+
avatar?: string | null;
|
|
779
|
+
conversation_starter?: string[] | null;
|
|
780
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponse2;
|
|
609
781
|
"type"?: string;
|
|
610
782
|
system_prompt?: string;
|
|
611
783
|
creator_name?: string;
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
784
|
+
version_number: number;
|
|
785
|
+
status: AgentVersionStatus;
|
|
786
|
+
is_recommended: boolean;
|
|
787
|
+
};
|
|
788
|
+
export type NewAgentRequestV2 = {
|
|
789
|
+
/** LLM model name */
|
|
790
|
+
model_name?: string | null;
|
|
791
|
+
/** LLM model id */
|
|
792
|
+
model_id?: string | null;
|
|
793
|
+
/** Agent name */
|
|
794
|
+
name: string;
|
|
795
|
+
/** Agent unique slug */
|
|
796
|
+
slug: string;
|
|
797
|
+
/** Agent description */
|
|
798
|
+
description?: string | null;
|
|
799
|
+
/** Agent avatar image */
|
|
800
|
+
avatar?: string | null;
|
|
801
|
+
/** Agent suggested prompt */
|
|
802
|
+
suggested_prompts?: string[];
|
|
803
|
+
/** System prompt */
|
|
804
|
+
system_prompt?: string | null;
|
|
805
|
+
/** Agent type */
|
|
806
|
+
"type": AgentType;
|
|
807
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
808
|
+
builtin_tools_ids?: string[];
|
|
809
|
+
/** Custom tools to assign to the agent */
|
|
810
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
811
|
+
/** Multi-agents assignment to the agent */
|
|
812
|
+
sub_agents_ids?: AssignMultiAgentVersionRequest[] | null;
|
|
813
|
+
mcp_toolkit_ids?: string[] | null;
|
|
814
|
+
detail_mode?: boolean;
|
|
815
|
+
/** JSON schema for structured output */
|
|
816
|
+
structured_output?: string | null;
|
|
817
|
+
llm_settings?: {
|
|
818
|
+
[key: string]: any;
|
|
819
|
+
} | null;
|
|
820
|
+
/** Agent mode */
|
|
821
|
+
mode?: AgentMode;
|
|
822
|
+
/** Agent memory */
|
|
823
|
+
memory?: AgentMemory;
|
|
824
|
+
/** Available models for this particular agent */
|
|
825
|
+
available_models_ids?: string[];
|
|
826
|
+
/** Agent planner type */
|
|
827
|
+
planner_type?: PlannerType | null;
|
|
828
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
829
|
+
max_llm_interactions?: number | null;
|
|
830
|
+
/** LLM planner model name */
|
|
831
|
+
planner_model_name?: string | null;
|
|
832
|
+
/** LLM planner model id */
|
|
833
|
+
planner_model_id?: string | null;
|
|
834
|
+
};
|
|
835
|
+
export type SearchAgentVersionRequest = {
|
|
836
|
+
agent_core_id: string;
|
|
837
|
+
version_number?: number | null;
|
|
838
|
+
};
|
|
839
|
+
export type SearchAgentsRequestV2 = {
|
|
840
|
+
agents: SearchAgentVersionRequest[];
|
|
841
|
+
};
|
|
842
|
+
export type UpdateAgentRequestV2 = {
|
|
843
|
+
use_only?: boolean | null;
|
|
844
|
+
/** LLM model name */
|
|
845
|
+
model_name?: string | null;
|
|
846
|
+
/** LLM model id */
|
|
847
|
+
model_id?: string | null;
|
|
848
|
+
/** Agent name */
|
|
849
|
+
name?: string | null;
|
|
850
|
+
/** Agent unique slug */
|
|
851
|
+
slug?: string | null;
|
|
852
|
+
/** agent status */
|
|
853
|
+
status?: AgentVersionStatus | null;
|
|
854
|
+
/** Agent description */
|
|
855
|
+
description?: string | null;
|
|
856
|
+
/** Agent avatar image */
|
|
857
|
+
avatar?: string | null;
|
|
858
|
+
/** Agent suggested prompt */
|
|
859
|
+
suggested_prompts?: string[];
|
|
860
|
+
/** System prompt */
|
|
861
|
+
system_prompt?: string | null;
|
|
862
|
+
/** Agent type */
|
|
863
|
+
"type"?: AgentType | null;
|
|
864
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
865
|
+
builtin_tools_ids?: string[];
|
|
866
|
+
/** Multi-agents assignment to the agent */
|
|
867
|
+
sub_agents_ids?: AssignMultiAgentVersionRequest[];
|
|
868
|
+
/** Custom tools to assign to the agent */
|
|
869
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
870
|
+
mcp_toolkit_ids?: string[] | null;
|
|
871
|
+
detail_mode?: boolean | null;
|
|
872
|
+
/** JSON schema for structured output */
|
|
873
|
+
structured_output?: string | null;
|
|
874
|
+
llm_settings?: {
|
|
875
|
+
[key: string]: any;
|
|
876
|
+
} | null;
|
|
877
|
+
/** Agent mode */
|
|
878
|
+
mode?: AgentMode | null;
|
|
879
|
+
/** Available models for this particular agent */
|
|
880
|
+
available_models_ids?: string[];
|
|
881
|
+
/** Agent memory */
|
|
882
|
+
memory?: AgentMemory;
|
|
883
|
+
/** Agent planner type */
|
|
884
|
+
planner_type?: PlannerType;
|
|
885
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
886
|
+
max_llm_interactions?: number | null;
|
|
887
|
+
/** LLM planner model name */
|
|
888
|
+
planner_model_name?: string | null;
|
|
889
|
+
/** LLM planner model id */
|
|
890
|
+
planner_model_id?: string | null;
|
|
891
|
+
};
|
|
892
|
+
export type CustomToolkitToolResponse2 = {
|
|
893
|
+
id: string;
|
|
894
|
+
name: string;
|
|
895
|
+
description: string;
|
|
896
|
+
method: string;
|
|
897
|
+
url: string;
|
|
898
|
+
parameters?: {
|
|
899
|
+
[key: string]: any;
|
|
900
|
+
}[] | null;
|
|
901
|
+
request_body?: {
|
|
902
|
+
[key: string]: any;
|
|
903
|
+
} | null;
|
|
904
|
+
response_transformation?: string | null;
|
|
905
|
+
creator_name?: string | null;
|
|
906
|
+
};
|
|
907
|
+
export type CustomToolkitResponse2 = {
|
|
908
|
+
id: string;
|
|
909
|
+
name: string;
|
|
910
|
+
description?: string | null;
|
|
911
|
+
avatar?: string | null;
|
|
912
|
+
visibility_level: string;
|
|
913
|
+
creator_name: string | null;
|
|
914
|
+
toolkit_type?: ToolkitType | null;
|
|
915
|
+
tools: CustomToolkitToolResponse2[];
|
|
916
|
+
secret_id?: string | null;
|
|
917
|
+
secrets?: string[] | null;
|
|
918
|
+
is_usable_by_others: boolean;
|
|
919
|
+
url?: string | null;
|
|
920
|
+
};
|
|
921
|
+
export type AgentToolsResponse2 = {
|
|
922
|
+
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
923
|
+
custom_toolkits?: CustomToolkitResponse2[];
|
|
924
|
+
mcp_toolkits?: ToolkitMcpResponse[];
|
|
925
|
+
multi_agent_toolkits?: MultiAgentToolkitResponse[];
|
|
926
|
+
};
|
|
927
|
+
export type AgentVersionResponse2 = {
|
|
928
|
+
/** Username of creator */
|
|
929
|
+
created_by?: string | null;
|
|
930
|
+
/** Creation timestamp */
|
|
931
|
+
created_at?: string | null;
|
|
932
|
+
/** Username of last updater */
|
|
933
|
+
updated_by?: string | null;
|
|
934
|
+
/** Last update timestamp */
|
|
935
|
+
updated_at?: string | null;
|
|
936
|
+
/** System prompt for the agent version */
|
|
937
|
+
system_prompt: string;
|
|
938
|
+
/** Whether detail mode is enabled for responses */
|
|
939
|
+
detail_mode: boolean;
|
|
940
|
+
/** Whether version is internal-only */
|
|
941
|
+
is_internal: boolean;
|
|
942
|
+
/** Agent execution mode (autonomous, orchestrator, etc.) */
|
|
943
|
+
mode: AgentMode;
|
|
944
|
+
/** Memory type used by the agent */
|
|
945
|
+
memory: string;
|
|
946
|
+
/** Version status (draft, published, archived) */
|
|
947
|
+
status: AgentVersionStatus;
|
|
948
|
+
/** Sequential version number */
|
|
949
|
+
version_number: number;
|
|
950
|
+
/** Whether this is the recommended version for use */
|
|
951
|
+
is_recommended: boolean;
|
|
952
|
+
/** Whether this is the most recent version */
|
|
953
|
+
is_latest: boolean;
|
|
954
|
+
/** Base version ID used for creating this version */
|
|
955
|
+
base_version_id?: string | null;
|
|
956
|
+
/** Original agent version ID if this is a fork */
|
|
957
|
+
origin_fork_id?: string | null;
|
|
958
|
+
/** LLM model ID used by this version */
|
|
959
|
+
model_id?: string | null;
|
|
960
|
+
/** LLM model name used by this version */
|
|
961
|
+
model_name?: string | null;
|
|
962
|
+
/** Suggested conversation starters */
|
|
963
|
+
conversation_starter?: string[] | null;
|
|
964
|
+
/** JSON schema for structured output */
|
|
965
|
+
structured_output?: {
|
|
966
|
+
[key: string]: any;
|
|
967
|
+
} | null;
|
|
968
|
+
/** Agent planner type */
|
|
969
|
+
planner_type?: PlannerType | null;
|
|
970
|
+
/** Maximum number of LLM interactions */
|
|
971
|
+
max_llm_interactions?: number | null;
|
|
972
|
+
/** Default LLM planner model ID */
|
|
973
|
+
planner_model_id?: string | null;
|
|
974
|
+
/** Default LLM planner model name */
|
|
975
|
+
planner_model_name?: string | null;
|
|
976
|
+
/** Knowledge sources configuration for RAG capabilities */
|
|
977
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse2 | null;
|
|
978
|
+
/** List of tools (builtin) assigned to this version */
|
|
979
|
+
toolkits?: AgentToolsResponse2;
|
|
980
|
+
/** LLM-specific settings for this version */
|
|
981
|
+
settings?: LlmSettingsResponse[];
|
|
982
|
+
/** Available LLM models for this version */
|
|
983
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
984
|
+
};
|
|
985
|
+
export type AgentCoreWithSingleVersionResponse2 = {
|
|
986
|
+
/** Username of creator */
|
|
987
|
+
created_by?: string | null;
|
|
988
|
+
/** Creation timestamp */
|
|
989
|
+
created_at?: string | null;
|
|
990
|
+
/** Username of last updater */
|
|
991
|
+
updated_by?: string | null;
|
|
992
|
+
/** Last update timestamp */
|
|
993
|
+
updated_at?: string | null;
|
|
994
|
+
/** Agent core unique identifier (ULID format) */
|
|
995
|
+
id: string;
|
|
996
|
+
/** Agent display name */
|
|
997
|
+
name: string;
|
|
998
|
+
/** Agent unique slug for URL-friendly identification */
|
|
999
|
+
slug: string;
|
|
1000
|
+
/** Agent core type */
|
|
1001
|
+
"type": string;
|
|
1002
|
+
/** Whether agent is use-only (hides implementation) */
|
|
1003
|
+
use_only: boolean;
|
|
1004
|
+
/** Detailed description of the agent's purpose and capabilities */
|
|
1005
|
+
description?: string | null;
|
|
1006
|
+
/** URL or path to agent's avatar image */
|
|
1007
|
+
avatar?: string | null;
|
|
1008
|
+
/** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
|
|
1009
|
+
visibility_level: string;
|
|
1010
|
+
/** Origin ID of forking agent */
|
|
1011
|
+
origin_fork_id?: string | null;
|
|
1012
|
+
/** Specific or recommend version associated with this agent core */
|
|
1013
|
+
version: AgentVersionResponse2;
|
|
1014
|
+
};
|
|
1015
|
+
export type ListAgentRequestV4 = {
|
|
1016
|
+
/** Agent name to filter the list */
|
|
1017
|
+
name?: string | null;
|
|
1018
|
+
/** Agent slug to filter the list */
|
|
1019
|
+
slug?: string | null;
|
|
1020
|
+
/** Paginated param to configure page size */
|
|
1021
|
+
size?: number;
|
|
1022
|
+
/** Paginated param to configure which page is being requested */
|
|
1023
|
+
page?: number;
|
|
1024
|
+
/** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
|
|
1025
|
+
visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
|
|
1026
|
+
order?: OrderEnum | null;
|
|
1027
|
+
};
|
|
1028
|
+
export type KnowledgeSourcesConfigResponseV3 = {
|
|
1029
|
+
knowledge_sources: string[];
|
|
1030
|
+
max_number_of_kos?: number;
|
|
1031
|
+
relevancy_threshold?: number;
|
|
1032
|
+
similarity_function?: string;
|
|
1033
|
+
post_processing?: boolean;
|
|
1034
|
+
};
|
|
1035
|
+
export type AgentResponseV3 = {
|
|
1036
|
+
/** Username of creator */
|
|
1037
|
+
created_by?: string | null;
|
|
1038
|
+
/** Creation timestamp */
|
|
1039
|
+
created_at?: string | null;
|
|
1040
|
+
/** Username of last updater */
|
|
1041
|
+
updated_by?: string | null;
|
|
1042
|
+
/** Last update timestamp */
|
|
1043
|
+
updated_at?: string | null;
|
|
1044
|
+
id: string;
|
|
1045
|
+
name: string;
|
|
1046
|
+
slug: string;
|
|
1047
|
+
visibility_level: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1048
|
+
avatar?: string | null;
|
|
1049
|
+
suggested_prompts?: string[] | null;
|
|
1050
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
|
|
1051
|
+
has_multiagent_tool?: boolean;
|
|
1052
|
+
"type"?: string;
|
|
1053
|
+
system_prompt?: string;
|
|
1054
|
+
creator_name?: string;
|
|
1055
|
+
is_favorite?: boolean;
|
|
1056
|
+
is_recently_used?: boolean;
|
|
1057
|
+
version_number: number;
|
|
1058
|
+
status: AgentVersionStatus;
|
|
1059
|
+
is_recommended: boolean;
|
|
1060
|
+
};
|
|
1061
|
+
export type PaginatedResponseAgentResponseV3 = {
|
|
1062
|
+
total_pages: number;
|
|
1063
|
+
items: AgentResponseV3[];
|
|
1064
|
+
};
|
|
1065
|
+
export type ListAgentVersionResponse2 = {
|
|
1066
|
+
version_number: number;
|
|
1067
|
+
status: AgentVersionStatus;
|
|
1068
|
+
is_recommended: boolean;
|
|
1069
|
+
};
|
|
1070
|
+
export type ListAgentCoreResponse = {
|
|
1071
|
+
/** Username of creator */
|
|
1072
|
+
created_by?: string | null;
|
|
1073
|
+
/** Creation timestamp */
|
|
1074
|
+
created_at?: string | null;
|
|
1075
|
+
/** Username of last updater */
|
|
1076
|
+
updated_by?: string | null;
|
|
1077
|
+
/** Last update timestamp */
|
|
1078
|
+
updated_at?: string | null;
|
|
1079
|
+
id: string;
|
|
1080
|
+
name: string;
|
|
1081
|
+
slug: string;
|
|
1082
|
+
visibility_level: string;
|
|
1083
|
+
avatar?: string | null;
|
|
1084
|
+
is_favorite?: boolean;
|
|
1085
|
+
is_recently_used?: boolean;
|
|
1086
|
+
version: ListAgentVersionResponse2;
|
|
1087
|
+
};
|
|
1088
|
+
export type PaginatedResponseListAgentCoreResponse = {
|
|
1089
|
+
total_pages: number;
|
|
1090
|
+
items: ListAgentCoreResponse[];
|
|
1091
|
+
};
|
|
1092
|
+
export type InternalListToolkitsRequest = {
|
|
1093
|
+
/** List of toolkit IDs to retrieve */
|
|
1094
|
+
toolkit_ids: string[];
|
|
1095
|
+
};
|
|
1096
|
+
export type InternalDeleteToolkitsRequest = {
|
|
1097
|
+
/** List of toolkit IDs to delete */
|
|
1098
|
+
toolkit_ids: string[];
|
|
1099
|
+
};
|
|
1100
|
+
export type InternalToolkitForkRequest = {
|
|
1101
|
+
/** List of toolkit IDs to fork */
|
|
1102
|
+
toolkit_ids: string[];
|
|
1103
|
+
};
|
|
1104
|
+
export type ToolkitForkResponse = {
|
|
1105
|
+
/** List of successfully forked toolkits */
|
|
1106
|
+
forked_toolkits: CustomToolkitSimpleResponse[];
|
|
1107
|
+
/** List of toolkit IDs that were already account-level and not forked */
|
|
1108
|
+
toolkit_ids_account: string[];
|
|
1109
|
+
/** List of toolkit IDs that failed to fork */
|
|
1110
|
+
error_ids: string[];
|
|
1111
|
+
};
|
|
1112
|
+
export type PaginatedResponseCustomToolkitSimpleResponse = {
|
|
1113
|
+
total_pages: number;
|
|
1114
|
+
items: CustomToolkitSimpleResponse[];
|
|
642
1115
|
};
|
|
643
1116
|
export type ParametersModel = {
|
|
644
1117
|
properties: {
|
|
@@ -945,24 +1418,326 @@ export function shareToolkitV1ToolkitsToolkitIdSharePost({ toolkitId, xAccountId
|
|
|
945
1418
|
/**
|
|
946
1419
|
* Publish Toolkit
|
|
947
1420
|
*/
|
|
948
|
-
export function publishToolkitV1ToolkitsToolkitIdPublishPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
949
|
-
toolkitId: string;
|
|
1421
|
+
export function publishToolkitV1ToolkitsToolkitIdPublishPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1422
|
+
toolkitId: string;
|
|
1423
|
+
xAccountId?: string | null;
|
|
1424
|
+
xUsername?: string | null;
|
|
1425
|
+
xUserId?: string | null;
|
|
1426
|
+
xUserFullName?: string | null;
|
|
1427
|
+
authorization: string;
|
|
1428
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1429
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1430
|
+
status: 204;
|
|
1431
|
+
} | {
|
|
1432
|
+
status: 404;
|
|
1433
|
+
} | {
|
|
1434
|
+
status: 422;
|
|
1435
|
+
data: HttpValidationError;
|
|
1436
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/publish`, {
|
|
1437
|
+
...opts,
|
|
1438
|
+
method: "POST",
|
|
1439
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1440
|
+
"x-account-id": xAccountId,
|
|
1441
|
+
"x-username": xUsername,
|
|
1442
|
+
"x-user-id": xUserId,
|
|
1443
|
+
"x-user-full-name": xUserFullName,
|
|
1444
|
+
authorization
|
|
1445
|
+
})
|
|
1446
|
+
}));
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Get Toolkit Tool
|
|
1450
|
+
*/
|
|
1451
|
+
export function getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1452
|
+
toolkitId: string;
|
|
1453
|
+
toolId: string;
|
|
1454
|
+
xAccountId?: string | null;
|
|
1455
|
+
xUsername?: string | null;
|
|
1456
|
+
xUserId?: string | null;
|
|
1457
|
+
xUserFullName?: string | null;
|
|
1458
|
+
authorization: string;
|
|
1459
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1460
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1461
|
+
status: 200;
|
|
1462
|
+
data: CustomToolkitToolResponse;
|
|
1463
|
+
} | {
|
|
1464
|
+
status: 404;
|
|
1465
|
+
} | {
|
|
1466
|
+
status: 422;
|
|
1467
|
+
data: HttpValidationError;
|
|
1468
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, {
|
|
1469
|
+
...opts,
|
|
1470
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1471
|
+
"x-account-id": xAccountId,
|
|
1472
|
+
"x-username": xUsername,
|
|
1473
|
+
"x-user-id": xUserId,
|
|
1474
|
+
"x-user-full-name": xUserFullName,
|
|
1475
|
+
authorization
|
|
1476
|
+
})
|
|
1477
|
+
}));
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Edit Toolkit Tool
|
|
1481
|
+
*/
|
|
1482
|
+
export function editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolRequest }: {
|
|
1483
|
+
toolkitId: string;
|
|
1484
|
+
toolId: string;
|
|
1485
|
+
xAccountId?: string | null;
|
|
1486
|
+
xUsername?: string | null;
|
|
1487
|
+
xUserId?: string | null;
|
|
1488
|
+
xUserFullName?: string | null;
|
|
1489
|
+
authorization: string;
|
|
1490
|
+
customToolRequest: CustomToolRequest;
|
|
1491
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1492
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1493
|
+
status: 204;
|
|
1494
|
+
} | {
|
|
1495
|
+
status: 404;
|
|
1496
|
+
} | {
|
|
1497
|
+
status: 422;
|
|
1498
|
+
data: HttpValidationError;
|
|
1499
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, oazapfts.json({
|
|
1500
|
+
...opts,
|
|
1501
|
+
method: "PUT",
|
|
1502
|
+
body: customToolRequest,
|
|
1503
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1504
|
+
"x-account-id": xAccountId,
|
|
1505
|
+
"x-username": xUsername,
|
|
1506
|
+
"x-user-id": xUserId,
|
|
1507
|
+
"x-user-full-name": xUserFullName,
|
|
1508
|
+
authorization
|
|
1509
|
+
})
|
|
1510
|
+
})));
|
|
1511
|
+
}
|
|
1512
|
+
/**
|
|
1513
|
+
* Create Toolkit Tools
|
|
1514
|
+
*/
|
|
1515
|
+
export function createToolkitToolsV1ToolkitsToolkitIdToolsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolsRequest }: {
|
|
1516
|
+
toolkitId: string;
|
|
1517
|
+
xAccountId?: string | null;
|
|
1518
|
+
xUsername?: string | null;
|
|
1519
|
+
xUserId?: string | null;
|
|
1520
|
+
xUserFullName?: string | null;
|
|
1521
|
+
authorization: string;
|
|
1522
|
+
customToolsRequest: CustomToolsRequest;
|
|
1523
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1524
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1525
|
+
status: 204;
|
|
1526
|
+
} | {
|
|
1527
|
+
status: 404;
|
|
1528
|
+
} | {
|
|
1529
|
+
status: 422;
|
|
1530
|
+
data: HttpValidationError;
|
|
1531
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
|
|
1532
|
+
...opts,
|
|
1533
|
+
method: "POST",
|
|
1534
|
+
body: customToolsRequest,
|
|
1535
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1536
|
+
"x-account-id": xAccountId,
|
|
1537
|
+
"x-username": xUsername,
|
|
1538
|
+
"x-user-id": xUserId,
|
|
1539
|
+
"x-user-full-name": xUserFullName,
|
|
1540
|
+
authorization
|
|
1541
|
+
})
|
|
1542
|
+
})));
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
* Delete Toolkit Tools
|
|
1546
|
+
*/
|
|
1547
|
+
export function deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, deleteToolsRequest }: {
|
|
1548
|
+
toolkitId: string;
|
|
1549
|
+
xAccountId?: string | null;
|
|
1550
|
+
xUsername?: string | null;
|
|
1551
|
+
xUserId?: string | null;
|
|
1552
|
+
xUserFullName?: string | null;
|
|
1553
|
+
authorization: string;
|
|
1554
|
+
deleteToolsRequest: DeleteToolsRequest;
|
|
1555
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1556
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1557
|
+
status: 204;
|
|
1558
|
+
} | {
|
|
1559
|
+
status: 404;
|
|
1560
|
+
} | {
|
|
1561
|
+
status: 422;
|
|
1562
|
+
data: HttpValidationError;
|
|
1563
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
|
|
1564
|
+
...opts,
|
|
1565
|
+
method: "DELETE",
|
|
1566
|
+
body: deleteToolsRequest,
|
|
1567
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1568
|
+
"x-account-id": xAccountId,
|
|
1569
|
+
"x-username": xUsername,
|
|
1570
|
+
"x-user-id": xUserId,
|
|
1571
|
+
"x-user-full-name": xUserFullName,
|
|
1572
|
+
authorization
|
|
1573
|
+
})
|
|
1574
|
+
})));
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Split Uploaded File Preview
|
|
1578
|
+
*/
|
|
1579
|
+
export function splitUploadedFilePreviewV1ToolkitsToolsPreviewFileUploadIdGet({ fileUploadId, authorization, xAccountId, xUsername, xUserId, xUserFullName, authorizationHeader }: {
|
|
1580
|
+
fileUploadId: string;
|
|
1581
|
+
authorization: string;
|
|
1582
|
+
xAccountId?: string | null;
|
|
1583
|
+
xUsername?: string | null;
|
|
1584
|
+
xUserId?: string | null;
|
|
1585
|
+
xUserFullName?: string | null;
|
|
1586
|
+
authorizationHeader: string;
|
|
1587
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1588
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1589
|
+
status: 200;
|
|
1590
|
+
data: any;
|
|
1591
|
+
} | {
|
|
1592
|
+
status: 404;
|
|
1593
|
+
} | {
|
|
1594
|
+
status: 422;
|
|
1595
|
+
data: HttpValidationError;
|
|
1596
|
+
}>(`/v1/toolkits/tools/preview/${encodeURIComponent(fileUploadId)}`, {
|
|
1597
|
+
...opts,
|
|
1598
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1599
|
+
Authorization: authorization,
|
|
1600
|
+
"x-account-id": xAccountId,
|
|
1601
|
+
"x-username": xUsername,
|
|
1602
|
+
"x-user-id": xUserId,
|
|
1603
|
+
"x-user-full-name": xUserFullName,
|
|
1604
|
+
authorization: authorizationHeader
|
|
1605
|
+
})
|
|
1606
|
+
}));
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* List Agents Using Tools
|
|
1610
|
+
*/
|
|
1611
|
+
export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, listAgentsUsingToolsRequest }: {
|
|
1612
|
+
toolkitId: string;
|
|
1613
|
+
xAccountId?: string | null;
|
|
1614
|
+
xUsername?: string | null;
|
|
1615
|
+
xUserId?: string | null;
|
|
1616
|
+
xUserFullName?: string | null;
|
|
1617
|
+
authorization: string;
|
|
1618
|
+
listAgentsUsingToolsRequest: ListAgentsUsingToolsRequest;
|
|
1619
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1620
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1621
|
+
status: 200;
|
|
1622
|
+
data: AgentUsingToolsResponse[];
|
|
1623
|
+
} | {
|
|
1624
|
+
status: 404;
|
|
1625
|
+
} | {
|
|
1626
|
+
status: 422;
|
|
1627
|
+
data: HttpValidationError;
|
|
1628
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/agents`, oazapfts.json({
|
|
1629
|
+
...opts,
|
|
1630
|
+
method: "POST",
|
|
1631
|
+
body: listAgentsUsingToolsRequest,
|
|
1632
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1633
|
+
"x-account-id": xAccountId,
|
|
1634
|
+
"x-username": xUsername,
|
|
1635
|
+
"x-user-id": xUserId,
|
|
1636
|
+
"x-user-full-name": xUserFullName,
|
|
1637
|
+
authorization
|
|
1638
|
+
})
|
|
1639
|
+
})));
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* List Tools
|
|
1643
|
+
*/
|
|
1644
|
+
export function listToolsV1AgentsAgentIdToolsGet({ agentId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1645
|
+
agentId: string;
|
|
1646
|
+
versionNumber?: number | null;
|
|
1647
|
+
isPublic?: boolean;
|
|
1648
|
+
xAccountId?: string | null;
|
|
1649
|
+
xUsername?: string | null;
|
|
1650
|
+
xUserId?: string | null;
|
|
1651
|
+
xUserFullName?: string | null;
|
|
1652
|
+
authorization: string;
|
|
1653
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1654
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1655
|
+
status: 200;
|
|
1656
|
+
data: AgentToolsResponse;
|
|
1657
|
+
} | {
|
|
1658
|
+
status: 404;
|
|
1659
|
+
} | {
|
|
1660
|
+
status: 422;
|
|
1661
|
+
data: HttpValidationError;
|
|
1662
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1663
|
+
version_number: versionNumber,
|
|
1664
|
+
is_public: isPublic
|
|
1665
|
+
}))}`, {
|
|
1666
|
+
...opts,
|
|
1667
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1668
|
+
"x-account-id": xAccountId,
|
|
1669
|
+
"x-username": xUsername,
|
|
1670
|
+
"x-user-id": xUserId,
|
|
1671
|
+
"x-user-full-name": xUserFullName,
|
|
1672
|
+
authorization
|
|
1673
|
+
})
|
|
1674
|
+
}));
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* List Tools By Agent For Schema
|
|
1678
|
+
*/
|
|
1679
|
+
export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1680
|
+
agentId: string;
|
|
1681
|
+
schema: SchemaEnum;
|
|
1682
|
+
versionNumber?: number | null;
|
|
1683
|
+
isPublic?: boolean;
|
|
1684
|
+
xAccountId?: string | null;
|
|
1685
|
+
xUsername?: string | null;
|
|
1686
|
+
xUserId?: string | null;
|
|
1687
|
+
xUserFullName?: string | null;
|
|
1688
|
+
authorization: string;
|
|
1689
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1690
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1691
|
+
status: 200;
|
|
1692
|
+
data: (OpenAiTool | {
|
|
1693
|
+
[key: string]: any;
|
|
1694
|
+
})[];
|
|
1695
|
+
} | {
|
|
1696
|
+
status: 404;
|
|
1697
|
+
} | {
|
|
1698
|
+
status: 422;
|
|
1699
|
+
data: HttpValidationError;
|
|
1700
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
|
|
1701
|
+
version_number: versionNumber,
|
|
1702
|
+
is_public: isPublic
|
|
1703
|
+
}))}`, {
|
|
1704
|
+
...opts,
|
|
1705
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1706
|
+
"x-account-id": xAccountId,
|
|
1707
|
+
"x-username": xUsername,
|
|
1708
|
+
"x-user-id": xUserId,
|
|
1709
|
+
"x-user-full-name": xUserFullName,
|
|
1710
|
+
authorization
|
|
1711
|
+
})
|
|
1712
|
+
}));
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Execute Tool
|
|
1716
|
+
*/
|
|
1717
|
+
export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, executeAgentToolRequest }: {
|
|
1718
|
+
agentToolId: string;
|
|
1719
|
+
isPublic?: boolean;
|
|
950
1720
|
xAccountId?: string | null;
|
|
951
1721
|
xUsername?: string | null;
|
|
952
1722
|
xUserId?: string | null;
|
|
953
1723
|
xUserFullName?: string | null;
|
|
954
1724
|
authorization: string;
|
|
1725
|
+
executeAgentToolRequest: ExecuteAgentToolRequest;
|
|
955
1726
|
}, opts?: Oazapfts.RequestOpts) {
|
|
956
1727
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
957
|
-
status:
|
|
1728
|
+
status: 200;
|
|
1729
|
+
data: AgentToolExecutionResponse;
|
|
958
1730
|
} | {
|
|
959
1731
|
status: 404;
|
|
960
1732
|
} | {
|
|
961
1733
|
status: 422;
|
|
962
1734
|
data: HttpValidationError;
|
|
963
|
-
}>(`/v1/
|
|
1735
|
+
}>(`/v1/agents/tools/${encodeURIComponent(agentToolId)}/execute${QS.query(QS.explode({
|
|
1736
|
+
is_public: isPublic
|
|
1737
|
+
}))}`, oazapfts.json({
|
|
964
1738
|
...opts,
|
|
965
1739
|
method: "POST",
|
|
1740
|
+
body: executeAgentToolRequest,
|
|
966
1741
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
967
1742
|
"x-account-id": xAccountId,
|
|
968
1743
|
"x-username": xUsername,
|
|
@@ -970,14 +1745,17 @@ export function publishToolkitV1ToolkitsToolkitIdPublishPost({ toolkitId, xAccou
|
|
|
970
1745
|
"x-user-full-name": xUserFullName,
|
|
971
1746
|
authorization
|
|
972
1747
|
})
|
|
973
|
-
}));
|
|
1748
|
+
})));
|
|
974
1749
|
}
|
|
975
1750
|
/**
|
|
976
|
-
*
|
|
1751
|
+
* List Account Agents
|
|
977
1752
|
*/
|
|
978
|
-
export function
|
|
979
|
-
|
|
980
|
-
|
|
1753
|
+
export function listAccountAgentsV1AgentsAccountGet({ name, size, page, username, order, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1754
|
+
name?: string | null;
|
|
1755
|
+
size?: number;
|
|
1756
|
+
page?: number;
|
|
1757
|
+
username?: string | null;
|
|
1758
|
+
order?: OrderEnum | null;
|
|
981
1759
|
xAccountId?: string | null;
|
|
982
1760
|
xUsername?: string | null;
|
|
983
1761
|
xUserId?: string | null;
|
|
@@ -986,13 +1764,19 @@ export function getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet({ toolkitId, too
|
|
|
986
1764
|
}, opts?: Oazapfts.RequestOpts) {
|
|
987
1765
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
988
1766
|
status: 200;
|
|
989
|
-
data:
|
|
1767
|
+
data: PaginatedResponseListAccountAgentResponseV1;
|
|
990
1768
|
} | {
|
|
991
1769
|
status: 404;
|
|
992
1770
|
} | {
|
|
993
1771
|
status: 422;
|
|
994
1772
|
data: HttpValidationError;
|
|
995
|
-
}>(`/v1/
|
|
1773
|
+
}>(`/v1/agents/account${QS.query(QS.explode({
|
|
1774
|
+
name,
|
|
1775
|
+
size,
|
|
1776
|
+
page,
|
|
1777
|
+
username,
|
|
1778
|
+
order
|
|
1779
|
+
}))}`, {
|
|
996
1780
|
...opts,
|
|
997
1781
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
998
1782
|
"x-account-id": xAccountId,
|
|
@@ -1004,29 +1788,38 @@ export function getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet({ toolkitId, too
|
|
|
1004
1788
|
}));
|
|
1005
1789
|
}
|
|
1006
1790
|
/**
|
|
1007
|
-
*
|
|
1791
|
+
* List Agents
|
|
1008
1792
|
*/
|
|
1009
|
-
export function
|
|
1010
|
-
|
|
1011
|
-
|
|
1793
|
+
export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1794
|
+
isPublic?: boolean;
|
|
1795
|
+
name?: string | null;
|
|
1796
|
+
slug?: string | null;
|
|
1797
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1798
|
+
size?: number;
|
|
1799
|
+
page?: number;
|
|
1012
1800
|
xAccountId?: string | null;
|
|
1013
1801
|
xUsername?: string | null;
|
|
1014
1802
|
xUserId?: string | null;
|
|
1015
1803
|
xUserFullName?: string | null;
|
|
1016
1804
|
authorization: string;
|
|
1017
|
-
customToolRequest: CustomToolRequest;
|
|
1018
1805
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1019
1806
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1020
|
-
status:
|
|
1807
|
+
status: 200;
|
|
1808
|
+
data: ListAgentResponse[];
|
|
1021
1809
|
} | {
|
|
1022
1810
|
status: 404;
|
|
1023
1811
|
} | {
|
|
1024
1812
|
status: 422;
|
|
1025
1813
|
data: HttpValidationError;
|
|
1026
|
-
}>(`/v1/
|
|
1814
|
+
}>(`/v1/agents${QS.query(QS.explode({
|
|
1815
|
+
is_public: isPublic,
|
|
1816
|
+
name,
|
|
1817
|
+
slug,
|
|
1818
|
+
visibility,
|
|
1819
|
+
size,
|
|
1820
|
+
page
|
|
1821
|
+
}))}`, {
|
|
1027
1822
|
...opts,
|
|
1028
|
-
method: "PUT",
|
|
1029
|
-
body: customToolRequest,
|
|
1030
1823
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1031
1824
|
"x-account-id": xAccountId,
|
|
1032
1825
|
"x-username": xUsername,
|
|
@@ -1034,31 +1827,34 @@ export function editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut({ toolkitId, to
|
|
|
1034
1827
|
"x-user-full-name": xUserFullName,
|
|
1035
1828
|
authorization
|
|
1036
1829
|
})
|
|
1037
|
-
}))
|
|
1830
|
+
}));
|
|
1038
1831
|
}
|
|
1039
1832
|
/**
|
|
1040
|
-
* Create
|
|
1833
|
+
* Create Agent
|
|
1041
1834
|
*/
|
|
1042
|
-
export function
|
|
1043
|
-
|
|
1835
|
+
export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequest }: {
|
|
1836
|
+
isPublic?: boolean;
|
|
1044
1837
|
xAccountId?: string | null;
|
|
1045
1838
|
xUsername?: string | null;
|
|
1046
1839
|
xUserId?: string | null;
|
|
1047
1840
|
xUserFullName?: string | null;
|
|
1048
1841
|
authorization: string;
|
|
1049
|
-
|
|
1842
|
+
newAgentRequest: NewAgentRequest;
|
|
1050
1843
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1051
1844
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1052
|
-
status:
|
|
1845
|
+
status: 201;
|
|
1846
|
+
data: CreatedResponse;
|
|
1053
1847
|
} | {
|
|
1054
1848
|
status: 404;
|
|
1055
1849
|
} | {
|
|
1056
1850
|
status: 422;
|
|
1057
1851
|
data: HttpValidationError;
|
|
1058
|
-
}>(`/v1/
|
|
1852
|
+
}>(`/v1/agents${QS.query(QS.explode({
|
|
1853
|
+
is_public: isPublic
|
|
1854
|
+
}))}`, oazapfts.json({
|
|
1059
1855
|
...opts,
|
|
1060
1856
|
method: "POST",
|
|
1061
|
-
body:
|
|
1857
|
+
body: newAgentRequest,
|
|
1062
1858
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1063
1859
|
"x-account-id": xAccountId,
|
|
1064
1860
|
"x-username": xUsername,
|
|
@@ -1069,28 +1865,28 @@ export function createToolkitToolsV1ToolkitsToolkitIdToolsPost({ toolkitId, xAcc
|
|
|
1069
1865
|
})));
|
|
1070
1866
|
}
|
|
1071
1867
|
/**
|
|
1072
|
-
*
|
|
1868
|
+
* Search Agents By Ids
|
|
1073
1869
|
*/
|
|
1074
|
-
export function
|
|
1075
|
-
toolkitId: string;
|
|
1870
|
+
export function searchAgentsByIdsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
|
|
1076
1871
|
xAccountId?: string | null;
|
|
1077
1872
|
xUsername?: string | null;
|
|
1078
1873
|
xUserId?: string | null;
|
|
1079
1874
|
xUserFullName?: string | null;
|
|
1080
1875
|
authorization: string;
|
|
1081
|
-
|
|
1876
|
+
searchAgentsRequest: SearchAgentsRequest;
|
|
1082
1877
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1083
1878
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1084
|
-
status:
|
|
1879
|
+
status: 200;
|
|
1880
|
+
data: ListAgentResponse[];
|
|
1085
1881
|
} | {
|
|
1086
1882
|
status: 404;
|
|
1087
1883
|
} | {
|
|
1088
1884
|
status: 422;
|
|
1089
1885
|
data: HttpValidationError;
|
|
1090
|
-
}>(
|
|
1886
|
+
}>("/v1/agents/search", oazapfts.json({
|
|
1091
1887
|
...opts,
|
|
1092
|
-
method: "
|
|
1093
|
-
body:
|
|
1888
|
+
method: "POST",
|
|
1889
|
+
body: searchAgentsRequest,
|
|
1094
1890
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1095
1891
|
"x-account-id": xAccountId,
|
|
1096
1892
|
"x-username": xUsername,
|
|
@@ -1101,61 +1897,59 @@ export function deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete({ toolkitId, xA
|
|
|
1101
1897
|
})));
|
|
1102
1898
|
}
|
|
1103
1899
|
/**
|
|
1104
|
-
*
|
|
1900
|
+
* Workspace Fork
|
|
1105
1901
|
*/
|
|
1106
|
-
export function
|
|
1107
|
-
fileUploadId: string;
|
|
1108
|
-
authorization: string;
|
|
1902
|
+
export function workspaceForkV1AgentsWorkspaceForkPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceForkRequest }: {
|
|
1109
1903
|
xAccountId?: string | null;
|
|
1110
1904
|
xUsername?: string | null;
|
|
1111
1905
|
xUserId?: string | null;
|
|
1112
1906
|
xUserFullName?: string | null;
|
|
1113
|
-
|
|
1907
|
+
authorization: string;
|
|
1908
|
+
workspaceForkRequest: WorkspaceForkRequest;
|
|
1114
1909
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1115
1910
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1116
|
-
status:
|
|
1117
|
-
data:
|
|
1911
|
+
status: 201;
|
|
1912
|
+
data: WorkspaceForkAgent;
|
|
1118
1913
|
} | {
|
|
1119
1914
|
status: 404;
|
|
1120
1915
|
} | {
|
|
1121
1916
|
status: 422;
|
|
1122
1917
|
data: HttpValidationError;
|
|
1123
|
-
}>(
|
|
1918
|
+
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1124
1919
|
...opts,
|
|
1920
|
+
method: "POST",
|
|
1921
|
+
body: workspaceForkRequest,
|
|
1125
1922
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1126
|
-
Authorization: authorization,
|
|
1127
1923
|
"x-account-id": xAccountId,
|
|
1128
1924
|
"x-username": xUsername,
|
|
1129
1925
|
"x-user-id": xUserId,
|
|
1130
1926
|
"x-user-full-name": xUserFullName,
|
|
1131
|
-
authorization
|
|
1927
|
+
authorization
|
|
1132
1928
|
})
|
|
1133
|
-
}));
|
|
1929
|
+
})));
|
|
1134
1930
|
}
|
|
1135
1931
|
/**
|
|
1136
|
-
*
|
|
1932
|
+
* Delete Workspace Fork
|
|
1137
1933
|
*/
|
|
1138
|
-
export function
|
|
1139
|
-
toolkitId: string;
|
|
1934
|
+
export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceDeleteRequest }: {
|
|
1140
1935
|
xAccountId?: string | null;
|
|
1141
1936
|
xUsername?: string | null;
|
|
1142
1937
|
xUserId?: string | null;
|
|
1143
1938
|
xUserFullName?: string | null;
|
|
1144
1939
|
authorization: string;
|
|
1145
|
-
|
|
1940
|
+
workspaceDeleteRequest: WorkspaceDeleteRequest;
|
|
1146
1941
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1147
1942
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1148
|
-
status:
|
|
1149
|
-
data: AgentUsingToolsResponse[];
|
|
1943
|
+
status: 204;
|
|
1150
1944
|
} | {
|
|
1151
1945
|
status: 404;
|
|
1152
1946
|
} | {
|
|
1153
1947
|
status: 422;
|
|
1154
1948
|
data: HttpValidationError;
|
|
1155
|
-
}>(
|
|
1949
|
+
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1156
1950
|
...opts,
|
|
1157
|
-
method: "
|
|
1158
|
-
body:
|
|
1951
|
+
method: "DELETE",
|
|
1952
|
+
body: workspaceDeleteRequest,
|
|
1159
1953
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1160
1954
|
"x-account-id": xAccountId,
|
|
1161
1955
|
"x-username": xUsername,
|
|
@@ -1166,31 +1960,28 @@ export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkit
|
|
|
1166
1960
|
})));
|
|
1167
1961
|
}
|
|
1168
1962
|
/**
|
|
1169
|
-
*
|
|
1963
|
+
* List Workspace
|
|
1170
1964
|
*/
|
|
1171
|
-
export function
|
|
1172
|
-
agentId: string;
|
|
1173
|
-
isPublic?: boolean;
|
|
1965
|
+
export function listWorkspaceV1AgentsWorkspaceListPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceListRequest }: {
|
|
1174
1966
|
xAccountId?: string | null;
|
|
1175
1967
|
xUsername?: string | null;
|
|
1176
1968
|
xUserId?: string | null;
|
|
1177
1969
|
xUserFullName?: string | null;
|
|
1178
1970
|
authorization: string;
|
|
1179
|
-
|
|
1971
|
+
workspaceListRequest: WorkspaceListRequest;
|
|
1180
1972
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1181
1973
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1182
|
-
status:
|
|
1974
|
+
status: 200;
|
|
1975
|
+
data: ListAgentResponse[];
|
|
1183
1976
|
} | {
|
|
1184
1977
|
status: 404;
|
|
1185
1978
|
} | {
|
|
1186
1979
|
status: 422;
|
|
1187
1980
|
data: HttpValidationError;
|
|
1188
|
-
}>(
|
|
1189
|
-
is_public: isPublic
|
|
1190
|
-
}))}`, oazapfts.json({
|
|
1981
|
+
}>("/v1/agents/workspace/list", oazapfts.json({
|
|
1191
1982
|
...opts,
|
|
1192
1983
|
method: "POST",
|
|
1193
|
-
body:
|
|
1984
|
+
body: workspaceListRequest,
|
|
1194
1985
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1195
1986
|
"x-account-id": xAccountId,
|
|
1196
1987
|
"x-username": xUsername,
|
|
@@ -1201,29 +1992,28 @@ export function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccoun
|
|
|
1201
1992
|
})));
|
|
1202
1993
|
}
|
|
1203
1994
|
/**
|
|
1204
|
-
* List
|
|
1995
|
+
* List Agent Dependencies
|
|
1205
1996
|
*/
|
|
1206
|
-
export function
|
|
1207
|
-
agentId: string;
|
|
1208
|
-
isPublic?: boolean;
|
|
1997
|
+
export function listAgentDependenciesV1AgentsDependenciesPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, agentDependenciesRequest }: {
|
|
1209
1998
|
xAccountId?: string | null;
|
|
1210
1999
|
xUsername?: string | null;
|
|
1211
2000
|
xUserId?: string | null;
|
|
1212
2001
|
xUserFullName?: string | null;
|
|
1213
2002
|
authorization: string;
|
|
2003
|
+
agentDependenciesRequest: AgentDependenciesRequest;
|
|
1214
2004
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1215
2005
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1216
2006
|
status: 200;
|
|
1217
|
-
data:
|
|
2007
|
+
data: WorkspaceAgentDependencies;
|
|
1218
2008
|
} | {
|
|
1219
2009
|
status: 404;
|
|
1220
2010
|
} | {
|
|
1221
2011
|
status: 422;
|
|
1222
2012
|
data: HttpValidationError;
|
|
1223
|
-
}>(
|
|
1224
|
-
is_public: isPublic
|
|
1225
|
-
}))}`, {
|
|
2013
|
+
}>("/v1/agents/dependencies", oazapfts.json({
|
|
1226
2014
|
...opts,
|
|
2015
|
+
method: "POST",
|
|
2016
|
+
body: agentDependenciesRequest,
|
|
1227
2017
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1228
2018
|
"x-account-id": xAccountId,
|
|
1229
2019
|
"x-username": xUsername,
|
|
@@ -1231,14 +2021,17 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
|
|
|
1231
2021
|
"x-user-full-name": xUserFullName,
|
|
1232
2022
|
authorization
|
|
1233
2023
|
})
|
|
1234
|
-
}));
|
|
2024
|
+
})));
|
|
1235
2025
|
}
|
|
1236
2026
|
/**
|
|
1237
|
-
*
|
|
2027
|
+
* List Multi Agents
|
|
1238
2028
|
*/
|
|
1239
|
-
export function
|
|
1240
|
-
|
|
1241
|
-
|
|
2029
|
+
export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2030
|
+
name?: string | null;
|
|
2031
|
+
slug?: string | null;
|
|
2032
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
2033
|
+
size?: number;
|
|
2034
|
+
page?: number;
|
|
1242
2035
|
xAccountId?: string | null;
|
|
1243
2036
|
xUsername?: string | null;
|
|
1244
2037
|
xUserId?: string | null;
|
|
@@ -1246,17 +2039,21 @@ export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAcco
|
|
|
1246
2039
|
authorization: string;
|
|
1247
2040
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1248
2041
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1249
|
-
status:
|
|
2042
|
+
status: 200;
|
|
2043
|
+
data: ListMultiAgentsResponse[];
|
|
1250
2044
|
} | {
|
|
1251
2045
|
status: 404;
|
|
1252
2046
|
} | {
|
|
1253
2047
|
status: 422;
|
|
1254
2048
|
data: HttpValidationError;
|
|
1255
|
-
}>(`/v1/agents
|
|
1256
|
-
|
|
2049
|
+
}>(`/v1/agents/multi-agents${QS.query(QS.explode({
|
|
2050
|
+
name,
|
|
2051
|
+
slug,
|
|
2052
|
+
visibility,
|
|
2053
|
+
size,
|
|
2054
|
+
page
|
|
1257
2055
|
}))}`, {
|
|
1258
2056
|
...opts,
|
|
1259
|
-
method: "DELETE",
|
|
1260
2057
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1261
2058
|
"x-account-id": xAccountId,
|
|
1262
2059
|
"x-username": xUsername,
|
|
@@ -1267,12 +2064,12 @@ export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAcco
|
|
|
1267
2064
|
}));
|
|
1268
2065
|
}
|
|
1269
2066
|
/**
|
|
1270
|
-
*
|
|
2067
|
+
* Get Agent
|
|
1271
2068
|
*/
|
|
1272
|
-
export function
|
|
2069
|
+
export function getAgentV1AgentsAgentIdGet({ agentId, details, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1273
2070
|
agentId: string;
|
|
1274
|
-
|
|
1275
|
-
|
|
2071
|
+
details?: boolean;
|
|
2072
|
+
versionNumber?: number | null;
|
|
1276
2073
|
xAccountId?: string | null;
|
|
1277
2074
|
xUsername?: string | null;
|
|
1278
2075
|
xUserId?: string | null;
|
|
@@ -1281,16 +2078,15 @@ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ a
|
|
|
1281
2078
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1282
2079
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1283
2080
|
status: 200;
|
|
1284
|
-
data:
|
|
1285
|
-
[key: string]: any;
|
|
1286
|
-
})[];
|
|
2081
|
+
data: FindByIdAgentResponse;
|
|
1287
2082
|
} | {
|
|
1288
2083
|
status: 404;
|
|
1289
2084
|
} | {
|
|
1290
2085
|
status: 422;
|
|
1291
2086
|
data: HttpValidationError;
|
|
1292
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}
|
|
1293
|
-
|
|
2087
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
2088
|
+
details,
|
|
2089
|
+
version_number: versionNumber
|
|
1294
2090
|
}))}`, {
|
|
1295
2091
|
...opts,
|
|
1296
2092
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1303,32 +2099,31 @@ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ a
|
|
|
1303
2099
|
}));
|
|
1304
2100
|
}
|
|
1305
2101
|
/**
|
|
1306
|
-
*
|
|
2102
|
+
* Update Agent
|
|
1307
2103
|
*/
|
|
1308
|
-
export function
|
|
1309
|
-
|
|
2104
|
+
export function updateAgentV1AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequest }: {
|
|
2105
|
+
agentId: string;
|
|
1310
2106
|
isPublic?: boolean;
|
|
1311
2107
|
xAccountId?: string | null;
|
|
1312
2108
|
xUsername?: string | null;
|
|
1313
2109
|
xUserId?: string | null;
|
|
1314
2110
|
xUserFullName?: string | null;
|
|
1315
2111
|
authorization: string;
|
|
1316
|
-
|
|
2112
|
+
updateAgentRequest: UpdateAgentRequest;
|
|
1317
2113
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1318
2114
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1319
|
-
status:
|
|
1320
|
-
data: AgentToolExecutionResponse;
|
|
2115
|
+
status: 204;
|
|
1321
2116
|
} | {
|
|
1322
2117
|
status: 404;
|
|
1323
2118
|
} | {
|
|
1324
2119
|
status: 422;
|
|
1325
2120
|
data: HttpValidationError;
|
|
1326
|
-
}>(`/v1/agents
|
|
2121
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1327
2122
|
is_public: isPublic
|
|
1328
2123
|
}))}`, oazapfts.json({
|
|
1329
2124
|
...opts,
|
|
1330
|
-
method: "
|
|
1331
|
-
body:
|
|
2125
|
+
method: "PATCH",
|
|
2126
|
+
body: updateAgentRequest,
|
|
1332
2127
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1333
2128
|
"x-account-id": xAccountId,
|
|
1334
2129
|
"x-username": xUsername,
|
|
@@ -1339,15 +2134,11 @@ export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, is
|
|
|
1339
2134
|
})));
|
|
1340
2135
|
}
|
|
1341
2136
|
/**
|
|
1342
|
-
*
|
|
2137
|
+
* Delete Agent
|
|
1343
2138
|
*/
|
|
1344
|
-
export function
|
|
2139
|
+
export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2140
|
+
agentId: string;
|
|
1345
2141
|
isPublic?: boolean;
|
|
1346
|
-
name?: string | null;
|
|
1347
|
-
slug?: string | null;
|
|
1348
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1349
|
-
size?: number;
|
|
1350
|
-
page?: number;
|
|
1351
2142
|
xAccountId?: string | null;
|
|
1352
2143
|
xUsername?: string | null;
|
|
1353
2144
|
xUserId?: string | null;
|
|
@@ -1355,22 +2146,17 @@ export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size,
|
|
|
1355
2146
|
authorization: string;
|
|
1356
2147
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1357
2148
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1358
|
-
status:
|
|
1359
|
-
data: ListAgentResponse[];
|
|
2149
|
+
status: 204;
|
|
1360
2150
|
} | {
|
|
1361
2151
|
status: 404;
|
|
1362
2152
|
} | {
|
|
1363
2153
|
status: 422;
|
|
1364
2154
|
data: HttpValidationError;
|
|
1365
|
-
}>(`/v1/agents${QS.query(QS.explode({
|
|
1366
|
-
is_public: isPublic
|
|
1367
|
-
name,
|
|
1368
|
-
slug,
|
|
1369
|
-
visibility,
|
|
1370
|
-
size,
|
|
1371
|
-
page
|
|
2155
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
2156
|
+
is_public: isPublic
|
|
1372
2157
|
}))}`, {
|
|
1373
2158
|
...opts,
|
|
2159
|
+
method: "DELETE",
|
|
1374
2160
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1375
2161
|
"x-account-id": xAccountId,
|
|
1376
2162
|
"x-username": xUsername,
|
|
@@ -1381,31 +2167,26 @@ export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size,
|
|
|
1381
2167
|
}));
|
|
1382
2168
|
}
|
|
1383
2169
|
/**
|
|
1384
|
-
*
|
|
2170
|
+
* Add Favorite
|
|
1385
2171
|
*/
|
|
1386
|
-
export function
|
|
1387
|
-
|
|
2172
|
+
export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2173
|
+
agentId: string;
|
|
1388
2174
|
xAccountId?: string | null;
|
|
1389
2175
|
xUsername?: string | null;
|
|
1390
2176
|
xUserId?: string | null;
|
|
1391
2177
|
xUserFullName?: string | null;
|
|
1392
2178
|
authorization: string;
|
|
1393
|
-
newAgentRequest: NewAgentRequest;
|
|
1394
2179
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1395
2180
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1396
|
-
status:
|
|
1397
|
-
data: CreatedResponse;
|
|
2181
|
+
status: 204;
|
|
1398
2182
|
} | {
|
|
1399
2183
|
status: 404;
|
|
1400
2184
|
} | {
|
|
1401
2185
|
status: 422;
|
|
1402
2186
|
data: HttpValidationError;
|
|
1403
|
-
}>(`/v1/agents
|
|
1404
|
-
is_public: isPublic
|
|
1405
|
-
}))}`, oazapfts.json({
|
|
2187
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1406
2188
|
...opts,
|
|
1407
2189
|
method: "POST",
|
|
1408
|
-
body: newAgentRequest,
|
|
1409
2190
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1410
2191
|
"x-account-id": xAccountId,
|
|
1411
2192
|
"x-username": xUsername,
|
|
@@ -1413,31 +2194,29 @@ export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUser
|
|
|
1413
2194
|
"x-user-full-name": xUserFullName,
|
|
1414
2195
|
authorization
|
|
1415
2196
|
})
|
|
1416
|
-
}))
|
|
2197
|
+
}));
|
|
1417
2198
|
}
|
|
1418
2199
|
/**
|
|
1419
|
-
*
|
|
2200
|
+
* Delete Favorite
|
|
1420
2201
|
*/
|
|
1421
|
-
export function
|
|
2202
|
+
export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2203
|
+
agentId: string;
|
|
1422
2204
|
xAccountId?: string | null;
|
|
1423
2205
|
xUsername?: string | null;
|
|
1424
2206
|
xUserId?: string | null;
|
|
1425
2207
|
xUserFullName?: string | null;
|
|
1426
2208
|
authorization: string;
|
|
1427
|
-
searchAgentsRequest: SearchAgentsRequest;
|
|
1428
2209
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1429
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1430
|
-
status:
|
|
1431
|
-
data: ListAgentResponse[];
|
|
2210
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2211
|
+
status: 204;
|
|
1432
2212
|
} | {
|
|
1433
2213
|
status: 404;
|
|
1434
2214
|
} | {
|
|
1435
2215
|
status: 422;
|
|
1436
2216
|
data: HttpValidationError;
|
|
1437
|
-
}>(
|
|
2217
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1438
2218
|
...opts,
|
|
1439
|
-
method: "
|
|
1440
|
-
body: searchAgentsRequest,
|
|
2219
|
+
method: "DELETE",
|
|
1441
2220
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1442
2221
|
"x-account-id": xAccountId,
|
|
1443
2222
|
"x-username": xUsername,
|
|
@@ -1445,31 +2224,35 @@ export function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
1445
2224
|
"x-user-full-name": xUserFullName,
|
|
1446
2225
|
authorization
|
|
1447
2226
|
})
|
|
1448
|
-
}))
|
|
2227
|
+
}));
|
|
1449
2228
|
}
|
|
1450
2229
|
/**
|
|
1451
|
-
*
|
|
2230
|
+
* Fork Agent
|
|
1452
2231
|
*/
|
|
1453
|
-
export function
|
|
2232
|
+
export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
2233
|
+
agentId: string;
|
|
2234
|
+
isPublic?: boolean;
|
|
1454
2235
|
xAccountId?: string | null;
|
|
1455
2236
|
xUsername?: string | null;
|
|
1456
2237
|
xUserId?: string | null;
|
|
1457
2238
|
xUserFullName?: string | null;
|
|
1458
2239
|
authorization: string;
|
|
1459
|
-
|
|
2240
|
+
forkAgentRequest: ForkAgentRequest;
|
|
1460
2241
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1461
2242
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1462
2243
|
status: 201;
|
|
1463
|
-
data:
|
|
2244
|
+
data: CreatedResponse;
|
|
1464
2245
|
} | {
|
|
1465
2246
|
status: 404;
|
|
1466
2247
|
} | {
|
|
1467
2248
|
status: 422;
|
|
1468
2249
|
data: HttpValidationError;
|
|
1469
|
-
}>(
|
|
2250
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/fork${QS.query(QS.explode({
|
|
2251
|
+
is_public: isPublic
|
|
2252
|
+
}))}`, oazapfts.json({
|
|
1470
2253
|
...opts,
|
|
1471
2254
|
method: "POST",
|
|
1472
|
-
body:
|
|
2255
|
+
body: forkAgentRequest,
|
|
1473
2256
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1474
2257
|
"x-account-id": xAccountId,
|
|
1475
2258
|
"x-username": xUsername,
|
|
@@ -1480,15 +2263,16 @@ export function workspaceForkV1AgentsWorkspaceForkPost({ xAccountId, xUsername,
|
|
|
1480
2263
|
})));
|
|
1481
2264
|
}
|
|
1482
2265
|
/**
|
|
1483
|
-
*
|
|
2266
|
+
* Publish Agent
|
|
1484
2267
|
*/
|
|
1485
|
-
export function
|
|
2268
|
+
export function publishAgentV1AgentsAgentIdPublishPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization, publishAgentRequest }: {
|
|
2269
|
+
agentId: string;
|
|
1486
2270
|
xAccountId?: string | null;
|
|
1487
2271
|
xUsername?: string | null;
|
|
1488
2272
|
xUserId?: string | null;
|
|
1489
2273
|
xUserFullName?: string | null;
|
|
1490
2274
|
authorization: string;
|
|
1491
|
-
|
|
2275
|
+
publishAgentRequest: PublishAgentRequest;
|
|
1492
2276
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1493
2277
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1494
2278
|
status: 204;
|
|
@@ -1497,10 +2281,10 @@ export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUs
|
|
|
1497
2281
|
} | {
|
|
1498
2282
|
status: 422;
|
|
1499
2283
|
data: HttpValidationError;
|
|
1500
|
-
}>(
|
|
2284
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
|
|
1501
2285
|
...opts,
|
|
1502
|
-
method: "
|
|
1503
|
-
body:
|
|
2286
|
+
method: "POST",
|
|
2287
|
+
body: publishAgentRequest,
|
|
1504
2288
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1505
2289
|
"x-account-id": xAccountId,
|
|
1506
2290
|
"x-username": xUsername,
|
|
@@ -1511,28 +2295,26 @@ export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUs
|
|
|
1511
2295
|
})));
|
|
1512
2296
|
}
|
|
1513
2297
|
/**
|
|
1514
|
-
*
|
|
2298
|
+
* Share
|
|
1515
2299
|
*/
|
|
1516
|
-
export function
|
|
2300
|
+
export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2301
|
+
agentId: string;
|
|
1517
2302
|
xAccountId?: string | null;
|
|
1518
2303
|
xUsername?: string | null;
|
|
1519
2304
|
xUserId?: string | null;
|
|
1520
2305
|
xUserFullName?: string | null;
|
|
1521
2306
|
authorization: string;
|
|
1522
|
-
workspaceListRequest: WorkspaceListRequest;
|
|
1523
2307
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1524
2308
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1525
|
-
status:
|
|
1526
|
-
data: ListAgentResponse[];
|
|
2309
|
+
status: 204;
|
|
1527
2310
|
} | {
|
|
1528
2311
|
status: 404;
|
|
1529
2312
|
} | {
|
|
1530
2313
|
status: 422;
|
|
1531
2314
|
data: HttpValidationError;
|
|
1532
|
-
}>(
|
|
2315
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/share`, {
|
|
1533
2316
|
...opts,
|
|
1534
2317
|
method: "POST",
|
|
1535
|
-
body: workspaceListRequest,
|
|
1536
2318
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1537
2319
|
"x-account-id": xAccountId,
|
|
1538
2320
|
"x-username": xUsername,
|
|
@@ -1540,31 +2322,29 @@ export function listWorkspaceV1AgentsWorkspaceListPost({ xAccountId, xUsername,
|
|
|
1540
2322
|
"x-user-full-name": xUserFullName,
|
|
1541
2323
|
authorization
|
|
1542
2324
|
})
|
|
1543
|
-
}))
|
|
2325
|
+
}));
|
|
1544
2326
|
}
|
|
1545
2327
|
/**
|
|
1546
|
-
*
|
|
2328
|
+
* Disassociate Ks From All Agents
|
|
1547
2329
|
*/
|
|
1548
|
-
export function
|
|
2330
|
+
export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2331
|
+
ksId: string;
|
|
1549
2332
|
xAccountId?: string | null;
|
|
1550
2333
|
xUsername?: string | null;
|
|
1551
2334
|
xUserId?: string | null;
|
|
1552
2335
|
xUserFullName?: string | null;
|
|
1553
2336
|
authorization: string;
|
|
1554
|
-
agentDependenciesRequest: AgentDependenciesRequest;
|
|
1555
2337
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1556
2338
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1557
|
-
status:
|
|
1558
|
-
data: WorkspaceAgentDependencies;
|
|
2339
|
+
status: 204;
|
|
1559
2340
|
} | {
|
|
1560
2341
|
status: 404;
|
|
1561
2342
|
} | {
|
|
1562
2343
|
status: 422;
|
|
1563
2344
|
data: HttpValidationError;
|
|
1564
|
-
}>(
|
|
2345
|
+
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1565
2346
|
...opts,
|
|
1566
|
-
method: "
|
|
1567
|
-
body: agentDependenciesRequest,
|
|
2347
|
+
method: "DELETE",
|
|
1568
2348
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1569
2349
|
"x-account-id": xAccountId,
|
|
1570
2350
|
"x-username": xUsername,
|
|
@@ -1572,17 +2352,13 @@ export function listAgentDependenciesV1AgentsDependenciesPost({ xAccountId, xUse
|
|
|
1572
2352
|
"x-user-full-name": xUserFullName,
|
|
1573
2353
|
authorization
|
|
1574
2354
|
})
|
|
1575
|
-
}))
|
|
2355
|
+
}));
|
|
1576
2356
|
}
|
|
1577
2357
|
/**
|
|
1578
|
-
*
|
|
2358
|
+
* Get Agent By Ks Id
|
|
1579
2359
|
*/
|
|
1580
|
-
export function
|
|
1581
|
-
|
|
1582
|
-
slug?: string | null;
|
|
1583
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1584
|
-
size?: number;
|
|
1585
|
-
page?: number;
|
|
2360
|
+
export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2361
|
+
ksId: string;
|
|
1586
2362
|
xAccountId?: string | null;
|
|
1587
2363
|
xUsername?: string | null;
|
|
1588
2364
|
xUserId?: string | null;
|
|
@@ -1591,19 +2367,13 @@ export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility,
|
|
|
1591
2367
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1592
2368
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1593
2369
|
status: 200;
|
|
1594
|
-
data:
|
|
2370
|
+
data: ListAgentResponse[];
|
|
1595
2371
|
} | {
|
|
1596
2372
|
status: 404;
|
|
1597
2373
|
} | {
|
|
1598
2374
|
status: 422;
|
|
1599
2375
|
data: HttpValidationError;
|
|
1600
|
-
}>(`/v1/agents/
|
|
1601
|
-
name,
|
|
1602
|
-
slug,
|
|
1603
|
-
visibility,
|
|
1604
|
-
size,
|
|
1605
|
-
page
|
|
1606
|
-
}))}`, {
|
|
2376
|
+
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1607
2377
|
...opts,
|
|
1608
2378
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1609
2379
|
"x-account-id": xAccountId,
|
|
@@ -1615,11 +2385,10 @@ export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility,
|
|
|
1615
2385
|
}));
|
|
1616
2386
|
}
|
|
1617
2387
|
/**
|
|
1618
|
-
*
|
|
2388
|
+
* Migrate Agent Avatar By Id
|
|
1619
2389
|
*/
|
|
1620
|
-
export function
|
|
2390
|
+
export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1621
2391
|
agentId: string;
|
|
1622
|
-
details?: boolean;
|
|
1623
2392
|
xAccountId?: string | null;
|
|
1624
2393
|
xUsername?: string | null;
|
|
1625
2394
|
xUserId?: string | null;
|
|
@@ -1627,17 +2396,15 @@ export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUser
|
|
|
1627
2396
|
authorization: string;
|
|
1628
2397
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1629
2398
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1630
|
-
status:
|
|
1631
|
-
data: AgentModel;
|
|
2399
|
+
status: 204;
|
|
1632
2400
|
} | {
|
|
1633
2401
|
status: 404;
|
|
1634
2402
|
} | {
|
|
1635
2403
|
status: 422;
|
|
1636
2404
|
data: HttpValidationError;
|
|
1637
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}
|
|
1638
|
-
details
|
|
1639
|
-
}))}`, {
|
|
2405
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/migrate-avatar`, {
|
|
1640
2406
|
...opts,
|
|
2407
|
+
method: "POST",
|
|
1641
2408
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1642
2409
|
"x-account-id": xAccountId,
|
|
1643
2410
|
"x-username": xUsername,
|
|
@@ -1648,31 +2415,32 @@ export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUser
|
|
|
1648
2415
|
}));
|
|
1649
2416
|
}
|
|
1650
2417
|
/**
|
|
1651
|
-
*
|
|
2418
|
+
* Create Version
|
|
1652
2419
|
*/
|
|
1653
|
-
export function
|
|
1654
|
-
|
|
1655
|
-
isPublic?: boolean;
|
|
2420
|
+
export function createVersionV1AgentsAgentCoreIdVersionsPost({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization, createVersionRequest }: {
|
|
2421
|
+
agentCoreId: string;
|
|
1656
2422
|
xAccountId?: string | null;
|
|
1657
2423
|
xUsername?: string | null;
|
|
1658
2424
|
xUserId?: string | null;
|
|
1659
2425
|
xUserFullName?: string | null;
|
|
1660
2426
|
authorization: string;
|
|
1661
|
-
|
|
2427
|
+
createVersionRequest: CreateVersionRequest;
|
|
1662
2428
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1663
2429
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1664
|
-
status:
|
|
2430
|
+
status: 200;
|
|
2431
|
+
data: CreateVersionResponse;
|
|
2432
|
+
} | {
|
|
2433
|
+
status: 201;
|
|
2434
|
+
data: CreateVersionResponse;
|
|
1665
2435
|
} | {
|
|
1666
2436
|
status: 404;
|
|
1667
2437
|
} | {
|
|
1668
2438
|
status: 422;
|
|
1669
2439
|
data: HttpValidationError;
|
|
1670
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1671
|
-
is_public: isPublic
|
|
1672
|
-
}))}`, oazapfts.json({
|
|
2440
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, oazapfts.json({
|
|
1673
2441
|
...opts,
|
|
1674
|
-
method: "
|
|
1675
|
-
body:
|
|
2442
|
+
method: "POST",
|
|
2443
|
+
body: createVersionRequest,
|
|
1676
2444
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1677
2445
|
"x-account-id": xAccountId,
|
|
1678
2446
|
"x-username": xUsername,
|
|
@@ -1683,11 +2451,10 @@ export function updateAgentV1AgentsAgentIdPatch({ agentId, isPublic, xAccountId,
|
|
|
1683
2451
|
})));
|
|
1684
2452
|
}
|
|
1685
2453
|
/**
|
|
1686
|
-
*
|
|
2454
|
+
* List Versions Of Agent Core
|
|
1687
2455
|
*/
|
|
1688
|
-
export function
|
|
1689
|
-
|
|
1690
|
-
isPublic?: boolean;
|
|
2456
|
+
export function listVersionsOfAgentCoreV1AgentsAgentCoreIdVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2457
|
+
agentCoreId: string;
|
|
1691
2458
|
xAccountId?: string | null;
|
|
1692
2459
|
xUsername?: string | null;
|
|
1693
2460
|
xUserId?: string | null;
|
|
@@ -1695,17 +2462,15 @@ export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId
|
|
|
1695
2462
|
authorization: string;
|
|
1696
2463
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1697
2464
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1698
|
-
status:
|
|
2465
|
+
status: 200;
|
|
2466
|
+
data: ListAgentVersionResponse[];
|
|
1699
2467
|
} | {
|
|
1700
2468
|
status: 404;
|
|
1701
2469
|
} | {
|
|
1702
2470
|
status: 422;
|
|
1703
2471
|
data: HttpValidationError;
|
|
1704
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1705
|
-
is_public: isPublic
|
|
1706
|
-
}))}`, {
|
|
2472
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, {
|
|
1707
2473
|
...opts,
|
|
1708
|
-
method: "DELETE",
|
|
1709
2474
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1710
2475
|
"x-account-id": xAccountId,
|
|
1711
2476
|
"x-username": xUsername,
|
|
@@ -1716,10 +2481,12 @@ export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId
|
|
|
1716
2481
|
}));
|
|
1717
2482
|
}
|
|
1718
2483
|
/**
|
|
1719
|
-
*
|
|
2484
|
+
* Delete Version
|
|
1720
2485
|
*/
|
|
1721
|
-
export function
|
|
1722
|
-
|
|
2486
|
+
export function deleteVersionV1AgentsAgentCoreIdVersionsVersionNumberDelete({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2487
|
+
agentCoreId: string;
|
|
2488
|
+
versionNumber: number;
|
|
2489
|
+
isPublic?: boolean;
|
|
1723
2490
|
xAccountId?: string | null;
|
|
1724
2491
|
xUsername?: string | null;
|
|
1725
2492
|
xUserId?: string | null;
|
|
@@ -1733,9 +2500,11 @@ export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xU
|
|
|
1733
2500
|
} | {
|
|
1734
2501
|
status: 422;
|
|
1735
2502
|
data: HttpValidationError;
|
|
1736
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2503
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}${QS.query(QS.explode({
|
|
2504
|
+
is_public: isPublic
|
|
2505
|
+
}))}`, {
|
|
1737
2506
|
...opts,
|
|
1738
|
-
method: "
|
|
2507
|
+
method: "DELETE",
|
|
1739
2508
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1740
2509
|
"x-account-id": xAccountId,
|
|
1741
2510
|
"x-username": xUsername,
|
|
@@ -1746,10 +2515,12 @@ export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xU
|
|
|
1746
2515
|
}));
|
|
1747
2516
|
}
|
|
1748
2517
|
/**
|
|
1749
|
-
*
|
|
2518
|
+
* Patch Version Recommended
|
|
1750
2519
|
*/
|
|
1751
|
-
export function
|
|
1752
|
-
|
|
2520
|
+
export function patchVersionRecommendedV1AgentsAgentCoreIdVersionsVersionNumberPatch({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2521
|
+
agentCoreId: string;
|
|
2522
|
+
versionNumber: number;
|
|
2523
|
+
isPublic?: boolean;
|
|
1753
2524
|
xAccountId?: string | null;
|
|
1754
2525
|
xUsername?: string | null;
|
|
1755
2526
|
xUserId?: string | null;
|
|
@@ -1757,15 +2528,18 @@ export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountI
|
|
|
1757
2528
|
authorization: string;
|
|
1758
2529
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1759
2530
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1760
|
-
status:
|
|
2531
|
+
status: 200;
|
|
2532
|
+
data: AgentVersionResponse;
|
|
1761
2533
|
} | {
|
|
1762
2534
|
status: 404;
|
|
1763
2535
|
} | {
|
|
1764
2536
|
status: 422;
|
|
1765
2537
|
data: HttpValidationError;
|
|
1766
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2538
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}${QS.query(QS.explode({
|
|
2539
|
+
is_public: isPublic
|
|
2540
|
+
}))}`, {
|
|
1767
2541
|
...opts,
|
|
1768
|
-
method: "
|
|
2542
|
+
method: "PATCH",
|
|
1769
2543
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1770
2544
|
"x-account-id": xAccountId,
|
|
1771
2545
|
"x-username": xUsername,
|
|
@@ -1776,11 +2550,11 @@ export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountI
|
|
|
1776
2550
|
}));
|
|
1777
2551
|
}
|
|
1778
2552
|
/**
|
|
1779
|
-
* Fork Agent
|
|
2553
|
+
* Fork Agent Version
|
|
1780
2554
|
*/
|
|
1781
|
-
export function
|
|
1782
|
-
|
|
1783
|
-
|
|
2555
|
+
export function forkAgentVersionV1AgentsAgentCoreIdVersionsVersionNumberForkPost({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
2556
|
+
agentCoreId: string;
|
|
2557
|
+
versionNumber: number;
|
|
1784
2558
|
xAccountId?: string | null;
|
|
1785
2559
|
xUsername?: string | null;
|
|
1786
2560
|
xUserId?: string | null;
|
|
@@ -1790,15 +2564,13 @@ export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId
|
|
|
1790
2564
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1791
2565
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1792
2566
|
status: 201;
|
|
1793
|
-
data:
|
|
2567
|
+
data: AgentCoreWithSingleVersionResponse;
|
|
1794
2568
|
} | {
|
|
1795
2569
|
status: 404;
|
|
1796
2570
|
} | {
|
|
1797
2571
|
status: 422;
|
|
1798
2572
|
data: HttpValidationError;
|
|
1799
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1800
|
-
is_public: isPublic
|
|
1801
|
-
}))}`, oazapfts.json({
|
|
2573
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}/fork`, oazapfts.json({
|
|
1802
2574
|
...opts,
|
|
1803
2575
|
method: "POST",
|
|
1804
2576
|
body: forkAgentRequest,
|
|
@@ -1812,28 +2584,26 @@ export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId
|
|
|
1812
2584
|
})));
|
|
1813
2585
|
}
|
|
1814
2586
|
/**
|
|
1815
|
-
*
|
|
2587
|
+
* Find By Agent Core Id With All Versions
|
|
1816
2588
|
*/
|
|
1817
|
-
export function
|
|
1818
|
-
|
|
2589
|
+
export function findByAgentCoreIdWithAllVersionsV1AgentsAgentCoreIdAllVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2590
|
+
agentCoreId: string;
|
|
1819
2591
|
xAccountId?: string | null;
|
|
1820
2592
|
xUsername?: string | null;
|
|
1821
2593
|
xUserId?: string | null;
|
|
1822
2594
|
xUserFullName?: string | null;
|
|
1823
2595
|
authorization: string;
|
|
1824
|
-
publishAgentRequest: PublishAgentRequest;
|
|
1825
2596
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1826
2597
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1827
|
-
status:
|
|
2598
|
+
status: 200;
|
|
2599
|
+
data: AgentCoreResponse;
|
|
1828
2600
|
} | {
|
|
1829
2601
|
status: 404;
|
|
1830
2602
|
} | {
|
|
1831
2603
|
status: 422;
|
|
1832
2604
|
data: HttpValidationError;
|
|
1833
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2605
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/all-versions`, {
|
|
1834
2606
|
...opts,
|
|
1835
|
-
method: "POST",
|
|
1836
|
-
body: publishAgentRequest,
|
|
1837
2607
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1838
2608
|
"x-account-id": xAccountId,
|
|
1839
2609
|
"x-username": xUsername,
|
|
@@ -1841,13 +2611,17 @@ export function publishAgentV1AgentsAgentIdPublishPost({ agentId, xAccountId, xU
|
|
|
1841
2611
|
"x-user-full-name": xUserFullName,
|
|
1842
2612
|
authorization
|
|
1843
2613
|
})
|
|
1844
|
-
}))
|
|
2614
|
+
}));
|
|
1845
2615
|
}
|
|
1846
2616
|
/**
|
|
1847
|
-
*
|
|
2617
|
+
* List Agents
|
|
1848
2618
|
*/
|
|
1849
|
-
export function
|
|
1850
|
-
|
|
2619
|
+
export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2620
|
+
name?: string | null;
|
|
2621
|
+
slug?: string | null;
|
|
2622
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
2623
|
+
size?: number;
|
|
2624
|
+
page?: number;
|
|
1851
2625
|
xAccountId?: string | null;
|
|
1852
2626
|
xUsername?: string | null;
|
|
1853
2627
|
xUserId?: string | null;
|
|
@@ -1855,15 +2629,21 @@ export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername,
|
|
|
1855
2629
|
authorization: string;
|
|
1856
2630
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1857
2631
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1858
|
-
status:
|
|
2632
|
+
status: 200;
|
|
2633
|
+
data: ListAgentResponseV2[];
|
|
1859
2634
|
} | {
|
|
1860
2635
|
status: 404;
|
|
1861
2636
|
} | {
|
|
1862
2637
|
status: 422;
|
|
1863
2638
|
data: HttpValidationError;
|
|
1864
|
-
}>(`/
|
|
2639
|
+
}>(`/v2/agents${QS.query(QS.explode({
|
|
2640
|
+
name,
|
|
2641
|
+
slug,
|
|
2642
|
+
visibility,
|
|
2643
|
+
size,
|
|
2644
|
+
page
|
|
2645
|
+
}))}`, {
|
|
1865
2646
|
...opts,
|
|
1866
|
-
method: "POST",
|
|
1867
2647
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1868
2648
|
"x-account-id": xAccountId,
|
|
1869
2649
|
"x-username": xUsername,
|
|
@@ -1874,26 +2654,31 @@ export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername,
|
|
|
1874
2654
|
}));
|
|
1875
2655
|
}
|
|
1876
2656
|
/**
|
|
1877
|
-
*
|
|
2657
|
+
* Create Agent
|
|
1878
2658
|
*/
|
|
1879
|
-
export function
|
|
1880
|
-
|
|
2659
|
+
export function createAgentV2AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequestV2 }: {
|
|
2660
|
+
isPublic?: boolean;
|
|
1881
2661
|
xAccountId?: string | null;
|
|
1882
2662
|
xUsername?: string | null;
|
|
1883
2663
|
xUserId?: string | null;
|
|
1884
2664
|
xUserFullName?: string | null;
|
|
1885
2665
|
authorization: string;
|
|
2666
|
+
newAgentRequestV2: NewAgentRequestV2;
|
|
1886
2667
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1887
2668
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1888
|
-
status:
|
|
2669
|
+
status: 201;
|
|
2670
|
+
data: CreatedResponse;
|
|
1889
2671
|
} | {
|
|
1890
2672
|
status: 404;
|
|
1891
2673
|
} | {
|
|
1892
2674
|
status: 422;
|
|
1893
2675
|
data: HttpValidationError;
|
|
1894
|
-
}>(`/
|
|
2676
|
+
}>(`/v2/agents${QS.query(QS.explode({
|
|
2677
|
+
is_public: isPublic
|
|
2678
|
+
}))}`, oazapfts.json({
|
|
1895
2679
|
...opts,
|
|
1896
|
-
method: "
|
|
2680
|
+
method: "POST",
|
|
2681
|
+
body: newAgentRequestV2,
|
|
1897
2682
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1898
2683
|
"x-account-id": xAccountId,
|
|
1899
2684
|
"x-username": xUsername,
|
|
@@ -1901,29 +2686,31 @@ export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ k
|
|
|
1901
2686
|
"x-user-full-name": xUserFullName,
|
|
1902
2687
|
authorization
|
|
1903
2688
|
})
|
|
1904
|
-
}));
|
|
2689
|
+
})));
|
|
1905
2690
|
}
|
|
1906
2691
|
/**
|
|
1907
|
-
*
|
|
2692
|
+
* Search Agents
|
|
1908
2693
|
*/
|
|
1909
|
-
export function
|
|
1910
|
-
ksId: string;
|
|
2694
|
+
export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequestV2 }: {
|
|
1911
2695
|
xAccountId?: string | null;
|
|
1912
2696
|
xUsername?: string | null;
|
|
1913
2697
|
xUserId?: string | null;
|
|
1914
2698
|
xUserFullName?: string | null;
|
|
1915
2699
|
authorization: string;
|
|
2700
|
+
searchAgentsRequestV2: SearchAgentsRequestV2;
|
|
1916
2701
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1917
2702
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1918
2703
|
status: 200;
|
|
1919
|
-
data:
|
|
2704
|
+
data: ListAgentResponseV2[];
|
|
1920
2705
|
} | {
|
|
1921
2706
|
status: 404;
|
|
1922
2707
|
} | {
|
|
1923
2708
|
status: 422;
|
|
1924
2709
|
data: HttpValidationError;
|
|
1925
|
-
}>(
|
|
2710
|
+
}>("/v2/agents/search", oazapfts.json({
|
|
1926
2711
|
...opts,
|
|
2712
|
+
method: "POST",
|
|
2713
|
+
body: searchAgentsRequestV2,
|
|
1927
2714
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1928
2715
|
"x-account-id": xAccountId,
|
|
1929
2716
|
"x-username": xUsername,
|
|
@@ -1931,18 +2718,20 @@ export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId,
|
|
|
1931
2718
|
"x-user-full-name": xUserFullName,
|
|
1932
2719
|
authorization
|
|
1933
2720
|
})
|
|
1934
|
-
}));
|
|
2721
|
+
})));
|
|
1935
2722
|
}
|
|
1936
2723
|
/**
|
|
1937
|
-
*
|
|
2724
|
+
* Update Agent
|
|
1938
2725
|
*/
|
|
1939
|
-
export function
|
|
2726
|
+
export function updateAgentV2AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequestV2 }: {
|
|
1940
2727
|
agentId: string;
|
|
2728
|
+
isPublic?: boolean;
|
|
1941
2729
|
xAccountId?: string | null;
|
|
1942
2730
|
xUsername?: string | null;
|
|
1943
2731
|
xUserId?: string | null;
|
|
1944
2732
|
xUserFullName?: string | null;
|
|
1945
2733
|
authorization: string;
|
|
2734
|
+
updateAgentRequestV2: UpdateAgentRequestV2;
|
|
1946
2735
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1947
2736
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1948
2737
|
status: 204;
|
|
@@ -1951,9 +2740,12 @@ export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId
|
|
|
1951
2740
|
} | {
|
|
1952
2741
|
status: 422;
|
|
1953
2742
|
data: HttpValidationError;
|
|
1954
|
-
}>(`/
|
|
2743
|
+
}>(`/v2/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
2744
|
+
is_public: isPublic
|
|
2745
|
+
}))}`, oazapfts.json({
|
|
1955
2746
|
...opts,
|
|
1956
|
-
method: "
|
|
2747
|
+
method: "PATCH",
|
|
2748
|
+
body: updateAgentRequestV2,
|
|
1957
2749
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1958
2750
|
"x-account-id": xAccountId,
|
|
1959
2751
|
"x-username": xUsername,
|
|
@@ -1961,17 +2753,14 @@ export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId
|
|
|
1961
2753
|
"x-user-full-name": xUserFullName,
|
|
1962
2754
|
authorization
|
|
1963
2755
|
})
|
|
1964
|
-
}));
|
|
2756
|
+
})));
|
|
1965
2757
|
}
|
|
1966
2758
|
/**
|
|
1967
|
-
*
|
|
2759
|
+
* Find By Agent Core Id
|
|
1968
2760
|
*/
|
|
1969
|
-
export function
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1973
|
-
size?: number;
|
|
1974
|
-
page?: number;
|
|
2761
|
+
export function findByAgentCoreIdV2AgentsAgentCoreIdGet({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2762
|
+
agentCoreId: string;
|
|
2763
|
+
versionNumber?: number | null;
|
|
1975
2764
|
xAccountId?: string | null;
|
|
1976
2765
|
xUsername?: string | null;
|
|
1977
2766
|
xUserId?: string | null;
|
|
@@ -1980,18 +2769,14 @@ export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
1980
2769
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1981
2770
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1982
2771
|
status: 200;
|
|
1983
|
-
data:
|
|
2772
|
+
data: AgentCoreWithSingleVersionResponse2;
|
|
1984
2773
|
} | {
|
|
1985
2774
|
status: 404;
|
|
1986
2775
|
} | {
|
|
1987
2776
|
status: 422;
|
|
1988
2777
|
data: HttpValidationError;
|
|
1989
|
-
}>(`/v2/agents${QS.query(QS.explode({
|
|
1990
|
-
|
|
1991
|
-
slug,
|
|
1992
|
-
visibility,
|
|
1993
|
-
size,
|
|
1994
|
-
page
|
|
2778
|
+
}>(`/v2/agents/${encodeURIComponent(agentCoreId)}${QS.query(QS.explode({
|
|
2779
|
+
version_number: versionNumber
|
|
1995
2780
|
}))}`, {
|
|
1996
2781
|
...opts,
|
|
1997
2782
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -2004,28 +2789,30 @@ export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
2004
2789
|
}));
|
|
2005
2790
|
}
|
|
2006
2791
|
/**
|
|
2007
|
-
*
|
|
2792
|
+
* List Agents
|
|
2008
2793
|
*/
|
|
2009
|
-
export function
|
|
2794
|
+
export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2795
|
+
filters: ListAgentRequestV4;
|
|
2796
|
+
isPublic?: boolean;
|
|
2010
2797
|
xAccountId?: string | null;
|
|
2011
2798
|
xUsername?: string | null;
|
|
2012
2799
|
xUserId?: string | null;
|
|
2013
2800
|
xUserFullName?: string | null;
|
|
2014
2801
|
authorization: string;
|
|
2015
|
-
searchAgentsRequest: SearchAgentsRequest;
|
|
2016
2802
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2017
2803
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2018
2804
|
status: 200;
|
|
2019
|
-
data:
|
|
2805
|
+
data: PaginatedResponseAgentResponseV3;
|
|
2020
2806
|
} | {
|
|
2021
2807
|
status: 404;
|
|
2022
2808
|
} | {
|
|
2023
2809
|
status: 422;
|
|
2024
2810
|
data: HttpValidationError;
|
|
2025
|
-
}>(
|
|
2811
|
+
}>(`/v3/agents${QS.query(QS.explode({
|
|
2812
|
+
filters,
|
|
2813
|
+
is_public: isPublic
|
|
2814
|
+
}))}`, {
|
|
2026
2815
|
...opts,
|
|
2027
|
-
method: "POST",
|
|
2028
|
-
body: searchAgentsRequest,
|
|
2029
2816
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2030
2817
|
"x-account-id": xAccountId,
|
|
2031
2818
|
"x-username": xUsername,
|
|
@@ -2033,13 +2820,13 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
2033
2820
|
"x-user-full-name": xUserFullName,
|
|
2034
2821
|
authorization
|
|
2035
2822
|
})
|
|
2036
|
-
}))
|
|
2823
|
+
}));
|
|
2037
2824
|
}
|
|
2038
2825
|
/**
|
|
2039
|
-
* List
|
|
2826
|
+
* List Agent Core with all versions
|
|
2040
2827
|
*/
|
|
2041
|
-
export function
|
|
2042
|
-
filters:
|
|
2828
|
+
export function listAgentsV4AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2829
|
+
filters: ListAgentRequestV4;
|
|
2043
2830
|
isPublic?: boolean;
|
|
2044
2831
|
xAccountId?: string | null;
|
|
2045
2832
|
xUsername?: string | null;
|
|
@@ -2049,13 +2836,13 @@ export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername
|
|
|
2049
2836
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2050
2837
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2051
2838
|
status: 200;
|
|
2052
|
-
data:
|
|
2839
|
+
data: PaginatedResponseListAgentCoreResponse;
|
|
2053
2840
|
} | {
|
|
2054
2841
|
status: 404;
|
|
2055
2842
|
} | {
|
|
2056
2843
|
status: 422;
|
|
2057
2844
|
data: HttpValidationError;
|
|
2058
|
-
}>(`/
|
|
2845
|
+
}>(`/v4/agents${QS.query(QS.explode({
|
|
2059
2846
|
filters,
|
|
2060
2847
|
is_public: isPublic
|
|
2061
2848
|
}))}`, {
|