@fluxo-dev/api-client-base 26.2.5 → 26.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/index.cjs.js +2405 -1616
  2. package/package.json +2 -2
  3. package/src/lib/ai/ai.service.d.ts +160 -145
  4. package/src/lib/ai/index.d.ts +1 -1
  5. package/src/lib/ai/models/index.d.ts +566 -12
  6. package/src/lib/communication/mail-template/email-template.service.d.ts +3 -1
  7. package/src/lib/communication/mail-template/models/email-template-catalog-entry.d.ts +9 -0
  8. package/src/lib/communication/mail-template/models/email-template-type.d.ts +2 -1
  9. package/src/lib/communication/mail-template/models/email-template.d.ts +3 -0
  10. package/src/lib/communication/mail-template/models/index.d.ts +1 -0
  11. package/src/lib/configuration/configuration.service.d.ts +7 -1
  12. package/src/lib/configuration/models/index.d.ts +1 -0
  13. package/src/lib/configuration/models/module-variable.d.ts +23 -0
  14. package/src/lib/fluxo-client.d.ts +3 -3
  15. package/src/lib/fluxo-state-dispatcher.d.ts +3 -0
  16. package/src/lib/ai/models/agent.d.ts +0 -21
  17. package/src/lib/ai/models/create-agent.d.ts +0 -6
  18. package/src/lib/ai/models/create-llm-settings.d.ts +0 -17
  19. package/src/lib/ai/models/create-mcp-server.d.ts +0 -22
  20. package/src/lib/ai/models/create-orchestration.d.ts +0 -9
  21. package/src/lib/ai/models/llm-settings.d.ts +0 -25
  22. package/src/lib/ai/models/mcp-server.d.ts +0 -38
  23. package/src/lib/ai/models/orchestration.d.ts +0 -27
  24. package/src/lib/ai/models/update-agent.d.ts +0 -6
  25. package/src/lib/ai/models/update-llm-settings.d.ts +0 -10
  26. package/src/lib/ai/models/update-mcp-server.d.ts +0 -20
  27. package/src/lib/ai/models/update-orchestration.d.ts +0 -9
@@ -13,7 +13,7 @@ import { CommunicationFacade } from "./communication";
13
13
  import { RavifyFacade } from "./ravify/ravify.facade";
14
14
  import { BiFacade } from "./bi";
15
15
  import { SessionHubService } from "./session-hub";
16
- import { AiService } from './ai';
16
+ import { AiService } from "./ai";
17
17
  export declare abstract class FluxoClientBase implements FluxoClientInterface {
18
18
  get modules(): any[];
19
19
  static get HttpClient(): HttpClient;
@@ -30,8 +30,8 @@ export declare abstract class FluxoClientBase implements FluxoClientInterface {
30
30
  private _config;
31
31
  private _ravify;
32
32
  private _biFacade;
33
- private _ai;
34
33
  private _sessionHub;
34
+ private _aiService;
35
35
  private _modules;
36
36
  register(module: any): void;
37
37
  protected abstract AddSetupConfiguration(config: FluxoClientConfiguration): void;
@@ -51,7 +51,7 @@ export declare abstract class FluxoClientBase implements FluxoClientInterface {
51
51
  get workflow(): WorkflowService;
52
52
  get ravify(): RavifyFacade;
53
53
  get bi(): BiFacade;
54
- get ai(): AiService;
55
54
  get sessionHub(): SessionHubService;
55
+ get ai(): AiService;
56
56
  private getBearerToken;
57
57
  }
@@ -31,4 +31,7 @@ export declare class FluxoStateDispatcher {
31
31
  title: string | undefined;
32
32
  };
33
33
  }): void;
34
+ static dispatchOpenAiAside(): void;
35
+ static dispatchCloseAiAside(): void;
36
+ static dispatchToggleAiAside(): void;
34
37
  }
