evo360-types 1.3.108 → 1.3.109
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/apps/evo-chat/chatbee/zod-schemas.d.ts +54 -0
- package/dist/apps/evo-hub-ia/channel/zod-schemas.d.ts +19 -0
- package/dist/apps/evo-hub-ia/channel/zod-schemas.js +13 -1
- package/dist/apps/evo-hub-ia/channel/zod-schemas.ts +13 -1
- package/dist/types/evo-hub-ia/channel/index.d.ts +12 -0
- package/dist/types/evo-hub-ia/channel/index.js +7 -1
- package/dist/types/evo-hub-ia/channel/index.ts +15 -0
- package/package.json +1 -1
|
@@ -18,19 +18,37 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
|
|
|
18
18
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
19
19
|
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
20
20
|
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
enable_audio_transcription: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
allow_enable_ai_service: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
allow_reply_mode: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
transcribe_audio_when_ai_disabled: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
suggest_agenda_action: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
task_creation: z.ZodEnum<["disabled", "suggestion", "create"]>;
|
|
21
27
|
system_message_prompt: z.ZodString;
|
|
22
28
|
}, "strip", z.ZodTypeAny, {
|
|
23
29
|
active: boolean;
|
|
24
30
|
default_operation_mode: "reply" | "suggestion";
|
|
25
31
|
enabled_for_new_contacts: boolean;
|
|
26
32
|
auto_reactivate: boolean;
|
|
33
|
+
enable_audio_transcription: boolean;
|
|
34
|
+
allow_enable_ai_service: boolean;
|
|
35
|
+
allow_reply_mode: boolean;
|
|
36
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
37
|
+
suggest_agenda_action: boolean;
|
|
38
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
27
39
|
system_message_prompt: string;
|
|
28
40
|
}, {
|
|
29
41
|
default_operation_mode: "reply" | "suggestion";
|
|
42
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
30
43
|
system_message_prompt: string;
|
|
31
44
|
active?: boolean | undefined;
|
|
32
45
|
enabled_for_new_contacts?: boolean | undefined;
|
|
33
46
|
auto_reactivate?: boolean | undefined;
|
|
47
|
+
enable_audio_transcription?: boolean | undefined;
|
|
48
|
+
allow_enable_ai_service?: boolean | undefined;
|
|
49
|
+
allow_reply_mode?: boolean | undefined;
|
|
50
|
+
transcribe_audio_when_ai_disabled?: boolean | undefined;
|
|
51
|
+
suggest_agenda_action?: boolean | undefined;
|
|
34
52
|
}>;
|
|
35
53
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
36
54
|
id: z.ZodString;
|
|
@@ -51,19 +69,37 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
|
|
|
51
69
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
52
70
|
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
53
71
|
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
72
|
+
enable_audio_transcription: z.ZodDefault<z.ZodBoolean>;
|
|
73
|
+
allow_enable_ai_service: z.ZodDefault<z.ZodBoolean>;
|
|
74
|
+
allow_reply_mode: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
+
transcribe_audio_when_ai_disabled: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
suggest_agenda_action: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
task_creation: z.ZodEnum<["disabled", "suggestion", "create"]>;
|
|
54
78
|
system_message_prompt: z.ZodString;
|
|
55
79
|
}, "strip", z.ZodTypeAny, {
|
|
56
80
|
active: boolean;
|
|
57
81
|
default_operation_mode: "reply" | "suggestion";
|
|
58
82
|
enabled_for_new_contacts: boolean;
|
|
59
83
|
auto_reactivate: boolean;
|
|
84
|
+
enable_audio_transcription: boolean;
|
|
85
|
+
allow_enable_ai_service: boolean;
|
|
86
|
+
allow_reply_mode: boolean;
|
|
87
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
88
|
+
suggest_agenda_action: boolean;
|
|
89
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
60
90
|
system_message_prompt: string;
|
|
61
91
|
}, {
|
|
62
92
|
default_operation_mode: "reply" | "suggestion";
|
|
93
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
63
94
|
system_message_prompt: string;
|
|
64
95
|
active?: boolean | undefined;
|
|
65
96
|
enabled_for_new_contacts?: boolean | undefined;
|
|
66
97
|
auto_reactivate?: boolean | undefined;
|
|
98
|
+
enable_audio_transcription?: boolean | undefined;
|
|
99
|
+
allow_enable_ai_service?: boolean | undefined;
|
|
100
|
+
allow_reply_mode?: boolean | undefined;
|
|
101
|
+
transcribe_audio_when_ai_disabled?: boolean | undefined;
|
|
102
|
+
suggest_agenda_action?: boolean | undefined;
|
|
67
103
|
}>;
|
|
68
104
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
69
105
|
id: z.ZodString;
|
|
@@ -84,18 +120,36 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
|
|
|
84
120
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
85
121
|
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
86
122
|
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
+
enable_audio_transcription: z.ZodDefault<z.ZodBoolean>;
|
|
124
|
+
allow_enable_ai_service: z.ZodDefault<z.ZodBoolean>;
|
|
125
|
+
allow_reply_mode: z.ZodDefault<z.ZodBoolean>;
|
|
126
|
+
transcribe_audio_when_ai_disabled: z.ZodDefault<z.ZodBoolean>;
|
|
127
|
+
suggest_agenda_action: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
task_creation: z.ZodEnum<["disabled", "suggestion", "create"]>;
|
|
87
129
|
system_message_prompt: z.ZodString;
|
|
88
130
|
}, "strip", z.ZodTypeAny, {
|
|
89
131
|
active: boolean;
|
|
90
132
|
default_operation_mode: "reply" | "suggestion";
|
|
91
133
|
enabled_for_new_contacts: boolean;
|
|
92
134
|
auto_reactivate: boolean;
|
|
135
|
+
enable_audio_transcription: boolean;
|
|
136
|
+
allow_enable_ai_service: boolean;
|
|
137
|
+
allow_reply_mode: boolean;
|
|
138
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
139
|
+
suggest_agenda_action: boolean;
|
|
140
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
93
141
|
system_message_prompt: string;
|
|
94
142
|
}, {
|
|
95
143
|
default_operation_mode: "reply" | "suggestion";
|
|
144
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
96
145
|
system_message_prompt: string;
|
|
97
146
|
active?: boolean | undefined;
|
|
98
147
|
enabled_for_new_contacts?: boolean | undefined;
|
|
99
148
|
auto_reactivate?: boolean | undefined;
|
|
149
|
+
enable_audio_transcription?: boolean | undefined;
|
|
150
|
+
allow_enable_ai_service?: boolean | undefined;
|
|
151
|
+
allow_reply_mode?: boolean | undefined;
|
|
152
|
+
transcribe_audio_when_ai_disabled?: boolean | undefined;
|
|
153
|
+
suggest_agenda_action?: boolean | undefined;
|
|
100
154
|
}>;
|
|
101
155
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
@@ -1,21 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const zHubIAOperationModeSchema: z.ZodEnum<["reply", "suggestion"]>;
|
|
3
|
+
export declare const zTaskCreationModeSchema: z.ZodEnum<["disabled", "suggestion", "create"]>;
|
|
3
4
|
export declare const zHubIAConfigSchema: z.ZodObject<{
|
|
4
5
|
default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
|
|
5
6
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
6
7
|
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
7
8
|
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
enable_audio_transcription: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
allow_enable_ai_service: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
allow_reply_mode: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
transcribe_audio_when_ai_disabled: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
suggest_agenda_action: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
task_creation: z.ZodEnum<["disabled", "suggestion", "create"]>;
|
|
8
15
|
system_message_prompt: z.ZodString;
|
|
9
16
|
}, "strip", z.ZodTypeAny, {
|
|
10
17
|
active: boolean;
|
|
11
18
|
default_operation_mode: "reply" | "suggestion";
|
|
12
19
|
enabled_for_new_contacts: boolean;
|
|
13
20
|
auto_reactivate: boolean;
|
|
21
|
+
enable_audio_transcription: boolean;
|
|
22
|
+
allow_enable_ai_service: boolean;
|
|
23
|
+
allow_reply_mode: boolean;
|
|
24
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
25
|
+
suggest_agenda_action: boolean;
|
|
26
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
14
27
|
system_message_prompt: string;
|
|
15
28
|
}, {
|
|
16
29
|
default_operation_mode: "reply" | "suggestion";
|
|
30
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
17
31
|
system_message_prompt: string;
|
|
18
32
|
active?: boolean | undefined;
|
|
19
33
|
enabled_for_new_contacts?: boolean | undefined;
|
|
20
34
|
auto_reactivate?: boolean | undefined;
|
|
35
|
+
enable_audio_transcription?: boolean | undefined;
|
|
36
|
+
allow_enable_ai_service?: boolean | undefined;
|
|
37
|
+
allow_reply_mode?: boolean | undefined;
|
|
38
|
+
transcribe_audio_when_ai_disabled?: boolean | undefined;
|
|
39
|
+
suggest_agenda_action?: boolean | undefined;
|
|
21
40
|
}>;
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zHubIAConfigSchema = exports.zHubIAOperationModeSchema = void 0;
|
|
3
|
+
exports.zHubIAConfigSchema = exports.zTaskCreationModeSchema = exports.zHubIAOperationModeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
// ───────── HubIA Operation Mode ─────────
|
|
6
6
|
exports.zHubIAOperationModeSchema = zod_1.z.enum(["reply", "suggestion"]);
|
|
7
|
+
// ───────── Task Creation Mode ─────────
|
|
8
|
+
exports.zTaskCreationModeSchema = zod_1.z.enum([
|
|
9
|
+
"disabled",
|
|
10
|
+
"suggestion",
|
|
11
|
+
"create",
|
|
12
|
+
]);
|
|
7
13
|
// ───────── HubIA Config ─────────
|
|
8
14
|
exports.zHubIAConfigSchema = zod_1.z.object({
|
|
9
15
|
default_operation_mode: exports.zHubIAOperationModeSchema, // Modo de operação padrão
|
|
10
16
|
active: zod_1.z.boolean().default(false), // Indica se a IA está ativa (default: false)
|
|
11
17
|
enabled_for_new_contacts: zod_1.z.boolean().default(false), // Ativado para novos contatos (default: false)
|
|
12
18
|
auto_reactivate: zod_1.z.boolean().default(false), // Reativar automaticamente (default: false)
|
|
19
|
+
enable_audio_transcription: zod_1.z.boolean().default(false), // Habilitar transcrever áudio
|
|
20
|
+
allow_enable_ai_service: zod_1.z.boolean().default(false), // Permitir ativar atendimento por IA
|
|
21
|
+
allow_reply_mode: zod_1.z.boolean().default(false), // Permitir mode reply
|
|
22
|
+
transcribe_audio_when_ai_disabled: zod_1.z.boolean().default(false), // Transcrever audio IA desativada
|
|
23
|
+
suggest_agenda_action: zod_1.z.boolean().default(false), // Sugerir uma ação na agenda
|
|
24
|
+
task_creation: exports.zTaskCreationModeSchema, // Criação de tarefas
|
|
13
25
|
system_message_prompt: zod_1.z.string(), // Prompt da mensagem do sistema
|
|
14
26
|
});
|
|
@@ -3,12 +3,24 @@ import { z } from "zod";
|
|
|
3
3
|
// ───────── HubIA Operation Mode ─────────
|
|
4
4
|
export const zHubIAOperationModeSchema = z.enum(["reply", "suggestion"]);
|
|
5
5
|
|
|
6
|
+
// ───────── Task Creation Mode ─────────
|
|
7
|
+
export const zTaskCreationModeSchema = z.enum([
|
|
8
|
+
"disabled",
|
|
9
|
+
"suggestion",
|
|
10
|
+
"create",
|
|
11
|
+
]);
|
|
12
|
+
|
|
6
13
|
// ───────── HubIA Config ─────────
|
|
7
14
|
export const zHubIAConfigSchema = z.object({
|
|
8
15
|
default_operation_mode: zHubIAOperationModeSchema, // Modo de operação padrão
|
|
9
16
|
active: z.boolean().default(false), // Indica se a IA está ativa (default: false)
|
|
10
17
|
enabled_for_new_contacts: z.boolean().default(false), // Ativado para novos contatos (default: false)
|
|
11
18
|
auto_reactivate: z.boolean().default(false), // Reativar automaticamente (default: false)
|
|
19
|
+
enable_audio_transcription: z.boolean().default(false), // Habilitar transcrever áudio
|
|
20
|
+
allow_enable_ai_service: z.boolean().default(false), // Permitir ativar atendimento por IA
|
|
21
|
+
allow_reply_mode: z.boolean().default(false), // Permitir mode reply
|
|
22
|
+
transcribe_audio_when_ai_disabled: z.boolean().default(false), // Transcrever audio IA desativada
|
|
23
|
+
suggest_agenda_action: z.boolean().default(false), // Sugerir uma ação na agenda
|
|
24
|
+
task_creation: zTaskCreationModeSchema, // Criação de tarefas
|
|
12
25
|
system_message_prompt: z.string(), // Prompt da mensagem do sistema
|
|
13
26
|
});
|
|
14
|
-
|
|
@@ -3,11 +3,23 @@ export declare enum IHubIAOperationMode {
|
|
|
3
3
|
Reply = "reply",// Modo de resposta automática
|
|
4
4
|
Suggestion = "suggestion"
|
|
5
5
|
}
|
|
6
|
+
export type TaskCreationMode = "disabled" | "suggestion" | "create";
|
|
7
|
+
export declare enum ITaskCreationMode {
|
|
8
|
+
Disabled = "disabled",// Desabilitado
|
|
9
|
+
Suggestion = "suggestion",// Sugestão
|
|
10
|
+
Create = "create"
|
|
11
|
+
}
|
|
6
12
|
export interface IHubIAConfig {
|
|
7
13
|
default_operation_mode: HubIAOperationMode;
|
|
8
14
|
active: boolean;
|
|
9
15
|
enabled_for_new_contacts: boolean;
|
|
10
16
|
auto_reactivate: boolean;
|
|
17
|
+
enable_audio_transcription: boolean;
|
|
18
|
+
allow_enable_ai_service: boolean;
|
|
19
|
+
allow_reply_mode: boolean;
|
|
20
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
21
|
+
suggest_agenda_action: boolean;
|
|
22
|
+
task_creation: TaskCreationMode;
|
|
11
23
|
system_message_prompt: string;
|
|
12
24
|
[key: string]: unknown;
|
|
13
25
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IHubIAOperationMode = void 0;
|
|
3
|
+
exports.ITaskCreationMode = exports.IHubIAOperationMode = void 0;
|
|
4
4
|
var IHubIAOperationMode;
|
|
5
5
|
(function (IHubIAOperationMode) {
|
|
6
6
|
IHubIAOperationMode["Reply"] = "reply";
|
|
7
7
|
IHubIAOperationMode["Suggestion"] = "suggestion";
|
|
8
8
|
})(IHubIAOperationMode || (exports.IHubIAOperationMode = IHubIAOperationMode = {}));
|
|
9
|
+
var ITaskCreationMode;
|
|
10
|
+
(function (ITaskCreationMode) {
|
|
11
|
+
ITaskCreationMode["Disabled"] = "disabled";
|
|
12
|
+
ITaskCreationMode["Suggestion"] = "suggestion";
|
|
13
|
+
ITaskCreationMode["Create"] = "create";
|
|
14
|
+
})(ITaskCreationMode || (exports.ITaskCreationMode = ITaskCreationMode = {}));
|
|
@@ -6,12 +6,27 @@ export enum IHubIAOperationMode {
|
|
|
6
6
|
Suggestion = "suggestion", // Modo de sugestão de respostas
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
// ───────── Task Creation Mode ─────────
|
|
10
|
+
export type TaskCreationMode = "disabled" | "suggestion" | "create";
|
|
11
|
+
|
|
12
|
+
export enum ITaskCreationMode {
|
|
13
|
+
Disabled = "disabled", // Desabilitado
|
|
14
|
+
Suggestion = "suggestion", // Sugestão
|
|
15
|
+
Create = "create", // Criar
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
// ───────── HubIA Config ─────────
|
|
10
19
|
export interface IHubIAConfig {
|
|
11
20
|
default_operation_mode: HubIAOperationMode; // Modo de operação padrão
|
|
12
21
|
active: boolean; // Indica se a IA está ativa (default: false)
|
|
13
22
|
enabled_for_new_contacts: boolean; // Ativado para novos contatos (default: false)
|
|
14
23
|
auto_reactivate: boolean; // Reativar automaticamente (default: false)
|
|
24
|
+
enable_audio_transcription: boolean; // Habilitar transcrever áudio
|
|
25
|
+
allow_enable_ai_service: boolean; // Permitir ativar atendimento por IA
|
|
26
|
+
allow_reply_mode: boolean; // Permitir mode reply
|
|
27
|
+
transcribe_audio_when_ai_disabled: boolean; // Transcrever audio IA desativada
|
|
28
|
+
suggest_agenda_action: boolean; // Sugerir uma ação na agenda
|
|
29
|
+
task_creation: TaskCreationMode; // Criação de tarefas
|
|
15
30
|
system_message_prompt: string; // Prompt da mensagem do sistema
|
|
16
31
|
[key: string]: unknown; // index signature
|
|
17
32
|
}
|