@besales/mcp 0.1.0 → 0.12.0

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.
Files changed (94) hide show
  1. package/README.md +272 -17
  2. package/dist/auth/connection-store.d.ts +58 -0
  3. package/dist/auth/connection-store.js +208 -0
  4. package/dist/auth/connection-store.js.map +1 -0
  5. package/dist/auth/oauth-client.d.ts +27 -2
  6. package/dist/auth/oauth-client.js +62 -11
  7. package/dist/auth/oauth-client.js.map +1 -1
  8. package/dist/auth/session-workspace.d.ts +2 -0
  9. package/dist/auth/session-workspace.js +20 -0
  10. package/dist/auth/session-workspace.js.map +1 -0
  11. package/dist/auth/token-storage.d.ts +19 -5
  12. package/dist/auth/token-storage.js +11 -6
  13. package/dist/auth/token-storage.js.map +1 -1
  14. package/dist/cli.d.ts +2 -7
  15. package/dist/cli.js +111 -33
  16. package/dist/cli.js.map +1 -1
  17. package/dist/http/api-client.d.ts +4 -13
  18. package/dist/http/api-client.js +18 -18
  19. package/dist/http/api-client.js.map +1 -1
  20. package/dist/index.d.ts +8 -6
  21. package/dist/index.js +3 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/instructions/server-instructions.d.ts +15 -0
  24. package/dist/instructions/server-instructions.js +245 -0
  25. package/dist/instructions/server-instructions.js.map +1 -0
  26. package/dist/package-metadata.js +7 -1
  27. package/dist/package-metadata.js.map +1 -1
  28. package/dist/resources/concepts/feedback-sheets.md +77 -0
  29. package/dist/resources/concepts/sandbox.md +13 -0
  30. package/dist/resources/concepts/workbook-classification.md +241 -0
  31. package/dist/resources/docs/agent-behavior.md +393 -0
  32. package/dist/resources/docs/crm-integration.md +535 -0
  33. package/dist/resources/docs/files-and-uploads.md +295 -0
  34. package/dist/resources/docs/knowledge-base.md +521 -0
  35. package/dist/resources/docs/pipeline-builder.md +221 -0
  36. package/dist/resources/docs/pipeline-settings-deep.md +221 -0
  37. package/dist/resources/docs/platforms.md +513 -0
  38. package/dist/resources/docs/prompt-anatomy.md +298 -0
  39. package/dist/resources/docs/prompt-principles.md +390 -0
  40. package/dist/resources/registry.js +34 -12
  41. package/dist/resources/registry.js.map +1 -1
  42. package/dist/resources/workflows/compare-models.md +46 -0
  43. package/dist/resources/workflows/connect-crm-from-scratch.md +89 -0
  44. package/dist/resources/workflows/connect-datasource-from-scratch.md +92 -0
  45. package/dist/resources/workflows/extract-from-document.md +36 -0
  46. package/dist/resources/workflows/iterate-with-sandbox.md +31 -0
  47. package/dist/resources/workflows/platform-setup-from-scratch.md +113 -0
  48. package/dist/resources/workflows/production-readiness-check.md +41 -0
  49. package/dist/schemas/mcp-tools.json +2638 -184
  50. package/dist/server.js +2 -0
  51. package/dist/server.js.map +1 -1
  52. package/dist/tools/definitions/agent-design.d.ts +215 -0
  53. package/dist/tools/definitions/agent-design.js +644 -0
  54. package/dist/tools/definitions/agent-design.js.map +1 -0
  55. package/dist/tools/definitions/crm-platform.d.ts +211 -0
  56. package/dist/tools/definitions/crm-platform.js +1070 -0
  57. package/dist/tools/definitions/crm-platform.js.map +1 -0
  58. package/dist/tools/definitions/datasource.d.ts +40 -0
  59. package/dist/tools/definitions/datasource.js +196 -0
  60. package/dist/tools/definitions/datasource.js.map +1 -0
  61. package/dist/tools/definitions/knowledge.d.ts +215 -0
  62. package/dist/tools/definitions/knowledge.js +782 -0
  63. package/dist/tools/definitions/knowledge.js.map +1 -0
  64. package/dist/tools/definitions/model-comparison.d.ts +25 -0
  65. package/dist/tools/definitions/model-comparison.js +101 -0
  66. package/dist/tools/definitions/model-comparison.js.map +1 -0
  67. package/dist/tools/definitions/platform-setup.d.ts +412 -0
  68. package/dist/tools/definitions/platform-setup.js +741 -0
  69. package/dist/tools/definitions/platform-setup.js.map +1 -0
  70. package/dist/tools/definitions/session.d.ts +11 -0
  71. package/dist/tools/definitions/session.js +86 -0
  72. package/dist/tools/definitions/session.js.map +1 -0
  73. package/dist/tools/definitions/shared.d.ts +742 -0
  74. package/dist/tools/definitions/shared.js +773 -0
  75. package/dist/tools/definitions/shared.js.map +1 -0
  76. package/dist/tools/definitions.d.ts +873 -88
  77. package/dist/tools/definitions.js +14 -856
  78. package/dist/tools/definitions.js.map +1 -1
  79. package/dist/tools/registry.d.ts +3 -1
  80. package/dist/tools/registry.js +90 -11
  81. package/dist/tools/registry.js.map +1 -1
  82. package/dist/tools/result.d.ts +1 -1
  83. package/dist/tools/result.js +12 -4
  84. package/dist/tools/result.js.map +1 -1
  85. package/dist/utils/logger.js +2 -1
  86. package/dist/utils/logger.js.map +1 -1
  87. package/docs/host-setup.md +34 -15
  88. package/package.json +2 -2
  89. package/scripts/install-claude-desktop.js +89 -11
  90. package/scripts/mock-api-server.js +1 -1
  91. package/scripts/mock-credentials.js +49 -6
  92. package/dist/types/api-contract.gen.d.ts +0 -6975
  93. package/dist/types/api-contract.gen.js +0 -6
  94. package/dist/types/api-contract.gen.js.map +0 -1
