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

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.
@@ -175,15 +175,18 @@ export type AgentUsingToolsResponse = {
175
175
  name: string;
176
176
  avatar?: string | null;
177
177
  };
178
- export type AssignCustomToolsAgentRequest = {
179
- toolkit_id: string;
180
- tools_ids: string[];
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 AssignToolsToAgentRequest = {
183
- builtin_tool_ids?: string[] | null;
184
- custom_tools?: AssignCustomToolsAgentRequest[] | null;
185
- sub_agents_ids?: string[] | null;
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 Function = {
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": Function;
249
+ "function": Function2;
238
250
  };
239
251
  export type ExecuteAgentToolRequest = {
240
252
  arguments?: string | null;
@@ -252,6 +264,7 @@ export type KnowledgeSourcesConfig = {
252
264
  similarity_function?: string;
253
265
  post_processing?: boolean;
254
266
  };
267
+ export type AgentVersionStatus = "draft" | "published" | "deprecated";
255
268
  export type ListAgentResponse = {
256
269
  id: string;
257
270
  name: string;
@@ -262,6 +275,9 @@ export type ListAgentResponse = {
262
275
  avatar: string | null;
263
276
  suggested_prompts: string[] | null;
264
277
  knowledge_sources_config: KnowledgeSourcesConfig;
278
+ version_number: number;
279
+ status: AgentVersionStatus;
280
+ is_recommended: boolean;
265
281
  has_multiagent_tool?: boolean;
266
282
  "type"?: string;
267
283
  system_prompt?: string;
@@ -277,6 +293,10 @@ export type KnowledgeSourcesConfigRequest = {
277
293
  knowledge_sources?: string[] | null;
278
294
  sealed?: boolean | null;
279
295
  };
296
+ export type AssignCustomToolsAgentRequest = {
297
+ toolkit_id: string;
298
+ tools_ids: string[];
299
+ };
280
300
  export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
281
301
  export type AgentMemory = "vector" | "buffer";
282
302
  export type PlannerType = "simple" | "tool_oriented";
@@ -304,6 +324,7 @@ export type NewAgentRequest = {
304
324
  /** Custom tools to assign to the agent */
305
325
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
306
326
  mcp_toolkit_ids?: string[] | null;
327
+ /** Multi-agents assignment to the agent */
307
328
  sub_agents_ids?: string[] | null;
308
329
  detail_mode?: boolean;
309
330
  structured_output?: string | null;
@@ -320,13 +341,21 @@ export type NewAgentRequest = {
320
341
  planner_type?: PlannerType | null;
321
342
  /** Maximum number of LLM interactions allowed for the agent when using simple planner */
322
343
  max_llm_interactions?: number | null;
344
+ /** LLM planner model name */
345
+ planner_model_name?: string | null;
346
+ /** LLM planner model id */
347
+ planner_model_id?: string | null;
323
348
  };
324
349
  export type SearchAgentsRequest = {
325
350
  /** Agent ids to filter for */
326
351
  ids: string[];
327
352
  };
353
+ export type AssignMultiAgentVersionRequest = {
354
+ agent_core_id: string;
355
+ version_number?: number | null;
356
+ };
328
357
  export type WorkspaceForkRequest = {
329
- agent_ids: string[];
358
+ agents: AssignMultiAgentVersionRequest[];
330
359
  member_id: string;
331
360
  };
332
361
  export type AgentItemFork = {
@@ -366,7 +395,7 @@ export type ListMultiAgentsResponse = {
366
395
  visibility_level: VisibilityLevelEnum;
367
396
  has_multiagent_tool: boolean;
368
397
  };
369
- export type KnowledgeSourceDetails = {
398
+ export type KnowledgeSourceDetailsResponse = {
370
399
  id: string;
371
400
  slug: string;
372
401
  name: string;
@@ -374,139 +403,103 @@ export type KnowledgeSourceDetails = {
374
403
  "type": string;
375
404
  creator?: string | null;
376
405
  "default": boolean;
377
- visibility_level: VisibilityLevelEnum;
406
+ visibility_level: string;
378
407
  model_name: string;
379
408
  username?: string | null;
380
409
  };
381
- export type KnowledgeSourceConfigModel = {
382
- similarity_function: SimilarityFunctionEnum;
410
+ export type KnowledgeSourcesConfigResponse = {
411
+ knowledge_sources: string[];
383
412
  max_number_of_kos: number;
384
413
  relevancy_threshold: number;
414
+ similarity_function: string;
385
415
  post_processing: boolean;
386
- knowledge_sources: string[];
387
- knowledge_sources_details: KnowledgeSourceDetails[];
388
416
  sealed: boolean;
417
+ knowledge_sources_details?: KnowledgeSourceDetailsResponse[] | null;
389
418
  created_by?: string | null;
390
419
  created_at?: string | null;
391
420
  updated_by?: string | null;
392
421
  updated_at?: string | null;
393
422
  };
394
- export type BuiltinToolDto = {
395
- id: string;
396
- name: string;
397
- description: string;
398
- toolkit_id: string;
423
+ export type LlmSettingsResponse = {
424
+ property_key: string;
425
+ property_value: string;
426
+ property_type: string;
399
427
  };
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 = {
428
+ export type AgentLlmModelResponse = {
476
429
  model_id: string;
477
430
  model_name: string;
478
- is_default?: boolean;
431
+ is_default: boolean;
479
432
  };
480
- export type AgentModel = {
433
+ export type FindByIdAgentResponse = {
434
+ /** Agent core ID */
481
435
  id: string;
436
+ /** Agent name */
482
437
  name: string;
438
+ /** Agent unique slug */
483
439
  slug: string;
440
+ /** Agent description */
484
441
  description?: string | null;
485
- system_prompt: string;
486
- visibility_level: string;
442
+ /** Agent avatar image URL */
487
443
  avatar?: string | null;
444
+ /** Agent visibility level */
445
+ visibility_level: string;
446
+ /** Agent type */
488
447
  "type": string;
489
- conversation_starter?: string[] | null;
448
+ /** Whether agent is use-only (hides implementation) */
490
449
  use_only: boolean;
450
+ /** Whether agent is internal */
451
+ is_internal: boolean;
452
+ /** Whether detail mode is enabled */
491
453
  detail_mode: boolean;
454
+ /** Agent execution mode */
492
455
  mode: AgentMode;
493
- structured_output?: {
494
- [key: string]: any;
495
- } | null;
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 */
496
469
  model_id?: string | null;
470
+ /** Default LLM model name */
497
471
  model_name?: string | null;
498
- knowledge_sources_config?: KnowledgeSourceConfigModel | null;
499
- toolkits?: AgentToolsDto | null;
500
- settings?: LlmSettingsModel[];
501
- is_sub_agent?: boolean | 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 */
502
496
  created_by?: string | null;
497
+ /** Creation timestamp */
503
498
  created_at?: string | null;
499
+ /** Last updater username */
504
500
  updated_by?: string | null;
501
+ /** Last update timestamp */
505
502
  updated_at?: string | null;
506
- available_llm_models?: AgentLlmModelDto[];
507
- memory?: AgentMemory;
508
- planner_type?: PlannerType | null;
509
- max_llm_interactions?: number | null;
510
503
  };
511
504
  export type UpdateAgentRequest = {
512
505
  use_only?: boolean | null;
@@ -524,12 +517,15 @@ export type UpdateAgentRequest = {
524
517
  avatar?: string | null;
525
518
  /** Agent suggested prompt */
526
519
  suggested_prompts?: string[];
520
+ /** agent status */
521
+ status?: AgentVersionStatus | null;
527
522
  /** System prompt */
528
523
  system_prompt?: string | null;
529
524
  /** Agent type */
530
525
  "type"?: AgentType | null;
531
526
  knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
532
527
  builtin_tools_ids?: string[];
528
+ /** Multi-agents assignment to the agent */
533
529
  sub_agents_ids?: string[];
534
530
  /** Custom tools to assign to the agent */
535
531
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
@@ -549,6 +545,10 @@ export type UpdateAgentRequest = {
549
545
  planner_type?: PlannerType;
550
546
  /** Maximum number of LLM interactions allowed for the agent when using simple planner */
551
547
  max_llm_interactions?: number | null;
548
+ /** LLM planner model name */
549
+ planner_model_name?: string | null;
550
+ /** LLM planner model id */
551
+ planner_model_id?: string | null;
552
552
  };
553
553
  export type ForkAgentRequest = {
554
554
  /** Agent slug to fork */
@@ -558,6 +558,144 @@ 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;
561
699
  };
562
700
  export type ListAgentResponseV2 = {
563
701
  id: string;
@@ -568,13 +706,225 @@ export type ListAgentResponseV2 = {
568
706
  visibility_level: string;
569
707
  avatar: string | null;
570
708
  conversation_starter: string[] | null;
571
- knowledge_sources_config: KnowledgeSourcesConfig;
709
+ knowledge_sources_config: KnowledgeSourcesConfigResponse2;
572
710
  "type"?: string;
573
711
  system_prompt?: string;
574
712
  creator_name?: string;
713
+ version_number: number;
714
+ status: AgentVersionStatus;
715
+ is_recommended: boolean;
716
+ };
717
+ export type NewAgentRequestV2 = {
718
+ /** LLM model name */
719
+ model_name?: string | null;
720
+ /** LLM model id */
721
+ model_id?: string | null;
722
+ /** Agent name */
723
+ name: string;
724
+ /** Agent unique slug */
725
+ slug: string;
726
+ /** Agent description */
727
+ description?: string | null;
728
+ /** Agent avatar image */
729
+ avatar?: string | null;
730
+ /** Agent suggested prompt */
731
+ suggested_prompts?: string[];
732
+ /** System prompt */
733
+ system_prompt?: string | null;
734
+ /** Agent type */
735
+ "type": AgentType;
736
+ knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
737
+ builtin_tools_ids?: string[];
738
+ /** Custom tools to assign to the agent */
739
+ custom_tools?: AssignCustomToolsAgentRequest[] | null;
740
+ /** Multi-agents assignment to the agent */
741
+ sub_agents_ids?: AssignMultiAgentVersionRequest[] | null;
742
+ mcp_toolkit_ids?: string[] | null;
743
+ detail_mode?: boolean;
744
+ structured_output?: string | null;
745
+ llm_settings?: {
746
+ [key: string]: any;
747
+ } | null;
748
+ /** Agent mode */
749
+ mode?: AgentMode;
750
+ /** Agent memory */
751
+ memory?: AgentMemory;
752
+ /** Available models for this particular agent */
753
+ available_models_ids?: string[];
754
+ /** Agent planner type */
755
+ planner_type?: PlannerType | null;
756
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
757
+ max_llm_interactions?: number | null;
758
+ /** LLM planner model name */
759
+ planner_model_name?: string | null;
760
+ /** LLM planner model id */
761
+ planner_model_id?: string | null;
762
+ };
763
+ export type SearchAgentVersionRequest = {
764
+ agent_core_id: string;
765
+ version_number?: number | null;
766
+ };
767
+ export type SearchAgentsRequestV2 = {
768
+ agents: SearchAgentVersionRequest[];
769
+ };
770
+ export type UpdateAgentRequestV2 = {
771
+ use_only?: boolean | null;
772
+ /** LLM model name */
773
+ model_name?: string | null;
774
+ /** LLM model id */
775
+ model_id?: string | null;
776
+ /** Agent name */
777
+ name?: string | null;
778
+ /** Agent unique slug */
779
+ slug?: string | null;
780
+ /** agent status */
781
+ status?: AgentVersionStatus | null;
782
+ /** Agent description */
783
+ description?: string | null;
784
+ /** Agent avatar image */
785
+ avatar?: string | null;
786
+ /** Agent suggested prompt */
787
+ suggested_prompts?: string[];
788
+ /** System prompt */
789
+ system_prompt?: string | null;
790
+ /** Agent type */
791
+ "type"?: AgentType | null;
792
+ knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
793
+ builtin_tools_ids?: string[];
794
+ /** Multi-agents assignment to the agent */
795
+ sub_agents_ids?: AssignMultiAgentVersionRequest[];
796
+ /** Custom tools to assign to the agent */
797
+ custom_tools?: AssignCustomToolsAgentRequest[] | null;
798
+ mcp_toolkit_ids?: string[] | null;
799
+ detail_mode?: boolean | null;
800
+ structured_output?: string | null;
801
+ llm_settings?: {
802
+ [key: string]: any;
803
+ } | null;
804
+ /** Agent mode */
805
+ mode?: AgentMode | null;
806
+ /** Available models for this particular agent */
807
+ available_models_ids?: string[];
808
+ /** Agent memory */
809
+ memory?: AgentMemory;
810
+ /** Agent planner type */
811
+ planner_type?: PlannerType;
812
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
813
+ max_llm_interactions?: number | null;
814
+ /** LLM planner model name */
815
+ planner_model_name?: string | null;
816
+ /** LLM planner model id */
817
+ planner_model_id?: string | null;
818
+ };
819
+ export type CustomToolkitResponse2 = {
820
+ id: string;
821
+ name: string;
822
+ description?: string | null;
823
+ avatar?: string | null;
824
+ visibility_level: string;
825
+ creator_name: string | null;
826
+ toolkit_type?: ToolkitType | null;
827
+ tools: CustomToolkitToolResponse[];
828
+ secret_id?: string | null;
829
+ secrets?: string[] | null;
830
+ is_usable_by_others: boolean;
831
+ url?: string | null;
832
+ };
833
+ export type AgentToolsResponse2 = {
834
+ builtin_toolkits?: BuiltinToolkitResponse[];
835
+ custom_toolkits?: CustomToolkitResponse2[];
836
+ mcp_toolkits?: ToolkitMcpResponse[];
837
+ multi_agent_toolkits?: MultiAgentToolkitResponse[];
838
+ };
839
+ export type AgentVersionResponse2 = {
840
+ /** System prompt for the agent version */
841
+ system_prompt: string;
842
+ /** Whether detail mode is enabled for responses */
843
+ detail_mode: boolean;
844
+ /** Whether version is internal-only */
845
+ is_internal: boolean;
846
+ /** Agent execution mode (autonomous, orchestrator, etc.) */
847
+ mode: AgentMode;
848
+ /** Memory type used by the agent */
849
+ memory: string;
850
+ /** Version status (draft, published, archived) */
851
+ status: AgentVersionStatus;
852
+ /** Sequential version number */
853
+ version_number: number;
854
+ /** Whether this is the recommended version for use */
855
+ is_recommended: boolean;
856
+ /** Whether this is the most recent version */
857
+ is_latest: boolean;
858
+ /** Base version ID used for creating this version */
859
+ base_version_id?: string | null;
860
+ /** Original agent version ID if this is a fork */
861
+ origin_fork_id?: string | null;
862
+ /** LLM model ID used by this version */
863
+ model_id?: string | null;
864
+ /** LLM model name used by this version */
865
+ model_name?: string | null;
866
+ /** Suggested conversation starters */
867
+ conversation_starter?: string[] | null;
868
+ /** JSON schema for structured output format */
869
+ structured_output?: string | null;
870
+ planner_type?: PlannerType | null;
871
+ /** Maximum number of LLM interactions */
872
+ max_llm_interactions?: number | null;
873
+ /** Default LLM planner model ID */
874
+ planner_model_id?: string | null;
875
+ /** Default LLM planner model name */
876
+ planner_model_name?: string | null;
877
+ /** Knowledge sources configuration for RAG capabilities */
878
+ knowledge_sources_config?: KnowledgeSourcesConfigResponse2 | null;
879
+ /** List of tools (builtin) assigned to this version */
880
+ toolkits?: AgentToolsResponse2;
881
+ /** LLM-specific settings for this version */
882
+ settings?: LlmSettingsResponse[];
883
+ /** Available LLM models for this version */
884
+ available_llm_models?: AgentLlmModelResponse[];
885
+ /** Username of version creator */
886
+ created_by?: string | null;
887
+ /** Version creation timestamp */
888
+ created_at?: string | null;
889
+ /** Username of last updater */
890
+ updated_by?: string | null;
891
+ /** Last update timestamp */
892
+ updated_at?: string | null;
893
+ };
894
+ export type AgentCoreWithSingleVersionResponse = {
895
+ /** Agent core unique identifier (ULID format) */
896
+ id: string;
897
+ /** Agent display name */
898
+ name: string;
899
+ /** Agent unique slug for URL-friendly identification */
900
+ slug: string;
901
+ /** Agent core type */
902
+ "type": string;
903
+ /** Whether agent is use-only (hides implementation) */
904
+ use_only: boolean;
905
+ /** Detailed description of the agent's purpose and capabilities */
906
+ description?: string | null;
907
+ /** URL or path to agent's avatar image */
908
+ avatar?: string | null;
909
+ /** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
910
+ visibility_level: string;
911
+ /** Specific or recommend version associated with this agent core */
912
+ version: AgentVersionResponse2;
913
+ /** Whether the current user has marked this agent as favorite */
914
+ is_favorite?: boolean;
915
+ /** Whether this agent was recently used by the current user */
916
+ is_recently_used?: boolean;
917
+ /** Username or identifier of the user who created this agent */
918
+ created_by?: string | null;
919
+ /** Timestamp when the agent was created (ISO 8601 format) */
920
+ created_at?: string | null;
921
+ /** Username or identifier of the user who last updated this agent */
922
+ updated_by?: string | null;
923
+ /** Timestamp of the last update (ISO 8601 format) */
924
+ updated_at?: string | null;
575
925
  };
576
926
  export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
577
- export type ListAgentRequestV3 = {
927
+ export type ListAgentRequestV4 = {
578
928
  /** Agent name to filter the list */
579
929
  name?: string | null;
580
930
  /** Agent slug to filter the list */
@@ -600,7 +950,7 @@ export type AgentResponseV3 = {
600
950
  slug: string;
601
951
  created_by: string | null;
602
952
  created_at: string | null;
603
- visibility_level: string;
953
+ visibility_level: AgentVisibilityLevelEnum | VisibilityLevelEnum;
604
954
  avatar: string | null;
605
955
  suggested_prompts: string[] | null;
606
956
  knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
@@ -610,11 +960,35 @@ export type AgentResponseV3 = {
610
960
  creator_name?: string;
611
961
  is_favorite?: boolean;
612
962
  is_recently_used?: boolean;
963
+ version_number: number;
964
+ status: AgentVersionStatus;
965
+ is_recommended: boolean;
613
966
  };
614
967
  export type PaginatedResponseAgentResponseV3 = {
615
968
  total_pages: number;
616
969
  items: AgentResponseV3[];
617
970
  };
971
+ export type ListAgentVersionResponse2 = {
972
+ version_number: number;
973
+ status: AgentVersionStatus;
974
+ is_recommended: boolean;
975
+ };
976
+ export type ListAgentCoreResponse = {
977
+ id: string;
978
+ name: string;
979
+ slug: string;
980
+ visibility_level: string;
981
+ avatar: string | null;
982
+ created_by: string | null;
983
+ created_at: string | null;
984
+ is_favorite?: boolean;
985
+ is_recently_used?: boolean;
986
+ version: ListAgentVersionResponse2;
987
+ };
988
+ export type PaginatedResponseListAgentCoreResponse = {
989
+ total_pages: number;
990
+ items: ListAgentCoreResponse[];
991
+ };
618
992
  export type InternalListToolkitsRequest = {
619
993
  /** List of toolkit IDs to retrieve */
620
994
  toolkit_ids: string[];
@@ -1164,46 +1538,12 @@ export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkit
1164
1538
  })
1165
1539
  })));
1166
1540
  }
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
- }
1202
1541
  /**
1203
1542
  * List Tools
1204
1543
  */
1205
- export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1544
+ export function listToolsV1AgentsAgentIdToolsGet({ agentId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1206
1545
  agentId: string;
1546
+ versionNumber?: number | null;
1207
1547
  isPublic?: boolean;
1208
1548
  xAccountId?: string | null;
1209
1549
  xUsername?: string | null;
@@ -1220,6 +1560,7 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
1220
1560
  status: 422;
1221
1561
  data: HttpValidationError;
1222
1562
  }>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
1563
+ version_number: versionNumber,
1223
1564
  is_public: isPublic
1224
1565
  }))}`, {
1225
1566
  ...opts,
@@ -1232,45 +1573,13 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
1232
1573
  })
1233
1574
  }));
1234
1575
  }
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
- }
1268
1576
  /**
1269
1577
  * List Tools By Agent For Schema
1270
1578
  */
1271
- export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1579
+ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1272
1580
  agentId: string;
1273
1581
  schema: SchemaEnum;
1582
+ versionNumber?: number | null;
1274
1583
  isPublic?: boolean;
1275
1584
  xAccountId?: string | null;
1276
1585
  xUsername?: string | null;
@@ -1289,6 +1598,7 @@ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ a
1289
1598
  status: 422;
1290
1599
  data: HttpValidationError;
1291
1600
  }>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
1601
+ version_number: versionNumber,
1292
1602
  is_public: isPublic
1293
1603
  }))}`, {
1294
1604
  ...opts,
@@ -1415,9 +1725,9 @@ export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUser
1415
1725
  })));
1416
1726
  }
1417
1727
  /**
1418
- * Search Agents
1728
+ * Search Agents By Ids
1419
1729
  */
1420
- export function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
1730
+ export function searchAgentsByIdsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
1421
1731
  xAccountId?: string | null;
1422
1732
  xUsername?: string | null;
1423
1733
  xUserId?: string | null;
@@ -1616,9 +1926,10 @@ export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility,
1616
1926
  /**
1617
1927
  * Get Agent
1618
1928
  */
1619
- export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1929
+ export function getAgentV1AgentsAgentIdGet({ agentId, details, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1620
1930
  agentId: string;
1621
1931
  details?: boolean;
1932
+ versionNumber?: number | null;
1622
1933
  xAccountId?: string | null;
1623
1934
  xUsername?: string | null;
1624
1935
  xUserId?: string | null;
@@ -1627,14 +1938,15 @@ export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUser
1627
1938
  }, opts?: Oazapfts.RequestOpts) {
1628
1939
  return oazapfts.ok(oazapfts.fetchJson<{
1629
1940
  status: 200;
1630
- data: AgentModel;
1941
+ data: FindByIdAgentResponse;
1631
1942
  } | {
1632
1943
  status: 404;
1633
1944
  } | {
1634
1945
  status: 422;
1635
1946
  data: HttpValidationError;
1636
1947
  }>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
1637
- details
1948
+ details,
1949
+ version_number: versionNumber
1638
1950
  }))}`, {
1639
1951
  ...opts,
1640
1952
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -1962,6 +2274,172 @@ export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId
1962
2274
  })
1963
2275
  }));
1964
2276
  }
2277
+ /**
2278
+ * Create Version
2279
+ */
2280
+ export function createVersionV1AgentsAgentCoreIdVersionsPost({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization, createVersionRequest }: {
2281
+ agentCoreId: string;
2282
+ xAccountId?: string | null;
2283
+ xUsername?: string | null;
2284
+ xUserId?: string | null;
2285
+ xUserFullName?: string | null;
2286
+ authorization: string;
2287
+ createVersionRequest: CreateVersionRequest;
2288
+ }, opts?: Oazapfts.RequestOpts) {
2289
+ return oazapfts.ok(oazapfts.fetchJson<{
2290
+ status: 200;
2291
+ data: CreateVersionResponse;
2292
+ } | {
2293
+ status: 201;
2294
+ data: CreateVersionResponse;
2295
+ } | {
2296
+ status: 404;
2297
+ } | {
2298
+ status: 422;
2299
+ data: HttpValidationError;
2300
+ }>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, oazapfts.json({
2301
+ ...opts,
2302
+ method: "POST",
2303
+ body: createVersionRequest,
2304
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2305
+ "x-account-id": xAccountId,
2306
+ "x-username": xUsername,
2307
+ "x-user-id": xUserId,
2308
+ "x-user-full-name": xUserFullName,
2309
+ authorization
2310
+ })
2311
+ })));
2312
+ }
2313
+ /**
2314
+ * List Versions Of Agent Core
2315
+ */
2316
+ export function listVersionsOfAgentCoreV1AgentsAgentCoreIdVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2317
+ agentCoreId: string;
2318
+ xAccountId?: string | null;
2319
+ xUsername?: string | null;
2320
+ xUserId?: string | null;
2321
+ xUserFullName?: string | null;
2322
+ authorization: string;
2323
+ }, opts?: Oazapfts.RequestOpts) {
2324
+ return oazapfts.ok(oazapfts.fetchJson<{
2325
+ status: 200;
2326
+ data: ListAgentVersionResponse[];
2327
+ } | {
2328
+ status: 404;
2329
+ } | {
2330
+ status: 422;
2331
+ data: HttpValidationError;
2332
+ }>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, {
2333
+ ...opts,
2334
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2335
+ "x-account-id": xAccountId,
2336
+ "x-username": xUsername,
2337
+ "x-user-id": xUserId,
2338
+ "x-user-full-name": xUserFullName,
2339
+ authorization
2340
+ })
2341
+ }));
2342
+ }
2343
+ /**
2344
+ * Delete Version
2345
+ */
2346
+ export function deleteVersionV1AgentsAgentCoreIdVersionsVersionNumberDelete({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2347
+ agentCoreId: string;
2348
+ versionNumber: number;
2349
+ isPublic?: boolean;
2350
+ xAccountId?: string | null;
2351
+ xUsername?: string | null;
2352
+ xUserId?: string | null;
2353
+ xUserFullName?: string | null;
2354
+ authorization: string;
2355
+ }, opts?: Oazapfts.RequestOpts) {
2356
+ return oazapfts.ok(oazapfts.fetchJson<{
2357
+ status: 204;
2358
+ } | {
2359
+ status: 404;
2360
+ } | {
2361
+ status: 422;
2362
+ data: HttpValidationError;
2363
+ }>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}${QS.query(QS.explode({
2364
+ is_public: isPublic
2365
+ }))}`, {
2366
+ ...opts,
2367
+ method: "DELETE",
2368
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2369
+ "x-account-id": xAccountId,
2370
+ "x-username": xUsername,
2371
+ "x-user-id": xUserId,
2372
+ "x-user-full-name": xUserFullName,
2373
+ authorization
2374
+ })
2375
+ }));
2376
+ }
2377
+ /**
2378
+ * Patch Version Recommended
2379
+ */
2380
+ export function patchVersionRecommendedV1AgentsAgentCoreIdVersionsVersionNumberPatch({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2381
+ agentCoreId: string;
2382
+ versionNumber: number;
2383
+ xAccountId?: string | null;
2384
+ xUsername?: string | null;
2385
+ xUserId?: string | null;
2386
+ xUserFullName?: string | null;
2387
+ authorization: string;
2388
+ }, opts?: Oazapfts.RequestOpts) {
2389
+ return oazapfts.ok(oazapfts.fetchJson<{
2390
+ status: 200;
2391
+ data: AgentVersionResponse;
2392
+ } | {
2393
+ status: 404;
2394
+ } | {
2395
+ status: 422;
2396
+ data: HttpValidationError;
2397
+ }>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}`, {
2398
+ ...opts,
2399
+ method: "PATCH",
2400
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2401
+ "x-account-id": xAccountId,
2402
+ "x-username": xUsername,
2403
+ "x-user-id": xUserId,
2404
+ "x-user-full-name": xUserFullName,
2405
+ authorization
2406
+ })
2407
+ }));
2408
+ }
2409
+ /**
2410
+ * Fork Agent Version
2411
+ */
2412
+ export function forkAgentVersionV1AgentsAgentCoreIdVersionsVersionNumberForkPost({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
2413
+ agentCoreId: string;
2414
+ versionNumber: number;
2415
+ xAccountId?: string | null;
2416
+ xUsername?: string | null;
2417
+ xUserId?: string | null;
2418
+ xUserFullName?: string | null;
2419
+ authorization: string;
2420
+ forkAgentRequest: ForkAgentRequest;
2421
+ }, opts?: Oazapfts.RequestOpts) {
2422
+ return oazapfts.ok(oazapfts.fetchJson<{
2423
+ status: 201;
2424
+ data: ForkedAgentCoreAndVersionResponse;
2425
+ } | {
2426
+ status: 404;
2427
+ } | {
2428
+ status: 422;
2429
+ data: HttpValidationError;
2430
+ }>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}/fork`, oazapfts.json({
2431
+ ...opts,
2432
+ method: "POST",
2433
+ body: forkAgentRequest,
2434
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2435
+ "x-account-id": xAccountId,
2436
+ "x-username": xUsername,
2437
+ "x-user-id": xUserId,
2438
+ "x-user-full-name": xUserFullName,
2439
+ authorization
2440
+ })
2441
+ })));
2442
+ }
1965
2443
  /**
1966
2444
  * List Agents
1967
2445
  */
