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

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.
@@ -170,18 +170,15 @@ export type AgentUsingToolsResponse = {
170
170
  name: string;
171
171
  avatar?: string | null;
172
172
  };
173
- export type Function = {
174
- name: string;
175
- description: string;
176
- parameters: {
177
- [key: string]: any;
178
- };
179
- strict?: boolean;
173
+ export type AssignCustomToolsAgentRequest = {
174
+ toolkit_id: string;
175
+ tools_ids: string[];
180
176
  };
181
- export type McpToolFunction = {
182
- "type"?: string | null;
183
- "function"?: Function | null;
184
- id?: string | null;
177
+ export type AssignToolsToAgentRequest = {
178
+ builtin_tool_ids?: string[] | null;
179
+ custom_tools?: AssignCustomToolsAgentRequest[] | null;
180
+ sub_agents_ids?: string[] | null;
181
+ mcp_toolkit_ids?: string[] | null;
185
182
  };
186
183
  export type ToolkitMcpResponse = {
187
184
  id?: string | null;
@@ -193,20 +190,11 @@ export type ToolkitMcpResponse = {
193
190
  secrets?: string[] | null;
194
191
  url?: string | null;
195
192
  toolkit_type?: ToolkitType | null;
196
- tools?: McpToolFunction[] | null;
197
- };
198
- export type MultiAgentToolkitResponse = {
199
- id: string;
200
- agent_version_number: number | null;
201
- avatar: string | null;
202
- name: string;
203
- description: string;
204
193
  };
205
194
  export type AgentToolsResponse = {
206
195
  builtin_toolkits?: BuiltinToolkitResponse[];
207
196
  custom_toolkits?: CustomToolkitResponse[];
208
197
  mcp_toolkits?: ToolkitMcpResponse[];
209
- multi_agent_toolkits?: MultiAgentToolkitResponse[];
210
198
  };
211
199
  export type SchemaEnum = "OPENAI";
212
200
  export type FunctionParameter = {
@@ -225,7 +213,7 @@ export type FunctionParameter = {
225
213
  /** Allow arbitrary data of specific typed */
226
214
  additionalProperties?: boolean;
227
215
  };
228
- export type Function2 = {
216
+ export type Function = {
229
217
  /** The name of the function */
230
218
  name: string;
231
219
  /** A description of what the function does */
@@ -241,7 +229,7 @@ export type OpenAiTool = {
241
229
  /** The type of the tool; must be 'function' */
242
230
  "type": "function";
243
231
  /** The function associated with this tool */
244
- "function": Function2;
232
+ "function": Function;
245
233
  };
246
234
  export type ExecuteAgentToolRequest = {
247
235
  arguments?: string | null;
@@ -259,7 +247,6 @@ export type KnowledgeSourcesConfig = {
259
247
  similarity_function?: string;
260
248
  post_processing?: boolean;
261
249
  };
262
- export type AgentVersionStatus = "draft" | "published" | "deprecated";
263
250
  export type ListAgentResponse = {
264
251
  id: string;
265
252
  name: string;
@@ -270,9 +257,6 @@ export type ListAgentResponse = {
270
257
  avatar: string | null;
271
258
  suggested_prompts: string[] | null;
272
259
  knowledge_sources_config: KnowledgeSourcesConfig;
273
- version_number: number;
274
- status: AgentVersionStatus;
275
- is_recommended: boolean;
276
260
  has_multiagent_tool?: boolean;
277
261
  "type"?: string;
278
262
  system_prompt?: string;
@@ -288,10 +272,6 @@ export type KnowledgeSourcesConfigRequest = {
288
272
  knowledge_sources?: string[] | null;
289
273
  sealed?: boolean | null;
290
274
  };
291
- export type AssignCustomToolsAgentRequest = {
292
- toolkit_id: string;
293
- tools_ids: string[];
294
- };
295
275
  export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
296
276
  export type AgentMemory = "vector" | "buffer";
297
277
  export type PlannerType = "simple" | "tool_oriented";
@@ -319,7 +299,6 @@ export type NewAgentRequest = {
319
299
  /** Custom tools to assign to the agent */
320
300
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
321
301
  mcp_toolkit_ids?: string[] | null;
322
- /** Multi-agents assignment to the agent */
323
302
  sub_agents_ids?: string[] | null;
324
303
  detail_mode?: boolean;
325
304
  structured_output?: string | null;
@@ -336,21 +315,13 @@ export type NewAgentRequest = {
336
315
  planner_type?: PlannerType | null;
337
316
  /** Maximum number of LLM interactions allowed for the agent when using simple planner */
338
317
  max_llm_interactions?: number | null;
339
- /** LLM planner model name */
340
- planner_model_name?: string | null;
341
- /** LLM planner model id */
342
- planner_model_id?: string | null;
343
318
  };
344
319
  export type SearchAgentsRequest = {
345
320
  /** Agent ids to filter for */
346
321
  ids: string[];
347
322
  };
348
- export type AssignMultiAgentVersionRequest = {
349
- agent_core_id: string;
350
- version_number?: number | null;
351
- };
352
323
  export type WorkspaceForkRequest = {
353
- agents: AssignMultiAgentVersionRequest[];
324
+ agent_ids: string[];
354
325
  member_id: string;
355
326
  };
356
327
  export type AgentItemFork = {
@@ -390,7 +361,7 @@ export type ListMultiAgentsResponse = {
390
361
  visibility_level: VisibilityLevelEnum;
391
362
  has_multiagent_tool: boolean;
392
363
  };
393
- export type KnowledgeSourceDetailsResponse = {
364
+ export type KnowledgeSourceDetails = {
394
365
  id: string;
395
366
  slug: string;
396
367
  name: string;
@@ -398,103 +369,139 @@ export type KnowledgeSourceDetailsResponse = {
398
369
  "type": string;
399
370
  creator?: string | null;
400
371
  "default": boolean;
401
- visibility_level: string;
372
+ visibility_level: VisibilityLevelEnum;
402
373
  model_name: string;
403
374
  username?: string | null;
404
375
  };
405
- export type KnowledgeSourcesConfigResponse = {
406
- knowledge_sources: string[];
376
+ export type KnowledgeSourceConfigModel = {
377
+ similarity_function: SimilarityFunctionEnum;
407
378
  max_number_of_kos: number;
408
379
  relevancy_threshold: number;
409
- similarity_function: string;
410
380
  post_processing: boolean;
381
+ knowledge_sources: string[];
382
+ knowledge_sources_details: KnowledgeSourceDetails[];
411
383
  sealed: boolean;
412
- knowledge_sources_details?: KnowledgeSourceDetailsResponse[] | null;
413
384
  created_by?: string | null;
414
385
  created_at?: string | null;
415
386
  updated_by?: string | null;
416
387
  updated_at?: string | null;
417
388
  };
418
- export type LlmSettingsResponse = {
419
- property_key: string;
420
- property_value: string;
421
- property_type: string;
389
+ export type BuiltinToolDto = {
390
+ id: string;
391
+ name: string;
392
+ description: string;
393
+ toolkit_id: string;
422
394
  };
423
- export type AgentLlmModelResponse = {
395
+ export type BuiltinToolkitDto = {
396
+ id: string;
397
+ name: string;
398
+ description: string;
399
+ image_url: string;
400
+ tools: BuiltinToolDto[];
401
+ };
402
+ export type CustomToolkitToolDto = {
403
+ id: string;
404
+ name: string;
405
+ description: string;
406
+ method: string;
407
+ url: string;
408
+ parameters?: {
409
+ [key: string]: any;
410
+ }[] | null;
411
+ request_body?: {
412
+ [key: string]: any;
413
+ } | null;
414
+ response_transformation?: string | null;
415
+ creator_name?: string | null;
416
+ };
417
+ export type CustomToolkitDto = {
418
+ id: string;
419
+ name: string;
420
+ description: string | null;
421
+ avatar: string | null;
422
+ tools: CustomToolkitToolDto[];
423
+ secrets: string[] | null;
424
+ visibility_level: VisibilityLevelEnum;
425
+ creator_name: string;
426
+ is_usable_by_others: boolean;
427
+ url: string | null;
428
+ toolkit_type: ToolkitType | null;
429
+ };
430
+ export type SecretScope = "ACCOUNT" | "SCOPED" | "SPOT" | "USER" | "UNKNOWN";
431
+ export type SecretDto = {
432
+ id: string;
433
+ scope?: SecretScope | null;
434
+ };
435
+ export type Function2 = {
436
+ name: string;
437
+ description: string;
438
+ parameters: {
439
+ [key: string]: any;
440
+ };
441
+ strict?: boolean;
442
+ };
443
+ export type ToolkitMcpdto = {
444
+ secrets: SecretDto[] | null;
445
+ name: string;
446
+ description?: string | null;
447
+ avatar?: string | null;
448
+ visibility_level?: VisibilityLevelEnum;
449
+ id?: string | null;
450
+ url?: string | null;
451
+ tools?: Function2[] | null;
452
+ /** Toolkit type */
453
+ toolkit_type?: ToolkitType | null;
454
+ };
455
+ export type AgentToolsDto = {
456
+ builtin_toolkits?: BuiltinToolkitDto[];
457
+ custom_toolkits?: CustomToolkitDto[];
458
+ mcp_toolkits?: ToolkitMcpdto[];
459
+ };
460
+ export type LlmSettingsModel = {
461
+ property_key?: string | null;
462
+ property_value?: string | null;
463
+ property_type?: string | null;
464
+ agent_id: string;
465
+ created_by?: string | null;
466
+ created_at?: string | null;
467
+ updated_by?: string | null;
468
+ updated_at?: string | null;
469
+ };
470
+ export type AgentLlmModelDto = {
424
471
  model_id: string;
425
472
  model_name: string;
426
- is_default: boolean;
473
+ is_default?: boolean;
427
474
  };
428
- export type FindByIdAgentResponse = {
429
- /** Agent core ID */
475
+ export type AgentModel = {
430
476
  id: string;
431
- /** Agent name */
432
477
  name: string;
433
- /** Agent unique slug */
434
478
  slug: string;
435
- /** Agent description */
436
479
  description?: string | null;
437
- /** Agent avatar image URL */
438
- avatar?: string | null;
439
- /** Agent visibility level */
480
+ system_prompt: string;
440
481
  visibility_level: string;
441
- /** Agent type */
482
+ avatar?: string | null;
442
483
  "type": string;
443
- /** Whether agent is use-only (hides implementation) */
484
+ conversation_starter?: string[] | null;
444
485
  use_only: boolean;
445
- /** Whether agent is internal */
446
- is_internal: boolean;
447
- /** Whether detail mode is enabled */
448
486
  detail_mode: boolean;
449
- /** Agent execution mode */
450
487
  mode: AgentMode;
451
- /** Agent memory type */
452
- memory: AgentMemory;
453
- /** Version status */
454
- status: AgentVersionStatus;
455
- /** Version number */
456
- version_number: number;
457
- /** Whether this is the recommended version */
458
- is_recommended: boolean;
459
- /** Whether this is the latest version */
460
- is_latest: boolean;
461
- /** System prompt for the agent */
462
- system_prompt?: string | null;
463
- /** Default LLM model ID */
488
+ structured_output?: {
489
+ [key: string]: any;
490
+ } | null;
464
491
  model_id?: string | null;
465
- /** Default LLM model name */
466
492
  model_name?: string | null;
467
- /** Original agent ID if forked */
468
- origin_fork_id?: string | null;
469
- /** Suggested conversation starters */
470
- conversation_starter?: string[] | null;
471
- /** JSON schema for structured output */
472
- structured_output?: string | null;
473
- /** Base version ID for version history */
474
- base_version_id?: string | null;
475
- planner_type?: PlannerType | null;
476
- /** Maximum number of LLM interactions */
477
- max_llm_interactions?: number | null;
478
- /** Default LLM planner model ID */
479
- planner_model_id?: string | null;
480
- /** Default LLM planner model name */
481
- planner_model_name?: string | null;
482
- /** Knowledge sources configuration with details */
483
- knowledge_sources_config?: KnowledgeSourcesConfigResponse | null;
484
- /** Agent toolkits (builtin and custom) */
485
- toolkits?: AgentToolsResponse;
486
- /** LLM settings */
487
- settings?: LlmSettingsResponse[];
488
- /** Available LLM models for this agent */
489
- available_llm_models?: AgentLlmModelResponse[];
490
- /** Creator username */
493
+ knowledge_sources_config?: KnowledgeSourceConfigModel | null;
494
+ toolkits?: AgentToolsDto | null;
495
+ settings?: LlmSettingsModel[];
496
+ is_sub_agent?: boolean | null;
491
497
  created_by?: string | null;
492
- /** Creation timestamp */
493
498
  created_at?: string | null;
494
- /** Last updater username */
495
499
  updated_by?: string | null;
496
- /** Last update timestamp */
497
500
  updated_at?: string | null;
501
+ available_llm_models?: AgentLlmModelDto[];
502
+ memory?: AgentMemory;
503
+ planner_type?: PlannerType | null;
504
+ max_llm_interactions?: number | null;
498
505
  };
499
506
  export type UpdateAgentRequest = {
500
507
  use_only?: boolean | null;
@@ -512,15 +519,12 @@ export type UpdateAgentRequest = {
512
519
  avatar?: string | null;
513
520
  /** Agent suggested prompt */
514
521
  suggested_prompts?: string[];
515
- /** agent status */
516
- status?: AgentVersionStatus | null;
517
522
  /** System prompt */
518
523
  system_prompt?: string | null;
519
524
  /** Agent type */
520
525
  "type"?: AgentType | null;
521
526
  knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
522
527
  builtin_tools_ids?: string[];
523
- /** Multi-agents assignment to the agent */
524
528
  sub_agents_ids?: string[];
525
529
  /** Custom tools to assign to the agent */
526
530
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
@@ -540,10 +544,6 @@ export type UpdateAgentRequest = {
540
544
  planner_type?: PlannerType;
541
545
  /** Maximum number of LLM interactions allowed for the agent when using simple planner */
542
546
  max_llm_interactions?: number | null;
543
- /** LLM planner model name */
544
- planner_model_name?: string | null;
545
- /** LLM planner model id */
546
- planner_model_id?: string | null;
547
547
  };
548
548
  export type ForkAgentRequest = {
549
549
  /** Agent slug to fork */
@@ -553,144 +553,6 @@ export type ForkAgentRequest = {
553
553
  export type PublishAgentRequest = {
554
554
  use_only?: boolean;
555
555
  is_public?: boolean;
556
- version_number?: number | null;
557
- };
558
- export type CreateVersionRequest = {
559
- /** The version number to use as base for the new version. If not provided, uses latest version */
560
- base_version_number?: number | null;
561
- };
562
- export type AgentVersionResponse = {
563
- /** Agent version unique identifier */
564
- id: string;
565
- /** Reference to parent agent core */
566
- agent_core_id: string;
567
- /** Whether detail mode is enabled for responses */
568
- detail_mode: boolean;
569
- /** Whether version is internal-only */
570
- is_internal: boolean;
571
- /** Agent execution mode (autonomous, orchestrator, etc.) */
572
- mode: AgentMode;
573
- /** Memory type used by the agent */
574
- memory: string;
575
- /** Version status (draft, published, archived) */
576
- status: AgentVersionStatus;
577
- /** Sequential version number */
578
- version_number: number;
579
- /** Whether this is the recommended version for use */
580
- is_recommended: boolean;
581
- /** Whether this is the most recent version */
582
- is_latest: boolean;
583
- /** Base version ID used for creating this version */
584
- base_version_id?: string | null;
585
- /** Original agent version ID if this is a fork */
586
- origin_fork_id?: string | null;
587
- /** System prompt for the agent version */
588
- system_prompt?: string | null;
589
- /** LLM model ID used by this version */
590
- model_id?: string | null;
591
- /** LLM model name used by this version */
592
- model_name?: string | null;
593
- /** Suggested conversation starters */
594
- conversation_starter?: string[] | null;
595
- /** JSON schema for structured output format */
596
- structured_output?: string | null;
597
- planner_type?: PlannerType | null;
598
- max_llm_interactions?: number | null;
599
- /** Default LLM planner model ID */
600
- planner_model_id?: string | null;
601
- /** Default LLM planner model name */
602
- planner_model_name?: string | null;
603
- /** Knowledge sources configuration for RAG capabilities */
604
- knowledge_sources_config?: KnowledgeSourcesConfig | null;
605
- /** List of tools (builtin) assigned to this version */
606
- toolkits?: AgentToolsResponse;
607
- /** LLM-specific settings for this version */
608
- settings?: LlmSettingsResponse[];
609
- /** Available LLM models for this version */
610
- llm_models?: AgentLlmModelResponse[];
611
- /** Username of version creator */
612
- created_by?: string | null;
613
- /** Version creation timestamp */
614
- created_at?: string | null;
615
- /** Username of last updater */
616
- updated_by?: string | null;
617
- /** Last update timestamp */
618
- updated_at?: string | null;
619
- };
620
- export type CreateVersionResponse = {
621
- /** Agent core unique identifier */
622
- id: string;
623
- /** Agent name */
624
- name: string;
625
- /** Agent unique slug */
626
- slug: string;
627
- /** Agent description */
628
- description?: string | null;
629
- /** Agent avatar image URL */
630
- avatar?: string | null;
631
- /** Agent visibility level (personal, shared, account) */
632
- visibility_level: string;
633
- /** The newly created agent version details */
634
- version: AgentVersionResponse;
635
- /** Username of agent creator */
636
- created_by?: string | null;
637
- /** Agent creation timestamp */
638
- created_at?: string | null;
639
- /** Username of last updater */
640
- updated_by?: string | null;
641
- /** Last update timestamp */
642
- updated_at?: string | null;
643
- };
644
- export type ListAgentVersionResponse = {
645
- id: string;
646
- version_number: number;
647
- status: AgentVersionStatus;
648
- is_recommended: boolean;
649
- };
650
- export type ForkedAgentCoreAndVersionResponse = {
651
- /** Agent core unique identifier */
652
- id: string;
653
- /** Agent name */
654
- name: string;
655
- /** Agent unique slug */
656
- slug: string;
657
- /** Agent description */
658
- description: string;
659
- /** Agent avatar image URL */
660
- avatar?: string | null;
661
- /** Agent visibility level (personal, shared, account) */
662
- visibility_level: string;
663
- /** The newly created agent version details */
664
- version: AgentVersionResponse;
665
- /** Username of agent creator */
666
- created_by?: string | null;
667
- /** Agent creation timestamp */
668
- created_at?: string | null;
669
- /** Username of last updater */
670
- updated_by?: string | null;
671
- /** Last update timestamp */
672
- updated_at?: string | null;
673
- };
674
- export type KnowledgeSourceDetailsResponse2 = {
675
- id: string;
676
- slug: string;
677
- name: string;
678
- description: string;
679
- "type": string;
680
- creator?: string | null;
681
- "default": boolean;
682
- visibility_level: VisibilityLevelEnum;
683
- model_name: string;
684
- username?: string | null;
685
- };
686
- export type KnowledgeSourcesConfigResponse2 = {
687
- knowledge_sources: string[];
688
- max_number_of_kos?: number;
689
- relevancy_threshold?: number;
690
- similarity_function?: SimilarityFunctionEnum;
691
- post_processing?: boolean;
692
- knowledge_sources_details?: KnowledgeSourceDetailsResponse2[];
693
- sealed: boolean;
694
556
  };
695
557
  export type ListAgentResponseV2 = {
696
558
  id: string;
@@ -701,225 +563,13 @@ export type ListAgentResponseV2 = {
701
563
  visibility_level: string;
702
564
  avatar: string | null;
703
565
  conversation_starter: string[] | null;
704
- knowledge_sources_config: KnowledgeSourcesConfigResponse2;
566
+ knowledge_sources_config: KnowledgeSourcesConfig;
705
567
  "type"?: string;
706
568
  system_prompt?: string;
707
569
  creator_name?: string;
708
- version_number: number;
709
- status: AgentVersionStatus;
710
- is_recommended: boolean;
711
- };
712
- export type NewAgentRequestV2 = {
713
- /** LLM model name */
714
- model_name?: string | null;
715
- /** LLM model id */
716
- model_id?: string | null;
717
- /** Agent name */
718
- name: string;
719
- /** Agent unique slug */
720
- slug: string;
721
- /** Agent description */
722
- description?: string | null;
723
- /** Agent avatar image */
724
- avatar?: string | null;
725
- /** Agent suggested prompt */
726
- suggested_prompts?: string[];
727
- /** System prompt */
728
- system_prompt?: string | null;
729
- /** Agent type */
730
- "type": AgentType;
731
- knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
732
- builtin_tools_ids?: string[];
733
- /** Custom tools to assign to the agent */
734
- custom_tools?: AssignCustomToolsAgentRequest[] | null;
735
- /** Multi-agents assignment to the agent */
736
- sub_agents_ids?: AssignMultiAgentVersionRequest[] | null;
737
- mcp_toolkit_ids?: string[] | null;
738
- detail_mode?: boolean;
739
- structured_output?: string | null;
740
- llm_settings?: {
741
- [key: string]: any;
742
- } | null;
743
- /** Agent mode */
744
- mode?: AgentMode;
745
- /** Agent memory */
746
- memory?: AgentMemory;
747
- /** Available models for this particular agent */
748
- available_models_ids?: string[];
749
- /** Agent planner type */
750
- planner_type?: PlannerType | null;
751
- /** Maximum number of LLM interactions allowed for the agent when using simple planner */
752
- max_llm_interactions?: number | null;
753
- /** LLM planner model name */
754
- planner_model_name?: string | null;
755
- /** LLM planner model id */
756
- planner_model_id?: string | null;
757
- };
758
- export type SearchAgentVersionRequest = {
759
- agent_core_id: string;
760
- version_number?: number | null;
761
- };
762
- export type SearchAgentsRequestV2 = {
763
- agents: SearchAgentVersionRequest[];
764
- };
765
- export type UpdateAgentRequestV2 = {
766
- use_only?: boolean | null;
767
- /** LLM model name */
768
- model_name?: string | null;
769
- /** LLM model id */
770
- model_id?: string | null;
771
- /** Agent name */
772
- name?: string | null;
773
- /** Agent unique slug */
774
- slug?: string | null;
775
- /** agent status */
776
- status?: AgentVersionStatus | null;
777
- /** Agent description */
778
- description?: string | null;
779
- /** Agent avatar image */
780
- avatar?: string | null;
781
- /** Agent suggested prompt */
782
- suggested_prompts?: string[];
783
- /** System prompt */
784
- system_prompt?: string | null;
785
- /** Agent type */
786
- "type"?: AgentType | null;
787
- knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
788
- builtin_tools_ids?: string[];
789
- /** Multi-agents assignment to the agent */
790
- sub_agents_ids?: AssignMultiAgentVersionRequest[];
791
- /** Custom tools to assign to the agent */
792
- custom_tools?: AssignCustomToolsAgentRequest[] | null;
793
- mcp_toolkit_ids?: string[] | null;
794
- detail_mode?: boolean | null;
795
- structured_output?: string | null;
796
- llm_settings?: {
797
- [key: string]: any;
798
- } | null;
799
- /** Agent mode */
800
- mode?: AgentMode | null;
801
- /** Available models for this particular agent */
802
- available_models_ids?: string[];
803
- /** Agent memory */
804
- memory?: AgentMemory;
805
- /** Agent planner type */
806
- planner_type?: PlannerType;
807
- /** Maximum number of LLM interactions allowed for the agent when using simple planner */
808
- max_llm_interactions?: number | null;
809
- /** LLM planner model name */
810
- planner_model_name?: string | null;
811
- /** LLM planner model id */
812
- planner_model_id?: string | null;
813
- };
814
- export type CustomToolkitResponse2 = {
815
- id: string;
816
- name: string;
817
- description?: string | null;
818
- avatar?: string | null;
819
- visibility_level: string;
820
- creator_name: string | null;
821
- toolkit_type?: ToolkitType | null;
822
- tools: CustomToolkitToolResponse[];
823
- secret_id?: string | null;
824
- secrets?: string[] | null;
825
- is_usable_by_others: boolean;
826
- url?: string | null;
827
- };
828
- export type AgentToolsResponse2 = {
829
- builtin_toolkits?: BuiltinToolkitResponse[];
830
- custom_toolkits?: CustomToolkitResponse2[];
831
- mcp_toolkits?: ToolkitMcpResponse[];
832
- multi_agent_toolkits?: MultiAgentToolkitResponse[];
833
- };
834
- export type AgentVersionResponse2 = {
835
- /** System prompt for the agent version */
836
- system_prompt: string;
837
- /** Whether detail mode is enabled for responses */
838
- detail_mode: boolean;
839
- /** Whether version is internal-only */
840
- is_internal: boolean;
841
- /** Agent execution mode (autonomous, orchestrator, etc.) */
842
- mode: AgentMode;
843
- /** Memory type used by the agent */
844
- memory: string;
845
- /** Version status (draft, published, archived) */
846
- status: AgentVersionStatus;
847
- /** Sequential version number */
848
- version_number: number;
849
- /** Whether this is the recommended version for use */
850
- is_recommended: boolean;
851
- /** Whether this is the most recent version */
852
- is_latest: boolean;
853
- /** Base version ID used for creating this version */
854
- base_version_id?: string | null;
855
- /** Original agent version ID if this is a fork */
856
- origin_fork_id?: string | null;
857
- /** LLM model ID used by this version */
858
- model_id?: string | null;
859
- /** LLM model name used by this version */
860
- model_name?: string | null;
861
- /** Suggested conversation starters */
862
- conversation_starter?: string[] | null;
863
- /** JSON schema for structured output format */
864
- structured_output?: string | null;
865
- planner_type?: PlannerType | null;
866
- /** Maximum number of LLM interactions */
867
- max_llm_interactions?: number | null;
868
- /** Default LLM planner model ID */
869
- planner_model_id?: string | null;
870
- /** Default LLM planner model name */
871
- planner_model_name?: string | null;
872
- /** Knowledge sources configuration for RAG capabilities */
873
- knowledge_sources_config?: KnowledgeSourcesConfigResponse2 | null;
874
- /** List of tools (builtin) assigned to this version */
875
- toolkits?: AgentToolsResponse2;
876
- /** LLM-specific settings for this version */
877
- settings?: LlmSettingsResponse[];
878
- /** Available LLM models for this version */
879
- available_llm_models?: AgentLlmModelResponse[];
880
- /** Username of version creator */
881
- created_by?: string | null;
882
- /** Version creation timestamp */
883
- created_at?: string | null;
884
- /** Username of last updater */
885
- updated_by?: string | null;
886
- /** Last update timestamp */
887
- updated_at?: string | null;
888
- };
889
- export type AgentCoreWithSingleVersionResponse = {
890
- /** Agent core unique identifier (ULID format) */
891
- id: string;
892
- /** Agent display name */
893
- name: string;
894
- /** Agent unique slug for URL-friendly identification */
895
- slug: string;
896
- /** Agent core type */
897
- "type": string;
898
- /** Whether agent is use-only (hides implementation) */
899
- use_only: boolean;
900
- /** Detailed description of the agent's purpose and capabilities */
901
- description?: string | null;
902
- /** URL or path to agent's avatar image */
903
- avatar?: string | null;
904
- /** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
905
- visibility_level: string;
906
- /** Specific or recommend version associated with this agent core */
907
- version: AgentVersionResponse2;
908
- /** Whether the current user has marked this agent as favorite */
909
- is_favorite?: boolean;
910
- /** Whether this agent was recently used by the current user */
911
- is_recently_used?: boolean;
912
- /** Username or identifier of the user who created this agent */
913
- created_by?: string | null;
914
- /** Timestamp when the agent was created (ISO 8601 format) */
915
- created_at?: string | null;
916
- /** Username or identifier of the user who last updated this agent */
917
- updated_by?: string | null;
918
- /** Timestamp of the last update (ISO 8601 format) */
919
- updated_at?: string | null;
920
570
  };
921
571
  export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
922
- export type ListAgentRequestV4 = {
572
+ export type ListAgentRequestV3 = {
923
573
  /** Agent name to filter the list */
924
574
  name?: string | null;
925
575
  /** Agent slug to filter the list */
@@ -945,7 +595,7 @@ export type AgentResponseV3 = {
945
595
  slug: string;
946
596
  created_by: string | null;
947
597
  created_at: string | null;
948
- visibility_level: AgentVisibilityLevelEnum | VisibilityLevelEnum;
598
+ visibility_level: string;
949
599
  avatar: string | null;
950
600
  suggested_prompts: string[] | null;
951
601
  knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
@@ -955,35 +605,11 @@ export type AgentResponseV3 = {
955
605
  creator_name?: string;
956
606
  is_favorite?: boolean;
957
607
  is_recently_used?: boolean;
958
- version_number: number;
959
- status: AgentVersionStatus;
960
- is_recommended: boolean;
961
608
  };
962
609
  export type PaginatedResponseAgentResponseV3 = {
963
610
  total_pages: number;
964
611
  items: AgentResponseV3[];
965
612
  };
966
- export type ListAgentVersionResponse2 = {
967
- version_number: number;
968
- status: AgentVersionStatus;
969
- is_recommended: boolean;
970
- };
971
- export type ListAgentCoreResponse = {
972
- id: string;
973
- name: string;
974
- slug: string;
975
- visibility_level: string;
976
- avatar: string | null;
977
- created_by: string | null;
978
- created_at: string | null;
979
- is_favorite?: boolean;
980
- is_recently_used?: boolean;
981
- version: ListAgentVersionResponse2;
982
- };
983
- export type PaginatedResponseListAgentCoreResponse = {
984
- total_pages: number;
985
- items: ListAgentCoreResponse[];
986
- };
987
613
  export type InternalListToolkitsRequest = {
988
614
  /** List of toolkit IDs to retrieve */
989
615
  toolkit_ids: string[];
@@ -1217,12 +843,24 @@ export declare function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({
1217
843
  authorization: string;
1218
844
  listAgentsUsingToolsRequest: ListAgentsUsingToolsRequest;
1219
845
  }, opts?: Oazapfts.RequestOpts): Promise<AgentUsingToolsResponse[]>;
846
+ /**
847
+ * Assign Tools
848
+ */
849
+ export declare function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, assignToolsToAgentRequest }: {
850
+ agentId: string;
851
+ isPublic?: boolean;
852
+ xAccountId?: string | null;
853
+ xUsername?: string | null;
854
+ xUserId?: string | null;
855
+ xUserFullName?: string | null;
856
+ authorization: string;
857
+ assignToolsToAgentRequest: AssignToolsToAgentRequest;
858
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1220
859
  /**
1221
860
  * List Tools
1222
861
  */
1223
- export declare function listToolsV1AgentsAgentIdToolsGet({ agentId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
862
+ export declare function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1224
863
  agentId: string;
1225
- versionNumber?: number | null;
1226
864
  isPublic?: boolean;
1227
865
  xAccountId?: string | null;
1228
866
  xUsername?: string | null;
@@ -1230,13 +868,24 @@ export declare function listToolsV1AgentsAgentIdToolsGet({ agentId, versionNumbe
1230
868
  xUserFullName?: string | null;
1231
869
  authorization: string;
1232
870
  }, opts?: Oazapfts.RequestOpts): Promise<AgentToolsResponse>;
871
+ /**
872
+ * Delete Tools
873
+ */
874
+ export declare function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
875
+ agentId: string;
876
+ isPublic?: boolean;
877
+ xAccountId?: string | null;
878
+ xUsername?: string | null;
879
+ xUserId?: string | null;
880
+ xUserFullName?: string | null;
881
+ authorization: string;
882
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1233
883
  /**
1234
884
  * List Tools By Agent For Schema
1235
885
  */
1236
- export declare function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
886
+ export declare function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1237
887
  agentId: string;
1238
888
  schema: SchemaEnum;
1239
- versionNumber?: number | null;
1240
889
  isPublic?: boolean;
1241
890
  xAccountId?: string | null;
1242
891
  xUsername?: string | null;
@@ -1288,9 +937,9 @@ export declare function createAgentV1AgentsPost({ isPublic, xAccountId, xUsernam
1288
937
  newAgentRequest: NewAgentRequest;
1289
938
  }, opts?: Oazapfts.RequestOpts): Promise<CreatedResponse>;
1290
939
  /**
1291
- * Search Agents By Ids
940
+ * Search Agents
1292
941
  */
1293
- export declare function searchAgentsByIdsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
942
+ export declare function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
1294
943
  xAccountId?: string | null;
1295
944
  xUsername?: string | null;
1296
945
  xUserId?: string | null;
@@ -1360,16 +1009,15 @@ export declare function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visi
1360
1009
  /**
1361
1010
  * Get Agent
1362
1011
  */
1363
- export declare function getAgentV1AgentsAgentIdGet({ agentId, details, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1012
+ export declare function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1364
1013
  agentId: string;
1365
1014
  details?: boolean;
1366
- versionNumber?: number | null;
1367
1015
  xAccountId?: string | null;
1368
1016
  xUsername?: string | null;
1369
1017
  xUserId?: string | null;
1370
1018
  xUserFullName?: string | null;
1371
1019
  authorization: string;
1372
- }, opts?: Oazapfts.RequestOpts): Promise<FindByIdAgentResponse>;
1020
+ }, opts?: Oazapfts.RequestOpts): Promise<AgentModel>;
1373
1021
  /**
1374
1022
  * Update Agent
1375
1023
  */
@@ -1486,67 +1134,6 @@ export declare function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({
1486
1134
  xUserFullName?: string | null;
1487
1135
  authorization: string;
1488
1136
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1489
- /**
1490
- * Create Version
1491
- */
1492
- export declare function createVersionV1AgentsAgentCoreIdVersionsPost({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization, createVersionRequest }: {
1493
- agentCoreId: string;
1494
- xAccountId?: string | null;
1495
- xUsername?: string | null;
1496
- xUserId?: string | null;
1497
- xUserFullName?: string | null;
1498
- authorization: string;
1499
- createVersionRequest: CreateVersionRequest;
1500
- }, opts?: Oazapfts.RequestOpts): Promise<CreateVersionResponse>;
1501
- /**
1502
- * List Versions Of Agent Core
1503
- */
1504
- export declare function listVersionsOfAgentCoreV1AgentsAgentCoreIdVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1505
- agentCoreId: string;
1506
- xAccountId?: string | null;
1507
- xUsername?: string | null;
1508
- xUserId?: string | null;
1509
- xUserFullName?: string | null;
1510
- authorization: string;
1511
- }, opts?: Oazapfts.RequestOpts): Promise<ListAgentVersionResponse[]>;
1512
- /**
1513
- * Delete Version
1514
- */
1515
- export declare function deleteVersionV1AgentsAgentCoreIdVersionsVersionNumberDelete({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1516
- agentCoreId: string;
1517
- versionNumber: number;
1518
- isPublic?: boolean;
1519
- xAccountId?: string | null;
1520
- xUsername?: string | null;
1521
- xUserId?: string | null;
1522
- xUserFullName?: string | null;
1523
- authorization: string;
1524
- }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1525
- /**
1526
- * Patch Version Recommended
1527
- */
1528
- export declare function patchVersionRecommendedV1AgentsAgentCoreIdVersionsVersionNumberPatch({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1529
- agentCoreId: string;
1530
- versionNumber: number;
1531
- xAccountId?: string | null;
1532
- xUsername?: string | null;
1533
- xUserId?: string | null;
1534
- xUserFullName?: string | null;
1535
- authorization: string;
1536
- }, opts?: Oazapfts.RequestOpts): Promise<AgentVersionResponse>;
1537
- /**
1538
- * Fork Agent Version
1539
- */
1540
- export declare function forkAgentVersionV1AgentsAgentCoreIdVersionsVersionNumberForkPost({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
1541
- agentCoreId: string;
1542
- versionNumber: number;
1543
- xAccountId?: string | null;
1544
- xUsername?: string | null;
1545
- xUserId?: string | null;
1546
- xUserFullName?: string | null;
1547
- authorization: string;
1548
- forkAgentRequest: ForkAgentRequest;
1549
- }, opts?: Oazapfts.RequestOpts): Promise<ForkedAgentCoreAndVersionResponse>;
1550
1137
  /**
1551
1138
  * List Agents
1552
1139
  */
@@ -1562,60 +1149,22 @@ export declare function listAgentsV2AgentsGet({ name, slug, visibility, size, pa
1562
1149
  xUserFullName?: string | null;
1563
1150
  authorization: string;
1564
1151
  }, opts?: Oazapfts.RequestOpts): Promise<ListAgentResponseV2[]>;
1565
- /**
1566
- * Create Agent
1567
- */
1568
- export declare function createAgentV2AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequestV2 }: {
1569
- isPublic?: boolean;
1570
- xAccountId?: string | null;
1571
- xUsername?: string | null;
1572
- xUserId?: string | null;
1573
- xUserFullName?: string | null;
1574
- authorization: string;
1575
- newAgentRequestV2: NewAgentRequestV2;
1576
- }, opts?: Oazapfts.RequestOpts): Promise<CreatedResponse>;
1577
1152
  /**
1578
1153
  * Search Agents
1579
1154
  */
1580
- export declare function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequestV2 }: {
1155
+ export declare function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
1581
1156
  xAccountId?: string | null;
1582
1157
  xUsername?: string | null;
1583
1158
  xUserId?: string | null;
1584
1159
  xUserFullName?: string | null;
1585
1160
  authorization: string;
1586
- searchAgentsRequestV2: SearchAgentsRequestV2;
1161
+ searchAgentsRequest: SearchAgentsRequest;
1587
1162
  }, opts?: Oazapfts.RequestOpts): Promise<ListAgentResponseV2[]>;
1588
- /**
1589
- * Update Agent
1590
- */
1591
- export declare function updateAgentV2AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequestV2 }: {
1592
- agentId: string;
1593
- isPublic?: boolean;
1594
- xAccountId?: string | null;
1595
- xUsername?: string | null;
1596
- xUserId?: string | null;
1597
- xUserFullName?: string | null;
1598
- authorization: string;
1599
- updateAgentRequestV2: UpdateAgentRequestV2;
1600
- }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1601
- /**
1602
- * Find By Agent Core Id
1603
- */
1604
- export declare function findByAgentCoreIdV2AgentsAgentCoreIdGet({ agentCoreId, versionNumber, returnAllVersions, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1605
- agentCoreId: string;
1606
- versionNumber?: number | null;
1607
- returnAllVersions?: boolean | null;
1608
- xAccountId?: string | null;
1609
- xUsername?: string | null;
1610
- xUserId?: string | null;
1611
- xUserFullName?: string | null;
1612
- authorization: string;
1613
- }, opts?: Oazapfts.RequestOpts): Promise<AgentCoreWithSingleVersionResponse>;
1614
1163
  /**
1615
1164
  * List Agents
1616
1165
  */
1617
1166
  export declare function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1618
- filters: ListAgentRequestV4;
1167
+ filters: ListAgentRequestV3;
1619
1168
  isPublic?: boolean;
1620
1169
  xAccountId?: string | null;
1621
1170
  xUsername?: string | null;
@@ -1623,18 +1172,6 @@ export declare function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, x
1623
1172
  xUserFullName?: string | null;
1624
1173
  authorization: string;
1625
1174
  }, opts?: Oazapfts.RequestOpts): Promise<PaginatedResponseAgentResponseV3>;
1626
- /**
1627
- * List Agent Core with all versions
1628
- */
1629
- export declare function listAgentsV4AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1630
- filters: ListAgentRequestV4;
1631
- isPublic?: boolean;
1632
- xAccountId?: string | null;
1633
- xUsername?: string | null;
1634
- xUserId?: string | null;
1635
- xUserFullName?: string | null;
1636
- authorization: string;
1637
- }, opts?: Oazapfts.RequestOpts): Promise<PaginatedResponseListAgentCoreResponse>;
1638
1175
  /**
1639
1176
  * Internal List Toolkits By Ids
1640
1177
  */