@besales/mcp 0.48.0 → 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 -6
  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 +9902 -4734
  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 -431
  147. package/dist/tools/definitions/broadcast-analytics.js.map +1 -1
  148. package/dist/tools/definitions/broadcast-scheduler.d.ts +10 -13
  149. package/dist/tools/definitions/broadcast-scheduler.js +196 -154
  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 -41
  158. package/dist/tools/definitions/crm-platform.js +235 -368
  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 -357
  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 +14 -29
  241. package/dist/tools/definitions/getcourse-cold-welcome.js +180 -254
  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 +686 -224
  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 +396 -307
  343. package/dist/tools/definitions/shared.js +430 -652
  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 +1089 -636
  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 +105875 -22205
  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 -963
  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,10 +1035,7 @@ 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;
831
- } | null | undefined;
1038
+ instagram_comment_reply_method?: "DM_ONLY" | "PUBLIC_REPLY" | "BOTH" | "PUBLIC_AND_DM" | undefined;
832
1039
  instagram_comment_templates?: {
833
1040
  dm?: {
834
1041
  ru?: string | undefined;
@@ -845,40 +1052,62 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
845
1052
  uz?: string | undefined;
846
1053
  uz_cyrl?: string | undefined;
847
1054
  } | undefined;
848
- } | undefined;
849
- reply_to_story_mentions?: boolean | undefined;
850
- } | undefined;
851
- funnel_analytics?: {
852
- decision_gate?: {
853
- submitted: {
854
- pipeline_crm_id: string;
855
- pipeline_id: number;
856
- status_id: number;
857
- };
858
- approved: {
859
- pipeline_crm_id: string;
860
- pipeline_id: number;
861
- status_id: number;
862
- };
863
- rejected: {
864
- pipeline_crm_id: string;
865
- pipeline_id: number;
866
- status_id: number;
867
- };
868
- } | null | undefined;
869
- path_target_stage?: {
870
- pipeline_crm_id: string;
871
- pipeline_id: number;
872
- status_id: number;
873
1055
  } | null | undefined;
874
- engaged_inbound_count?: number | null | undefined;
875
- stuck_threshold_hours?: number | null | undefined;
1056
+ instagram_comment_keywords?: string[] | null | undefined;
1057
+ reply_to_story_mentions?: boolean | undefined;
876
1058
  } | undefined;
877
1059
  general_settings?: {
878
1060
  name?: string | null | undefined;
879
1061
  off_message?: string | null | undefined;
880
1062
  timezone?: string | undefined;
881
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;
882
1111
  } | undefined;
883
1112
  salebot_settings?: {
884
1113
  project_id?: string | null | undefined;
@@ -934,13 +1163,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
934
1163
  variable_name: string;
935
1164
  }[] | null | undefined;
936
1165
  target_department_id?: number | null | undefined;
1166
+ operator_department_id?: number | null | undefined;
937
1167
  delivery_check_enabled?: boolean | undefined;
938
- guard_active_series?: "OFF" | "WARN" | "BLOCK" | null | undefined;
939
- guard_active_application?: "OFF" | "WARN" | "BLOCK" | null | undefined;
940
- guard_paid?: "OFF" | "WARN" | "BLOCK" | null | undefined;
941
- quiet_days?: number | null | undefined;
942
1168
  reachability_ttl_days?: number | null | undefined;
943
- 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;
944
1170
  manual_mute_enabled?: boolean | undefined;
945
1171
  manual_mute_field_id?: string | null | undefined;
946
1172
  manual_mute_value?: string | null | undefined;
@@ -950,15 +1176,62 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
950
1176
  create_missing_deal_funnel_id?: number | null | undefined;
951
1177
  create_missing_deal_stage_id?: number | null | undefined;
952
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;
953
1223
  } | undefined;
954
1224
  }> | import("./definitions/shared.js").ToolDefinition<{
955
1225
  audit_log_id: string;
956
1226
  workspace_id?: string | undefined;
957
1227
  platform_id?: string | undefined;
1228
+ explicit_confirmation?: boolean | undefined;
958
1229
  }> | import("./definitions/shared.js").ToolDefinition<{
959
1230
  agent_id: string;
960
1231
  source_url: string;
961
- 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;
962
1235
  agent_version_id?: string | undefined;
963
1236
  }> | import("./definitions/shared.js").ToolDefinition<{
964
1237
  agent_id: string;
@@ -980,6 +1253,13 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
980
1253
  }> | import("./definitions/shared.js").ToolDefinition<{
981
1254
  agent_id: string;
982
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;
983
1263
  }> | import("./definitions/shared.js").ToolDefinition<{
984
1264
  agent_id: string;
985
1265
  draft_id: string;
@@ -1001,6 +1281,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1001
1281
  replacement_text?: string | undefined;
1002
1282
  match_variants?: string[] | undefined;
1003
1283
  }[];