@@ -1,41 +1,30 @@
1
- import { type ZodType } from 'zod';
2
- import type { ApiMethod, ToolApiClient } from '../http/api-client.js';
3
- export interface ApiToolRequest {
4
- readonly method?: ApiMethod;
5
- readonly path: string;
6
- readonly body?: unknown;
7
- }
8
- export interface ToolDefinition<Input> {
9
- readonly name: string;
10
- readonly requiredFields: readonly string[];
11
- readonly schema: ZodType<Input>;
12
- readonly defaultWorkspaceId?: boolean;
13
- readonly createRequest: (input: Input) => ApiToolRequest;
14
- readonly enhanceResponse?: (response: unknown, input: Input) => unknown;
15
- readonly restartToolName?: string;
16
- }
17
- export interface CreateToolsOptions {
18
- readonly apiClient?: ToolApiClient;
19
- }
20
- export declare const toolDefinitions: readonly [ToolDefinition<{
1
+ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDefinition<{
21
2
  name: string;
22
- source: "from_dialogues" | "from_files" | "from_scratch" | "ai_generated";
3
+ source: "from_dialogues" | "from_files" | "from_scratch";
23
4
  workspace_id?: string | undefined;
24
5
  description?: string | undefined;
25
- }>, ToolDefinition<{
6
+ }> | import("./definitions/shared.js").ToolDefinition<{
26
7
  icp_id: string;
27
- crm_connection_id: string;
8
+ mode: "text" | "audio";
28
9
  outcome_filter: ("won" | "lost" | "in_progress")[];
29
10
  days_ago: number;
30
11
  anonymize: boolean;
31
- gdpr_confirmed: boolean;
32
- }>, ToolDefinition<{
12
+ crm_connection_id?: string | undefined;
13
+ gdpr_confirmed?: boolean | undefined;
14
+ audio_source_type?: "amocrm_leads" | "xlsx_upload" | "onlinepbx_direct" | "bitrix_openlines" | undefined;
15
+ audio_source_config?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ language?: "ru-RU" | "uz-UZ" | "kk-KZ" | "auto" | undefined;
19
+ }> | import("./definitions/shared.js").ToolDefinition<{
20
+ run_id: string;
21
+ }> | import("./definitions/shared.js").ToolDefinition<{
33
22
  icp_profile_id: string;
34
23
  workspace_id?: string | undefined;
35
24
  business_context?: {
36
25
  [x: string]: unknown;
37
26
  } | undefined;
38
- }>, ToolDefinition<{
27
+ }> | import("./definitions/shared.js").ToolDefinition<{
39
28
  operation_id: string;
40
29
  icp_profile_id: string;
41
30
  segments: {
@@ -65,18 +54,27 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
65
54
  } | undefined;
66
55
  }[];
67
56
  workspace_id?: string | undefined;
68
- }>, ToolDefinition<{
57
+ }> | import("./definitions/shared.js").ToolDefinition<{
58
+ workspace_id?: string | undefined;
59
+ limit?: number | undefined;
60
+ cursor?: string | undefined;
61
+ }> | import("./definitions/shared.js").ToolDefinition<{
62
+ icp_id: string;
63
+ }> | import("./definitions/shared.js").ToolDefinition<{
64
+ sample_id: string;
65
+ }> | import("./definitions/shared.js").ToolDefinition<{
69
66
  agent_id: string;
70
67
  icp_profile_id?: string | undefined;
71
68
  business_context?: {
72
69
  [x: string]: unknown;
73
70
  } | undefined;
74
71
  style_hints?: {
75
- language: string;
72
+ language: "ru" | "en";
76
73
  formality?: "formal" | "casual" | "friendly" | undefined;
77
74
  verbosity?: "concise" | "balanced" | "detailed" | undefined;
75
+ message_direction?: "INBOUND" | "OUTBOUND" | undefined;
78
76
  } | undefined;
79
- }>, ToolDefinition<{
77
+ }> | import("./definitions/shared.js").ToolDefinition<{
80
78
  agent_id: string;
81
79
  operation_id: string;
82
80
  stages: {
@@ -90,33 +88,11 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
90
88
  total_tokens?: number | undefined;
91
89
  models?: Record<string, string> | undefined;
92
90
  } | undefined;
93
- }>, ToolDefinition<{
94
- agent_id: string;
95
- base_version_id: string;
96
- feedback: {
97
- general_comments?: string | undefined;
98
- selections?: {
99
- [x: string]: unknown;
100
- }[] | undefined;
101
- };
102
- }>, ToolDefinition<{
103
- agent_id: string;
104
- operation_id: string;
105
- stages: {
106
- name: "iteration_analysis" | "iteration_recommendation";
107
- output: {
108
- [x: string]: unknown;
109
- };
110
- }[];
111
- proposed_changes: {
112
- [x: string]: unknown;
113
- }[];
114
- preview_content: string;
115
- }>, ToolDefinition<{
91
+ }> | import("./definitions/shared.js").ToolDefinition<{
116
92
  agent_id: string;
117
93
  version_id: string;
118
94
  modes: ("grammar" | "structure" | "industry" | "contradictions" | "completeness")[];
119
- }>, ToolDefinition<{
95
+ }> | import("./definitions/shared.js").ToolDefinition<{
120
96
  agent_id: string;
121
97
  operation_id: string;
122
98
  stages: {
@@ -128,41 +104,45 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
128
104
  aggregated_issues: {
129
105
  [x: string]: unknown;
130
106
  }[];
131
- }>, ToolDefinition<{
107
+ }> | import("./definitions/shared.js").ToolDefinition<{
132
108
  agent_id: string;
133
109
  draft_version_id: string;
134
110
  changelog_note?: string | undefined;
135
- }>, ToolDefinition<{
111
+ }> | import("./definitions/shared.js").ToolDefinition<{
136
112
  agent_id: string;
137
113
  scenario_ids?: string[] | undefined;
138
114
  options?: {
115
+ mode: "single_agent" | "workflow";
116
+ client_mode: "scripted" | "simulated";
139
117
  check_routing: boolean;
140
118
  check_pipeline_transitions: boolean;
141
119
  check_agent_actions: boolean;
142
120
  run_rag_golden_tests: boolean;
143
121
  turns_per_scenario: number;
122
+ simulation?: {
123
+ max_turns?: number | undefined;
124
+ } | undefined;
144
125
  } | undefined;
145
- }>, ToolDefinition<{
126
+ }> | import("./definitions/shared.js").ToolDefinition<{
146
127
  agent_id: string;
147
128
  run_id: string;
148
- }>, ToolDefinition<{
129
+ }> | import("./definitions/shared.js").ToolDefinition<{
149
130
  agent_id: string;
150
131
  run_id: string;
151
132
  operation_id: string;
152
133
  findings: {
153
- category: "hallucination" | "wrong_action" | "missed_trigger" | "wrong_pipeline_transition" | "rag_miss" | "bad_tone" | "other";
134
+ category: "hallucination" | "wrong_action" | "wrong_routing" | "missed_trigger" | "wrong_pipeline_transition" | "rag_miss" | "bad_tone" | "other";
154
135
  severity: "low" | "medium" | "critical";
155
136
  message: string;
156
137
  scenario_id?: string | undefined;
157
138
  suggestion?: string | undefined;
158
139
  turn_index?: number | undefined;
159
140
  }[];
160
- }>, ToolDefinition<{
141
+ }> | import("./definitions/shared.js").ToolDefinition<{
161
142
  agent_id: string;
162
143
  simulation_id: string;
163
- }>, ToolDefinition<{
144
+ }> | import("./definitions/shared.js").ToolDefinition<{
164
145
  agent_id: string;
165
- simulation_id: string;
166
146
  operation_id: string;
167
147
  findings: {
168
148
  category: "hallucination" | "wrong_action" | "bad_tone" | "other" | "missed_context" | "contradiction" | "off_topic";
@@ -172,13 +152,14 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
172
152
  suggestion?: string | undefined;
173
153
  reference_message_index?: number | undefined;
174
154
  }[];
175
- }>, ToolDefinition<{
155
+ simulation_id?: string | undefined;
156
+ }> | import("./definitions/shared.js").ToolDefinition<{
176
157
  agent_id: string;
177
158
  target_count: number;
178
159
  namespace_context?: string | undefined;
179
160
  company_context?: string | undefined;
180
161
  icp_profile_id?: string | undefined;
181
- }>, ToolDefinition<{
162
+ }> | import("./definitions/shared.js").ToolDefinition<{
182
163
  agent_id: string;
183
164
  operation_id: string;
184
165
  qa_pairs: {
@@ -187,17 +168,61 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
187
168
  tags?: string[] | undefined;
188
169
  }[];
189
170
  knowledge_space_id?: string | undefined;
190
- }>, ToolDefinition<{
191
- platform_id: string;
192
- }>, ToolDefinition<{
171
+ }> | import("./definitions/shared.js").ToolDefinition<{
172
+ icp_profile_id: string;
173
+ count: number;
174
+ workspace_id?: string | undefined;
175
+ business_context?: {
176
+ [x: string]: unknown;
177
+ } | undefined;
178
+ }> | import("./definitions/shared.js").ToolDefinition<{
179
+ operation_id: string;
180
+ icp_profile_id: string;
181
+ scenarios: {
182
+ segment_ids: string[] | undefined;
183
+ name: string;
184
+ situations: {
185
+ role: "client" | "agent";
186
+ text: string;
187
+ }[];
188
+ description?: string | undefined;
189
+ }[];
190
+ workspace_id?: string | undefined;
191
+ }> | import("./definitions/shared.js").ToolDefinition<{
192
+ agent_id: string;
193
+ }> | import("./definitions/shared.js").ToolDefinition<{
194
+ agent_id: string;
195
+ graph: {
196
+ stages: {
197
+ id: string;
198
+ name: string;
199
+ }[];
200
+ nodes: {
201
+ id: string;
202
+ stageId: string;
203
+ title: string;
204
+ instruction: string;
205
+ branchId: string;
206
+ leadStateTag?: string | null | undefined;
207
+ }[];
208
+ edges: {
209
+ from: string;
210
+ to: string;
211
+ condition?: string | null | undefined;
212
+ }[];
213
+ };
214
+ preamble?: string | undefined;
215
+ }> | import("./definitions/shared.js").ToolDefinition<{
216
+ workspace_id?: string | undefined;
217
+ }> | import("./definitions/shared.js").ToolDefinition<{
193
218
  platform_id: string;
194
- }>, ToolDefinition<{
219
+ }> | import("./definitions/shared.js").ToolDefinition<{
195
220
  platform_id: string;
196
221
  name: string;
197
222
  model_lane: "CHEAP" | "STANDARD" | "DEEP";
198
223
  description?: string | null | undefined;
199
224
  default_icp_profile_id?: string | undefined;
200
- }>, ToolDefinition<{
225
+ }> | import("./definitions/shared.js").ToolDefinition<{
201
226
  platform_id: string;
202
227
  agent_id: string;
203
228
  name?: string | undefined;
@@ -206,7 +231,38 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
206
231
  default_icp_profile_id?: string | null | undefined;
207
232
  use_global_history?: boolean | undefined;
208
233
  adapt_to_user_language?: boolean | undefined;
209
- }>, ToolDefinition<{
234
+ runtime_config?: {
235
+ temperature?: number | undefined;
236
+ max_tokens?: number | undefined;
237
+ memory_history_size?: number | undefined;
238
+ rag_top_k?: number | undefined;
239
+ rag_min_score?: number | undefined;
240
+ qa_min_score?: number | undefined;
241
+ qa_context_limit?: number | undefined;
242
+ max_response_symbols?: number | undefined;
243
+ reasoning_effort?: "low" | "medium" | "minimal" | "high" | "max" | undefined;
244
+ verbosity?: "low" | "medium" | "high" | undefined;
245
+ enable_thinking?: boolean | undefined;
246
+ timezone?: string | undefined;
247
+ language_code?: string | undefined;
248
+ summarize_every?: number | undefined;
249
+ summary_max_size?: number | undefined;
250
+ use_summary?: boolean | undefined;
251
+ include_crm_fields_in_memory?: boolean | undefined;
252
+ include_trigger_context?: boolean | undefined;
253
+ } | undefined;
254
+ output_config?: {
255
+ display_name?: string | undefined;
256
+ button_generator?: {
257
+ enabled?: boolean | undefined;
258
+ max_buttons?: number | undefined;
259
+ keyboard_type?: "INLINE" | "REPLY" | undefined;
260
+ dynamic?: boolean | undefined;
261
+ } | undefined;
262
+ } | undefined;
263
+ knowledge_space_ids?: string[] | undefined;
264
+ agent_scope?: "other" | "sale" | "reactivation" | "support" | "onboarding" | "faq" | "qualification" | "complaint" | undefined;
265
+ }> | import("./definitions/shared.js").ToolDefinition<{
210
266
  platform_id: string;
211
267
  agent_id: string;
212
268
  tools: {
@@ -217,7 +273,7 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
217
273
  [x: string]: unknown;
218
274
  } | null | undefined;
219
275
  }[];
220
- }>, ToolDefinition<{
276
+ }> | import("./definitions/shared.js").ToolDefinition<{
221
277
  platform_id: string;
222
278
  explicit_confirmation?: boolean | undefined;
223
279
  confirmation_reason?: string | undefined;
@@ -229,7 +285,7 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
229
285
  adapt_to_user_language?: boolean | undefined;
230
286
  skip_llm_routing?: boolean | undefined;
231
287
  direct_routing_agent_id?: string | null | undefined;
232
- }>, ToolDefinition<{
288
+ }> | import("./definitions/shared.js").ToolDefinition<{
233
289
  platform_id: string;
234
290
  routing_strategy: "LEAD_STATUS" | "CUSTOM_VARIABLE";
235
291
  custom_router_prompt: string;
@@ -249,7 +305,7 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
249
305
  lead_status_pipeline_id?: number | null | undefined;
250
306
  lead_status_id?: number | null | undefined;
251
307
  }[] | undefined;
252
- }>, ToolDefinition<{
308
+ }> | import("./definitions/shared.js").ToolDefinition<{
253
309
  platform_id: string;
254
310
  agent_id: string;
255
311
  explicit_confirmation?: boolean | undefined;
@@ -267,14 +323,128 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
267
323
  actions?: {
268
324
  [x: string]: unknown;
269
325
  }[] | undefined;
270
- }>, ToolDefinition<{
326
+ }> | import("./definitions/shared.js").ToolDefinition<{
271
327
  platform_id: string;
272
- updates: {
273
- [x: string]: unknown;
274
- };
275
328
  explicit_confirmation?: boolean | undefined;
276
329
  confirmation_reason?: string | undefined;
277
- }>, ToolDefinition<{
330
+ greeting?: {
331
+ bot_greeting?: string | undefined;
332
+ greeting_file_id?: string | null | undefined;
333
+ greeting_buttons?: {
334
+ id: string;
335
+ label: string;
336
+ text: string;
337
+ order: number;
338
+ }[] | undefined;
339
+ greeting_buttons_keyboard_type?: "INLINE" | "REPLY" | undefined;
340
+ popup_delay_seconds?: number | undefined;
341
+ } | undefined;
342
+ media_handling?: {
343
+ image?: {
344
+ behavior: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE";
345
+ fixed_response_text?: string | undefined;
346
+ call_operator?: boolean | undefined;
347
+ operator_comment?: string | undefined;
348
+ } | undefined;
349
+ video?: {
350
+ behavior: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE";
351
+ fixed_response_text?: string | undefined;
352
+ call_operator?: boolean | undefined;
353
+ operator_comment?: string | undefined;
354
+ } | undefined;
355
+ audio?: {
356
+ behavior: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE";
357
+ fixed_response_text?: string | undefined;
358
+ call_operator?: boolean | undefined;
359
+ operator_comment?: string | undefined;
360
+ } | undefined;
361
+ document?: {
362
+ behavior: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE";
363
+ fixed_response_text?: string | undefined;
364
+ call_operator?: boolean | undefined;
365
+ operator_comment?: string | undefined;
366
+ } | undefined;
367
+ } | undefined;
368
+ url_handling?: {
369
+ behavior: "SILENT" | "FIXED_RESPONSE" | "PASS_THROUGH" | "PROCESS_WITH_CRAWLER";
370
+ fixed_response_text?: string | undefined;
371
+ call_operator?: boolean | undefined;
372
+ operator_comment?: string | undefined;
373
+ } | undefined;
374
+ error_handling?: {
375
+ ai_error_behavior?: "SILENT" | "SEND_ERROR_MESSAGE" | undefined;
376
+ ai_error_custom_message?: string | undefined;
377
+ call_operator_with_error?: boolean | undefined;
378
+ ai_error_target_stage_id?: number | null | undefined;
379
+ } | undefined;
380
+ operator_schedule?: {
381
+ enabled?: boolean | undefined;
382
+ availability?: {
383
+ monday?: {
384
+ active: boolean;
385
+ start_time?: string | undefined;
386
+ end_time?: string | undefined;
387
+ } | undefined;
388
+ tuesday?: {
389
+ active: boolean;
390
+ start_time?: string | undefined;
391
+ end_time?: string | undefined;
392
+ } | undefined;
393
+ wednesday?: {
394
+ active: boolean;
395
+ start_time?: string | undefined;
396
+ end_time?: string | undefined;
397
+ } | undefined;
398
+ thursday?: {
399
+ active: boolean;
400
+ start_time?: string | undefined;
401
+ end_time?: string | undefined;
402
+ } | undefined;
403
+ friday?: {
404
+ active: boolean;
405
+ start_time?: string | undefined;
406
+ end_time?: string | undefined;
407
+ } | undefined;
408
+ saturday?: {
409
+ active: boolean;
410
+ start_time?: string | undefined;
411
+ end_time?: string | undefined;
412
+ } | undefined;
413
+ sunday?: {
414
+ active: boolean;
415
+ start_time?: string | undefined;
416
+ end_time?: string | undefined;
417
+ } | undefined;
418
+ } | undefined;
419
+ unavailable_message?: string | undefined;
420
+ bot_waiting_return_hours?: 0 | 12 | 3 | 1 | 6 | 24 | undefined;
421
+ follow_up_waiting_return_hours?: number | undefined;
422
+ skip_task_creation_on_call_operator?: boolean | undefined;
423
+ } | undefined;
424
+ typing_behavior?: {
425
+ waiting_answer_time?: number | undefined;
426
+ can_interrupt?: boolean | undefined;
427
+ message_devide?: boolean | undefined;
428
+ typing_speed?: "medium" | "slow" | "fast" | undefined;
429
+ fake_delay?: number | undefined;
430
+ message_open_delay?: number | undefined;
431
+ go_offline?: string | undefined;
432
+ } | undefined;
433
+ message_filters?: {
434
+ id: string;
435
+ source: string;
436
+ target: string;
437
+ enabled: boolean;
438
+ order: number;
439
+ }[] | undefined;
440
+ message_splitting?: {
441
+ message_chunk_separator?: string | undefined;
442
+ } | undefined;
443
+ privacy?: {
444
+ anonymization_enabled?: boolean | undefined;
445
+ anonymization_disabled_types?: ("FIRST_NAME" | "LAST_NAME" | "PATRONYMIC" | "PERSON" | "PHONE" | "EMAIL" | "INN" | "PASSPORT" | "CARD" | "DATE_OF_BIRTH" | "ACCOUNT" | "SNILS" | "OGRN" | "OGRNIP" | "SOCIAL_ID")[] | undefined;
446
+ } | undefined;
447
+ }> | import("./definitions/shared.js").ToolDefinition<{
278
448
  platform_id: string;
279
449
  name: string;
280
450
  type: "MEETING_REMINDER" | "INACTIVE_USER_REACTIVATION" | "LOST_CLIENTS";
@@ -287,21 +457,636 @@ export declare const toolDefinitions: readonly [ToolDefinition<{
287
457
  sequence_id?: string | undefined;
288
458
  description?: string | null | undefined;
289
459
  enabled?: boolean | undefined;
290
- }>, ToolDefinition<{
460
+ }> | import("./definitions/shared.js").ToolDefinition<{
291
461
  platform_id: string;
292
- updates: {
293
- [x: string]: unknown;
294
- };
295
462
  explicit_confirmation?: boolean | undefined;
296
463
  confirmation_reason?: string | undefined;
297
- }>, ToolDefinition<{
464
+ crm_pipeline_behavior?: {
465
+ active_pipeline_ids?: string[] | undefined;
466
+ filter_enabled?: boolean | undefined;
467
+ status_movement?: {
468
+ [x: string]: unknown;
469
+ } | undefined;
470
+ create_defaults?: {
471
+ [x: string]: unknown;
472
+ } | undefined;
473
+ global?: {
474
+ [x: string]: unknown;
475
+ } | undefined;
476
+ } | undefined;
477
+ auto_finish?: {
478
+ finish_auto_noanswer?: boolean | undefined;
479
+ finish_auto_timeout?: boolean | undefined;
480
+ finish_auto_days?: number | undefined;
481
+ send_finish_auto_note_to_crm?: boolean | undefined;
482
+ finish_auto_note_template?: string | null | undefined;
483
+ } | undefined;
484
+ }> | import("./definitions/shared.js").ToolDefinition<{
298
485
  platform_id: string;
299
- settings: {
300
- [x: string]: unknown;
301
- };
302
486
  explicit_confirmation?: boolean | undefined;
303
487
  confirmation_reason?: string | undefined;
304
- }>, ToolDefinition<{
305
- platform_id: string;
488
+ name?: string | null | undefined;
489
+ off_message?: string | undefined;
490
+ timezone?: string | undefined;
491
+ access_control?: {
492
+ is_active?: boolean | undefined;
493
+ is_ai_enabled?: boolean | undefined;
494
+ is_user_filter_enabled?: boolean | undefined;
495
+ filtered_user_ids?: string[] | undefined;
496
+ enable_cleanup_commands?: boolean | undefined;
497
+ } | undefined;
498
+ variables_config?: {
499
+ enable_dynamic_variables?: boolean | undefined;
500
+ clear_dynamic_vars_on_history_clear?: boolean | undefined;
501
+ } | undefined;
502
+ crm_behavior?: {
503
+ send_to_crm?: boolean | undefined;
504
+ use_cross_platform_history?: boolean | undefined;
505
+ responsible_assignee_strategy?: "ROUND_ROBIN" | "LEAST_BUSY" | "RANDOM" | "FIXED" | "OPERATOR_SPECIFIC" | undefined;
506
+ fixed_responsible_id?: string | null | undefined;
507
+ send_start_note_to_crm?: boolean | undefined;
508
+ start_note_template?: string | null | undefined;
509
+ send_failed_note_to_crm?: boolean | undefined;
510
+ failed_note_template?: string | null | undefined;
511
+ send_operator_takeover_note_to_crm?: boolean | undefined;
512
+ operator_takeover_note_template?: string | null | undefined;
513
+ deal_marker_type?: "NONE" | "TAG" | "CUSTOM_FIELD" | undefined;
514
+ deal_marker_value?: string | null | undefined;
515
+ deal_marker_field_id?: string | null | undefined;
516
+ } | undefined;
517
+ widget_marketing?: {
518
+ web_widget_allowed_origins?: {
519
+ [x: string]: unknown;
520
+ } | null | undefined;
521
+ web_widget_show_page_info?: boolean | undefined;
522
+ web_widget_rate_limit_per_minute?: number | undefined;
523
+ web_widget_customization?: {
524
+ [x: string]: unknown;
525
+ } | null | undefined;
526
+ web_widget_marketing_field_mappings?: {
527
+ [x: string]: unknown;
528
+ } | null | undefined;
529
+ web_widget_entry_url_variable_mapping?: {
530
+ [x: string]: unknown;
531
+ } | null | undefined;
532
+ } | undefined;
533
+ instagram_comment_behavior?: {
534
+ reply_to_instagram_comments?: boolean | undefined;
535
+ instagram_comment_handling_mode?: string | null | undefined;
536
+ instagram_comment_reply_method?: string | null | undefined;
537
+ instagram_comment_keywords?: {
538
+ [x: string]: unknown;
539
+ } | null | undefined;
540
+ reply_to_story_mentions?: boolean | undefined;
541
+ } | undefined;
542
+ general_settings?: {
543
+ name?: string | null | undefined;
544
+ off_message?: string | null | undefined;
545
+ timezone?: string | undefined;
546
+ is_active?: boolean | undefined;
547
+ } | undefined;
548
+ salebot_settings?: {
549
+ project_id?: string | null | undefined;
550
+ group_id?: string | null | undefined;
551
+ } | undefined;
552
+ smsgorod_settings?: {
553
+ channel?: "DIGIT" | "CHAR" | undefined;
554
+ sender?: string | null | undefined;
555
+ } | undefined;
556
+ bitrix24_bot_settings?: {
557
+ bot_id?: number | null | undefined;
558
+ bot_code?: string | null | undefined;
559
+ bot_name?: string | undefined;
560
+ open_line_id?: string | null | undefined;
561
+ } | undefined;
562
+ getcourse_settings?: {
563
+ account_domain?: string | null | undefined;
564
+ employee_user_id?: number | null | undefined;
565
+ available_transports?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber")[] | undefined;
566
+ default_transport?: "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | null | undefined;
567
+ departments?: {
568
+ id: string;
569
+ label: string;
570
+ }[] | null | undefined;
571
+ template_user_id?: number | null | undefined;
572
+ template_deal_id?: number | null | undefined;
573
+ } | undefined;
574
+ }> | import("./definitions/shared.js").ToolDefinition<{
306
575
  audit_log_id: string;
307
- }>];
576
+ workspace_id?: string | undefined;
577
+ platform_id?: string | undefined;
578
+ }> | import("./definitions/shared.js").ToolDefinition<{
579
+ agent_id: string;
580
+ source_url: string;
581
+ access_mode: "READ_ONLY" | "EDITABLE";
582
+ agent_version_id?: string | undefined;
583
+ }> | import("./definitions/shared.js").ToolDefinition<{
584
+ agent_id: string;
585
+ feedback_sheet_id: string;
586
+ }> | import("./definitions/shared.js").ToolDefinition<{
587
+ agent_id: string;
588
+ feedback_sheet_id: string;
589
+ rows: {
590
+ row_number: number;
591
+ row_hash: string;
592
+ status: "in_progress" | "done" | "wont_fix" | "needs_clarification";
593
+ comment?: string | undefined;
594
+ }[];
595
+ status_column?: string | undefined;
596
+ comment_column?: string | undefined;
597
+ }> | import("./definitions/shared.js").ToolDefinition<{
598
+ agent_id: string;
599
+ namespace_record_id?: string | undefined;
600
+ }> | import("./definitions/shared.js").ToolDefinition<{
601
+ agent_id: string;
602
+ factual_context: string;
603
+ }> | import("./definitions/shared.js").ToolDefinition<{
604
+ agent_id: string;
605
+ draft_id: string;
606
+ }> | import("./definitions/shared.js").ToolDefinition<{
607
+ agent_id: string;
608
+ draft_id: string;
609
+ operations: {
610
+ type: "replace_text" | "replace_all_text" | "insert_after_text" | "insert_before_text" | "remove_text" | "move_text_after_text";
611
+ id?: string | undefined;
612
+ target_text?: string | undefined;
613
+ anchor_text?: string | undefined;
614
+ replacement_text?: string | undefined;
615
+ match_variants?: string[] | undefined;
616
+ }[];
617
+ }> | import("./definitions/shared.js").ToolDefinition<{
618
+ prompt_text: string;
619
+ workspace_id?: string | undefined;
620
+ agent_id?: string | undefined;
621
+ channel?: string | undefined;
622
+ agent_scope?: "other" | "sale" | "reactivation" | "support" | "onboarding" | "faq" | "qualification" | "complaint" | undefined;
623
+ feedback_banned_terms?: string[] | undefined;
624
+ }> | import("./definitions/shared.js").ToolDefinition<{
625
+ workspace_id?: string | undefined;
626
+ stored_file_id?: string | undefined;
627
+ google_sheets_url?: string | undefined;
628
+ sample_rows_per_sheet?: number | undefined;
629
+ max_cells_total?: number | undefined;
630
+ }> | import("./definitions/shared.js").ToolDefinition<{
631
+ workbook_id: string;
632
+ workspace_id?: string | undefined;
633
+ sheet_title?: string | undefined;
634
+ sheet_gid?: number | undefined;
635
+ sheet_index?: number | undefined;
636
+ include_contacts?: boolean | undefined;
637
+ }> | import("./definitions/shared.js").ToolDefinition<{
638
+ workbook_id: string;
639
+ workspace_id?: string | undefined;
640
+ sheet_title?: string | undefined;
641
+ sheet_gid?: number | undefined;
642
+ sheet_index?: number | undefined;
643
+ namespace?: string | undefined;
644
+ split_override?: {
645
+ split_mode: "size" | "separator";
646
+ separator?: string | undefined;
647
+ chunk_size?: number | undefined;
648
+ chunk_overlap?: number | undefined;
649
+ max_chunk_size?: number | undefined;
650
+ } | undefined;
651
+ replace_existing?: boolean | undefined;
652
+ }> | import("./definitions/shared.js").ToolDefinition<{
653
+ name: string;
654
+ scope_type: "WORKSPACE" | "CHANNEL";
655
+ workspace_id?: string | undefined;
656
+ channel_id?: string | undefined;
657
+ access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
658
+ }> | import("./definitions/shared.js").ToolDefinition<{
659
+ workspace_id?: string | undefined;
660
+ scope_type?: "WORKSPACE" | "CHANNEL" | undefined;
661
+ channel_id?: string | undefined;
662
+ }> | import("./definitions/shared.js").ToolDefinition<{
663
+ knowledge_space_id: string;
664
+ workspace_id?: string | undefined;
665
+ }> | import("./definitions/shared.js").ToolDefinition<{
666
+ knowledge_space_id: string;
667
+ workspace_id?: string | undefined;
668
+ name?: string | undefined;
669
+ access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
670
+ }> | import("./definitions/shared.js").ToolDefinition<{
671
+ knowledge_space_id: string;
672
+ channel_id: string;
673
+ workspace_id?: string | undefined;
674
+ }> | import("./definitions/shared.js").ToolDefinition<{
675
+ knowledge_space_id: string;
676
+ source_kind: "STORED_FILE" | "TEXT";
677
+ workspace_id?: string | undefined;
678
+ stored_file_id?: string | undefined;
679
+ content?: string | undefined;
680
+ filename?: string | undefined;
681
+ split_override?: {
682
+ split_mode: "size" | "separator";
683
+ separator?: string | undefined;
684
+ chunk_size?: number | undefined;
685
+ chunk_overlap?: number | undefined;
686
+ max_chunk_size?: number | undefined;
687
+ } | undefined;
688
+ }> | import("./definitions/shared.js").ToolDefinition<{
689
+ knowledge_space_id: string;
690
+ workspace_id?: string | undefined;
691
+ status?: "LOADED" | "SPLIT" | "EMBEDDINGS_GENERATED" | "VECTOR_DB_UPLOADED" | "COMPLETED" | "FAILED" | "TEXT_EXTRACTED" | "CHUNKS_SAVED" | undefined;
692
+ page?: number | undefined;
693
+ limit?: number | undefined;
694
+ }> | import("./definitions/shared.js").ToolDefinition<{
695
+ knowledge_space_id: string;
696
+ document_id: string;
697
+ workspace_id?: string | undefined;
698
+ }> | import("./definitions/shared.js").ToolDefinition<{
699
+ knowledge_space_id: string;
700
+ document_id: string;
701
+ explicit_confirmation: boolean;
702
+ workspace_id?: string | undefined;
703
+ }> | import("./definitions/shared.js").ToolDefinition<{
704
+ knowledge_space_id: string;
705
+ question: string;
706
+ workspace_id?: string | undefined;
707
+ answer?: string | undefined;
708
+ answer_chunks?: {
709
+ text?: string | undefined;
710
+ stored_file_id?: string | undefined;
711
+ buttons?: {
712
+ name: string;
713
+ url: string;
714
+ }[] | undefined;
715
+ }[] | undefined;
716
+ alias?: string | undefined;
717
+ mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
718
+ call_operator?: boolean | undefined;
719
+ chunk_delay_seconds?: number | undefined;
720
+ is_call_qa_only?: boolean | undefined;
721
+ }> | import("./definitions/shared.js").ToolDefinition<{
722
+ knowledge_space_id: string;
723
+ workspace_id?: string | undefined;
724
+ mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
725
+ page?: number | undefined;
726
+ limit?: number | undefined;
727
+ }> | import("./definitions/shared.js").ToolDefinition<{
728
+ knowledge_space_id: string;
729
+ qa_id: string;
730
+ workspace_id?: string | undefined;
731
+ }> | import("./definitions/shared.js").ToolDefinition<{
732
+ knowledge_space_id: string;
733
+ qa_id: string;
734
+ workspace_id?: string | undefined;
735
+ question?: string | undefined;
736
+ answer?: string | undefined;
737
+ answer_chunks?: {
738
+ text?: string | undefined;
739
+ stored_file_id?: string | undefined;
740
+ buttons?: {
741
+ name: string;
742
+ url: string;
743
+ }[] | undefined;
744
+ }[] | undefined;
745
+ alias?: string | undefined;
746
+ mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
747
+ call_operator?: boolean | undefined;
748
+ chunk_delay_seconds?: number | undefined;
749
+ is_call_qa_only?: boolean | undefined;
750
+ }> | import("./definitions/shared.js").ToolDefinition<{
751
+ knowledge_space_id: string;
752
+ qa_id: string;
753
+ explicit_confirmation: boolean;
754
+ workspace_id?: string | undefined;
755
+ }> | import("./definitions/shared.js").ToolDefinition<{
756
+ knowledge_space_id: string;
757
+ query: string;
758
+ workspace_id?: string | undefined;
759
+ top_k?: number | undefined;
760
+ min_score?: number | undefined;
761
+ }> | import("./definitions/shared.js").ToolDefinition<{
762
+ source_space_id: string;
763
+ qa_id: string;
764
+ target_space_id: string;
765
+ explicit_confirmation: boolean;
766
+ workspace_id?: string | undefined;
767
+ }> | import("./definitions/shared.js").ToolDefinition<{
768
+ knowledge_space_id: string;
769
+ url: string;
770
+ workspace_id?: string | undefined;
771
+ display_name?: string | undefined;
772
+ }> | import("./definitions/shared.js").ToolDefinition<{
773
+ knowledge_space_id: string;
774
+ workspace_id?: string | undefined;
775
+ status?: "COMPLETED" | "FAILED" | "PENDING" | "CRAWLING" | "PROCESSING" | undefined;
776
+ page?: number | undefined;
777
+ limit?: number | undefined;
778
+ }> | import("./definitions/shared.js").ToolDefinition<{
779
+ knowledge_space_id: string;
780
+ website_id: string;
781
+ workspace_id?: string | undefined;
782
+ }> | import("./definitions/shared.js").ToolDefinition<{
783
+ knowledge_space_id: string;
784
+ website_id: string;
785
+ explicit_confirmation: boolean;
786
+ workspace_id?: string | undefined;
787
+ }> | import("./definitions/shared.js").ToolDefinition<{
788
+ knowledge_space_id: string;
789
+ source: {
790
+ kind: "GOOGLE_SHEETS" | "NATIVE";
791
+ spreadsheet_url?: string | undefined;
792
+ table_schema?: {
793
+ [x: string]: unknown;
794
+ } | undefined;
795
+ };
796
+ display_name: string;
797
+ workspace_id?: string | undefined;
798
+ header_row_index?: number | undefined;
799
+ cache_ttl_seconds?: number | undefined;
800
+ use_vector_index?: boolean | undefined;
801
+ vector_top_k?: number | undefined;
802
+ vector_embed_max_chars?: number | undefined;
803
+ access?: "PUBLIC" | "PRIVATE" | undefined;
804
+ }> | import("./definitions/shared.js").ToolDefinition<{
805
+ knowledge_space_id: string;
806
+ workspace_id?: string | undefined;
807
+ is_active?: boolean | undefined;
808
+ page?: number | undefined;
809
+ limit?: number | undefined;
810
+ }> | import("./definitions/shared.js").ToolDefinition<{
811
+ knowledge_space_id: string;
812
+ table_id: string;
813
+ workspace_id?: string | undefined;
814
+ }> | import("./definitions/shared.js").ToolDefinition<{
815
+ knowledge_space_id: string;
816
+ table_id: string;
817
+ workspace_id?: string | undefined;
818
+ source?: {
819
+ kind: "GOOGLE_SHEETS" | "NATIVE";
820
+ spreadsheet_url?: string | undefined;
821
+ table_schema?: {
822
+ [x: string]: unknown;
823
+ } | undefined;
824
+ } | undefined;
825
+ display_name?: string | undefined;
826
+ header_row_index?: number | undefined;
827
+ cache_ttl_seconds?: number | undefined;
828
+ use_vector_index?: boolean | undefined;
829
+ vector_top_k?: number | undefined;
830
+ vector_embed_max_chars?: number | undefined;
831
+ access?: "PUBLIC" | "PRIVATE" | undefined;
832
+ is_active?: boolean | undefined;
833
+ }> | import("./definitions/shared.js").ToolDefinition<{
834
+ knowledge_space_id: string;
835
+ table_id: string;
836
+ explicit_confirmation: boolean;
837
+ workspace_id?: string | undefined;
838
+ }> | import("./definitions/shared.js").ToolDefinition<{
839
+ scope: "WORKSPACE" | "CHANNEL";
840
+ workspace_id?: string | undefined;
841
+ platform_id?: string | undefined;
842
+ filter?: "all" | "variables" | "constants" | undefined;
843
+ }> | import("./definitions/shared.js").ToolDefinition<{
844
+ scope: "WORKSPACE" | "CHANNEL";
845
+ name: string;
846
+ type: "TEXT" | "NUMBER" | "FLOAT" | "BOOLEAN";
847
+ workspace_id?: string | undefined;
848
+ description?: string | undefined;
849
+ value?: string | undefined;
850
+ platform_id?: string | undefined;
851
+ is_constant?: boolean | undefined;
852
+ constant_value?: string | undefined;
853
+ }> | import("./definitions/shared.js").ToolDefinition<{
854
+ variable_id: string;
855
+ scope: "WORKSPACE" | "CHANNEL";
856
+ workspace_id?: string | undefined;
857
+ platform_id?: string | undefined;
858
+ }> | import("./definitions/shared.js").ToolDefinition<{
859
+ variable_id: string;
860
+ scope: "WORKSPACE" | "CHANNEL";
861
+ workspace_id?: string | undefined;
862
+ platform_id?: string | undefined;
863
+ description?: string | undefined;
864
+ type?: "TEXT" | "NUMBER" | "FLOAT" | "BOOLEAN" | undefined;
865
+ value?: string | null | undefined;
866
+ constant_value?: string | null | undefined;
867
+ }> | import("./definitions/shared.js").ToolDefinition<{
868
+ variable_id: string;
869
+ scope: "WORKSPACE" | "CHANNEL";
870
+ explicit_confirmation: true;
871
+ workspace_id?: string | undefined;
872
+ platform_id?: string | undefined;
873
+ }> | import("./definitions/shared.js").ToolDefinition<{
874
+ crm_id: string;
875
+ workspace_id?: string | undefined;
876
+ include_deleted?: boolean | undefined;
877
+ }> | import("./definitions/shared.js").ToolDefinition<{
878
+ crm_id: string;
879
+ pipeline_id: number;
880
+ workspace_id?: string | undefined;
881
+ }> | import("./definitions/shared.js").ToolDefinition<{
882
+ crm_id: string;
883
+ name: string;
884
+ acknowledge_external_side_effect: true;
885
+ workspace_id?: string | undefined;
886
+ sort?: number | undefined;
887
+ is_main?: boolean | undefined;
888
+ is_unsorted_on?: boolean | undefined;
889
+ is_active?: boolean | undefined;
890
+ pipeline_id?: number | undefined;
891
+ }> | import("./definitions/shared.js").ToolDefinition<{
892
+ crm_id: string;
893
+ pipeline_id: number;
894
+ acknowledge_external_side_effect: true;
895
+ workspace_id?: string | undefined;
896
+ name?: string | undefined;
897
+ sort?: number | undefined;
898
+ is_main?: boolean | undefined;
899
+ is_unsorted_on?: boolean | undefined;
900
+ is_active?: boolean | undefined;
901
+ }> | import("./definitions/shared.js").ToolDefinition<{
902
+ crm_id: string;
903
+ pipeline_id: number;
904
+ explicit_confirmation: true;
905
+ acknowledge_external_side_effect: true;
906
+ workspace_id?: string | undefined;
907
+ }> | import("./definitions/shared.js").ToolDefinition<{
908
+ crm_id: string;
909
+ pipeline_id: number;
910
+ name: string;
911
+ sort: number;
912
+ acknowledge_external_side_effect: true;
913
+ workspace_id?: string | undefined;
914
+ color?: string | undefined;
915
+ status_types?: string[] | undefined;
916
+ is_editable?: boolean | undefined;
917
+ is_bot_active?: boolean | undefined;
918
+ is_operator_available?: boolean | undefined;
919
+ on_message_received_move_to_status?: number | null | undefined;
920
+ status_id?: number | undefined;
921
+ }> | import("./definitions/shared.js").ToolDefinition<{
922
+ crm_id: string;
923
+ pipeline_id: number;
924
+ status_id: number;
925
+ acknowledge_external_side_effect: true;
926
+ workspace_id?: string | undefined;
927
+ name?: string | undefined;
928
+ sort?: number | undefined;
929
+ color?: string | undefined;
930
+ status_types?: string[] | undefined;
931
+ is_editable?: boolean | undefined;
932
+ is_bot_active?: boolean | undefined;
933
+ is_operator_available?: boolean | undefined;
934
+ on_message_received_move_to_status?: number | null | undefined;
935
+ }> | import("./definitions/shared.js").ToolDefinition<{
936
+ crm_id: string;
937
+ pipeline_id: number;
938
+ status_id: number;
939
+ explicit_confirmation: true;
940
+ acknowledge_external_side_effect: true;
941
+ workspace_id?: string | undefined;
942
+ }> | import("./definitions/shared.js").ToolDefinition<{
943
+ platform_id: string;
944
+ pipeline_id: number;
945
+ pipeline_crm_id: string;
946
+ workspace_id?: string | undefined;
947
+ sort?: number | undefined;
948
+ }> | import("./definitions/shared.js").ToolDefinition<{
949
+ platform_id: string;
950
+ platform_pipeline_id: string;
951
+ explicit_confirmation: true;
952
+ workspace_id?: string | undefined;
953
+ }> | import("./definitions/shared.js").ToolDefinition<{
954
+ source_platform_id: string;
955
+ target_platform_id: string;
956
+ include: {
957
+ agents?: boolean | undefined;
958
+ agent_tools?: boolean | undefined;
959
+ triggers?: boolean | undefined;
960
+ behavior?: boolean | undefined;
961
+ platform_settings?: boolean | undefined;
962
+ pipeline_settings?: boolean | undefined;
963
+ knowledge_space_links?: boolean | undefined;
964
+ follow_up_sequences?: boolean | undefined;
965
+ custom_variables?: boolean | undefined;
966
+ };
967
+ workspace_id?: string | undefined;
968
+ conflict_mode?: "reject" | "merge" | "overwrite" | undefined;
969
+ name_collision_strategy?: "suffix" | "keep" | undefined;
970
+ }> | import("./definitions/shared.js").ToolDefinition<{
971
+ preview_token: string;
972
+ source_platform_id: string;
973
+ target_platform_id: string;
974
+ explicit_confirmation: true;
975
+ workspace_id?: string | undefined;
976
+ acknowledge_destructive_overwrite?: true | undefined;
977
+ idempotency_key?: string | undefined;
978
+ actor_note?: string | undefined;
979
+ }> | import("./definitions/shared.js").ToolDefinition<{
980
+ clone_id: string;
981
+ workspace_id?: string | undefined;
982
+ }> | import("./definitions/shared.js").ToolDefinition<{
983
+ name: string;
984
+ workspace_id?: string | undefined;
985
+ file_type?: "IMAGE" | "DOCUMENT" | "VIDEO" | "AUDIO" | "VOICE" | "VIDEO_NOTE" | "OTHER" | undefined;
986
+ section_id?: string | undefined;
987
+ source?: "OTHER" | "USER_UPLOAD" | "AGENT_GREETING" | "CAMPAIGN" | "CRM_IMPORT" | undefined;
988
+ mime_type?: string | undefined;
989
+ size_bytes?: number | undefined;
990
+ }> | import("./definitions/shared.js").ToolDefinition<{
991
+ upload_ref: string;
992
+ workspace_id?: string | undefined;
993
+ }> | import("./definitions/shared.js").ToolDefinition<{
994
+ workspace_id?: string | undefined;
995
+ file_type?: "IMAGE" | "DOCUMENT" | "VIDEO" | "AUDIO" | "VOICE" | "VIDEO_NOTE" | "OTHER" | undefined;
996
+ source?: "OTHER" | "USER_UPLOAD" | "AGENT_GREETING" | "CAMPAIGN" | "CRM_IMPORT" | undefined;
997
+ section_id?: string | undefined;
998
+ limit?: number | undefined;
999
+ offset?: number | undefined;
1000
+ }> | import("./definitions/shared.js").ToolDefinition<{
1001
+ platform_type: "TelegramBot" | "Wazzup" | "Salebot" | "SmsGorod" | "VKon" | "GetCourse" | "WebWidget" | "Bitrix24Bot";
1002
+ name: string;
1003
+ workspace_id?: string | undefined;
1004
+ fields?: {
1005
+ [x: string]: unknown;
1006
+ } | undefined;
1007
+ }> | import("./definitions/shared.js").ToolDefinition<{
1008
+ setup_ref: string;
1009
+ workspace_id?: string | undefined;
1010
+ }> | import("./definitions/shared.js").ToolDefinition<{
1011
+ platform_type: "Instagram" | "Avito";
1012
+ workspace_id?: string | undefined;
1013
+ name?: string | undefined;
1014
+ }> | import("./definitions/shared.js").ToolDefinition<{
1015
+ crm_type: "GETCOURSE" | "TELEGRAM" | "AMOCRM" | "BITRIX24";
1016
+ workspace_id?: string | undefined;
1017
+ fields?: {
1018
+ [x: string]: unknown;
1019
+ } | undefined;
1020
+ }> | import("./definitions/shared.js").ToolDefinition<{
1021
+ crm_id: string;
1022
+ workspace_id?: string | undefined;
1023
+ }> | import("./definitions/shared.js").ToolDefinition<{
1024
+ crm_id: string;
1025
+ replace_all_existing: true;
1026
+ enabled: boolean;
1027
+ field_mappings: {
1028
+ crm_field_id: string;
1029
+ save_as: string;
1030
+ enabled: boolean;
1031
+ crm_field_name?: string | undefined;
1032
+ special_purpose?: "phone" | "telegramId" | "username" | "avitoId" | "instagramId" | "vkonId" | undefined;
1033
+ category?: string | undefined;
1034
+ }[];
1035
+ workspace_id?: string | undefined;
1036
+ }> | import("./definitions/shared.js").ToolDefinition<{
1037
+ crm_id: string;
1038
+ workspace_id?: string | undefined;
1039
+ sync?: boolean | undefined;
1040
+ }> | import("./definitions/shared.js").ToolDefinition<{
1041
+ crm_id: string;
1042
+ operator_id: string;
1043
+ workspace_id?: string | undefined;
1044
+ is_operator?: boolean | undefined;
1045
+ is_sdr?: boolean | undefined;
1046
+ }> | import("./definitions/shared.js").ToolDefinition<{
1047
+ data_source_type: "ONE_C";
1048
+ workspace_id?: string | undefined;
1049
+ fields?: {
1050
+ [x: string]: unknown;
1051
+ } | undefined;
1052
+ }> | import("./definitions/shared.js").ToolDefinition<{
1053
+ data_source_id: string;
1054
+ workspace_id?: string | undefined;
1055
+ }> | import("./definitions/shared.js").ToolDefinition<{
1056
+ data_source_id: string;
1057
+ role: "OTHER" | "PRODUCT_CATALOG" | "STOCK" | "PRICE" | "ORDER" | "CUSTOMER";
1058
+ external_code: string;
1059
+ display_name: string;
1060
+ workspace_id?: string | undefined;
1061
+ metadata?: {
1062
+ [x: string]: unknown;
1063
+ } | undefined;
1064
+ }> | import("./definitions/shared.js").ToolDefinition<{
1065
+ data_source_id: string;
1066
+ enabled: boolean;
1067
+ workspace_id?: string | undefined;
1068
+ }> | import("./definitions/shared.js").ToolDefinition<{
1069
+ data_source_id: string;
1070
+ catalog_external_code: string;
1071
+ enabled: boolean;
1072
+ workspace_id?: string | undefined;
1073
+ name?: string | undefined;
1074
+ }> | import("./definitions/shared.js").ToolDefinition<{
1075
+ workspace_id: string;
1076
+ }> | import("./definitions/shared.js").ToolDefinition<Record<string, never>> | import("./definitions/shared.js").ToolDefinition<{
1077
+ agent_id: string;
1078
+ models?: string[] | undefined;
1079
+ dialogue_count?: number | undefined;
1080
+ message_direction?: "INBOUND" | "OUTBOUND" | undefined;
1081
+ }> | import("./definitions/shared.js").ToolDefinition<{
1082
+ run_id: string;
1083
+ winner: string;
1084
+ rationale: string;
1085
+ per_model: {
1086
+ model: string;
1087
+ success_score: number;
1088
+ strengths: string[];
1089
+ weaknesses: string[];
1090
+ excerpts: string[];
1091
+ }[];
1092
+ }>)[];