@rodrigobeber/patoai-dtos 4.7.63 → 4.7.65

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.
@@ -20,4 +20,5 @@ export interface ResponseCreateDto {
20
20
  cacheKey?: string;
21
21
  previousResponseId?: string;
22
22
  includeFileSearchResults?: boolean;
23
+ skipSanitize?: boolean;
23
24
  }
@@ -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 });
@@ -2,3 +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';
@@ -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-lab-quota.dto"), exports);
@@ -3,3 +3,11 @@ export * from './support-crew-features.dto';
3
3
  export * from './support-ask.dto';
4
4
  export * from './support-answer.dto';
5
5
  export * from './support-crew-config.dto';
6
+ export * from './support-lab-ask.dto';
7
+ export * from './support-prompt-workbench.dto';
8
+ export * from './support-prompt-final.dto';
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';
@@ -19,3 +19,11 @@ __exportStar(require("./support-crew-features.dto"), exports);
19
19
  __exportStar(require("./support-ask.dto"), exports);
20
20
  __exportStar(require("./support-answer.dto"), exports);
21
21
  __exportStar(require("./support-crew-config.dto"), exports);
22
+ __exportStar(require("./support-lab-ask.dto"), exports);
23
+ __exportStar(require("./support-prompt-workbench.dto"), exports);
24
+ __exportStar(require("./support-prompt-final.dto"), exports);
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,11 @@
1
+ import { AccountRoleEnum } from "../auth/account-role.enum";
2
+ export interface SupportConversationRequestDto {
3
+ idCrew: number;
4
+ idAccount: number;
5
+ accountRole: AccountRoleEnum;
6
+ idThread: string;
7
+ }
8
+ export interface SupportConversationDto {
9
+ found: boolean;
10
+ transcript: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface SupportInsightAccessRequestDto {
2
+ idCrew: number;
3
+ idAccount: number;
4
+ accountRole: string;
5
+ }
6
+ export interface SupportInsightAccessDto {
7
+ allowed: boolean;
8
+ role: string | null;
9
+ minRole: string;
10
+ }
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { SupportMessageDto } from "./support-message.dto";
2
+ export interface SupportLabFocusDto {
3
+ idStage?: number;
4
+ runType?: string;
5
+ }
6
+ export interface SupportLabAskDto {
7
+ idCrew: number;
8
+ messages: SupportMessageDto[];
9
+ currentPage?: string;
10
+ focus?: SupportLabFocusDto;
11
+ userRole?: string;
12
+ isSuperUser?: boolean;
13
+ }
14
+ export interface SupportLabProposalDto {
15
+ id: string;
16
+ target: 'context' | 'prompt';
17
+ field?: 'about' | 'role' | 'audience' | 'behavior';
18
+ idPrompt?: number;
19
+ kind: 'markdown' | 'spin-yaml';
20
+ title: string;
21
+ baseText: string;
22
+ proposedText: string;
23
+ rationale: string;
24
+ }
25
+ export interface SupportLabAnswerDto {
26
+ content: string;
27
+ remainingToday?: number;
28
+ proposals?: SupportLabProposalDto[];
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { AccountRoleEnum } from "../auth/account-role.enum";
2
+ export interface SupportPromptFinalRequestDto {
3
+ idCrew: number;
4
+ idAccount: number;
5
+ accountRole: AccountRoleEnum;
6
+ idStage?: number;
7
+ }
8
+ export interface SupportPromptFinalDto {
9
+ instructions: string;
10
+ stageName: string | null;
11
+ stageType: string | null;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,47 @@
1
+ import { AccountRoleEnum } from "../auth/account-role.enum";
2
+ import { MemberRoleEnum } from "../organization/member-role.enum";
3
+ import { WebChatStageDto } from "../webchat/crm/webchat-stage.dto";
4
+ export interface SupportPromptWorkbenchRequestDto {
5
+ idCrew: number;
6
+ idAccount: number;
7
+ accountRole: AccountRoleEnum;
8
+ idStage?: number;
9
+ }
10
+ export interface SupportContextDto {
11
+ about: string | null;
12
+ role: string | null;
13
+ audience: string | null;
14
+ behavior: string | null;
15
+ }
16
+ export interface SupportWorkbenchPromptDto {
17
+ id: number;
18
+ title: string;
19
+ type: string;
20
+ base: string | null;
21
+ active: boolean;
22
+ stageIds: number[];
23
+ order: number;
24
+ content: string;
25
+ }
26
+ export interface SupportBaseTemplatesDto {
27
+ crew: string;
28
+ agenda: string;
29
+ spin: string;
30
+ footer: string;
31
+ }
32
+ export interface SupportWorkbenchLimitsDto {
33
+ promptRunMax: number;
34
+ aboutMax: number;
35
+ roleMax: number;
36
+ audienceMax: number;
37
+ behaviorMax: number;
38
+ }
39
+ export interface SupportPromptWorkbenchDto {
40
+ role: MemberRoleEnum;
41
+ context: SupportContextDto;
42
+ prompts: SupportWorkbenchPromptDto[];
43
+ baseTemplates: SupportBaseTemplatesDto;
44
+ stages: WebChatStageDto[];
45
+ limits: SupportWorkbenchLimitsDto;
46
+ finalPrompt?: string;
47
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.7.63",
3
+ "version": "4.7.65",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",