1284
+ include_prompt_text?: boolean | undefined;
1004
1285
  }> | import("./definitions/shared.js").ToolDefinition<{
1005
1286
  agent_ids: string[];
1006
1287
  operations: {
@@ -1020,48 +1301,152 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1020
1301
  workspace_id?: string | undefined;
1021
1302
  agent_id?: string | undefined;
1022
1303
  channel?: string | undefined;
1023
- agent_scope?: "sale" | "reactivation" | "support" | "onboarding" | "faq" | "qualification" | "complaint" | "other" | undefined;
1304
+ agent_scope?: "other" | "sale" | "reactivation" | "support" | "onboarding" | "faq" | "qualification" | "complaint" | undefined;
1024
1305
  feedback_banned_terms?: string[] | undefined;
1025
1306
  }> | import("./definitions/shared.js").ToolDefinition<{
1026
- workspace_id?: string | undefined;
1027
- stored_file_id?: string | undefined;
1028
- google_sheets_url?: string | undefined;
1029
- sample_rows_per_sheet?: number | undefined;
1030
- max_cells_total?: number | undefined;
1031
- }> | import("./definitions/shared.js").ToolDefinition<{
1032
- workbook_id: string;
1033
- workspace_id?: string | undefined;
1034
- }> | import("./definitions/shared.js").ToolDefinition<{
1035
- workbook_id: string;
1036
- workspace_id?: string | undefined;
1037
- sheet_title?: string | undefined;
1038
- sheet_gid?: number | undefined;
1039
- sheet_index?: number | undefined;
1040
- row_offset?: number | undefined;
1041
- row_limit?: number | undefined;
1042
- column_offset?: number | undefined;
1043
- column_limit?: number | undefined;
1307
+ idempotency_key: string;
1044
1308
  }> | import("./definitions/shared.js").ToolDefinition<{
1045
- workbook_id: string;
1046
- classification: Record<string, unknown>[];
1309
+ platform_id: string;
1047
1310
  workspace_id?: string | undefined;
1311
+ contacts?: {
1312
+ contact_id: string;
1313
+ deal_id?: string | undefined;
1314
+ }[] | undefined;
1315
+ current_anchor_value?: string | undefined;
1048
1316
  }> | import("./definitions/shared.js").ToolDefinition<{
1049
- workbook_id: string;
1050
1317
  explicit_confirmation: true;
1318
+ platform_id: string;
1051
1319
  workspace_id?: string | undefined;
1320
+ contacts?: {
1321
+ contact_id: string;
1322
+ deal_id?: string | undefined;
1323
+ }[] | undefined;
1324
+ current_anchor_value?: string | undefined;
1052
1325
  }> | import("./definitions/shared.js").ToolDefinition<{
1053
- workbook_id: string;
1326
+ correlation_id: string;
1054
1327
  workspace_id?: string | undefined;
1055
- sheet_title?: string | undefined;
1056
- sheet_gid?: number | undefined;
1057
- sheet_index?: number | undefined;
1058
- include_contacts?: boolean | undefined;
1059
1328
  }> | import("./definitions/shared.js").ToolDefinition<{
1060
- workbook_id: string;
1329
+ platform_id: string;
1061
1330
  workspace_id?: string | undefined;
1062
- 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;
1063
1440
  sheet_gid?: number | undefined;
1064
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;
1447
+ sheet_gid?: number | undefined;
1448
+ sheet_index?: number | undefined;
1449
+ knowledge_space_id?: string | undefined;
1065
1450
  namespace?: string | undefined;
1066
1451
  split_override?: {
1067
1452
  split_mode: "size" | "separator";
@@ -1071,12 +1456,15 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1071
1456
  max_chunk_size?: number | undefined;
1072
1457
  } | undefined;
1073
1458
  replace_existing?: boolean | undefined;
1459
+ target_knowledge_source_id?: string | undefined;
1074
1460
  }> | import("./definitions/shared.js").ToolDefinition<{
1075
1461
  name: string;
1076
1462
  scope_type: "WORKSPACE" | "CHANNEL";
1463
+ access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
1464
+ purpose?: string | null | undefined;
1465
+ search_keywords?: string[] | undefined;
1077
1466
  workspace_id?: string | undefined;
1078
1467
  channel_id?: string | undefined;
1079
- access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
1080
1468
  }> | import("./definitions/shared.js").ToolDefinition<{
1081
1469
  workspace_id?: string | undefined;
1082
1470
  scope_type?: "WORKSPACE" | "CHANNEL" | undefined;
@@ -1086,9 +1474,11 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1086
1474
  workspace_id?: string | undefined;
1087
1475
  }> | import("./definitions/shared.js").ToolDefinition<{
1088
1476
  knowledge_space_id: string;
1477
+ access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
1478
+ purpose?: string | null | undefined;
1479
+ search_keywords?: string[] | undefined;
1089
1480
  workspace_id?: string | undefined;
1090
1481
  name?: string | undefined;
1091
- access_mode?: "AUTO_QUERY" | "TOOL_ONLY" | undefined;
1092
1482
  }> | import("./definitions/shared.js").ToolDefinition<{
1093
1483
  knowledge_space_id: string;
1094
1484
  channel_id: string;
@@ -1109,9 +1499,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1109
1499
  } | undefined;
1110
1500
  }> | import("./definitions/shared.js").ToolDefinition<{
1111
1501
  knowledge_space_id: string;
1112
- workspace_id?: string | undefined;
1113
- status?: "FAILED" | "COMPLETED" | "LOADED" | "SPLIT" | "EMBEDDINGS_GENERATED" | "VECTOR_DB_UPLOADED" | "TEXT_EXTRACTED" | "CHUNKS_SAVED" | undefined;
1114
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;
1115
1506
  limit?: number | undefined;
1116
1507
  }> | import("./definitions/shared.js").ToolDefinition<{
1117
1508
  knowledge_space_id: string;
@@ -1136,15 +1527,16 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1136
1527
  }[] | undefined;
1137
1528
  }[] | undefined;
1138
1529
  alias?: string | undefined;
1139
- mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
1530
+ mode?: "SIMPLE" | "ONCE_STRICT" | "STRICT" | undefined;
1140
1531
  call_operator?: boolean | undefined;
1141
1532
  chunk_delay_seconds?: number | undefined;
1142
1533
  is_call_qa_only?: boolean | undefined;
