@keystrokehq/retellai 0.1.0 → 0.1.3

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 (527) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-community-voice.cjs +1 -1
  4. package/dist/actions/add-community-voice.cjs.map +1 -1
  5. package/dist/actions/add-community-voice.d.cts +18 -3
  6. package/dist/actions/add-community-voice.d.cts.map +1 -1
  7. package/dist/actions/add-community-voice.d.mts +18 -3
  8. package/dist/actions/add-community-voice.d.mts.map +1 -1
  9. package/dist/actions/add-community-voice.mjs +1 -1
  10. package/dist/actions/add-community-voice.mjs.map +1 -1
  11. package/dist/actions/add-knowledge-base-sources.cjs +20 -20
  12. package/dist/actions/add-knowledge-base-sources.cjs.map +1 -1
  13. package/dist/actions/add-knowledge-base-sources.d.cts +51 -3
  14. package/dist/actions/add-knowledge-base-sources.d.cts.map +1 -1
  15. package/dist/actions/add-knowledge-base-sources.d.mts +51 -3
  16. package/dist/actions/add-knowledge-base-sources.d.mts.map +1 -1
  17. package/dist/actions/add-knowledge-base-sources.mjs +20 -20
  18. package/dist/actions/add-knowledge-base-sources.mjs.map +1 -1
  19. package/dist/actions/buy-a-new-phone-number-bind-agents.cjs +5 -5
  20. package/dist/actions/buy-a-new-phone-number-bind-agents.cjs.map +1 -1
  21. package/dist/actions/buy-a-new-phone-number-bind-agents.d.cts +32 -3
  22. package/dist/actions/buy-a-new-phone-number-bind-agents.d.cts.map +1 -1
  23. package/dist/actions/buy-a-new-phone-number-bind-agents.d.mts +32 -3
  24. package/dist/actions/buy-a-new-phone-number-bind-agents.d.mts.map +1 -1
  25. package/dist/actions/buy-a-new-phone-number-bind-agents.mjs +5 -5
  26. package/dist/actions/buy-a-new-phone-number-bind-agents.mjs.map +1 -1
  27. package/dist/actions/create-a-new-outbound-phone-call.cjs +52 -52
  28. package/dist/actions/create-a-new-outbound-phone-call.cjs.map +1 -1
  29. package/dist/actions/create-a-new-outbound-phone-call.d.cts +268 -3
  30. package/dist/actions/create-a-new-outbound-phone-call.d.cts.map +1 -1
  31. package/dist/actions/create-a-new-outbound-phone-call.d.mts +268 -3
  32. package/dist/actions/create-a-new-outbound-phone-call.d.mts.map +1 -1
  33. package/dist/actions/create-a-new-outbound-phone-call.mjs +52 -52
  34. package/dist/actions/create-a-new-outbound-phone-call.mjs.map +1 -1
  35. package/dist/actions/create-a-new-web-call.cjs +11 -11
  36. package/dist/actions/create-a-new-web-call.cjs.map +1 -1
  37. package/dist/actions/create-a-new-web-call.d.cts +57 -3
  38. package/dist/actions/create-a-new-web-call.d.cts.map +1 -1
  39. package/dist/actions/create-a-new-web-call.d.mts +57 -3
  40. package/dist/actions/create-a-new-web-call.d.mts.map +1 -1
  41. package/dist/actions/create-a-new-web-call.mjs +11 -11
  42. package/dist/actions/create-a-new-web-call.mjs.map +1 -1
  43. package/dist/actions/create-agent.cjs +18 -18
  44. package/dist/actions/create-agent.cjs.map +1 -1
  45. package/dist/actions/create-agent.d.cts +232 -3
  46. package/dist/actions/create-agent.d.cts.map +1 -1
  47. package/dist/actions/create-agent.d.mts +232 -3
  48. package/dist/actions/create-agent.d.mts.map +1 -1
  49. package/dist/actions/create-agent.mjs +18 -18
  50. package/dist/actions/create-agent.mjs.map +1 -1
  51. package/dist/actions/create-batch-test.cjs +13 -13
  52. package/dist/actions/create-batch-test.cjs.map +1 -1
  53. package/dist/actions/create-batch-test.d.cts +46 -3
  54. package/dist/actions/create-batch-test.d.cts.map +1 -1
  55. package/dist/actions/create-batch-test.d.mts +46 -3
  56. package/dist/actions/create-batch-test.d.mts.map +1 -1
  57. package/dist/actions/create-batch-test.mjs +13 -13
  58. package/dist/actions/create-batch-test.mjs.map +1 -1
  59. package/dist/actions/create-chat-agent.cjs +23 -23
  60. package/dist/actions/create-chat-agent.cjs.map +1 -1
  61. package/dist/actions/create-chat-agent.d.cts +144 -3
  62. package/dist/actions/create-chat-agent.d.cts.map +1 -1
  63. package/dist/actions/create-chat-agent.d.mts +144 -3
  64. package/dist/actions/create-chat-agent.d.mts.map +1 -1
  65. package/dist/actions/create-chat-agent.mjs +23 -23
  66. package/dist/actions/create-chat-agent.mjs.map +1 -1
  67. package/dist/actions/create-chat-completion.cjs +1 -1
  68. package/dist/actions/create-chat-completion.cjs.map +1 -1
  69. package/dist/actions/create-chat-completion.d.cts +11 -3
  70. package/dist/actions/create-chat-completion.d.cts.map +1 -1
  71. package/dist/actions/create-chat-completion.d.mts +11 -3
  72. package/dist/actions/create-chat-completion.d.mts.map +1 -1
  73. package/dist/actions/create-chat-completion.mjs +1 -1
  74. package/dist/actions/create-chat-completion.mjs.map +1 -1
  75. package/dist/actions/create-chat.cjs +10 -10
  76. package/dist/actions/create-chat.cjs.map +1 -1
  77. package/dist/actions/create-chat.d.cts +53 -3
  78. package/dist/actions/create-chat.d.cts.map +1 -1
  79. package/dist/actions/create-chat.d.mts +53 -3
  80. package/dist/actions/create-chat.d.mts.map +1 -1
  81. package/dist/actions/create-chat.mjs +10 -10
  82. package/dist/actions/create-chat.mjs.map +1 -1
  83. package/dist/actions/create-conversation-flow-component.cjs +13 -13
  84. package/dist/actions/create-conversation-flow-component.cjs.map +1 -1
  85. package/dist/actions/create-conversation-flow-component.d.cts +57 -3
  86. package/dist/actions/create-conversation-flow-component.d.cts.map +1 -1
  87. package/dist/actions/create-conversation-flow-component.d.mts +57 -3
  88. package/dist/actions/create-conversation-flow-component.d.mts.map +1 -1
  89. package/dist/actions/create-conversation-flow-component.mjs +13 -13
  90. package/dist/actions/create-conversation-flow-component.mjs.map +1 -1
  91. package/dist/actions/create-conversation-flow.cjs +4 -4
  92. package/dist/actions/create-conversation-flow.cjs.map +1 -1
  93. package/dist/actions/create-conversation-flow.d.cts +59 -3
  94. package/dist/actions/create-conversation-flow.d.cts.map +1 -1
  95. package/dist/actions/create-conversation-flow.d.mts +59 -3
  96. package/dist/actions/create-conversation-flow.d.mts.map +1 -1
  97. package/dist/actions/create-conversation-flow.mjs +4 -4
  98. package/dist/actions/create-conversation-flow.mjs.map +1 -1
  99. package/dist/actions/create-knowledge-base.cjs +5 -5
  100. package/dist/actions/create-knowledge-base.cjs.map +1 -1
  101. package/dist/actions/create-knowledge-base.d.cts +36 -3
  102. package/dist/actions/create-knowledge-base.d.cts.map +1 -1
  103. package/dist/actions/create-knowledge-base.d.mts +36 -3
  104. package/dist/actions/create-knowledge-base.d.mts.map +1 -1
  105. package/dist/actions/create-knowledge-base.mjs +5 -5
  106. package/dist/actions/create-knowledge-base.mjs.map +1 -1
  107. package/dist/actions/create-retell-llm.cjs +22 -22
  108. package/dist/actions/create-retell-llm.cjs.map +1 -1
  109. package/dist/actions/create-retell-llm.d.cts +173 -3
  110. package/dist/actions/create-retell-llm.d.cts.map +1 -1
  111. package/dist/actions/create-retell-llm.d.mts +173 -3
  112. package/dist/actions/create-retell-llm.d.mts.map +1 -1
  113. package/dist/actions/create-retell-llm.mjs +22 -22
  114. package/dist/actions/create-retell-llm.mjs.map +1 -1
  115. package/dist/actions/create-test-case-definition.cjs +13 -13
  116. package/dist/actions/create-test-case-definition.cjs.map +1 -1
  117. package/dist/actions/create-test-case-definition.d.cts +51 -3
  118. package/dist/actions/create-test-case-definition.d.cts.map +1 -1
  119. package/dist/actions/create-test-case-definition.d.mts +51 -3
  120. package/dist/actions/create-test-case-definition.d.mts.map +1 -1
  121. package/dist/actions/create-test-case-definition.mjs +13 -13
  122. package/dist/actions/create-test-case-definition.mjs.map +1 -1
  123. package/dist/actions/delete-agent.cjs +4 -4
  124. package/dist/actions/delete-agent.cjs.map +1 -1
  125. package/dist/actions/delete-agent.d.cts +12 -3
  126. package/dist/actions/delete-agent.d.cts.map +1 -1
  127. package/dist/actions/delete-agent.d.mts +12 -3
  128. package/dist/actions/delete-agent.d.mts.map +1 -1
  129. package/dist/actions/delete-agent.mjs +4 -4
  130. package/dist/actions/delete-agent.mjs.map +1 -1
  131. package/dist/actions/delete-call.cjs +1 -1
  132. package/dist/actions/delete-call.cjs.map +1 -1
  133. package/dist/actions/delete-call.d.cts +7 -3
  134. package/dist/actions/delete-call.d.cts.map +1 -1
  135. package/dist/actions/delete-call.d.mts +7 -3
  136. package/dist/actions/delete-call.d.mts.map +1 -1
  137. package/dist/actions/delete-call.mjs +1 -1
  138. package/dist/actions/delete-call.mjs.map +1 -1
  139. package/dist/actions/delete-chat-agent.cjs +1 -1
  140. package/dist/actions/delete-chat-agent.cjs.map +1 -1
  141. package/dist/actions/delete-chat-agent.d.cts +10 -3
  142. package/dist/actions/delete-chat-agent.d.cts.map +1 -1
  143. package/dist/actions/delete-chat-agent.d.mts +10 -3
  144. package/dist/actions/delete-chat-agent.d.mts.map +1 -1
  145. package/dist/actions/delete-chat-agent.mjs +1 -1
  146. package/dist/actions/delete-chat-agent.mjs.map +1 -1
  147. package/dist/actions/delete-conversation-flow-component.cjs +1 -1
  148. package/dist/actions/delete-conversation-flow-component.cjs.map +1 -1
  149. package/dist/actions/delete-conversation-flow-component.d.cts +7 -3
  150. package/dist/actions/delete-conversation-flow-component.d.cts.map +1 -1
  151. package/dist/actions/delete-conversation-flow-component.d.mts +7 -3
  152. package/dist/actions/delete-conversation-flow-component.d.mts.map +1 -1
  153. package/dist/actions/delete-conversation-flow-component.mjs +1 -1
  154. package/dist/actions/delete-conversation-flow-component.mjs.map +1 -1
  155. package/dist/actions/delete-conversation-flow.cjs +1 -1
  156. package/dist/actions/delete-conversation-flow.cjs.map +1 -1
  157. package/dist/actions/delete-conversation-flow.d.cts +7 -3
  158. package/dist/actions/delete-conversation-flow.d.cts.map +1 -1
  159. package/dist/actions/delete-conversation-flow.d.mts +7 -3
  160. package/dist/actions/delete-conversation-flow.d.mts.map +1 -1
  161. package/dist/actions/delete-conversation-flow.mjs +1 -1
  162. package/dist/actions/delete-conversation-flow.mjs.map +1 -1
  163. package/dist/actions/delete-knowledge-base-source.cjs +1 -1
  164. package/dist/actions/delete-knowledge-base-source.cjs.map +1 -1
  165. package/dist/actions/delete-knowledge-base-source.d.cts +9 -3
  166. package/dist/actions/delete-knowledge-base-source.d.cts.map +1 -1
  167. package/dist/actions/delete-knowledge-base-source.d.mts +9 -3
  168. package/dist/actions/delete-knowledge-base-source.d.mts.map +1 -1
  169. package/dist/actions/delete-knowledge-base-source.mjs +1 -1
  170. package/dist/actions/delete-knowledge-base-source.mjs.map +1 -1
  171. package/dist/actions/delete-knowledge-base.cjs +1 -1
  172. package/dist/actions/delete-knowledge-base.cjs.map +1 -1
  173. package/dist/actions/delete-knowledge-base.d.cts +7 -3
  174. package/dist/actions/delete-knowledge-base.d.cts.map +1 -1
  175. package/dist/actions/delete-knowledge-base.d.mts +7 -3
  176. package/dist/actions/delete-knowledge-base.d.mts.map +1 -1
  177. package/dist/actions/delete-knowledge-base.mjs +1 -1
  178. package/dist/actions/delete-knowledge-base.mjs.map +1 -1
  179. package/dist/actions/delete-phone-number.cjs +3 -3
  180. package/dist/actions/delete-phone-number.cjs.map +1 -1
  181. package/dist/actions/delete-phone-number.d.cts +10 -3
  182. package/dist/actions/delete-phone-number.d.cts.map +1 -1
  183. package/dist/actions/delete-phone-number.d.mts +10 -3
  184. package/dist/actions/delete-phone-number.d.mts.map +1 -1
  185. package/dist/actions/delete-phone-number.mjs +3 -3
  186. package/dist/actions/delete-phone-number.mjs.map +1 -1
  187. package/dist/actions/delete-retell-llm.cjs +1 -1
  188. package/dist/actions/delete-retell-llm.cjs.map +1 -1
  189. package/dist/actions/delete-retell-llm.d.cts +7 -3
  190. package/dist/actions/delete-retell-llm.d.cts.map +1 -1
  191. package/dist/actions/delete-retell-llm.d.mts +7 -3
  192. package/dist/actions/delete-retell-llm.d.mts.map +1 -1
  193. package/dist/actions/delete-retell-llm.mjs +1 -1
  194. package/dist/actions/delete-retell-llm.mjs.map +1 -1
  195. package/dist/actions/delete-test-case-definition.cjs +1 -1
  196. package/dist/actions/delete-test-case-definition.cjs.map +1 -1
  197. package/dist/actions/delete-test-case-definition.d.cts +7 -3
  198. package/dist/actions/delete-test-case-definition.d.cts.map +1 -1
  199. package/dist/actions/delete-test-case-definition.d.mts +7 -3
  200. package/dist/actions/delete-test-case-definition.d.mts.map +1 -1
  201. package/dist/actions/delete-test-case-definition.mjs +1 -1
  202. package/dist/actions/delete-test-case-definition.mjs.map +1 -1
  203. package/dist/actions/end-chat.cjs +1 -1
  204. package/dist/actions/end-chat.cjs.map +1 -1
  205. package/dist/actions/end-chat.d.cts +10 -3
  206. package/dist/actions/end-chat.d.cts.map +1 -1
  207. package/dist/actions/end-chat.d.mts +10 -3
  208. package/dist/actions/end-chat.d.mts.map +1 -1
  209. package/dist/actions/end-chat.mjs +1 -1
  210. package/dist/actions/end-chat.mjs.map +1 -1
  211. package/dist/actions/get-agent-versions.cjs.map +1 -1
  212. package/dist/actions/get-agent-versions.d.cts +7 -3
  213. package/dist/actions/get-agent-versions.d.cts.map +1 -1
  214. package/dist/actions/get-agent-versions.d.mts +7 -3
  215. package/dist/actions/get-agent-versions.d.mts.map +1 -1
  216. package/dist/actions/get-agent-versions.mjs.map +1 -1
  217. package/dist/actions/get-agent.cjs +48 -48
  218. package/dist/actions/get-agent.cjs.map +1 -1
  219. package/dist/actions/get-agent.d.cts +118 -3
  220. package/dist/actions/get-agent.d.cts.map +1 -1
  221. package/dist/actions/get-agent.d.mts +118 -3
  222. package/dist/actions/get-agent.d.mts.map +1 -1
  223. package/dist/actions/get-agent.mjs +48 -48
  224. package/dist/actions/get-agent.mjs.map +1 -1
  225. package/dist/actions/get-batch-test.cjs +18 -18
  226. package/dist/actions/get-batch-test.cjs.map +1 -1
  227. package/dist/actions/get-batch-test.d.cts +31 -3
  228. package/dist/actions/get-batch-test.d.cts.map +1 -1
  229. package/dist/actions/get-batch-test.d.mts +31 -3
  230. package/dist/actions/get-batch-test.d.mts.map +1 -1
  231. package/dist/actions/get-batch-test.mjs +18 -18
  232. package/dist/actions/get-batch-test.mjs.map +1 -1
  233. package/dist/actions/get-chat-agent-versions.cjs +2 -2
  234. package/dist/actions/get-chat-agent-versions.cjs.map +1 -1
  235. package/dist/actions/get-chat-agent-versions.d.cts +23 -3
  236. package/dist/actions/get-chat-agent-versions.d.cts.map +1 -1
  237. package/dist/actions/get-chat-agent-versions.d.mts +23 -3
  238. package/dist/actions/get-chat-agent-versions.d.mts.map +1 -1
  239. package/dist/actions/get-chat-agent-versions.mjs +2 -2
  240. package/dist/actions/get-chat-agent-versions.mjs.map +1 -1
  241. package/dist/actions/get-chat-agent.cjs +30 -30
  242. package/dist/actions/get-chat-agent.cjs.map +1 -1
  243. package/dist/actions/get-chat-agent.d.cts +79 -3
  244. package/dist/actions/get-chat-agent.d.cts.map +1 -1
  245. package/dist/actions/get-chat-agent.d.mts +79 -3
  246. package/dist/actions/get-chat-agent.d.mts.map +1 -1
  247. package/dist/actions/get-chat-agent.mjs +30 -30
  248. package/dist/actions/get-chat-agent.mjs.map +1 -1
  249. package/dist/actions/get-chat.cjs +10 -10
  250. package/dist/actions/get-chat.cjs.map +1 -1
  251. package/dist/actions/get-chat.d.cts +47 -3
  252. package/dist/actions/get-chat.d.cts.map +1 -1
  253. package/dist/actions/get-chat.d.mts +47 -3
  254. package/dist/actions/get-chat.d.mts.map +1 -1
  255. package/dist/actions/get-chat.mjs +10 -10
  256. package/dist/actions/get-chat.mjs.map +1 -1
  257. package/dist/actions/get-concurrency.cjs +1 -1
  258. package/dist/actions/get-concurrency.cjs.map +1 -1
  259. package/dist/actions/get-concurrency.d.cts +10 -3
  260. package/dist/actions/get-concurrency.d.cts.map +1 -1
  261. package/dist/actions/get-concurrency.d.mts +10 -3
  262. package/dist/actions/get-concurrency.d.mts.map +1 -1
  263. package/dist/actions/get-concurrency.mjs +1 -1
  264. package/dist/actions/get-concurrency.mjs.map +1 -1
  265. package/dist/actions/get-conversation-flow-component.cjs +18 -18
  266. package/dist/actions/get-conversation-flow-component.cjs.map +1 -1
  267. package/dist/actions/get-conversation-flow-component.d.cts +62 -3
  268. package/dist/actions/get-conversation-flow-component.d.cts.map +1 -1
  269. package/dist/actions/get-conversation-flow-component.d.mts +62 -3
  270. package/dist/actions/get-conversation-flow-component.d.mts.map +1 -1
  271. package/dist/actions/get-conversation-flow-component.mjs +18 -18
  272. package/dist/actions/get-conversation-flow-component.mjs.map +1 -1
  273. package/dist/actions/get-conversation-flow.cjs +20 -20
  274. package/dist/actions/get-conversation-flow.cjs.map +1 -1
  275. package/dist/actions/get-conversation-flow.d.cts +86 -3
  276. package/dist/actions/get-conversation-flow.d.cts.map +1 -1
  277. package/dist/actions/get-conversation-flow.d.mts +86 -3
  278. package/dist/actions/get-conversation-flow.d.mts.map +1 -1
  279. package/dist/actions/get-conversation-flow.mjs +20 -20
  280. package/dist/actions/get-conversation-flow.mjs.map +1 -1
  281. package/dist/actions/get-knowledge-base.cjs +19 -19
  282. package/dist/actions/get-knowledge-base.cjs.map +1 -1
  283. package/dist/actions/get-knowledge-base.d.cts +29 -3
  284. package/dist/actions/get-knowledge-base.d.cts.map +1 -1
  285. package/dist/actions/get-knowledge-base.d.mts +29 -3
  286. package/dist/actions/get-knowledge-base.d.mts.map +1 -1
  287. package/dist/actions/get-knowledge-base.mjs +19 -19
  288. package/dist/actions/get-knowledge-base.mjs.map +1 -1
  289. package/dist/actions/get-retell-llm.cjs +79 -79
  290. package/dist/actions/get-retell-llm.cjs.map +1 -1
  291. package/dist/actions/get-retell-llm.d.cts +316 -3
  292. package/dist/actions/get-retell-llm.d.cts.map +1 -1
  293. package/dist/actions/get-retell-llm.d.mts +316 -3
  294. package/dist/actions/get-retell-llm.d.mts.map +1 -1
  295. package/dist/actions/get-retell-llm.mjs +79 -79
  296. package/dist/actions/get-retell-llm.mjs.map +1 -1
  297. package/dist/actions/import-phone-number.cjs +2 -2
  298. package/dist/actions/import-phone-number.cjs.map +1 -1
  299. package/dist/actions/import-phone-number.d.cts +50 -3
  300. package/dist/actions/import-phone-number.d.cts.map +1 -1
  301. package/dist/actions/import-phone-number.d.mts +50 -3
  302. package/dist/actions/import-phone-number.d.mts.map +1 -1
  303. package/dist/actions/import-phone-number.mjs +2 -2
  304. package/dist/actions/import-phone-number.mjs.map +1 -1
  305. package/dist/actions/list-agents.cjs.map +1 -1
  306. package/dist/actions/list-agents.d.cts +3 -3
  307. package/dist/actions/list-agents.d.cts.map +1 -1
  308. package/dist/actions/list-agents.d.mts +3 -3
  309. package/dist/actions/list-agents.d.mts.map +1 -1
  310. package/dist/actions/list-agents.mjs.map +1 -1
  311. package/dist/actions/list-all-chats.cjs.map +1 -1
  312. package/dist/actions/list-all-chats.d.cts +14 -3
  313. package/dist/actions/list-all-chats.d.cts.map +1 -1
  314. package/dist/actions/list-all-chats.d.mts +14 -3
  315. package/dist/actions/list-all-chats.d.mts.map +1 -1
  316. package/dist/actions/list-all-chats.mjs.map +1 -1
  317. package/dist/actions/list-all-phone-numbers.cjs.map +1 -1
  318. package/dist/actions/list-all-phone-numbers.d.cts +3 -3
  319. package/dist/actions/list-all-phone-numbers.d.cts.map +1 -1
  320. package/dist/actions/list-all-phone-numbers.d.mts +3 -3
  321. package/dist/actions/list-all-phone-numbers.d.mts.map +1 -1
  322. package/dist/actions/list-all-phone-numbers.mjs.map +1 -1
  323. package/dist/actions/list-batch-tests.cjs +18 -18
  324. package/dist/actions/list-batch-tests.cjs.map +1 -1
  325. package/dist/actions/list-batch-tests.d.cts +42 -3
  326. package/dist/actions/list-batch-tests.d.cts.map +1 -1
  327. package/dist/actions/list-batch-tests.d.mts +42 -3
  328. package/dist/actions/list-batch-tests.d.mts.map +1 -1
  329. package/dist/actions/list-batch-tests.mjs +18 -18
  330. package/dist/actions/list-batch-tests.mjs.map +1 -1
  331. package/dist/actions/list-chat-agents.cjs.map +1 -1
  332. package/dist/actions/list-chat-agents.d.cts +11 -3
  333. package/dist/actions/list-chat-agents.d.cts.map +1 -1
  334. package/dist/actions/list-chat-agents.d.mts +11 -3
  335. package/dist/actions/list-chat-agents.d.mts.map +1 -1
  336. package/dist/actions/list-chat-agents.mjs.map +1 -1
  337. package/dist/actions/list-conversation-flow-components.cjs +2 -2
  338. package/dist/actions/list-conversation-flow-components.cjs.map +1 -1
  339. package/dist/actions/list-conversation-flow-components.d.cts +12 -3
  340. package/dist/actions/list-conversation-flow-components.d.cts.map +1 -1
  341. package/dist/actions/list-conversation-flow-components.d.mts +12 -3
  342. package/dist/actions/list-conversation-flow-components.d.mts.map +1 -1
  343. package/dist/actions/list-conversation-flow-components.mjs +2 -2
  344. package/dist/actions/list-conversation-flow-components.mjs.map +1 -1
  345. package/dist/actions/list-conversation-flows.cjs +2 -2
  346. package/dist/actions/list-conversation-flows.cjs.map +1 -1
  347. package/dist/actions/list-conversation-flows.d.cts +23 -3
  348. package/dist/actions/list-conversation-flows.d.cts.map +1 -1
  349. package/dist/actions/list-conversation-flows.d.mts +23 -3
  350. package/dist/actions/list-conversation-flows.d.mts.map +1 -1
  351. package/dist/actions/list-conversation-flows.mjs +2 -2
  352. package/dist/actions/list-conversation-flows.mjs.map +1 -1
  353. package/dist/actions/list-knowledge-bases.cjs.map +1 -1
  354. package/dist/actions/list-knowledge-bases.d.cts +3 -3
  355. package/dist/actions/list-knowledge-bases.d.cts.map +1 -1
  356. package/dist/actions/list-knowledge-bases.d.mts +3 -3
  357. package/dist/actions/list-knowledge-bases.d.mts.map +1 -1
  358. package/dist/actions/list-knowledge-bases.mjs.map +1 -1
  359. package/dist/actions/list-retell-llms.cjs +7 -7
  360. package/dist/actions/list-retell-llms.cjs.map +1 -1
  361. package/dist/actions/list-retell-llms.d.cts +60 -3
  362. package/dist/actions/list-retell-llms.d.cts.map +1 -1
  363. package/dist/actions/list-retell-llms.d.mts +60 -3
  364. package/dist/actions/list-retell-llms.d.mts.map +1 -1
  365. package/dist/actions/list-retell-llms.mjs +7 -7
  366. package/dist/actions/list-retell-llms.mjs.map +1 -1
  367. package/dist/actions/list-test-case-definitions.cjs +13 -13
  368. package/dist/actions/list-test-case-definitions.cjs.map +1 -1
  369. package/dist/actions/list-test-case-definitions.d.cts +30 -3
  370. package/dist/actions/list-test-case-definitions.d.cts.map +1 -1
  371. package/dist/actions/list-test-case-definitions.d.mts +30 -3
  372. package/dist/actions/list-test-case-definitions.d.mts.map +1 -1
  373. package/dist/actions/list-test-case-definitions.mjs +13 -13
  374. package/dist/actions/list-test-case-definitions.mjs.map +1 -1
  375. package/dist/actions/list-test-runs.cjs.map +1 -1
  376. package/dist/actions/list-test-runs.d.cts +7 -3
  377. package/dist/actions/list-test-runs.d.cts.map +1 -1
  378. package/dist/actions/list-test-runs.d.mts +7 -3
  379. package/dist/actions/list-test-runs.d.mts.map +1 -1
  380. package/dist/actions/list-test-runs.mjs.map +1 -1
  381. package/dist/actions/list-voices.cjs.map +1 -1
  382. package/dist/actions/list-voices.d.cts +3 -3
  383. package/dist/actions/list-voices.d.cts.map +1 -1
  384. package/dist/actions/list-voices.d.mts +3 -3
  385. package/dist/actions/list-voices.d.mts.map +1 -1
  386. package/dist/actions/list-voices.mjs.map +1 -1
  387. package/dist/actions/publish-agent.cjs +5 -5
  388. package/dist/actions/publish-agent.cjs.map +1 -1
  389. package/dist/actions/publish-agent.d.cts +61 -3
  390. package/dist/actions/publish-agent.d.cts.map +1 -1
  391. package/dist/actions/publish-agent.d.mts +61 -3
  392. package/dist/actions/publish-agent.d.mts.map +1 -1
  393. package/dist/actions/publish-agent.mjs +5 -5
  394. package/dist/actions/publish-agent.mjs.map +1 -1
  395. package/dist/actions/publish-chat-agent.cjs +5 -5
  396. package/dist/actions/publish-chat-agent.cjs.map +1 -1
  397. package/dist/actions/publish-chat-agent.d.cts +28 -3
  398. package/dist/actions/publish-chat-agent.d.cts.map +1 -1
  399. package/dist/actions/publish-chat-agent.d.mts +28 -3
  400. package/dist/actions/publish-chat-agent.d.mts.map +1 -1
  401. package/dist/actions/publish-chat-agent.mjs +5 -5
  402. package/dist/actions/publish-chat-agent.mjs.map +1 -1
  403. package/dist/actions/register-phone-call.cjs +52 -52
  404. package/dist/actions/register-phone-call.cjs.map +1 -1
  405. package/dist/actions/register-phone-call.d.cts +271 -3
  406. package/dist/actions/register-phone-call.d.cts.map +1 -1
  407. package/dist/actions/register-phone-call.d.mts +271 -3
  408. package/dist/actions/register-phone-call.d.mts.map +1 -1
  409. package/dist/actions/register-phone-call.mjs +52 -52
  410. package/dist/actions/register-phone-call.mjs.map +1 -1
  411. package/dist/actions/retrieve-call-details-by-id.cjs.map +1 -1
  412. package/dist/actions/retrieve-call-details-by-id.d.cts +7 -3
  413. package/dist/actions/retrieve-call-details-by-id.d.cts.map +1 -1
  414. package/dist/actions/retrieve-call-details-by-id.d.mts +7 -3
  415. package/dist/actions/retrieve-call-details-by-id.d.mts.map +1 -1
  416. package/dist/actions/retrieve-call-details-by-id.mjs.map +1 -1
  417. package/dist/actions/retrieve-call-details.cjs +18 -18
  418. package/dist/actions/retrieve-call-details.cjs.map +1 -1
  419. package/dist/actions/retrieve-call-details.d.cts +204 -3
  420. package/dist/actions/retrieve-call-details.d.cts.map +1 -1
  421. package/dist/actions/retrieve-call-details.d.mts +204 -3
  422. package/dist/actions/retrieve-call-details.d.mts.map +1 -1
  423. package/dist/actions/retrieve-call-details.mjs +18 -18
  424. package/dist/actions/retrieve-call-details.mjs.map +1 -1
  425. package/dist/actions/retrieve-details-of-a-specific-phone-number.cjs +2 -2
  426. package/dist/actions/retrieve-details-of-a-specific-phone-number.cjs.map +1 -1
  427. package/dist/actions/retrieve-details-of-a-specific-phone-number.d.cts +19 -3
  428. package/dist/actions/retrieve-details-of-a-specific-phone-number.d.cts.map +1 -1
  429. package/dist/actions/retrieve-details-of-a-specific-phone-number.d.mts +19 -3
  430. package/dist/actions/retrieve-details-of-a-specific-phone-number.d.mts.map +1 -1
  431. package/dist/actions/retrieve-details-of-a-specific-phone-number.mjs +2 -2
  432. package/dist/actions/retrieve-details-of-a-specific-phone-number.mjs.map +1 -1
  433. package/dist/actions/retrieve-details-of-a-specific-voice.cjs +1 -1
  434. package/dist/actions/retrieve-details-of-a-specific-voice.cjs.map +1 -1
  435. package/dist/actions/retrieve-details-of-a-specific-voice.d.cts +15 -3
  436. package/dist/actions/retrieve-details-of-a-specific-voice.d.cts.map +1 -1
  437. package/dist/actions/retrieve-details-of-a-specific-voice.d.mts +15 -3
  438. package/dist/actions/retrieve-details-of-a-specific-voice.d.mts.map +1 -1
  439. package/dist/actions/retrieve-details-of-a-specific-voice.mjs +1 -1
  440. package/dist/actions/retrieve-details-of-a-specific-voice.mjs.map +1 -1
  441. package/dist/actions/search-community-voice.cjs +2 -2
  442. package/dist/actions/search-community-voice.cjs.map +1 -1
  443. package/dist/actions/search-community-voice.d.cts +20 -3
  444. package/dist/actions/search-community-voice.d.cts.map +1 -1
  445. package/dist/actions/search-community-voice.d.mts +20 -3
  446. package/dist/actions/search-community-voice.d.mts.map +1 -1
  447. package/dist/actions/search-community-voice.mjs +2 -2
  448. package/dist/actions/search-community-voice.mjs.map +1 -1
  449. package/dist/actions/update-agent.cjs +55 -55
  450. package/dist/actions/update-agent.cjs.map +1 -1
  451. package/dist/actions/update-agent.d.cts +313 -3
  452. package/dist/actions/update-agent.d.cts.map +1 -1
  453. package/dist/actions/update-agent.d.mts +313 -3
  454. package/dist/actions/update-agent.d.mts.map +1 -1
  455. package/dist/actions/update-agent.mjs +55 -55
  456. package/dist/actions/update-agent.mjs.map +1 -1
  457. package/dist/actions/update-call.cjs +4 -4
  458. package/dist/actions/update-call.cjs.map +1 -1
  459. package/dist/actions/update-call.d.cts +28 -3
  460. package/dist/actions/update-call.d.cts.map +1 -1
  461. package/dist/actions/update-call.d.mts +28 -3
  462. package/dist/actions/update-call.d.mts.map +1 -1
  463. package/dist/actions/update-call.mjs +4 -4
  464. package/dist/actions/update-call.mjs.map +1 -1
  465. package/dist/actions/update-chat-agent.cjs +51 -51
  466. package/dist/actions/update-chat-agent.cjs.map +1 -1
  467. package/dist/actions/update-chat-agent.d.cts +206 -3
  468. package/dist/actions/update-chat-agent.d.cts.map +1 -1
  469. package/dist/actions/update-chat-agent.d.mts +206 -3
  470. package/dist/actions/update-chat-agent.d.mts.map +1 -1
  471. package/dist/actions/update-chat-agent.mjs +51 -51
  472. package/dist/actions/update-chat-agent.mjs.map +1 -1
  473. package/dist/actions/update-chat-metadata.cjs +13 -13
  474. package/dist/actions/update-chat-metadata.cjs.map +1 -1
  475. package/dist/actions/update-chat-metadata.d.cts +58 -3
  476. package/dist/actions/update-chat-metadata.d.cts.map +1 -1
  477. package/dist/actions/update-chat-metadata.d.mts +58 -3
  478. package/dist/actions/update-chat-metadata.d.mts.map +1 -1
  479. package/dist/actions/update-chat-metadata.mjs +13 -13
  480. package/dist/actions/update-chat-metadata.mjs.map +1 -1
  481. package/dist/actions/update-conversation-flow-component.cjs +74 -74
  482. package/dist/actions/update-conversation-flow-component.cjs.map +1 -1
  483. package/dist/actions/update-conversation-flow-component.d.cts +265 -3
  484. package/dist/actions/update-conversation-flow-component.d.cts.map +1 -1
  485. package/dist/actions/update-conversation-flow-component.d.mts +265 -3
  486. package/dist/actions/update-conversation-flow-component.d.mts.map +1 -1
  487. package/dist/actions/update-conversation-flow-component.mjs +74 -74
  488. package/dist/actions/update-conversation-flow-component.mjs.map +1 -1
  489. package/dist/actions/update-conversation-flow.cjs +12 -12
  490. package/dist/actions/update-conversation-flow.cjs.map +1 -1
  491. package/dist/actions/update-conversation-flow.d.cts +114 -3
  492. package/dist/actions/update-conversation-flow.d.cts.map +1 -1
  493. package/dist/actions/update-conversation-flow.d.mts +114 -3
  494. package/dist/actions/update-conversation-flow.d.mts.map +1 -1
  495. package/dist/actions/update-conversation-flow.mjs +12 -12
  496. package/dist/actions/update-conversation-flow.mjs.map +1 -1
  497. package/dist/actions/update-phone-number.cjs +6 -6
  498. package/dist/actions/update-phone-number.cjs.map +1 -1
  499. package/dist/actions/update-phone-number.d.cts +58 -3
  500. package/dist/actions/update-phone-number.d.cts.map +1 -1
  501. package/dist/actions/update-phone-number.d.mts +58 -3
  502. package/dist/actions/update-phone-number.d.mts.map +1 -1
  503. package/dist/actions/update-phone-number.mjs +6 -6
  504. package/dist/actions/update-phone-number.mjs.map +1 -1
  505. package/dist/actions/update-retell-llm.cjs +22 -22
  506. package/dist/actions/update-retell-llm.cjs.map +1 -1
  507. package/dist/actions/update-retell-llm.d.cts +178 -3
  508. package/dist/actions/update-retell-llm.d.cts.map +1 -1
  509. package/dist/actions/update-retell-llm.d.mts +178 -3
  510. package/dist/actions/update-retell-llm.d.mts.map +1 -1
  511. package/dist/actions/update-retell-llm.mjs +22 -22
  512. package/dist/actions/update-retell-llm.mjs.map +1 -1
  513. package/dist/actions/update-test-case-definition.cjs +22 -22
  514. package/dist/actions/update-test-case-definition.cjs.map +1 -1
  515. package/dist/actions/update-test-case-definition.d.cts +89 -3
  516. package/dist/actions/update-test-case-definition.d.cts.map +1 -1
  517. package/dist/actions/update-test-case-definition.d.mts +89 -3
  518. package/dist/actions/update-test-case-definition.d.mts.map +1 -1
  519. package/dist/actions/update-test-case-definition.mjs +22 -22
  520. package/dist/actions/update-test-case-definition.mjs.map +1 -1
  521. package/dist/catalog.cjs +7 -1
  522. package/dist/catalog.cjs.map +1 -1
  523. package/dist/catalog.d.cts +8 -0
  524. package/dist/catalog.d.mts +8 -0
  525. package/dist/catalog.mjs +7 -1
  526. package/dist/catalog.mjs.map +1 -1
  527. package/package.json +2 -2