@@ -2002,16 +2480,51 @@ export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAcc
2002
2480
  })
2003
2481
  }));
2004
2482
  }
2483
+ /**
2484
+ * Create Agent
2485
+ */
2486
+ export function createAgentV2AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequestV2 }: {
2487
+ isPublic?: boolean;
2488
+ xAccountId?: string | null;
2489
+ xUsername?: string | null;
2490
+ xUserId?: string | null;
2491
+ xUserFullName?: string | null;
2492
+ authorization: string;
2493
+ newAgentRequestV2: NewAgentRequestV2;
2494
+ }, opts?: Oazapfts.RequestOpts) {
2495
+ return oazapfts.ok(oazapfts.fetchJson<{
2496
+ status: 201;
2497
+ data: CreatedResponse;
2498
+ } | {
2499
+ status: 404;
2500
+ } | {
2501
+ status: 422;
2502
+ data: HttpValidationError;
2503
+ }>(`/v2/agents${QS.query(QS.explode({
2504
+ is_public: isPublic
2505
+ }))}`, oazapfts.json({
2506
+ ...opts,
2507
+ method: "POST",
2508
+ body: newAgentRequestV2,
2509
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2510
+ "x-account-id": xAccountId,
2511
+ "x-username": xUsername,
2512
+ "x-user-id": xUserId,
2513
+ "x-user-full-name": xUserFullName,
2514
+ authorization
2515
+ })
2516
+ })));
2517
+ }
2005
2518
  /**
2006
2519
  * Search Agents
2007
2520
  */