1143
1534
  }> | import("./definitions/shared.js").ToolDefinition<{
1144
1535
  knowledge_space_id: string;
1145
- workspace_id?: string | undefined;
1146
- mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
1147
1536
  page?: number | undefined;
1537
+ workspace_id?: string | undefined;
1538
+ mode?: "SIMPLE" | "ONCE_STRICT" | "STRICT" | undefined;
1539
+ cursor?: string | undefined;
1148
1540
  limit?: number | undefined;
1149
1541
  }> | import("./definitions/shared.js").ToolDefinition<{
1150
1542
  knowledge_space_id: string;
@@ -1158,14 +1550,14 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1158
1550
  answer?: string | undefined;
1159
1551
  answer_chunks?: {
1160
1552
  text?: string | undefined;
1161
- stored_file_id?: string | undefined;
1553
+ stored_file_id?: string | null | undefined;
1162
1554
  buttons?: {
1163
1555
  name: string;
1164
1556
  url: string;
1165
1557
  }[] | undefined;
1166
1558
  }[] | undefined;
1167
1559
  alias?: string | undefined;
1168
- mode?: "SIMPLE" | "STRICT" | "ONCE_STRICT" | undefined;
1560
+ mode?: "SIMPLE" | "ONCE_STRICT" | "STRICT" | undefined;
1169
1561
  call_operator?: boolean | undefined;
1170
1562
  chunk_delay_seconds?: number | undefined;
1171
1563
  is_call_qa_only?: boolean | undefined;
@@ -1193,9 +1585,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1193
1585
  display_name?: string | undefined;
1194
1586
  }> | import("./definitions/shared.js").ToolDefinition<{
1195
1587
  knowledge_space_id: string;
1196
- workspace_id?: string | undefined;
1197
- status?: "PENDING" | "FAILED" | "PROCESSING" | "COMPLETED" | "CRAWLING" | undefined;
1198
1588
  page?: number | undefined;
1589
+ workspace_id?: string | undefined;
1590
+ status?: "COMPLETED" | "FAILED" | "PENDING" | "PROCESSING" | "CRAWLING" | undefined;
1591
+ cursor?: string | undefined;
1199
1592
  limit?: number | undefined;
1200
1593
  }> | import("./definitions/shared.js").ToolDefinition<{
1201
1594
  knowledge_space_id: string;
@@ -1222,12 +1615,13 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1222
1615
  use_vector_index?: boolean | undefined;
1223
1616
  vector_top_k?: number | undefined;
1224
1617
  vector_embed_max_chars?: number | undefined;
1225
- access?: "PUBLIC" | "PRIVATE" | undefined;
1618
+ access?: "PRIVATE" | "PUBLIC" | undefined;
1226
1619
  }> | import("./definitions/shared.js").ToolDefinition<{
1227
1620
  knowledge_space_id: string;
1621
+ page?: number | undefined;
1228
1622
  workspace_id?: string | undefined;
1229
1623
  is_active?: boolean | undefined;
1230
- page?: number | undefined;
1624
+ cursor?: string | undefined;
1231
1625
  limit?: number | undefined;
1232
1626
  }> | import("./definitions/shared.js").ToolDefinition<{
1233
1627
  knowledge_space_id: string;
@@ -1250,7 +1644,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1250
1644
  use_vector_index?: boolean | undefined;
1251
1645
  vector_top_k?: number | undefined;
1252
1646
  vector_embed_max_chars?: number | undefined;
1253
- access?: "PUBLIC" | "PRIVATE" | undefined;
1647
+ access?: "PRIVATE" | "PUBLIC" | undefined;
1254
1648
  is_active?: boolean | undefined;
1255
1649
  }> | import("./definitions/shared.js").ToolDefinition<{
1256
1650
  knowledge_space_id: string;
@@ -1272,7 +1666,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1272
1666
  }> | import("./definitions/shared.js").ToolDefinition<{
1273
1667
  scope: "WORKSPACE" | "CHANNEL";
1274
1668
  name: string;
1275
- type: "TEXT" | "NUMBER" | "FLOAT" | "BOOLEAN";
1669
+ type: "TEXT" | "BOOLEAN" | "NUMBER" | "FLOAT";
1276
1670
  workspace_id?: string | undefined;
1277
1671
  description?: string | undefined;
1278
1672
  value?: string | undefined;
@@ -1288,10 +1682,11 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1288
1682
  }> | import("./definitions/shared.js").ToolDefinition<{
1289
1683
  variable_id: string;
1290
1684
  scope: "WORKSPACE" | "CHANNEL";
1685
+ expected_version?: string | undefined;
1291
1686
  workspace_id?: string | undefined;
1292
1687
  platform_id?: string | undefined;
1293
1688
  description?: string | undefined;
1294
- type?: "TEXT" | "NUMBER" | "FLOAT" | "BOOLEAN" | undefined;
1689
+ type?: "TEXT" | "BOOLEAN" | "NUMBER" | "FLOAT" | undefined;
1295
1690
  value?: string | null | undefined;
1296
1691
  constant_value?: string | null | undefined;
1297
1692
  repeat_constant_value?: string | null | undefined;
@@ -1299,12 +1694,15 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1299
1694
  variable_id: string;
1300
1695
  scope: "WORKSPACE" | "CHANNEL";
1301
1696
  explicit_confirmation: true;
1697
+ expected_version?: string | undefined;
1302
1698
  workspace_id?: string | undefined;
1303
1699
  platform_id?: string | undefined;
1304
1700
  }> | import("./definitions/shared.js").ToolDefinition<{
1305
1701
  crm_id: string;
1306
1702
  workspace_id?: string | undefined;
1307
1703
  include_deleted?: boolean | undefined;
1704
+ limit?: number | undefined;
1705
+ cursor?: string | undefined;
1308
1706
  }> | import("./definitions/shared.js").ToolDefinition<{
1309
1707
  crm_id: string;
1310
1708
  pipeline_id: number;
@@ -1335,6 +1733,12 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1335
1733
  explicit_confirmation: true;
1336
1734
  acknowledge_external_side_effect: true;
1337
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;
1338
1742
  }> | import("./definitions/shared.js").ToolDefinition<{
1339
1743
  crm_id: string;
1340
1744
  pipeline_id: number;
@@ -1345,8 +1749,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1345
1749
  color?: string | undefined;
1346
1750
  status_types?: string[] | undefined;
1347
1751
  is_editable?: boolean | undefined;
1752
+ is_system_managed?: boolean | undefined;
1348
1753
  is_bot_active?: boolean | undefined;
1349
1754
  is_operator_available?: boolean | undefined;
1755
+ is_terminal?: boolean | undefined;
1350
1756
  on_message_received_move_to_status?: number | null | undefined;
1351
1757
  status_id?: number | undefined;
1352
1758
  }> | import("./definitions/shared.js").ToolDefinition<{
@@ -1363,6 +1769,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1363
1769
  is_editable?: boolean | undefined;
1364
1770
  is_bot_active?: boolean | undefined;
1365
1771
  is_operator_available?: boolean | undefined;
1772
+ is_terminal?: boolean | undefined;
1366
1773
  on_message_received_move_to_status?: number | null | undefined;
1367
1774
  }> | import("./definitions/shared.js").ToolDefinition<{
1368
1775
  crm_id: string;
@@ -1375,12 +1782,14 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1375
1782
  platform_id: string;
1376
1783
  pipeline_id: number;
1377
1784
  pipeline_crm_id: string;
1785
+ expected_version?: string | undefined;
1378
1786
  workspace_id?: string | undefined;
1379
1787
  sort?: number | undefined;
1380
1788
  }> | import("./definitions/shared.js").ToolDefinition<{
1381
1789
  platform_id: string;
1382
1790
  platform_pipeline_id: string;
1383
1791
  explicit_confirmation: true;
1792
+ expected_version?: string | undefined;
1384
1793
  workspace_id?: string | undefined;
1385
1794
  }> | import("./definitions/shared.js").ToolDefinition<{
1386
1795
  source_platform_id: string;
@@ -1398,7 +1807,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1398
1807
  };
1399
1808
  workspace_id?: string | undefined;
1400
1809
  conflict_mode?: "reject" | "merge" | "overwrite" | undefined;