@@ -1,9 +1,150 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-chat-agent.d.ts
4
- declare const RetellaiCreateChatAgentInput: z.ZodTypeAny;
5
- declare const RetellaiCreateChatAgentOutput: z.ZodTypeAny;
6
- declare const retellaiCreateChatAgent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RetellaiCreateChatAgentInput: z.ZodObject<{
5
+ language: z.ZodOptional<z.ZodString>;
6
+ is_public: z.ZodOptional<z.ZodBoolean>;
7
+ agent_name: z.ZodOptional<z.ZodString>;
8
+ pii_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
+ webhook_url: z.ZodOptional<z.ZodString>;
10
+ response_engine: z.ZodUnion<readonly [z.ZodObject<{
11
+ type: z.ZodString;
12
+ llm_id: z.ZodString;
13
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ }, z.core.$loose>, z.ZodObject<{
15
+ type: z.ZodString;
16
+ llm_websocket_url: z.ZodString;
17
+ }, z.core.$loose>, z.ZodObject<{
18
+ type: z.ZodString;
19
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ conversation_flow_id: z.ZodString;
21
+ }, z.core.$loose>]>;
22
+ opt_in_signed_url: z.ZodOptional<z.ZodBoolean>;
23
+ auto_close_message: z.ZodOptional<z.ZodString>;
24
+ webhook_timeout_ms: z.ZodOptional<z.ZodNumber>;
25
+ data_storage_setting: z.ZodOptional<z.ZodString>;
26
+ analysis_summary_prompt: z.ZodOptional<z.ZodString>;
27
+ post_chat_analysis_data: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
28
+ post_chat_analysis_model: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
+ signed_url_expiration_ms: z.ZodOptional<z.ZodNumber>;
30
+ end_chat_after_silence_ms: z.ZodOptional<z.ZodNumber>;
31
+ analysis_successful_prompt: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>;
33
+ declare const RetellaiCreateChatAgentOutput: z.ZodObject<{
34
+ volume: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ agentId: z.ZodNullable<z.ZodString>;
36
+ sttMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ version: z.ZodNullable<z.ZodNumber>;
38
+ voiceId: z.ZodNullable<z.ZodString>;
39
+ isPublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
40
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ agentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ ivrOption: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
43
+ piiConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ mode: z.ZodNullable<z.ZodString>;
45
+ categories: z.ZodArray<z.ZodString>;
46
+ }, z.core.$loose>>>;
47
+ voiceModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ voiceSpeed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ isPublished: z.ZodNullable<z.ZodBoolean>;
51
+ ambientSound: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ voiceEmotion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ allowUserDtmf: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
54
+ denoisingMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ optInSignedUrl: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
56
+ responseEngine: z.ZodUnion<readonly [z.ZodObject<{
57
+ type: z.ZodNullable<z.ZodString>;
58
+ llm_id: z.ZodNullable<z.ZodString>;
59
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ }, z.core.$loose>, z.ZodObject<{
61
+ type: z.ZodNullable<z.ZodString>;
62
+ llm_websocket_url: z.ZodNullable<z.ZodString>;
63
+ }, z.core.$loose>, z.ZodObject<{
64
+ type: z.ZodNullable<z.ZodString>;
65
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
+ conversation_flow_id: z.ZodNullable<z.ZodString>;
67
+ }, z.core.$loose>]>;
68
+ responsiveness: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
+ ringDurationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
70
+ boostedKeywords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
71
+ customSttConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
72
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ endpointingMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
+ }, z.core.$loose>>>;
75
+ userDtmfOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
+ timeoutMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
+ digitLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
+ terminationKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$loose>>>;
80
+ voicemailOption: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
81
+ backchannelWords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
82
+ fallbackVoiceIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
83
+ reminderMaxCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
84
+ voiceTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
85
+ voicemailMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ webhookTimeoutMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
87
+ enableBackchannel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
88
+ maxCallDurationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
89
+ reminderTriggerMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
+ ambientSoundVolume: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91
+ dataStorageSetting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ normalizeForSpeech: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
93
+ versionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ beginMessageDelayMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
95
+ vocabSpecialization: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ backchannelFrequency: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
+ postCallAnalysisData: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
98
+ analysisSummaryPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ endCallAfterSilenceMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
100
+ postCallAnalysisModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ signedUrlExpirationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
+ interruptionSensitivity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
103
+ pronunciationDictionary: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
104
+ word: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ phoneme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ alphabet: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
107
+ ipa: "ipa";
108
+ cmu: "cmu";
109
+ }>>>;
110
+ }, z.core.$loose>>>>;
111
+ analysisSuccessfulPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ enableVoicemailDetection: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
113
+ lastModificationTimestamp: z.ZodNullable<z.ZodNumber>;
114
+ voicemailDetectionTimeoutMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
115
+ }, z.core.$loose>;
116
+ declare const retellaiCreateChatAgent: import("@keystrokehq/action").WorkflowActionDefinition<{
117
+ response_engine: {
118
+ [x: string]: unknown;
119
+ type: string;
120
+ llm_id: string;
121
+ version?: number | null | undefined;
122
+ } | {
123
+ [x: string]: unknown;
124
+ type: string;
125
+ llm_websocket_url: string;
126
+ } | {
127
+ [x: string]: unknown;
128
+ type: string;
129
+ conversation_flow_id: string;
130
+ version?: number | null | undefined;
131
+ };
132
+ language?: string | undefined;
133
+ is_public?: boolean | undefined;
134
+ agent_name?: string | undefined;
135
+ pii_config?: Record<string, unknown> | undefined;
136
+ webhook_url?: string | undefined;
137
+ opt_in_signed_url?: boolean | undefined;
138
+ auto_close_message?: string | undefined;
139
+ webhook_timeout_ms?: number | undefined;
140
+ data_storage_setting?: string | undefined;
141
+ analysis_summary_prompt?: string | undefined;
142
+ post_chat_analysis_data?: Record<string, unknown>[] | undefined;
143
+ post_chat_analysis_model?: Record<string, unknown> | undefined;
144
+ signed_url_expiration_ms?: number | undefined;
145
+ end_chat_after_silence_ms?: number | undefined;
146
+ analysis_successful_prompt?: string | undefined;
147
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
148
  //#endregion
8
149
  export { retellaiCreateChatAgent };
9
150
  //# sourceMappingURL=create-chat-agent.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-agent.d.mts","names":[],"sources":["../../src/actions/create-chat-agent.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UA4Bc;AAAA,cAiC9C,6BAAA,EAA+B,CAAA,CAAE,UAsDc;AAAA,cAE/C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-chat-agent.d.mts","names":[],"sources":["../../src/actions/create-chat-agent.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6D5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwD7B,uBAAA,gCAAuB,wBAAA"}
@@ -12,16 +12,16 @@ const RetellaiCreateChatAgentInput = z.object({
12
12
  type: z.string().describe("Type of response engine"),
13
13
  llm_id: z.string().describe("Unique identifier of the LLM to use"),
14
14
  version: z.number().nullable().optional()
15
- }).describe("Retell LLM response engine configuration"),
15
+ }).passthrough().describe("Retell LLM response engine configuration"),
16
16
  z.object({
17
17
  type: z.string().describe("Type of response engine"),
18
18
  llm_websocket_url: z.string().describe("WebSocket URL for custom LLM")
19
- }).describe("Custom LLM response engine configuration"),
19
+ }).passthrough().describe("Custom LLM response engine configuration"),
20
20
  z.object({
21
21
  type: z.string().describe("Type of response engine"),
22
22
  version: z.number().nullable().optional(),
23
23
  conversation_flow_id: z.string().describe("Unique identifier of the conversation flow")
24
- }).describe("Conversation flow response engine configuration")
24
+ }).passthrough().describe("Conversation flow response engine configuration")
25
25
  ]),