2008
- export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
2521
+ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequestV2 }: {
2009
2522
  xAccountId?: string | null;
2010
2523
  xUsername?: string | null;
2011
2524
  xUserId?: string | null;
2012
2525
  xUserFullName?: string | null;
2013
2526
  authorization: string;
2014
- searchAgentsRequest: SearchAgentsRequest;
2527
+ searchAgentsRequestV2: SearchAgentsRequestV2;
2015
2528
  }, opts?: Oazapfts.RequestOpts) {
2016
2529
  return oazapfts.ok(oazapfts.fetchJson<{
2017
2530
  status: 200;
@@ -2024,7 +2537,42 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
2024
2537
  }>("/v2/agents/search", oazapfts.json({
2025
2538
  ...opts,
2026
2539
  method: "POST",
2027
- body: searchAgentsRequest,
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,
2028
2576
  headers: oazapfts.mergeHeaders(opts?.headers, {
2029
2577
  "x-account-id": xAccountId,
2030
2578
  "x-username": xUsername,
@@ -2034,11 +2582,46 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
2034
2582
  })
2035
2583
  })));
2036
2584
  }
2585
+ /**
2586
+ * Find By Agent Core Id
2587
+ */
2588
+ export function findByAgentCoreIdV2AgentsAgentCoreIdGet({ agentCoreId, versionNumber, returnAllVersions, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2589
+ agentCoreId: string;
2590
+ versionNumber?: number | null;
2591
+ returnAllVersions?: boolean | null;
2592
+ xAccountId?: string | null;
2593
+ xUsername?: string | null;
2594
+ xUserId?: string | null;
2595
+ xUserFullName?: string | null;
2596
+ authorization: string;
2597
+ }, opts?: Oazapfts.RequestOpts) {
2598
+ return oazapfts.ok(oazapfts.fetchJson<{
2599
+ status: 200;
2600
+ data: AgentCoreWithSingleVersionResponse;
2601
+ } | {
2602
+ status: 404;
2603
+ } | {
2604
+ status: 422;
2605
+ data: HttpValidationError;
2606
+ }>(`/v2/agents/${encodeURIComponent(agentCoreId)}${QS.query(QS.explode({
2607
+ version_number: versionNumber,
2608
+ return_all_versions: returnAllVersions
2609
+ }))}`, {
2610
+ ...opts,
2611
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2612
+ "x-account-id": xAccountId,
2613
+ "x-username": xUsername,
2614
+ "x-user-id": xUserId,
2615
+ "x-user-full-name": xUserFullName,
2616
+ authorization
2617
+ })
2618
+ }));
2619
+ }
2037
2620
  /**
2038
2621
  * List Agents
2039
2622
  */
