@besales/mcp 0.1.0 → 0.11.1
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/README.md +272 -17
- package/dist/auth/connection-store.d.ts +58 -0
- package/dist/auth/connection-store.js +208 -0
- package/dist/auth/connection-store.js.map +1 -0
- package/dist/auth/oauth-client.d.ts +27 -2
- package/dist/auth/oauth-client.js +62 -11
- package/dist/auth/oauth-client.js.map +1 -1
- package/dist/auth/session-workspace.d.ts +2 -0
- package/dist/auth/session-workspace.js +20 -0
- package/dist/auth/session-workspace.js.map +1 -0
- package/dist/auth/token-storage.d.ts +19 -5
- package/dist/auth/token-storage.js +11 -6
- package/dist/auth/token-storage.js.map +1 -1
- package/dist/cli.d.ts +2 -7
- package/dist/cli.js +111 -33
- package/dist/cli.js.map +1 -1
- package/dist/http/api-client.d.ts +4 -13
- package/dist/http/api-client.js +18 -18
- package/dist/http/api-client.js.map +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/instructions/server-instructions.d.ts +15 -0
- package/dist/instructions/server-instructions.js +243 -0
- package/dist/instructions/server-instructions.js.map +1 -0
- package/dist/package-metadata.js +7 -1
- package/dist/package-metadata.js.map +1 -1
- package/dist/resources/concepts/feedback-sheets.md +77 -0
- package/dist/resources/concepts/sandbox.md +13 -0
- package/dist/resources/concepts/workbook-classification.md +241 -0
- package/dist/resources/docs/agent-behavior.md +393 -0
- package/dist/resources/docs/crm-integration.md +535 -0
- package/dist/resources/docs/files-and-uploads.md +295 -0
- package/dist/resources/docs/knowledge-base.md +521 -0
- package/dist/resources/docs/pipeline-builder.md +221 -0
- package/dist/resources/docs/pipeline-settings-deep.md +221 -0
- package/dist/resources/docs/platforms.md +513 -0
- package/dist/resources/docs/prompt-anatomy.md +298 -0
- package/dist/resources/docs/prompt-principles.md +289 -0
- package/dist/resources/registry.js +34 -12
- package/dist/resources/registry.js.map +1 -1
- package/dist/resources/workflows/compare-models.md +46 -0
- package/dist/resources/workflows/connect-crm-from-scratch.md +89 -0
- package/dist/resources/workflows/connect-datasource-from-scratch.md +92 -0
- package/dist/resources/workflows/extract-from-document.md +36 -0
- package/dist/resources/workflows/iterate-with-sandbox.md +31 -0
- package/dist/resources/workflows/platform-setup-from-scratch.md +113 -0
- package/dist/resources/workflows/production-readiness-check.md +41 -0
- package/dist/schemas/mcp-tools.json +2636 -182
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/tools/definitions/agent-design.d.ts +215 -0
- package/dist/tools/definitions/agent-design.js +643 -0
- package/dist/tools/definitions/agent-design.js.map +1 -0
- package/dist/tools/definitions/crm-platform.d.ts +211 -0
- package/dist/tools/definitions/crm-platform.js +1070 -0
- package/dist/tools/definitions/crm-platform.js.map +1 -0
- package/dist/tools/definitions/datasource.d.ts +40 -0
- package/dist/tools/definitions/datasource.js +196 -0
- package/dist/tools/definitions/datasource.js.map +1 -0
- package/dist/tools/definitions/knowledge.d.ts +215 -0
- package/dist/tools/definitions/knowledge.js +782 -0
- package/dist/tools/definitions/knowledge.js.map +1 -0
- package/dist/tools/definitions/model-comparison.d.ts +25 -0
- package/dist/tools/definitions/model-comparison.js +101 -0
- package/dist/tools/definitions/model-comparison.js.map +1 -0
- package/dist/tools/definitions/platform-setup.d.ts +412 -0
- package/dist/tools/definitions/platform-setup.js +738 -0
- package/dist/tools/definitions/platform-setup.js.map +1 -0
- package/dist/tools/definitions/session.d.ts +11 -0
- package/dist/tools/definitions/session.js +86 -0
- package/dist/tools/definitions/session.js.map +1 -0
- package/dist/tools/definitions/shared.d.ts +742 -0
- package/dist/tools/definitions/shared.js +773 -0
- package/dist/tools/definitions/shared.js.map +1 -0
- package/dist/tools/definitions.d.ts +873 -88
- package/dist/tools/definitions.js +14 -856
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/registry.d.ts +3 -1
- package/dist/tools/registry.js +90 -11
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/result.d.ts +1 -1
- package/dist/tools/result.js +12 -4
- package/dist/tools/result.js.map +1 -1
- package/dist/utils/logger.js +2 -1
- package/dist/utils/logger.js.map +1 -1
- package/docs/host-setup.md +34 -15
- package/package.json +2 -2
- package/scripts/install-claude-desktop.js +89 -11
- package/scripts/mock-api-server.js +1 -1
- package/scripts/mock-credentials.js +49 -6
- package/dist/types/api-contract.gen.d.ts +0 -6975
- package/dist/types/api-contract.gen.js +0 -6
- package/dist/types/api-contract.gen.js.map +0 -1
|
@@ -0,0 +1,742 @@
|
|
|
1
|
+
import { z, type ZodType } from 'zod';
|
|
2
|
+
import type { ConnectionStore } from '../../auth/connection-store.js';
|
|
3
|
+
import type { ApiMethod, ToolApiClient } from '../../http/api-client.js';
|
|
4
|
+
export interface ApiToolRequest {
|
|
5
|
+
readonly method?: ApiMethod;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
readonly body?: unknown;
|
|
8
|
+
}
|
|
9
|
+
/** Контекст для локальных (не-API) тулов: keychain-store + живой env процесса. */
|
|
10
|
+
export interface LocalToolContext {
|
|
11
|
+
readonly store: ConnectionStore;
|
|
12
|
+
readonly env: NodeJS.ProcessEnv;
|
|
13
|
+
}
|
|
14
|
+
export interface ToolDefinition<Input> {
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly requiredFields: readonly string[];
|
|
17
|
+
readonly schema: ZodType<Input>;
|
|
18
|
+
readonly defaultWorkspaceId?: boolean;
|
|
19
|
+
/** API-проксирующие тулы. Взаимоисключающе с `localHandler`. */
|
|
20
|
+
readonly createRequest?: (input: Input) => ApiToolRequest;
|
|
21
|
+
/**
|
|
22
|
+
* Локальные тулы без обращения к backend (работают с keychain-store + env +
|
|
23
|
+
* in-memory session state). Если задан — registry вызывает его вместо
|
|
24
|
+
* resolveWorkspace + createRequest. Взаимоисключающе с `createRequest`.
|
|
25
|
+
*/
|
|
26
|
+
readonly localHandler?: (input: Input, ctx: LocalToolContext) => Promise<unknown> | unknown;
|
|
27
|
+
readonly enhanceResponse?: (response: unknown, input: Input) => unknown;
|
|
28
|
+
readonly restartToolName?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CreateToolsOptions {
|
|
31
|
+
readonly apiClient?: ToolApiClient;
|
|
32
|
+
}
|
|
33
|
+
export declare const uuidSchema: z.ZodString;
|
|
34
|
+
export declare const anyObjectSchema: z.ZodObject<{}, z.core.$loose>;
|
|
35
|
+
export declare const optionalAnyObjectSchema: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
36
|
+
export declare const outcomeSchema: z.ZodEnum<{
|
|
37
|
+
won: "won";
|
|
38
|
+
lost: "lost";
|
|
39
|
+
in_progress: "in_progress";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const platformSetupConfirmationSchema: {
|
|
42
|
+
explicit_confirmation: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
confirmation_reason: z.ZodOptional<z.ZodString>;
|
|
44
|
+
};
|
|
45
|
+
export declare const modelLaneSchema: z.ZodEnum<{
|
|
46
|
+
CHEAP: "CHEAP";
|
|
47
|
+
STANDARD: "STANDARD";
|
|
48
|
+
DEEP: "DEEP";
|
|
49
|
+
}>;
|
|
50
|
+
export declare const MAX_FILE_UPLOAD_BYTES: number;
|
|
51
|
+
export declare const storedFileTypeSchema: z.ZodEnum<{
|
|
52
|
+
IMAGE: "IMAGE";
|
|
53
|
+
DOCUMENT: "DOCUMENT";
|
|
54
|
+
VIDEO: "VIDEO";
|
|
55
|
+
AUDIO: "AUDIO";
|
|
56
|
+
VOICE: "VOICE";
|
|
57
|
+
VIDEO_NOTE: "VIDEO_NOTE";
|
|
58
|
+
OTHER: "OTHER";
|
|
59
|
+
}>;
|
|
60
|
+
export declare const mcpFileSourceSchema: z.ZodEnum<{
|
|
61
|
+
OTHER: "OTHER";
|
|
62
|
+
USER_UPLOAD: "USER_UPLOAD";
|
|
63
|
+
AGENT_GREETING: "AGENT_GREETING";
|
|
64
|
+
CAMPAIGN: "CAMPAIGN";
|
|
65
|
+
CRM_IMPORT: "CRM_IMPORT";
|
|
66
|
+
}>;
|
|
67
|
+
export declare const apiKeyPlatformTypeSchema: z.ZodEnum<{
|
|
68
|
+
TelegramBot: "TelegramBot";
|
|
69
|
+
Wazzup: "Wazzup";
|
|
70
|
+
Salebot: "Salebot";
|
|
71
|
+
SmsGorod: "SmsGorod";
|
|
72
|
+
VKon: "VKon";
|
|
73
|
+
GetCourse: "GetCourse";
|
|
74
|
+
WebWidget: "WebWidget";
|
|
75
|
+
Bitrix24Bot: "Bitrix24Bot";
|
|
76
|
+
}>;
|
|
77
|
+
export declare const oauthPlatformTypeSchema: z.ZodEnum<{
|
|
78
|
+
Instagram: "Instagram";
|
|
79
|
+
Avito: "Avito";
|
|
80
|
+
}>;
|
|
81
|
+
export declare const provisionableCrmTypeSchema: z.ZodEnum<{
|
|
82
|
+
GETCOURSE: "GETCOURSE";
|
|
83
|
+
TELEGRAM: "TELEGRAM";
|
|
84
|
+
AMOCRM: "AMOCRM";
|
|
85
|
+
BITRIX24: "BITRIX24";
|
|
86
|
+
}>;
|
|
87
|
+
export declare const fieldSpecialPurposeSchema: z.ZodEnum<{
|
|
88
|
+
phone: "phone";
|
|
89
|
+
telegramId: "telegramId";
|
|
90
|
+
username: "username";
|
|
91
|
+
avitoId: "avitoId";
|
|
92
|
+
instagramId: "instagramId";
|
|
93
|
+
vkonId: "vkonId";
|
|
94
|
+
}>;
|
|
95
|
+
export declare const crmFieldMappingItemSchema: z.ZodObject<{
|
|
96
|
+
crm_field_id: z.ZodString;
|
|
97
|
+
crm_field_name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
save_as: z.ZodString;
|
|
99
|
+
enabled: z.ZodBoolean;
|
|
100
|
+
special_purpose: z.ZodOptional<z.ZodEnum<{
|
|
101
|
+
phone: "phone";
|
|
102
|
+
telegramId: "telegramId";
|
|
103
|
+
username: "username";
|
|
104
|
+
avitoId: "avitoId";
|
|
105
|
+
instagramId: "instagramId";
|
|
106
|
+
vkonId: "vkonId";
|
|
107
|
+
}>>;
|
|
108
|
+
category: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
export declare const routingStrategySchema: z.ZodEnum<{
|
|
111
|
+
LEAD_STATUS: "LEAD_STATUS";
|
|
112
|
+
CUSTOM_VARIABLE: "CUSTOM_VARIABLE";
|
|
113
|
+
}>;
|
|
114
|
+
export declare const triggerScopeSchema: z.ZodOptional<z.ZodEnum<{
|
|
115
|
+
ON_USER_MESSAGE: "ON_USER_MESSAGE";
|
|
116
|
+
}>>;
|
|
117
|
+
export declare const followUpSequenceTypeSchema: z.ZodEnum<{
|
|
118
|
+
MEETING_REMINDER: "MEETING_REMINDER";
|
|
119
|
+
INACTIVE_USER_REACTIVATION: "INACTIVE_USER_REACTIVATION";
|
|
120
|
+
LOST_CLIENTS: "LOST_CLIENTS";
|
|
121
|
+
}>;
|
|
122
|
+
export declare const followUpTriggerSchema: z.ZodEnum<{
|
|
123
|
+
LOST_CLIENTS: "LOST_CLIENTS";
|
|
124
|
+
USER_INACTIVITY: "USER_INACTIVITY";
|
|
125
|
+
DEAL_CLOSED: "DEAL_CLOSED";
|
|
126
|
+
BIRTHDAY_DATE: "BIRTHDAY_DATE";
|
|
127
|
+
MEETING_TIME: "MEETING_TIME";
|
|
128
|
+
CUSTOM_SCHEDULE: "CUSTOM_SCHEDULE";
|
|
129
|
+
}>;
|
|
130
|
+
export declare const analysisModeSchema: z.ZodEnum<{
|
|
131
|
+
grammar: "grammar";
|
|
132
|
+
structure: "structure";
|
|
133
|
+
industry: "industry";
|
|
134
|
+
contradictions: "contradictions";
|
|
135
|
+
completeness: "completeness";
|
|
136
|
+
}>;
|
|
137
|
+
export declare const promptGenerationStageOutputSchema: z.ZodObject<{
|
|
138
|
+
name: z.ZodEnum<{
|
|
139
|
+
structure_builder: "structure_builder";
|
|
140
|
+
industry_validator: "industry_validator";
|
|
141
|
+
prompt_tester: "prompt_tester";
|
|
142
|
+
finalizer: "finalizer";
|
|
143
|
+
}>;
|
|
144
|
+
output: z.ZodObject<{}, z.core.$loose>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export declare const promptAnalysisStageOutputSchema: z.ZodObject<{
|
|
147
|
+
name: z.ZodEnum<{
|
|
148
|
+
grammar: "grammar";
|
|
149
|
+
structure: "structure";
|
|
150
|
+
industry: "industry";
|
|
151
|
+
aggregation: "aggregation";
|
|
152
|
+
}>;
|
|
153
|
+
output: z.ZodObject<{}, z.core.$loose>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
export declare const icpAnalysisSegmentSchema: z.ZodObject<{
|
|
156
|
+
id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
description: z.ZodOptional<z.ZodString>;
|
|
159
|
+
demographics: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
160
|
+
pains: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
161
|
+
motivations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
162
|
+
language_style: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export declare const icpAnalysisPersonaSchema: z.ZodObject<{
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
segment_id: z.ZodString;
|
|
167
|
+
description: z.ZodOptional<z.ZodString>;
|
|
168
|
+
pain_points: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
169
|
+
goals: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
170
|
+
objections: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
171
|
+
messaging_hints: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export declare const scenarioSituationSchema: z.ZodObject<{
|
|
174
|
+
role: z.ZodEnum<{
|
|
175
|
+
client: "client";
|
|
176
|
+
agent: "agent";
|
|
177
|
+
}>;
|
|
178
|
+
text: z.ZodString;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export declare const generatedScenarioSchema: z.ZodPipe<z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
description: z.ZodOptional<z.ZodString>;
|
|
183
|
+
segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
184
|
+
segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
situations: z.ZodArray<z.ZodObject<{
|
|
186
|
+
role: z.ZodEnum<{
|
|
187
|
+
client: "client";
|
|
188
|
+
agent: "agent";
|
|
189
|
+
}>;
|
|
190
|
+
text: z.ZodString;
|
|
191
|
+
}, z.core.$strip>>;
|
|
192
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
193
|
+
segment_ids: string[] | undefined;
|
|
194
|
+
name: string;
|
|
195
|
+
situations: {
|
|
196
|
+
role: "client" | "agent";
|
|
197
|
+
text: string;
|
|
198
|
+
}[];
|
|
199
|
+
description?: string | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
name: string;
|
|
202
|
+
situations: {
|
|
203
|
+
role: "client" | "agent";
|
|
204
|
+
text: string;
|
|
205
|
+
}[];
|
|
206
|
+
description?: string | undefined;
|
|
207
|
+
segment_ids?: string[] | undefined;
|
|
208
|
+
segmentIds?: string[] | undefined;
|
|
209
|
+
}>>;
|
|
210
|
+
export declare const sandboxFindingSchema: z.ZodObject<{
|
|
211
|
+
scenario_id: z.ZodOptional<z.ZodString>;
|
|
212
|
+
category: z.ZodEnum<{
|
|
213
|
+
hallucination: "hallucination";
|
|
214
|
+
wrong_action: "wrong_action";
|
|
215
|
+
wrong_routing: "wrong_routing";
|
|
216
|
+
missed_trigger: "missed_trigger";
|
|
217
|
+
wrong_pipeline_transition: "wrong_pipeline_transition";
|
|
218
|
+
rag_miss: "rag_miss";
|
|
219
|
+
bad_tone: "bad_tone";
|
|
220
|
+
other: "other";
|
|
221
|
+
}>;
|
|
222
|
+
severity: z.ZodEnum<{
|
|
223
|
+
low: "low";
|
|
224
|
+
medium: "medium";
|
|
225
|
+
critical: "critical";
|
|
226
|
+
}>;
|
|
227
|
+
message: z.ZodString;
|
|
228
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
229
|
+
turn_index: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
export declare const simulationFindingSchema: z.ZodObject<{
|
|
232
|
+
dialogue_id: z.ZodOptional<z.ZodString>;
|
|
233
|
+
category: z.ZodEnum<{
|
|
234
|
+
hallucination: "hallucination";
|
|
235
|
+
wrong_action: "wrong_action";
|
|
236
|
+
bad_tone: "bad_tone";
|
|
237
|
+
other: "other";
|
|
238
|
+
missed_context: "missed_context";
|
|
239
|
+
contradiction: "contradiction";
|
|
240
|
+
off_topic: "off_topic";
|
|
241
|
+
}>;
|
|
242
|
+
severity: z.ZodEnum<{
|
|
243
|
+
low: "low";
|
|
244
|
+
medium: "medium";
|
|
245
|
+
critical: "critical";
|
|
246
|
+
}>;
|
|
247
|
+
message: z.ZodString;
|
|
248
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
249
|
+
reference_message_index: z.ZodOptional<z.ZodNumber>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
export declare const routingRuleLeadStatusSchema: z.ZodObject<{
|
|
252
|
+
lead_status_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
253
|
+
lead_status_pipeline_crm_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
+
lead_status_pipeline_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
255
|
+
lead_status_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
export declare const agentToolPatchSchema: z.ZodObject<{
|
|
258
|
+
tool_id: z.ZodString;
|
|
259
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
is_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
+
agent_specific_conditions: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export declare const feedbackSheetRowSchema: z.ZodObject<{
|
|
264
|
+
row_number: z.ZodNumber;
|
|
265
|
+
row_hash: z.ZodString;
|
|
266
|
+
status: z.ZodEnum<{
|
|
267
|
+
in_progress: "in_progress";
|
|
268
|
+
done: "done";
|
|
269
|
+
wont_fix: "wont_fix";
|
|
270
|
+
needs_clarification: "needs_clarification";
|
|
271
|
+
}>;
|
|
272
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
export declare const agentRuntimeConfigSchema: z.ZodObject<{
|
|
275
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
276
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
277
|
+
memory_history_size: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
rag_top_k: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
rag_min_score: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
qa_min_score: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
qa_context_limit: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
max_response_symbols: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<{
|
|
284
|
+
low: "low";
|
|
285
|
+
medium: "medium";
|
|
286
|
+
minimal: "minimal";
|
|
287
|
+
high: "high";
|
|
288
|
+
max: "max";
|
|
289
|
+
}>>;
|
|
290
|
+
verbosity: z.ZodOptional<z.ZodEnum<{
|
|
291
|
+
low: "low";
|
|
292
|
+
medium: "medium";
|
|
293
|
+
high: "high";
|
|
294
|
+
}>>;
|
|
295
|
+
enable_thinking: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
297
|
+
language_code: z.ZodOptional<z.ZodString>;
|
|
298
|
+
summarize_every: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
summary_max_size: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
use_summary: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
include_crm_fields_in_memory: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
+
include_trigger_context: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
export declare const agentButtonGeneratorSchema: z.ZodObject<{
|
|
305
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
+
max_buttons: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
keyboard_type: z.ZodOptional<z.ZodEnum<{
|
|
308
|
+
INLINE: "INLINE";
|
|
309
|
+
REPLY: "REPLY";
|
|
310
|
+
}>>;
|
|
311
|
+
dynamic: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
export declare const agentOutputConfigSchema: z.ZodObject<{
|
|
314
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
315
|
+
button_generator: z.ZodOptional<z.ZodObject<{
|
|
316
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
max_buttons: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
keyboard_type: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
INLINE: "INLINE";
|
|
320
|
+
REPLY: "REPLY";
|
|
321
|
+
}>>;
|
|
322
|
+
dynamic: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
export declare const agentScopeSchema: z.ZodEnum<{
|
|
326
|
+
other: "other";
|
|
327
|
+
sale: "sale";
|
|
328
|
+
reactivation: "reactivation";
|
|
329
|
+
support: "support";
|
|
330
|
+
onboarding: "onboarding";
|
|
331
|
+
faq: "faq";
|
|
332
|
+
qualification: "qualification";
|
|
333
|
+
complaint: "complaint";
|
|
334
|
+
}>;
|
|
335
|
+
export declare const behaviorGreetingButtonSchema: z.ZodObject<{
|
|
336
|
+
id: z.ZodString;
|
|
337
|
+
label: z.ZodString;
|
|
338
|
+
text: z.ZodString;
|
|
339
|
+
order: z.ZodNumber;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
export declare const behaviorGreetingSchema: z.ZodObject<{
|
|
342
|
+
bot_greeting: z.ZodOptional<z.ZodString>;
|
|
343
|
+
greeting_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
greeting_buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
label: z.ZodString;
|
|
347
|
+
text: z.ZodString;
|
|
348
|
+
order: z.ZodNumber;
|
|
349
|
+
}, z.core.$strip>>>;
|
|
350
|
+
greeting_buttons_keyboard_type: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
INLINE: "INLINE";
|
|
352
|
+
REPLY: "REPLY";
|
|
353
|
+
}>>;
|
|
354
|
+
popup_delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
export declare const behaviorMediaHandlerSchema: z.ZodObject<{
|
|
357
|
+
behavior: z.ZodEnum<{
|
|
358
|
+
SILENT: "SILENT";
|
|
359
|
+
PROCESS_WITH_LLM: "PROCESS_WITH_LLM";
|
|
360
|
+
FIXED_RESPONSE: "FIXED_RESPONSE";
|
|
361
|
+
}>;
|
|
362
|
+
fixed_response_text: z.ZodOptional<z.ZodString>;
|
|
363
|
+
call_operator: z.ZodOptional<z.ZodBoolean>;
|
|
364
|
+
operator_comment: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
export declare const behaviorMediaHandlingSchema: z.ZodObject<{
|
|
367
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
behavior: z.ZodEnum<{
|
|
369
|
+
SILENT: "SILENT";
|
|
370
|
+
PROCESS_WITH_LLM: "PROCESS_WITH_LLM";
|
|
371
|
+
FIXED_RESPONSE: "FIXED_RESPONSE";
|
|
372
|
+
}>;
|
|
373
|
+
fixed_response_text: z.ZodOptional<z.ZodString>;
|
|
374
|
+
call_operator: z.ZodOptional<z.ZodBoolean>;
|
|
375
|
+
operator_comment: z.ZodOptional<z.ZodString>;
|
|
376
|
+
}, z.core.$strip>>;
|
|
377
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
behavior: z.ZodEnum<{
|
|
379
|
+
SILENT: "SILENT";
|
|
380
|
+
PROCESS_WITH_LLM: "PROCESS_WITH_LLM";
|
|
381
|
+
FIXED_RESPONSE: "FIXED_RESPONSE";
|
|
382
|
+
}>;
|
|
383
|
+
fixed_response_text: z.ZodOptional<z.ZodString>;
|
|
384
|
+
call_operator: z.ZodOptional<z.ZodBoolean>;
|
|
385
|
+
operator_comment: z.ZodOptional<z.ZodString>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
behavior: z.ZodEnum<{
|
|
389
|
+
SILENT: "SILENT";
|
|
390
|
+
PROCESS_WITH_LLM: "PROCESS_WITH_LLM";
|
|
391
|
+
FIXED_RESPONSE: "FIXED_RESPONSE";
|
|
392
|
+
}>;
|
|
393
|
+
fixed_response_text: z.ZodOptional<z.ZodString>;
|
|
394
|
+
call_operator: z.ZodOptional<z.ZodBoolean>;
|
|
395
|
+
operator_comment: z.ZodOptional<z.ZodString>;
|
|
396
|
+
}, z.core.$strip>>;
|
|
397
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
398
|
+
behavior: z.ZodEnum<{
|
|
399
|
+
SILENT: "SILENT";
|
|
400
|
+
PROCESS_WITH_LLM: "PROCESS_WITH_LLM";
|
|
401
|
+
FIXED_RESPONSE: "FIXED_RESPONSE";
|
|
402
|
+
}>;
|
|
403
|
+
fixed_response_text: z.ZodOptional<z.ZodString>;
|
|
404
|
+
call_operator: z.ZodOptional<z.ZodBoolean>;
|
|
405
|
+
operator_comment: z.ZodOptional<z.ZodString>;
|
|
406
|
+
}, z.core.$strip>>;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
export declare const behaviorUrlHandlingSchema: z.ZodObject<{
|
|
409
|
+
behavior: z.ZodEnum<{
|
|
410
|
+
SILENT: "SILENT";
|
|
411
|
+
FIXED_RESPONSE: "FIXED_RESPONSE";
|
|
412
|
+
PASS_THROUGH: "PASS_THROUGH";
|
|
413
|
+
PROCESS_WITH_CRAWLER: "PROCESS_WITH_CRAWLER";
|
|
414
|
+
}>;
|
|
415
|
+
fixed_response_text: z.ZodOptional<z.ZodString>;
|
|
416
|
+
call_operator: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
operator_comment: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
export declare const behaviorErrorHandlingSchema: z.ZodObject<{
|
|
420
|
+
ai_error_behavior: z.ZodOptional<z.ZodEnum<{
|
|
421
|
+
SILENT: "SILENT";
|
|
422
|
+
SEND_ERROR_MESSAGE: "SEND_ERROR_MESSAGE";
|
|
423
|
+
}>>;
|
|
424
|
+
ai_error_custom_message: z.ZodOptional<z.ZodString>;
|
|
425
|
+
call_operator_with_error: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
+
ai_error_target_stage_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
427
|
+
}, z.core.$strip>;
|
|
428
|
+
export declare const behaviorDayAvailabilitySchema: z.ZodObject<{
|
|
429
|
+
active: z.ZodBoolean;
|
|
430
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
431
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
export declare const behaviorWeekAvailabilitySchema: z.ZodObject<{
|
|
434
|
+
monday: z.ZodOptional<z.ZodObject<{
|
|
435
|
+
active: z.ZodBoolean;
|
|
436
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
437
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
438
|
+
}, z.core.$strip>>;
|
|
439
|
+
tuesday: z.ZodOptional<z.ZodObject<{
|
|
440
|
+
active: z.ZodBoolean;
|
|
441
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
442
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
443
|
+
}, z.core.$strip>>;
|
|
444
|
+
wednesday: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
active: z.ZodBoolean;
|
|
446
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
447
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, z.core.$strip>>;
|
|
449
|
+
thursday: z.ZodOptional<z.ZodObject<{
|
|
450
|
+
active: z.ZodBoolean;
|
|
451
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
452
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
453
|
+
}, z.core.$strip>>;
|
|
454
|
+
friday: z.ZodOptional<z.ZodObject<{
|
|
455
|
+
active: z.ZodBoolean;
|
|
456
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
457
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
saturday: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
active: z.ZodBoolean;
|
|
461
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
462
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
sunday: z.ZodOptional<z.ZodObject<{
|
|
465
|
+
active: z.ZodBoolean;
|
|
466
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
467
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.core.$strip>>;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
export declare const behaviorOperatorScheduleSchema: z.ZodObject<{
|
|
471
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
monday: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
active: z.ZodBoolean;
|
|
475
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
476
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
477
|
+
}, z.core.$strip>>;
|
|
478
|
+
tuesday: z.ZodOptional<z.ZodObject<{
|
|
479
|
+
active: z.ZodBoolean;
|
|
480
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
481
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
482
|
+
}, z.core.$strip>>;
|
|
483
|
+
wednesday: z.ZodOptional<z.ZodObject<{
|
|
484
|
+
active: z.ZodBoolean;
|
|
485
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
486
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, z.core.$strip>>;
|
|
488
|
+
thursday: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
active: z.ZodBoolean;
|
|
490
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
491
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>>;
|
|
493
|
+
friday: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
active: z.ZodBoolean;
|
|
495
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
496
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
497
|
+
}, z.core.$strip>>;
|
|
498
|
+
saturday: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
active: z.ZodBoolean;
|
|
500
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
501
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
sunday: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
active: z.ZodBoolean;
|
|
505
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
506
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
507
|
+
}, z.core.$strip>>;
|
|
508
|
+
}, z.core.$strip>>;
|
|
509
|
+
unavailable_message: z.ZodOptional<z.ZodString>;
|
|
510
|
+
bot_waiting_return_hours: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<6>, z.ZodLiteral<12>, z.ZodLiteral<24>]>>;
|
|
511
|
+
follow_up_waiting_return_hours: z.ZodOptional<z.ZodNumber>;
|
|
512
|
+
skip_task_creation_on_call_operator: z.ZodOptional<z.ZodBoolean>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
export declare const behaviorTypingBehaviorSchema: z.ZodObject<{
|
|
515
|
+
waiting_answer_time: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
can_interrupt: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
message_devide: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
typing_speed: z.ZodOptional<z.ZodEnum<{
|
|
519
|
+
medium: "medium";
|
|
520
|
+
slow: "slow";
|
|
521
|
+
fast: "fast";
|
|
522
|
+
}>>;
|
|
523
|
+
fake_delay: z.ZodOptional<z.ZodNumber>;
|
|
524
|
+
message_open_delay: z.ZodOptional<z.ZodNumber>;
|
|
525
|
+
go_offline: z.ZodOptional<z.ZodString>;
|
|
526
|
+
}, z.core.$strip>;
|
|
527
|
+
export declare const behaviorMessageFilterSchema: z.ZodObject<{
|
|
528
|
+
id: z.ZodString;
|
|
529
|
+
source: z.ZodString;
|
|
530
|
+
target: z.ZodString;
|
|
531
|
+
enabled: z.ZodBoolean;
|
|
532
|
+
order: z.ZodNumber;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
|
+
export declare const behaviorMessageSplittingSchema: z.ZodObject<{
|
|
535
|
+
message_chunk_separator: z.ZodOptional<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
export declare const behaviorPrivacySchema: z.ZodObject<{
|
|
538
|
+
anonymization_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
539
|
+
anonymization_disabled_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
540
|
+
FIRST_NAME: "FIRST_NAME";
|
|
541
|
+
LAST_NAME: "LAST_NAME";
|
|
542
|
+
PATRONYMIC: "PATRONYMIC";
|
|
543
|
+
PERSON: "PERSON";
|
|
544
|
+
PHONE: "PHONE";
|
|
545
|
+
EMAIL: "EMAIL";
|
|
546
|
+
INN: "INN";
|
|
547
|
+
PASSPORT: "PASSPORT";
|
|
548
|
+
CARD: "CARD";
|
|
549
|
+
DATE_OF_BIRTH: "DATE_OF_BIRTH";
|
|
550
|
+
ACCOUNT: "ACCOUNT";
|
|
551
|
+
SNILS: "SNILS";
|
|
552
|
+
OGRN: "OGRN";
|
|
553
|
+
OGRNIP: "OGRNIP";
|
|
554
|
+
SOCIAL_ID: "SOCIAL_ID";
|
|
555
|
+
}>>>;
|
|
556
|
+
}, z.core.$strip>;
|
|
557
|
+
export declare const pipelineCrmBehaviorSchema: z.ZodObject<{
|
|
558
|
+
active_pipeline_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
559
|
+
filter_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
560
|
+
status_movement: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
561
|
+
create_defaults: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
562
|
+
global: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
563
|
+
}, z.core.$strip>;
|
|
564
|
+
export declare const pipelineAutoFinishSchema: z.ZodObject<{
|
|
565
|
+
finish_auto_noanswer: z.ZodOptional<z.ZodBoolean>;
|
|
566
|
+
finish_auto_timeout: z.ZodOptional<z.ZodBoolean>;
|
|
567
|
+
finish_auto_days: z.ZodOptional<z.ZodNumber>;
|
|
568
|
+
send_finish_auto_note_to_crm: z.ZodOptional<z.ZodBoolean>;
|
|
569
|
+
finish_auto_note_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
570
|
+
}, z.core.$strip>;
|
|
571
|
+
export declare const platformAccessControlSchema: z.ZodObject<{
|
|
572
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
573
|
+
is_ai_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
574
|
+
is_user_filter_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
575
|
+
filtered_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
576
|
+
enable_cleanup_commands: z.ZodOptional<z.ZodBoolean>;
|
|
577
|
+
}, z.core.$strict>;
|
|
578
|
+
export declare const platformVariablesConfigSchema: z.ZodObject<{
|
|
579
|
+
enable_dynamic_variables: z.ZodOptional<z.ZodBoolean>;
|
|
580
|
+
clear_dynamic_vars_on_history_clear: z.ZodOptional<z.ZodBoolean>;
|
|
581
|
+
}, z.core.$strict>;
|
|
582
|
+
export declare const platformCrmBehaviorSchema: z.ZodObject<{
|
|
583
|
+
send_to_crm: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
+
use_cross_platform_history: z.ZodOptional<z.ZodBoolean>;
|
|
585
|
+
responsible_assignee_strategy: z.ZodOptional<z.ZodEnum<{
|
|
586
|
+
ROUND_ROBIN: "ROUND_ROBIN";
|
|
587
|
+
LEAST_BUSY: "LEAST_BUSY";
|
|
588
|
+
RANDOM: "RANDOM";
|
|
589
|
+
FIXED: "FIXED";
|
|
590
|
+
OPERATOR_SPECIFIC: "OPERATOR_SPECIFIC";
|
|
591
|
+
}>>;
|
|
592
|
+
fixed_responsible_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
|
+
send_start_note_to_crm: z.ZodOptional<z.ZodBoolean>;
|
|
594
|
+
start_note_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
595
|
+
send_failed_note_to_crm: z.ZodOptional<z.ZodBoolean>;
|
|
596
|
+
failed_note_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
597
|
+
send_operator_takeover_note_to_crm: z.ZodOptional<z.ZodBoolean>;
|
|
598
|
+
operator_takeover_note_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
599
|
+
deal_marker_type: z.ZodOptional<z.ZodEnum<{
|
|
600
|
+
NONE: "NONE";
|
|
601
|
+
TAG: "TAG";
|
|
602
|
+
CUSTOM_FIELD: "CUSTOM_FIELD";
|
|
603
|
+
}>>;
|
|
604
|
+
deal_marker_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
|
+
deal_marker_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
606
|
+
}, z.core.$strict>;
|
|
607
|
+
export declare const platformWidgetMarketingSchema: z.ZodObject<{
|
|
608
|
+
web_widget_allowed_origins: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
|
|
609
|
+
web_widget_show_page_info: z.ZodOptional<z.ZodBoolean>;
|
|
610
|
+
web_widget_rate_limit_per_minute: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
web_widget_customization: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
|
|
612
|
+
web_widget_marketing_field_mappings: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
|
|
613
|
+
web_widget_entry_url_variable_mapping: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
|
|
614
|
+
}, z.core.$strict>;
|
|
615
|
+
export declare const platformInstagramCommentSchema: z.ZodObject<{
|
|
616
|
+
reply_to_instagram_comments: z.ZodOptional<z.ZodBoolean>;
|
|
617
|
+
instagram_comment_handling_mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
618
|
+
instagram_comment_reply_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
619
|
+
instagram_comment_keywords: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
|
|
620
|
+
reply_to_story_mentions: z.ZodOptional<z.ZodBoolean>;
|
|
621
|
+
}, z.core.$strict>;
|
|
622
|
+
export declare const platformGeneralSettingsSchema: z.ZodObject<{
|
|
623
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
624
|
+
off_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
625
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
626
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
627
|
+
}, z.core.$strict>;
|
|
628
|
+
export declare const platformSalebotSettingsSchema: z.ZodObject<{
|
|
629
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
630
|
+
group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
631
|
+
}, z.core.$strict>;
|
|
632
|
+
export declare const platformSmsgorodSettingsSchema: z.ZodObject<{
|
|
633
|
+
channel: z.ZodOptional<z.ZodEnum<{
|
|
634
|
+
DIGIT: "DIGIT";
|
|
635
|
+
CHAR: "CHAR";
|
|
636
|
+
}>>;
|
|
637
|
+
sender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
+
}, z.core.$strict>;
|
|
639
|
+
export declare const platformBitrix24BotSettingsSchema: z.ZodObject<{
|
|
640
|
+
bot_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
641
|
+
bot_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
642
|
+
bot_name: z.ZodOptional<z.ZodString>;
|
|
643
|
+
open_line_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
644
|
+
}, z.core.$strict>;
|
|
645
|
+
export declare const getcourseTransportEnum: z.ZodEnum<{
|
|
646
|
+
Site: "Site";
|
|
647
|
+
Email: "Email";
|
|
648
|
+
SMS: "SMS";
|
|
649
|
+
Telegram: "Telegram";
|
|
650
|
+
Facebook: "Facebook";
|
|
651
|
+
VK: "VK";
|
|
652
|
+
Chatium: "Chatium";
|
|
653
|
+
WhatsApp: "WhatsApp";
|
|
654
|
+
Viber: "Viber";
|
|
655
|
+
}>;
|
|
656
|
+
export declare const platformGetcourseDepartmentSchema: z.ZodObject<{
|
|
657
|
+
id: z.ZodString;
|
|
658
|
+
label: z.ZodString;
|
|
659
|
+
}, z.core.$strict>;
|
|
660
|
+
export declare const platformGetcourseSettingsSchema: z.ZodObject<{
|
|
661
|
+
account_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
662
|
+
employee_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
663
|
+
available_transports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
664
|
+
Site: "Site";
|
|
665
|
+
Email: "Email";
|
|
666
|
+
SMS: "SMS";
|
|
667
|
+
Telegram: "Telegram";
|
|
668
|
+
Facebook: "Facebook";
|
|
669
|
+
VK: "VK";
|
|
670
|
+
Chatium: "Chatium";
|
|
671
|
+
WhatsApp: "WhatsApp";
|
|
672
|
+
Viber: "Viber";
|
|
673
|
+
}>>>;
|
|
674
|
+
default_transport: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
675
|
+
Site: "Site";
|
|
676
|
+
Email: "Email";
|
|
677
|
+
SMS: "SMS";
|
|
678
|
+
Telegram: "Telegram";
|
|
679
|
+
Facebook: "Facebook";
|
|
680
|
+
VK: "VK";
|
|
681
|
+
Chatium: "Chatium";
|
|
682
|
+
WhatsApp: "WhatsApp";
|
|
683
|
+
Viber: "Viber";
|
|
684
|
+
}>>>;
|
|
685
|
+
departments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
686
|
+
id: z.ZodString;
|
|
687
|
+
label: z.ZodString;
|
|
688
|
+
}, z.core.$strict>>>>;
|
|
689
|
+
template_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
690
|
+
template_deal_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
691
|
+
}, z.core.$strict>;
|
|
692
|
+
export declare const knowledgeTableSourceSchema: z.ZodObject<{
|
|
693
|
+
kind: z.ZodEnum<{
|
|
694
|
+
GOOGLE_SHEETS: "GOOGLE_SHEETS";
|
|
695
|
+
NATIVE: "NATIVE";
|
|
696
|
+
}>;
|
|
697
|
+
spreadsheet_url: z.ZodOptional<z.ZodString>;
|
|
698
|
+
table_schema: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
699
|
+
}, z.core.$strip>;
|
|
700
|
+
export declare function defineTool<Input>(definition: ToolDefinition<Input>): ToolDefinition<Input>;
|
|
701
|
+
export declare function compactObject<T extends Record<string, unknown>>(value: T): Partial<T>;
|
|
702
|
+
export declare function compactMetadata(metadata: {
|
|
703
|
+
total_tokens?: number;
|
|
704
|
+
models?: Record<string, string>;
|
|
705
|
+
} | undefined): Record<string, unknown> | undefined;
|
|
706
|
+
export declare function setupConfirmation(input: {
|
|
707
|
+
explicit_confirmation?: boolean;
|
|
708
|
+
confirmation_reason?: string;
|
|
709
|
+
}): Record<string, unknown>;
|
|
710
|
+
export declare function withInstructions(response: unknown, instructions: readonly string[]): unknown;
|
|
711
|
+
export declare function buildKnowledgeSpaceListQuery(scopeType?: string, channelId?: string): string;
|
|
712
|
+
export declare function buildListQuery(params: Record<string, string | number | boolean | undefined>): string;
|
|
713
|
+
export declare function buildVariableListQuery(scope: 'WORKSPACE' | 'CHANNEL', platformId?: string, filter?: 'all' | 'variables' | 'constants'): string;
|
|
714
|
+
export declare function buildVariableScopeQuery(scope: 'WORKSPACE' | 'CHANNEL', platformId?: string): string;
|
|
715
|
+
export declare function buildFileListQuery(input: {
|
|
716
|
+
file_type?: string;
|
|
717
|
+
source?: string;
|
|
718
|
+
section_id?: string;
|
|
719
|
+
limit?: number;
|
|
720
|
+
offset?: number;
|
|
721
|
+
}): string;
|
|
722
|
+
export declare function mapRuntimeConfigInput(input: z.infer<typeof agentRuntimeConfigSchema>): Record<string, unknown>;
|
|
723
|
+
export declare function mapOutputConfigInput(input: z.infer<typeof agentOutputConfigSchema>): Record<string, unknown>;
|
|
724
|
+
export declare function mapBehaviorGreetingInput(input: z.infer<typeof behaviorGreetingSchema>): Record<string, unknown>;
|
|
725
|
+
export declare function mapMediaHandlerInput(input: z.infer<typeof behaviorMediaHandlerSchema> | undefined): Record<string, unknown> | undefined;
|
|
726
|
+
export declare function mapBehaviorMediaHandlingInput(input: z.infer<typeof behaviorMediaHandlingSchema>): Record<string, unknown>;
|
|
727
|
+
export declare function mapBehaviorUrlHandlingInput(input: z.infer<typeof behaviorUrlHandlingSchema>): Record<string, unknown>;
|
|
728
|
+
export declare function mapBehaviorErrorHandlingInput(input: z.infer<typeof behaviorErrorHandlingSchema>): Record<string, unknown>;
|
|
729
|
+
export declare function mapBehaviorOperatorScheduleInput(input: z.infer<typeof behaviorOperatorScheduleSchema>): Record<string, unknown>;
|
|
730
|
+
export declare function mapBehaviorTypingInput(input: z.infer<typeof behaviorTypingBehaviorSchema>): Record<string, unknown>;
|
|
731
|
+
export declare function mapPipelineCrmBehaviorInput(input: z.infer<typeof pipelineCrmBehaviorSchema>): Record<string, unknown>;
|
|
732
|
+
export declare function mapPipelineAutoFinishInput(input: z.infer<typeof pipelineAutoFinishSchema>): Record<string, unknown>;
|
|
733
|
+
export declare function mapPlatformAccessControlInput(input: z.infer<typeof platformAccessControlSchema>): Record<string, unknown>;
|
|
734
|
+
export declare function mapPlatformVariablesConfigInput(input: z.infer<typeof platformVariablesConfigSchema>): Record<string, unknown>;
|
|
735
|
+
export declare function mapPlatformCrmBehaviorInput(input: z.infer<typeof platformCrmBehaviorSchema>): Record<string, unknown>;
|
|
736
|
+
export declare function mapPlatformWidgetMarketingInput(input: z.infer<typeof platformWidgetMarketingSchema>): Record<string, unknown>;
|
|
737
|
+
export declare function mapPlatformInstagramCommentInput(input: z.infer<typeof platformInstagramCommentSchema>): Record<string, unknown>;
|
|
738
|
+
export declare function mapPlatformGeneralSettingsInput(input: z.infer<typeof platformGeneralSettingsSchema>): Record<string, unknown>;
|
|
739
|
+
export declare function mapPlatformSalebotSettingsInput(input: z.infer<typeof platformSalebotSettingsSchema>): Record<string, unknown>;
|
|
740
|
+
export declare function mapPlatformSmsgorodSettingsInput(input: z.infer<typeof platformSmsgorodSettingsSchema>): Record<string, unknown>;
|
|
741
|
+
export declare function mapPlatformBitrix24BotSettingsInput(input: z.infer<typeof platformBitrix24BotSettingsSchema>): Record<string, unknown>;
|
|
742
|
+
export declare function mapPlatformGetcourseSettingsInput(input: z.infer<typeof platformGetcourseSettingsSchema>): Record<string, unknown>;
|