1401
- name_collision_strategy?: "suffix" | "keep" | undefined;
1810
+ name_collision_strategy?: "keep" | "suffix" | undefined;
1402
1811
  }> | import("./definitions/shared.js").ToolDefinition<{
1403
1812
  preview_token: string;
1404
1813
  source_platform_id: string;
@@ -1419,6 +1828,8 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1419
1828
  source?: "OTHER" | "USER_UPLOAD" | "AGENT_GREETING" | "CAMPAIGN" | "CRM_IMPORT" | undefined;
1420
1829
  mime_type?: string | undefined;
1421
1830
  size_bytes?: number | undefined;
1831
+ owner_kind?: "KNOWLEDGE_SOURCE" | undefined;
1832
+ owner_id?: string | undefined;
1422
1833
  }> | import("./definitions/shared.js").ToolDefinition<{
1423
1834
  upload_ref: string;
1424
1835
  workspace_id?: string | undefined;
@@ -1433,6 +1844,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1433
1844
  platform_type: "TelegramBot" | "Wazzup" | "Salebot" | "SmsGorod" | "VKon" | "GetCourse" | "WebWidget" | "Bitrix24Bot";
1434
1845
  name: string;
1435
1846
  workspace_id?: string | undefined;
1847
+ operation_id?: string | undefined;
1436
1848
  fields?: {
1437
1849
  [x: string]: unknown;
1438
1850
  } | undefined;
@@ -1444,14 +1856,17 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1444
1856
  workspace_id?: string | undefined;
1445
1857
  name?: string | undefined;
1446
1858
  }> | import("./definitions/shared.js").ToolDefinition<{
1447
- crm_type: "GETCOURSE" | "TELEGRAM" | "AMOCRM" | "BITRIX24";
1859
+ crm_type: "GETCOURSE" | "AMOCRM" | "BITRIX24";
1448
1860
  workspace_id?: string | undefined;
1861
+ operation_id?: string | undefined;
1449
1862
  fields?: {
1450
1863
  [x: string]: unknown;
1451
1864
  } | undefined;
1452
1865
  }> | import("./definitions/shared.js").ToolDefinition<{
1453
1866
  crm_id: string;
1454
1867
  workspace_id?: string | undefined;
1868
+ }> | import("./definitions/shared.js").ToolDefinition<{
1869
+ crm_id: string;
1455
1870
  }> | import("./definitions/shared.js").ToolDefinition<{
1456
1871
  crm_id: string;
1457
1872
  replace_all_existing: true;
@@ -1475,9 +1890,16 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1475
1890
  workspace_id?: string | undefined;
1476
1891
  is_operator?: boolean | undefined;
1477
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;
1478
1899
  }> | import("./definitions/shared.js").ToolDefinition<{
1479
1900
  data_source_type: "ONE_C";
1480
1901
  workspace_id?: string | undefined;
1902
+ operation_id?: string | undefined;
1481
1903
  fields?: {
1482
1904
  [x: string]: unknown;
1483
1905
  } | undefined;
@@ -1486,7 +1908,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1486
1908
  workspace_id?: string | undefined;
1487
1909
  }> | import("./definitions/shared.js").ToolDefinition<{
1488
1910
  data_source_id: string;
1489
- role: "OTHER" | "PRODUCT_CATALOG" | "STOCK" | "PRICE" | "ORDER" | "CUSTOMER";
1911
+ role: "OTHER" | "ORDER" | "PRODUCT_CATALOG" | "STOCK" | "PRICE" | "CUSTOMER";
1490
1912
  external_code: string;
1491
1913
  display_name: string;
1492
1914
  workspace_id?: string | undefined;
@@ -1527,9 +1949,6 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1527
1949
  workspace_id?: string | undefined;
1528
1950
  name?: string | undefined;
1529
1951
  source_channel?: string | undefined;
1530
- }> | import("./definitions/shared.js").ToolDefinition<{
1531
- channel_id: string;
1532
- workspace_id?: string | undefined;
1533
1952
  }> | import("./definitions/shared.js").ToolDefinition<{
1534
1953
  channel_id: string;
1535
1954
  workspace_id?: string | undefined;
@@ -1537,12 +1956,52 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1537
1956
  source_channel?: string | undefined;
1538
1957
  }> | import("./definitions/shared.js").ToolDefinition<{
1539
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;
1540
1999
  platform_ids?: string[] | undefined;
1541
2000
  date_from?: string | undefined;
1542
2001
  date_to?: string | undefined;
1543
2002
  lead_status?: string[] | undefined;
1544
2003
  deactivate_reason?: string[] | undefined;
1545
- 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;
1546
2005
  action_type?: string[] | undefined;
1547
2006
  action_success?: boolean | undefined;
1548
2007
  action_execution_mode?: "test" | "production" | undefined;
@@ -1557,22 +2016,33 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1557
2016
  limit?: number | undefined;
1558
2017
  cursor?: string | undefined;
1559
2018
  }> | import("./definitions/shared.js").ToolDefinition<{
1560
- 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";
1561
- mode: "all" | "days" | "range";
1562
- 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;
1563
2029
  date?: string | undefined;
1564
- 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;
1565
2031
  import_job_id?: string | undefined;
1566
2032
  page?: number | undefined;
1567
2033
  page_size?: number | undefined;
1568
- recipient_metric?: "sent" | "delivered" | "entered" | "deepDialog" | "handedOff" | "notDelivered" | "notSent" | undefined;
1569
- deal_metric?: "issued" | "paid" | "withoutCohort" | undefined;
1570
- 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;
1571
2038
  action_type?: string | undefined;
1572
2039
  payment_view?: "decidable" | "excluded" | "resolved" | undefined;
1573
- payment_status?: "PENDING" | "CONFIRMED" | "CONFIRMED_INDIRECT" | "REJECTED" | undefined;
1574
- 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;
1575
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;
1576
2046
  workspace_id?: string | undefined;
1577
2047
  days?: number | undefined;
1578
2048
  from?: string | undefined;
@@ -1581,15 +2051,17 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1581
2051
  funnel?: string | string[] | undefined;
1582
2052
  funnel_mode?: "none" | undefined;
1583
2053
  segment?: string | string[] | undefined;
1584
- mailing_variant_id?: string | string[] | undefined;
1585
- mechanism?: "wave" | "cold_welcome" | ("wave" | "cold_welcome")[] | undefined;
1586
2054
  product?: string | string[] | undefined;
1587
2055
  product_mode?: "none" | undefined;
1588
- freshness?: "0-7" | "8-14" | "15-30" | "31-45" | "46-60" | "61+" | ("0-7" | "8-14" | "15-30" | "31-45" | "46-60" | "61+")[] | undefined;
1589
- 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;
1590
2059
  }> | import("./definitions/shared.js").ToolDefinition<{
2060
+ view: "period" | "entry" | "cohort";
1591
2061
  mode: "all" | "days" | "range";
1592
- 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;
1593
2065
  workspace_id?: string | undefined;
1594
2066
  days?: number | undefined;
1595
2067
  from?: string | undefined;
@@ -1598,20 +2070,22 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1598
2070
  funnel?: string | string[] | undefined;
1599
2071
  funnel_mode?: "none" | undefined;
1600
2072
  segment?: string | string[] | undefined;
1601
- mailing_variant_id?: string | string[] | undefined;
1602
- mechanism?: "wave" | "cold_welcome" | ("wave" | "cold_welcome")[] | undefined;
1603
2073
  product?: string | string[] | undefined;
1604
2074
  product_mode?: "none" | undefined;
1605
- freshness?: "0-7" | "8-14" | "15-30" | "31-45" | "46-60" | "61+" | ("0-7" | "8-14" | "15-30" | "31-45" | "46-60" | "61+")[] | undefined;
1606
- 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;
1607
2078
  }> | import("./definitions/shared.js").ToolDefinition<{
2079
+ include_archived: boolean;
2080
+ page: number;
2081
+ page_size: number;
1608
2082
  workspace_id?: string | undefined;
1609
- mailing_variant_id?: string | undefined;
1610
- schedule_id?: string | undefined;
1611
- 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;
1612
2086
  }> | import("./definitions/shared.js").ToolDefinition<{
2087
+ include_archived: boolean;
1613
2088
  workspace_id?: string | undefined;
1614
- include_archived?: boolean | undefined;
1615
2089
  }> | import("./definitions/shared.js").ToolDefinition<{
1616
2090
  name: string;
1617
2091
  message_text?: string | null | undefined;
@@ -1619,227 +2093,319 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1619
2093
  default_segment?: string | null | undefined;
1620
2094
  default_product_code?: string | null | undefined;
1621
2095
  default_funnel?: string | null | undefined;
1622
- default_platform_id?: string | null | undefined;
1623
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;
1624
2099
  cold_welcome_channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1625
- cold_welcome_channels_mode?: "RESTRICT" | "ADD" | undefined;
2100
+ cold_welcome_channels_mode?: "ADD" | "RESTRICT" | undefined;
1626
2101
  quiet_days_override?: number | null | undefined;
1627
- default_deal_fields?: Record<string, string | number | boolean | null> | null | undefined;
1628
2102
  workspace_id?: string | undefined;
1629
2103
  description?: string | undefined;
1630
2104
  }> | import("./definitions/shared.js").ToolDefinition<{
1631
2105
  mailing_variant_id: string;
1632
- archived?: boolean | undefined;
1633
- explicit_confirmation?: true | undefined;
1634
2106
  message_text?: string | null | undefined;
1635
2107
  message_text_by_segment?: Record<string, string> | null | undefined;
1636
2108
  default_segment?: string | null | undefined;
1637
2109
  default_product_code?: string | null | undefined;
1638
2110
  default_funnel?: string | null | undefined;
1639
- default_platform_id?: string | null | undefined;
1640
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;
1641
2114
  cold_welcome_channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1642
- cold_welcome_channels_mode?: "RESTRICT" | "ADD" | undefined;
2115
+ cold_welcome_channels_mode?: "ADD" | "RESTRICT" | undefined;
1643
2116
  quiet_days_override?: number | null | undefined;
1644
- default_deal_fields?: Record<string, string | number | boolean | null> | null | undefined;
1645
2117
  workspace_id?: string | undefined;
1646
2118
  name?: string | undefined;
1647
2119
  description?: string | null | undefined;
2120
+ archived?: boolean | undefined;
2121
+ explicit_confirmation?: true | undefined;
1648
2122
  }> | import("./definitions/shared.js").ToolDefinition<{
1649
2123
  mailing_variant_id: string;
1650
2124
  explicit_confirmation: true;
1651
2125
  workspace_id?: string | undefined;
1652
2126
  }> | import("./definitions/shared.js").ToolDefinition<{
1653
- platform_id: string;
1654
2127
  workspace_id?: string | undefined;
1655
- contacts?: {
1656
- contact_id: string;
1657
- deal_id?: string | undefined;
1658
- }[] | undefined;
1659
- current_anchor_value?: 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;
1660
2133
  }> | import("./definitions/shared.js").ToolDefinition<{
1661
- explicit_confirmation: true;
2134
+ segment_id: string;
2135
+ mailing_variant_id: string;
1662
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;
1663
2143
  workspace_id?: string | undefined;
1664
- contacts?: {
1665
- contact_id: string;
1666
- deal_id?: string | undefined;
1667
- }[] | undefined;
1668
- current_anchor_value?: string | undefined;
1669
- }> | import("./definitions/shared.js").ToolDefinition<{
1670
- correlation_id: string;
1671
- workspace_id?: string | undefined;
1672
- }> | import("./definitions/shared.js").ToolDefinition<{
1673
- getcourse_user_id: number;
1674
- workspace_id?: 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;
1675
2159
  }> | import("./definitions/shared.js").ToolDefinition<{
2160
+ segment_id: string;
2161
+ mailing_variant_id: string;
1676
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;
1677
2170
  workspace_id?: string | undefined;
1678
- created_after?: string | undefined;
1679
- contacts?: {
1680
- contact_id: string;
1681
- deal_id?: string | undefined;
1682
- segment_entered_at?: string | undefined;
1683
- registered_at?: string | undefined;
1684
- funnel?: string | undefined;
1685
- }[] | undefined;
1686
- mailing_variant_id?: string | undefined;
1687
- segment?: string | undefined;
1688
- message?: 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;
1689
2181
  channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1690
- channels_mode?: "RESTRICT" | "ADD" | 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;
1691
2186
  }> | import("./definitions/shared.js").ToolDefinition<{
2187
+ schedule_id: string;
1692
2188
  explicit_confirmation: true;
1693
2189
  workspace_id?: string | undefined;
2190
+ }> | import("./definitions/shared.js").ToolDefinition<{
2191
+ schedule_id: string;
2192
+ workspace_id?: string | undefined;
2193
+ limit?: number | undefined;
2194
+ }> | import("./definitions/shared.js").ToolDefinition<{
2195
+ workspace_id?: string | undefined;
1694
2196
  platform_id?: string | undefined;
1695
- created_after?: string | undefined;
1696
- contacts?: {
1697
- contact_id: string;
1698
- deal_id?: string | undefined;
1699
- segment_entered_at?: string | undefined;
1700
- registered_at?: string | undefined;
1701
- funnel?: string | undefined;
1702
- }[] | undefined;
1703
- deal_fields?: Record<string, string | number | boolean | null> | undefined;
1704
- message?: string | undefined;
1705
- mailing_variant_id?: string | undefined;
1706
- segment?: string | undefined;
1707
- product_code?: string | undefined;
1708
- funnel?: string | undefined;
1709
- cohort_label?: string | undefined;
2197
+ window_days?: number | undefined;
2198
+ funnels?: string[] | "all" | undefined;
2199
+ product_codes?: string[] | "all" | undefined;
1710
2200
  channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1711
- channels_mode?: "RESTRICT" | "ADD" | undefined;
2201
+ cooldown_days?: number | undefined;
2202
+ local_day?: string | undefined;
2203
+ force?: boolean | undefined;
1712
2204
  }> | import("./definitions/shared.js").ToolDefinition<{
1713
- segments: {
1714
- contacts: {
1715
- contact_id: string;
1716
- deal_id?: string | undefined;
1717
- segment_entered_at?: string | undefined;
1718
- registered_at?: string | undefined;
1719
- funnel?: string | undefined;
1720
- }[];
1721
- segment?: string | undefined;
1722
- product_code?: string | undefined;
1723
- funnel?: string | undefined;
1724
- cohort_label?: string | undefined;
1725
- deal_fields?: Record<string, string | number | boolean | null> | undefined;
1726
- }[];
1727
- 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";
2224
+ workspace_id?: string | undefined;
2225
+ wait_after_series_end_hours?: number | undefined;
2226
+ priority?: number | undefined;
2227
+ }> | import("./definitions/shared.js").ToolDefinition<{
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;
1728
2242
  workspace_id?: string | undefined;
1729
2243
  platform_id?: string | undefined;
1730
- message?: string | undefined;
1731
- mailing_variant_id?: string | undefined;
1732
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1733
- channels_mode?: "RESTRICT" | "ADD" | undefined;
1734
- guards?: {
1735
- active_series?: "OFF" | "WARN" | "BLOCK" | undefined;
1736
- active_application?: "OFF" | "WARN" | "BLOCK" | undefined;
1737
- paid?: "OFF" | "WARN" | "BLOCK" | undefined;
1738
- } | undefined;
2244
+ channels?: string[] | undefined;
2245
+ days?: number | undefined;
2246
+ from?: string | undefined;
2247
+ to?: string | undefined;
1739
2248
  }> | import("./definitions/shared.js").ToolDefinition<{
1740
- 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;
1741
2287
  explicit_confirmation: true;
2288
+ confirmation_reason: string;
1742
2289
  workspace_id?: string | undefined;
2290
+ period_from?: string | undefined;
2291
+ period_to?: string | undefined;
1743
2292
  }> | import("./definitions/shared.js").ToolDefinition<{
1744
- platform_id: string;
1745
- contacts: {
1746
- contact_id: string;
1747
- deal_id?: string | undefined;
1748
- dialog_id?: string | undefined;
1749
- transport?: string | undefined;
1750
- email?: string | undefined;
1751
- phone?: string | undefined;
1752
- first_name?: string | undefined;
1753
- last_name?: string | undefined;
1754
- }[];
1755
2293
  workspace_id?: string | undefined;
1756
- check_messenger_presence?: boolean | undefined;
2294
+ agent_id?: string | undefined;
2295
+ limit?: number | undefined;
2296
+ cursor?: string | undefined;
1757
2297
  }> | import("./definitions/shared.js").ToolDefinition<{
1758
- chat_user_id: string;
2298
+ run_id: string;
2299
+ explicit_confirmation: true;
1759
2300
  workspace_id?: string | undefined;
1760
- funnel_id?: string | undefined;
2301
+ confirmation_reason?: string | undefined;
1761
2302
  }> | import("./definitions/shared.js").ToolDefinition<{
1762
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;
1763
2321
  explicit_confirmation: true;
1764
- confirmation_reason: string;
1765
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;
1766
2359
  }> | import("./definitions/shared.js").ToolDefinition<{
1767
2360
  platform_id: string;
2361
+ workspace_id?: string | undefined;
1768
2362
  cursor?: string | undefined;
1769
2363
  limit?: number | undefined;
1770
2364
  }> | import("./definitions/shared.js").ToolDefinition<{
1771
2365
  run_id: string;
1772
- agent_id?: string | undefined;
1773
- category?: "OTHER" | "HALLUCINATION" | "WRONG_ACTION" | "WRONG_ROUTING" | "BAD_TONE" | "MISSED_CONTEXT" | "RAG_MISS" | "SCRIPT_DEVIATION" | "PROMPT_VIOLATION" | "CUSTOM_RULE_CONFLICT" | undefined;
1774
- severity?: "LOW" | "MEDIUM" | "CRITICAL" | undefined;
1775
- status?: "NEW" | "LIKED" | "DISLIKED" | undefined;
2366
+ workspace_id?: string | undefined;
2367
+ explicit_confirmation?: boolean | undefined;
1776
2368
  }> | import("./definitions/shared.js").ToolDefinition<{
1777
2369
  platform_id: string;
2370
+ explicit_confirmation: true;
2371
+ workspace_id?: string | undefined;
1778
2372
  period_from?: string | undefined;
1779
2373
  period_to?: string | undefined;
1780
- explicit_confirmation?: boolean | undefined;
1781
2374
  }> | import("./definitions/shared.js").ToolDefinition<{
1782
2375
  run_id: string;
1783
- 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;
1784
2382
  }> | import("./definitions/shared.js").ToolDefinition<{
1785
2383
  platform_id: string;
1786
2384
  tickets: string[];
1787
2385
  findings: {
1788
2386
  ticket: string;
1789
- category: "OTHER" | "HALLUCINATION" | "WRONG_ACTION" | "WRONG_ROUTING" | "BAD_TONE" | "MISSED_CONTEXT" | "RAG_MISS" | "SCRIPT_DEVIATION" | "PROMPT_VIOLATION" | "CUSTOM_RULE_CONFLICT";
1790
- severity: "LOW" | "MEDIUM" | "CRITICAL";
2387
+ category: string;
2388
+ severity: "HIGH" | "LOW" | "MEDIUM" | "CRITICAL";
1791
2389
  title: string;
1792
2390
  description: string;
1793
2391
  primary_message_id: string;
1794
2392
  prompt_suggestion?: string | null | undefined;
1795
2393
  quote?: string | null | undefined;
2394
+ expected_behavior?: string | null | undefined;
1796
2395
  }[];
2396
+ workspace_id?: string | undefined;
1797
2397
  client_id?: string | undefined;
1798
2398
  principles_hash?: string | undefined;
1799
- }> | import("./definitions/shared.js").ToolDefinition<{
1800
- workspace_id?: string | undefined;
1801
- include_archived?: boolean | undefined;
1802
- days?: number | undefined;
1803
- limit?: number | undefined;
1804
- offset?: number | undefined;
1805
- }> | import("./definitions/shared.js").ToolDefinition<{
1806
- name: string;
1807
- slug: string;
1808
- target_url: string;
1809
- workspace_id?: string | undefined;
1810
- product_code?: string | undefined;
1811
- }> | import("./definitions/shared.js").ToolDefinition<{
1812
- link_id: string;
1813
- workspace_id?: string | undefined;
1814
- name?: string | undefined;
1815
- target_url?: string | undefined;
1816
- product_code?: string | undefined;
1817
- restore?: true | undefined;
1818
- }> | import("./definitions/shared.js").ToolDefinition<{
1819
- link_id: string;
1820
- explicit_confirmation: true;
1821
- workspace_id?: string | undefined;
1822
- }> | import("./definitions/shared.js").ToolDefinition<{
1823
- link_id: string;
1824
- workspace_id?: string | undefined;
1825
- days?: number | undefined;
1826
- }> | import("./definitions/shared.js").ToolDefinition<{
1827
- link_id: string;
1828
- workspace_id?: string | undefined;
1829
- days?: number | undefined;
1830
- page?: number | undefined;
1831
- page_size?: number | undefined;
1832
- }> | import("./definitions/shared.js").ToolDefinition<{
1833
- domain: string | null;
1834
- workspace_id?: string | undefined;
1835
2399
  }> | import("./definitions/shared.js").ToolDefinition<{
1836
2400
  platform_id: string;
1837
2401
  type: "DIALOGUE_ANALYSIS";
1838
2402
  is_enabled: boolean;
2403
+ explicit_confirmation: true;
2404
+ workspace_id?: string | undefined;
1839
2405
  daily?: {
1840
2406
  enabled: boolean;
1841
2407
  summary_time?: string | undefined;
1842
- output?: "note" | "hidden" | undefined;
2408
+ output?: "hidden" | "note" | undefined;
1843
2409
  model?: string | undefined;
1844
2410
  max_tokens?: number | undefined;
1845
2411
  } | undefined;
@@ -1848,120 +2414,75 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1848
2414
  window_start?: string | undefined;
1849
2415
  window_end?: string | undefined;
1850
2416
  min_new_events?: number | undefined;
1851
- output?: "note" | "hidden" | undefined;
2417
+ output?: "hidden" | "note" | undefined;
1852
2418
  model?: string | undefined;
1853
2419
  max_tokens?: number | undefined;
1854
2420
  } | undefined;
