@stack-spot/portal-network 1.0.0-dev.1768423147036 → 1.0.0-stg.1768484124183

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