@rodrigobeber/patoai-dtos 4.7.65 → 4.7.66

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.
@@ -0,0 +1,13 @@
1
+ import { CompletionEnum } from "./completion.enum";
2
+ import { ProviderEnum } from "./provider.enum";
3
+ export interface AgentModelConfigRequestDto {
4
+ idCrew?: number | null;
5
+ cdType: CompletionEnum;
6
+ }
7
+ export interface AgentModelConfigDto {
8
+ provider: ProviderEnum;
9
+ model: string;
10
+ effort: string;
11
+ maxTokens: number;
12
+ temperature: number;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,5 +4,11 @@ export declare enum CompletionEnum {
4
4
  SUMMARY = "summary",
5
5
  VOLUME_M3 = "volume-m3",
6
6
  HANDOFF = "handoff",
7
- SCHEDULE_CONFIRM = "schedule-confirm"
7
+ SCHEDULE_CONFIRM = "schedule-confirm",// julga a conversa e decide se o lead confirmou o agendamento
8
+ LAB_CHAT = "lab-chat",// assistente de prompt do Laboratório (F1/F2)
9
+ LAB_ANALYSIS = "lab-analysis",// análise profunda de conversas (F3)
10
+ SUPPORT = "support",// agente de suporte do painel
11
+ WIZARD_CHAT = "wizard-chat",// wizard de criação: conversa
12
+ WIZARD_GENERATE = "wizard-generate",// wizard: geração do agente
13
+ WIZARD_ASSIST = "wizard-assist"
8
14
  }
@@ -9,4 +9,12 @@ var CompletionEnum;
9
9
  CompletionEnum["VOLUME_M3"] = "volume-m3";
10
10
  CompletionEnum["HANDOFF"] = "handoff";
11
11
  CompletionEnum["SCHEDULE_CONFIRM"] = "schedule-confirm";
12
+ // Agentes INTERNOS de plataforma (modelo em base.completion + override crew.completion; credenciais
13
+ // são da PLATAFORMA, não de crew.provider). Ver AgentModelConfigDto / RPC ai.getModelConfig.
14
+ CompletionEnum["LAB_CHAT"] = "lab-chat";
15
+ CompletionEnum["LAB_ANALYSIS"] = "lab-analysis";
16
+ CompletionEnum["SUPPORT"] = "support";
17
+ CompletionEnum["WIZARD_CHAT"] = "wizard-chat";
18
+ CompletionEnum["WIZARD_GENERATE"] = "wizard-generate";
19
+ CompletionEnum["WIZARD_ASSIST"] = "wizard-assist";
12
20
  })(CompletionEnum || (exports.CompletionEnum = CompletionEnum = {}));
@@ -1,4 +1,5 @@
1
1
  export * from './base64.dto';
2
+ export * from './agent-model-config.dto';
2
3
  export * from './completion.enum';
3
4
  export * from './provider.dto';
4
5
  export * from './provider.enum';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./base64.dto"), exports);
18
+ __exportStar(require("./agent-model-config.dto"), exports);
18
19
  __exportStar(require("./completion.enum"), exports);
19
20
  __exportStar(require("./provider.dto"), exports);
20
21
  __exportStar(require("./provider.enum"), exports);
@@ -0,0 +1,18 @@
1
+ export interface BillingAgentLimitRequestDto {
2
+ idCrew: number;
3
+ cdAgent: string;
4
+ }
5
+ export interface BillingAgentLimitDto {
6
+ nrLimit: number;
7
+ cdWindow: string;
8
+ used: number;
9
+ remaining: number;
10
+ allowed: boolean;
11
+ }
12
+ export interface BillingConsumeAgentUsageRequestDto {
13
+ idCrew: number;
14
+ cdAgent: string;
15
+ }
16
+ export interface BillingConsumeAgentUsageDto {
17
+ used: number;
18
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // Limite de uso GENÉRICO dos agentes internos de plataforma (lab-chat, lab-analysis, support, …),
3
+ // no billing. `cd_agent` identifica o agente; a janela (day|month) e o teto vêm de `billing.agent_limit`
4
+ // (linha id_crew=0 = default; id_crew>0 = exceção por-crew). Contador em `billing.agent_usage`.
5
+ // Substitui a antiga cota específica de análise (billing.lab_analysis_usage), removida.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,4 @@ export * from './billing-rest.dto';
2
2
  export * from './billing-event.dto';
3
3
  export * from './billing-consumption-report.dto';
4
4
  export * from './billing-consumption-day-leads.dto';
5
- export * from './billing-lab-quota.dto';
5
+ export * from './billing-agent-usage.dto';
@@ -18,4 +18,4 @@ __exportStar(require("./billing-rest.dto"), exports);
18
18
  __exportStar(require("./billing-event.dto"), exports);
19
19
  __exportStar(require("./billing-consumption-report.dto"), exports);
20
20
  __exportStar(require("./billing-consumption-day-leads.dto"), exports);
21
- __exportStar(require("./billing-lab-quota.dto"), exports);
21
+ __exportStar(require("./billing-agent-usage.dto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.7.65",
3
+ "version": "4.7.66",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",