2421
+ daily_prompt?: string | null | undefined;
2422
+ hourly_prompt?: string | null | undefined;
1855
2423
  funnels?: string[] | undefined;
1856
2424
  managers?: number[] | undefined;
1857
2425
  stages?: {
1858
2426
  pipeline_crm_id: string;
1859
- pipeline_id: number;
1860
- status_id: number;
2427
+ pipeline_id: string | number;
2428
+ status_id: string | number;
1861
2429
  }[] | null | undefined;
1862
- daily_prompt?: string | null | undefined;
1863
- hourly_prompt?: string | null | undefined;
1864
- explicit_confirmation?: boolean | undefined;
1865
2430
  }> | import("./definitions/shared.js").ToolDefinition<{
1866
- chat_user_id: string;
2431
+ getcourse_user_id: number;
2432
+ workspace_id?: string | undefined;
1867
2433
  }> | import("./definitions/shared.js").ToolDefinition<{
1868
- chat_user_id: string;
1869
- trigger_id: string;
1870
- explicit_confirmation: true;
2434
+ workspace_id?: string | undefined;
2435
+ contact_id?: string | undefined;
2436
+ chat_user_id?: string | undefined;
1871
2437
  }> | 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;
2438
+ conversation_id: string;
2439
+ action_id: string;
1881
2440
  workspace_id?: string | undefined;
