@besales/mcp 0.47.1 → 1.0.0-beta.2

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 (587) hide show
  1. package/README.md +109 -164
  2. package/README.onprem.ru.md +35 -0
  3. package/bin/besales-mcp-http.js +9 -0
  4. package/bin/besales-onprem.mjs +19 -0
  5. package/dist/auth/connection-store.d.ts +3 -1
  6. package/dist/auth/connection-store.js +9 -3
  7. package/dist/auth/connection-store.js.map +1 -1
  8. package/dist/auth/oauth-client.d.ts +20 -27
  9. package/dist/auth/oauth-client.js +31 -23
  10. package/dist/auth/oauth-client.js.map +1 -1
  11. package/dist/auth/session-workspace.d.ts +1 -0
  12. package/dist/auth/session-workspace.js +10 -1
  13. package/dist/auth/session-workspace.js.map +1 -1
  14. package/dist/auth/token-storage.js +4 -1
  15. package/dist/auth/token-storage.js.map +1 -1
  16. package/dist/cli.d.ts +1 -0
  17. package/dist/cli.js +80 -19
  18. package/dist/cli.js.map +1 -1
  19. package/dist/constants/crm-catalog.d.ts +2 -0
  20. package/dist/constants/crm-catalog.js +3 -0
  21. package/dist/constants/crm-catalog.js.map +1 -0
  22. package/dist/http/api-client.d.ts +52 -7
  23. package/dist/http/api-client.js +131 -66
  24. package/dist/http/api-client.js.map +1 -1
  25. package/dist/http/feedback-document-error.d.ts +26 -0
  26. package/dist/http/feedback-document-error.js +22 -0
  27. package/dist/http/feedback-document-error.js.map +1 -0
  28. package/dist/http-server.d.ts +15 -0
  29. package/dist/http-server.js +378 -0
  30. package/dist/http-server.js.map +1 -0
  31. package/dist/instructions/server-instructions.d.ts +1 -1
  32. package/dist/instructions/server-instructions.js +6 -3
  33. package/dist/instructions/server-instructions.js.map +1 -1
  34. package/dist/network/constants.d.ts +25 -0
  35. package/dist/network/constants.js +26 -0
  36. package/dist/network/constants.js.map +1 -0
  37. package/dist/network/failed-verifications.d.ts +10 -0
  38. package/dist/network/failed-verifications.js +37 -0
  39. package/dist/network/failed-verifications.js.map +1 -0
  40. package/dist/network/http-test-fixture.d.ts +3 -0
  41. package/dist/network/http-test-fixture.js +86 -0
  42. package/dist/network/http-test-fixture.js.map +1 -0
  43. package/dist/network/known-keys.d.ts +10 -0
  44. package/dist/network/known-keys.js +38 -0
  45. package/dist/network/known-keys.js.map +1 -0
  46. package/dist/network/memory-credentials.d.ts +11 -0
  47. package/dist/network/memory-credentials.js +24 -0
  48. package/dist/network/memory-credentials.js.map +1 -0
  49. package/dist/network/rate-limit.d.ts +23 -0
  50. package/dist/network/rate-limit.js +62 -0
  51. package/dist/network/rate-limit.js.map +1 -0
  52. package/dist/network/rejected-keys.d.ts +9 -0
  53. package/dist/network/rejected-keys.js +39 -0
  54. package/dist/network/rejected-keys.js.map +1 -0
  55. package/dist/network/request-work.d.ts +8 -0
  56. package/dist/network/request-work.js +20 -0
  57. package/dist/network/request-work.js.map +1 -0
  58. package/dist/network/successful-keys.d.ts +17 -0
  59. package/dist/network/successful-keys.js +47 -0
  60. package/dist/network/successful-keys.js.map +1 -0
  61. package/dist/resources/concepts/external-execution.md +3 -1
  62. package/dist/resources/concepts/feedback-sheets.md +21 -12
  63. package/dist/resources/concepts/icp.md +8 -1
  64. package/dist/resources/concepts/sandbox.md +15 -6
  65. package/dist/resources/concepts/triggers.md +8 -0
  66. package/dist/resources/concepts/workbook-classification.md +104 -50
  67. package/dist/resources/docs/agent-behavior.md +51 -382
  68. package/dist/resources/docs/campaigns.md +9 -16
  69. package/dist/resources/docs/crm-integration.md +39 -523
  70. package/dist/resources/docs/files-and-uploads.md +23 -286
  71. package/dist/resources/docs/follow-up.md +47 -12
  72. package/dist/resources/docs/knowledge-base.md +52 -521
  73. package/dist/resources/docs/pipeline-builder.md +26 -216
  74. package/dist/resources/docs/pipeline-settings-deep.md +27 -220
  75. package/dist/resources/docs/platforms.md +106 -519
  76. package/dist/resources/docs/prompt-anatomy.md +39 -285
  77. package/dist/resources/docs/routing.md +8 -16
  78. package/dist/resources/docs/trigger-actions.md +40 -24
  79. package/dist/resources/docs/variables.md +8 -12
  80. package/dist/resources/operator-edit.contract.d.ts +7 -0
  81. package/dist/resources/operator-edit.contract.js +8 -0
  82. package/dist/resources/operator-edit.contract.js.map +1 -0
  83. package/dist/resources/registry.js +20 -4
  84. package/dist/resources/registry.js.map +1 -1
  85. package/dist/resources/workflows/audit-dialogues.md +23 -12
  86. package/dist/resources/workflows/compare-models.md +6 -4
  87. package/dist/resources/workflows/connect-crm-from-scratch.md +15 -12
  88. package/dist/resources/workflows/connect-datasource-from-scratch.md +5 -4
  89. package/dist/resources/workflows/extract-from-document.md +8 -6
  90. package/dist/resources/workflows/operator-edit.md +15 -0
  91. package/dist/resources/workflows/platform-setup-from-scratch.md +59 -70
  92. package/dist/resources/workflows/production-readiness-check.md +25 -15
  93. package/dist/schemas/mcp-tools.json +12061 -6753
  94. package/dist/schemas/voice-actions-api.contract.json +248 -0
  95. package/dist/shared/constants/broadcast-reason.constants.d.ts +2 -0
  96. package/dist/shared/constants/broadcast-reason.constants.js +47 -0
  97. package/dist/shared/constants/broadcast-reason.constants.js.map +1 -0
  98. package/dist/shared/constants/crm-stage-pool.constants.d.ts +2 -0
  99. package/dist/shared/constants/crm-stage-pool.constants.js +3 -0
  100. package/dist/shared/constants/crm-stage-pool.constants.js.map +1 -0
  101. package/dist/shared/constants/followup-note.constants.d.ts +3 -0
  102. package/dist/shared/constants/followup-note.constants.js +4 -0
  103. package/dist/shared/constants/followup-note.constants.js.map +1 -0
  104. package/dist/shared/constants/followup-session.constants.d.ts +2 -0
  105. package/dist/shared/constants/followup-session.constants.js +3 -0
  106. package/dist/shared/constants/followup-session.constants.js.map +1 -0
  107. package/dist/shared/constants/funnel-analytics.constants.d.ts +2 -0
  108. package/dist/shared/constants/funnel-analytics.constants.js +3 -0
  109. package/dist/shared/constants/funnel-analytics.constants.js.map +1 -0
  110. package/dist/shared/constants/message-filter.constants.d.ts +7 -0
  111. package/dist/shared/constants/message-filter.constants.js +8 -0
  112. package/dist/shared/constants/message-filter.constants.js.map +1 -0
  113. package/dist/shared/utils/trigger-repeat-mapping.d.ts +72 -0
  114. package/dist/shared/utils/trigger-repeat-mapping.js +53 -0
  115. package/dist/shared/utils/trigger-repeat-mapping.js.map +1 -0
  116. package/dist/skills/besales-dialogue-audit/SKILL.md +31 -20
  117. package/dist/tasks/task-state-store.js +5 -0
  118. package/dist/tasks/task-state-store.js.map +1 -1
  119. package/dist/tools/annotations.js +4 -3
  120. package/dist/tools/annotations.js.map +1 -1
  121. package/dist/tools/definitions/agent-design.d.ts +78 -21
  122. package/dist/tools/definitions/agent-design.js +246 -90
  123. package/dist/tools/definitions/agent-design.js.map +1 -1
  124. package/dist/tools/definitions/agent-model-notice.d.ts +5 -0
  125. package/dist/tools/definitions/agent-model-notice.js +31 -0
  126. package/dist/tools/definitions/agent-model-notice.js.map +1 -0
  127. package/dist/tools/definitions/agent-models.d.ts +5 -0
  128. package/dist/tools/definitions/agent-models.js +26 -0
  129. package/dist/tools/definitions/agent-models.js.map +1 -0
  130. package/dist/tools/definitions/agent-settings.d.ts +85 -0
  131. package/dist/tools/definitions/agent-settings.js +187 -0
  132. package/dist/tools/definitions/agent-settings.js.map +1 -0
  133. package/dist/tools/definitions/ai-costs.d.ts +12 -0
  134. package/dist/tools/definitions/ai-costs.js +142 -0
  135. package/dist/tools/definitions/ai-costs.js.map +1 -0
  136. package/dist/tools/definitions/api-tool-request.d.ts +15 -0
  137. package/dist/tools/definitions/api-tool-request.js +2 -0
  138. package/dist/tools/definitions/api-tool-request.js.map +1 -0
  139. package/dist/tools/definitions/behavior-shipped-form.d.ts +182 -0
  140. package/dist/tools/definitions/behavior-shipped-form.js +185 -0
  141. package/dist/tools/definitions/behavior-shipped-form.js.map +1 -0
  142. package/dist/tools/definitions/broadcast-alerts.d.ts +6 -0
  143. package/dist/tools/definitions/broadcast-alerts.js +72 -0
  144. package/dist/tools/definitions/broadcast-alerts.js.map +1 -0
  145. package/dist/tools/definitions/broadcast-analytics.d.ts +102 -18
  146. package/dist/tools/definitions/broadcast-analytics.js +732 -427
  147. package/dist/tools/definitions/broadcast-analytics.js.map +1 -1
  148. package/dist/tools/definitions/broadcast-scheduler.d.ts +19 -13
  149. package/dist/tools/definitions/broadcast-scheduler.js +217 -128
  150. package/dist/tools/definitions/broadcast-scheduler.js.map +1 -1
  151. package/dist/tools/definitions/call-operator-task.schema.d.ts +11 -0
  152. package/dist/tools/definitions/call-operator-task.schema.js +30 -0
  153. package/dist/tools/definitions/call-operator-task.schema.js.map +1 -0
  154. package/dist/tools/definitions/contacts.d.ts +3 -0
  155. package/dist/tools/definitions/contacts.js +57 -31
  156. package/dist/tools/definitions/contacts.js.map +1 -1
  157. package/dist/tools/definitions/crm-platform.d.ts +28 -39
  158. package/dist/tools/definitions/crm-platform.js +235 -344
  159. package/dist/tools/definitions/crm-platform.js.map +1 -1
  160. package/dist/tools/definitions/crm-stage-pool.messages.d.ts +39 -0
  161. package/dist/tools/definitions/crm-stage-pool.messages.js +43 -0
  162. package/dist/tools/definitions/crm-stage-pool.messages.js.map +1 -0
  163. package/dist/tools/definitions/crm-stage-pool.schema.d.ts +64 -0
  164. package/dist/tools/definitions/crm-stage-pool.schema.js +109 -0
  165. package/dist/tools/definitions/crm-stage-pool.schema.js.map +1 -0
  166. package/dist/tools/definitions/custom-reports.d.ts +12 -0
  167. package/dist/tools/definitions/custom-reports.js +68 -0
  168. package/dist/tools/definitions/custom-reports.js.map +1 -0
  169. package/dist/tools/definitions/datasource.d.ts +2 -1
  170. package/dist/tools/definitions/datasource.js +28 -13
  171. package/dist/tools/definitions/datasource.js.map +1 -1
  172. package/dist/tools/definitions/dialog-review-findings-response.d.ts +14 -0
  173. package/dist/tools/definitions/dialog-review-findings-response.js +23 -0
  174. package/dist/tools/definitions/dialog-review-findings-response.js.map +1 -0
  175. package/dist/tools/definitions/dialog-review-safe-response.d.ts +5 -0
  176. package/dist/tools/definitions/dialog-review-safe-response.js +152 -0
  177. package/dist/tools/definitions/dialog-review-safe-response.js.map +1 -0
  178. package/dist/tools/definitions/dialog-review.d.ts +49 -0
  179. package/dist/tools/definitions/dialog-review.js +383 -0
  180. package/dist/tools/definitions/dialog-review.js.map +1 -0
  181. package/dist/tools/definitions/dialogue-analysis.d.ts +46 -0
  182. package/dist/tools/definitions/dialogue-analysis.js +170 -0
  183. package/dist/tools/definitions/dialogue-analysis.js.map +1 -0
  184. package/dist/tools/definitions/dialogue-audit-agent-scope.d.ts +7 -0
  185. package/dist/tools/definitions/dialogue-audit-agent-scope.js +41 -0
  186. package/dist/tools/definitions/dialogue-audit-agent-scope.js.map +1 -0
  187. package/dist/tools/definitions/dialogue-audit-alias.d.ts +67 -0
  188. package/dist/tools/definitions/dialogue-audit-alias.js +559 -0
  189. package/dist/tools/definitions/dialogue-audit-alias.js.map +1 -0
  190. package/dist/tools/definitions/dialogue-export.d.ts +7 -1
  191. package/dist/tools/definitions/dialogue-export.js +89 -32
  192. package/dist/tools/definitions/dialogue-export.js.map +1 -1
  193. package/dist/tools/definitions/dialogue-followup-state.d.ts +9 -0
  194. package/dist/tools/definitions/dialogue-followup-state.js +69 -0
  195. package/dist/tools/definitions/dialogue-followup-state.js.map +1 -0
  196. package/dist/tools/definitions/edit-version-transport.test-fixtures.d.ts +13 -0
  197. package/dist/tools/definitions/edit-version-transport.test-fixtures.js +292 -0
  198. package/dist/tools/definitions/edit-version-transport.test-fixtures.js.map +1 -0
  199. package/dist/tools/definitions/edit-version.d.ts +5 -0
  200. package/dist/tools/definitions/edit-version.js +20 -0
  201. package/dist/tools/definitions/edit-version.js.map +1 -0
  202. package/dist/tools/definitions/external-api-channels.js +17 -15
  203. package/dist/tools/definitions/external-api-channels.js.map +1 -1
  204. package/dist/tools/definitions/feedback-document-access.d.ts +16 -0
  205. package/dist/tools/definitions/feedback-document-access.js +63 -0
  206. package/dist/tools/definitions/feedback-document-access.js.map +1 -0
  207. package/dist/tools/definitions/fixtures/shipped-setup-status.d.ts +3 -0
  208. package/dist/tools/definitions/fixtures/shipped-setup-status.js +9 -0
  209. package/dist/tools/definitions/fixtures/shipped-setup-status.js.map +1 -0
  210. package/dist/tools/definitions/follow-up-config.d.ts +79 -0
  211. package/dist/tools/definitions/follow-up-config.js +258 -0
  212. package/dist/tools/definitions/follow-up-config.js.map +1 -0
  213. package/dist/tools/definitions/follow-up-funnel-test.d.ts +4 -3
  214. package/dist/tools/definitions/follow-up-funnel-test.js +65 -52
  215. package/dist/tools/definitions/follow-up-funnel-test.js.map +1 -1
  216. package/dist/tools/definitions/follow-up-promotion-instructions.d.ts +2 -0
  217. package/dist/tools/definitions/follow-up-promotion-instructions.js +7 -0
  218. package/dist/tools/definitions/follow-up-promotion-instructions.js.map +1 -0
  219. package/dist/tools/definitions/follow-up-setup.d.ts +4 -28
  220. package/dist/tools/definitions/follow-up-setup.js +20 -87
  221. package/dist/tools/definitions/follow-up-setup.js.map +1 -1
  222. package/dist/tools/definitions/follow-up.d.ts +20 -122
  223. package/dist/tools/definitions/follow-up.js +200 -354
  224. package/dist/tools/definitions/follow-up.js.map +1 -1
  225. package/dist/tools/definitions/followup-getcourse-compat.d.ts +29 -0
  226. package/dist/tools/definitions/followup-getcourse-compat.js +62 -0
  227. package/dist/tools/definitions/followup-getcourse-compat.js.map +1 -0
  228. package/dist/tools/definitions/followup-sequence-config.schema.d.ts +10 -0
  229. package/dist/tools/definitions/followup-sequence-config.schema.js +14 -0
  230. package/dist/tools/definitions/followup-sequence-config.schema.js.map +1 -0
  231. package/dist/tools/definitions/funnel-analytics.d.ts +18 -0
  232. package/dist/tools/definitions/funnel-analytics.js +150 -0
  233. package/dist/tools/definitions/funnel-analytics.js.map +1 -0
  234. package/dist/tools/definitions/getcourse-anchor-refresh.d.ts +5 -9
  235. package/dist/tools/definitions/getcourse-anchor-refresh.js +26 -31
  236. package/dist/tools/definitions/getcourse-anchor-refresh.js.map +1 -1
  237. package/dist/tools/definitions/getcourse-cold-outbound-settings.d.ts +46 -0
  238. package/dist/tools/definitions/getcourse-cold-outbound-settings.js +37 -0
  239. package/dist/tools/definitions/getcourse-cold-outbound-settings.js.map +1 -0
  240. package/dist/tools/definitions/getcourse-cold-welcome.d.ts +17 -29
  241. package/dist/tools/definitions/getcourse-cold-welcome.js +182 -242
  242. package/dist/tools/definitions/getcourse-cold-welcome.js.map +1 -1
  243. package/dist/tools/definitions/getcourse-wave-welcome.messages.d.ts +10 -0
  244. package/dist/tools/definitions/getcourse-wave-welcome.messages.js +17 -0
  245. package/dist/tools/definitions/getcourse-wave-welcome.messages.js.map +1 -0
  246. package/dist/tools/definitions/help.js.map +1 -1
  247. package/dist/tools/definitions/icp-import-source.d.ts +75 -0
  248. package/dist/tools/definitions/icp-import-source.js +88 -0
  249. package/dist/tools/definitions/icp-import-source.js.map +1 -0
  250. package/dist/tools/definitions/inbound-analytics.d.ts +13 -0
  251. package/dist/tools/definitions/inbound-analytics.js +55 -0
  252. package/dist/tools/definitions/inbound-analytics.js.map +1 -0
  253. package/dist/tools/definitions/instagram-comment.templates.d.ts +19 -0
  254. package/dist/tools/definitions/instagram-comment.templates.js +34 -0
  255. package/dist/tools/definitions/instagram-comment.templates.js.map +1 -0
  256. package/dist/tools/definitions/instagram-settings-compat.d.ts +33 -0
  257. package/dist/tools/definitions/instagram-settings-compat.js +7 -0
  258. package/dist/tools/definitions/instagram-settings-compat.js.map +1 -0
  259. package/dist/tools/definitions/knowledge-chunking.d.ts +42 -0
  260. package/dist/tools/definitions/knowledge-chunking.js +83 -0
  261. package/dist/tools/definitions/knowledge-chunking.js.map +1 -0
  262. package/dist/tools/definitions/knowledge-space-search-fields.d.ts +12 -0
  263. package/dist/tools/definitions/knowledge-space-search-fields.js +30 -0
  264. package/dist/tools/definitions/knowledge-space-search-fields.js.map +1 -0
  265. package/dist/tools/definitions/knowledge.d.ts +24 -14
  266. package/dist/tools/definitions/knowledge.js +342 -233
  267. package/dist/tools/definitions/knowledge.js.map +1 -1
  268. package/dist/tools/definitions/legacy-trigger-repeat.d.ts +17 -0
  269. package/dist/tools/definitions/legacy-trigger-repeat.js +53 -0
  270. package/dist/tools/definitions/legacy-trigger-repeat.js.map +1 -0
  271. package/dist/tools/definitions/link-tracking.d.ts +8 -0
  272. package/dist/tools/definitions/link-tracking.js +141 -38
  273. package/dist/tools/definitions/link-tracking.js.map +1 -1
  274. package/dist/tools/definitions/mailing-variant-content.d.ts +75 -0
  275. package/dist/tools/definitions/mailing-variant-content.js +73 -0
  276. package/dist/tools/definitions/mailing-variant-content.js.map +1 -0
  277. package/dist/tools/definitions/model-comparison.d.ts +1 -0
  278. package/dist/tools/definitions/model-comparison.js +4 -5
  279. package/dist/tools/definitions/model-comparison.js.map +1 -1
  280. package/dist/tools/definitions/money-currency.d.ts +5 -0
  281. package/dist/tools/definitions/money-currency.js +10 -0
  282. package/dist/tools/definitions/money-currency.js.map +1 -0
  283. package/dist/tools/definitions/operator-workflow.d.ts +5 -5
  284. package/dist/tools/definitions/operator-workflow.js +80 -27
  285. package/dist/tools/definitions/operator-workflow.js.map +1 -1
  286. package/dist/tools/definitions/platform-funnel-analytics.d.ts +42 -0
  287. package/dist/tools/definitions/platform-funnel-analytics.js +72 -0
  288. package/dist/tools/definitions/platform-funnel-analytics.js.map +1 -0
  289. package/dist/tools/definitions/platform-getcourse-wave-field-bindings.d.ts +42 -0
  290. package/dist/tools/definitions/platform-getcourse-wave-field-bindings.js +51 -0
  291. package/dist/tools/definitions/platform-getcourse-wave-field-bindings.js.map +1 -0
  292. package/dist/tools/definitions/platform-settings-limits.d.ts +5 -0
  293. package/dist/tools/definitions/platform-settings-limits.js +6 -0
  294. package/dist/tools/definitions/platform-settings-limits.js.map +1 -0
  295. package/dist/tools/definitions/platform-settings-shipped-form.d.ts +37 -0
  296. package/dist/tools/definitions/platform-settings-shipped-form.js +310 -0
  297. package/dist/tools/definitions/platform-settings-shipped-form.js.map +1 -0
  298. package/dist/tools/definitions/platform-settings-update.d.ts +300 -0
  299. package/dist/tools/definitions/platform-settings-update.js +134 -0
  300. package/dist/tools/definitions/platform-settings-update.js.map +1 -0
  301. package/dist/tools/definitions/{getcourse-wave.d.ts → platform-setup-wave.d.ts} +75 -6
  302. package/dist/tools/definitions/platform-setup-wave.js +1079 -0
  303. package/dist/tools/definitions/platform-setup-wave.js.map +1 -0
  304. package/dist/tools/definitions/platform-setup.d.ts +701 -222
  305. package/dist/tools/definitions/platform-setup.js +313 -752
  306. package/dist/tools/definitions/platform-setup.js.map +1 -1
  307. package/dist/tools/definitions/platform-widget-page-rules.schema.d.ts +10 -0
  308. package/dist/tools/definitions/platform-widget-page-rules.schema.js +7 -0
  309. package/dist/tools/definitions/platform-widget-page-rules.schema.js.map +1 -0
  310. package/dist/tools/definitions/prompt-authoring.constants.d.ts +2 -0
  311. package/dist/tools/definitions/prompt-authoring.constants.js +3 -0
  312. package/dist/tools/definitions/prompt-authoring.constants.js.map +1 -0
  313. package/dist/tools/definitions/prompt-batch-controls.d.ts +5 -0
  314. package/dist/tools/definitions/prompt-batch-controls.js +40 -0
  315. package/dist/tools/definitions/prompt-batch-controls.js.map +1 -0
  316. package/dist/tools/definitions/prompt-draft-authoring.d.ts +5 -0
  317. package/dist/tools/definitions/prompt-draft-authoring.js +24 -0
  318. package/dist/tools/definitions/prompt-draft-authoring.js.map +1 -0
  319. package/dist/tools/definitions/prompt-text-projection.d.ts +11 -0
  320. package/dist/tools/definitions/prompt-text-projection.js +62 -0
  321. package/dist/tools/definitions/prompt-text-projection.js.map +1 -0
  322. package/dist/tools/definitions/reviewer-paid.d.ts +19 -0
  323. package/dist/tools/definitions/reviewer-paid.js +115 -0
  324. package/dist/tools/definitions/reviewer-paid.js.map +1 -0
  325. package/dist/tools/definitions/routing-condition-projection.d.ts +31 -0
  326. package/dist/tools/definitions/routing-condition-projection.js +97 -0
  327. package/dist/tools/definitions/routing-condition-projection.js.map +1 -0
  328. package/dist/tools/definitions/schedule-selection-hints.d.ts +3 -0
  329. package/dist/tools/definitions/schedule-selection-hints.js +42 -0
  330. package/dist/tools/definitions/schedule-selection-hints.js.map +1 -0
  331. package/dist/tools/definitions/{scheduled-tasks.d.ts → scheduled-task-alias.d.ts} +12 -10
  332. package/dist/tools/definitions/scheduled-task-alias.js +207 -0
  333. package/dist/tools/definitions/scheduled-task-alias.js.map +1 -0
  334. package/dist/tools/definitions/session.js +3 -3
  335. package/dist/tools/definitions/session.js.map +1 -1
  336. package/dist/tools/definitions/setup-init-operation.schema.d.ts +2 -0
  337. package/dist/tools/definitions/setup-init-operation.schema.js +6 -0
  338. package/dist/tools/definitions/setup-init-operation.schema.js.map +1 -0
  339. package/dist/tools/definitions/shared-input.helpers.d.ts +51 -0
  340. package/dist/tools/definitions/shared-input.helpers.js +323 -0
  341. package/dist/tools/definitions/shared-input.helpers.js.map +1 -0
  342. package/dist/tools/definitions/shared.d.ts +414 -284
  343. package/dist/tools/definitions/shared.js +436 -619
  344. package/dist/tools/definitions/shared.js.map +1 -1
  345. package/dist/tools/definitions/shipped-output-names.d.ts +19 -0
  346. package/dist/tools/definitions/shipped-output-names.js +123 -0
  347. package/dist/tools/definitions/shipped-output-names.js.map +1 -0
  348. package/dist/tools/definitions/task-state.d.ts +5 -5
  349. package/dist/tools/definitions/task-state.js +2 -1
  350. package/dist/tools/definitions/task-state.js.map +1 -1
  351. package/dist/tools/definitions/telegram-personal-capacity.d.ts +4 -0
  352. package/dist/tools/definitions/telegram-personal-capacity.js +18 -0
  353. package/dist/tools/definitions/telegram-personal-capacity.js.map +1 -0
  354. package/dist/tools/definitions/telegram-pool-policy.d.ts +8 -0
  355. package/dist/tools/definitions/telegram-pool-policy.js +56 -0
  356. package/dist/tools/definitions/telegram-pool-policy.js.map +1 -0
  357. package/dist/tools/definitions/touch-history-alias.d.ts +4 -0
  358. package/dist/tools/definitions/touch-history-alias.js +99 -0
  359. package/dist/tools/definitions/touch-history-alias.js.map +1 -0
  360. package/dist/tools/definitions/trigger-action-item.schema.d.ts +254 -0
  361. package/dist/tools/definitions/trigger-action-item.schema.js +121 -0
  362. package/dist/tools/definitions/trigger-action-item.schema.js.map +1 -0
  363. package/dist/tools/definitions/trigger-argument.schema.d.ts +14 -0
  364. package/dist/tools/definitions/trigger-argument.schema.js +23 -0
  365. package/dist/tools/definitions/trigger-argument.schema.js.map +1 -0
  366. package/dist/tools/definitions/trigger-claim-alias.d.ts +10 -0
  367. package/dist/tools/definitions/trigger-claim-alias.js +90 -0
  368. package/dist/tools/definitions/trigger-claim-alias.js.map +1 -0
  369. package/dist/tools/definitions/trigger-echo-projection.d.ts +1 -0
  370. package/dist/tools/definitions/trigger-echo-projection.js +41 -0
  371. package/dist/tools/definitions/trigger-echo-projection.js.map +1 -0
  372. package/dist/tools/definitions/trigger-upsert.tool.d.ts +29 -0
  373. package/dist/tools/definitions/trigger-upsert.tool.js +122 -0
  374. package/dist/tools/definitions/trigger-upsert.tool.js.map +1 -0
  375. package/dist/tools/definitions/v15-port-descriptions.d.ts +11 -0
  376. package/dist/tools/definitions/v15-port-descriptions.js +30 -0
  377. package/dist/tools/definitions/v15-port-descriptions.js.map +1 -0
  378. package/dist/tools/definitions/variables.d.ts +44 -0
  379. package/dist/tools/definitions/variables.js +310 -0
  380. package/dist/tools/definitions/variables.js.map +1 -0
  381. package/dist/tools/definitions/voice-action-input.d.ts +9 -0
  382. package/dist/tools/definitions/voice-action-input.js +141 -0
  383. package/dist/tools/definitions/voice-action-input.js.map +1 -0
  384. package/dist/tools/definitions/widget-customization-compat.d.ts +51 -0
  385. package/dist/tools/definitions/widget-customization-compat.js +23 -0
  386. package/dist/tools/definitions/widget-customization-compat.js.map +1 -0
  387. package/dist/tools/definitions.d.ts +1105 -621
  388. package/dist/tools/definitions.js +57 -27
  389. package/dist/tools/definitions.js.map +1 -1
  390. package/dist/tools/description-localization.js +3 -2
  391. package/dist/tools/description-localization.js.map +1 -1
  392. package/dist/tools/follow-up-request.d.ts +19 -0
  393. package/dist/tools/follow-up-request.js +81 -0
  394. package/dist/tools/follow-up-request.js.map +1 -0
  395. package/dist/tools/followup-revision.d.ts +4 -0
  396. package/dist/tools/followup-revision.js +29 -0
  397. package/dist/tools/followup-revision.js.map +1 -0
  398. package/dist/tools/incomplete-list.js +4 -0
  399. package/dist/tools/incomplete-list.js.map +1 -1
  400. package/dist/tools/inventory.js +47 -11
  401. package/dist/tools/inventory.js.map +1 -1
  402. package/dist/tools/operation-recovery.d.ts +4 -0
  403. package/dist/tools/operation-recovery.js +33 -0
  404. package/dist/tools/operation-recovery.js.map +1 -0
  405. package/dist/tools/registry-mapping-primary.cases.d.ts +2 -0
  406. package/dist/tools/registry-mapping-primary.cases.js +753 -0
  407. package/dist/tools/registry-mapping-primary.cases.js.map +1 -0
  408. package/dist/tools/registry-mapping-secondary.cases.d.ts +2 -0
  409. package/dist/tools/registry-mapping-secondary.cases.js +626 -0
  410. package/dist/tools/registry-mapping-secondary.cases.js.map +1 -0
  411. package/dist/tools/registry-mapping.cases.d.ts +8 -0
  412. package/dist/tools/registry-mapping.cases.js +13 -0
  413. package/dist/tools/registry-mapping.cases.js.map +1 -0
  414. package/dist/tools/registry-test-fixtures.d.ts +50 -0
  415. package/dist/tools/registry-test-fixtures.js +120 -0
  416. package/dist/tools/registry-test-fixtures.js.map +1 -0
  417. package/dist/tools/registry.d.ts +2 -0
  418. package/dist/tools/registry.js +82 -52
  419. package/dist/tools/registry.js.map +1 -1
  420. package/dist/tools/result.d.ts +1 -0
  421. package/dist/tools/result.js +90 -22
  422. package/dist/tools/result.js.map +1 -1
  423. package/dist/tools/toolsets.d.ts +16 -0
  424. package/dist/tools/toolsets.js +25 -1
  425. package/dist/tools/toolsets.js.map +1 -1
  426. package/dist/types/api-contract.gen.d.ts +105862 -22115
  427. package/dist/utils/credential-signatures.d.ts +3 -0
  428. package/dist/utils/credential-signatures.js +10 -0
  429. package/dist/utils/credential-signatures.js.map +1 -0
  430. package/dist/utils/data-source-column-name.d.ts +10 -0
  431. package/dist/utils/data-source-column-name.js +36 -0
  432. package/dist/utils/data-source-column-name.js.map +1 -0
  433. package/dist/utils/logger.d.ts +1 -0
  434. package/dist/utils/logger.js +32 -8
  435. package/dist/utils/logger.js.map +1 -1
  436. package/dist/utils/secret-read-boundary.d.ts +2 -0
  437. package/dist/utils/secret-read-boundary.js +88 -0
  438. package/dist/utils/secret-read-boundary.js.map +1 -0
  439. package/dist/utils/setup-secrets.d.ts +4 -0
  440. package/dist/utils/setup-secrets.js +40 -0
  441. package/dist/utils/setup-secrets.js.map +1 -0
  442. package/docs/agent-models.md +9 -0
  443. package/docs/agent-usage-guide.full.ru.md +1 -4
  444. package/docs/analytics-contract.md +67 -0
  445. package/docs/async-operation-lifecycle.md +10 -3
  446. package/docs/connect.ru.md +144 -4
  447. package/docs/contact-company-profile.md +17 -0
  448. package/docs/contact-recommendations.md +7 -0
  449. package/docs/crm-stage-pool.md +73 -0
  450. package/docs/customer-data.md +61 -0
  451. package/docs/edit-versions.md +36 -0
  452. package/docs/failure-semantics.md +17 -9
  453. package/docs/help-navigation.md +15 -42
  454. package/docs/host-compatibility-matrix.md +72 -93
  455. package/docs/host-setup.md +33 -35
  456. package/docs/invariants/public-api-and-contracts.md +16 -0
  457. package/docs/legacy-action-settings.md +21 -0
  458. package/docs/main-transfer-dependencies.md +38 -0
  459. package/docs/mcp2-parity.md +50 -0
  460. package/docs/modules/analytics.md +79 -0
  461. package/docs/modules/besales-mcp.md +137 -0
  462. package/docs/modules/dialog-review-report.md +38 -0
  463. package/docs/modules/dialogue-followup-adapters.md +39 -0
  464. package/docs/modules/message-reactions.md +17 -0
  465. package/docs/modules/network-mode.md +284 -0
  466. package/docs/modules/prompt-batch-and-dialogue-controls.md +69 -0
  467. package/docs/pii-policy.md +21 -16
  468. package/docs/response-size-budget.md +197 -7
  469. package/docs/secret-read-boundary.md +102 -0
  470. package/docs/task-state.md +7 -2
  471. package/docs/telegram-pool-policy.md +19 -0
  472. package/docs/tool-effects.md +15 -9
  473. package/docs/tool-surface.md +205 -4
  474. package/docs/voice-actions-and-inbox.md +95 -0
  475. package/docs/wazzup-instagram-comments.md +26 -0
  476. package/package.json +17 -10
  477. package/scripts/api-source-loader.spec.mjs +40 -0
  478. package/scripts/audit-bridge-controls.mjs +129 -0
  479. package/scripts/audit-revert-mutants.mjs +107 -0
  480. package/scripts/bridge-api-input.spec.mjs +98 -0
  481. package/scripts/bridge-controls-mutants.mjs +130 -0
  482. package/scripts/brx3-shipped-refusals.spec.mjs +149 -0
  483. package/scripts/brx4-ledger-payload.spec.mjs +127 -0
  484. package/scripts/build-onprem.mjs +108 -0
  485. package/scripts/connect-clients.sh +141 -0
  486. package/scripts/connect-scopes.mjs +166 -0
  487. package/scripts/connect-scopes.spec.mjs +83 -0
  488. package/scripts/emit-personal-link-carrier.mjs +31 -0
  489. package/scripts/emit-setup-init-schemas.mjs +24 -0
  490. package/scripts/emit-tool-routes.mjs +878 -0
  491. package/scripts/emit-tool-routes.spec.mjs +300 -0
  492. package/scripts/followup-registry.spec.mjs +107 -0
  493. package/scripts/generate-crm-rotation-contract.mjs +98 -0
  494. package/scripts/generate-followup-session-contract.mjs +16 -0
  495. package/scripts/icp-import-verification/mutate.cjs +70 -0
  496. package/scripts/import-secret-read-contract.mjs +53 -0
  497. package/scripts/install-claude-desktop.js +1 -1
  498. package/scripts/lag-decisions.mjs +37 -0
  499. package/scripts/lag-decisions.spec.mjs +87 -0
  500. package/scripts/lag-open-task-owners.mjs +46 -0
  501. package/scripts/lag-open-task-owners.spec.mjs +78 -0
  502. package/scripts/lag-payload.mjs +10 -0
  503. package/scripts/legacy-action-lag.spec.mjs +22 -0
  504. package/scripts/legacy-field-refusal.shipped.spec.mjs +99 -0
  505. package/scripts/mcpcompat-handler.mjs +34 -0
  506. package/scripts/mcpcompat-loader.mjs +36 -0
  507. package/scripts/mcpcompat-typescript.mjs +3 -0
  508. package/scripts/platform-settings-shipped-parity.spec.mjs +89 -0
  509. package/scripts/prbr-round1-recheck.spec.mjs +605 -0
  510. package/scripts/prbr-shipped-compatibility.spec.mjs +276 -0
  511. package/scripts/publish-mcp-registry.mjs +98 -0
  512. package/scripts/publish-mcp-registry.spec.mjs +68 -0
  513. package/scripts/record-scheduled-task-call.mjs +26 -0
  514. package/scripts/refusal-probe.mjs +17 -0
  515. package/scripts/refusal-probe.spec.mjs +29 -0
  516. package/scripts/registry-diff.mjs +502 -0
  517. package/scripts/registry-diff.spec.mjs +787 -0
  518. package/scripts/request-query.mjs +43 -0
  519. package/scripts/request-query.spec.mjs +82 -0
  520. package/scripts/route-lag.mjs +23 -0
  521. package/scripts/route-lag.spec.mjs +30 -0
  522. package/scripts/sample-args.mjs +174 -0
  523. package/scripts/sample-args.spec.mjs +160 -0
  524. package/scripts/shipped-definitions.mjs +197 -0
  525. package/scripts/shipped-definitions.spec.mjs +57 -0
  526. package/scripts/shipped-inputs.spec.mjs +136 -0
  527. package/scripts/shipped-recordings.spec.mjs +19 -0
  528. package/scripts/shipped-ref.d.mts +5 -0
  529. package/scripts/shipped-ref.mjs +20 -0
  530. package/scripts/shipped-ref.spec.mjs +59 -0
  531. package/scripts/shipped-registry.mjs +107 -0
  532. package/scripts/shipped-sample-candidates.mjs +69 -0
  533. package/scripts/shipped-sample-candidates.spec.mjs +117 -0
  534. package/scripts/shipped-sample.mjs +868 -0
  535. package/scripts/shipped-sample.spec.mjs +451 -0
  536. package/scripts/sync-agent-model-schemas.mjs +72 -0
  537. package/scripts/sync-api-contracts.mjs +85 -0
  538. package/scripts/sync-api-contracts.spec.mjs +144 -0
  539. package/scripts/sync-contract-ledger-schemas.mjs +161 -0
  540. package/scripts/sync-crm-stage-pool-schema.mjs +85 -0
  541. package/scripts/sync-prompt-draft-schema.mjs +92 -0
  542. package/scripts/sync-route-map.mjs +94 -0
  543. package/scripts/sync-schema-descriptions.mjs +25 -0
  544. package/scripts/sync-tool-inventory.mjs +27 -0
  545. package/scripts/sync-trigger-argument-schema.mjs +121 -0
  546. package/scripts/sync-trigger-repeat-mapping.mjs +12 -0
  547. package/scripts/sync-voice-actions-contract.mjs +67 -0
  548. package/scripts/sync-voice-actions-tools.mjs +97 -0
  549. package/scripts/sync-wave-id-schemas.mjs +55 -0
  550. package/scripts/tool-input-schemas.mjs +46 -0
  551. package/scripts/tool-input-schemas.spec.mjs +50 -0
  552. package/scripts/verify-followup-adapters.mjs +235 -0
  553. package/scripts/verify-secret-read-import.mjs +84 -0
  554. package/scripts/verify-secret-read-mutants.mjs +143 -0
  555. package/dist/tools/definitions/analytics.d.ts +0 -40
  556. package/dist/tools/definitions/analytics.js +0 -233
  557. package/dist/tools/definitions/analytics.js.map +0 -1
  558. package/dist/tools/definitions/broadcast-mailing-variants.d.ts +0 -41
  559. package/dist/tools/definitions/broadcast-mailing-variants.js +0 -194
  560. package/dist/tools/definitions/broadcast-mailing-variants.js.map +0 -1
  561. package/dist/tools/definitions/dialogue-audit.d.ts +0 -38
  562. package/dist/tools/definitions/dialogue-audit.js +0 -292
  563. package/dist/tools/definitions/dialogue-audit.js.map +0 -1
  564. package/dist/tools/definitions/getcourse-wave.js +0 -519
  565. package/dist/tools/definitions/getcourse-wave.js.map +0 -1
  566. package/dist/tools/definitions/operational-overview.d.ts +0 -3
  567. package/dist/tools/definitions/operational-overview.js +0 -23
  568. package/dist/tools/definitions/operational-overview.js.map +0 -1
  569. package/dist/tools/definitions/scheduled-tasks.js +0 -173
  570. package/dist/tools/definitions/scheduled-tasks.js.map +0 -1
  571. package/dist/tools/definitions/trigger-contact-claims.d.ts +0 -7
  572. package/dist/tools/definitions/trigger-contact-claims.js +0 -60
  573. package/dist/tools/definitions/trigger-contact-claims.js.map +0 -1
  574. package/dist/tools/registry-mapping-cases-core.d.ts +0 -38
  575. package/dist/tools/registry-mapping-cases-core.js +0 -927
  576. package/dist/tools/registry-mapping-cases-core.js.map +0 -1
  577. package/dist/tools/registry-mapping-cases-platform.d.ts +0 -2
  578. package/dist/tools/registry-mapping-cases-platform.js +0 -1052
  579. package/dist/tools/registry-mapping-cases-platform.js.map +0 -1
  580. package/dist/tools/trigger-action-config.d.ts +0 -49
  581. package/dist/tools/trigger-action-config.js +0 -171
  582. package/dist/tools/trigger-action-config.js.map +0 -1
  583. package/docs/evals/model-behavior-scorecard.md +0 -80
  584. package/docs/operation-coverage.md +0 -114
  585. package/scripts/mock-credentials.js +0 -77
  586. package/scripts/model-eval-server.js +0 -213
  587. package/scripts/run-model-eval.js +0 -447
