@wirecat/amo-cli 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/LICENSE +204 -0
  3. package/README.md +265 -2
  4. package/contracts/wirecat.json +1356 -0
  5. package/dist/amo/account.d.ts +18 -0
  6. package/dist/amo/account.d.ts.map +1 -0
  7. package/dist/amo/account.js +48 -0
  8. package/dist/amo/account.js.map +1 -0
  9. package/dist/amo/allow-list.d.ts +31 -0
  10. package/dist/amo/allow-list.d.ts.map +1 -0
  11. package/dist/amo/allow-list.js +106 -0
  12. package/dist/amo/allow-list.js.map +1 -0
  13. package/dist/amo/errors.d.ts +12 -0
  14. package/dist/amo/errors.d.ts.map +1 -0
  15. package/dist/amo/errors.js +72 -0
  16. package/dist/amo/errors.js.map +1 -0
  17. package/dist/amo/json.d.ts +3 -0
  18. package/dist/amo/json.d.ts.map +1 -0
  19. package/dist/amo/json.js +3 -0
  20. package/dist/amo/json.js.map +1 -0
  21. package/dist/amo/oauth.d.ts +55 -0
  22. package/dist/amo/oauth.d.ts.map +1 -0
  23. package/dist/amo/oauth.js +189 -0
  24. package/dist/amo/oauth.js.map +1 -0
  25. package/dist/amo/operation.d.ts +45 -0
  26. package/dist/amo/operation.d.ts.map +1 -0
  27. package/dist/amo/operation.js +119 -0
  28. package/dist/amo/operation.js.map +1 -0
  29. package/dist/amo/operations.d.ts +3 -0
  30. package/dist/amo/operations.d.ts.map +1 -0
  31. package/dist/amo/operations.js +1407 -0
  32. package/dist/amo/operations.js.map +1 -0
  33. package/dist/amo/routes.d.ts +67 -0
  34. package/dist/amo/routes.d.ts.map +1 -0
  35. package/dist/amo/routes.js +65 -0
  36. package/dist/amo/routes.js.map +1 -0
  37. package/dist/amo/transport.d.ts +62 -0
  38. package/dist/amo/transport.d.ts.map +1 -0
  39. package/dist/amo/transport.js +282 -0
  40. package/dist/amo/transport.js.map +1 -0
  41. package/dist/api-keys.d.ts +47 -0
  42. package/dist/api-keys.d.ts.map +1 -0
  43. package/dist/api-keys.js +224 -0
  44. package/dist/api-keys.js.map +1 -0
  45. package/dist/bin/amo.d.ts +3 -0
  46. package/dist/bin/amo.d.ts.map +1 -0
  47. package/dist/bin/amo.js +40 -0
  48. package/dist/bin/amo.js.map +1 -0
  49. package/dist/bundle/all-profiles-3KQVWDV4.js +278 -0
  50. package/dist/bundle/amo.js +198 -0
  51. package/dist/bundle/anthropic-N5NOX7K7.js +90 -0
  52. package/dist/bundle/app-server-2MST5EZ5.js +245 -0
  53. package/dist/bundle/bun-4NHWOFX2.js +169 -0
  54. package/dist/bundle/bun-sqlite-DRSXPWPR.js +75 -0
  55. package/dist/bundle/chunk-2B24PDH7.js +1718 -0
  56. package/dist/bundle/chunk-2I5UVMLW.js +3232 -0
  57. package/dist/bundle/chunk-3IRJDH2U.js +731 -0
  58. package/dist/bundle/chunk-4ZAK773N.js +100 -0
  59. package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
  60. package/dist/bundle/chunk-5D4Z2B5B.js +334 -0
  61. package/dist/bundle/chunk-5E5R65CA.js +54 -0
  62. package/dist/bundle/chunk-5HGGG3QO.js +73 -0
  63. package/dist/bundle/chunk-5RLUHTK6.js +23 -0
  64. package/dist/bundle/chunk-5SBLU7D7.js +63 -0
  65. package/dist/bundle/chunk-5Z5PEEKP.js +206 -0
  66. package/dist/bundle/chunk-63F65DHU.js +29 -0
  67. package/dist/bundle/chunk-6RS7OYTD.js +64 -0
  68. package/dist/bundle/chunk-73CXFE36.js +88 -0
  69. package/dist/bundle/chunk-7GTUZY7M.js +170 -0
  70. package/dist/bundle/chunk-7PKFYX7V.js +189 -0
  71. package/dist/bundle/chunk-7U5HJEPZ.js +1400 -0
  72. package/dist/bundle/chunk-A33TIM5D.js +4172 -0
  73. package/dist/bundle/chunk-ADEWU4P4.js +38 -0
  74. package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
  75. package/dist/bundle/chunk-AHJ4W2IL.js +106 -0
  76. package/dist/bundle/chunk-AUBB72VF.js +2572 -0
  77. package/dist/bundle/chunk-BVMNXI53.js +1266 -0
  78. package/dist/bundle/chunk-CDY2NJFE.js +136 -0
  79. package/dist/bundle/chunk-CHUKWON6.js +244 -0
  80. package/dist/bundle/chunk-CUZRHF34.js +230 -0
  81. package/dist/bundle/chunk-D72URWJE.js +532 -0
  82. package/dist/bundle/chunk-DAY6TSPF.js +786 -0
  83. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  84. package/dist/bundle/chunk-DJD7TBYG.js +2791 -0
  85. package/dist/bundle/chunk-DOSJONCX.js +1197 -0
  86. package/dist/bundle/chunk-DQV2IKCF.js +72 -0
  87. package/dist/bundle/chunk-DXGGCGRP.js +218 -0
  88. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  89. package/dist/bundle/chunk-EPOV5UIO.js +185 -0
  90. package/dist/bundle/chunk-EQ7A6NA6.js +53 -0
  91. package/dist/bundle/chunk-EQUKVVHX.js +353 -0
  92. package/dist/bundle/chunk-EROSAUNP.js +133 -0
  93. package/dist/bundle/chunk-ESZSMZKT.js +82 -0
  94. package/dist/bundle/chunk-FKR3M62D.js +407 -0
  95. package/dist/bundle/chunk-GNTJMB6X.js +142 -0
  96. package/dist/bundle/chunk-GQ7VFIYM.js +316 -0
  97. package/dist/bundle/chunk-JH3UOHRE.js +161 -0
  98. package/dist/bundle/chunk-JMDLPBXK.js +1068 -0
  99. package/dist/bundle/chunk-JR6TSMFX.js +9435 -0
  100. package/dist/bundle/chunk-L6AFE73L.js +18 -0
  101. package/dist/bundle/chunk-LDEBZ3IX.js +238 -0
  102. package/dist/bundle/chunk-LGQXGOPJ.js +58 -0
  103. package/dist/bundle/chunk-LJQUYECN.js +6848 -0
  104. package/dist/bundle/chunk-LRBPT7LQ.js +95 -0
  105. package/dist/bundle/chunk-LSND5QYI.js +460 -0
  106. package/dist/bundle/chunk-NC76INB2.js +27955 -0
  107. package/dist/bundle/chunk-NHXJYS4R.js +1334 -0
  108. package/dist/bundle/chunk-NJYAL3UW.js +92 -0
  109. package/dist/bundle/chunk-O2UCU52O.js +4065 -0
  110. package/dist/bundle/chunk-ODNQU7DH.js +1028 -0
  111. package/dist/bundle/chunk-P3WQRTYZ.js +24 -0
  112. package/dist/bundle/chunk-P5LYZRKW.js +63373 -0
  113. package/dist/bundle/chunk-PFO76YFP.js +2003 -0
  114. package/dist/bundle/chunk-PM77PRB6.js +12269 -0
  115. package/dist/bundle/chunk-Q2VNBY4Y.js +38109 -0
  116. package/dist/bundle/chunk-QDMXZZG4.js +604 -0
  117. package/dist/bundle/chunk-QRQYUHCZ.js +761 -0
  118. package/dist/bundle/chunk-RPWAJYI6.js +2336 -0
  119. package/dist/bundle/chunk-SMSTGO2G.js +58 -0
  120. package/dist/bundle/chunk-SZ2V62HB.js +72 -0
  121. package/dist/bundle/chunk-T2UDLX76.js +259 -0
  122. package/dist/bundle/chunk-TGEQNS6G.js +16 -0
  123. package/dist/bundle/chunk-TNUFLULO.js +2333 -0
  124. package/dist/bundle/chunk-TZSUZGWM.js +25 -0
  125. package/dist/bundle/chunk-U7RLVJ34.js +274 -0
  126. package/dist/bundle/chunk-UBRREVLJ.js +72 -0
  127. package/dist/bundle/chunk-ULXQ5MJM.js +76 -0
  128. package/dist/bundle/chunk-UMVRT7VQ.js +46 -0
  129. package/dist/bundle/chunk-V77XNPXG.js +360 -0
  130. package/dist/bundle/chunk-VVHRQ46X.js +193 -0
  131. package/dist/bundle/chunk-VX37MPTJ.js +7 -0
  132. package/dist/bundle/chunk-WCYCUTSK.js +362 -0
  133. package/dist/bundle/chunk-XEFAMLSD.js +288 -0
  134. package/dist/bundle/chunk-XQL7FEF4.js +721 -0
  135. package/dist/bundle/chunk-XRTD2GCU.js +627 -0
  136. package/dist/bundle/chunk-Y37A3232.js +804 -0
  137. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  138. package/dist/bundle/chunk-ZM7I52EP.js +78 -0
  139. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  140. package/dist/bundle/cli-QVWTXADI.js +1193 -0
  141. package/dist/bundle/command-contract-QBUQBXH7.js +39 -0
  142. package/dist/bundle/command-server-entry-5VL5U5EE.js +168 -0
  143. package/dist/bundle/decode-SQ5WGNDX.js +296 -0
  144. package/dist/bundle/dispatch-LA4DFXJD.js +411 -0
  145. package/dist/bundle/dist-T54K3FJV.js +7577 -0
  146. package/dist/bundle/echarts-25Z3RINX.js +42501 -0
  147. package/dist/bundle/embed-BNOTNXMA.js +37 -0
  148. package/dist/bundle/embedder-BCUT7KKV.js +110 -0
  149. package/dist/bundle/failure-PKAC6XCT.js +24 -0
  150. package/dist/bundle/first-run-EO5K5GME.js +28 -0
  151. package/dist/bundle/first-screen-GMN3T6RW.js +39 -0
  152. package/dist/bundle/instructions-VLM3QAYB.js +11 -0
  153. package/dist/bundle/mcp-7ILNMJH5.js +167 -0
  154. package/dist/bundle/meeting-combined-LAMF7S2B.js +24 -0
  155. package/dist/bundle/meeting-model-GHMMUQ34.js +24 -0
  156. package/dist/bundle/meeting-semantic-BMP6323L.js +21 -0
  157. package/dist/bundle/node-CT3N3TNL.js +176 -0
  158. package/dist/bundle/node-P4E63KXA.js +2340 -0
  159. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  160. package/dist/bundle/node-sqlite-MELD2SBX.js +73 -0
  161. package/dist/bundle/oauth-YBH5OKC2.js +19 -0
  162. package/dist/bundle/open-WNSBWTAG.js +22 -0
  163. package/dist/bundle/openai-XSNMNLW6.js +237 -0
  164. package/dist/bundle/process-I2QKOMM7.js +91 -0
  165. package/dist/bundle/program-DV73CIGP.js +4940 -0
  166. package/dist/bundle/prompt-SOG4AKPM.js +16 -0
  167. package/dist/bundle/recognize-WMQLWMXH.js +25 -0
  168. package/dist/bundle/remote-4BTFOLFY.js +30 -0
  169. package/dist/bundle/rerank-LJ3TWRNV.js +51 -0
  170. package/dist/bundle/serve-B6UANKXN.js +198 -0
  171. package/dist/bundle/server-S6XD6V6E.js +77 -0
  172. package/dist/bundle/server-YRH6GJ5Z.js +206 -0
  173. package/dist/bundle/source-DGFTA2TN.js +42 -0
  174. package/dist/bundle/sqlite-runtime-R7QFWFE7.js +19 -0
  175. package/dist/bundle/state-DIJ5YUOE.js +35 -0
  176. package/dist/bundle/store-6WFWW7EC.js +294 -0
  177. package/dist/bundle/store-FJCNZULV.js +32 -0
  178. package/dist/bundle/store-MYTYDV6A.js +177 -0
  179. package/dist/bundle/store-maintenance-command-B5TMKFMG.js +68 -0
  180. package/dist/bundle/writer-GP7VIMAU.js +44 -0
  181. package/dist/commands/account.d.ts +3 -0
  182. package/dist/commands/account.d.ts.map +1 -0
  183. package/dist/commands/account.js +86 -0
  184. package/dist/commands/account.js.map +1 -0
  185. package/dist/commands/api.d.ts +3 -0
  186. package/dist/commands/api.d.ts.map +1 -0
  187. package/dist/commands/api.js +224 -0
  188. package/dist/commands/api.js.map +1 -0
  189. package/dist/commands/crm-shared.d.ts +8 -0
  190. package/dist/commands/crm-shared.d.ts.map +1 -0
  191. package/dist/commands/crm-shared.js +111 -0
  192. package/dist/commands/crm-shared.js.map +1 -0
  193. package/dist/commands/schedule.d.ts +3 -0
  194. package/dist/commands/schedule.d.ts.map +1 -0
  195. package/dist/commands/schedule.js +9 -0
  196. package/dist/commands/schedule.js.map +1 -0
  197. package/dist/commands/session.d.ts +18 -0
  198. package/dist/commands/session.d.ts.map +1 -0
  199. package/dist/commands/session.js +265 -0
  200. package/dist/commands/session.js.map +1 -0
  201. package/dist/commands/write.d.ts +14 -0
  202. package/dist/commands/write.d.ts.map +1 -0
  203. package/dist/commands/write.js +36 -0
  204. package/dist/commands/write.js.map +1 -0
  205. package/dist/config.d.ts +4 -0
  206. package/dist/config.d.ts.map +1 -0
  207. package/dist/config.js +29 -0
  208. package/dist/config.js.map +1 -0
  209. package/dist/context.d.ts +62 -0
  210. package/dist/context.d.ts.map +1 -0
  211. package/dist/context.js +97 -0
  212. package/dist/context.js.map +1 -0
  213. package/dist/crm/activities.d.ts +32 -0
  214. package/dist/crm/activities.d.ts.map +1 -0
  215. package/dist/crm/activities.js +196 -0
  216. package/dist/crm/activities.js.map +1 -0
  217. package/dist/crm/records.d.ts +20 -0
  218. package/dist/crm/records.d.ts.map +1 -0
  219. package/dist/crm/records.js +175 -0
  220. package/dist/crm/records.js.map +1 -0
  221. package/dist/crm/source.d.ts +41 -0
  222. package/dist/crm/source.d.ts.map +1 -0
  223. package/dist/crm/source.js +673 -0
  224. package/dist/crm/source.js.map +1 -0
  225. package/dist/crm/writer.d.ts +14 -0
  226. package/dist/crm/writer.d.ts.map +1 -0
  227. package/dist/crm/writer.js +247 -0
  228. package/dist/crm/writer.js.map +1 -0
  229. package/dist/identity.d.ts +7 -0
  230. package/dist/identity.d.ts.map +1 -0
  231. package/dist/identity.js +33 -0
  232. package/dist/identity.js.map +1 -0
  233. package/dist/index.d.ts +3 -0
  234. package/dist/index.d.ts.map +1 -0
  235. package/dist/index.js +3 -0
  236. package/dist/index.js.map +1 -0
  237. package/dist/program.d.ts +6 -0
  238. package/dist/program.d.ts.map +1 -0
  239. package/dist/program.js +91 -0
  240. package/dist/program.js.map +1 -0
  241. package/dist/reasons.d.ts +10 -0
  242. package/dist/reasons.d.ts.map +1 -0
  243. package/dist/reasons.js +35 -0
  244. package/dist/reasons.js.map +1 -0
  245. package/dist/setup/flow.d.ts +2 -0
  246. package/dist/setup/flow.d.ts.map +1 -0
  247. package/dist/setup/flow.js +127 -0
  248. package/dist/setup/flow.js.map +1 -0
  249. package/dist/setup/texts.en.json +25 -0
  250. package/dist/setup/texts.es.json +25 -0
  251. package/dist/setup/texts.ru.json +25 -0
  252. package/dist/store.d.ts +15 -0
  253. package/dist/store.d.ts.map +1 -0
  254. package/dist/store.js +16 -0
  255. package/dist/store.js.map +1 -0
  256. package/dist/version.d.ts +2 -0
  257. package/dist/version.d.ts.map +1 -0
  258. package/dist/version.js +2 -0
  259. package/dist/version.js.map +1 -0
  260. package/dist/wcat.d.ts +3 -0
  261. package/dist/wcat.d.ts.map +1 -0
  262. package/dist/wcat.js +4 -0
  263. package/dist/wcat.js.map +1 -0
  264. package/dist/whoami.d.ts +24 -0
  265. package/dist/whoami.d.ts.map +1 -0
  266. package/dist/whoami.js +33 -0
  267. package/dist/whoami.js.map +1 -0
  268. package/package.json +85 -4
  269. package/skills/amo-cli/SKILL.md +116 -0
  270. package/skills/amo-cli/references/mcp.md +38 -0
  271. package/skills/amo-cli/references/output.md +42 -0
  272. package/skills/amo-cli/references/reading.md +77 -0
  273. package/skills/amo-cli/references/setup.md +59 -0
  274. package/skills/amo-cli/references/writing.md +86 -0