1882
- funnels?: string[] | "all" | undefined;
1883
- product_codes?: string[] | "all" | undefined;
1884
- window_mode?: "FIXED" | "ROLLING" | undefined;
1885
- window_from_local?: string | undefined;
1886
- window_to_local?: string | undefined;
1887
- days_of_week?: number[] | undefined;
1888
- days_of_month?: number[] | undefined;
1889
- handoff_from_school_platforms?: boolean | undefined;
1890
- resend_segment_on_new_registration?: boolean | undefined;
1891
- resend_segment_pause_days?: number | undefined;
1892
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1893
- channels_mode?: "RESTRICT" | "ADD" | undefined;
1894
- guard_active_series?: "OFF" | "WARN" | "BLOCK" | null | undefined;
1895
- skip_after_segment_ids?: string[] | undefined;
1896
- is_enabled?: boolean | undefined;
2441
+ explicit_confirmation?: true | undefined;
1897
2442
  }> | import("./definitions/shared.js").ToolDefinition<{
1898
- segment_id: string;
1899
- mailing_variant_id: string;
1900
- platform_id: string;
1901
- mechanism: "cold_welcome";
1902
- freshness_days: number;
1903
- time_local: string;
1904
- daily_cap: number;
1905
- selection_order: "FRESH_FIRST" | "OLD_FIRST";
1906
- cooldown_days: number;
1907
- schedule_id?: string | undefined;
1908
2443
  workspace_id?: string | undefined;
1909
- funnels?: string[] | "all" | undefined;
1910
- product_codes?: string[] | "all" | undefined;
1911
- window_mode?: "FIXED" | "ROLLING" | undefined;
1912
- window_from_local?: string | undefined;
1913
- window_to_local?: string | undefined;
1914
- days_of_week?: number[] | undefined;
1915
- days_of_month?: number[] | undefined;
1916
- handoff_from_school_platforms?: boolean | undefined;
1917
- resend_segment_on_new_registration?: boolean | undefined;
1918
- resend_segment_pause_days?: number | undefined;
1919
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1920
- channels_mode?: "RESTRICT" | "ADD" | undefined;
1921
- guard_active_series?: "OFF" | "WARN" | "BLOCK" | null | undefined;
1922
- skip_after_segment_ids?: string[] | undefined;
1923
- 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;
1924
2449
  }> | import("./definitions/shared.js").ToolDefinition<{
1925
- 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;
1926
2466
  explicit_confirmation: true;
1927
2467
  workspace_id?: string | undefined;
1928
2468
  }> | import("./definitions/shared.js").ToolDefinition<{
1929
- schedule_id: string;
2469
+ link_id: string;
1930
2470
  workspace_id?: string | undefined;
1931
- limit?: number | undefined;
2471
+ currency?: string | undefined;
2472
+ days?: number | undefined;
1932
2473
  }> | import("./definitions/shared.js").ToolDefinition<{
2474
+ link_id: string;
1933
2475
  workspace_id?: string | undefined;
1934
- platform_id?: string | undefined;
1935
- window_days?: number | undefined;
1936
- funnels?: string[] | "all" | undefined;
1937
- product_codes?: string[] | "all" | undefined;
1938
- channels?: ("Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX")[] | undefined;
1939
- cooldown_days?: number | undefined;
1940
- local_day?: string | undefined;
1941
- force?: boolean | undefined;
2476
+ days?: number | undefined;
1942
2477
  }> | import("./definitions/shared.js").ToolDefinition<{
1943
- segment_id: string;
1944
- facets: {
1945
- application: "CANCELLED" | "ANY" | "NONE";
1946
- payment: "ANY" | "NOT_IN_FUNNEL" | "NOT_ANYWHERE";
1947
- attended?: "ANY" | "YES" | "NO" | undefined;
1948
- attendedFirstSession?: "ANY" | "YES" | "NO" | undefined;
1949
- activeSecondsMin?: number | undefined;
1950
- activeSecondsMax?: number | undefined;
1951
- webinarDayMin?: number | undefined;
1952
- webinarDayMax?: number | undefined;
1953
- bannerClick?: "ANY" | "YES" | "NO" | undefined;
1954
- prelist?: "ANY" | "YES" | "NO" | undefined;
1955
- previousSegment?: {
1956
- key: string;
1957
- minDaysSince: number;
1958
- } | undefined;
1959
- untouchedOnly?: boolean | undefined;
1960
- };
1961
- freshness_anchor: "REGISTRATION" | "SERIES_END" | "SERIES_END_PLUS_WAIT" | "FIRST_SESSION_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;
1962
2485
  workspace_id?: string | undefined;
1963
- wait_after_series_end_hours?: number | undefined;
1964
- priority?: number | undefined;
1965
2486
  }> | import("./definitions/shared.js").ToolDefinition<{
1966
2487
  query: string;
1967
2488
  limit?: number | undefined;
@@ -1969,20 +2490,6 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1969
2490
  uri: string;
1970
2491
  section?: string | undefined;
1971
2492
  full?: boolean | undefined;
1972
- }> | import("./definitions/shared.js").ToolDefinition<{
1973
- workspace_id?: string | undefined;
1974
- limit?: number | undefined;
1975
- cursor?: string | undefined;
1976
- search?: string | undefined;
1977
- external_id?: string | undefined;
1978
- phone?: string | undefined;
1979
- email?: string | undefined;
1980
- channel_id?: string | undefined;
1981
- }> | import("./definitions/shared.js").ToolDefinition<{
1982
- contact_id: string;
1983
- }> | import("./definitions/shared.js").ToolDefinition<{
1984
- contact_id: string;
1985
- message_id?: string | undefined;
1986
2493
  }> | import("./definitions/shared.js").ToolDefinition<{
1987
2494
  goal: string;
1988
2495
  constraints: string[];
@@ -1994,12 +2501,12 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
1994
2501
  checkpoints: {
1995
2502
  key: string;
1996
2503
  label: string;
1997
- status: "PENDING" | "COMPLETED" | "BLOCKED";
2504
+ status: "COMPLETED" | "PENDING" | "BLOCKED";
1998
2505
  evidence?: string | undefined;
1999
2506
  }[];
2000
2507
  pending_operations: {
2001
2508
  operation: string;
2002
- status: "AWAITING_USER" | "PLANNED" | "OUTCOME_UNKNOWN";
2509
+ status: "OUTCOME_UNKNOWN" | "AWAITING_USER" | "PLANNED";
2003
2510
  object_ref?: {
2004
2511
  type: string;
2005
2512
  id: string;
@@ -2014,7 +2521,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
2014
2521
  workspace_id?: string | undefined;
2015
2522
  }> | import("./definitions/shared.js").ToolDefinition<{
2016
2523
  workspace_id?: string | undefined;
2017
- status?: "COMPLETED" | "EXPIRED" | "CANCELLED" | "ACTIVE" | undefined;
2524
+ status?: "COMPLETED" | "CANCELLED" | "ACTIVE" | "EXPIRED" | undefined;
2018
2525
  }> | import("./definitions/shared.js").ToolDefinition<{
2019
2526
  task_id: string;
2020
2527
  workspace_id?: string | undefined;
@@ -2032,12 +2539,12 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
2032
2539
  checkpoints?: {
2033
2540
  key: string;
2034
2541
  label: string;
2035
- status: "PENDING" | "COMPLETED" | "BLOCKED";
2542
+ status: "COMPLETED" | "PENDING" | "BLOCKED";
2036
2543
  evidence?: string | undefined;
2037
2544
  }[] | undefined;
2038
2545
  pending_operations?: {
2039
2546
  operation: string;
2040
- status: "AWAITING_USER" | "PLANNED" | "OUTCOME_UNKNOWN";
2547
+ status: "OUTCOME_UNKNOWN" | "AWAITING_USER" | "PLANNED";
2041
2548
  object_ref?: {
2042
2549
  type: string;
2043
2550
  id: string;
@@ -2058,58 +2565,4 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
2058
2565
  expected_version: number;
2059
2566
  explicit_confirmation: true;
2060
2567
  workspace_id?: string | undefined;
2061
- }> | import("./definitions/shared.js").ToolDefinition<{
2062
- report: "summary" | "topics" | "speed" | "money" | "cycle" | "quality";
2063
- mode: "all" | "days" | "range";
2064
- workspace_id?: string | undefined;
2065
- platform_id?: string | undefined;
2066
- channels?: string[] | undefined;
2067
- days?: number | undefined;
2068
- from?: string | undefined;
2069
- to?: string | undefined;
2070
- }> | import("./definitions/shared.js").ToolDefinition<{
2071
- report: "summary" | "meta" | "cohorts";
2072
- platform_id: string;
2073
- workspace_id?: string | undefined;
2074
- from?: string | undefined;
2075
- to?: string | undefined;
2076
- view?: "cohort" | "period" | undefined;
2077
- manager_id?: number | undefined;
2078
- }> | import("./definitions/shared.js").ToolDefinition<{
2079
- report: "summary" | "tasks" | "breakdown";
2080
- mode: "all" | "days" | "range";
2081
- scope: "production" | "with_tests";
2082
- workspace_id?: string | undefined;
2083
- days?: number | undefined;
2084
- from?: string | undefined;
2085
- to?: string | undefined;
2086
- group_by?: "provider" | "customer" | "platform" | "tag" | "operation" | undefined;
2087
- page?: number | undefined;
2088
- limit?: number | undefined;
2089
- }> | import("./definitions/shared.js").ToolDefinition<{
2090
- report_id: string;
2091
- workspace_id?: string | undefined;
2092
- }> | import("./definitions/shared.js").ToolDefinition<{
2093
- report_id: string;
2094
- from: string;
2095
- to: string;
2096
- workspace_id?: string | undefined;
2097
- granularity?: "day" | "week" | "month" | "total" | undefined;
2098
- }> | import("./definitions/shared.js").ToolDefinition<{
2099
- page: number;
2100
- limit: number;
2101
- workspace_id?: string | undefined;
2102
- status?: "IN_PROGRESS" | "WAITING_OPERATOR" | "WAITING_CUSTOMER" | "RESOLVED" | undefined;
2103
- workspace_operator_id?: string | undefined;
2104
- contact_id?: string | undefined;
2105
- }> | import("./definitions/shared.js").ToolDefinition<{
2106
- contact_id: string;
2107
- workspace_id?: string | undefined;
2108
- }> | import("./definitions/shared.js").ToolDefinition<{
2109
- contact_id: string;
2110
- workspace_operator_id: string | null;
2111
- expected_workspace_operator_id: string | null;
2112
- expected_assigned_operator_at: string | null;
2113
- explicit_confirmation: true;
2114
- workspace_id?: string | undefined;
2115
2568
  }>)[];