@rodrigobeber/patoai-dtos 4.7.64 → 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.
- package/dist/ai/core/agent-model-config.dto.d.ts +13 -0
- package/dist/ai/core/agent-model-config.dto.js +2 -0
- package/dist/ai/core/completion.enum.d.ts +7 -1
- package/dist/ai/core/completion.enum.js +8 -0
- package/dist/ai/core/index.d.ts +1 -0
- package/dist/ai/core/index.js +1 -0
- package/dist/billing/billing-agent-usage.dto.d.ts +18 -0
- package/dist/billing/billing-agent-usage.dto.js +6 -0
- package/dist/billing/billing-lab-quota.dto.d.ts +16 -0
- package/dist/billing/billing-lab-quota.dto.js +5 -0
- package/dist/billing/index.d.ts +1 -0
- package/dist/billing/index.js +1 -0
- package/dist/support/index.d.ts +4 -0
- package/dist/support/index.js +4 -0
- package/dist/support/support-funnel.dto.d.ts +9 -0
- package/dist/support/support-funnel.dto.js +2 -0
- package/dist/support/support-insight-access.dto.d.ts +10 -0
- package/dist/support/support-insight-access.dto.js +5 -0
- package/dist/support/support-lab-analyze.dto.d.ts +25 -0
- package/dist/support/support-lab-analyze.dto.js +2 -0
- package/dist/support/support-sample.dto.d.ts +24 -0
- package/dist/support/support-sample.dto.js +6 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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 = {}));
|
package/dist/ai/core/index.d.ts
CHANGED
package/dist/ai/core/index.js
CHANGED
|
@@ -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 });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface BillingLabQuotaRequestDto {
|
|
2
|
+
idCrew: number;
|
|
3
|
+
}
|
|
4
|
+
export interface BillingLabQuotaDto {
|
|
5
|
+
used: number;
|
|
6
|
+
limit: number;
|
|
7
|
+
remaining: number;
|
|
8
|
+
allowed: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface BillingConsumeLabRequestDto {
|
|
11
|
+
idCrew: number;
|
|
12
|
+
}
|
|
13
|
+
export interface BillingConsumeLabDto {
|
|
14
|
+
used: number;
|
|
15
|
+
remaining: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// RPC billing (billing.getLabAnalysisQuota / billing.consumeLabAnalysis): cota MENSAL durável das
|
|
3
|
+
// análises profundas do Laboratório (F3), irmã do saldo de "respostas de teste". Billing é dono de
|
|
4
|
+
// TODAS as cotas de uso. Contador por (id_crew, ano, mês); consumo só após análise bem-sucedida.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/billing/index.d.ts
CHANGED
package/dist/billing/index.js
CHANGED
|
@@ -18,3 +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-agent-usage.dto"), exports);
|
package/dist/support/index.d.ts
CHANGED
|
@@ -7,3 +7,7 @@ export * from './support-lab-ask.dto';
|
|
|
7
7
|
export * from './support-prompt-workbench.dto';
|
|
8
8
|
export * from './support-prompt-final.dto';
|
|
9
9
|
export * from './support-conversation.dto';
|
|
10
|
+
export * from './support-lab-analyze.dto';
|
|
11
|
+
export * from './support-sample.dto';
|
|
12
|
+
export * from './support-funnel.dto';
|
|
13
|
+
export * from './support-insight-access.dto';
|
package/dist/support/index.js
CHANGED
|
@@ -23,3 +23,7 @@ __exportStar(require("./support-lab-ask.dto"), exports);
|
|
|
23
23
|
__exportStar(require("./support-prompt-workbench.dto"), exports);
|
|
24
24
|
__exportStar(require("./support-prompt-final.dto"), exports);
|
|
25
25
|
__exportStar(require("./support-conversation.dto"), exports);
|
|
26
|
+
__exportStar(require("./support-lab-analyze.dto"), exports);
|
|
27
|
+
__exportStar(require("./support-sample.dto"), exports);
|
|
28
|
+
__exportStar(require("./support-funnel.dto"), exports);
|
|
29
|
+
__exportStar(require("./support-insight-access.dto"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WebChatResponseACRateDto } from "../webchat/crm/webchat-acrate.dto";
|
|
2
|
+
export interface SupportFunnelRequestDto {
|
|
3
|
+
idCrew: number;
|
|
4
|
+
idAccount: number;
|
|
5
|
+
accountRole: string;
|
|
6
|
+
startDate: string;
|
|
7
|
+
endDate: string;
|
|
8
|
+
}
|
|
9
|
+
export type SupportFunnelDto = Omit<WebChatResponseACRateDto, 'salesDetails'>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// RPC crew (support.getInsightAccess): resolve APENAS o gate de papel da análise profunda (F3) —
|
|
3
|
+
// o usuário pode disparar a análise deste agente? O teto (quantas/mês) é do billing, não daqui.
|
|
4
|
+
// Gate = getMemberRole >= crew.settings.cd_role_insights (default super-admin).
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SupportLabProposalDto } from "./support-lab-ask.dto";
|
|
2
|
+
export interface SupportLabAnalyzeDto {
|
|
3
|
+
idCrew: number;
|
|
4
|
+
startDate?: string;
|
|
5
|
+
endDate?: string;
|
|
6
|
+
stageIds?: number[];
|
|
7
|
+
sampleSize?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface SupportLabAnalysisMetaDto {
|
|
10
|
+
sampled: number;
|
|
11
|
+
buckets: Record<string, number>;
|
|
12
|
+
remainingThisMonth: number;
|
|
13
|
+
model: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SupportLabAnalysisDto {
|
|
16
|
+
report: string;
|
|
17
|
+
proposals?: SupportLabProposalDto[];
|
|
18
|
+
meta: SupportLabAnalysisMetaDto;
|
|
19
|
+
}
|
|
20
|
+
export interface SupportInsightStatusDto {
|
|
21
|
+
allowed: boolean;
|
|
22
|
+
used: number;
|
|
23
|
+
limit: number;
|
|
24
|
+
remaining: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface SupportSampleRequestDto {
|
|
2
|
+
idCrew: number;
|
|
3
|
+
idAccount: number;
|
|
4
|
+
accountRole: string;
|
|
5
|
+
startDate: string;
|
|
6
|
+
endDate: string;
|
|
7
|
+
stageIds?: number[];
|
|
8
|
+
limit: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SupportSampledThreadDto {
|
|
11
|
+
idThread: string;
|
|
12
|
+
outcome: string;
|
|
13
|
+
stageName: string;
|
|
14
|
+
temperature?: number;
|
|
15
|
+
vlPaid?: number;
|
|
16
|
+
transcript: string;
|
|
17
|
+
transitions: string;
|
|
18
|
+
followUps: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SupportSampleDto {
|
|
21
|
+
found: boolean;
|
|
22
|
+
retentionFloored?: boolean;
|
|
23
|
+
threads: SupportSampledThreadDto[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// RPC crew (support.sampleConversations): amostra estratificada por desfecho (ou por etapas
|
|
3
|
+
// escolhidas) de conversas REAIS de um agente, para a análise profunda (F3). Gate ≥ cd_role_insights
|
|
4
|
+
// resolvido no crew. Cada transcript já vem PII-mascarado + envelope anti-injection (o texto do lead
|
|
5
|
+
// é NÃO-confiável). Sandbox é excluído da amostra (só conversas reais).
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|