@@ -1,21 +0,0 @@
1
- export interface AgentDto {
2
- id: string;
3
- name: string;
4
- description?: string;
5
- systemPrompt: string;
6
- llmSettingsId: string;
7
- llmSettings?: {
8
- id: string;
9
- name: string;
10
- providerType: number;
11
- modelId: string;
12
- hasApiKey: boolean;
13
- endpoint?: string;
14
- temperature?: number;
15
- maxTokens?: number;
16
- isActive: boolean;
17
- };
18
- isActive: boolean;
19
- /** Lista ID server MCP associati */
20
- mcpServerIds?: string[];
21
- }
@@ -1,6 +0,0 @@
1
- export interface CreateAgentCommand {
2
- name: string;
3
- description?: string;
4
- systemPrompt: string;
5
- llmSettingsId: string;
6
- }
@@ -1,17 +0,0 @@
1
- import { LLMProviderType } from './llm-settings';
2
- export interface CreateLLMSettingsCommand {
3
- name: string;
4
- providerType: LLMProviderType;
5
- modelId: string;
6
- apiKey: string;
7
- endpoint?: string;
8
- organizationId?: string;
9
- deploymentName?: string;
10
- apiVersion?: string;
11
- temperature?: number;
12
- maxTokens?: number;
13
- topP?: number;
14
- frequencyPenalty?: number;
15
- presencePenalty?: number;
16
- timeoutSeconds?: number;
17
- }
@@ -1,22 +0,0 @@
1
- import { McpServerType, McpAuthType } from './mcp-server';
2
- /**
3
- * Command per la creazione di un server MCP
4
- */
5
- export interface CreateMcpServerCommand {
6
- /** Nome del server (obbligatorio) */
7
- name: string;
8
- /** Descrizione del server (opzionale) */
9
- description?: string;
10
- /** Tipo di server: 0 (Stdio) o 1 (SSE) */
11
- serverType: McpServerType;
12
- /** Comando di esecuzione (obbligatorio se serverType = Stdio) */
13
- command?: string;
14
- /** Argomenti del comando (opzionale, solo per Stdio) */
15
- arguments?: string;
16
- /** Endpoint HTTP (obbligatorio se serverType = SSE) */
17
- endpoint?: string;
18
- /** Tipo di autenticazione (opzionale) */
19
- authType?: McpAuthType;
20
- /** Token/credenziale di autenticazione (opzionale) */
21
- authToken?: string;
22
- }
@@ -1,9 +0,0 @@
1
- import { OrchestrationType } from './orchestration';
2
- export interface CreateAgentOrchestrationCommand {
3
- name: string;
4
- description?: string;
5
- type: OrchestrationType;
6
- agentIds: string[];
7
- maxIterations?: number;
8
- configuration?: Record<string, any>;
9
- }
@@ -1,25 +0,0 @@
1
- export declare enum LLMProviderType {
2
- OpenAI = 1,
3
- AzureOpenAI = 2,
4
- Anthropic = 3,
5
- Ollama = 4,
6
- Gemini = 5
7
- }
8
- export interface LLMSettingsDto {
9
- id: string;
10
- name: string;
11
- providerType: LLMProviderType;
12
- modelId: string;
13
- hasApiKey: boolean;
14
- endpoint?: string;
15
- organizationId?: string;
16
- deploymentName?: string;
17
- apiVersion?: string;
18
- temperature?: number;
19
- maxTokens?: number;
20
- topP?: number;
21
- frequencyPenalty?: number;
22
- presencePenalty?: number;
23
- timeoutSeconds?: number;
24
- isActive: boolean;
25
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Enumerazione dei tipi di server MCP
3
- */
4
- export declare enum McpServerType {
5
- /** Processo comunicante via stdin/stdout */
6
- Stdio = 0,
7
- /** Server HTTP con Server-Sent Events */
8
- SSE = 1
9
- }
10
- /**
11
- * Enumerazione dei tipi di autenticazione MCP
12
- */
13
- export declare enum McpAuthType {
14
- /** Nessuna autenticazione */
15
- None = 0,
16
- /** API Key (header X-API-Key) */
17
- ApiKey = 1,
18
- /** Bearer Token OAuth/JWT */
19
- BearerToken = 2,
20
- /** Basic Authentication (username:password) */
21
- BasicAuth = 3
22
- }
23
- /**
24
- * DTO per la configurazione di un server MCP
25
- */
26
- export interface McpServerConfigurationDto {
27
- id: string;
28
- name: string;
29
- description: string | null;
30
- serverType: McpServerType;
31
- command: string | null;
32
- arguments: string | null;
33
- endpoint: string | null;
34
- authType: McpAuthType | null;
35
- /** Indica se esiste un token (il token NON viene mai esposto) */
36
- hasAuthToken: boolean;
37
- isActive: boolean;
38
- }
@@ -1,27 +0,0 @@
1
- export declare enum OrchestrationType {
2
- Sequential = 0,
3
- Concurrent = 1,
4
- Handoff = 2,
5
- GroupChat = 3,
6
- Magentic = 4,
7
- Coordinator = 5
8
- }
9
- export interface AgentOrchestrationDto {
10
- id: string;
11
- name: string;
12
- description?: string;
13
- type: OrchestrationType;
14
- agentIds: string[];
15
- maxIterations: number;
16
- configuration?: Record<string, any>;
17
- isActive: boolean;
18
- agents?: Array<{
19
- id: string;
20
- name: string;
21
- systemPrompt: string;
22
- llmSettingsId: string;
23
- isActive: boolean;
24
- }>;
25
- }
26
- export declare const orchestrationTypeLabels: Record<OrchestrationType, string>;
27
- export declare const orchestrationTypeDescriptions: Record<OrchestrationType, string>;
@@ -1,6 +0,0 @@
1
- export interface UpdateAgentCommand {
2
- name?: string;
3
- description?: string;
4
- systemPrompt?: string;
5
- llmSettingsId?: string;
6
- }
@@ -1,10 +0,0 @@
1
- export interface UpdateLLMSettingsCommand {
2
- name?: string;
3
- apiKey?: string;
4
- temperature?: number;
5
- maxTokens?: number;
6
- topP?: number;
7
- frequencyPenalty?: number;
8
- presencePenalty?: number;
9
- timeoutSeconds?: number;
10
- }
@@ -1,20 +0,0 @@
1
- import { McpAuthType } from './mcp-server';
2
- /**
3
- * Command per l'aggiornamento di un server MCP
4
- */
5
- export interface UpdateMcpServerCommand {
6
- /** Nome del server (opzionale) */
7
- name?: string;
8
- /** Descrizione del server (opzionale) */
9
- description?: string;
10
- /** Comando di esecuzione (opzionale, solo se serverType = Stdio) */
11
- command?: string;
12
- /** Argomenti del comando (opzionale, solo se serverType = Stdio) */
13
- arguments?: string;
14
- /** Endpoint HTTP (opzionale, solo se serverType = SSE) */
15
- endpoint?: string;
16
- /** Tipo di autenticazione (opzionale) */
17
- authType?: McpAuthType;
18
- /** Token/credenziale di autenticazione (opzionale, null per rimuovere) */
19
- authToken?: string;
20
- }
@@ -1,9 +0,0 @@
1
- import { OrchestrationType } from './orchestration';
2
- export interface UpdateAgentOrchestrationCommand {
3
- name?: string;
4
- description?: string;
5
- type?: OrchestrationType;
6
- agentIds?: string[];
7
- maxIterations?: number;
8
- configuration?: Record<string, any>;
9
- }