@@ -0,0 +1,1407 @@
1
+ // GENERATED. DO NOT EDIT.
2
+ // Source: contracts/kommo-openapi.json
3
+ // Run: pnpm kommo:operations
4
+ export const SPEC_OPERATIONS = [
5
+ {
6
+ name: "DELETE /api/v4/{entity_type}/custom_fields/groups/{id}",
7
+ effect: "destructive",
8
+ summary: "",
9
+ source: "https://developers.kommo.com/reference/delete-a-field-group",
10
+ path: { entity_type: { type: "string" }, id: { type: "string" } },
11
+ query: [],
12
+ body: false,
13
+ },
14
+ {
15
+ name: "DELETE /api/v4/{entity}/{entity_id}/files",
16
+ effect: "destructive",
17
+ summary: "Detach files from an entity",
18
+ source: "https://developers.kommo.com/reference/detach-files",
19
+ path: { entity: { type: "string" }, entity_id: { type: "integer" } },
20
+ query: [],
21
+ body: true,
22
+ },
23
+ {
24
+ name: "DELETE /api/v4/{entity}/custom_fields/{id}",
25
+ effect: "destructive",
26
+ summary: "Deleting a custom field",
27
+ source: "https://developers.kommo.com/reference/delete-custom-field",
28
+ path: { entity: { type: "string" }, id: { type: "integer" } },
29
+ query: [],
30
+ body: false,
31
+ },
32
+ {
33
+ name: "DELETE /api/v4/chats/templates",
34
+ effect: "destructive",
35
+ summary: "Delete templates",
36
+ source: "https://developers.kommo.com/reference/delete-templates",
37
+ path: {},
38
+ query: [],
39
+ body: true,
40
+ },
41
+ {
42
+ name: "DELETE /api/v4/chats/templates/{id}",
43
+ effect: "destructive",
44
+ summary: "Delete a template",
45
+ source: "https://developers.kommo.com/reference/delete-template",
46
+ path: { id: { type: "integer" } },
47
+ query: [],
48
+ body: false,
49
+ },
50
+ {
51
+ name: "DELETE /api/v4/leads/pipelines/{id}",
52
+ effect: "destructive",
53
+ summary: "Delete pipeline",
54
+ source: "https://developers.kommo.com/reference/delete-pipeline",
55
+ path: { id: { type: "integer" } },
56
+ query: [],
57
+ body: false,
58
+ },
59
+ {
60
+ name: "DELETE /api/v4/leads/pipelines/{pipeline_id}/statuses/{id}",
61
+ effect: "destructive",
62
+ summary: "Delete pipeline stage",
63
+ source: "https://developers.kommo.com/reference/deleting-stage",
64
+ path: { pipeline_id: { type: "integer" }, id: { type: "integer" } },
65
+ query: [],
66
+ body: false,
67
+ },
68
+ {
69
+ name: "DELETE /api/v4/leads/unsorted/{uid}/decline",
70
+ effect: "destructive",
71
+ summary: "Declining incoming leads",
72
+ source: "https://developers.kommo.com/reference/declining-incoming-leads",
73
+ path: { uid: { type: "string" } },
74
+ query: [],
75
+ body: true,
76
+ },
77
+ {
78
+ name: "DELETE /api/v4/roles/{id}",
79
+ effect: "destructive",
80
+ summary: "Delete role",
81
+ source: "https://developers.kommo.com/reference/deleting-role",
82
+ path: { id: { type: "integer" } },
83
+ query: [],
84
+ body: false,
85
+ },
86
+ {
87
+ name: "DELETE /api/v4/sources",
88
+ effect: "destructive",
89
+ summary: "Delete sources",
90
+ source: "https://developers.kommo.com/reference/delete-sources",
91
+ path: {},
92
+ query: [],
93
+ body: true,
94
+ },
95
+ {
96
+ name: "DELETE /api/v4/sources/{id}",
97
+ effect: "destructive",
98
+ summary: "Delete source",
99
+ source: "https://developers.kommo.com/reference/delete-source",
100
+ path: { id: { type: "integer" } },
101
+ query: [],
102
+ body: false,
103
+ },
104
+ {
105
+ name: "DELETE /api/v4/webhooks",
106
+ effect: "destructive",
107
+ summary: "Delete webhook",
108
+ source: "https://developers.kommo.com/reference/delete-webhook",
109
+ path: {},
110
+ query: [],
111
+ body: true,
112
+ },
113
+ {
114
+ name: "DELETE /api/v4/widgets/{widget_code}",
115
+ effect: "destructive",
116
+ summary: "Uninstalling widget",
117
+ source: "https://developers.kommo.com/reference/uninstall-widget",
118
+ path: { widget_code: { type: "string" } },
119
+ query: [],
120
+ body: false,
121
+ },
122
+ {
123
+ name: "GET /api/v4/{entity_type}/{entity_id}/notes",
124
+ effect: "read",
125
+ summary: "Get notes list of entity",
126
+ source: "https://developers.kommo.com/reference/notes-by-entity-id",
127
+ path: { entity_type: { type: "string" }, entity_id: { type: "integer" } },
128
+ query: [
129
+ "page",
130
+ "limit",
131
+ "filter[id][]",
132
+ "filter[note_type][]",
133
+ "filter[updated_at][from]",
134
+ "filter[updated_at][to]",
135
+ "order[updated_at]",
136
+ "order[id]",
137
+ "with",
138
+ ],
139
+ body: false,
140
+ },
141
+ {
142
+ name: "GET /api/v4/{entity_type}/custom_fields",
143
+ effect: "read",
144
+ summary: "Custom fields list",
145
+ source: "https://developers.kommo.com/reference/custom-field-by-entity",
146
+ path: { entity_type: { type: "string", enum: ["leads", "companies", "contacts"] } },
147
+ query: ["page", "limit", "order[sort]", "order[id]", "filter[type][0]"],
148
+ body: false,
149
+ },
150
+ {
151
+ name: "GET /api/v4/{entity_type}/custom_fields/{id}",
152
+ effect: "read",
153
+ summary: "Get entity field by ID",
154
+ source: "https://developers.kommo.com/reference/custom-fields-by-id",
155
+ path: { entity_type: { type: "string", enum: ["leads", "companies", "contacts"] }, id: { type: "integer" } },
156
+ query: [],
157
+ body: false,
158
+ },
159
+ {
160
+ name: "GET /api/v4/{entity_type}/custom_fields/groups",
161
+ effect: "read",
162
+ summary: "",
163
+ source: "https://developers.kommo.com/reference/list-of-entity-field-groups",
164
+ path: { entity_type: { type: "string" } },
165
+ query: [],
166
+ body: false,
167
+ },
168
+ {
169
+ name: "GET /api/v4/{entity_type}/custom_fields/groups/{id}",
170
+ effect: "read",
171
+ summary: "",
172
+ source: "https://developers.kommo.com/reference/get-a-fields-group-by-id",
173
+ path: { entity_type: { type: "string" }, id: { type: "string" } },
174
+ query: [],
175
+ body: false,
176
+ },
177
+ {
178
+ name: "GET /api/v4/{entity_type}/notes",
179
+ effect: "read",
180
+ summary: "Get notes list by entity type",
181
+ source: "https://developers.kommo.com/reference/notes-list-entity",
182
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] } },
183
+ query: [
184
+ "page",
185
+ "limit",
186
+ "filter[id][]",
187
+ "filter[note_type][]",
188
+ "filter[updated_at][from]",
189
+ "filter[updated_at][to]",
190
+ "order[updated_at]",
191
+ "order[id]",
192
+ "with",
193
+ ],
194
+ body: false,
195
+ },
196
+ {
197
+ name: "GET /api/v4/{entity_type}/notes/{id}",
198
+ effect: "read",
199
+ summary: "Get note by ID",
200
+ source: "https://developers.kommo.com/reference/note-by-id",
201
+ path: { entity_type: { type: "string" }, id: { type: "integer" } },
202
+ query: [],
203
+ body: false,
204
+ },
205
+ {
206
+ name: "GET /api/v4/{entity_type}/tags",
207
+ effect: "read",
208
+ summary: "List of entity tags",
209
+ source: "https://developers.kommo.com/reference/list-of-entity-tags",
210
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] } },
211
+ query: ["page", "limit", "query", "filter[id][]", "filter[name]"],
212
+ body: false,
213
+ },
214
+ {
215
+ name: "GET /api/v4/{entity}/{entity_id}/files",
216
+ effect: "read",
217
+ summary: "Get files attached to an entity",
218
+ source: "https://developers.kommo.com/reference/get-files-entity",
219
+ path: { entity: { type: "string" }, entity_id: { type: "integer" } },
220
+ query: ["limit", "before_id"],
221
+ body: false,
222
+ },
223
+ {
224
+ name: "GET /api/v4/{entity}/{entity_id}/links",
225
+ effect: "read",
226
+ summary: "Linked entities list",
227
+ source: "https://developers.kommo.com/reference/linked-entities",
228
+ path: { entity: { type: "string", enum: ["leads", "contacts", "companies"] }, entity_id: { type: "integer" } },
229
+ query: ["filter[to_entity_id]", "filter[to_entity_type]", "filter[to_catalog_id]"],
230
+ body: false,
231
+ },
232
+ {
233
+ name: "GET /api/v4/account",
234
+ effect: "read",
235
+ summary: "Account parameters",
236
+ source: "https://developers.kommo.com/reference/account-parameters",
237
+ path: {},
238
+ query: ["with"],
239
+ body: false,
240
+ },
241
+ {
242
+ name: "GET /api/v4/bots",
243
+ effect: "read",
244
+ summary: "Salesbots list",
245
+ source: "https://developers.kommo.com/reference/salesbots-list",
246
+ path: {},
247
+ query: ["page", "limit", "filter[type_functionality][]", "filter[id][]", "with"],
248
+ body: false,
249
+ },
250
+ {
251
+ name: "GET /api/v4/bots/{id}",
252
+ effect: "read",
253
+ summary: "Get a Salesbot by ID",
254
+ source: "https://developers.kommo.com/reference/get-salesbot-by-id",
255
+ path: { id: { type: "integer" } },
256
+ query: ["with"],
257
+ body: false,
258
+ },
259
+ {
260
+ name: "GET /api/v4/catalogs",
261
+ effect: "read",
262
+ summary: "Get lists",
263
+ source: "https://developers.kommo.com/reference/get-lists",
264
+ path: {},
265
+ query: ["page", "limit"],
266
+ body: false,
267
+ },
268
+ {
269
+ name: "GET /api/v4/catalogs/{id}",
270
+ effect: "read",
271
+ summary: "Get list",
272
+ source: "https://developers.kommo.com/reference/get-list",
273
+ path: { id: { type: "integer" } },
274
+ query: [],
275
+ body: false,
276
+ },
277
+ {
278
+ name: "GET /api/v4/catalogs/{list_id}/custom_fields",
279
+ effect: "read",
280
+ summary: "Custom fields list of a list",
281
+ source: "https://developers.kommo.com/reference/custom-fields-list-of-list",
282
+ path: { list_id: { type: "integer" } },
283
+ query: ["page", "limit", "order[sort]", "order[id]", "filter[type][0]"],
284
+ body: false,
285
+ },
286
+ {
287
+ name: "GET /api/v4/catalogs/{list_id}/custom_fields/{custom_field_id}",
288
+ effect: "read",
289
+ summary: "Getting a list field by its ID",
290
+ source: "https://developers.kommo.com/reference/get-list-custom-field",
291
+ path: { list_id: { type: "integer" }, custom_field_id: { type: "integer" } },
292
+ query: [],
293
+ body: false,
294
+ },
295
+ {
296
+ name: "GET /api/v4/catalogs/{list_id}/elements",
297
+ effect: "read",
298
+ summary: "Get list elements",
299
+ source: "https://developers.kommo.com/reference/get-list-elements",
300
+ path: { list_id: { type: "integer" } },
301
+ query: ["page", "limit", "query", "filter[id][]"],
302
+ body: false,
303
+ },
304
+ {
305
+ name: "GET /api/v4/catalogs/{list_id}/elements/{element_id}",
306
+ effect: "read",
307
+ summary: "Get list element",
308
+ source: "https://developers.kommo.com/reference/get-list-element",
309
+ path: { list_id: { type: "integer" }, element_id: { type: "integer" } },
310
+ query: [],
311
+ body: false,
312
+ },
313
+ {
314
+ name: "GET /api/v4/chats/templates",
315
+ effect: "read",
316
+ summary: "Get list of templates",
317
+ source: "https://developers.kommo.com/reference/get-templates",
318
+ path: {},
319
+ query: ["page", "limit", "filter[external_id]", "with"],
320
+ body: false,
321
+ },
322
+ {
323
+ name: "GET /api/v4/chats/templates/{id}",
324
+ effect: "read",
325
+ summary: "Get template by ID",
326
+ source: "https://developers.kommo.com/reference/get-template",
327
+ path: { id: { type: "integer" } },
328
+ query: ["with"],
329
+ body: false,
330
+ },
331
+ {
332
+ name: "GET /api/v4/companies",
333
+ effect: "read",
334
+ summary: "Companies list",
335
+ source: "https://developers.kommo.com/reference/companies-list",
336
+ path: {},
337
+ query: [
338
+ "with",
339
+ "page",
340
+ "limit",
341
+ "query",
342
+ "order[updated_at]",
343
+ "order[id]",
344
+ "filter[id][]",
345
+ "filter[name][]",
346
+ "filter[created_by][]",
347
+ "filter[updated_by][]",
348
+ "filter[responsible_user_id][]",
349
+ "filter[created_at][from]",
350
+ "filter[created_at][to]",
351
+ "filter[updated_at][from]",
352
+ "filter[updated_at][to]",
353
+ "filter[closest_task_at][from]",
354
+ "filter[closest_task_at][to]",
355
+ ],
356
+ body: false,
357
+ },
358
+ {
359
+ name: "GET /api/v4/companies/{id}",
360
+ effect: "read",
361
+ summary: "Get company by ID",
362
+ source: "https://developers.kommo.com/reference/get-company",
363
+ path: { id: { type: "integer" } },
364
+ query: ["with"],
365
+ body: false,
366
+ },
367
+ {
368
+ name: "GET /api/v4/contacts",
369
+ effect: "read",
370
+ summary: "Contacts List",
371
+ source: "https://developers.kommo.com/reference/contacts-list",
372
+ path: {},
373
+ query: [
374
+ "with",
375
+ "page",
376
+ "limit",
377
+ "query",
378
+ "order[updated_at]",
379
+ "order[id]",
380
+ "filter[id][]",
381
+ "filter[name][]",
382
+ "filter[created_by][]",
383
+ "filter[updated_by][]",
384
+ "filter[responsible_user_id][]",
385
+ "filter[updated_at][from]",
386
+ "filter[updated_at][to]",
387
+ "filter[closest_task_at][from]",
388
+ "filter[closest_task_at][to]",
389
+ ],
390
+ body: false,
391
+ },
392
+ {
393
+ name: "GET /api/v4/contacts/{id}",
394
+ effect: "read",
395
+ summary: "Get contact by ID",
396
+ source: "https://developers.kommo.com/reference/get-contact",
397
+ path: { id: { type: "integer" } },
398
+ query: ["with"],
399
+ body: false,
400
+ },
401
+ {
402
+ name: "GET /api/v4/contacts/chats",
403
+ effect: "read",
404
+ summary: "Get contact chats",
405
+ source: "https://developers.kommo.com/reference/get-contact-chats",
406
+ path: {},
407
+ query: ["contact_id", "chat_id"],
408
+ body: false,
409
+ },
410
+ {
411
+ name: "GET /api/v4/events",
412
+ effect: "read",
413
+ summary: "Events list",
414
+ source: "https://developers.kommo.com/reference/events-list",
415
+ path: {},
416
+ query: [
417
+ "with",
418
+ "page",
419
+ "limit",
420
+ "filter[id]",
421
+ "filter[created_at][from]",
422
+ "filter[created_at][to]",
423
+ "filter[created_by]",
424
+ "filter[entity]",
425
+ "filter[entity_id]",
426
+ "filter[type]",
427
+ ],
428
+ body: false,
429
+ },
430
+ {
431
+ name: "GET /api/v4/events/{id}",
432
+ effect: "read",
433
+ summary: "Get event by ID",
434
+ source: "https://developers.kommo.com/reference/get-event",
435
+ path: { id: { type: "string" } },
436
+ query: ["with"],
437
+ body: false,
438
+ },
439
+ {
440
+ name: "GET /api/v4/events/types",
441
+ effect: "read",
442
+ summary: "Getting events types",
443
+ source: "https://developers.kommo.com/reference/get-events-types",
444
+ path: {},
445
+ query: ["language_code"],
446
+ body: false,
447
+ },
448
+ {
449
+ name: "GET /api/v4/files/{file_uuid}/links",
450
+ effect: "read",
451
+ summary: "Get entities associated with a file",
452
+ source: "https://developers.kommo.com/reference/get-entities-with-file",
453
+ path: { file_uuid: { type: "string" } },
454
+ query: [],
455
+ body: false,
456
+ },
457
+ {
458
+ name: "GET /api/v4/leads",
459
+ effect: "read",
460
+ summary: "Get leads",
461
+ source: "https://developers.kommo.com/reference/leads-list",
462
+ path: {},
463
+ query: [
464
+ "with",
465
+ "page",
466
+ "limit",
467
+ "query",
468
+ "order[created_at]",
469
+ "order[updated_at]",
470
+ "order[id]",
471
+ "filter[id][]",
472
+ "filter[name][]",
473
+ "filter[price]",
474
+ "filter[created_by][]",
475
+ "filter[updated_by][]",
476
+ "filter[responsible_user_id][]",
477
+ "filter[created_at][from]",
478
+ "filter[created_at][to]",
479
+ "filter[updated_at][from]",
480
+ "filter[updated_at][to]",
481
+ "filter[closed_at][from]",
482
+ "filter[closed_at][to]",
483
+ "filter[closest_task_at][from]",
484
+ "filter[closest_task_at][to]",
485
+ "filter[pipeline_id][]",
486
+ "filter[statuses][0][pipeline_id]",
487
+ "filter[statuses][0][status_id]",
488
+ ],
489
+ body: false,
490
+ },
491
+ {
492
+ name: "GET /api/v4/leads/{id}",
493
+ effect: "read",
494
+ summary: "Get lead by ID",
495
+ source: "https://developers.kommo.com/reference/getting-a-lead-by-its-id",
496
+ path: { id: { type: "integer" } },
497
+ query: ["with"],
498
+ body: false,
499
+ },
500
+ {
501
+ name: "GET /api/v4/leads/{id}/subscriptions",
502
+ effect: "read",
503
+ summary: "Get lead subscribers",
504
+ source: "https://developers.kommo.com/reference/get-lead-subscribers",
505
+ path: { id: { type: "integer" } },
506
+ query: ["page", "limit"],
507
+ body: false,
508
+ },
509
+ {
510
+ name: "GET /api/v4/leads/loss_reasons",
511
+ effect: "read",
512
+ summary: "Get loss reasons",
513
+ source: "https://developers.kommo.com/reference/loss-reasons",
514
+ path: {},
515
+ query: [],
516
+ body: false,
517
+ },
518
+ {
519
+ name: "GET /api/v4/leads/loss_reasons/{id}",
520
+ effect: "read",
521
+ summary: "Get loss reason by ID",
522
+ source: "https://developers.kommo.com/reference/loss-reason-by-id",
523
+ path: { id: { type: "string" } },
524
+ query: [],
525
+ body: false,
526
+ },
527
+ {
528
+ name: "GET /api/v4/leads/pipelines",
529
+ effect: "read",
530
+ summary: "Get pipelines",
531
+ source: "https://developers.kommo.com/reference/pipelines-list",
532
+ path: {},
533
+ query: [],
534
+ body: false,
535
+ },
536
+ {
537
+ name: "GET /api/v4/leads/pipelines/{id}",
538
+ effect: "read",
539
+ summary: "Get pipeline by ID",
540
+ source: "https://developers.kommo.com/reference/get-pipeline-by-id",
541
+ path: { id: { type: "integer" } },
542
+ query: [],
543
+ body: false,
544
+ },
545
+ {
546
+ name: "GET /api/v4/leads/pipelines/{pipeline_id}/statuses",
547
+ effect: "read",
548
+ summary: "Pipeline stages list",
549
+ source: "https://developers.kommo.com/reference/stages-list",
550
+ path: { pipeline_id: { type: "integer" } },
551
+ query: ["with"],
552
+ body: false,
553
+ },
554
+ {
555
+ name: "GET /api/v4/leads/pipelines/{pipeline_id}/statuses/{id}",
556
+ effect: "read",
557
+ summary: "Get pipeline stage by ID",
558
+ source: "https://developers.kommo.com/reference/get-stage",
559
+ path: { pipeline_id: { type: "integer" }, id: { type: "integer" } },
560
+ query: ["with"],
561
+ body: false,
562
+ },
563
+ {
564
+ name: "GET /api/v4/leads/unsorted",
565
+ effect: "read",
566
+ summary: "Incoming leads list",
567
+ source: "https://developers.kommo.com/reference/incoming-leads-list",
568
+ path: {},
569
+ query: ["page", "limit", "filter[uid]", "filter[category]", "filter[pipeline_id]", "order[created_at]"],
570
+ body: false,
571
+ },
572
+ {
573
+ name: "GET /api/v4/leads/unsorted/{uid}",
574
+ effect: "read",
575
+ summary: "Get incoming lead by UID",
576
+ source: "https://developers.kommo.com/reference/incoming-lead-uid",
577
+ path: { uid: { type: "string" } },
578
+ query: [],
579
+ body: false,
580
+ },
581
+ {
582
+ name: "GET /api/v4/leads/unsorted/summary",
583
+ effect: "read",
584
+ summary: "Incoming leads summary information",
585
+ source: "https://developers.kommo.com/reference/incoming-leads-summary",
586
+ path: {},
587
+ query: [
588
+ "filter[uid]",
589
+ "filter[created_at]",
590
+ "filter[created_at][from]",
591
+ "filter[created_at][to]",
592
+ "filter[pipeline_id]",
593
+ ],
594
+ body: false,
595
+ },
596
+ {
597
+ name: "GET /api/v4/roles",
598
+ effect: "read",
599
+ summary: "User roles list",
600
+ source: "https://developers.kommo.com/reference/user-roles-list",
601
+ path: {},
602
+ query: ["with", "page", "limit"],
603
+ body: false,
604
+ },
605
+ {
606
+ name: "GET /api/v4/roles/{id}",
607
+ effect: "read",
608
+ summary: "Get role by ID",
609
+ source: "https://developers.kommo.com/reference/get-role-data-by-id",
610
+ path: { id: { type: "integer" } },
611
+ query: ["with"],
612
+ body: false,
613
+ },
614
+ {
615
+ name: "GET /api/v4/sources",
616
+ effect: "read",
617
+ summary: "Get sources",
618
+ source: "https://developers.kommo.com/reference/get-sources",
619
+ path: {},
620
+ query: ["filter[external_id]"],
621
+ body: false,
622
+ },
623
+ {
624
+ name: "GET /api/v4/sources/{id}",
625
+ effect: "read",
626
+ summary: "Get source by ID",
627
+ source: "https://developers.kommo.com/reference/get-source",
628
+ path: { id: { type: "integer" } },
629
+ query: [],
630
+ body: false,
631
+ },
632
+ {
633
+ name: "GET /api/v4/talks",
634
+ effect: "read",
635
+ summary: "Get conversations",
636
+ source: "https://developers.kommo.com/reference/get-talks",
637
+ path: {},
638
+ query: [
639
+ "page",
640
+ "limit",
641
+ "filter[talk_id][]",
642
+ "filter[contact_id][]",
643
+ "filter[entity_id][]",
644
+ "filter[entity_type]",
645
+ "filter[only_in_work]",
646
+ ],
647
+ body: false,
648
+ },
649
+ {
650
+ name: "GET /api/v4/talks/{id}",
651
+ effect: "read",
652
+ summary: "Get conversation by ID",
653
+ source: "https://developers.kommo.com/reference/get-conversation",
654
+ path: { id: { type: "integer" } },
655
+ query: [],
656
+ body: false,
657
+ },
658
+ {
659
+ name: "GET /api/v4/talks/{talk_id}/messages",
660
+ effect: "read",
661
+ summary: "Get conversation messages",
662
+ source: "https://developers.kommo.com/reference/get-conversation-messages",
663
+ path: { talk_id: { type: "integer" } },
664
+ query: ["page", "limit", "filter[created_at][from]", "filter[created_at][to]"],
665
+ body: false,
666
+ },
667
+ {
668
+ name: "GET /api/v4/tasks",
669
+ effect: "read",
670
+ summary: "Tasks list",
671
+ source: "https://developers.kommo.com/reference/tasks-list",
672
+ path: {},
673
+ query: [
674
+ "page",
675
+ "limit",
676
+ "filter[responsible_user_id][]",
677
+ "filter[is_completed]",
678
+ "filter[task_type][]",
679
+ "filter[entity_type]",
680
+ "filter[entity_id][]",
681
+ "filter[id][]",
682
+ "filter[updated_at]",
683
+ "filter[updated_at][from]",
684
+ "filter[updated_at][to]",
685
+ "order[complete_till]",
686
+ "order[created_at]",
687
+ "order[id]",
688
+ ],
689
+ body: false,
690
+ },
691
+ {
692
+ name: "GET /api/v4/tasks/{id}",
693
+ effect: "read",
694
+ summary: "Get task by ID",
695
+ source: "https://developers.kommo.com/reference/task-id",
696
+ path: { id: { type: "integer" } },
697
+ query: [],
698
+ body: false,
699
+ },
700
+ {
701
+ name: "GET /api/v4/users",
702
+ effect: "read",
703
+ summary: "Users list",
704
+ source: "https://developers.kommo.com/reference/users-list",
705
+ path: {},
706
+ query: ["with", "page", "limit"],
707
+ body: false,
708
+ },
709
+ {
710
+ name: "GET /api/v4/users/{id}",
711
+ effect: "read",
712
+ summary: "Get user by ID",
713
+ source: "https://developers.kommo.com/reference/get-user-by-id",
714
+ path: { id: { type: "integer" } },
715
+ query: ["with"],
716
+ body: false,
717
+ },
718
+ {
719
+ name: "GET /api/v4/webhooks",
720
+ effect: "read",
721
+ summary: "List of webhooks",
722
+ source: "https://developers.kommo.com/reference/list-webhooks",
723
+ path: {},
724
+ query: ["filter[destination]"],
725
+ body: false,
726
+ },
727
+ {
728
+ name: "GET /api/v4/website_buttons",
729
+ effect: "read",
730
+ summary: "Get list of Website chat buttons",
731
+ source: "https://developers.kommo.com/reference/get-list-crm-plugin",
732
+ path: {},
733
+ query: ["with", "page", "limit"],
734
+ body: false,
735
+ },
736
+ {
737
+ name: "GET /api/v4/website_buttons/{source_id}",
738
+ effect: "read",
739
+ summary: "Get Website chat button",
740
+ source: "https://developers.kommo.com/reference/get-crm-plugin",
741
+ path: { source_id: { type: "integer" } },
742
+ query: ["with"],
743
+ body: false,
744
+ },
745
+ {
746
+ name: "GET /api/v4/widgets",
747
+ effect: "read",
748
+ summary: "Widgets List",
749
+ source: "https://developers.kommo.com/reference/widgets-list",
750
+ path: {},
751
+ query: ["page", "limit"],
752
+ body: false,
753
+ },
754
+ {
755
+ name: "GET /api/v4/widgets/{widget_code}",
756
+ effect: "read",
757
+ summary: "Getting the widget info by its code",
758
+ source: "https://developers.kommo.com/reference/widget-by-code",
759
+ path: { widget_code: { type: "string" } },
760
+ query: [],
761
+ body: false,
762
+ },
763
+ {
764
+ name: "PATCH /api/v4/{entity_type}",
765
+ effect: "write",
766
+ summary: "Adding tags to entities",
767
+ source: "https://developers.kommo.com/reference/update-tags",
768
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] } },
769
+ query: [],
770
+ body: true,
771
+ },
772
+ {
773
+ name: "PATCH /api/v4/{entity_type}/{id}",
774
+ effect: "write",
775
+ summary: "Adding tags to a single entity",
776
+ source: "https://developers.kommo.com/reference/update-tags-single-entity",
777
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] }, id: { type: "integer" } },
778
+ query: [],
779
+ body: true,
780
+ },
781
+ {
782
+ name: "PATCH /api/v4/{entity_type}/custom_fields",
783
+ effect: "write",
784
+ summary: "Update custom fields",
785
+ source: "https://developers.kommo.com/reference/update-custom-fields",
786
+ path: { entity_type: { type: "string" } },
787
+ query: [],
788
+ body: true,
789
+ },
790
+ {
791
+ name: "PATCH /api/v4/{entity_type}/custom_fields/{id}",
792
+ effect: "write",
793
+ summary: "Update custom field",
794
+ source: "https://developers.kommo.com/reference/update-custom-field",
795
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] }, id: { type: "integer" } },
796
+ query: [],
797
+ body: true,
798
+ },
799
+ {
800
+ name: "PATCH /api/v4/{entity_type}/custom_fields/groups/{id}",
801
+ effect: "write",
802
+ summary: "",
803
+ source: "https://developers.kommo.com/reference/edit-field-groups",
804
+ path: { entity_type: { type: "string" }, id: { type: "string" } },
805
+ query: [],
806
+ body: true,
807
+ },
808
+ {
809
+ name: "PATCH /api/v4/{entity_type}/notes",
810
+ effect: "write",
811
+ summary: "Edit notes",
812
+ source: "https://developers.kommo.com/reference/edit-notes",
813
+ path: { entity_type: { type: "string" } },
814
+ query: [],
815
+ body: true,
816
+ },
817
+ {
818
+ name: "PATCH /api/v4/{entity_type}/notes/{id}",
819
+ effect: "write",
820
+ summary: "Edit note",
821
+ source: "https://developers.kommo.com/reference/edit-note",
822
+ path: { entity_type: { type: "string" }, id: { type: "integer" } },
823
+ query: [],
824
+ body: true,
825
+ },
826
+ {
827
+ name: "PATCH /api/v4/catalogs",
828
+ effect: "write",
829
+ summary: "Editing lists",
830
+ source: "https://developers.kommo.com/reference/editing-lists",
831
+ path: {},
832
+ query: [],
833
+ body: true,
834
+ },
835
+ {
836
+ name: "PATCH /api/v4/catalogs/{id}",
837
+ effect: "write",
838
+ summary: "Edit list",
839
+ source: "https://developers.kommo.com/reference/editing-list",
840
+ path: { id: { type: "integer" } },
841
+ query: [],
842
+ body: true,
843
+ },
844
+ {
845
+ name: "PATCH /api/v4/catalogs/{id}/custom_fields",
846
+ effect: "write",
847
+ summary: "Update custom fields of a catalog",
848
+ source: "https://developers.kommo.com/reference/update-custom-fields-list",
849
+ path: { id: { type: "integer" } },
850
+ query: [],
851
+ body: true,
852
+ },
853
+ {
854
+ name: "PATCH /api/v4/catalogs/{list_id}/custom_fields/{cf_id}",
855
+ effect: "write",
856
+ summary: "Update a custom field of a catalog",
857
+ source: "https://developers.kommo.com/reference/updating-custom-field-list",
858
+ path: { list_id: { type: "integer" }, cf_id: { type: "integer" } },
859
+ query: [],
860
+ body: true,
861
+ },
862
+ {
863
+ name: "PATCH /api/v4/catalogs/{list_id}/elements",
864
+ effect: "write",
865
+ summary: "Editing list elements",
866
+ source: "https://developers.kommo.com/reference/edit-list-elements",
867
+ path: { list_id: { type: "integer" } },
868
+ query: [],
869
+ body: true,
870
+ },
871
+ {
872
+ name: "PATCH /api/v4/catalogs/{list_id}/elements/{element_id}",
873
+ effect: "write",
874
+ summary: "Edit list element",
875
+ source: "https://developers.kommo.com/reference/edit-list-element",
876
+ path: { list_id: { type: "integer" }, element_id: { type: "integer" } },
877
+ query: [],
878
+ body: true,
879
+ },
880
+ {
881
+ name: "PATCH /api/v4/chats/templates",
882
+ effect: "write",
883
+ summary: "Edit templates",
884
+ source: "https://developers.kommo.com/reference/edit-templates",
885
+ path: {},
886
+ query: [],
887
+ body: true,
888
+ },
889
+ {
890
+ name: "PATCH /api/v4/companies",
891
+ effect: "write",
892
+ summary: "Updating companies",
893
+ source: "https://developers.kommo.com/reference/update-companies",
894
+ path: {},
895
+ query: [],
896
+ body: true,
897
+ },
898
+ {
899
+ name: "PATCH /api/v4/companies/{id}",
900
+ effect: "write",
901
+ summary: "Update company",
902
+ source: "https://developers.kommo.com/reference/updating-company",
903
+ path: { id: { type: "integer" } },
904
+ query: [],
905
+ body: true,
906
+ },
907
+ {
908
+ name: "PATCH /api/v4/contacts",
909
+ effect: "write",
910
+ summary: "Updating Contacts",
911
+ source: "https://developers.kommo.com/reference/update-contacts",
912
+ path: {},
913
+ query: [],
914
+ body: true,
915
+ },
916
+ {
917
+ name: "PATCH /api/v4/contacts/{id}",
918
+ effect: "write",
919
+ summary: "Update contact",
920
+ source: "https://developers.kommo.com/reference/update-contact",
921
+ path: { id: { type: "integer" } },
922
+ query: [],
923
+ body: true,
924
+ },
925
+ {
926
+ name: "PATCH /api/v4/leads",
927
+ effect: "write",
928
+ summary: "Update leads",
929
+ source: "https://developers.kommo.com/reference/updating-leads",
930
+ path: {},
931
+ query: [],
932
+ body: true,
933
+ },
934
+ {
935
+ name: "PATCH /api/v4/leads/{id}",
936
+ effect: "write",
937
+ summary: "Update lead",
938
+ source: "https://developers.kommo.com/reference/updating-single-lead",
939
+ path: { id: { type: "integer" } },
940
+ query: [],
941
+ body: true,
942
+ },
943
+ {
944
+ name: "PATCH /api/v4/leads/pipelines/{id}",
945
+ effect: "write",
946
+ summary: "Edit pipeline",
947
+ source: "https://developers.kommo.com/reference/edit-pipeline",
948
+ path: { id: { type: "integer" } },
949
+ query: [],
950
+ body: true,
951
+ },
952
+ {
953
+ name: "PATCH /api/v4/leads/pipelines/{pipeline_id}/statuses/{id}",
954
+ effect: "write",
955
+ summary: "Pipeline stage edit",
956
+ source: "https://developers.kommo.com/reference/edit-stage",
957
+ path: { pipeline_id: { type: "integer" }, id: { type: "integer" } },
958
+ query: [],
959
+ body: true,
960
+ },
961
+ {
962
+ name: "PATCH /api/v4/roles/{id}",
963
+ effect: "write",
964
+ summary: "Editing roles",
965
+ source: "https://developers.kommo.com/reference/edit-roles",
966
+ path: { id: { type: "string" } },
967
+ query: [],
968
+ body: true,
969
+ },
970
+ {
971
+ name: "PATCH /api/v4/sources",
972
+ effect: "write",
973
+ summary: "Update sources",
974
+ source: "https://developers.kommo.com/reference/update-sources",
975
+ path: {},
976
+ query: [],
977
+ body: true,
978
+ },
979
+ {
980
+ name: "PATCH /api/v4/sources/{id}",
981
+ effect: "write",
982
+ summary: "Update source",
983
+ source: "https://developers.kommo.com/reference/update-source",
984
+ path: { id: { type: "integer" } },
985
+ query: [],
986
+ body: true,
987
+ },
988
+ {
989
+ name: "PATCH /api/v4/tasks",
990
+ effect: "write",
991
+ summary: "Edit tasks",
992
+ source: "https://developers.kommo.com/reference/edit-tasks",
993
+ path: {},
994
+ query: [],
995
+ body: true,
996
+ },
997
+ {
998
+ name: "PATCH /api/v4/tasks/{id}",
999
+ effect: "write",
1000
+ summary: "Edit task",
1001
+ source: "https://developers.kommo.com/reference/edit-task",
1002
+ path: { id: { type: "integer" } },
1003
+ query: [],
1004
+ body: true,
1005
+ },
1006
+ {
1007
+ name: "PATCH /api/v4/website_buttons/{source_id}",
1008
+ effect: "write",
1009
+ summary: "Update CRM Plugin",
1010
+ source: "https://developers.kommo.com/reference/update-crm-plugin",
1011
+ path: { source_id: { type: "integer" } },
1012
+ query: [],
1013
+ body: true,
1014
+ },
1015
+ {
1016
+ name: "POST /api/v4/{bot}/{bot_id}/continue/{continue_id}",
1017
+ effect: "write",
1018
+ summary: "SalesBot widget block execution confirmation",
1019
+ source: "https://developers.kommo.com/reference/salesbot-widget-block-execution-confirmation",
1020
+ path: {
1021
+ bot_id: { type: "integer" },
1022
+ continue_id: { type: "integer" },
1023
+ bot: { type: "string", enum: ["marketingbot", "salesbot"] },
1024
+ },
1025
+ query: [],
1026
+ body: true,
1027
+ },
1028
+ {
1029
+ name: "POST /api/v4/{entity_type}/custom_fields",
1030
+ effect: "write",
1031
+ summary: "Add custom fields",
1032
+ source: "https://developers.kommo.com/reference/add-custom-fields",
1033
+ path: { entity_type: { type: "string", enum: ["leads", "companies", "contacts"] } },
1034
+ query: [],
1035
+ body: true,
1036
+ },
1037
+ {
1038
+ name: "POST /api/v4/{entity_type}/custom_fields/groups",
1039
+ effect: "write",
1040
+ summary: "",
1041
+ source: "https://developers.kommo.com/reference/add-field-groups",
1042
+ path: { entity_type: { type: "string" } },
1043
+ query: [],
1044
+ body: true,
1045
+ },
1046
+ {
1047
+ name: "POST /api/v4/{entity_type}/notes",
1048
+ effect: "write",
1049
+ summary: "Add notes",
1050
+ source: "https://developers.kommo.com/reference/add-notes",
1051
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] } },
1052
+ query: [],
1053
+ body: true,
1054
+ },
1055
+ {
1056
+ name: "POST /api/v4/{entity_type}/notes/{id}/pin",
1057
+ effect: "write",
1058
+ summary: "Pin note",
1059
+ source: "https://developers.kommo.com/reference/pin-note",
1060
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] }, id: { type: "integer" } },
1061
+ query: [],
1062
+ body: false,
1063
+ },
1064
+ {
1065
+ name: "POST /api/v4/{entity_type}/notes/{id}/unpin",
1066
+ effect: "write",
1067
+ summary: "Unpin note",
1068
+ source: "https://developers.kommo.com/reference/unpin-note",
1069
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] }, id: { type: "integer" } },
1070
+ query: [],
1071
+ body: false,
1072
+ },
1073
+ {
1074
+ name: "POST /api/v4/{entity_type}/tags",
1075
+ effect: "write",
1076
+ summary: "Creating tags for a particular entity type",
1077
+ source: "https://developers.kommo.com/reference/add-tags",
1078
+ path: { entity_type: { type: "string", enum: ["leads", "contacts", "companies"] } },
1079
+ query: [],
1080
+ body: true,
1081
+ },
1082
+ {
1083
+ name: "POST /api/v4/{entity}/{entity_id}/link",
1084
+ effect: "write",
1085
+ summary: "Linking entities",
1086
+ source: "https://developers.kommo.com/reference/linking-entities",
1087
+ path: { entity: { type: "string", enum: ["leads", "contacts", "companies"] }, entity_id: { type: "integer" } },
1088
+ query: [],
1089
+ body: true,
1090
+ },
1091
+ {
1092
+ name: "POST /api/v4/{entity}/{entity_id}/unlink",
1093
+ effect: "write",
1094
+ summary: "Unlinking entities",
1095
+ source: "https://developers.kommo.com/reference/unlinking-entities",
1096
+ path: { entity: { type: "string", enum: ["leads", "contacts", "companies"] }, entity_id: { type: "integer" } },
1097
+ query: [],
1098
+ body: true,
1099
+ },
1100
+ {
1101
+ name: "POST /api/v4/bots/{id}/run",
1102
+ effect: "write",
1103
+ summary: "Launch Salesbot",
1104
+ source: "https://developers.kommo.com/reference/launch-a-salesbot",
1105
+ path: { id: { type: "integer" } },
1106
+ query: [],
1107
+ body: true,
1108
+ },
1109
+ {
1110
+ name: "POST /api/v4/bots/{id}/stop",
1111
+ effect: "write",
1112
+ summary: "Stop a Salesbot",
1113
+ source: "https://developers.kommo.com/reference/stop-salesbot",
1114
+ path: { id: { type: "integer" } },
1115
+ query: [],
1116
+ body: true,
1117
+ },
1118
+ {
1119
+ name: "POST /api/v4/bots/run",
1120
+ effect: "write",
1121
+ summary: "Launch Salesbots",
1122
+ source: "https://developers.kommo.com/reference/launch-salesbots",
1123
+ path: {},
1124
+ query: [],
1125
+ body: true,
1126
+ },
1127
+ {
1128
+ name: "POST /api/v4/calls",
1129
+ effect: "write",
1130
+ summary: "Add call note",
1131
+ source: "https://developers.kommo.com/reference/add-calls",
1132
+ path: {},
1133
+ query: [],
1134
+ body: true,
1135
+ },
1136
+ {
1137
+ name: "POST /api/v4/catalogs",
1138
+ effect: "write",
1139
+ summary: "Add lists",
1140
+ source: "https://developers.kommo.com/reference/add-lists",
1141
+ path: {},
1142
+ query: [],
1143
+ body: true,
1144
+ },
1145
+ {
1146
+ name: "POST /api/v4/catalogs/{list_id}/custom_fields",
1147
+ effect: "write",
1148
+ summary: "Adding a custom field to a list",
1149
+ source: "https://developers.kommo.com/reference/adding-custom-field",
1150
+ path: { list_id: { type: "integer" } },
1151
+ query: [],
1152
+ body: true,
1153
+ },
1154
+ {
1155
+ name: "POST /api/v4/catalogs/{list_id}/elements",
1156
+ effect: "write",
1157
+ summary: "Adding list elements",
1158
+ source: "https://developers.kommo.com/reference/add-list-elements",
1159
+ path: { list_id: { type: "integer" } },
1160
+ query: [],
1161
+ body: true,
1162
+ },
1163
+ {
1164
+ name: "POST /api/v4/chats/templates",
1165
+ effect: "write",
1166
+ summary: "Add templates",
1167
+ source: "https://developers.kommo.com/reference/add-templates",
1168
+ path: {},
1169
+ query: [],
1170
+ body: true,
1171
+ },
1172
+ {
1173
+ name: "POST /api/v4/chats/templates/{id}/review",
1174
+ effect: "write",
1175
+ summary: "Submit a WhatsApp template for moderation",
1176
+ source: "https://developers.kommo.com/reference/submit-a-whatsapp-template-for-moderation",
1177
+ path: { id: { type: "integer" } },
1178
+ query: [],
1179
+ body: false,
1180
+ },
1181
+ {
1182
+ name: "POST /api/v4/chats/templates/{id}/review/{review_id}",
1183
+ effect: "write",
1184
+ summary: "Edit a WhatsApp template status",
1185
+ source: "https://developers.kommo.com/reference/edit-template-status",
1186
+ path: { id: { type: "integer" }, review_id: { type: "integer" } },
1187
+ query: [],
1188
+ body: true,
1189
+ },
1190
+ {
1191
+ name: "POST /api/v4/companies",
1192
+ effect: "write",
1193
+ summary: "Add companies",
1194
+ source: "https://developers.kommo.com/reference/add-companies",
1195
+ path: {},
1196
+ query: [],
1197
+ body: true,
1198
+ },
1199
+ {
1200
+ name: "POST /api/v4/contacts",
1201
+ effect: "write",
1202
+ summary: "Adding contacts",
1203
+ source: "https://developers.kommo.com/reference/add-contacts",
1204
+ path: {},
1205
+ query: [],
1206
+ body: true,
1207
+ },
1208
+ {
1209
+ name: "POST /api/v4/contacts/chats",
1210
+ effect: "write",
1211
+ summary: "Step 4: Link chat to contact",
1212
+ source: "https://developers.kommo.com/reference/link-chat-contact",
1213
+ path: {},
1214
+ query: [],
1215
+ body: true,
1216
+ },
1217
+ {
1218
+ name: "POST /api/v4/leads",
1219
+ effect: "write",
1220
+ summary: "Add leads",
1221
+ source: "https://developers.kommo.com/reference/adding-leads",
1222
+ path: {},
1223
+ query: [],
1224
+ body: true,
1225
+ },
1226
+ {
1227
+ name: "POST /api/v4/leads/complex",
1228
+ effect: "write",
1229
+ summary: "Complex addition of leads with contact and company",
1230
+ source: "https://developers.kommo.com/reference/complex-leads",
1231
+ path: {},
1232
+ query: [],
1233
+ body: true,
1234
+ },
1235
+ {
1236
+ name: "POST /api/v4/leads/pipelines",
1237
+ effect: "write",
1238
+ summary: "Adding pipelines",
1239
+ source: "https://developers.kommo.com/reference/add-pipelines",
1240
+ path: {},
1241
+ query: [],
1242
+ body: true,
1243
+ },
1244
+ {
1245
+ name: "POST /api/v4/leads/pipelines/{pipeline_id}/statuses",
1246
+ effect: "write",
1247
+ summary: "Add stages to pipeline",
1248
+ source: "https://developers.kommo.com/reference/add-stages",
1249
+ path: { pipeline_id: { type: "integer" } },
1250
+ query: [],
1251
+ body: true,
1252
+ },
1253
+ {
1254
+ name: "POST /api/v4/leads/unsorted/{uid}/accept",
1255
+ effect: "write",
1256
+ summary: "Accepting incoming leads",
1257
+ source: "https://developers.kommo.com/reference/accepting-incoming-leads",
1258
+ path: { uid: { type: "string" } },
1259
+ query: [],
1260
+ body: true,
1261
+ },
1262
+ {
1263
+ name: "POST /api/v4/leads/unsorted/{uid}/link",
1264
+ effect: "write",
1265
+ summary: "Linking incoming leads",
1266
+ source: "https://developers.kommo.com/reference/linking-incoming-leads",
1267
+ path: { uid: { type: "string" } },
1268
+ query: [],
1269
+ body: true,
1270
+ },
1271
+ {
1272
+ name: "POST /api/v4/leads/unsorted/forms",
1273
+ effect: "write",
1274
+ summary: "Adding incoming leads from the type form",
1275
+ source: "https://developers.kommo.com/reference/incoming-leads-form",
1276
+ path: {},
1277
+ query: [],
1278
+ body: true,
1279
+ },
1280
+ {
1281
+ name: "POST /api/v4/leads/unsorted/sip",
1282
+ effect: "write",
1283
+ summary: "Adding incoming leads from the type sip (call)",
1284
+ source: "https://developers.kommo.com/reference/incoming-leads-call",
1285
+ path: {},
1286
+ query: [],
1287
+ body: true,
1288
+ },
1289
+ {
1290
+ name: "POST /api/v4/roles",
1291
+ effect: "write",
1292
+ summary: "Adding roles",
1293
+ source: "https://developers.kommo.com/reference/adding-roles",
1294
+ path: {},
1295
+ query: [],
1296
+ body: true,
1297
+ },
1298
+ {
1299
+ name: "POST /api/v4/sources",
1300
+ effect: "write",
1301
+ summary: "Add sources",
1302
+ source: "https://developers.kommo.com/reference/add-sources",
1303
+ path: {},
1304
+ query: [],
1305
+ body: true,
1306
+ },
1307
+ {
1308
+ name: "POST /api/v4/talks/{id}/close",
1309
+ effect: "write",
1310
+ summary: "Close conversation",
1311
+ source: "https://developers.kommo.com/reference/close-conversation",
1312
+ path: { id: { type: "integer" } },
1313
+ query: [],
1314
+ body: true,
1315
+ },
1316
+ {
1317
+ name: "POST /api/v4/talks/{talk_id}/send_message",
1318
+ effect: "write",
1319
+ summary: "Send message to conversation",
1320
+ source: "https://developers.kommo.com/reference/send-message-to-conversation",
1321
+ path: { talk_id: { type: "integer" } },
1322
+ query: [],
1323
+ body: true,
1324
+ },
1325
+ {
1326
+ name: "POST /api/v4/tasks",
1327
+ effect: "write",
1328
+ summary: "Add tasks",
1329
+ source: "https://developers.kommo.com/reference/add-tasks",
1330
+ path: {},
1331
+ query: [],
1332
+ body: true,
1333
+ },
1334
+ {
1335
+ name: "POST /api/v4/users",
1336
+ effect: "write",
1337
+ summary: "Add users",
1338
+ source: "https://developers.kommo.com/reference/add-users",
1339
+ path: {},
1340
+ query: [],
1341
+ body: true,
1342
+ },
1343
+ {
1344
+ name: "POST /api/v4/users/activate",
1345
+ effect: "write",
1346
+ summary: "Activate users",
1347
+ source: "https://developers.kommo.com/reference/activate-users",
1348
+ path: {},
1349
+ query: [],
1350
+ body: true,
1351
+ },
1352
+ {
1353
+ name: "POST /api/v4/users/deactivate",
1354
+ effect: "write",
1355
+ summary: "Deactivate users",
1356
+ source: "https://developers.kommo.com/reference/deactivate-users",
1357
+ path: {},
1358
+ query: [],
1359
+ body: true,
1360
+ },
1361
+ {
1362
+ name: "POST /api/v4/webhooks",
1363
+ effect: "write",
1364
+ summary: "Add webhook",
1365
+ source: "https://developers.kommo.com/reference/add-webhooks",
1366
+ path: {},
1367
+ query: [],
1368
+ body: true,
1369
+ },
1370
+ {
1371
+ name: "POST /api/v4/website_buttons",
1372
+ effect: "write",
1373
+ summary: "Add CRM Plugin",
1374
+ source: "https://developers.kommo.com/reference/add-crm-plugin",
1375
+ path: {},
1376
+ query: [],
1377
+ body: true,
1378
+ },
1379
+ {
1380
+ name: "POST /api/v4/website_buttons/{source_id}/online_chat",
1381
+ effect: "write",
1382
+ summary: "Connect online chat to CRM Plugin",
1383
+ source: "https://developers.kommo.com/reference/connect-online-chat-to-crm-plugin",
1384
+ path: { source_id: { type: "string" } },
1385
+ query: [],
1386
+ body: false,
1387
+ },
1388
+ {
1389
+ name: "POST /api/v4/widgets/{widget_code}",
1390
+ effect: "write",
1391
+ summary: "Install widget into account",
1392
+ source: "https://developers.kommo.com/reference/installing-the-widget-into-the-account",
1393
+ path: { widget_code: { type: "string" } },
1394
+ query: [],
1395
+ body: true,
1396
+ },
1397
+ {
1398
+ name: "PUT /api/v4/{entity}/{entity_id}/files",
1399
+ effect: "write",
1400
+ summary: "Attach files to an entity",
1401
+ source: "https://developers.kommo.com/reference/attached-to-entity",
1402
+ path: { entity: { type: "string", enum: ["leads", "contacts", "companies"] }, entity_id: { type: "integer" } },
1403
+ query: [],
1404
+ body: true,
1405
+ },
1406
+ ];
1407
+ //# sourceMappingURL=operations.js.map