2040
2623
  export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2041
- filters: ListAgentRequestV3;
2624
+ filters: ListAgentRequestV4;
2042
2625
  isPublic?: boolean;
2043
2626
  xAccountId?: string | null;
2044
2627
  xUsername?: string | null;
@@ -2068,6 +2651,40 @@ export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername
2068
2651
  })
2069
2652
  }));
2070
2653
  }
2654
+ /**
2655
+ * List Agent Core with all versions
2656
+ */
2657
+ export function listAgentsV4AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2658
+ filters: ListAgentRequestV4;
2659
+ isPublic?: boolean;
2660
+ xAccountId?: string | null;
2661
+ xUsername?: string | null;
2662
+ xUserId?: string | null;
2663
+ xUserFullName?: string | null;
2664
+ authorization: string;
2665
+ }, opts?: Oazapfts.RequestOpts) {
2666
+ return oazapfts.ok(oazapfts.fetchJson<{
2667
+ status: 200;
2668
+ data: PaginatedResponseListAgentCoreResponse;
2669
+ } | {
2670
+ status: 404;
2671
+ } | {
2672
+ status: 422;
2673
+ data: HttpValidationError;
2674
+ }>(`/v4/agents${QS.query(QS.explode({
2675
+ filters,
2676
+ is_public: isPublic
2677
+ }))}`, {
2678
+ ...opts,
2679
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2680
+ "x-account-id": xAccountId,
2681
+ "x-username": xUsername,
2682
+ "x-user-id": xUserId,
2683
+ "x-user-full-name": xUserFullName,
2684
+ authorization
2685
+ })
2686
+ }));
2687
+ }
2071
2688
  /**
2072
2689
  * Internal List Toolkits By Ids
2073
2690
  */