@@ -1,21 +1,107 @@
1
1
  export declare const toolDefinitions: (import("./definitions/shared.js").ToolDefinition<{
2
+ workspace_id?: string | undefined;
3
+ agent_id?: string | undefined;
4
+ }> | import("./definitions/shared.js").ToolDefinition<{
5
+ agent_id: string;
6
+ limit?: number | undefined;
7
+ cursor?: string | undefined;
8
+ }> | import("./definitions/shared.js").ToolDefinition<{
9
+ agent_id: string;
10
+ workspace_id?: string | undefined;
11
+ period_from?: string | undefined;
12
+ period_to?: string | undefined;
13
+ }> | import("./definitions/shared.js").ToolDefinition<{
14
+ workspace_id?: string | undefined;
15
+ }> | import("./definitions/shared.js").ToolDefinition<{
16
+ idempotency_key: string;
17
+ explicit_confirmation: true;
18
+ confirmation_reason: string;
19
+ workspace_id?: string | undefined;
20
+ }> | import("./definitions/shared.js").ToolDefinition<{
21
+ idempotency_key: string;
22
+ workspace_id?: string | undefined;
23
+ }> | import("./definitions/shared.js").ToolDefinition<{
24
+ run_id: string;
25
+ workspace_id?: string | undefined;
26
+ }> | import("./definitions/shared.js").ToolDefinition<{
27
+ channel_id: string;
28
+ workspace_id?: string | undefined;
29
+ }> | import("./definitions/shared.js").ToolDefinition<{
2
30
  name: string;
3
31
  source: "from_dialogues" | "from_files" | "from_scratch";
4
32
  workspace_id?: string | undefined;
5
33
  description?: string | undefined;
6
34
  }> | import("./definitions/shared.js").ToolDefinition<{
7
35
  icp_id: string;
8
- mode: "audio" | "text";
9
- outcome_filter: ("won" | "lost" | "in_progress")[];
10
- days_ago: number;
11
- anonymize: boolean;
36
+ request_key: string;
37
+ mode: "text" | "audio";
38
+ gdpr_confirmed: true;
39
+ source?: {
40
+ kind: "stored_crm_dialogues";
41
+ crmConnectionId: string;
42
+ outcomeFilter?: ("unknown" | "won" | "lost" | "in_progress")[] | undefined;
43
+ daysAgo?: number | undefined;
44
+ } | {
45
+ kind: "bitrix_open_lines";
46
+ crmConnectionId: string;
47
+ createdFrom: string;
48
+ createdTo: string;
49
+ categoryId?: number | undefined;
50
+ continuationStart?: number | undefined;
51
+ } | {
52
+ kind: "amocrm_calls";
53
+ crmConnectionId: string;
54
+ leadIds: string[];
55
+ defaultOutcome?: "unknown" | "won" | "lost" | "in_progress" | undefined;
56
+ } | {
57
+ kind: "onlinepbx_calls";
58
+ startedFrom: string;
59
+ startedTo: string;
60
+ trunkId?: string | undefined;
61
+ minTalkTimeSec?: number | undefined;
62
+ } | {
63
+ kind: "xlsx_upload";
64
+ storedFileId: string;
65
+ crmConnectionId: string;
66
+ sheets?: {
67
+ sheetIndex: number;
68
+ outcome: "won" | "lost";
69
+ }[] | undefined;
70
+ } | undefined;
12
71
  crm_connection_id?: string | undefined;
13
- gdpr_confirmed?: boolean | undefined;
14
- audio_source_type?: "xlsx_upload" | "amocrm_leads" | "onlinepbx_direct" | "bitrix_openlines" | undefined;
72
+ outcome_filter?: ("unknown" | "won" | "lost" | "in_progress")[] | undefined;
73
+ days_ago?: number | undefined;
74
+ anonymize?: true | undefined;
75
+ audio_source_type?: "bitrix_open_lines" | "amocrm_calls" | "onlinepbx_calls" | "xlsx_upload" | "bitrix_openlines" | "onlinepbx_direct" | "amocrm_leads" | undefined;
15
76
  audio_source_config?: {
16
- [x: string]: unknown;
77
+ crmConnectionId?: string | undefined;
78
+ storedFileId?: string | undefined;
79
+ leadIds?: string[] | undefined;
80
+ defaultOutcome?: "unknown" | "won" | "lost" | "in_progress" | undefined;
81
+ startDate?: string | undefined;
82
+ endDate?: string | undefined;
83
+ createdFrom?: string | undefined;
84
+ createdTo?: string | undefined;
85
+ startedFrom?: string | undefined;
86
+ startedTo?: string | undefined;
87
+ categoryId?: number | undefined;
88
+ continuationStart?: number | undefined;
89
+ trunkId?: string | undefined;
90
+ minTalkTimeSec?: number | undefined;
91
+ sheets?: {
92
+ sheetIndex: number;
93
+ outcome: "won" | "lost";
94
+ }[] | undefined;
17
95
  } | undefined;
18
- language?: "auto" | "ru-RU" | "uz-UZ" | "kk-KZ" | undefined;
96
+ continuation_run_id?: string | undefined;
97
+ language?: "ru-RU" | "uz-UZ" | "kk-KZ" | "auto" | undefined;
98
+ }> | import("./definitions/shared.js").ToolDefinition<{
99
+ icp_id: string;
100
+ request_key: string;
101
+ }> | import("./definitions/shared.js").ToolDefinition<{
102
+ icp_id: string;
103
+ cursor?: string | undefined;
104
+ limit?: number | undefined;
19
105
  }> | import("./definitions/shared.js").ToolDefinition<{
20
106
  run_id: string;
21
107
  }> | import("./definitions/shared.js").ToolDefinition<{
@@ -64,6 +150,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
64
150
  sample_id: string;
65
151
  }> | import("./definitions/shared.js").ToolDefinition<{
66
152
  agent_id: string;
153
+ output_language?: string | undefined;
67
154
  icp_profile_id?: string | undefined;
68
155
  business_context?: {
69
156
  [x: string]: unknown;
@@ -91,7 +178,8 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
91
178
  }> | import("./definitions/shared.js").ToolDefinition<{
92
179
  agent_id: string;
93
180
  version_id: string;
94
- modes: ("grammar" | "industry" | "structure" | "completeness" | "contradictions")[];
181
+ modes: ("grammar" | "structure" | "industry" | "contradictions" | "completeness")[];
182
+ source_language?: string | undefined;
95
183
  }> | import("./definitions/shared.js").ToolDefinition<{
96
184
  aggregated_issues: {
97
185
  [x: string]: unknown;
@@ -99,7 +187,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
99
187
  agent_id: string;
100
188
  operation_id: string;
101
189
  stages: {
102
- name: "grammar" | "industry" | "structure" | "aggregation";
190
+ name: "grammar" | "structure" | "industry" | "aggregation";
103
191
  output: {
104
192
  [x: string]: unknown;
105
193
  };
@@ -124,16 +212,12 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
124
212
  max_turns?: number | undefined;
125
213
  } | undefined;
126
214
  } | undefined;
127
- }> | import("./definitions/shared.js").ToolDefinition<{
128
- agent_id: string;
129
- limit?: number | undefined;
130
- cursor?: string | undefined;
131
215
  }> | import("./definitions/shared.js").ToolDefinition<{
132
216
  run_id: string;
133
217
  reviewed_issues: {
134
218
  scenario_id?: string | undefined;
135
219
  turn_index?: number | undefined;
136
- category?: "other" | "hallucination" | "wrong_action" | "bad_tone" | "missed_context" | undefined;
220
+ category?: "hallucination" | "wrong_action" | "missed_context" | "bad_tone" | "other" | undefined;
137
221
  description?: string | undefined;
138
222
  }[];
139
223
  general_comments?: string | undefined;
@@ -145,8 +229,8 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
145
229
  run_id: string;
146
230
  operation_id: string;
147
231
  findings: {
148
- category: "other" | "hallucination" | "wrong_action" | "bad_tone" | "missed_context" | "wrong_routing" | "rag_miss";
149
- severity: "critical" | "low" | "medium";
232
+ category: "hallucination" | "wrong_action" | "wrong_routing" | "missed_context" | "rag_miss" | "bad_tone" | "other";
233
+ severity: "low" | "medium" | "critical";
150
234
  scenario_id?: string | undefined;
151
235
  scenarioId?: string | undefined;
152
236
  description?: string | undefined;
@@ -164,8 +248,8 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
164
248
  agent_id: string;
165
249
  operation_id: string;
166
250
  findings: {
167
- category: "other" | "hallucination" | "wrong_action" | "bad_tone" | "missed_context" | "contradiction" | "off_topic";
168
- severity: "critical" | "low" | "medium";
251
+ category: "hallucination" | "wrong_action" | "missed_context" | "bad_tone" | "other" | "contradiction" | "off_topic";
252
+ severity: "low" | "medium" | "critical";
169
253
  message: string;
170
254
  dialogue_id?: string | undefined;
171
255
  dialogueId?: string | undefined;
@@ -203,13 +287,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
203
287
  segment_ids: string[] | undefined;
204
288
  name: string;
205
289
  situations: {
206
- role: "client" | "agent";
290
+ role: "agent" | "client";
207
291
  text: string;
208
292
  expect?: {
209
- triggers?: string[] | undefined;
210
- noTriggers?: string[] | undefined;
211
- tools?: string[] | undefined;
212
- noTools?: string[] | undefined;
293
+ noTools?: "call_operator"[] | undefined;
213
294
  answerContains?: string[] | undefined;
214
295
  answerNotContains?: string[] | undefined;
215
296
  } | undefined;
@@ -240,11 +321,137 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
240
321
  condition?: string | null | undefined;
241
322
  }[];
242
323
  };
243
- preamble?: string | undefined;
324
+ preamble?: string | null | undefined;
325
+ }> | import("./definitions/shared.js").ToolDefinition<{
326
+ platform_id: string;
327
+ operation: "set" | "get";
328
+ workspace_id?: string | undefined;
329
+ rebind_policy?: "rebind" | "escalate" | undefined;
330
+ idempotency_key?: string | undefined;
331
+ }> | import("./definitions/shared.js").ToolDefinition<{
332
+ platform_id: string;
333
+ name: string;
334
+ model_lane: "CHEAP" | "STANDARD" | "DEEP";
335
+ description?: string | null | undefined;
336
+ model?: string | undefined;
337
+ default_icp_profile_id?: string | undefined;
338
+ agent_variable_overrides?: {
339
+ custom_variable_id: string;
340
+ override_value: string | number | boolean;
341
+ }[] | undefined;
342
+ agent_workspace_variable_overrides?: {
343
+ workspace_variable_id: string;
344
+ override_value: string | number | boolean;
345
+ }[] | undefined;
346
+ }> | import("./definitions/shared.js").ToolDefinition<{
347
+ platform_id: string;
348
+ source_agent_id: string;
349
+ name: string;
350
+ display_name?: string | undefined;
351
+ }> | import("./definitions/shared.js").ToolDefinition<{
352
+ platform_id: string;
353
+ agent_id: string;
354
+ expected_version?: string | undefined;
355
+ expected_routing_version?: string | undefined;
356
+ name?: string | undefined;
357
+ description?: string | null | undefined;
358
+ model_lane?: "CHEAP" | "STANDARD" | "DEEP" | undefined;
359
+ model?: string | undefined;
360
+ default_icp_profile_id?: string | null | undefined;
361
+ use_global_history?: boolean | undefined;
362
+ adapt_to_user_language?: boolean | undefined;
363
+ runtime_config?: {
364
+ temperature?: number | undefined;
365
+ max_tokens?: number | undefined;
366
+ memory_history_size?: number | undefined;
367
+ rag_top_k?: number | undefined;
368
+ rag_min_score?: number | undefined;
369
+ qa_min_score?: number | undefined;
370
+ qa_context_limit?: number | undefined;
371
+ max_response_symbols?: number | undefined;
372
+ reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
373
+ verbosity?: "low" | "medium" | "high" | undefined;
374
+ enable_thinking?: boolean | undefined;
375
+ timezone?: string | undefined;
376
+ language_code?: string | undefined;
377
+ summarize_every?: number | undefined;
378
+ summary_max_size?: number | undefined;
379
+ use_summary?: boolean | undefined;
380
+ include_crm_fields_in_memory?: boolean | undefined;
381
+ include_trigger_context?: boolean | undefined;
382
+ } | undefined;
383
+ output_config?: {
384
+ display_name?: string | undefined;
385
+ response_mode?: "TEXT" | "SILENT" | undefined;
386
+ button_generator?: {
387
+ enabled?: boolean | undefined;
388
+ max_buttons?: number | undefined;
389
+ keyboard_type?: "INLINE" | "REPLY" | undefined;
390
+ dynamic?: boolean | undefined;
391
+ } | undefined;
392
+ } | undefined;
393
+ knowledge_space_ids?: string[] | undefined;
394
+ agent_scope?: "other" | "sale" | "reactivation" | "support" | "onboarding" | "faq" | "qualification" | "complaint" | undefined;
395
+ agent_variable_overrides?: {
396
+ custom_variable_id: string;
397
+ override_value: string | number | boolean;
398
+ }[] | undefined;
399
+ agent_workspace_variable_overrides?: {
400
+ workspace_variable_id: string;
401
+ override_value: string | number | boolean;
402
+ }[] | undefined;
403
+ }> | import("./definitions/shared.js").ToolDefinition<{
404
+ platform_id: string;
405
+ agent_id: string;
406
+ tools: {
407
+ tool_id: string;
408
+ priority?: number | undefined;
409
+ is_enabled?: boolean | undefined;
410
+ agent_specific_conditions?: {
411
+ [x: string]: unknown;
412
+ } | null | undefined;
413
+ }[];
414
+ }> | import("./definitions/shared.js").ToolDefinition<{
415
+ platform_id: string;
416
+ agent_id: string;
417
+ explicit_confirmation?: boolean | undefined;
418
+ confirmation_reason?: string | undefined;
419
+ arguments?: {
420
+ label: string;
421
+ description: string;
422
+ type: "TEXT" | "BOOLEAN" | "DATETIME" | "NUMBER";
423
+ key?: string | undefined;
424
+ required?: boolean | undefined;
425
+ }[] | undefined;
426
+ scope?: "ON_USER_MESSAGE" | undefined;
427
+ metadata?: {
428
+ [x: string]: unknown;
429
+ } | undefined;
430
+ actions?: unknown[] | undefined;
431
+ replace_actions?: boolean | undefined;
432
+ allow_repeated_calls?: boolean | undefined;
433
+ run_once_per_contact?: boolean | undefined;
434
+ trigger_id?: string | undefined;
435
+ name?: string | undefined;
436
+ condition?: string | undefined;
437
+ is_enabled?: boolean | undefined;
438
+ priority?: number | undefined;
439
+ stop_propagation?: boolean | undefined;
440
+ instagram_comment_kind?: "COMPLAINT" | null | undefined;
441
+ allow_repeat_in_conversation?: boolean | undefined;
442
+ }> | import("./definitions/shared.js").ToolDefinition<{
443
+ platform_id: string;
444
+ sequence_id: string;
445
+ step_index: number;
446
+ content: string;
447
+ expected_content: string;
448
+ expected_version?: string | undefined;
244
449
  }> | import("./definitions/shared.js").ToolDefinition<{
245
450
  platform_id: string;
246
451
  sequence_id?: string | undefined;
247
452
  include_config?: boolean | undefined;
453
+ limit?: number | undefined;
454
+ cursor?: string | undefined;
248
455
  }> | import("./definitions/shared.js").ToolDefinition<{
249
456
  platform_id: string;
250
457
  sequence_id: string;
@@ -255,38 +462,42 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
255
462
  from: string;
256
463
  to: string;
257
464
  sequence_id?: string[] | undefined;
258
- horizon_minutes?: 30 | 60 | 90 | 180 | 360 | 720 | 1440 | undefined;
259
- run_window_days?: 1 | 3 | 5 | 7 | 14 | undefined;
465
+ horizon_minutes?: 60 | 30 | 720 | 90 | 1440 | 180 | 360 | undefined;
466
+ run_window_days?: 1 | 3 | 7 | 5 | 14 | undefined;
467
+ only_replied_contacts?: boolean | undefined;
260
468
  segment?: string[] | undefined;
261
469
  product?: string[] | undefined;
262
- channel?: string[] | undefined;
470
+ channel?: ("SMS" | "VK" | "MAX" | "EMAIL" | "WHATSAPP" | "SITE" | "TELEGRAM" | "FACEBOOK" | "CHATIUM" | "VIBER")[] | undefined;
471
+ mailing_variant_id?: string[] | undefined;
472
+ }> | import("./definitions/shared.js").ToolDefinition<{
473
+ intent: "AUDIT_DIALOGUES" | "CAMPAIGN_REPORT" | "CONFIGURE_FOLLOWUP" | "CONNECT_CRM" | "CONNECT_DATASOURCE" | "CONTINUE_TASK" | "CREATE_BOT" | "DIAGNOSE_CONTACT" | "FREEFORM" | "IMPROVE_AGENT";
474
+ workspace_id?: string | undefined;
475
+ bot_type?: "OUTBOUND" | "UNKNOWN" | "SUPPORT" | "FAQ" | "BOOKING" | "SALES" | undefined;
476
+ platform_id?: string | undefined;
477
+ agent_id?: string | undefined;
478
+ contact_id?: string | undefined;
479
+ task_id?: string | undefined;
480
+ question?: string | undefined;
263
481
  }> | import("./definitions/shared.js").ToolDefinition<{
264
482
  platform_id: string;
265
- name: string;
266
- type: "MEETING_REMINDER" | "INACTIVE_USER_REACTIVATION" | "LOST_CLIENTS";
267
- trigger: "LOST_CLIENTS" | "USER_INACTIVITY" | "DEAL_CLOSED" | "BIRTHDAY_DATE" | "MEETING_TIME" | "CUSTOM_SCHEDULE";
268
- config: {
269
- [x: string]: unknown;
270
- };
271
- explicit_confirmation?: boolean | undefined;
272
- confirmation_reason?: string | undefined;
273
- sequence_id?: string | undefined;
274
- description?: string | null | undefined;
275
- enabled?: boolean | undefined;
483
+ sections?: ("behavior" | "router" | "platform" | "agent_summaries" | "agents_full" | "follow_up" | "pipeline_settings" | "readiness")[] | undefined;
276
484
  }> | import("./definitions/shared.js").ToolDefinition<{
277
485
  platform_id: string;
278
- sequence_id: string;
279
- name?: string | undefined;
486
+ action_type?: string | undefined;
487
+ }> | import("./definitions/shared.js").ToolDefinition<{
488
+ platform_id: string;
489
+ limit?: number | undefined;
490
+ cursor?: string | undefined;
491
+ query?: string | undefined;
492
+ }> | import("./definitions/shared.js").ToolDefinition<{
493
+ platform_id: string;
494
+ agent_id: string;
280
495
  }> | import("./definitions/shared.js").ToolDefinition<{
281
496
  platform_id: string;
282
- sequence_id: string;
283
- step_index: number;
284
- content: string;
285
- expected_content: string;
286
497
  }> | import("./definitions/shared.js").ToolDefinition<{
287
498
  platform_id: string;
288
499
  crm_id: string;
289
- channels: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[];
500
+ channels: string[];
290
501
  contacts: {
291
502
  contact_id: string;
292
503
  deal_id?: string | undefined;
@@ -300,7 +511,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
300
511
  segment_entered_at?: string | undefined;
301
512
  }[];
302
513
  workspace_id?: string | undefined;
303
- launch_type?: "status" | "board" | "group" | undefined;
514
+ launch_type?: "status" | "group" | "board" | undefined;
304
515
  funnel?: string | undefined;
305
516
  segment?: string | undefined;
306
517
  segment_description?: string | undefined;
@@ -328,10 +539,25 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
328
539
  }> | import("./definitions/shared.js").ToolDefinition<{
329
540
  job_id: string;
330
541
  workspace_id?: string | undefined;
542
+ }> | import("./definitions/shared.js").ToolDefinition<{
543
+ platform_id: string;
544
+ contacts: {
545
+ contact_id: string;
546
+ deal_id?: string | undefined;
547
+ dialog_id?: string | undefined;
548
+ transport?: string | undefined;
549
+ email?: string | undefined;
550
+ phone?: string | undefined;
551
+ first_name?: string | undefined;
552
+ last_name?: string | undefined;
553
+ }[];
554
+ workspace_id?: string | undefined;
555
+ check_messenger_presence?: boolean | undefined;
556
+ channels?: string[] | undefined;
331
557
  }> | import("./definitions/shared.js").ToolDefinition<{
332
558
  platform_id: string;
333
559
  crm_id: string;
334
- channels: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[];
560
+ channels: string[];
335
561
  contacts: {
336
562
  contact_id: string;
337
563
  deal_id?: string | undefined;
@@ -375,10 +601,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
375
601
  }> | import("./definitions/shared.js").ToolDefinition<{
376
602
  run_id: string;
377
603
  workspace_id?: string | undefined;
378
- }> | import("./definitions/shared.js").ToolDefinition<{
379
- run_id: string;
380
- workspace_id?: string | undefined;
381
- status?: "PENDING" | "CLAIMED" | "SENT" | "SKIPPED" | "FAILED" | "UNKNOWN" | undefined;
604
+ status?: "FAILED" | "PENDING" | "UNKNOWN" | "SKIPPED" | "SENT" | "CLAIMED" | undefined;
382
605
  cursor?: string | undefined;
383
606
  limit?: number | undefined;
384
607
  }> | import("./definitions/shared.js").ToolDefinition<{
@@ -398,7 +621,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
398
621
  lead_last_active_at?: string | undefined;
399
622
  segment_entered_at?: string | undefined;
400
623
  }[];
401
- channels: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[];
624
+ channels: string[];
402
625
  deal_fields: Record<string, string | number | boolean | null>;
403
626
  launch_type?: "status" | undefined;
404
627
  funnel?: string | undefined;
@@ -429,33 +652,6 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
429
652
  }> | import("./definitions/shared.js").ToolDefinition<{
430
653
  batch_id: string;
431
654
  workspace_id?: string | undefined;
432
- }> | import("./definitions/shared.js").ToolDefinition<{
433
- workspace_id?: string | undefined;
434
- }> | import("./definitions/shared.js").ToolDefinition<{
435
- intent: "CREATE_BOT" | "IMPROVE_AGENT" | "DIAGNOSE_CONTACT" | "AUDIT_DIALOGUES" | "CAMPAIGN_REPORT" | "CONNECT_CRM" | "CONNECT_DATASOURCE" | "CONFIGURE_FOLLOWUP" | "CONTINUE_TASK" | "FREEFORM";
436
- workspace_id?: string | undefined;
437
- bot_type?: "OUTBOUND" | "UNKNOWN" | "FAQ" | "SALES" | "BOOKING" | "SUPPORT" | undefined;
438
- platform_id?: string | undefined;
439
- agent_id?: string | undefined;
440
- contact_id?: string | undefined;
441
- task_id?: string | undefined;
442
- question?: string | undefined;
443
- }> | import("./definitions/shared.js").ToolDefinition<{
444
- platform_id: string;
445
- sections?: ("follow_up" | "platform" | "behavior" | "router" | "agent_summaries" | "agents_full" | "pipeline_settings" | "readiness")[] | undefined;
446
- }> | import("./definitions/shared.js").ToolDefinition<{
447
- platform_id: string;
448
- action_type?: string | undefined;
449
- }> | import("./definitions/shared.js").ToolDefinition<{
450
- platform_id: string;
451
- limit?: number | undefined;
452
- cursor?: string | undefined;
453
- query?: string | undefined;
454
- }> | import("./definitions/shared.js").ToolDefinition<{
455
- platform_id: string;
456
- agent_id: string;
457
- }> | import("./definitions/shared.js").ToolDefinition<{
458
- platform_id: string;
459
655
  }> | import("./definitions/shared.js").ToolDefinition<{
460
656
  platform_id: string;
461
657
  workspace_id?: string | undefined;
@@ -477,90 +673,19 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
477
673
  explicit_confirmation?: true | undefined;
478
674
  confirmation_reason?: string | undefined;
479
675
  }> | import("./definitions/shared.js").ToolDefinition<{
480
- platform_id: string;
481
- name: string;
482
- model_lane: "CHEAP" | "STANDARD" | "DEEP";
483
- description?: string | null | undefined;
484
- model?: string | undefined;
485
- default_icp_profile_id?: string | undefined;
486
- agent_variable_overrides?: {
487
- custom_variable_id: string;
488
- override_value: string | number | boolean;
489
- }[] | undefined;
490
- agent_workspace_variable_overrides?: {
491
- workspace_variable_id: string;
492
- override_value: string | number | boolean;
493
- }[] | undefined;
676
+ agent_id: string;
677
+ source_url: string;
494
678
  }> | import("./definitions/shared.js").ToolDefinition<{
495
- platform_id: string;
496
- source_agent_id: string;
497
- name: string;
498
- display_name?: string | undefined;
679
+ agent_id: string;
680
+ source_url: string;
681
+ access_mode: "READ_ONLY" | "EDITABLE";
682
+ confirm_document_access_change: true;
683
+ expected_document_snapshot: string;
499
684
  }> | import("./definitions/shared.js").ToolDefinition<{
500
685
  platform_id: string;
501
- agent_id: string;
502
- name?: string | undefined;
503
- description?: string | null | undefined;
504
- model_lane?: "CHEAP" | "STANDARD" | "DEEP" | undefined;
505
- model?: string | undefined;
506
- default_icp_profile_id?: string | null | undefined;
507
- use_global_history?: boolean | undefined;
508
- adapt_to_user_language?: boolean | undefined;
509
- runtime_config?: {
510
- temperature?: number | undefined;
511
- max_tokens?: number | undefined;
512
- memory_history_size?: number | undefined;
513
- rag_top_k?: number | undefined;
514
- rag_min_score?: number | undefined;
515
- qa_min_score?: number | undefined;
516
- qa_context_limit?: number | undefined;
517
- max_response_symbols?: number | undefined;
518
- reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
519
- verbosity?: "low" | "medium" | "high" | undefined;
520
- enable_thinking?: boolean | undefined;
521
- timezone?: string | undefined;
522
- language_code?: string | undefined;
523
- summarize_every?: number | undefined;
524
- summary_max_size?: number | undefined;
525
- use_summary?: boolean | undefined;
526
- include_crm_fields_in_memory?: boolean | undefined;
527
- include_trigger_context?: boolean | undefined;
528
- } | undefined;
529
- output_config?: {
530
- display_name?: string | undefined;
531
- response_mode?: "SILENT" | "TEXT" | undefined;
532
- button_generator?: {
533
- enabled?: boolean | undefined;
534
- max_buttons?: number | undefined;
535
- keyboard_type?: "INLINE" | "REPLY" | undefined;
536
- dynamic?: boolean | undefined;
537
- } | undefined;
538
- } | undefined;
539
- knowledge_space_ids?: string[] | undefined;
540
- agent_scope?: "sale" | "reactivation" | "support" | "onboarding" | "faq" | "qualification" | "complaint" | "other" | undefined;
541
- agent_variable_overrides?: {
542
- custom_variable_id: string;
543
- override_value: string | number | boolean;
544
- }[] | undefined;
545
- agent_workspace_variable_overrides?: {
546
- workspace_variable_id: string;
547
- override_value: string | number | boolean;
548
- }[] | undefined;
549
- }> | import("./definitions/shared.js").ToolDefinition<{
550
- platform_id: string;
551
- agent_id: string;
552
- tools: {
553
- tool_id: string;
554
- priority?: number | undefined;
555
- is_enabled?: boolean | undefined;
556
- agent_specific_conditions?: {
557
- [x: string]: unknown;
558
- } | null | undefined;
559
- }[];
560
- }> | import("./definitions/shared.js").ToolDefinition<{
561
- platform_id: string;
562
- explicit_confirmation?: boolean | undefined;
563
- confirmation_reason?: string | undefined;
686
+ explicit_confirmation?: boolean | undefined;
687
+ confirmation_reason?: string | undefined;
688
+ expected_version?: string | undefined;
564
689
  name?: string | undefined;
565
690
  model?: string | undefined;
566
691
  temperature?: number | undefined;
@@ -575,6 +700,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
575
700
  custom_router_prompt: string;
576
701
  explicit_confirmation?: boolean | undefined;
577
702
  confirmation_reason?: string | undefined;
703
+ expected_version?: string | undefined;
578
704
  routing_rule_id?: string | undefined;
579
705
  deal_mode?: string | null | undefined;
580
706
  custom_variable_id?: string | null | undefined;
@@ -595,27 +721,6 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
595
721
  variable_value?: string | undefined;
596
722
  }[] | undefined;
597
723
  condition_logic?: "ALL" | "ANY" | undefined;
598
- }> | import("./definitions/shared.js").ToolDefinition<{
599
- platform_id: string;
600
- agent_id: string;
601
- explicit_confirmation?: boolean | undefined;
602
- confirmation_reason?: string | undefined;
603
- trigger_id?: string | undefined;
604
- name?: string | undefined;
605
- condition?: string | undefined;
606
- is_enabled?: boolean | undefined;
607
- priority?: number | undefined;
608
- stop_propagation?: boolean | undefined;
609
- allow_repeated_calls?: boolean | undefined;
610
- run_once_per_contact?: boolean | undefined;
611
- scope?: "ON_USER_MESSAGE" | undefined;
612
- metadata?: {
613
- [x: string]: unknown;
614
- } | undefined;
615
- actions?: {
616
- [x: string]: unknown;
617
- }[] | undefined;
618
- replace_actions?: boolean | undefined;
619
724
  }> | import("./definitions/shared.js").ToolDefinition<{
620
725
  platform_id: string;
621
726
  agent_id: string;
@@ -626,7 +731,20 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
626
731
  platform_id: string;
627
732
  explicit_confirmation?: boolean | undefined;
628
733
  confirmation_reason?: string | undefined;
734
+ expected_version?: string | undefined;
629
735
  greeting?: {
736
+ text?: string | undefined;
737
+ file_id?: string | null | undefined;
738
+ buttons?: {
739
+ id: string;
740
+ label: string;
741
+ text: string;
742
+ order: number;
743
+ }[] | undefined;
744
+ keyboard_type?: "INLINE" | "REPLY" | undefined;
745
+ popup_delay_seconds?: number | undefined;
746
+ send_off_message_when_ai_disabled?: boolean | undefined;
747
+ schema_version?: 1 | undefined;
630
748
  bot_greeting?: string | undefined;
631
749
  greeting_file_id?: string | null | undefined;
632
750
  greeting_buttons?: {
@@ -636,119 +754,200 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
636
754
  order: number;
637
755
  }[] | undefined;
638
756
  greeting_buttons_keyboard_type?: "INLINE" | "REPLY" | undefined;
639
- popup_delay_seconds?: number | undefined;
640
757
  } | undefined;
641
758
  media_handling?: {
642
759
  image?: {
643
- behavior: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE";
644
- fixed_response_text?: string | undefined;
760
+ fixed_response_text?: string | null | undefined;
645
761
  call_operator?: boolean | undefined;
646
- operator_comment?: string | undefined;
762
+ operator_comment?: string | null | undefined;
763
+ behavior?: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE" | undefined;
647
764
  } | undefined;
648
765
  video?: {
649
- behavior: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE";
650
- fixed_response_text?: string | undefined;
766
+ fixed_response_text?: string | null | undefined;
651
767
  call_operator?: boolean | undefined;
652
- operator_comment?: string | undefined;
768
+ operator_comment?: string | null | undefined;
769
+ behavior?: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE" | undefined;
653
770
  } | undefined;
654
771
  audio?: {
655
- behavior: "SILENT" | "FIXED_RESPONSE";
656
- fixed_response_text?: string | undefined;
772
+ fixed_response_text?: string | null | undefined;
657
773
  call_operator?: boolean | undefined;
658
- operator_comment?: string | undefined;
774
+ operator_comment?: string | null | undefined;
775
+ behavior?: "SILENT" | "FIXED_RESPONSE" | undefined;
659
776
  } | undefined;
660
777
  document?: {
661
- behavior: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE";
662
- fixed_response_text?: string | undefined;
778
+ fixed_response_text?: string | null | undefined;
663
779
  call_operator?: boolean | undefined;
664
- operator_comment?: string | undefined;
780
+ operator_comment?: string | null | undefined;
781
+ behavior?: "SILENT" | "PROCESS_WITH_LLM" | "FIXED_RESPONSE" | undefined;
665
782
  } | undefined;
783
+ schema_version?: 1 | undefined;
784
+ } | undefined;
785
+ unsupported_input_handling?: {
786
+ behavior?: "SILENT" | "FIXED_RESPONSE" | "AS_TEXT" | undefined;
787
+ fixed_response_text?: string | null | undefined;
788
+ call_operator?: boolean | undefined;
789
+ operator_comment?: string | null | undefined;
790
+ schema_version?: 1 | undefined;
666
791
  } | undefined;
667
792
  url_handling?: {
668
- behavior: "SILENT" | "FIXED_RESPONSE" | "PASS_THROUGH" | "PROCESS_WITH_CRAWLER";
669
- fixed_response_text?: string | undefined;
793
+ behavior?: "SILENT" | "FIXED_RESPONSE" | "PASS_THROUGH" | "PROCESS_WITH_CRAWLER" | undefined;
794
+ fixed_response_text?: string | null | undefined;
670
795
  call_operator?: boolean | undefined;
671
- operator_comment?: string | undefined;
796
+ operator_comment?: string | null | undefined;
672
797
  use_youtube_data_api?: boolean | undefined;
798
+ schema_version?: 1 | undefined;
673
799
  } | undefined;
674
800
  error_handling?: {
675
801
  ai_error_behavior?: "SILENT" | "SEND_ERROR_MESSAGE" | undefined;
676
- ai_error_custom_message?: string | undefined;
677
- call_operator_with_error?: boolean | undefined;
802
+ custom_message?: string | null | undefined;
803
+ call_operator?: boolean | undefined;
804
+ ai_error_target?: {
805
+ status_id: string;
806
+ pipeline_id?: string | undefined;
807
+ } | null | undefined;
678
808
  ai_error_target_stage_id?: number | null | undefined;
809
+ schema_version?: 1 | undefined;
810
+ ai_error_custom_message?: string | null | undefined;
811
+ call_operator_with_error?: boolean | undefined;
679
812
  } | undefined;
680
813
  operator_schedule?: {
681
814
  enabled?: boolean | undefined;
682
815
  availability?: {
683
- monday?: {
816
+ MON?: {
684
817
  active: boolean;
685
818
  start_time?: string | undefined;
686
819
  end_time?: string | undefined;
687
820
  } | undefined;
688
- tuesday?: {
821
+ TUE?: {
689
822
  active: boolean;
690
823
  start_time?: string | undefined;
691
824
  end_time?: string | undefined;
692
825
  } | undefined;
693
- wednesday?: {
826
+ WED?: {
694
827
  active: boolean;
695
828
  start_time?: string | undefined;
696
829
  end_time?: string | undefined;
697
830
  } | undefined;
698
- thursday?: {
831
+ THU?: {
699
832
  active: boolean;
700
833
  start_time?: string | undefined;
701
834
  end_time?: string | undefined;
702
835
  } | undefined;
703
- friday?: {
836
+ FRI?: {
704
837
  active: boolean;
705
838
  start_time?: string | undefined;
706
839
  end_time?: string | undefined;
707
840
  } | undefined;
708
- saturday?: {
841
+ SAT?: {
709
842
  active: boolean;
710
843
  start_time?: string | undefined;
711
844
  end_time?: string | undefined;
712
845
  } | undefined;
713
- sunday?: {
846
+ SUN?: {
714
847
  active: boolean;
715
848
  start_time?: string | undefined;
716
849
  end_time?: string | undefined;
717
850
  } | undefined;
718
851
  } | undefined;
719
- unavailable_message?: string | undefined;
720
- bot_waiting_return_hours?: 0 | 1 | 12 | 3 | -1 | 6 | 24 | undefined;
852
+ unavailable_message?: string | null | undefined;
853
+ bot_waiting_return_hours?: 0 | 1 | 12 | 3 | 6 | -1 | 24 | undefined;
854
+ followup_waiting_return_hours?: number | undefined;
855
+ pause_agent_on_operator_reply?: boolean | undefined;
856
+ schema_version?: 1 | undefined;
721
857
  follow_up_waiting_return_hours?: number | undefined;
722
858
  skip_task_creation_on_call_operator?: boolean | undefined;
723
859
  } | undefined;
724
860
  typing_behavior?: {
861
+ typing_speed?: "medium" | "slow" | "fast" | "instant" | undefined;
725
862
  waiting_answer_time?: number | undefined;
726
863
  can_interrupt?: boolean | undefined;
727
- message_devide?: boolean | undefined;
728
- typing_speed?: "medium" | "slow" | "fast" | undefined;
864
+ fake_delay_ms?: number | undefined;
865
+ message_open_delay_ms?: number | undefined;
866
+ schema_version?: 1 | undefined;
729
867
  fake_delay?: number | undefined;
730
868
  message_open_delay?: number | undefined;
869
+ message_devide?: boolean | undefined;
731
870
  go_offline?: string | undefined;
732
871
  } | undefined;
733
872
  message_filters?: {
734
873
  id: string;
735
- source: string;
736
- target: string;
737
874
  enabled: boolean;
738
875
  order: number;
739
- }[] | undefined;
876
+ source: string;
877
+ target: string;
878
+ }[] | {
879
+ skip_task_creation_on_call_operator?: boolean | undefined;
880
+ schema_version?: 1 | undefined;
881
+ rules?: {
882
+ id: string;
883
+ enabled: boolean;
884
+ order: number;
885
+ source: string;
886
+ target: string;
887
+ }[] | undefined;
888
+ } | undefined;
740
889
  message_splitting?: {
890
+ enabled?: boolean | undefined;
891
+ mode?: "PARAGRAPH" | "SEPARATOR" | undefined;
892
+ separator?: string | undefined;
893
+ max_chunk_size?: number | undefined;
894
+ delay_between_ms?: number | undefined;
895
+ schema_version?: 1 | undefined;
741
896
  message_chunk_separator?: string | undefined;
742
897
  } | undefined;
743
898
  privacy?: {
744
899
  anonymization_enabled?: boolean | undefined;
745
- contact_name_personalization_mode?: "OFF" | "SHADOW" | "ENABLED" | undefined;
900
+ personalization_mode?: "OFF" | "SHADOW" | "ENABLED" | undefined;
746
901
  anonymization_disabled_types?: ("PHONE" | "EMAIL" | "INN" | "PASSPORT" | "CARD" | "DATE_OF_BIRTH" | "ACCOUNT" | "SNILS" | "OGRN" | "OGRNIP" | "SOCIAL_ID")[] | undefined;
902
+ schema_version?: 1 | undefined;
903
+ contact_name_personalization_mode?: "OFF" | "SHADOW" | "ENABLED" | undefined;
904
+ } | undefined;
905
+ crm_behavior?: {
906
+ inbound_deal_filter?: {
907
+ enabled: boolean;
908
+ type: "NONE" | "TAG" | "CUSTOM_FIELD";
909
+ value?: string | null | undefined;
910
+ field_id?: string | null | undefined;
911
+ } | undefined;
912
+ schema_version?: 1 | undefined;
747
913
  } | undefined;
914
+ }> | import("./definitions/shared.js").ToolDefinition<{
915
+ platform_id: string;
916
+ name: string;
917
+ type: "MEETING_REMINDER" | "INACTIVE_USER_REACTIVATION" | "LOST_CLIENTS";
918
+ trigger: "LOST_CLIENTS" | "USER_INACTIVITY" | "DEAL_CLOSED" | "BIRTHDAY_DATE" | "MEETING_TIME" | "CUSTOM_SCHEDULE";
919
+ config: {
920
+ [x: string]: unknown;
921
+ assign_responsible_operator_ids?: string[] | null | undefined;
922
+ assignResponsibleOperatorIds?: number[] | null | undefined;
923
+ steps?: {
924
+ [x: string]: unknown;
925
+ stepType?: string | undefined;
926
+ getcourse?: {
927
+ [x: string]: unknown;
928
+ delivery?: {
929
+ [x: string]: unknown;
930
+ mode: "all" | "contact" | "explicit";
931
+ transports?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
932
+ } | null | undefined;
933
+ } | null | undefined;
934
+ }[] | undefined;
935
+ };
936
+ explicit_confirmation?: boolean | undefined;
937
+ confirmation_reason?: string | undefined;
938
+ sequence_id?: string | undefined;
939
+ expected_version?: string | undefined;
940
+ description?: string | null | undefined;
941
+ enabled?: boolean | undefined;
942
+ }> | import("./definitions/shared.js").ToolDefinition<{
943
+ platform_id: string;
944
+ sequence_id: string;
945
+ name?: string | undefined;
748
946
  }> | import("./definitions/shared.js").ToolDefinition<{
749
947
  platform_id: string;
750
948
  explicit_confirmation?: boolean | undefined;
751
949
  confirmation_reason?: string | undefined;
950
+ expected_version?: string | undefined;
752
951
  crm_pipeline_behavior?: {
753
952
  active_pipeline_ids?: string[] | undefined;
754
953
  filter_enabled?: boolean | undefined;
@@ -773,15 +972,17 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
773
972
  platform_id: string;
774
973
  explicit_confirmation?: boolean | undefined;
775
974
  confirmation_reason?: string | undefined;
975
+ workspace_id?: string | undefined;
976
+ expected_version?: string | undefined;
776
977
  name?: string | null | undefined;
777
978
  off_message?: string | undefined;
778
979
  timezone?: string | undefined;
779
980
  access_control?: {
780
- is_active?: boolean | undefined;
781
- is_ai_enabled?: boolean | undefined;
782
981
  is_user_filter_enabled?: boolean | undefined;
783
982
  filtered_user_ids?: string[] | undefined;
784
983
  enable_cleanup_commands?: boolean | undefined;
984
+ is_active?: boolean | undefined;
985
+ is_ai_enabled?: boolean | undefined;
785
986
  } | undefined;
786
987
  variables_config?: {
787
988
  enable_dynamic_variables?: boolean | undefined;
@@ -789,6 +990,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
789
990
  } | undefined;
790
991
  crm_behavior?: {
791
992
  send_to_crm?: boolean | undefined;
993
+ create_deal_on_first_outbound?: boolean | undefined;
792
994
  use_cross_platform_history?: boolean | undefined;
793
995
  responsible_assignee_strategy?: "ROUND_ROBIN" | "LEAST_BUSY" | "RANDOM" | "FIXED" | "OPERATOR_SPECIFIC" | undefined;
794
996
  fixed_responsible_id?: string | null | undefined;
@@ -798,6 +1000,12 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
798
1000
  failed_note_template?: string | null | undefined;
799
1001
  send_operator_takeover_note_to_crm?: boolean | undefined;
800
1002
  operator_takeover_note_template?: string | null | undefined;
1003
+ finish_auto_enabled?: boolean | undefined;
1004
+ finish_auto_days?: number | undefined;
1005
+ send_finish_auto_note_to_crm?: boolean | undefined;
1006
+ finish_auto_note_template?: string | null | undefined;
1007
+ getcourse_create_deal_payment_tracking_enabled?: boolean | undefined;
1008
+ getcourse_status_deal_fallback_enabled?: boolean | undefined;
801
1009
  deal_marker_type?: "NONE" | "TAG" | "CUSTOM_FIELD" | undefined;
802
1010
  deal_marker_value?: string | null | undefined;
803
1011
  deal_marker_field_id?: string | null | undefined;
@@ -807,14 +1015,16 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
807
1015
  inbound_deal_filter_field_id?: string | null | undefined;
808
1016
  } | undefined;
809
1017
  widget_marketing?: {
810
- web_widget_allowed_origins?: {
1018
+ marketing_field_mappings?: {
811
1019
  [x: string]: unknown;
812
- } | null | undefined;
1020
+ } | undefined;
1021
+ entry_url_variable_mapping?: {
1022
+ [x: string]: unknown;
1023
+ } | undefined;
1024
+ web_widget_allowed_origins?: string[] | Record<string, unknown> | null | undefined;
813
1025
  web_widget_show_page_info?: boolean | undefined;
814
1026
  web_widget_rate_limit_per_minute?: number | undefined;
815
- web_widget_customization?: {
816
- [x: string]: unknown;
817
- } | null | undefined;
1027
+ web_widget_customization?: Record<string, unknown> | null | undefined;
818
1028
  web_widget_marketing_field_mappings?: {
819
1029
  [x: string]: unknown;
820
1030
  } | null | undefined;
@@ -825,43 +1035,79 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
825
1035
  instagram_comment_behavior?: {
826
1036
  reply_to_instagram_comments?: boolean | undefined;
827
1037
  instagram_comment_handling_mode?: string | null | undefined;
828
- instagram_comment_reply_method?: string | null | undefined;
829
- instagram_comment_keywords?: {
830
- [x: string]: unknown;
1038
+ instagram_comment_reply_method?: "DM_ONLY" | "PUBLIC_REPLY" | "BOTH" | "PUBLIC_AND_DM" | undefined;
1039
+ instagram_comment_templates?: {
1040
+ dm?: {
1041
+ ru?: string | undefined;
1042
+ uz?: string | undefined;
1043
+ uz_cyrl?: string | undefined;
1044
+ } | undefined;
1045
+ dm_complaint?: {
1046
+ ru?: string | undefined;
1047
+ uz?: string | undefined;
1048
+ uz_cyrl?: string | undefined;
1049
+ } | undefined;
1050
+ public_complaint?: {
1051
+ ru?: string | undefined;
1052
+ uz?: string | undefined;
1053
+ uz_cyrl?: string | undefined;
1054
+ } | undefined;
831
1055
  } | null | undefined;
1056
+ instagram_comment_keywords?: string[] | null | undefined;
832
1057
  reply_to_story_mentions?: boolean | undefined;
833
1058
  } | undefined;
834
- funnel_analytics?: {
835
- decision_gate?: {
836
- submitted: {
837
- pipeline_crm_id: string;
838
- pipeline_id: number;
839
- status_id: number;
840
- };
841
- approved: {
842
- pipeline_crm_id: string;
843
- pipeline_id: number;
844
- status_id: number;
845
- };
846
- rejected: {
847
- pipeline_crm_id: string;
848
- pipeline_id: number;
849
- status_id: number;
850
- };
851
- } | null | undefined;
852
- path_target_stage?: {
853
- pipeline_crm_id: string;
854
- pipeline_id: number;
855
- status_id: number;
856
- } | null | undefined;
857
- engaged_inbound_count?: number | null | undefined;
858
- stuck_threshold_hours?: number | null | undefined;
859
- } | undefined;
860
1059
  general_settings?: {
861
1060
  name?: string | null | undefined;
862
1061
  off_message?: string | null | undefined;
863
1062
  timezone?: string | undefined;
864
1063
  is_active?: boolean | undefined;
1064
+ is_ai_enabled?: boolean | undefined;
1065
+ phone_parsing_country?: string | null | undefined;
1066
+ allowed_origins?: string[] | undefined;
1067
+ page_rules?: {
1068
+ mode: "ALL" | "ALLOW" | "DENY";
1069
+ patterns: string[];
1070
+ } | null | undefined;
1071
+ rate_limit?: number | undefined;
1072
+ show_page_info?: boolean | undefined;
1073
+ customization?: {
1074
+ button?: {
1075
+ [x: string]: unknown;
1076
+ } | undefined;
1077
+ window?: {
1078
+ [x: string]: unknown;
1079
+ } | undefined;
1080
+ theme?: {
1081
+ [x: string]: unknown;
1082
+ } | undefined;
1083
+ welcome_state?: {
1084
+ [x: string]: unknown;
1085
+ } | undefined;
1086
+ pre_chat_form?: {
1087
+ [x: string]: unknown;
1088
+ } | undefined;
1089
+ offline_state?: {
1090
+ [x: string]: unknown;
1091
+ } | undefined;
1092
+ languages?: {
1093
+ [x: string]: unknown;
1094
+ } | undefined;
1095
+ widget_ux?: {
1096
+ [x: string]: unknown;
1097
+ } | undefined;
1098
+ gdpr?: {
1099
+ [x: string]: unknown;
1100
+ } | undefined;
1101
+ embed?: {
1102
+ [x: string]: unknown;
1103
+ } | undefined;
1104
+ advanced?: {
1105
+ [x: string]: unknown;
1106
+ } | undefined;
1107
+ popup?: {
1108
+ [x: string]: unknown;
1109
+ } | undefined;
1110
+ } | undefined;
865
1111
  } | undefined;
866
1112
  salebot_settings?: {
867
1113
  project_id?: string | null | undefined;
@@ -917,13 +1163,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
917
1163
  variable_name: string;
918
1164
  }[] | null | undefined;
919
1165
  target_department_id?: number | null | undefined;
1166
+ operator_department_id?: number | null | undefined;
920
1167
  delivery_check_enabled?: boolean | undefined;
921
- guard_active_series?: "OFF" | "WARN" | "BLOCK" | null | undefined;
922
- guard_active_application?: "OFF" | "WARN" | "BLOCK" | null | undefined;
923
- guard_paid?: "OFF" | "WARN" | "BLOCK" | null | undefined;
924
- quiet_days?: number | null | undefined;
925
1168
  reachability_ttl_days?: number | null | undefined;
926
- delivery_field_map?: Record<"Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX", string> | undefined;
1169
+ delivery_field_map?: Partial<Record<"Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX", string>> | undefined;
927
1170
  manual_mute_enabled?: boolean | undefined;
928
1171
  manual_mute_field_id?: string | null | undefined;
929
1172
  manual_mute_value?: string | null | undefined;
@@ -933,15 +1176,62 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
933
1176
  create_missing_deal_funnel_id?: number | null | undefined;
934
1177
  create_missing_deal_stage_id?: number | null | undefined;
935
1178
  revenue_offer_ids?: number[] | undefined;
1179
+ revenue_offers_paid_since?: string | null | undefined;
1180
+ open_invoice_silence_enabled?: boolean | undefined;
1181
+ open_invoice_table_id?: string | null | undefined;
1182
+ open_invoice_product_column?: string | null | undefined;
1183
+ open_invoice_topic_column?: string | null | undefined;
1184
+ open_invoice_topic_variable?: string | null | undefined;
1185
+ guard_active_series?: "OFF" | "WARN" | "BLOCK" | null | undefined;
1186
+ guard_active_application?: "OFF" | "WARN" | "BLOCK" | null | undefined;
1187
+ guard_paid?: "OFF" | "WARN" | "BLOCK" | null | undefined;
1188
+ quiet_days?: number | null | undefined;
1189
+ } | undefined;
1190
+ funnel_analytics?: {
1191
+ decision_gate?: {
1192
+ submitted: {
1193
+ pipeline_crm_id: string;
1194
+ pipeline_id: string | number;
1195
+ status_id: string | number;
1196
+ } | {
1197
+ stage_id: string;
1198
+ };
1199
+ approved: {
1200
+ pipeline_crm_id: string;
1201
+ pipeline_id: string | number;
1202
+ status_id: string | number;
1203
+ } | {
1204
+ stage_id: string;
1205
+ };
1206
+ rejected: {
1207
+ pipeline_crm_id: string;
1208
+ pipeline_id: string | number;
1209
+ status_id: string | number;
1210
+ } | {
1211
+ stage_id: string;
1212
+ };
1213
+ } | null | undefined;
1214
+ path_target_stage?: {
1215
+ pipeline_crm_id: string;
1216
+ pipeline_id: string | number;
1217
+ status_id: string | number;
1218
+ } | {
1219
+ stage_id: string;
1220
+ } | null | undefined;
1221
+ engaged_inbound_count?: number | null | undefined;
1222
+ stuck_threshold_hours?: number | null | undefined;
936
1223
  } | undefined;
937
1224
  }> | import("./definitions/shared.js").ToolDefinition<{
938
1225
  audit_log_id: string;
939
1226
  workspace_id?: string | undefined;
940
1227
  platform_id?: string | undefined;
1228
+ explicit_confirmation?: boolean | undefined;
941
1229
  }> | import("./definitions/shared.js").ToolDefinition<{
942
1230
  agent_id: string;
943
1231
  source_url: string;
944
- access_mode: "READ_ONLY" | "EDITABLE";
1232
+ confirm_document_access_change?: true | undefined;
1233
+ expected_document_snapshot?: string | undefined;
1234
+ access_mode?: "READ_ONLY" | "EDITABLE" | undefined;
945
1235
  agent_version_id?: string | undefined;
946
1236
  }> | import("./definitions/shared.js").ToolDefinition<{
947
1237
  agent_id: string;
@@ -963,6 +1253,13 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
963
1253
  }> | import("./definitions/shared.js").ToolDefinition<{
964
1254
  agent_id: string;
965
1255
  factual_context: string;
1256
+ expected_version?: string | undefined;
1257
+ }> | import("./definitions/shared.js").ToolDefinition<{
1258
+ agent_id: string;
1259
+ include_prompt_text?: boolean | undefined;
1260
+ mode?: "START" | "CONTINUE" | "RESTART" | undefined;
1261
+ draft_id?: string | undefined;
1262
+ expected_content_hash?: string | undefined;
966
1263
  }> | import("./definitions/shared.js").ToolDefinition<{
967
1264
  agent_id: string;
968
1265
  draft_id: string;
@@ -984,6 +1281,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
984
1281
  replacement_text?: string | undefined;
985
1282
  match_variants?: string[] | undefined;
986
1283
  }[];
1284
+ include_prompt_text?: boolean | undefined;
987
1285
  }> | import("./definitions/shared.js").ToolDefinition<{
988
1286
  agent_ids: string[];
989
1287
  operations: {
@@ -1003,48 +1301,152 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1003
1301
  workspace_id?: string | undefined;
1004
1302
  agent_id?: string | undefined;
1005
1303
  channel?: string | undefined;
1006
- agent_scope?: "sale" | "reactivation" | "support" | "onboarding" | "faq" | "qualification" | "complaint" | "other" | undefined;
1304
+ agent_scope?: "other" | "sale" | "reactivation" | "support" | "onboarding" | "faq" | "qualification" | "complaint" | undefined;
1007
1305
  feedback_banned_terms?: string[] | undefined;
1008
1306
  }> | import("./definitions/shared.js").ToolDefinition<{
1009
- workspace_id?: string | undefined;
1010
- stored_file_id?: string | undefined;
1011
- google_sheets_url?: string | undefined;
1012
- sample_rows_per_sheet?: number | undefined;
1013
- max_cells_total?: number | undefined;
1014
- }> | import("./definitions/shared.js").ToolDefinition<{
1015
- workbook_id: string;
1016
- workspace_id?: string | undefined;
1017
- }> | import("./definitions/shared.js").ToolDefinition<{
1018
- workbook_id: string;
1019
- workspace_id?: string | undefined;
1020
- sheet_title?: string | undefined;
1021
- sheet_gid?: number | undefined;
1022
- sheet_index?: number | undefined;
1023
- row_offset?: number | undefined;
1024
- row_limit?: number | undefined;
1025
- column_offset?: number | undefined;
1026
- column_limit?: number | undefined;
1307
+ idempotency_key: string;
1027
1308
  }> | import("./definitions/shared.js").ToolDefinition<{
1028
- workbook_id: string;
1029
- classification: Record<string, unknown>[];
1309
+ platform_id: string;
1030
1310
  workspace_id?: string | undefined;
1311
+ contacts?: {
1312
+ contact_id: string;
1313
+ deal_id?: string | undefined;
1314
+ }[] | undefined;
1315
+ current_anchor_value?: string | undefined;
1031
1316
  }> | import("./definitions/shared.js").ToolDefinition<{
1032
- workbook_id: string;
1033
1317
  explicit_confirmation: true;
1318
+ platform_id: string;
1034
1319
  workspace_id?: string | undefined;
1320
+ contacts?: {
1321
+ contact_id: string;
1322
+ deal_id?: string | undefined;
1323
+ }[] | undefined;
1324
+ current_anchor_value?: string | undefined;
1035
1325
  }> | import("./definitions/shared.js").ToolDefinition<{
1036
- workbook_id: string;
1326
+ correlation_id: string;
1037
1327
  workspace_id?: string | undefined;
1038
- sheet_title?: string | undefined;
1039
- sheet_gid?: number | undefined;
1040
- sheet_index?: number | undefined;
1041
- include_contacts?: boolean | undefined;
1042
1328
  }> | import("./definitions/shared.js").ToolDefinition<{
1043
- workbook_id: string;
1329
+ platform_id: string;
1044
1330
  workspace_id?: string | undefined;
1045
- sheet_title?: string | undefined;
1331
+ created_after?: string | undefined;
1332
+ contacts?: {
1333
+ contact_id: string;
1334
+ deal_id?: string | undefined;
1335
+ segment_entered_at?: string | undefined;
1336
+ registered_at?: string | undefined;
1337
+ funnel?: string | undefined;
1338
+ }[] | undefined;
1339
+ continuation?: true | undefined;
1340
+ mailing_variant_id?: string | undefined;
1341
+ segment?: string | undefined;
1342
+ message?: string | undefined;
1343
+ product_code?: string | undefined;
1344
+ channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1345
+ channels_mode?: "ADD" | "RESTRICT" | undefined;
1346
+ }> | import("./definitions/shared.js").ToolDefinition<{
1347
+ explicit_confirmation: true;
1348
+ workspace_id?: string | undefined;
1349
+ platform_id?: string | undefined;
1350
+ created_after?: string | undefined;
1351
+ contacts?: {
1352
+ contact_id: string;
1353
+ deal_id?: string | undefined;
1354
+ segment_entered_at?: string | undefined;
1355
+ registered_at?: string | undefined;
1356
+ funnel?: string | undefined;
1357
+ }[] | undefined;
1358
+ continuation?: true | undefined;
1359
+ deal_fields?: Record<string, string | number | boolean | null> | undefined;
1360
+ message?: string | undefined;
1361
+ mailing_variant_id?: string | undefined;
1362
+ segment?: string | undefined;
1363
+ product_code?: string | undefined;
1364
+ funnel?: string | undefined;
1365
+ cohort_label?: string | undefined;
1366
+ channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1367
+ channels_mode?: "ADD" | "RESTRICT" | undefined;
1368
+ idempotency_key?: string | undefined;
1369
+ }> | import("./definitions/shared.js").ToolDefinition<{
1370
+ segments: {
1371
+ contacts: {
1372
+ contact_id: string;
1373
+ deal_id?: string | undefined;
1374
+ segment_entered_at?: string | undefined;
1375
+ registered_at?: string | undefined;
1376
+ funnel?: string | undefined;
1377
+ }[];
1378
+ segment?: string | undefined;
1379
+ product_code?: string | undefined;
1380
+ funnel?: string | undefined;
1381
+ cohort_label?: string | undefined;
1382
+ deal_fields?: Record<string, string | number | boolean | null> | undefined;
1383
+ }[];
1384
+ explicit_confirmation: true;
1385
+ workspace_id?: string | undefined;
1386
+ platform_id?: string | undefined;
1387
+ message?: string | undefined;
1388
+ mailing_variant_id?: string | undefined;
1389
+ channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1390
+ channels_mode?: "ADD" | "RESTRICT" | undefined;
1391
+ guards?: {
1392
+ active_series?: "OFF" | "WARN" | "BLOCK" | undefined;
1393
+ active_application?: "OFF" | "WARN" | "BLOCK" | undefined;
1394
+ paid?: "OFF" | "WARN" | "BLOCK" | undefined;
1395
+ } | undefined;
1396
+ }> | import("./definitions/shared.js").ToolDefinition<{
1397
+ batch_id: string;
1398
+ explicit_confirmation: true;
1399
+ workspace_id?: string | undefined;
1400
+ }> | import("./definitions/shared.js").ToolDefinition<{
1401
+ chat_user_id: string;
1402
+ workspace_id?: string | undefined;
1403
+ funnel_id?: string | undefined;
1404
+ }> | import("./definitions/shared.js").ToolDefinition<{
1405
+ run_id: string;
1406
+ explicit_confirmation: true;
1407
+ confirmation_reason: string;
1408
+ workspace_id?: string | undefined;
1409
+ }> | import("./definitions/shared.js").ToolDefinition<{
1410
+ workspace_id?: string | undefined;
1411
+ stored_file_id?: string | undefined;
1412
+ google_sheets_url?: string | undefined;
1413
+ sample_rows_per_sheet?: number | undefined;
1414
+ max_cells_total?: number | undefined;
1415
+ }> | import("./definitions/shared.js").ToolDefinition<{
1416
+ workbook_id: string;
1417
+ workspace_id?: string | undefined;
1418
+ }> | import("./definitions/shared.js").ToolDefinition<{
1419
+ workbook_id: string;
1420
+ workspace_id?: string | undefined;
1421
+ sheet_title?: string | undefined;
1422
+ sheet_gid?: number | undefined;
1423
+ sheet_index?: number | undefined;
1424
+ row_offset?: number | undefined;
1425
+ row_limit?: number | undefined;
1426
+ column_offset?: number | undefined;
1427
+ column_limit?: number | undefined;
1428
+ }> | import("./definitions/shared.js").ToolDefinition<{
1429
+ workbook_id: string;
1430
+ classification: Record<string, unknown>[];
1431
+ workspace_id?: string | undefined;
1432
+ }> | import("./definitions/shared.js").ToolDefinition<{
1433
+ workbook_id: string;
1434
+ explicit_confirmation: true;
1435
+ workspace_id?: string | undefined;
1436
+ }> | import("./definitions/shared.js").ToolDefinition<{
1437
+ workbook_id: string;
1438
+ workspace_id?: string | undefined;
1439
+ sheet_title?: string | undefined;
1440
+ sheet_gid?: number | undefined;
1441
+ sheet_index?: number | undefined;
1442
+ include_contacts?: boolean | undefined;
1443
+ }> | import("./definitions/shared.js").ToolDefinition<{
1444
+ workbook_id: string;
1445
+ workspace_id?: string | undefined;
1446
+ sheet_title?: string | undefined;
1046
1447
  sheet_gid?: number | undefined;
1047
1448
  sheet_index?: number | undefined;
1449
+ knowledge_space_id?: string | undefined;
1048
1450
  namespace?: string | undefined;
1049
1451
  split_override?: {
1050
1452
  split_mode: "size" | "separator";
@@ -1054,12 +1456,15 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1054
1456
  max_chunk_size?: number | undefined;
1055
1457
  } | undefined;
1056
1458
  replace_existing?: boolean | undefined;
1459
+ target_knowledge_source_id?: string | undefined;
1057
1460
  }> | import("./definitions/shared.js").ToolDefinition<{
1058
1461
  name: string;
1059
1462
  scope_type: "WORKSPACE" | "CHANNEL";
1463
+ access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
1464
+ purpose?: string | null | undefined;
1465
+ search_keywords?: string[] | undefined;
1060
1466
  workspace_id?: string | undefined;
1061
1467
  channel_id?: string | undefined;
1062
- access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
1063
1468
  }> | import("./definitions/shared.js").ToolDefinition<{
1064
1469
  workspace_id?: string | undefined;
1065
1470
  scope_type?: "WORKSPACE" | "CHANNEL" | undefined;
@@ -1069,9 +1474,11 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1069
1474
  workspace_id?: string | undefined;
1070
1475
  }> | import("./definitions/shared.js").ToolDefinition<{
1071
1476
  knowledge_space_id: string;
1477
+ access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
1478
+ purpose?: string | null | undefined;
1479
+ search_keywords?: string[] | undefined;
1072
1480
  workspace_id?: string | undefined;
1073
1481
  name?: string | undefined;
1074
- access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
1075
1482
  }> | import("./definitions/shared.js").ToolDefinition<{
1076
1483
  knowledge_space_id: string;
1077
1484
  channel_id: string;
@@ -1092,9 +1499,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1092
1499
  } | undefined;
1093
1500
  }> | import("./definitions/shared.js").ToolDefinition<{
1094
1501
  knowledge_space_id: string;
1095
- workspace_id?: string | undefined;
1096
- status?: "FAILED" | "COMPLETED" | "LOADED" | "SPLIT" | "EMBEDDINGS_GENERATED" | "VECTOR_DB_UPLOADED" | "TEXT_EXTRACTED" | "CHUNKS_SAVED" | undefined;
1097
1502
  page?: number | undefined;
1503
+ workspace_id?: string | undefined;
1504
+ status?: "COMPLETED" | "FAILED" | "LOADED" | "SPLIT" | "EMBEDDINGS_GENERATED" | "VECTOR_DB_UPLOADED" | "TEXT_EXTRACTED" | "CHUNKS_SAVED" | undefined;
1505
+ cursor?: string | undefined;
1098
1506
  limit?: number | undefined;
1099
1507
  }> | import("./definitions/shared.js").ToolDefinition<{
1100
1508
  knowledge_space_id: string;
@@ -1119,15 +1527,16 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1119
1527
  }[] | undefined;
1120
1528
  }[] | undefined;
1121
1529
  alias?: string | undefined;
1122
- mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
1530
+ mode?: "SIMPLE" | "ONCE_STRICT" | "STRICT" | undefined;
1123
1531
  call_operator?: boolean | undefined;
1124
1532
  chunk_delay_seconds?: number | undefined;
1125
1533
  is_call_qa_only?: boolean | undefined;
1126
1534
  }> | import("./definitions/shared.js").ToolDefinition<{
1127
1535
  knowledge_space_id: string;
1128
- workspace_id?: string | undefined;
1129
- mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
1130
1536
  page?: number | undefined;
1537
+ workspace_id?: string | undefined;
1538
+ mode?: "SIMPLE" | "ONCE_STRICT" | "STRICT" | undefined;
1539
+ cursor?: string | undefined;
1131
1540
  limit?: number | undefined;
1132
1541
  }> | import("./definitions/shared.js").ToolDefinition<{
1133
1542
  knowledge_space_id: string;
@@ -1141,14 +1550,14 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1141
1550
  answer?: string | undefined;
1142
1551
  answer_chunks?: {
1143
1552
  text?: string | undefined;
1144
- stored_file_id?: string | undefined;
1553
+ stored_file_id?: string | null | undefined;
1145
1554
  buttons?: {
1146
1555
  name: string;
1147
1556
  url: string;
1148
1557
  }[] | undefined;
1149
1558
  }[] | undefined;
1150
1559
  alias?: string | undefined;
1151
- mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
1560
+ mode?: "SIMPLE" | "ONCE_STRICT" | "STRICT" | undefined;
1152
1561
  call_operator?: boolean | undefined;
1153
1562
  chunk_delay_seconds?: number | undefined;
1154
1563
  is_call_qa_only?: boolean | undefined;
@@ -1176,9 +1585,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1176
1585
  display_name?: string | undefined;
1177
1586
  }> | import("./definitions/shared.js").ToolDefinition<{
1178
1587
  knowledge_space_id: string;
1179
- workspace_id?: string | undefined;
1180
- status?: "PENDING" | "FAILED" | "PROCESSING" | "COMPLETED" | "CRAWLING" | undefined;
1181
1588
  page?: number | undefined;
1589
+ workspace_id?: string | undefined;
1590
+ status?: "COMPLETED" | "FAILED" | "PENDING" | "PROCESSING" | "CRAWLING" | undefined;
1591
+ cursor?: string | undefined;
1182
1592
  limit?: number | undefined;
1183
1593
  }> | import("./definitions/shared.js").ToolDefinition<{
1184
1594
  knowledge_space_id: string;
@@ -1205,12 +1615,13 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1205
1615
  use_vector_index?: boolean | undefined;
1206
1616
  vector_top_k?: number | undefined;
1207
1617
  vector_embed_max_chars?: number | undefined;
1208
- access?: "PUBLIC" | "PRIVATE" | undefined;
1618
+ access?: "PRIVATE" | "PUBLIC" | undefined;
1209
1619
  }> | import("./definitions/shared.js").ToolDefinition<{
1210
1620
  knowledge_space_id: string;
1621
+ page?: number | undefined;
1211
1622
  workspace_id?: string | undefined;
1212
1623
  is_active?: boolean | undefined;
1213
- page?: number | undefined;
1624
+ cursor?: string | undefined;
1214
1625
  limit?: number | undefined;
1215
1626
  }> | import("./definitions/shared.js").ToolDefinition<{
1216
1627
  knowledge_space_id: string;
@@ -1233,7 +1644,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1233
1644
  use_vector_index?: boolean | undefined;
1234
1645
  vector_top_k?: number | undefined;
1235
1646
  vector_embed_max_chars?: number | undefined;
1236
- access?: "PUBLIC" | "PRIVATE" | undefined;
1647
+ access?: "PRIVATE" | "PUBLIC" | undefined;
1237
1648
  is_active?: boolean | undefined;
1238
1649
  }> | import("./definitions/shared.js").ToolDefinition<{
1239
1650
  knowledge_space_id: string;
@@ -1255,13 +1666,14 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1255
1666
  }> | import("./definitions/shared.js").ToolDefinition<{
1256
1667
  scope: "WORKSPACE" | "CHANNEL";
1257
1668
  name: string;
1258
- type: "TEXT" | "NUMBER" | "FLOAT" | "BOOLEAN";
1669
+ type: "TEXT" | "BOOLEAN" | "NUMBER" | "FLOAT";
1259
1670
  workspace_id?: string | undefined;
1260
1671
  description?: string | undefined;
1261
1672
  value?: string | undefined;
1262
1673
  platform_id?: string | undefined;
1263
1674
  is_constant?: boolean | undefined;
1264
1675
  constant_value?: string | undefined;
1676
+ repeat_constant_value?: string | undefined;
1265
1677
  }> | import("./definitions/shared.js").ToolDefinition<{
1266
1678
  variable_id: string;
1267
1679
  scope: "WORKSPACE" | "CHANNEL";
@@ -1270,22 +1682,27 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1270
1682
  }> | import("./definitions/shared.js").ToolDefinition<{
1271
1683
  variable_id: string;
1272
1684
  scope: "WORKSPACE" | "CHANNEL";
1685
+ expected_version?: string | undefined;
1273
1686
  workspace_id?: string | undefined;
1274
1687
  platform_id?: string | undefined;
1275
1688
  description?: string | undefined;
1276
- type?: "TEXT" | "NUMBER" | "FLOAT" | "BOOLEAN" | undefined;
1689
+ type?: "TEXT" | "BOOLEAN" | "NUMBER" | "FLOAT" | undefined;
1277
1690
  value?: string | null | undefined;
1278
1691
  constant_value?: string | null | undefined;
1692
+ repeat_constant_value?: string | null | undefined;
1279
1693
  }> | import("./definitions/shared.js").ToolDefinition<{
1280
1694
  variable_id: string;
1281
1695
  scope: "WORKSPACE" | "CHANNEL";
1282
1696
  explicit_confirmation: true;
1697
+ expected_version?: string | undefined;
1283
1698
  workspace_id?: string | undefined;
1284
1699
  platform_id?: string | undefined;
1285
1700
  }> | import("./definitions/shared.js").ToolDefinition<{
1286
1701
  crm_id: string;
1287
1702
  workspace_id?: string | undefined;
1288
1703
  include_deleted?: boolean | undefined;
1704
+ limit?: number | undefined;
1705
+ cursor?: string | undefined;
1289
1706
  }> | import("./definitions/shared.js").ToolDefinition<{
1290
1707
  crm_id: string;
1291
1708
  pipeline_id: number;
@@ -1316,6 +1733,12 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1316
1733
  explicit_confirmation: true;
1317
1734
  acknowledge_external_side_effect: true;
1318
1735
  workspace_id?: string | undefined;
1736
+ }> | import("./definitions/shared.js").ToolDefinition<{
1737
+ crm_id: string;
1738
+ pipeline_id: number;
1739
+ workspace_id?: string | undefined;
1740
+ limit?: number | undefined;
1741
+ cursor?: string | undefined;
1319
1742
  }> | import("./definitions/shared.js").ToolDefinition<{
1320
1743
  crm_id: string;
1321
1744
  pipeline_id: number;
@@ -1326,8 +1749,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1326
1749
  color?: string | undefined;
1327
1750
  status_types?: string[] | undefined;
1328
1751
  is_editable?: boolean | undefined;
1752
+ is_system_managed?: boolean | undefined;
1329
1753
  is_bot_active?: boolean | undefined;
1330
1754
  is_operator_available?: boolean | undefined;
1755
+ is_terminal?: boolean | undefined;
1331
1756
  on_message_received_move_to_status?: number | null | undefined;
1332
1757
  status_id?: number | undefined;
1333
1758
  }> | import("./definitions/shared.js").ToolDefinition<{
@@ -1344,6 +1769,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1344
1769
  is_editable?: boolean | undefined;
1345
1770
  is_bot_active?: boolean | undefined;
1346
1771
  is_operator_available?: boolean | undefined;
1772
+ is_terminal?: boolean | undefined;
1347
1773
  on_message_received_move_to_status?: number | null | undefined;
1348
1774
  }> | import("./definitions/shared.js").ToolDefinition<{
1349
1775
  crm_id: string;
@@ -1356,12 +1782,14 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1356
1782
  platform_id: string;
1357
1783
  pipeline_id: number;
1358
1784
  pipeline_crm_id: string;
1785
+ expected_version?: string | undefined;
1359
1786
  workspace_id?: string | undefined;
1360
1787
  sort?: number | undefined;
1361
1788
  }> | import("./definitions/shared.js").ToolDefinition<{
1362
1789
  platform_id: string;
1363
1790
  platform_pipeline_id: string;
1364
1791
  explicit_confirmation: true;
1792
+ expected_version?: string | undefined;
1365
1793
  workspace_id?: string | undefined;
1366
1794
  }> | import("./definitions/shared.js").ToolDefinition<{
1367
1795
  source_platform_id: string;
@@ -1379,7 +1807,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1379
1807
  };
1380
1808
  workspace_id?: string | undefined;
1381
1809
  conflict_mode?: "reject" | "merge" | "overwrite" | undefined;
1382
- name_collision_strategy?: "suffix" | "keep" | undefined;
1810
+ name_collision_strategy?: "keep" | "suffix" | undefined;
1383
1811
  }> | import("./definitions/shared.js").ToolDefinition<{
1384
1812
  preview_token: string;
1385
1813
  source_platform_id: string;
@@ -1400,6 +1828,8 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1400
1828
  source?: "OTHER" | "USER_UPLOAD" | "AGENT_GREETING" | "CAMPAIGN" | "CRM_IMPORT" | undefined;
1401
1829
  mime_type?: string | undefined;
1402
1830
  size_bytes?: number | undefined;
1831
+ owner_kind?: "KNOWLEDGE_SOURCE" | undefined;
1832
+ owner_id?: string | undefined;
1403
1833
  }> | import("./definitions/shared.js").ToolDefinition<{
1404
1834
  upload_ref: string;
1405
1835
  workspace_id?: string | undefined;
@@ -1414,6 +1844,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1414
1844
  platform_type: "TelegramBot" | "Wazzup" | "Salebot" | "SmsGorod" | "VKon" | "GetCourse" | "WebWidget" | "Bitrix24Bot";
1415
1845
  name: string;
1416
1846
  workspace_id?: string | undefined;
1847
+ operation_id?: string | undefined;
1417
1848
  fields?: {
1418
1849
  [x: string]: unknown;
1419
1850
  } | undefined;
@@ -1425,14 +1856,17 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1425
1856
  workspace_id?: string | undefined;
1426
1857
  name?: string | undefined;
1427
1858
  }> | import("./definitions/shared.js").ToolDefinition<{
1428
- crm_type: "GETCOURSE" | "TELEGRAM" | "AMOCRM" | "BITRIX24";
1859
+ crm_type: "GETCOURSE" | "AMOCRM" | "BITRIX24";
1429
1860
  workspace_id?: string | undefined;
1861
+ operation_id?: string | undefined;
1430
1862
  fields?: {
1431
1863
  [x: string]: unknown;
1432
1864
  } | undefined;
1433
1865
  }> | import("./definitions/shared.js").ToolDefinition<{
1434
1866
  crm_id: string;
1435
1867
  workspace_id?: string | undefined;
1868
+ }> | import("./definitions/shared.js").ToolDefinition<{
1869
+ crm_id: string;
1436
1870
  }> | import("./definitions/shared.js").ToolDefinition<{
1437
1871
  crm_id: string;
1438
1872
  replace_all_existing: true;
@@ -1456,9 +1890,16 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1456
1890
  workspace_id?: string | undefined;
1457
1891
  is_operator?: boolean | undefined;
1458
1892
  is_sdr?: boolean | undefined;
1893
+ expected_version?: string | undefined;
1894
+ workspace_member_id?: string | null | undefined;
1895
+ }> | import("./definitions/shared.js").ToolDefinition<{
1896
+ connection_id: string;
1897
+ workspace_id?: string | undefined;
1898
+ mode?: "GETCOURSE_KEYS" | "LONG_LIVED" | "OAUTH" | "OAUTH_PENDING" | undefined;
1459
1899
  }> | import("./definitions/shared.js").ToolDefinition<{
1460
1900
  data_source_type: "ONE_C";
1461
1901
  workspace_id?: string | undefined;
1902
+ operation_id?: string | undefined;
1462
1903
  fields?: {
1463
1904
  [x: string]: unknown;
1464
1905
  } | undefined;
@@ -1467,7 +1908,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1467
1908
  workspace_id?: string | undefined;
1468
1909
  }> | import("./definitions/shared.js").ToolDefinition<{
1469
1910
  data_source_id: string;
1470
- role: "OTHER" | "PRODUCT_CATALOG" | "STOCK" | "PRICE" | "ORDER" | "CUSTOMER";
1911
+ role: "OTHER" | "ORDER" | "PRODUCT_CATALOG" | "STOCK" | "PRICE" | "CUSTOMER";
1471
1912
  external_code: string;
1472
1913
  display_name: string;
1473
1914
  workspace_id?: string | undefined;
@@ -1508,9 +1949,6 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1508
1949
  workspace_id?: string | undefined;
1509
1950
  name?: string | undefined;
1510
1951
  source_channel?: string | undefined;
1511
- }> | import("./definitions/shared.js").ToolDefinition<{
1512
- channel_id: string;
1513
- workspace_id?: string | undefined;
1514
1952
  }> | import("./definitions/shared.js").ToolDefinition<{
1515
1953
  channel_id: string;
1516
1954
  workspace_id?: string | undefined;
@@ -1518,12 +1956,52 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1518
1956
  source_channel?: string | undefined;
1519
1957
  }> | import("./definitions/shared.js").ToolDefinition<{
1520
1958
  workspace_id?: string | undefined;
1959
+ limit?: number | undefined;
1960
+ cursor?: string | undefined;
1961
+ search?: string | undefined;
1962
+ external_id?: string | undefined;
1963
+ phone?: string | undefined;
1964
+ email?: string | undefined;
1965
+ tag_id?: string | undefined;
1966
+ lifecycle_stage?: "LEAD" | "CUSTOMER" | "CHURNED" | "MQL" | "OPPORTUNITY" | "SQL" | undefined;
1967
+ channel_id?: string | undefined;
1968
+ outreach?: "true" | undefined;
1969
+ }> | import("./definitions/shared.js").ToolDefinition<{
1970
+ contact_id: string;
1971
+ }> | import("./definitions/shared.js").ToolDefinition<{
1972
+ contact_id: string;
1973
+ message_id?: string | undefined;
1974
+ }> | import("./definitions/shared.js").ToolDefinition<{
1975
+ workspace_id?: string | undefined;
1976
+ status?: "IN_PROGRESS" | "WAITING_OPERATOR" | "WAITING_CUSTOMER" | "RESOLVED" | undefined;
1977
+ workspace_operator_id?: string | undefined;
1978
+ contact_id?: string | undefined;
1979
+ page?: number | undefined;
1980
+ limit?: number | undefined;
1981
+ }> | import("./definitions/shared.js").ToolDefinition<{
1982
+ conversation_id: string;
1983
+ workspace_id?: string | undefined;
1984
+ }> | import("./definitions/shared.js").ToolDefinition<{
1985
+ conversation_id: string;
1986
+ workspace_operator_id: string | null;
1987
+ expected_workspace_operator_id: string | null;
1988
+ expected_assigned_at: string | null;
1989
+ explicit_confirmation: true;
1990
+ workspace_id?: string | undefined;
1991
+ }> | import("./definitions/shared.js").ToolDefinition<{
1992
+ workspace_id?: string | undefined;
1993
+ source?: "export" | "inbox" | undefined;
1994
+ channel_id?: string | undefined;
1995
+ contact_id?: string | undefined;
1996
+ purchased?: boolean | undefined;
1997
+ has_payment?: boolean | undefined;
1998
+ with_totals?: boolean | undefined;
1521
1999
  platform_ids?: string[] | undefined;
1522
2000
  date_from?: string | undefined;
1523
2001
  date_to?: string | undefined;
1524
2002
  lead_status?: string[] | undefined;
1525
2003
  deactivate_reason?: string[] | undefined;
1526
- work_log_event?: ("FAILED" | "OPERATOR_TAKEOVER" | "START" | "IN_PROCESS" | "FINISH_WIN" | "FINISH_LOST" | "FINISH_AUTO")[] | undefined;
2004
+ work_log_event?: ("FAILED" | "FINISH_LOST" | "FINISH_WIN" | "IN_PROCESS" | "OPERATOR_TAKEOVER" | "START" | "FINISH_AUTO")[] | undefined;
1527
2005
  action_type?: string[] | undefined;
1528
2006
  action_success?: boolean | undefined;
1529
2007
  action_execution_mode?: "test" | "production" | undefined;
@@ -1538,22 +2016,33 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1538
2016
  limit?: number | undefined;
1539
2017
  cursor?: string | undefined;
1540
2018
  }> | import("./definitions/shared.js").ToolDefinition<{
1541
- report: "summary" | "cohorts" | "skip_reasons" | "recipients" | "deals" | "action_failures" | "indirect_payments" | "response_windows" | "insights" | "recent_leads" | "data_quality" | "segments_catalog" | "funnel_products" | "payment_candidates" | "payment_candidates_summary";
1542
- mode: "all" | "days" | "range";
1543
- view: "cohort" | "period" | "entry";
2019
+ conversation_id: string;
2020
+ }> | import("./definitions/shared.js").ToolDefinition<{
2021
+ conversation_id: string;
2022
+ action: "MUTE_FOREVER" | "MUTE_TEMPORARY" | "ENABLE";
2023
+ expected_version: string;
2024
+ mute_expires_at?: string | undefined;
2025
+ }> | import("./definitions/shared.js").ToolDefinition<{
2026
+ view: "period" | "entry" | "cohort";
2027
+ report: "deals" | "recipients" | "summary" | "registration_intake" | "cohorts" | "skip_reasons" | "action_failures" | "indirect_payments" | "response_windows" | "insights" | "recent_leads" | "data_quality" | "segments_catalog" | "funnel_products" | "payment_candidates" | "payment_candidates_summary";
2028
+ mode?: "all" | "days" | "range" | undefined;
1544
2029
  date?: string | undefined;
1545
- channel?: "UNKNOWN" | "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX" | undefined;
2030
+ channel?: "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX" | "UNKNOWN" | undefined;
1546
2031
  import_job_id?: string | undefined;
1547
2032
  page?: number | undefined;
1548
2033
  page_size?: number | undefined;
1549
- recipient_metric?: "sent" | "delivered" | "entered" | "deepDialog" | "handedOff" | "notDelivered" | "notSent" | undefined;
1550
- deal_metric?: "issued" | "paid" | "withoutCohort" | undefined;
1551
- reason?: "NO_MESSENGER" | "ACTIVE_INVOICE_SAME_PRODUCT" | "ACTIVE_DEAL_SAME_PRODUCT" | "PAID_SAME_PRODUCT" | "ACTIVE_DEAL_OTHER_PRODUCT" | "MANAGER_ASSIGNED_ACTIVE_DEAL" | "PRODUCT_CONTEXT_MISSING" | "GETCOURSE_CHECK_ERROR" | "ALREADY_SENT" | "USER_NOT_FOUND" | undefined;
2034
+ recipient_metric?: "linkIssued" | "clicked" | "handedOff" | "sent" | "deepDialog" | "notDelivered" | "delivered" | "entered" | "notSent" | undefined;
2035
+ deal_metric?: "issued" | "paid" | "confirmedByOperator" | "withoutCohort" | undefined;
2036
+ reason?: "FAILED" | "DUPLICATE" | "ACTIVE_DEAL_OTHER_PRODUCT" | "ACTIVE_DEAL_SAME_PRODUCT" | "ACTIVE_INVOICE_SAME_PRODUCT" | "ALREADY_SENT" | "BOARD_NO_TARGET" | "CONTACT_ERASED" | "CONTACT_IMPORT_FAILED" | "DEAL_MOVE_REFUSED" | "DEDUP_ALREADY_SENT" | "GETCOURSE_CHECK_ERROR" | "MANAGER_ASSIGNED_ACTIVE_DEAL" | "NO_MESSENGER" | "OUTCOME_UNKNOWN" | "PAID_SAME_PRODUCT" | "PRODUCT_CONTEXT_MISSING" | "RUN_CANCELLED" | "RUN_FAILED" | "SKIPPED_ACTIVE_DEAL" | "SKIPPED_ACTIVE_EPISODE" | "SKIPPED_ACTIVE_SERIES" | "SKIPPED_ALREADY_IN_DIALOG" | "SKIPPED_ALREADY_SENT_SEGMENT" | "SKIPPED_ANCHOR_IN_PAST" | "SKIPPED_BOT_SILENCED" | "SKIPPED_CONTACT_BANNED" | "SKIPPED_COOLDOWN" | "SKIPPED_FOREIGN_WORKSPACE" | "SKIPPED_GUARD_UNAVAILABLE" | "SKIPPED_HANDED_TO_OPERATOR" | "SKIPPED_NOT_GETCOURSE" | "SKIPPED_NOT_IN_BASE" | "SKIPPED_NO_ANCHOR" | "SKIPPED_NO_GETCOURSE_USER" | "SKIPPED_PLATFORM_CHANGED" | "SKIPPED_SESSION_AHEAD" | "SKIPPED_TEXT_TOO_LONG" | "SKIPPED_UNREACHABLE" | "SKIPPED_UNRESOLVED_VARS" | "STATUS_TARGET_UNRESOLVED" | "UNKNOWN_REASON" | "USER_NOT_FOUND" | undefined;
2037
+ reason_source?: "COLD_WELCOME" | "REGISTRATION_ANCHOR" | "SCHEDULED_RUN" | "WAVE_PREFLIGHT" | "WAVE_RUN" | undefined;
1552
2038
  action_type?: string | undefined;
1553
2039
  payment_view?: "decidable" | "excluded" | "resolved" | undefined;
1554
- payment_status?: "PENDING" | "CONFIRMED" | "CONFIRMED_INDIRECT" | "REJECTED" | undefined;
1555
- payment_eligibility?: "PENDING_CHECK" | "VERIFIED" | "VERIFIED_WEAK" | "UNVERIFIED" | "EXCLUDED_NON_AUTOWEB" | "EXCLUDED_PREEXISTING" | undefined;
2040
+ payment_status?: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFIRMED_INDIRECT" | undefined;
2041
+ payment_eligibility?: "PENDING_CHECK" | "VERIFIED" | "UNVERIFIED" | "EXCLUDED_NON_AUTOWEB" | "EXCLUDED_PREEXISTING" | "VERIFIED_WEAK" | undefined;
1556
2042
  include_archived?: boolean | undefined;
2043
+ currency?: string | undefined;
2044
+ mechanism?: "any" | "cold_welcome" | "wave" | ("any" | "cold_welcome" | "wave")[] | undefined;
2045
+ launch_source?: "manual" | "registration" | "schedule" | ("manual" | "registration" | "schedule")[] | undefined;
1557
2046
  workspace_id?: string | undefined;
1558
2047
  days?: number | undefined;
1559
2048
  from?: string | undefined;
@@ -1562,15 +2051,17 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1562
2051
  funnel?: string | string[] | undefined;
1563
2052
  funnel_mode?: "none" | undefined;
1564
2053
  segment?: string | string[] | undefined;
1565
- mailing_variant_id?: string | string[] | undefined;
1566
- mechanism?: "wave" | "cold_welcome" | ("wave" | "cold_welcome")[] | undefined;
1567
2054
  product?: string | string[] | undefined;
1568
2055
  product_mode?: "none" | undefined;
1569
- freshness?: "0-7" | "8-14" | "15-30" | "31-45" | "46-60" | "61+" | ("0-7" | "8-14" | "15-30" | "31-45" | "46-60" | "61+")[] | undefined;
1570
- channels?: "UNKNOWN" | "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX" | ("UNKNOWN" | "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
2056
+ channels?: "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX" | "UNKNOWN" | ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX" | "UNKNOWN")[] | undefined;
2057
+ freshness?: "0-7" | "15-30" | "31-45" | "46-60" | "61+" | "8-14" | ("0-7" | "15-30" | "31-45" | "46-60" | "61+" | "8-14")[] | undefined;
2058
+ mailing_variant_id?: string | string[] | undefined;
1571
2059
  }> | import("./definitions/shared.js").ToolDefinition<{
2060
+ view: "period" | "entry" | "cohort";
1572
2061
  mode: "all" | "days" | "range";
1573
- view: "cohort" | "period" | "entry";
2062
+ currency?: string | undefined;
2063
+ mechanism?: "any" | "cold_welcome" | "wave" | ("any" | "cold_welcome" | "wave")[] | undefined;
2064
+ launch_source?: "manual" | "registration" | "schedule" | ("manual" | "registration" | "schedule")[] | undefined;
1574
2065
  workspace_id?: string | undefined;
1575
2066
  days?: number | undefined;
1576
2067
  from?: string | undefined;
@@ -1579,20 +2070,22 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1579
2070
  funnel?: string | string[] | undefined;
1580
2071
  funnel_mode?: "none" | undefined;
1581
2072
  segment?: string | string[] | undefined;
1582
- mailing_variant_id?: string | string[] | undefined;
1583
- mechanism?: "wave" | "cold_welcome" | ("wave" | "cold_welcome")[] | undefined;
1584
2073
  product?: string | string[] | undefined;
1585
2074
  product_mode?: "none" | undefined;
1586
- freshness?: "0-7" | "8-14" | "15-30" | "31-45" | "46-60" | "61+" | ("0-7" | "8-14" | "15-30" | "31-45" | "46-60" | "61+")[] | undefined;
1587
- channels?: "UNKNOWN" | "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX" | ("UNKNOWN" | "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
2075
+ channels?: "Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX" | "UNKNOWN" | ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX" | "UNKNOWN")[] | undefined;
2076
+ freshness?: "0-7" | "15-30" | "31-45" | "46-60" | "61+" | "8-14" | ("0-7" | "15-30" | "31-45" | "46-60" | "61+" | "8-14")[] | undefined;
2077
+ mailing_variant_id?: string | string[] | undefined;
1588
2078
  }> | import("./definitions/shared.js").ToolDefinition<{
2079
+ include_archived: boolean;
2080
+ page: number;
2081
+ page_size: number;
1589
2082
  workspace_id?: string | undefined;
1590
- mailing_variant_id?: string | undefined;
1591
- schedule_id?: string | undefined;
1592
- limit?: number | undefined;
2083
+ view?: "decidable" | "excluded" | "resolved" | undefined;
2084
+ status?: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFIRMED_INDIRECT" | undefined;
2085
+ eligibility?: "PENDING_CHECK" | "VERIFIED" | "UNVERIFIED" | "EXCLUDED_NON_AUTOWEB" | "EXCLUDED_PREEXISTING" | undefined;
1593
2086
  }> | import("./definitions/shared.js").ToolDefinition<{
2087
+ include_archived: boolean;
1594
2088
  workspace_id?: string | undefined;
1595
- include_archived?: boolean | undefined;
1596
2089
  }> | import("./definitions/shared.js").ToolDefinition<{
1597
2090
  name: string;
1598
2091
  message_text?: string | null | undefined;
@@ -1600,224 +2093,319 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1600
2093
  default_segment?: string | null | undefined;
1601
2094
  default_product_code?: string | null | undefined;
1602
2095
  default_funnel?: string | null | undefined;
1603
- default_platform_id?: string | null | undefined;
1604
2096
  default_channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
2097
+ default_deal_fields?: Record<string, string | number | boolean | null> | null | undefined;
2098
+ default_platform_id?: string | null | undefined;
1605
2099
  cold_welcome_channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1606
- cold_welcome_channels_mode?: "RESTRICT" | "ADD" | undefined;
2100
+ cold_welcome_channels_mode?: "ADD" | "RESTRICT" | undefined;
1607
2101
  quiet_days_override?: number | null | undefined;
1608
- default_deal_fields?: Record<string, string | number | boolean | null> | null | undefined;
1609
2102
  workspace_id?: string | undefined;
1610
2103
  description?: string | undefined;
1611
2104
  }> | import("./definitions/shared.js").ToolDefinition<{
1612
2105
  mailing_variant_id: string;
1613
- archived?: boolean | undefined;
1614
- explicit_confirmation?: true | undefined;
1615
2106
  message_text?: string | null | undefined;
1616
2107
  message_text_by_segment?: Record<string, string> | null | undefined;
1617
2108
  default_segment?: string | null | undefined;
1618
2109
  default_product_code?: string | null | undefined;
1619
2110
  default_funnel?: string | null | undefined;
1620
- default_platform_id?: string | null | undefined;
1621
2111
  default_channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
2112
+ default_deal_fields?: Record<string, string | number | boolean | null> | null | undefined;
2113
+ default_platform_id?: string | null | undefined;
1622
2114
  cold_welcome_channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1623
- cold_welcome_channels_mode?: "RESTRICT" | "ADD" | undefined;
2115
+ cold_welcome_channels_mode?: "ADD" | "RESTRICT" | undefined;
1624
2116
  quiet_days_override?: number | null | undefined;
1625
- default_deal_fields?: Record<string, string | number | boolean | null> | null | undefined;
1626
2117
  workspace_id?: string | undefined;
1627
2118
  name?: string | undefined;
1628
2119
  description?: string | null | undefined;
2120
+ archived?: boolean | undefined;
2121
+ explicit_confirmation?: true | undefined;
1629
2122
  }> | import("./definitions/shared.js").ToolDefinition<{
1630
2123
  mailing_variant_id: string;
1631
2124
  explicit_confirmation: true;
1632
2125
  workspace_id?: string | undefined;
1633
2126
  }> | import("./definitions/shared.js").ToolDefinition<{
2127
+ workspace_id?: string | undefined;
2128
+ mailing_variant_id?: string | undefined;
2129
+ schedule_id?: string | undefined;
2130
+ origin?: "CAMPAIGN" | "WAVE" | "MANUAL" | "REGISTRATION" | "SCHEDULE" | undefined;
2131
+ cursor?: string | undefined;
2132
+ limit?: number | undefined;
2133
+ }> | import("./definitions/shared.js").ToolDefinition<{
2134
+ segment_id: string;
2135
+ mailing_variant_id: string;
1634
2136
  platform_id: string;
2137
+ mechanism: "cold_welcome";
2138
+ freshness_days: number;
2139
+ time_local: string;
2140
+ daily_cap: number;
2141
+ selection_order: "FRESH_FIRST" | "OLD_FIRST";
2142
+ cooldown_days: number;
1635
2143
  workspace_id?: string | undefined;
1636
- contacts?: {
1637
- contact_id: string;
1638
- deal_id?: string | undefined;
1639
- }[] | undefined;
1640
- current_anchor_value?: string | undefined;
2144
+ funnels?: string[] | "all" | undefined;
2145
+ product_codes?: string[] | "all" | undefined;
2146
+ window_mode?: "FIXED" | "ROLLING" | undefined;
2147
+ window_from_local?: string | undefined;
2148
+ window_to_local?: string | undefined;
2149
+ days_of_week?: number[] | undefined;
2150
+ days_of_month?: number[] | undefined;
2151
+ handoff_from_school_platforms?: boolean | undefined;
2152
+ resend_segment_on_new_registration?: boolean | undefined;
2153
+ resend_segment_pause_days?: number | undefined;
2154
+ channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
2155
+ channels_mode?: "ADD" | "RESTRICT" | undefined;
2156
+ guard_active_series?: "OFF" | "WARN" | "BLOCK" | null | undefined;
2157
+ skip_after_segment_ids?: string[] | undefined;
2158
+ is_enabled?: boolean | undefined;
1641
2159
  }> | import("./definitions/shared.js").ToolDefinition<{
1642
- explicit_confirmation: true;
2160
+ segment_id: string;
2161
+ mailing_variant_id: string;
1643
2162
  platform_id: string;
2163
+ mechanism: "cold_welcome";
2164
+ freshness_days: number;
2165
+ time_local: string;
2166
+ daily_cap: number;
2167
+ selection_order: "FRESH_FIRST" | "OLD_FIRST";
2168
+ cooldown_days: number;
2169
+ schedule_id?: string | undefined;
1644
2170
  workspace_id?: string | undefined;
1645
- contacts?: {
1646
- contact_id: string;
1647
- deal_id?: string | undefined;
1648
- }[] | undefined;
1649
- current_anchor_value?: string | undefined;
2171
+ funnels?: string[] | "all" | undefined;
2172
+ product_codes?: string[] | "all" | undefined;
2173
+ window_mode?: "FIXED" | "ROLLING" | undefined;
2174
+ window_from_local?: string | undefined;
2175
+ window_to_local?: string | undefined;
2176
+ days_of_week?: number[] | undefined;
2177
+ days_of_month?: number[] | undefined;
2178
+ handoff_from_school_platforms?: boolean | undefined;
2179
+ resend_segment_on_new_registration?: boolean | undefined;
2180
+ resend_segment_pause_days?: number | undefined;
2181
+ channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
2182
+ channels_mode?: "ADD" | "RESTRICT" | undefined;
2183
+ guard_active_series?: "OFF" | "WARN" | "BLOCK" | null | undefined;
2184
+ skip_after_segment_ids?: string[] | undefined;
2185
+ is_enabled?: boolean | undefined;
1650
2186
  }> | import("./definitions/shared.js").ToolDefinition<{
1651
- correlation_id: string;
2187
+ schedule_id: string;
2188
+ explicit_confirmation: true;
1652
2189
  workspace_id?: string | undefined;
1653
2190
  }> | import("./definitions/shared.js").ToolDefinition<{
1654
- getcourse_user_id: number;
2191
+ schedule_id: string;
1655
2192
  workspace_id?: string | undefined;
2193
+ limit?: number | undefined;
1656
2194
  }> | import("./definitions/shared.js").ToolDefinition<{
1657
- platform_id: string;
1658
2195
  workspace_id?: string | undefined;
1659
- created_after?: string | undefined;
1660
- contacts?: {
1661
- contact_id: string;
1662
- deal_id?: string | undefined;
1663
- segment_entered_at?: string | undefined;
1664
- funnel?: string | undefined;
1665
- }[] | undefined;
1666
- mailing_variant_id?: string | undefined;
1667
- segment?: string | undefined;
1668
- message?: string | undefined;
2196
+ platform_id?: string | undefined;
2197
+ window_days?: number | undefined;
2198
+ funnels?: string[] | "all" | undefined;
2199
+ product_codes?: string[] | "all" | undefined;
1669
2200
  channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1670
- channels_mode?: "RESTRICT" | "ADD" | undefined;
2201
+ cooldown_days?: number | undefined;
2202
+ local_day?: string | undefined;
2203
+ force?: boolean | undefined;
1671
2204
  }> | import("./definitions/shared.js").ToolDefinition<{
1672
- explicit_confirmation: true;
2205
+ segment_id: string;
2206
+ facets: {
2207
+ application: "NONE" | "CANCELLED" | "ANY";
2208
+ payment: "ANY" | "NOT_ANYWHERE" | "NOT_IN_FUNNEL";
2209
+ attended?: "ANY" | "NO" | "YES" | undefined;
2210
+ attendedFirstSession?: "ANY" | "NO" | "YES" | undefined;
2211
+ activeSecondsMin?: number | undefined;
2212
+ activeSecondsMax?: number | undefined;
2213
+ webinarDayMin?: number | undefined;
2214
+ webinarDayMax?: number | undefined;
2215
+ bannerClick?: "ANY" | "NO" | "YES" | undefined;
2216
+ prelist?: "ANY" | "NO" | "YES" | undefined;
2217
+ previousSegment?: {
2218
+ key: string;
2219
+ minDaysSince: number;
2220
+ } | undefined;
2221
+ untouchedOnly?: boolean | undefined;
2222
+ };
2223
+ freshness_anchor: "REGISTRATION" | "SERIES_END" | "SERIES_END_PLUS_WAIT" | "FIRST_SESSION_END_PLUS_WAIT" | "LAST_APPLICATION" | "PRELIST";
1673
2224
  workspace_id?: string | undefined;
1674
- platform_id?: string | undefined;
1675
- created_after?: string | undefined;
1676
- contacts?: {
1677
- contact_id: string;
1678
- deal_id?: string | undefined;
1679
- segment_entered_at?: string | undefined;
1680
- funnel?: string | undefined;
1681
- }[] | undefined;
1682
- deal_fields?: Record<string, string | number | boolean | null> | undefined;
1683
- message?: string | undefined;
1684
- mailing_variant_id?: string | undefined;
1685
- segment?: string | undefined;
1686
- product_code?: string | undefined;
1687
- funnel?: string | undefined;
1688
- cohort_label?: string | undefined;
1689
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1690
- channels_mode?: "RESTRICT" | "ADD" | undefined;
2225
+ wait_after_series_end_hours?: number | undefined;
2226
+ priority?: number | undefined;
1691
2227
  }> | import("./definitions/shared.js").ToolDefinition<{
1692
- segments: {
1693
- contacts: {
1694
- contact_id: string;
1695
- deal_id?: string | undefined;
1696
- segment_entered_at?: string | undefined;
1697
- funnel?: string | undefined;
1698
- }[];
1699
- segment?: string | undefined;
1700
- product_code?: string | undefined;
1701
- funnel?: string | undefined;
1702
- cohort_label?: string | undefined;
1703
- deal_fields?: Record<string, string | number | boolean | null> | undefined;
1704
- }[];
1705
- explicit_confirmation: true;
2228
+ report: "summary" | "tasks" | "breakdown";
2229
+ workspace_id?: string | undefined;
2230
+ mode?: "all" | "days" | "range" | undefined;
2231
+ days?: number | undefined;
2232
+ from?: string | undefined;
2233
+ to?: string | undefined;
2234
+ scope?: "production" | "with_tests" | undefined;
2235
+ group_by?: "platform" | "operation" | "customer" | "provider" | "tag" | undefined;
2236
+ page?: number | undefined;
2237
+ limit?: number | undefined;
2238
+ }> | import("./definitions/shared.js").ToolDefinition<{
2239
+ report: "money" | "summary" | "topics" | "speed" | "cycle" | "quality";
2240
+ mode: "all" | "days" | "range";
2241
+ currency?: string | undefined;
1706
2242
  workspace_id?: string | undefined;
1707
2243
  platform_id?: string | undefined;
1708
- message?: string | undefined;
1709
- mailing_variant_id?: string | undefined;
1710
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1711
- channels_mode?: "RESTRICT" | "ADD" | undefined;
1712
- guards?: {
1713
- active_series?: "OFF" | "WARN" | "BLOCK" | undefined;
1714
- active_application?: "OFF" | "WARN" | "BLOCK" | undefined;
1715
- paid?: "OFF" | "WARN" | "BLOCK" | undefined;
1716
- } | undefined;
2244
+ channels?: string[] | undefined;
2245
+ days?: number | undefined;
2246
+ from?: string | undefined;
2247
+ to?: string | undefined;
1717
2248
  }> | import("./definitions/shared.js").ToolDefinition<{
1718
- batch_id: string;
2249
+ report: "summary" | "cohorts" | "meta" | "velocity" | "activity" | "trigger-daily" | "drilldown" | "managers" | "stage-path" | "decision-gate";
2250
+ platform_id: string;
2251
+ workspace_id?: string | undefined;
2252
+ from?: string | undefined;
2253
+ to?: string | undefined;
2254
+ view?: "period" | "cohort" | undefined;
2255
+ manager_id?: number | undefined;
2256
+ target_status_id?: string | undefined;
2257
+ metric?: "phone" | "operator" | "engaged3" | "wins" | "wrote" | "stuck" | "blocked" | "decision_approved" | "decision_pending" | "decision_rejected" | "decision_submitted" | "finish_win" | "no_deal" | "operator_waiting" | "pipeline_reached" | "replied1" | "send_failed" | "stage_reached" | "undeliverable" | undefined;
2258
+ stage_id?: string | undefined;
2259
+ pipeline_crm_id?: string | undefined;
2260
+ pipeline_id?: string | undefined;
2261
+ page?: number | undefined;
2262
+ page_size?: number | undefined;
2263
+ }> | import("./definitions/shared.js").ToolDefinition<{
2264
+ report_id: string;
2265
+ workspace_id?: string | undefined;
2266
+ }> | import("./definitions/shared.js").ToolDefinition<{
2267
+ report_id: string;
2268
+ from: string;
2269
+ to: string;
2270
+ workspace_id?: string | undefined;
2271
+ granularity?: "total" | "day" | "month" | "week" | undefined;
2272
+ }> | import("./definitions/shared.js").ToolDefinition<{
2273
+ workspace_id?: string | undefined;
2274
+ low_delivery_threshold?: number | undefined;
2275
+ }> | import("./definitions/shared.js").ToolDefinition<{
2276
+ agent_id: string;
2277
+ enabled: boolean;
2278
+ run_hour_utc: number;
2279
+ channel_scope: "ALL" | "SELECTED";
2280
+ workspace_id?: string | undefined;
2281
+ channel_ids?: string[] | undefined;
2282
+ max_segments_per_run?: number | undefined;
2283
+ min_new_agent_replies?: number | undefined;
2284
+ }> | import("./definitions/shared.js").ToolDefinition<{
2285
+ agent_id: string;
2286
+ idempotency_key: string;
1719
2287
  explicit_confirmation: true;
2288
+ confirmation_reason: string;
1720
2289
  workspace_id?: string | undefined;
2290
+ period_from?: string | undefined;
2291
+ period_to?: string | undefined;
1721
2292
  }> | import("./definitions/shared.js").ToolDefinition<{
1722
- platform_id: string;
1723
- contacts: {
1724
- contact_id: string;
1725
- deal_id?: string | undefined;
1726
- dialog_id?: string | undefined;
1727
- transport?: string | undefined;
1728
- email?: string | undefined;
1729
- phone?: string | undefined;
1730
- first_name?: string | undefined;
1731
- last_name?: string | undefined;
1732
- }[];
1733
2293
  workspace_id?: string | undefined;
1734
- check_messenger_presence?: boolean | undefined;
2294
+ agent_id?: string | undefined;
2295
+ limit?: number | undefined;
2296
+ cursor?: string | undefined;
1735
2297
  }> | import("./definitions/shared.js").ToolDefinition<{
1736
- chat_user_id: string;
2298
+ run_id: string;
2299
+ explicit_confirmation: true;
1737
2300
  workspace_id?: string | undefined;
1738
- funnel_id?: string | undefined;
2301
+ confirmation_reason?: string | undefined;
1739
2302
  }> | import("./definitions/shared.js").ToolDefinition<{
1740
2303
  run_id: string;
2304
+ workspace_id?: string | undefined;
2305
+ limit?: number | undefined;
2306
+ observation_type?: string | undefined;
2307
+ severity?: "HIGH" | "LOW" | "MEDIUM" | "CRITICAL" | undefined;
2308
+ review_state?: "BAD" | "GOOD" | "NOT_REVIEWED" | undefined;
2309
+ }> | import("./definitions/shared.js").ToolDefinition<{
2310
+ observation_id: string;
2311
+ verdict: "BAD" | "GOOD";
2312
+ workspace_id?: string | undefined;
2313
+ comment?: string | null | undefined;
2314
+ }> | import("./definitions/shared.js").ToolDefinition<{
2315
+ observation_id: string;
2316
+ workspace_id?: string | undefined;
2317
+ }> | import("./definitions/shared.js").ToolDefinition<{
2318
+ channel_id: string;
2319
+ type: "DIALOGUE_ANALYSIS";
2320
+ is_enabled: boolean;
1741
2321
  explicit_confirmation: true;
1742
- confirmation_reason: string;
1743
2322
  workspace_id?: string | undefined;
2323
+ daily?: {
2324
+ enabled: boolean;
2325
+ summary_time?: string | undefined;
2326
+ output?: "hidden" | "note" | undefined;
2327
+ } | undefined;
2328
+ hourly?: {
2329
+ enabled: boolean;
2330
+ window_start?: string | undefined;
2331
+ window_end?: string | undefined;
2332
+ min_new_events?: number | undefined;
2333
+ output?: "hidden" | "note" | undefined;
2334
+ } | undefined;
2335
+ pipeline_scope?: {
2336
+ mode: "ALL" | "SELECTED";
2337
+ pipeline_ids: string[];
2338
+ } | undefined;
2339
+ manager_scope?: {
2340
+ mode: "ALL" | "SELECTED";
2341
+ operator_ids: string[];
2342
+ } | undefined;
2343
+ stage_scope?: {
2344
+ mode: "SELECTED";
2345
+ stages: {
2346
+ pipeline_crm_id: string;
2347
+ pipeline_id: string | number;
2348
+ status_id: string | number;
2349
+ }[];
2350
+ } | null | undefined;
2351
+ prompts?: {
2352
+ daily?: string | null | undefined;
2353
+ hourly?: string | null | undefined;
2354
+ } | undefined;
2355
+ }> | import("./definitions/shared.js").ToolDefinition<{
2356
+ conversation_id: string;
2357
+ workspace_id?: string | undefined;
2358
+ since?: string | undefined;
1744
2359
  }> | import("./definitions/shared.js").ToolDefinition<{
1745
2360
  platform_id: string;
2361
+ workspace_id?: string | undefined;
1746
2362
  cursor?: string | undefined;
1747
2363
  limit?: number | undefined;
1748
2364
  }> | import("./definitions/shared.js").ToolDefinition<{
1749
2365
  run_id: string;
1750
- agent_id?: string | undefined;
1751
- category?: "OTHER" | "HALLUCINATION" | "WRONG_ACTION" | "WRONG_ROUTING" | "BAD_TONE" | "MISSED_CONTEXT" | "RAG_MISS" | "SCRIPT_DEVIATION" | "PROMPT_VIOLATION" | "CUSTOM_RULE_CONFLICT" | undefined;
1752
- severity?: "LOW" | "MEDIUM" | "CRITICAL" | undefined;
1753
- status?: "NEW" | "LIKED" | "DISLIKED" | undefined;
2366
+ workspace_id?: string | undefined;
2367
+ explicit_confirmation?: boolean | undefined;
1754
2368
  }> | import("./definitions/shared.js").ToolDefinition<{
1755
2369
  platform_id: string;
2370
+ explicit_confirmation: true;
2371
+ workspace_id?: string | undefined;
1756
2372
  period_from?: string | undefined;
1757
2373
  period_to?: string | undefined;
1758
- explicit_confirmation?: boolean | undefined;
1759
2374
  }> | import("./definitions/shared.js").ToolDefinition<{
1760
2375
  run_id: string;
1761
- explicit_confirmation?: boolean | undefined;
2376
+ workspace_id?: string | undefined;
2377
+ agent_id?: string | undefined;
2378
+ category?: string | undefined;
2379
+ severity?: "LOW" | "MEDIUM" | "CRITICAL" | undefined;
2380
+ status?: "NEW" | "LIKED" | "DISLIKED" | undefined;
2381
+ limit?: number | undefined;
1762
2382
  }> | import("./definitions/shared.js").ToolDefinition<{
1763
2383
  platform_id: string;
1764
2384
  tickets: string[];
1765
2385
  findings: {
1766
2386
  ticket: string;
1767
- category: "OTHER" | "HALLUCINATION" | "WRONG_ACTION" | "WRONG_ROUTING" | "BAD_TONE" | "MISSED_CONTEXT" | "RAG_MISS" | "SCRIPT_DEVIATION" | "PROMPT_VIOLATION" | "CUSTOM_RULE_CONFLICT";
1768
- severity: "LOW" | "MEDIUM" | "CRITICAL";
2387
+ category: string;
2388
+ severity: "HIGH" | "LOW" | "MEDIUM" | "CRITICAL";
1769
2389
  title: string;
1770
2390
  description: string;
1771
2391
  primary_message_id: string;
1772
2392
  prompt_suggestion?: string | null | undefined;
1773
2393
  quote?: string | null | undefined;
2394
+ expected_behavior?: string | null | undefined;
1774
2395
  }[];
2396
+ workspace_id?: string | undefined;
1775
2397
  client_id?: string | undefined;
1776
2398
  principles_hash?: string | undefined;
1777
- }> | import("./definitions/shared.js").ToolDefinition<{
1778
- workspace_id?: string | undefined;
1779
- include_archived?: boolean | undefined;
1780
- days?: number | undefined;
1781
- limit?: number | undefined;
1782
- offset?: number | undefined;
1783
- }> | import("./definitions/shared.js").ToolDefinition<{
1784
- name: string;
1785
- slug: string;
1786
- target_url: string;
1787
- workspace_id?: string | undefined;
1788
- product_code?: string | undefined;
1789
- }> | import("./definitions/shared.js").ToolDefinition<{
1790
- link_id: string;
1791
- workspace_id?: string | undefined;
1792
- name?: string | undefined;
1793
- target_url?: string | undefined;
1794
- product_code?: string | undefined;
1795
- restore?: true | undefined;
1796
- }> | import("./definitions/shared.js").ToolDefinition<{
1797
- link_id: string;
1798
- explicit_confirmation: true;
1799
- workspace_id?: string | undefined;
1800
- }> | import("./definitions/shared.js").ToolDefinition<{
1801
- link_id: string;
1802
- workspace_id?: string | undefined;
1803
- days?: number | undefined;
1804
- }> | import("./definitions/shared.js").ToolDefinition<{
1805
- link_id: string;
1806
- workspace_id?: string | undefined;
1807
- days?: number | undefined;
1808
- page?: number | undefined;
1809
- page_size?: number | undefined;
1810
- }> | import("./definitions/shared.js").ToolDefinition<{
1811
- domain: string | null;
1812
- workspace_id?: string | undefined;
1813
2399
  }> | import("./definitions/shared.js").ToolDefinition<{
1814
2400
  platform_id: string;
1815
2401
  type: "DIALOGUE_ANALYSIS";
1816
2402
  is_enabled: boolean;
2403
+ explicit_confirmation: true;
2404
+ workspace_id?: string | undefined;
1817
2405
  daily?: {
1818
2406
  enabled: boolean;
1819
2407
  summary_time?: string | undefined;
1820
- output?: "note" | "hidden" | undefined;
2408
+ output?: "hidden" | "note" | undefined;
1821
2409
  model?: string | undefined;
1822
2410
  max_tokens?: number | undefined;
1823
2411
  } | undefined;
@@ -1826,111 +2414,75 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1826
2414
  window_start?: string | undefined;
1827
2415
  window_end?: string | undefined;
1828
2416
  min_new_events?: number | undefined;
1829
- output?: "note" | "hidden" | undefined;
2417
+ output?: "hidden" | "note" | undefined;
1830
2418
  model?: string | undefined;
1831
2419
  max_tokens?: number | undefined;
1832
2420
  } | undefined;
2421
+ daily_prompt?: string | null | undefined;
2422
+ hourly_prompt?: string | null | undefined;
1833
2423
  funnels?: string[] | undefined;
1834
2424
  managers?: number[] | undefined;
1835
2425
  stages?: {
1836
2426
  pipeline_crm_id: string;
1837
- pipeline_id: number;
1838
- status_id: number;
2427
+ pipeline_id: string | number;
2428
+ status_id: string | number;
1839
2429
  }[] | null | undefined;
1840
- daily_prompt?: string | null | undefined;
1841
- hourly_prompt?: string | null | undefined;
1842
- explicit_confirmation?: boolean | undefined;
1843
2430
  }> | import("./definitions/shared.js").ToolDefinition<{
1844
- chat_user_id: string;
2431
+ getcourse_user_id: number;
2432
+ workspace_id?: string | undefined;
1845
2433
  }> | import("./definitions/shared.js").ToolDefinition<{
1846
- chat_user_id: string;
1847
- trigger_id: string;
1848
- explicit_confirmation: true;
2434
+ workspace_id?: string | undefined;
2435
+ contact_id?: string | undefined;
2436
+ chat_user_id?: string | undefined;
1849
2437
  }> | import("./definitions/shared.js").ToolDefinition<{
1850
- segment_id: string;
1851
- mailing_variant_id: string;
1852
- platform_id: string;
1853
- mechanism: "cold_welcome";
1854
- freshness_days: number;
1855
- time_local: string;
1856
- daily_cap: number;
1857
- selection_order: "FRESH_FIRST" | "OLD_FIRST";
1858
- cooldown_days: number;
2438
+ conversation_id: string;
2439
+ action_id: string;
1859
2440
  workspace_id?: string | undefined;
1860
- funnels?: string[] | "all" | undefined;
1861
- product_codes?: string[] | "all" | undefined;
1862
- window_mode?: "FIXED" | "ROLLING" | undefined;
1863
- window_from_local?: string | undefined;
1864
- window_to_local?: string | undefined;
1865
- days_of_week?: number[] | undefined;
1866
- days_of_month?: number[] | undefined;
1867
- handoff_from_school_platforms?: boolean | undefined;
1868
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1869
- channels_mode?: "RESTRICT" | "ADD" | undefined;
1870
- is_enabled?: boolean | undefined;
2441
+ explicit_confirmation?: true | undefined;
1871
2442
  }> | import("./definitions/shared.js").ToolDefinition<{
1872
- segment_id: string;
1873
- mailing_variant_id: string;
1874
- platform_id: string;
1875
- mechanism: "cold_welcome";
1876
- freshness_days: number;
1877
- time_local: string;
1878
- daily_cap: number;
1879
- selection_order: "FRESH_FIRST" | "OLD_FIRST";
1880
- cooldown_days: number;
1881
- schedule_id?: string | undefined;
1882
2443
  workspace_id?: string | undefined;
1883
- funnels?: string[] | "all" | undefined;
1884
- product_codes?: string[] | "all" | undefined;
1885
- window_mode?: "FIXED" | "ROLLING" | undefined;
1886
- window_from_local?: string | undefined;
1887
- window_to_local?: string | undefined;
1888
- days_of_week?: number[] | undefined;
1889
- days_of_month?: number[] | undefined;
1890
- handoff_from_school_platforms?: boolean | undefined;
1891
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1892
- channels_mode?: "RESTRICT" | "ADD" | undefined;
1893
- is_enabled?: boolean | undefined;
2444
+ currency?: string | undefined;
2445
+ include_archived?: boolean | undefined;
2446
+ days?: number | undefined;
2447
+ limit?: number | undefined;
2448
+ offset?: number | undefined;
1894
2449
  }> | import("./definitions/shared.js").ToolDefinition<{
1895
- schedule_id: string;
2450
+ name: string;
2451
+ slug: string;
2452
+ target_url: string;
2453
+ workspace_id?: string | undefined;
2454
+ personal_url_variable?: string | undefined;
2455
+ product_code?: string | undefined;
2456
+ }> | import("./definitions/shared.js").ToolDefinition<{
2457
+ link_id: string;
2458
+ workspace_id?: string | undefined;
2459
+ name?: string | undefined;
2460
+ target_url?: string | undefined;
2461
+ personal_url_variable?: string | null | undefined;
2462
+ product_code?: string | undefined;
2463
+ restore?: true | undefined;
2464
+ }> | import("./definitions/shared.js").ToolDefinition<{
2465
+ link_id: string;
1896
2466
  explicit_confirmation: true;
1897
2467
  workspace_id?: string | undefined;
1898
2468
  }> | import("./definitions/shared.js").ToolDefinition<{
1899
- schedule_id: string;
2469
+ link_id: string;
1900
2470
  workspace_id?: string | undefined;
1901
- limit?: number | undefined;
2471
+ currency?: string | undefined;
2472
+ days?: number | undefined;
1902
2473
  }> | import("./definitions/shared.js").ToolDefinition<{
2474
+ link_id: string;
1903
2475
  workspace_id?: string | undefined;
1904
- platform_id?: string | undefined;
1905
- window_days?: number | undefined;
1906
- funnels?: string[] | "all" | undefined;
1907
- product_codes?: string[] | "all" | undefined;
1908
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1909
- cooldown_days?: number | undefined;
1910
- local_day?: string | undefined;
1911
- force?: boolean | undefined;
2476
+ days?: number | undefined;
1912
2477
  }> | import("./definitions/shared.js").ToolDefinition<{
1913
- segment_id: string;
1914
- facets: {
1915
- application: "CANCELLED" | "ANY" | "NONE";
1916
- payment: "ANY" | "NOT_IN_FUNNEL" | "NOT_ANYWHERE";
1917
- attended?: "ANY" | "YES" | "NO" | undefined;
1918
- activeSecondsMin?: number | undefined;
1919
- activeSecondsMax?: number | undefined;
1920
- webinarDayMin?: number | undefined;
1921
- webinarDayMax?: number | undefined;
1922
- bannerClick?: "ANY" | "YES" | "NO" | undefined;
1923
- prelist?: "ANY" | "YES" | "NO" | undefined;
1924
- previousSegment?: {
1925
- key: string;
1926
- minDaysSince: number;
1927
- } | undefined;
1928
- untouchedOnly?: boolean | undefined;
1929
- };
1930
- freshness_anchor: "REGISTRATION" | "SERIES_END" | "SERIES_END_PLUS_WAIT" | "LAST_APPLICATION" | "PRELIST";
2478
+ link_id: string;
2479
+ workspace_id?: string | undefined;
2480
+ days?: number | undefined;
2481
+ page?: number | undefined;
2482
+ page_size?: number | undefined;
2483
+ }> | import("./definitions/shared.js").ToolDefinition<{
2484
+ domain: string | null;
1931
2485
  workspace_id?: string | undefined;
1932
- wait_after_series_end_hours?: number | undefined;
1933
- priority?: number | undefined;
1934
2486
  }> | import("./definitions/shared.js").ToolDefinition<{
1935
2487
  query: string;
1936
2488
  limit?: number | undefined;
@@ -1938,20 +2490,6 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1938
2490
  uri: string;
1939
2491
  section?: string | undefined;
1940
2492
  full?: boolean | undefined;
1941
- }> | import("./definitions/shared.js").ToolDefinition<{
1942
- workspace_id?: string | undefined;
1943
- limit?: number | undefined;
1944
- cursor?: string | undefined;
1945
- search?: string | undefined;
1946
- external_id?: string | undefined;
1947
- phone?: string | undefined;
1948
- email?: string | undefined;
1949
- channel_id?: string | undefined;
1950
- }> | import("./definitions/shared.js").ToolDefinition<{
1951
- contact_id: string;
1952
- }> | import("./definitions/shared.js").ToolDefinition<{
1953
- contact_id: string;
1954
- message_id?: string | undefined;
1955
2493
  }> | import("./definitions/shared.js").ToolDefinition<{
1956
2494
  goal: string;
1957
2495
  constraints: string[];
@@ -1963,12 +2501,12 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1963
2501
  checkpoints: {
1964
2502
  key: string;
1965
2503
  label: string;
1966
- status: "PENDING" | "COMPLETED" | "BLOCKED";
2504
+ status: "COMPLETED" | "PENDING" | "BLOCKED";
1967
2505
  evidence?: string | undefined;
1968
2506
  }[];
1969
2507
  pending_operations: {
1970
2508
  operation: string;
1971
- status: "AWAITING_USER" | "PLANNED" | "OUTCOME_UNKNOWN";
2509
+ status: "OUTCOME_UNKNOWN" | "AWAITING_USER" | "PLANNED";
1972
2510
  object_ref?: {
1973
2511
  type: string;
1974
2512
  id: string;
@@ -1983,7 +2521,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1983
2521
  workspace_id?: string | undefined;
1984
2522
  }> | import("./definitions/shared.js").ToolDefinition<{
1985
2523
  workspace_id?: string | undefined;
1986
- status?: "COMPLETED" | "EXPIRED" | "CANCELLED" | "ACTIVE" | undefined;
2524
+ status?: "COMPLETED" | "CANCELLED" | "ACTIVE" | "EXPIRED" | undefined;
1987
2525
  }> | import("./definitions/shared.js").ToolDefinition<{
1988
2526
  task_id: string;
1989
2527
  workspace_id?: string | undefined;
@@ -2001,12 +2539,12 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
2001
2539
  checkpoints?: {
2002
2540
  key: string;
2003
2541
  label: string;
2004
- status: "PENDING" | "COMPLETED" | "BLOCKED";
2542
+ status: "COMPLETED" | "PENDING" | "BLOCKED";
2005
2543
  evidence?: string | undefined;
2006
2544
  }[] | undefined;
2007
2545
  pending_operations?: {
2008
2546
  operation: string;
2009
- status: "AWAITING_USER" | "PLANNED" | "OUTCOME_UNKNOWN";
2547
+ status: "OUTCOME_UNKNOWN" | "AWAITING_USER" | "PLANNED";
2010
2548
  object_ref?: {
2011
2549
  type: string;
2012
2550
  id: string;
@@ -2027,58 +2565,4 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
2027
2565
  expected_version: number;
2028
2566
  explicit_confirmation: true;
2029
2567
  workspace_id?: string | undefined;
2030
- }> | import("./definitions/shared.js").ToolDefinition<{
2031
- report: "summary" | "topics" | "speed" | "money" | "cycle" | "quality";
2032
- mode: "all" | "days" | "range";
2033
- workspace_id?: string | undefined;
2034
- platform_id?: string | undefined;
2035
- channels?: string[] | undefined;
2036
- days?: number | undefined;
2037
- from?: string | undefined;
2038
- to?: string | undefined;
2039
- }> | import("./definitions/shared.js").ToolDefinition<{
2040
- report: "summary" | "meta" | "cohorts";
2041
- platform_id: string;
2042
- workspace_id?: string | undefined;
2043
- from?: string | undefined;
2044
- to?: string | undefined;
2045
- view?: "cohort" | "period" | undefined;
2046
- manager_id?: number | undefined;
2047
- }> | import("./definitions/shared.js").ToolDefinition<{
2048
- report: "summary" | "tasks" | "breakdown";
2049
- mode: "all" | "days" | "range";
2050
- scope: "production" | "with_tests";
2051
- workspace_id?: string | undefined;
2052
- days?: number | undefined;
2053
- from?: string | undefined;
2054
- to?: string | undefined;
2055
- group_by?: "provider" | "customer" | "platform" | "tag" | "operation" | undefined;
2056
- page?: number | undefined;
2057
- limit?: number | undefined;
2058
- }> | import("./definitions/shared.js").ToolDefinition<{
2059
- report_id: string;
2060
- workspace_id?: string | undefined;
2061
- }> | import("./definitions/shared.js").ToolDefinition<{
2062
- report_id: string;
2063
- from: string;
2064
- to: string;
2065
- workspace_id?: string | undefined;
2066
- granularity?: "day" | "week" | "month" | "total" | undefined;
2067
- }> | import("./definitions/shared.js").ToolDefinition<{
2068
- page: number;
2069
- limit: number;
2070
- workspace_id?: string | undefined;
2071
- status?: "IN_PROGRESS" | "WAITING_OPERATOR" | "WAITING_CUSTOMER" | "RESOLVED" | undefined;
2072
- workspace_operator_id?: string | undefined;
2073
- contact_id?: string | undefined;
2074
- }> | import("./definitions/shared.js").ToolDefinition<{
2075
- contact_id: string;
2076
- workspace_id?: string | undefined;
2077
- }> | import("./definitions/shared.js").ToolDefinition<{
2078
- contact_id: string;
2079
- workspace_operator_id: string | null;
2080
- expected_workspace_operator_id: string | null;
2081
- expected_assigned_operator_at: string | null;
2082
- explicit_confirmation: true;
2083
- workspace_id?: string | undefined;
2084
2568
  }>)[];