@rodrigobeber/patoai-dtos 4.7.22 → 4.7.25

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.
@@ -1,5 +1,19 @@
1
- import type { SdrSubType, WizardStageNamesDto } from '../wizard/wizard.dto';
1
+ import type { SdrSubType, WizardStageNamesDto, WizardEscalationRuleDto, WizardFollowUpConfigDto } from '../wizard/wizard.dto';
2
2
  export type ProvisionAgentType = 'sdr' | 'support';
3
+ /**
4
+ * Sugestoes de configuracao da plataforma geradas pela IA do wizard (settingsHints).
5
+ * Subconjunto de crew.settings que faz sentido derivar do briefing na criacao.
6
+ * Campos ausentes mantem os defaults seguros do provisionamento.
7
+ */
8
+ export interface ProvisionSettingsDto {
9
+ pretend?: boolean;
10
+ vision?: string;
11
+ debounce?: number;
12
+ typingSpeed?: number;
13
+ userInfo?: boolean;
14
+ document?: boolean;
15
+ window?: number;
16
+ }
3
17
  export interface ProvisionCrewDto {
4
18
  companyName: string;
5
19
  agentName: string;
@@ -14,6 +28,14 @@ export interface ProvisionCrewDto {
14
28
  dealPhrase?: string;
15
29
  spinYaml?: string;
16
30
  stageNames?: WizardStageNamesDto;
31
+ /** Sugestoes de settings derivadas do briefing (mapeadas sobre os defaults). */
32
+ settings?: ProvisionSettingsDto;
33
+ /** Cadencia de follow-up calibrada pela IA (substitui os rounds default quando presente). */
34
+ followUpConfig?: WizardFollowUpConfigDto;
35
+ /** Regras de escalonamento para humano (alimentam handoff.escalate + ativam o handoff). */
36
+ escalationRules?: WizardEscalationRuleDto[];
37
+ /** true quando o agente precisa de agenda (sub-tipo agenda/mix) — usado para o checklist. */
38
+ calendarConfig?: boolean;
17
39
  }
18
40
  export interface ProvisionDomainDto {
19
41
  title: string;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './handoff';
10
10
  export * from './organization';
11
11
  export * from './prompt';
12
12
  export * from './run';
13
+ export * from './support';
13
14
  export * from './tool';
14
15
  export * from './uh';
15
16
  export * from './webchat';
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ __exportStar(require("./handoff"), exports);
26
26
  __exportStar(require("./organization"), exports);
27
27
  __exportStar(require("./prompt"), exports);
28
28
  __exportStar(require("./run"), exports);
29
+ __exportStar(require("./support"), exports);
29
30
  __exportStar(require("./tool"), exports);
30
31
  __exportStar(require("./uh"), exports);
31
32
  __exportStar(require("./webchat"), exports);
@@ -0,0 +1,4 @@
1
+ export * from './support-message.dto';
2
+ export * from './support-crew-features.dto';
3
+ export * from './support-ask.dto';
4
+ export * from './support-answer.dto';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./support-message.dto"), exports);
18
+ __exportStar(require("./support-crew-features.dto"), exports);
19
+ __exportStar(require("./support-ask.dto"), exports);
20
+ __exportStar(require("./support-answer.dto"), exports);
@@ -0,0 +1,3 @@
1
+ export interface SupportAnswerDto {
2
+ content: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { SupportCrewFeaturesDto } from "./support-crew-features.dto";
2
+ import { SupportMessageDto } from "./support-message.dto";
3
+ export interface SupportAskDto {
4
+ messages: SupportMessageDto[];
5
+ currentPage?: string;
6
+ crewFeatures?: SupportCrewFeaturesDto;
7
+ userRole?: string;
8
+ isSuperUser?: boolean;
9
+ idCrew?: number;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface SupportCrewFeaturesDto {
2
+ crm?: boolean;
3
+ agenda?: boolean;
4
+ agendaPatoAI?: boolean;
5
+ escalate?: boolean;
6
+ billing?: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface SupportMessageDto {
2
+ role: 'user' | 'assistant';
3
+ text: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -45,12 +45,6 @@ export interface WizardStructuredInputDto {
45
45
  calendarNeeded?: boolean;
46
46
  agentName?: string;
47
47
  }
48
- export interface WizardPersonalityDto {
49
- defaultMode: string;
50
- description: string;
51
- alternateMode?: string;
52
- trigger?: string;
53
- }
54
48
  export interface WizardGenerateResponseDto {
55
49
  companyName: string;
56
50
  agentName: string;
@@ -69,7 +63,6 @@ export interface WizardGenerateResponseDto {
69
63
  followUpConfig?: WizardFollowUpConfigDto;
70
64
  calendarConfig?: boolean;
71
65
  settingsHints?: Record<string, any>;
72
- personality?: WizardPersonalityDto;
73
66
  postSetupChecklist?: WizardPostSetupChecklistDto;
74
67
  }
75
68
  export interface WizardDomainDto {
@@ -78,7 +71,7 @@ export interface WizardDomainDto {
78
71
  }
79
72
  export interface WizardRefineRequestDto {
80
73
  sessionId: string;
81
- field: 'about' | 'role' | 'audience' | 'behavior' | 'spinYaml' | 'escalationRules';
74
+ field: 'about' | 'role' | 'audience' | 'behavior' | 'spinYaml';
82
75
  currentValue: string;
83
76
  instruction: string;
84
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.7.22",
3
+ "version": "4.7.25",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",