26
26
  opt_in_signed_url: z.boolean().describe("Enable signed URLs for public logs access. When enabled, secure time-limited URLs are generated.").optional(),
27
27
  auto_close_message: z.string().describe("Message displayed when chat auto-closes after silence period").optional(),
@@ -35,37 +35,37 @@ const RetellaiCreateChatAgentInput = z.object({
35
35
  analysis_successful_prompt: z.string().describe("Success evaluation criteria for chat analysis. Maximum 2000 characters.").optional()
36
36
  }).describe("Request schema for `RetellaiCreateChatAgent`");
37
37
  const RetellaiCreateChatAgent_PiiConfigSchema = z.object({
38
- mode: z.string().describe("PII scrubbing mode"),
38
+ mode: z.string().describe("PII scrubbing mode").nullable(),
39
39
  categories: z.array(z.string()).describe("PII categories to scrub: person_name, address, email, phone_number, ssn, passport, driver_license, credit_card, bank_account, password, pin, medical_id, date_of_birth, customer_account_number")
40
- }).describe("PII scrubbing configuration");
40
+ }).passthrough().describe("PII scrubbing configuration");
41
41
  const RetellaiCreateChatAgent_RetellLlmEngineSchema = z.object({
42
- type: z.string().describe("Type of response engine"),
43
- llm_id: z.string().describe("Unique identifier of the LLM to use"),
42
+ type: z.string().describe("Type of response engine").nullable(),
43
+ llm_id: z.string().describe("Unique identifier of the LLM to use").nullable(),
44
44
  version: z.number().describe("Version number of the response engine").nullable().optional()
45
- }).describe("Retell LLM response engine configuration");
45
+ }).passthrough().describe("Retell LLM response engine configuration");
46
46
  const RetellaiCreateChatAgent_CustomLlmEngineSchema = z.object({
47
- type: z.string().describe("Type of response engine"),
48
- llm_websocket_url: z.string().describe("WebSocket URL for custom LLM")
49
- }).describe("Custom LLM response engine configuration");
47
+ type: z.string().describe("Type of response engine").nullable(),
48
+ llm_websocket_url: z.string().describe("WebSocket URL for custom LLM").nullable()
49
+ }).passthrough().describe("Custom LLM response engine configuration");
50
50
  const RetellaiCreateChatAgent_ConversationFlowEngineSchema = z.object({
51
- type: z.string().describe("Type of response engine"),
51
+ type: z.string().describe("Type of response engine").nullable(),
52
52
  version: z.number().describe("Version number of the conversation flow").nullable().optional(),
53
- conversation_flow_id: z.string().describe("Unique identifier of the conversation flow")
54
- }).describe("Conversation flow response engine configuration");
53
+ conversation_flow_id: z.string().describe("Unique identifier of the conversation flow").nullable()
54
+ }).passthrough().describe("Conversation flow response engine configuration");
55
55
  const RetellaiCreateChatAgent_CustomSttConfigSchema = z.object({
56
56
  provider: z.string().describe("STT provider (azure/deepgram)").nullable().optional(),
57
57
  endpointingMs: z.number().int().describe("Endpointing timeout in milliseconds").nullable().optional()
58
- }).describe("Custom STT configuration");
58
+ }).passthrough().describe("Custom STT configuration");
59
59
  const RetellaiCreateChatAgent_UserDtmfOptionsSchema = z.object({
60
60
  timeoutMs: z.number().int().describe("Timeout in milliseconds, range [1000-15000]").nullable().optional(),
61
61
  digitLimit: z.number().int().describe("Digit limit, range [1-50]").nullable().optional(),
62
62
  terminationKey: z.string().describe("Termination key (# or *)").nullable().optional()
63
- }).describe("DTMF options configuration");
63
+ }).passthrough().describe("DTMF options configuration");
64
64
  const RetellaiCreateChatAgent_PronunciationDictionaryEntrySchema = z.object({
65
65
  word: z.string().describe("Word to pronounce").nullable().optional(),
66
66
  phoneme: z.string().describe("Phonetic representation").nullable().optional(),
67
67
  alphabet: z.enum(["ipa", "cmu"]).describe("Phonetic alphabet type").nullable().optional()
68
- }).describe("Custom pronunciation rule entry");
68
+ }).passthrough().describe("Custom pronunciation rule entry");
69
69
  const retellaiCreateChatAgent = action("RETELLAI_CREATE_CHAT_AGENT", {
70
70
  slug: "retellai-create-chat-agent",
71
71
  name: "Create a new chat agent",
@@ -73,10 +73,10 @@ const retellaiCreateChatAgent = action("RETELLAI_CREATE_CHAT_AGENT", {
73
73
  input: RetellaiCreateChatAgentInput,
74
74
  output: z.object({
75
75
  volume: z.number().describe("Volume setting, range [0, 2], default 1").nullable().optional(),
76
- agentId: z.string().describe("Unique id of agent"),
76
+ agentId: z.string().describe("Unique id of agent").nullable(),
77
77
  sttMode: z.string().describe("Speech-to-text mode: fast, accurate, or custom").nullable().optional(),
78
- version: z.number().int().describe("Version of the agent"),
79
- voiceId: z.string().describe("Unique voice id used for the agent"),
78
+ version: z.number().int().describe("Version of the agent").nullable(),
79
+ voiceId: z.string().describe("Unique voice id used for the agent").nullable(),
80
80
  isPublic: z.boolean().describe("Make agent available for public preview link").nullable().optional(),
81
81
  language: z.string().describe("Language locale code (e.g., en-US, fr-FR, ja-JP) or 'multi' for multilingual").nullable().optional(),
82
82
  agentName: z.string().describe("Name of the agent for reference purposes").nullable().optional(),
@@ -85,7 +85,7 @@ const retellaiCreateChatAgent = action("RETELLAI_CREATE_CHAT_AGENT", {
85
85
  voiceModel: z.string().describe("The voice model used for the selected voice (e.g., eleven_turbo_v2, sonic-3, tts-1)").nullable().optional(),
86
86
  voiceSpeed: z.number().describe("Voice speed setting, range [0.5, 2], default 1").nullable().optional(),
87
87
  webhookUrl: z.string().describe("Event listener endpoint URL for webhooks").nullable().optional(),
88
- isPublished: z.boolean().describe("Indicates if agent is published"),
88
+ isPublished: z.boolean().describe("Indicates if agent is published").nullable(),
89
89
  ambientSound: z.string().describe("Ambient sound setting: coffee-shop, convention-hall, summer-outdoor, mountain-outdoor, static-noise, call-center, or null").nullable().optional(),
90
90
  voiceEmotion: z.string().describe("Voice emotion: calm, sympathetic, happy, sad, angry, fearful, or surprised").nullable().optional(),
91
91
  allowUserDtmf: z.boolean().describe("Accept DTMF signals, default true").nullable().optional(),
@@ -127,9 +127,9 @@ const retellaiCreateChatAgent = action("RETELLAI_CREATE_CHAT_AGENT", {
127
127
  pronunciationDictionary: z.array(RetellaiCreateChatAgent_PronunciationDictionaryEntrySchema).describe("Custom pronunciation rules").nullable().optional(),
128
128
  analysisSuccessfulPrompt: z.string().describe("Custom success determination prompt, max 2000 characters").nullable().optional(),
129
129
  enableVoicemailDetection: z.boolean().describe("Enable voicemail detection for phone calls").nullable().optional(),
130
- lastModificationTimestamp: z.number().int().describe("Last modification timestamp (milliseconds since epoch)"),
130
+ lastModificationTimestamp: z.number().int().describe("Last modification timestamp (milliseconds since epoch)").nullable(),
131
131
  voicemailDetectionTimeoutMs: z.number().int().describe("Voicemail detection timeout, range [5000, 180000], default 30000").nullable().optional()
132
- }).describe("Response schema for `RetellaiCreateChatAgent`")
132
+ }).passthrough().describe("Response schema for `RetellaiCreateChatAgent`")
133
133
  });
134
134
  //#endregion
135
135
  export { retellaiCreateChatAgent };
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-agent.mjs","names":[],"sources":["../../src/actions/create-chat-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatAgentInput: z.ZodTypeAny = z.object({\n language: z.string().describe(\"Language/dialect for chat operations (e.g., 'en-US', 'es-ES'). Defaults to 'en-US'.\").optional(),\n is_public: z.boolean().describe(\"Whether this chat agent is available for public preview\").optional(),\n agent_name: z.string().describe(\"Chat agent identifier for reference purposes\").optional(),\n pii_config: z.record(z.string(), z.unknown()).describe(\"PII (Personally Identifiable Information) scrubbing configuration\").optional(),\n webhook_url: z.string().describe(\"URL that will receive chat event notifications (e.g., chat started, ended, analyzed)\").optional(),\n response_engine: z.union([z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_id: z.string().describe(\"Unique identifier of the LLM to use\"),\n version: z.number().nullable().optional(),\n}).describe(\"Retell LLM response engine configuration\"), z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_websocket_url: z.string().describe(\"WebSocket URL for custom LLM\"),\n}).describe(\"Custom LLM response engine configuration\"), z.object({\n type: z.string().describe(\"Type of response engine\"),\n version: z.number().nullable().optional(),\n conversation_flow_id: z.string().describe(\"Unique identifier of the conversation flow\"),\n}).describe(\"Conversation flow response engine configuration\")]),\n opt_in_signed_url: z.boolean().describe(\"Enable signed URLs for public logs access. When enabled, secure time-limited URLs are generated.\").optional(),\n auto_close_message: z.string().describe(\"Message displayed when chat auto-closes after silence period\").optional(),\n webhook_timeout_ms: z.number().int().describe(\"Webhook timeout in milliseconds. Defaults to 10,000ms.\").optional(),\n data_storage_setting: z.string().describe(\"Data retention policy for the chat. Options: 'everything', 'everything_except_pii', or 'basic_attributes_only'.\").optional(),\n analysis_summary_prompt: z.string().describe(\"Summary generation guidance for chat analysis. Maximum 2000 characters.\").optional(),\n post_chat_analysis_data: z.array(z.record(z.string(), z.unknown())).describe(\"Custom analysis extraction schema for post-chat analysis\").optional(),\n post_chat_analysis_model: z.record(z.string(), z.unknown()).describe(\"LLM model selection for post-chat analysis\").optional(),\n signed_url_expiration_ms: z.number().int().describe(\"Signed URL expiration duration in milliseconds. Defaults to 86,400,000ms (24 hours).\").optional(),\n end_chat_after_silence_ms: z.number().int().describe(\"Silence duration (in milliseconds) before automatically closing the chat. Minimum value is 360,000ms (6 minutes).\").optional(),\n analysis_successful_prompt: z.string().describe(\"Success evaluation criteria for chat analysis. Maximum 2000 characters.\").optional(),\n}).describe(\"Request schema for `RetellaiCreateChatAgent`\");\nconst RetellaiCreateChatAgent_PiiConfigSchema: z.ZodTypeAny = z.object({\n mode: z.string().describe(\"PII scrubbing mode\"),\n categories: z.array(z.string()).describe(\"PII categories to scrub: person_name, address, email, phone_number, ssn, passport, driver_license, credit_card, bank_account, password, pin, medical_id, date_of_birth, customer_account_number\"),\n}).describe(\"PII scrubbing configuration\");\nconst RetellaiCreateChatAgent_RetellLlmEngineSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_id: z.string().describe(\"Unique identifier of the LLM to use\"),\n version: z.number().describe(\"Version number of the response engine\").nullable().optional(),\n}).describe(\"Retell LLM response engine configuration\");\nconst RetellaiCreateChatAgent_CustomLlmEngineSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_websocket_url: z.string().describe(\"WebSocket URL for custom LLM\"),\n}).describe(\"Custom LLM response engine configuration\");\nconst RetellaiCreateChatAgent_ConversationFlowEngineSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of response engine\"),\n version: z.number().describe(\"Version number of the conversation flow\").nullable().optional(),\n conversation_flow_id: z.string().describe(\"Unique identifier of the conversation flow\"),\n}).describe(\"Conversation flow response engine configuration\");\nconst RetellaiCreateChatAgent_CustomSttConfigSchema: z.ZodTypeAny = z.object({\n provider: z.string().describe(\"STT provider (azure/deepgram)\").nullable().optional(),\n endpointingMs: z.number().int().describe(\"Endpointing timeout in milliseconds\").nullable().optional(),\n}).describe(\"Custom STT configuration\");\nconst RetellaiCreateChatAgent_UserDtmfOptionsSchema: z.ZodTypeAny = z.object({\n timeoutMs: z.number().int().describe(\"Timeout in milliseconds, range [1000-15000]\").nullable().optional(),\n digitLimit: z.number().int().describe(\"Digit limit, range [1-50]\").nullable().optional(),\n terminationKey: z.string().describe(\"Termination key (# or *)\").nullable().optional(),\n}).describe(\"DTMF options configuration\");\nconst RetellaiCreateChatAgent_PronunciationDictionaryEntrySchema: z.ZodTypeAny = z.object({\n word: z.string().describe(\"Word to pronounce\").nullable().optional(),\n phoneme: z.string().describe(\"Phonetic representation\").nullable().optional(),\n alphabet: z.enum([\"ipa\", \"cmu\"]).describe(\"Phonetic alphabet type\").nullable().optional(),\n}).describe(\"Custom pronunciation rule entry\");\nexport const RetellaiCreateChatAgentOutput: z.ZodTypeAny = z.object({\n volume: z.number().describe(\"Volume setting, range [0, 2], default 1\").nullable().optional(),\n agentId: z.string().describe(\"Unique id of agent\"),\n sttMode: z.string().describe(\"Speech-to-text mode: fast, accurate, or custom\").nullable().optional(),\n version: z.number().int().describe(\"Version of the agent\"),\n voiceId: z.string().describe(\"Unique voice id used for the agent\"),\n isPublic: z.boolean().describe(\"Make agent available for public preview link\").nullable().optional(),\n language: z.string().describe(\"Language locale code (e.g., en-US, fr-FR, ja-JP) or 'multi' for multilingual\").nullable().optional(),\n agentName: z.string().describe(\"Name of the agent for reference purposes\").nullable().optional(),\n ivrOption: z.unknown().describe(\"IVR action configuration: hangup only\").nullable().optional(),\n piiConfig: RetellaiCreateChatAgent_PiiConfigSchema.nullable().optional(),\n voiceModel: z.string().describe(\"The voice model used for the selected voice (e.g., eleven_turbo_v2, sonic-3, tts-1)\").nullable().optional(),\n voiceSpeed: z.number().describe(\"Voice speed setting, range [0.5, 2], default 1\").nullable().optional(),\n webhookUrl: z.string().describe(\"Event listener endpoint URL for webhooks\").nullable().optional(),\n isPublished: z.boolean().describe(\"Indicates if agent is published\"),\n ambientSound: z.string().describe(\"Ambient sound setting: coffee-shop, convention-hall, summer-outdoor, mountain-outdoor, static-noise, call-center, or null\").nullable().optional(),\n voiceEmotion: z.string().describe(\"Voice emotion: calm, sympathetic, happy, sad, angry, fearful, or surprised\").nullable().optional(),\n allowUserDtmf: z.boolean().describe(\"Accept DTMF signals, default true\").nullable().optional(),\n denoisingMode: z.string().describe(\"Denoising mode: none, noise-cancellation, or noise-and-background-speech-cancellation\").nullable().optional(),\n optInSignedUrl: z.boolean().describe(\"Enable 24-hour expiring security signatures for URLs\").nullable().optional(),\n responseEngine: z.union([RetellaiCreateChatAgent_RetellLlmEngineSchema, RetellaiCreateChatAgent_CustomLlmEngineSchema, RetellaiCreateChatAgent_ConversationFlowEngineSchema]),\n responsiveness: z.number().describe(\"Agent responsiveness level, range [0, 1], default 1\").nullable().optional(),\n ringDurationMs: z.number().int().describe(\"Ring duration in milliseconds, range [5000, 90000], default 30000\").nullable().optional(),\n boostedKeywords: z.array(z.string()).describe(\"Custom words for transcription bias\").nullable().optional(),\n customSttConfig: RetellaiCreateChatAgent_CustomSttConfigSchema.nullable().optional(),\n userDtmfOptions: RetellaiCreateChatAgent_UserDtmfOptionsSchema.nullable().optional(),\n voicemailOption: z.unknown().describe(\"Action when voicemail detected: prompt, static_text, hangup, or bridge_transfer\").nullable().optional(),\n backchannelWords: z.array(z.string()).describe(\"Custom backchannel phrases\").nullable().optional(),\n fallbackVoiceIds: z.array(z.string()).describe(\"Alternate voice IDs from different TTS providers for fallback\").nullable().optional(),\n reminderMaxCount: z.number().int().describe(\"Maximum number of reminders, non-negative, default 1\").nullable().optional(),\n voiceTemperature: z.number().describe(\"Voice temperature setting, range [0, 2], default 1\").nullable().optional(),\n voicemailMessage: z.string().describe(\"Message to leave when voicemail is detected\").nullable().optional(),\n webhookTimeoutMs: z.number().int().describe(\"Webhook timeout in milliseconds, default 10000\").nullable().optional(),\n enableBackchannel: z.boolean().describe(\"Enable agent backchannel phrases for engagement\").nullable().optional(),\n maxCallDurationMs: z.number().int().describe(\"Maximum call duration in milliseconds, range [60000, 7200000], default 3600000\").nullable().optional(),\n reminderTriggerMs: z.number().describe(\"Milliseconds before reminder is triggered, default 10000\").nullable().optional(),\n ambientSoundVolume: z.number().describe(\"Ambient sound volume, range [0, 2], default 1\").nullable().optional(),\n dataStorageSetting: z.string().describe(\"Data storage policy: everything, everything_except_pii, or basic_attributes_only\").nullable().optional(),\n normalizeForSpeech: z.boolean().describe(\"Convert numbers and currency to spoken form\").nullable().optional(),\n versionDescription: z.string().describe(\"Internal documentation reference for the agent version\").nullable().optional(),\n beginMessageDelayMs: z.number().int().describe(\"Agent delay before speaking, range [0, 5000]\").nullable().optional(),\n vocabSpecialization: z.string().describe(\"Vocabulary specialization: general or medical (English only)\").nullable().optional(),\n backchannelFrequency: z.number().describe(\"Frequency of backchannel phrases, range [0, 1], default 0.8 when enabled\").nullable().optional(),\n postCallAnalysisData: z.array(z.unknown()).describe(\"Custom extraction fields for post-call analysis (string, enum, boolean, number types)\").nullable().optional(),\n analysisSummaryPrompt: z.string().describe(\"Custom summary guidance prompt, max 2000 characters\").nullable().optional(),\n endCallAfterSilenceMs: z.number().int().describe(\"End call after silence duration, minimum 10000, default 600000\").nullable().optional(),\n postCallAnalysisModel: z.string().describe(\"Analysis model: gpt-4.1-mini, gpt-4.1, gpt-5, claude variants, gemini variants, or null\").nullable().optional(),\n signedUrlExpirationMs: z.number().int().describe(\"Signed URL expiration time in milliseconds, default 86400000\").nullable().optional(),\n interruptionSensitivity: z.number().describe(\"Sensitivity to user interruptions, range [0, 1], default 1\").nullable().optional(),\n pronunciationDictionary: z.array(RetellaiCreateChatAgent_PronunciationDictionaryEntrySchema).describe(\"Custom pronunciation rules\").nullable().optional(),\n analysisSuccessfulPrompt: z.string().describe(\"Custom success determination prompt, max 2000 characters\").nullable().optional(),\n enableVoicemailDetection: z.boolean().describe(\"Enable voicemail detection for phone calls\").nullable().optional(),\n lastModificationTimestamp: z.number().int().describe(\"Last modification timestamp (milliseconds since epoch)\"),\n voicemailDetectionTimeoutMs: z.number().int().describe(\"Voicemail detection timeout, range [5000, 180000], default 30000\").nullable().optional(),\n}).describe(\"Response schema for `RetellaiCreateChatAgent`\");\n\nexport const retellaiCreateChatAgent = action(\"RETELLAI_CREATE_CHAT_AGENT\", {\n slug: \"retellai-create-chat-agent\",\n name: \"Create a new chat agent\",\n description: \"Create a new chat agent with specified configuration. Use when you need to set up a chat-based AI agent with custom response engine and behavior settings.\",\n input: RetellaiCreateChatAgentInput,\n output: RetellaiCreateChatAgentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACrI,aAAa,EAAE,OAAO,CAAC,CAAC,S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IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1J,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,yBAAyB,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxJ,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD;EAC7G,6BAA6B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-chat-agent.mjs","names":[],"sources":["../../src/actions/create-chat-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatAgentInput = z.object({\n language: z.string().describe(\"Language/dialect for chat operations (e.g., 'en-US', 'es-ES'). Defaults to 'en-US'.\").optional(),\n is_public: z.boolean().describe(\"Whether this chat agent is available for public preview\").optional(),\n agent_name: z.string().describe(\"Chat agent identifier for reference purposes\").optional(),\n pii_config: z.record(z.string(), z.unknown()).describe(\"PII (Personally Identifiable Information) scrubbing configuration\").optional(),\n webhook_url: z.string().describe(\"URL that will receive chat event notifications (e.g., chat started, ended, analyzed)\").optional(),\n response_engine: z.union([z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_id: z.string().describe(\"Unique identifier of the LLM to use\"),\n version: z.number().nullable().optional(),\n}).passthrough().describe(\"Retell LLM response engine configuration\"), z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_websocket_url: z.string().describe(\"WebSocket URL for custom LLM\"),\n}).passthrough().describe(\"Custom LLM response engine configuration\"), z.object({\n type: z.string().describe(\"Type of response engine\"),\n version: z.number().nullable().optional(),\n conversation_flow_id: z.string().describe(\"Unique identifier of the conversation flow\"),\n}).passthrough().describe(\"Conversation flow response engine configuration\")]),\n opt_in_signed_url: z.boolean().describe(\"Enable signed URLs for public logs access. When enabled, secure time-limited URLs are generated.\").optional(),\n auto_close_message: z.string().describe(\"Message displayed when chat auto-closes after silence period\").optional(),\n webhook_timeout_ms: z.number().int().describe(\"Webhook timeout in milliseconds. Defaults to 10,000ms.\").optional(),\n data_storage_setting: z.string().describe(\"Data retention policy for the chat. Options: 'everything', 'everything_except_pii', or 'basic_attributes_only'.\").optional(),\n analysis_summary_prompt: z.string().describe(\"Summary generation guidance for chat analysis. Maximum 2000 characters.\").optional(),\n post_chat_analysis_data: z.array(z.record(z.string(), z.unknown())).describe(\"Custom analysis extraction schema for post-chat analysis\").optional(),\n post_chat_analysis_model: z.record(z.string(), z.unknown()).describe(\"LLM model selection for post-chat analysis\").optional(),\n signed_url_expiration_ms: z.number().int().describe(\"Signed URL expiration duration in milliseconds. Defaults to 86,400,000ms (24 hours).\").optional(),\n end_chat_after_silence_ms: z.number().int().describe(\"Silence duration (in milliseconds) before automatically closing the chat. Minimum value is 360,000ms (6 minutes).\").optional(),\n analysis_successful_prompt: z.string().describe(\"Success evaluation criteria for chat analysis. Maximum 2000 characters.\").optional(),\n}).describe(\"Request schema for `RetellaiCreateChatAgent`\");\nconst RetellaiCreateChatAgent_PiiConfigSchema = z.object({\n mode: z.string().describe(\"PII scrubbing mode\").nullable(),\n categories: z.array(z.string()).describe(\"PII categories to scrub: person_name, address, email, phone_number, ssn, passport, driver_license, credit_card, bank_account, password, pin, medical_id, date_of_birth, customer_account_number\"),\n}).passthrough().describe(\"PII scrubbing configuration\");\nconst RetellaiCreateChatAgent_RetellLlmEngineSchema = z.object({\n type: z.string().describe(\"Type of response engine\").nullable(),\n llm_id: z.string().describe(\"Unique identifier of the LLM to use\").nullable(),\n version: z.number().describe(\"Version number of the response engine\").nullable().optional(),\n}).passthrough().describe(\"Retell LLM response engine configuration\");\nconst RetellaiCreateChatAgent_CustomLlmEngineSchema = z.object({\n type: z.string().describe(\"Type of response engine\").nullable(),\n llm_websocket_url: z.string().describe(\"WebSocket URL for custom LLM\").nullable(),\n}).passthrough().describe(\"Custom LLM response engine configuration\");\nconst RetellaiCreateChatAgent_ConversationFlowEngineSchema = z.object({\n type: z.string().describe(\"Type of response engine\").nullable(),\n version: z.number().describe(\"Version number of the conversation flow\").nullable().optional(),\n conversation_flow_id: z.string().describe(\"Unique identifier of the conversation flow\").nullable(),\n}).passthrough().describe(\"Conversation flow response engine configuration\");\nconst RetellaiCreateChatAgent_CustomSttConfigSchema = z.object({\n provider: z.string().describe(\"STT provider (azure/deepgram)\").nullable().optional(),\n endpointingMs: z.number().int().describe(\"Endpointing timeout in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Custom STT configuration\");\nconst RetellaiCreateChatAgent_UserDtmfOptionsSchema = z.object({\n timeoutMs: z.number().int().describe(\"Timeout in milliseconds, range [1000-15000]\").nullable().optional(),\n digitLimit: z.number().int().describe(\"Digit limit, range [1-50]\").nullable().optional(),\n terminationKey: z.string().describe(\"Termination key (# or *)\").nullable().optional(),\n}).passthrough().describe(\"DTMF options configuration\");\nconst RetellaiCreateChatAgent_PronunciationDictionaryEntrySchema = z.object({\n word: z.string().describe(\"Word to pronounce\").nullable().optional(),\n phoneme: z.string().describe(\"Phonetic representation\").nullable().optional(),\n alphabet: z.enum([\"ipa\", \"cmu\"]).describe(\"Phonetic alphabet type\").nullable().optional(),\n}).passthrough().describe(\"Custom pronunciation rule entry\");\nexport const RetellaiCreateChatAgentOutput = z.object({\n volume: z.number().describe(\"Volume setting, range [0, 2], default 1\").nullable().optional(),\n agentId: z.string().describe(\"Unique id of agent\").nullable(),\n sttMode: z.string().describe(\"Speech-to-text mode: fast, accurate, or custom\").nullable().optional(),\n version: z.number().int().describe(\"Version of the agent\").nullable(),\n voiceId: z.string().describe(\"Unique voice id used for the agent\").nullable(),\n isPublic: z.boolean().describe(\"Make agent available for public preview link\").nullable().optional(),\n language: z.string().describe(\"Language locale code (e.g., en-US, fr-FR, ja-JP) or 'multi' for multilingual\").nullable().optional(),\n agentName: z.string().describe(\"Name of the agent for reference purposes\").nullable().optional(),\n ivrOption: z.unknown().describe(\"IVR action configuration: hangup only\").nullable().optional(),\n piiConfig: RetellaiCreateChatAgent_PiiConfigSchema.nullable().optional(),\n voiceModel: z.string().describe(\"The voice model used for the selected voice (e.g., eleven_turbo_v2, sonic-3, tts-1)\").nullable().optional(),\n voiceSpeed: z.number().describe(\"Voice speed setting, range [0.5, 2], default 1\").nullable().optional(),\n webhookUrl: z.string().describe(\"Event listener endpoint URL for webhooks\").nullable().optional(),\n isPublished: z.boolean().describe(\"Indicates if agent is published\").nullable(),\n ambientSound: z.string().describe(\"Ambient sound setting: coffee-shop, convention-hall, summer-outdoor, mountain-outdoor, static-noise, call-center, or null\").nullable().optional(),\n voiceEmotion: z.string().describe(\"Voice emotion: calm, sympathetic, happy, sad, angry, fearful, or surprised\").nullable().optional(),\n allowUserDtmf: z.boolean().describe(\"Accept DTMF signals, default true\").nullable().optional(),\n denoisingMode: z.string().describe(\"Denoising mode: none, noise-cancellation, or noise-and-background-speech-cancellation\").nullable().optional(),\n optInSignedUrl: z.boolean().describe(\"Enable 24-hour expiring security signatures for URLs\").nullable().optional(),\n responseEngine: z.union([RetellaiCreateChatAgent_RetellLlmEngineSchema, RetellaiCreateChatAgent_CustomLlmEngineSchema, RetellaiCreateChatAgent_ConversationFlowEngineSchema]),\n responsiveness: z.number().describe(\"Agent responsiveness level, range [0, 1], default 1\").nullable().optional(),\n ringDurationMs: z.number().int().describe(\"Ring duration in milliseconds, range [5000, 90000], default 30000\").nullable().optional(),\n boostedKeywords: z.array(z.string()).describe(\"Custom words for transcription bias\").nullable().optional(),\n customSttConfig: RetellaiCreateChatAgent_CustomSttConfigSchema.nullable().optional(),\n userDtmfOptions: RetellaiCreateChatAgent_UserDtmfOptionsSchema.nullable().optional(),\n voicemailOption: z.unknown().describe(\"Action when voicemail detected: prompt, static_text, hangup, or bridge_transfer\").nullable().optional(),\n backchannelWords: z.array(z.string()).describe(\"Custom backchannel phrases\").nullable().optional(),\n fallbackVoiceIds: z.array(z.string()).describe(\"Alternate voice IDs from different TTS providers for fallback\").nullable().optional(),\n reminderMaxCount: z.number().int().describe(\"Maximum number of reminders, non-negative, default 1\").nullable().optional(),\n voiceTemperature: z.number().describe(\"Voice temperature setting, range [0, 2], default 1\").nullable().optional(),\n voicemailMessage: z.string().describe(\"Message to leave when voicemail is detected\").nullable().optional(),\n webhookTimeoutMs: z.number().int().describe(\"Webhook timeout in milliseconds, default 10000\").nullable().optional(),\n enableBackchannel: z.boolean().describe(\"Enable agent backchannel phrases for engagement\").nullable().optional(),\n maxCallDurationMs: z.number().int().describe(\"Maximum call duration in milliseconds, range [60000, 7200000], default 3600000\").nullable().optional(),\n reminderTriggerMs: z.number().describe(\"Milliseconds before reminder is triggered, default 10000\").nullable().optional(),\n ambientSoundVolume: z.number().describe(\"Ambient sound volume, range [0, 2], default 1\").nullable().optional(),\n dataStorageSetting: z.string().describe(\"Data storage policy: everything, everything_except_pii, or basic_attributes_only\").nullable().optional(),\n normalizeForSpeech: z.boolean().describe(\"Convert numbers and currency to spoken form\").nullable().optional(),\n versionDescription: z.string().describe(\"Internal documentation reference for the agent version\").nullable().optional(),\n beginMessageDelayMs: z.number().int().describe(\"Agent delay before speaking, range [0, 5000]\").nullable().optional(),\n vocabSpecialization: z.string().describe(\"Vocabulary specialization: general or medical (English only)\").nullable().optional(),\n backchannelFrequency: z.number().describe(\"Frequency of backchannel phrases, range [0, 1], default 0.8 when enabled\").nullable().optional(),\n postCallAnalysisData: z.array(z.unknown()).describe(\"Custom extraction fields for post-call analysis (string, enum, boolean, number types)\").nullable().optional(),\n analysisSummaryPrompt: z.string().describe(\"Custom summary guidance prompt, max 2000 characters\").nullable().optional(),\n endCallAfterSilenceMs: z.number().int().describe(\"End call after silence duration, minimum 10000, default 600000\").nullable().optional(),\n postCallAnalysisModel: z.string().describe(\"Analysis model: gpt-4.1-mini, gpt-4.1, gpt-5, claude variants, gemini variants, or null\").nullable().optional(),\n signedUrlExpirationMs: z.number().int().describe(\"Signed URL expiration time in milliseconds, default 86400000\").nullable().optional(),\n interruptionSensitivity: z.number().describe(\"Sensitivity to user interruptions, range [0, 1], default 1\").nullable().optional(),\n pronunciationDictionary: z.array(RetellaiCreateChatAgent_PronunciationDictionaryEntrySchema).describe(\"Custom pronunciation rules\").nullable().optional(),\n analysisSuccessfulPrompt: z.string().describe(\"Custom success determination prompt, max 2000 characters\").nullable().optional(),\n enableVoicemailDetection: z.boolean().describe(\"Enable voicemail detection for phone calls\").nullable().optional(),\n lastModificationTimestamp: z.number().int().describe(\"Last modification timestamp (milliseconds since epoch)\").nullable(),\n voicemailDetectionTimeoutMs: z.number().int().describe(\"Voicemail detection timeout, range [5000, 180000], default 30000\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `RetellaiCreateChatAgent`\");\n\nexport const retellaiCreateChatAgent = action(\"RETELLAI_CREATE_CHAT_AGENT\", {\n slug: \"retellai-create-chat-agent\",\n name: \"Create a new chat agent\",\n description: \"Create a new chat agent with specified configuration. Use when you need to set up a chat-based AI agent with custom response engine and behavior settings.\",\n input: RetellaiCreateChatAgentInput,\n output: RetellaiCreateChatAgentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,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C,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACxH,6BAA6B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -5,7 +5,7 @@ const RetellaiCreateChatCompletionInput = zod.z.object({
5
5
  chat_id: zod.z.string().describe("Unique identifier of the chat session to create completion for"),
6
6
  content: zod.z.string().describe("User message content to generate agent chat completion response for")
7
7
  }).describe("Request schema for `CreateChatCompletion`");
8
- const RetellaiCreateChatCompletionOutput = zod.z.object({ messages: zod.z.array(zod.z.unknown()).describe("New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.") }).describe("Response schema for `CreateChatCompletion`");
8
+ const RetellaiCreateChatCompletionOutput = zod.z.object({ messages: zod.z.array(zod.z.unknown()).describe("New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.") }).passthrough().describe("Response schema for `CreateChatCompletion`");
9
9
  const retellaiCreateChatCompletion = require_action.action("RETELLAI_CREATE_CHAT_COMPLETION", {
10
10
  slug: "retellai-create-chat-completion",
11
11
  name: "Create chat completion",
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatCompletionInput: z.ZodTypeAny = z.object({\n chat_id: z.string().describe(\"Unique identifier of the chat session to create completion for\"),\n content: z.string().describe(\"User message content to generate agent chat completion response for\"),\n}).describe(\"Request schema for `CreateChatCompletion`\");\nexport const RetellaiCreateChatCompletionOutput: z.ZodTypeAny = z.object({\n messages: z.array(z.unknown()).describe(\"New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.\"),\n}).describe(\"Response schema for `CreateChatCompletion`\");\n\nexport const retellaiCreateChatCompletion = action(\"RETELLAI_CREATE_CHAT_COMPLETION\", {\n slug: \"retellai-create-chat-completion\",\n name: \"Create chat completion\",\n description: \"Tool to create a chat completion for an existing chat session, generating the agent's response to a user message. Use when you need the agent to respond to user input in an ongoing chat conversation.\",\n input: RetellaiCreateChatCompletionInput,\n output: RetellaiCreateChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACpG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC5M,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatCompletionInput = z.object({\n chat_id: z.string().describe(\"Unique identifier of the chat session to create completion for\"),\n content: z.string().describe(\"User message content to generate agent chat completion response for\"),\n}).describe(\"Request schema for `CreateChatCompletion`\");\nexport const RetellaiCreateChatCompletionOutput = z.object({\n messages: z.array(z.unknown()).describe(\"New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.\"),\n}).passthrough().describe(\"Response schema for `CreateChatCompletion`\");\n\nexport const retellaiCreateChatCompletion = action(\"RETELLAI_CREATE_CHAT_COMPLETION\", {\n slug: \"retellai-create-chat-completion\",\n name: \"Create chat completion\",\n description: \"Tool to create a chat completion for an existing chat session, generating the agent's response to a user message. Use when you need the agent to respond to user input in an ongoing chat conversation.\",\n input: RetellaiCreateChatCompletionInput,\n output: RetellaiCreateChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACpG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC5M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-chat-completion.d.ts
4
- declare const RetellaiCreateChatCompletionInput: z.ZodTypeAny;
5
- declare const RetellaiCreateChatCompletionOutput: z.ZodTypeAny;
6
- declare const retellaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RetellaiCreateChatCompletionInput: z.ZodObject<{
5
+ chat_id: z.ZodString;
6
+ content: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const RetellaiCreateChatCompletionOutput: z.ZodObject<{
9
+ messages: z.ZodArray<z.ZodUnknown>;
10
+ }, z.core.$loose>;
11
+ declare const retellaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ chat_id: string;
13
+ content: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { retellaiCreateChatCompletion };
9
17
  //# sourceMappingURL=create-chat-completion.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion.d.cts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAGM;AAAA,cAC3C,kCAAA,EAAoC,CAAA,CAAE,UAEM;AAAA,cAE5C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-chat-completion.d.cts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-chat-completion.d.ts
4
- declare const RetellaiCreateChatCompletionInput: z.ZodTypeAny;
5
- declare const RetellaiCreateChatCompletionOutput: z.ZodTypeAny;
6
- declare const retellaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RetellaiCreateChatCompletionInput: z.ZodObject<{
5
+ chat_id: z.ZodString;
6
+ content: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const RetellaiCreateChatCompletionOutput: z.ZodObject<{
9
+ messages: z.ZodArray<z.ZodUnknown>;
10
+ }, z.core.$loose>;
11
+ declare const retellaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ chat_id: string;
13
+ content: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { retellaiCreateChatCompletion };
9
17
  //# sourceMappingURL=create-chat-completion.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion.d.mts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAGM;AAAA,cAC3C,kCAAA,EAAoC,CAAA,CAAE,UAEM;AAAA,cAE5C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-chat-completion.d.mts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -8,7 +8,7 @@ const retellaiCreateChatCompletion = action("RETELLAI_CREATE_CHAT_COMPLETION", {
8
8
  chat_id: z.string().describe("Unique identifier of the chat session to create completion for"),
9
9
  content: z.string().describe("User message content to generate agent chat completion response for")
10
10
  }).describe("Request schema for `CreateChatCompletion`"),
11
- output: z.object({ messages: z.array(z.unknown()).describe("New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.") }).describe("Response schema for `CreateChatCompletion`")
11
+ output: z.object({ messages: z.array(z.unknown()).describe("New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.") }).passthrough().describe("Response schema for `CreateChatCompletion`")
12
12
  });
13
13
  //#endregion
14
14
  export { retellaiCreateChatCompletion };
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion.mjs","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatCompletionInput: z.ZodTypeAny = z.object({\n chat_id: z.string().describe(\"Unique identifier of the chat session to create completion for\"),\n content: z.string().describe(\"User message content to generate agent chat completion response for\"),\n}).describe(\"Request schema for `CreateChatCompletion`\");\nexport const RetellaiCreateChatCompletionOutput: z.ZodTypeAny = z.object({\n messages: z.array(z.unknown()).describe(\"New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.\"),\n}).describe(\"Response schema for `CreateChatCompletion`\");\n\nexport const retellaiCreateChatCompletion = action(\"RETELLAI_CREATE_CHAT_COMPLETION\", {\n slug: \"retellai-create-chat-completion\",\n name: \"Create chat completion\",\n description: \"Tool to create a chat completion for an existing chat session, generating the agent's response to a user message. Use when you need the agent to respond to user input in an ongoing chat conversation.\",\n input: RetellaiCreateChatCompletionInput,\n output: RetellaiCreateChatCompletionOutput,\n});\n"],"mappings":";;AAYA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6D,EAAE,OAAO;EACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACpG,CAAC,CAAC,CAAC,SAAS,2CASH;CACP,QAT8D,EAAE,OAAO,EACvE,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC5M,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-chat-completion.mjs","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatCompletionInput = z.object({\n chat_id: z.string().describe(\"Unique identifier of the chat session to create completion for\"),\n content: z.string().describe(\"User message content to generate agent chat completion response for\"),\n}).describe(\"Request schema for `CreateChatCompletion`\");\nexport const RetellaiCreateChatCompletionOutput = z.object({\n messages: z.array(z.unknown()).describe(\"New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.\"),\n}).passthrough().describe(\"Response schema for `CreateChatCompletion`\");\n\nexport const retellaiCreateChatCompletion = action(\"RETELLAI_CREATE_CHAT_COMPLETION\", {\n slug: \"retellai-create-chat-completion\",\n name: \"Create chat completion\",\n description: \"Tool to create a chat completion for an existing chat session, generating the agent's response to a user message. Use when you need the agent to respond to user input in an ongoing chat conversation.\",\n input: RetellaiCreateChatCompletionInput,\n output: RetellaiCreateChatCompletionOutput,\n});\n"],"mappings":";;AAYA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ+C,EAAE,OAAO;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACpG,CAAC,CAAC,CAAC,SAAS,2CASH;CACP,QATgD,EAAE,OAAO,EACzD,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC5M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -8,14 +8,14 @@ const RetellaiCreateChatInput = zod.z.object({
8
8
  retell_llm_dynamic_variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.").optional()
9
9
  }).describe("Request schema for `CreateChat`");
10
10
  const RetellaiCreateChat_ProductCostSchema = zod.z.object({
11
- cost: zod.z.number().describe("Cost in cents"),
12
- product: zod.z.string().describe("Product name"),
13
- unit_price: zod.z.number().describe("Unit price in cents")
14
- }).describe("Individual product cost");
11
+ cost: zod.z.number().describe("Cost in cents").nullable(),
12
+ product: zod.z.string().describe("Product name").nullable(),
13
+ unit_price: zod.z.number().describe("Unit price in cents").nullable()
14
+ }).passthrough().describe("Individual product cost");
15
15
  const RetellaiCreateChat_ChatCostSchema = zod.z.object({
16
16
  combined_cost: zod.z.number().describe("Combined cost of all individual costs in cents").nullable().optional(),
17
17
  product_costs: zod.z.array(RetellaiCreateChat_ProductCostSchema).describe("List of products with their unit prices and costs in cents").nullable().optional()
18
- }).describe("Chat cost breakdown");
18
+ }).passthrough().describe("Chat cost breakdown");
19
19
  const RetellaiCreateChat_ChatAnalysisSchema = zod.z.object({
20
20
  chat_summary: zod.z.string().describe("A high level summary of the chat.").nullable().optional(),
21
21
  user_sentiment: zod.z.enum([
@@ -26,11 +26,11 @@ const RetellaiCreateChat_ChatAnalysisSchema = zod.z.object({
26
26
  ]).describe("Sentiment of the user in the chat.").nullable().optional(),
27
27
  chat_successful: zod.z.boolean().describe("Whether the agent seems to have a successful chat with the user, where the agent finishes the task, and the call was complete without being cutoff.").nullable().optional(),
28
28
  custom_analysis_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom analysis data that was extracted based on the schema defined in chat agent post chat analysis data. Can be empty if nothing is specified.").nullable().optional()
29
- }).describe("Post-chat analysis data");
29
+ }).passthrough().describe("Post-chat analysis data");
30
30
  const RetellaiCreateChatOutput = zod.z.object({
31
- chat_id: zod.z.string().describe("Unique id of the chat."),
31
+ chat_id: zod.z.string().describe("Unique id of the chat.").nullable(),
32
32
  version: zod.z.number().int().describe("The version of the agent").nullable().optional(),
33
- agent_id: zod.z.string().describe("Corresponding chat agent id of this chat."),
33
+ agent_id: zod.z.string().describe("Corresponding chat agent id of this chat.").nullable(),
34
34
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.").nullable().optional(),
35
35
  chat_cost: RetellaiCreateChat_ChatCostSchema.nullable().optional(),
36
36
  chat_type: zod.z.enum(["api_chat", "sms_chat"]).describe("Type of the chat").nullable().optional(),
@@ -39,7 +39,7 @@ const RetellaiCreateChatOutput = zod.z.object({
39
39
  "ongoing",
40
40
  "ended",
41
41
  "error"
42
- ]).describe("Status of chat.\n\n- `ongoing`: Chat session is ongoing, chat agent can receive new message and generate response.\n- `ended`: Chat session has ended, and no longer can generate new response.\n- `error`: Chat encountered error."),
42
+ ]).describe("Status of chat.\n\n- `ongoing`: Chat session is ongoing, chat agent can receive new message and generate response.\n- `ended`: Chat session has ended, and no longer can generate new response.\n- `error`: Chat encountered error.").nullable(),
43
43
  chat_analysis: RetellaiCreateChat_ChatAnalysisSchema.nullable().optional(),
44
44
  end_timestamp: zod.z.number().int().describe("End timestamp (milliseconds since epoch) of the chat. Available after chat ends.").nullable().optional(),
45
45
  start_timestamp: zod.z.number().int().describe("Begin timestamp (milliseconds since epoch) of the chat. Available after chat starts.").nullable().optional(),
@@ -47,7 +47,7 @@ const RetellaiCreateChatOutput = zod.z.object({
47
47
  message_with_tool_calls: zod.z.array(zod.z.unknown()).describe("Transcript of the chat weaved with tool call invocation and results.").nullable().optional(),
48
48
  collected_dynamic_variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dynamic variables collected from the chat. Only available after the chat ends.").nullable().optional(),
49
49
  retell_llm_dynamic_variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.").nullable().optional()
50
- }).describe("Response schema for `CreateChat`");
50
+ }).passthrough().describe("Response schema for `CreateChat`");
51
51
  const retellaiCreateChat = require_action.action("RETELLAI_CREATE_CHAT", {
52
52
  slug: "retellai-create-chat",
53
53
  name: "Create a new chat session",
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat.cjs","names":["z","action"],"sources":["../../src/actions/create-chat.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatInput: z.ZodTypeAny = z.object({\n agent_id: z.string().describe(\"The chat agent to use for the call.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.\").optional(),\n agent_version: z.number().int().describe(\"The version of the chat agent to use for the chat. If not provided, will default to latest version.\").optional(),\n retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.\").optional(),\n}).describe(\"Request schema for `CreateChat`\");\nconst RetellaiCreateChat_ProductCostSchema: z.ZodTypeAny = z.object({\n cost: z.number().describe(\"Cost in cents\"),\n product: z.string().describe(\"Product name\"),\n unit_price: z.number().describe(\"Unit price in cents\"),\n}).describe(\"Individual product cost\");\nconst RetellaiCreateChat_ChatCostSchema: z.ZodTypeAny = z.object({\n combined_cost: z.number().describe(\"Combined cost of all individual costs in cents\").nullable().optional(),\n product_costs: z.array(RetellaiCreateChat_ProductCostSchema).describe(\"List of products with their unit prices and costs in cents\").nullable().optional(),\n}).describe(\"Chat cost breakdown\");\nconst RetellaiCreateChat_ChatAnalysisSchema: z.ZodTypeAny = z.object({\n chat_summary: z.string().describe(\"A high level summary of the chat.\").nullable().optional(),\n user_sentiment: z.enum([\"Negative\", \"Positive\", \"Neutral\", \"Unknown\"]).describe(\"Sentiment of the user in the chat.\").nullable().optional(),\n chat_successful: z.boolean().describe(\"Whether the agent seems to have a successful chat with the user, where the agent finishes the task, and the call was complete without being cutoff.\").nullable().optional(),\n custom_analysis_data: z.record(z.string(), z.unknown()).describe(\"Custom analysis data that was extracted based on the schema defined in chat agent post chat analysis data. Can be empty if nothing is specified.\").nullable().optional(),\n}).describe(\"Post-chat analysis data\");\nexport const RetellaiCreateChatOutput: z.ZodTypeAny = z.object({\n chat_id: z.string().describe(\"Unique id of the chat.\"),\n version: z.number().int().describe(\"The version of the agent\").nullable().optional(),\n agent_id: z.string().describe(\"Corresponding chat agent id of this chat.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.\").nullable().optional(),\n chat_cost: RetellaiCreateChat_ChatCostSchema.nullable().optional(),\n chat_type: z.enum([\"api_chat\", \"sms_chat\"]).describe(\"Type of the chat\").nullable().optional(),\n transcript: z.string().describe(\"Transcription of the chat.\").nullable().optional(),\n chat_status: z.enum([\"ongoing\", \"ended\", \"error\"]).describe(\"Status of chat.\\n\\n- `ongoing`: Chat session is ongoing, chat agent can receive new message and generate response.\\n- `ended`: Chat session has ended, and no longer can generate new response.\\n- `error`: Chat encountered error.\"),\n chat_analysis: RetellaiCreateChat_ChatAnalysisSchema.nullable().optional(),\n end_timestamp: z.number().int().describe(\"End timestamp (milliseconds since epoch) of the chat. Available after chat ends.\").nullable().optional(),\n start_timestamp: z.number().int().describe(\"Begin timestamp (milliseconds since epoch) of the chat. Available after chat starts.\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes for the chat\").nullable().optional(),\n message_with_tool_calls: z.array(z.unknown()).describe(\"Transcript of the chat weaved with tool call invocation and results.\").nullable().optional(),\n collected_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Dynamic variables collected from the chat. Only available after the chat ends.\").nullable().optional(),\n retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.\").nullable().optional(),\n}).describe(\"Response schema for `CreateChat`\");\n\nexport const retellaiCreateChat = action(\"RETELLAI_CREATE_CHAT\", {\n slug: \"retellai-create-chat\",\n name: \"Create a new chat session\",\n description: \"Tool to create a new chat session with a chat agent. Use when you need to initiate a new chat conversation with a RetellAI chat agent.\",\n input: RetellaiCreateChatInput,\n output: RetellaiCreateChatOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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AAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,yBAAyBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,6BAA6BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9K,8BAA8BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvQ,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAE9C,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-chat.cjs","names":["z","action"],"sources":["../../src/actions/create-chat.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatInput = z.object({\n agent_id: z.string().describe(\"The chat agent to use for the call.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.\").optional(),\n agent_version: z.number().int().describe(\"The version of the chat agent to use for the chat. If not provided, will default to latest version.\").optional(),\n retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.\").optional(),\n}).describe(\"Request schema for `CreateChat`\");\nconst RetellaiCreateChat_ProductCostSchema = z.object({\n cost: z.number().describe(\"Cost in cents\").nullable(),\n product: z.string().describe(\"Product name\").nullable(),\n unit_price: z.number().describe(\"Unit price in cents\").nullable(),\n}).passthrough().describe(\"Individual product cost\");\nconst RetellaiCreateChat_ChatCostSchema = z.object({\n combined_cost: z.number().describe(\"Combined cost of all individual costs in cents\").nullable().optional(),\n product_costs: z.array(RetellaiCreateChat_ProductCostSchema).describe(\"List of products with their unit prices and costs in cents\").nullable().optional(),\n}).passthrough().describe(\"Chat cost breakdown\");\nconst RetellaiCreateChat_ChatAnalysisSchema = z.object({\n chat_summary: z.string().describe(\"A high level summary of the chat.\").nullable().optional(),\n user_sentiment: z.enum([\"Negative\", \"Positive\", \"Neutral\", \"Unknown\"]).describe(\"Sentiment of the user in the chat.\").nullable().optional(),\n chat_successful: z.boolean().describe(\"Whether the agent seems to have a successful chat with the user, where the agent finishes the task, and the call was complete without being cutoff.\").nullable().optional(),\n custom_analysis_data: z.record(z.string(), z.unknown()).describe(\"Custom analysis data that was extracted based on the schema defined in chat agent post chat analysis data. Can be empty if nothing is specified.\").nullable().optional(),\n}).passthrough().describe(\"Post-chat analysis data\");\nexport const RetellaiCreateChatOutput = z.object({\n chat_id: z.string().describe(\"Unique id of the chat.\").nullable(),\n version: z.number().int().describe(\"The version of the agent\").nullable().optional(),\n agent_id: z.string().describe(\"Corresponding chat agent id of this chat.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.\").nullable().optional(),\n chat_cost: RetellaiCreateChat_ChatCostSchema.nullable().optional(),\n chat_type: z.enum([\"api_chat\", \"sms_chat\"]).describe(\"Type of the chat\").nullable().optional(),\n transcript: z.string().describe(\"Transcription of the chat.\").nullable().optional(),\n chat_status: z.enum([\"ongoing\", \"ended\", \"error\"]).describe(\"Status of chat.\\n\\n- `ongoing`: Chat session is ongoing, chat agent can receive new message and generate response.\\n- `ended`: Chat session has ended, and no longer can generate new response.\\n- `error`: Chat encountered error.\").nullable(),\n chat_analysis: RetellaiCreateChat_ChatAnalysisSchema.nullable().optional(),\n end_timestamp: z.number().int().describe(\"End timestamp (milliseconds since epoch) of the chat. Available after chat ends.\").nullable().optional(),\n start_timestamp: z.number().int().describe(\"Begin timestamp (milliseconds since epoch) of the chat. Available after chat starts.\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes for the chat\").nullable().optional(),\n message_with_tool_calls: z.array(z.unknown()).describe(\"Transcript of the chat weaved with tool call invocation and results.\").nullable().optional(),\n collected_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Dynamic variables collected from the chat. Only available after the chat ends.\").nullable().optional(),\n retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `CreateChat`\");\n\nexport const retellaiCreateChat = action(\"RETELLAI_CREATE_CHAT\", {\n slug: \"retellai-create-chat\",\n name: \"Create a new chat session\",\n description: \"Tool to create a new chat session with a chat agent. Use when you need to initiate a new chat conversation with a RetellAI chat agent.\",\n input: RetellaiCreateChatInput,\n output: RetellaiCreateChatOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8MAA8M,CAAC,CAAC,SAAS;CAC9Q,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;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