@rodrigobeber/patoai-dtos 4.7.26 → 4.7.28
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/wizard/wizard.dto.d.ts +31 -0
- package/package.json +1 -1
|
@@ -11,6 +11,9 @@ export interface WizardChatResponseDto {
|
|
|
11
11
|
done: boolean;
|
|
12
12
|
detectedType: 'sdr' | 'support' | null;
|
|
13
13
|
detectedIndustry: string | null;
|
|
14
|
+
/** URLs que o usuário ofereceu como fonte do negócio (site/catálogo/docs), extraídas da
|
|
15
|
+
* mensagem pela IA do chat — o frontend as anexa como material. */
|
|
16
|
+
sourceUrls?: string[];
|
|
14
17
|
}
|
|
15
18
|
export interface WizardGenerateRequestDto {
|
|
16
19
|
sessionId: string;
|
|
@@ -78,3 +81,31 @@ export interface WizardRefineRequestDto {
|
|
|
78
81
|
export interface WizardRefineResponseDto {
|
|
79
82
|
refined: string;
|
|
80
83
|
}
|
|
84
|
+
export type WizardMaterialKind = 'text' | 'url' | 'file';
|
|
85
|
+
export type WizardMaterialStatus = 'ok' | 'thin' | 'error';
|
|
86
|
+
/** Material anexado pelo usuário no chat do wizard (texto/URL/arquivo), já com texto extraído no
|
|
87
|
+
* backend. O texto completo NÃO trafega ao frontend — só `preview` (início) + `chars`. */
|
|
88
|
+
export interface WizardMaterialDto {
|
|
89
|
+
id: string;
|
|
90
|
+
kind: WizardMaterialKind;
|
|
91
|
+
name: string;
|
|
92
|
+
status: WizardMaterialStatus;
|
|
93
|
+
chars: number;
|
|
94
|
+
preview: string;
|
|
95
|
+
error?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface WizardIngestTextRequestDto {
|
|
98
|
+
sessionId: string;
|
|
99
|
+
name?: string;
|
|
100
|
+
text: string;
|
|
101
|
+
}
|
|
102
|
+
export interface WizardIngestUrlRequestDto {
|
|
103
|
+
sessionId: string;
|
|
104
|
+
url: string;
|
|
105
|
+
}
|
|
106
|
+
export interface WizardMaterialResponseDto {
|
|
107
|
+
material: WizardMaterialDto;
|
|
108
|
+
}
|
|
109
|
+
export interface WizardMaterialsResponseDto {
|
|
110
|
+
materials: WizardMaterialDto[];
|
|
111
|
+
}
|