retell-sdk 4.66.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (550) hide show
  1. package/CHANGELOG.md +7 -1341
  2. package/LICENSE +1 -1
  3. package/README.md +120 -44
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +217 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +217 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +513 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +509 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +1 -46
  55. package/error.d.ts.map +1 -1
  56. package/error.js +3 -110
  57. package/error.js.map +1 -1
  58. package/error.mjs +1 -96
  59. package/error.mjs.map +1 -1
  60. package/index.d.mts +6 -151
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +5 -150
  63. package/index.d.ts.map +1 -1
  64. package/index.js +12 -150
  65. package/index.js.map +1 -1
  66. package/index.mjs +5 -123
  67. package/index.mjs.map +1 -1
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +40 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +37 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +75 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +75 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +17 -0
  117. package/internal/shim-types.d.mts.map +1 -0
  118. package/internal/shim-types.d.ts +17 -0
  119. package/internal/shim-types.d.ts.map +1 -0
  120. package/internal/shim-types.js +4 -0
  121. package/internal/shim-types.js.map +1 -0
  122. package/internal/shim-types.mjs +3 -0
  123. package/internal/shim-types.mjs.map +1 -0
  124. package/internal/shims.d.mts +20 -0
  125. package/internal/shims.d.mts.map +1 -0
  126. package/internal/shims.d.ts +20 -0
  127. package/internal/shims.d.ts.map +1 -0
  128. package/internal/shims.js +92 -0
  129. package/internal/shims.js.map +1 -0
  130. package/internal/shims.mjs +85 -0
  131. package/internal/shims.mjs.map +1 -0
  132. package/internal/to-file.d.mts +45 -0
  133. package/internal/to-file.d.mts.map +1 -0
  134. package/internal/to-file.d.ts +45 -0
  135. package/internal/to-file.d.ts.map +1 -0
  136. package/internal/to-file.js +91 -0
  137. package/internal/to-file.js.map +1 -0
  138. package/internal/to-file.mjs +88 -0
  139. package/internal/to-file.mjs.map +1 -0
  140. package/internal/tslib.js +81 -0
  141. package/internal/tslib.mjs +17 -0
  142. package/internal/types.d.mts +69 -0
  143. package/internal/types.d.mts.map +1 -0
  144. package/internal/types.d.ts +69 -0
  145. package/internal/types.d.ts.map +1 -0
  146. package/internal/types.js +4 -0
  147. package/internal/types.js.map +1 -0
  148. package/internal/types.mjs +3 -0
  149. package/internal/types.mjs.map +1 -0
  150. package/internal/uploads.d.mts +42 -0
  151. package/internal/uploads.d.mts.map +1 -0
  152. package/internal/uploads.d.ts +42 -0
  153. package/internal/uploads.d.ts.map +1 -0
  154. package/internal/uploads.js +141 -0
  155. package/internal/uploads.js.map +1 -0
  156. package/internal/uploads.mjs +131 -0
  157. package/internal/uploads.mjs.map +1 -0
  158. package/internal/utils/base64.d.mts +3 -0
  159. package/internal/utils/base64.d.mts.map +1 -0
  160. package/internal/utils/base64.d.ts +3 -0
  161. package/internal/utils/base64.d.ts.map +1 -0
  162. package/internal/utils/base64.js +38 -0
  163. package/internal/utils/base64.js.map +1 -0
  164. package/internal/utils/base64.mjs +33 -0
  165. package/internal/utils/base64.mjs.map +1 -0
  166. package/internal/utils/bytes.d.mts +4 -0
  167. package/internal/utils/bytes.d.mts.map +1 -0
  168. package/internal/utils/bytes.d.ts +4 -0
  169. package/internal/utils/bytes.d.ts.map +1 -0
  170. package/internal/utils/bytes.js +31 -0
  171. package/internal/utils/bytes.js.map +1 -0
  172. package/internal/utils/bytes.mjs +26 -0
  173. package/internal/utils/bytes.mjs.map +1 -0
  174. package/internal/utils/env.d.mts +9 -0
  175. package/internal/utils/env.d.mts.map +1 -0
  176. package/internal/utils/env.d.ts +9 -0
  177. package/internal/utils/env.d.ts.map +1 -0
  178. package/internal/utils/env.js +22 -0
  179. package/internal/utils/env.js.map +1 -0
  180. package/internal/utils/env.mjs +18 -0
  181. package/internal/utils/env.mjs.map +1 -0
  182. package/internal/utils/log.d.mts +37 -0
  183. package/internal/utils/log.d.mts.map +1 -0
  184. package/internal/utils/log.d.ts +37 -0
  185. package/internal/utils/log.d.ts.map +1 -0
  186. package/internal/utils/log.js +85 -0
  187. package/internal/utils/log.js.map +1 -0
  188. package/internal/utils/log.mjs +79 -0
  189. package/internal/utils/log.mjs.map +1 -0
  190. package/internal/utils/path.d.mts +15 -0
  191. package/internal/utils/path.d.mts.map +1 -0
  192. package/internal/utils/path.d.ts +15 -0
  193. package/internal/utils/path.d.ts.map +1 -0
  194. package/internal/utils/path.js +79 -0
  195. package/internal/utils/path.js.map +1 -0
  196. package/internal/utils/path.mjs +74 -0
  197. package/internal/utils/path.mjs.map +1 -0
  198. package/internal/utils/sleep.d.mts +2 -0
  199. package/internal/utils/sleep.d.mts.map +1 -0
  200. package/internal/utils/sleep.d.ts +2 -0
  201. package/internal/utils/sleep.d.ts.map +1 -0
  202. package/internal/utils/sleep.js +7 -0
  203. package/internal/utils/sleep.js.map +1 -0
  204. package/internal/utils/sleep.mjs +3 -0
  205. package/internal/utils/sleep.mjs.map +1 -0
  206. package/internal/utils/uuid.d.mts +5 -0
  207. package/internal/utils/uuid.d.mts.map +1 -0
  208. package/internal/utils/uuid.d.ts +5 -0
  209. package/internal/utils/uuid.d.ts.map +1 -0
  210. package/internal/utils/uuid.js +19 -0
  211. package/internal/utils/uuid.js.map +1 -0
  212. package/internal/utils/uuid.mjs +15 -0
  213. package/internal/utils/uuid.mjs.map +1 -0
  214. package/internal/utils/values.d.mts +18 -0
  215. package/internal/utils/values.d.mts.map +1 -0
  216. package/internal/utils/values.d.ts +18 -0
  217. package/internal/utils/values.d.ts.map +1 -0
  218. package/internal/utils/values.js +112 -0
  219. package/internal/utils/values.js.map +1 -0
  220. package/internal/utils/values.mjs +94 -0
  221. package/internal/utils/values.mjs.map +1 -0
  222. package/internal/utils.d.mts +7 -0
  223. package/internal/utils.d.mts.map +1 -0
  224. package/internal/utils.d.ts +7 -0
  225. package/internal/utils.d.ts.map +1 -0
  226. package/internal/utils.js +11 -0
  227. package/internal/utils.js.map +1 -0
  228. package/internal/utils.mjs +8 -0
  229. package/internal/utils.mjs.map +1 -0
  230. package/package.json +101 -65
  231. package/resource.d.mts +2 -0
  232. package/resource.d.mts.map +1 -0
  233. package/resource.d.ts +1 -5
  234. package/resource.d.ts.map +1 -1
  235. package/resource.js +3 -8
  236. package/resource.js.map +1 -1
  237. package/resource.mjs +1 -6
  238. package/resource.mjs.map +1 -1
  239. package/resources/agent.d.mts +1803 -0
  240. package/resources/agent.d.mts.map +1 -0
  241. package/resources/agent.d.ts +374 -78
  242. package/resources/agent.d.ts.map +1 -1
  243. package/resources/agent.js +33 -20
  244. package/resources/agent.js.map +1 -1
  245. package/resources/agent.mjs +33 -20
  246. package/resources/agent.mjs.map +1 -1
  247. package/resources/batch-call.d.mts +926 -0
  248. package/resources/batch-call.d.mts.map +1 -0
  249. package/resources/batch-call.d.ts +219 -27
  250. package/resources/batch-call.d.ts.map +1 -1
  251. package/resources/batch-call.js +6 -2
  252. package/resources/batch-call.js.map +1 -1
  253. package/resources/batch-call.mjs +6 -2
  254. package/resources/batch-call.mjs.map +1 -1
  255. package/resources/call.d.mts +4280 -0
  256. package/resources/call.d.mts.map +1 -0
  257. package/resources/call.d.ts +556 -110
  258. package/resources/call.d.ts.map +1 -1
  259. package/resources/call.js +20 -10
  260. package/resources/call.js.map +1 -1
  261. package/resources/call.mjs +20 -10
  262. package/resources/call.mjs.map +1 -1
  263. package/resources/chat-agent.d.mts +836 -0
  264. package/resources/chat-agent.d.mts.map +1 -0
  265. package/resources/chat-agent.d.ts +118 -23
  266. package/resources/chat-agent.d.ts.map +1 -1
  267. package/resources/chat-agent.js +33 -20
  268. package/resources/chat-agent.js.map +1 -1
  269. package/resources/chat-agent.mjs +33 -20
  270. package/resources/chat-agent.mjs.map +1 -1
  271. package/resources/chat.d.mts +607 -0
  272. package/resources/chat.d.mts.map +1 -0
  273. package/resources/chat.d.ts +82 -30
  274. package/resources/chat.d.ts.map +1 -1
  275. package/resources/chat.js +21 -11
  276. package/resources/chat.js.map +1 -1
  277. package/resources/chat.mjs +21 -11
  278. package/resources/chat.mjs.map +1 -1
  279. package/resources/concurrency.d.mts +51 -0
  280. package/resources/concurrency.d.mts.map +1 -0
  281. package/resources/concurrency.d.ts +14 -3
  282. package/resources/concurrency.d.ts.map +1 -1
  283. package/resources/concurrency.js +1 -1
  284. package/resources/concurrency.js.map +1 -1
  285. package/resources/concurrency.mjs +1 -1
  286. package/resources/concurrency.mjs.map +1 -1
  287. package/resources/conversation-flow-component.d.mts +11838 -0
  288. package/resources/conversation-flow-component.d.mts.map +1 -0
  289. package/resources/conversation-flow-component.d.ts +6600 -2597
  290. package/resources/conversation-flow-component.d.ts.map +1 -1
  291. package/resources/conversation-flow-component.js +10 -8
  292. package/resources/conversation-flow-component.js.map +1 -1
  293. package/resources/conversation-flow-component.mjs +10 -8
  294. package/resources/conversation-flow-component.mjs.map +1 -1
  295. package/resources/conversation-flow.d.mts +23851 -0
  296. package/resources/conversation-flow.d.mts.map +1 -0
  297. package/resources/conversation-flow.d.ts +15877 -7958
  298. package/resources/conversation-flow.d.ts.map +1 -1
  299. package/resources/conversation-flow.js +30 -15
  300. package/resources/conversation-flow.js.map +1 -1
  301. package/resources/conversation-flow.mjs +30 -15
  302. package/resources/conversation-flow.mjs.map +1 -1
  303. package/resources/index.d.mts +15 -0
  304. package/resources/index.d.mts.map +1 -0
  305. package/resources/index.d.ts +4 -4
  306. package/resources/index.d.ts.map +1 -1
  307. package/resources/index.js.map +1 -1
  308. package/resources/index.mjs +2 -2
  309. package/resources/index.mjs.map +1 -1
  310. package/resources/knowledge-base.d.mts +228 -0
  311. package/resources/knowledge-base.d.mts.map +1 -0
  312. package/resources/knowledge-base.d.ts +23 -14
  313. package/resources/knowledge-base.d.ts.map +1 -1
  314. package/resources/knowledge-base.js +16 -36
  315. package/resources/knowledge-base.js.map +1 -1
  316. package/resources/knowledge-base.mjs +16 -13
  317. package/resources/knowledge-base.mjs.map +1 -1
  318. package/resources/llm.d.mts +5306 -0
  319. package/resources/llm.d.mts.map +1 -0
  320. package/resources/llm.d.ts +1189 -477
  321. package/resources/llm.d.ts.map +1 -1
  322. package/resources/llm.js +28 -15
  323. package/resources/llm.js.map +1 -1
  324. package/resources/llm.mjs +28 -15
  325. package/resources/llm.mjs.map +1 -1
  326. package/resources/mcp-tool.d.mts +45 -0
  327. package/resources/mcp-tool.d.mts.map +1 -0
  328. package/resources/mcp-tool.d.ts +8 -3
  329. package/resources/mcp-tool.d.ts.map +1 -1
  330. package/resources/mcp-tool.js +4 -3
  331. package/resources/mcp-tool.js.map +1 -1
  332. package/resources/mcp-tool.mjs +4 -3
  333. package/resources/mcp-tool.mjs.map +1 -1
  334. package/resources/phone-number.d.mts +595 -0
  335. package/resources/phone-number.d.mts.map +1 -0
  336. package/resources/phone-number.d.ts +332 -13
  337. package/resources/phone-number.d.ts.map +1 -1
  338. package/resources/phone-number.js +7 -5
  339. package/resources/phone-number.js.map +1 -1
  340. package/resources/phone-number.mjs +7 -5
  341. package/resources/phone-number.mjs.map +1 -1
  342. package/resources/tests.d.mts +561 -0
  343. package/resources/tests.d.mts.map +1 -0
  344. package/resources/tests.d.ts +437 -7
  345. package/resources/tests.d.ts.map +1 -1
  346. package/resources/tests.js +60 -1
  347. package/resources/tests.js.map +1 -1
  348. package/resources/tests.mjs +60 -1
  349. package/resources/tests.mjs.map +1 -1
  350. package/resources/voice.d.mts +130 -0
  351. package/resources/voice.d.mts.map +1 -0
  352. package/resources/voice.d.ts +89 -6
  353. package/resources/voice.d.ts.map +1 -1
  354. package/resources/voice.js +23 -3
  355. package/resources/voice.js.map +1 -1
  356. package/resources/voice.mjs +23 -3
  357. package/resources/voice.mjs.map +1 -1
  358. package/resources.d.mts +2 -0
  359. package/resources.d.mts.map +1 -0
  360. package/resources.d.ts.map +1 -1
  361. package/resources.js +2 -15
  362. package/resources.js.map +1 -1
  363. package/src/api-promise.ts +2 -0
  364. package/src/client.ts +1005 -0
  365. package/src/core/README.md +3 -0
  366. package/src/core/api-promise.ts +92 -0
  367. package/src/core/error.ts +130 -0
  368. package/src/core/resource.ts +11 -0
  369. package/src/core/uploads.ts +2 -0
  370. package/src/error.ts +2 -130
  371. package/src/index.ts +5 -405
  372. package/src/internal/README.md +3 -0
  373. package/src/internal/builtin-types.ts +93 -0
  374. package/src/internal/detect-platform.ts +196 -0
  375. package/src/internal/errors.ts +33 -0
  376. package/src/internal/headers.ts +97 -0
  377. package/src/internal/parse.ts +56 -0
  378. package/src/internal/request-options.ts +91 -0
  379. package/src/internal/shim-types.ts +26 -0
  380. package/src/internal/shims.ts +107 -0
  381. package/src/internal/to-file.ts +154 -0
  382. package/src/internal/types.ts +95 -0
  383. package/src/internal/uploads.ts +187 -0
  384. package/src/internal/utils/base64.ts +40 -0
  385. package/src/internal/utils/bytes.ts +32 -0
  386. package/src/internal/utils/env.ts +18 -0
  387. package/src/internal/utils/log.ts +126 -0
  388. package/src/internal/utils/path.ts +88 -0
  389. package/src/internal/utils/sleep.ts +3 -0
  390. package/src/internal/utils/uuid.ts +17 -0
  391. package/src/internal/utils/values.ts +105 -0
  392. package/src/internal/utils.ts +8 -0
  393. package/src/resource.ts +2 -11
  394. package/src/resources/agent.ts +529 -95
  395. package/src/resources/batch-call.ts +291 -24
  396. package/src/resources/call.ts +757 -105
  397. package/src/resources/chat-agent.ts +191 -41
  398. package/src/resources/chat.ts +108 -40
  399. package/src/resources/concurrency.ts +16 -3
  400. package/src/resources/conversation-flow-component.ts +9469 -4285
  401. package/src/resources/conversation-flow.ts +21572 -11318
  402. package/src/resources/index.ts +25 -2
  403. package/src/resources/knowledge-base.ts +40 -28
  404. package/src/resources/llm.ts +1422 -599
  405. package/src/resources/mcp-tool.ts +13 -6
  406. package/src/resources/phone-number.ts +410 -18
  407. package/src/resources/tests.ts +608 -9
  408. package/src/resources/voice.ts +122 -7
  409. package/src/tsconfig.json +2 -2
  410. package/src/uploads.ts +2 -259
  411. package/src/version.ts +1 -1
  412. package/uploads.d.mts +2 -0
  413. package/uploads.d.mts.map +1 -0
  414. package/uploads.d.ts +1 -74
  415. package/uploads.d.ts.map +1 -1
  416. package/uploads.js +3 -175
  417. package/uploads.js.map +1 -1
  418. package/uploads.mjs +1 -164
  419. package/uploads.mjs.map +1 -1
  420. package/version.d.mts +2 -0
  421. package/version.d.mts.map +1 -0
  422. package/version.d.ts +1 -1
  423. package/version.d.ts.map +1 -1
  424. package/version.js +1 -1
  425. package/version.js.map +1 -1
  426. package/version.mjs +1 -1
  427. package/version.mjs.map +1 -1
  428. package/_shims/MultipartBody.d.ts +0 -9
  429. package/_shims/MultipartBody.d.ts.map +0 -1
  430. package/_shims/MultipartBody.js +0 -16
  431. package/_shims/MultipartBody.js.map +0 -1
  432. package/_shims/MultipartBody.mjs +0 -12
  433. package/_shims/MultipartBody.mjs.map +0 -1
  434. package/_shims/README.md +0 -46
  435. package/_shims/auto/runtime-bun.d.ts +0 -5
  436. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  437. package/_shims/auto/runtime-bun.js +0 -21
  438. package/_shims/auto/runtime-bun.js.map +0 -1
  439. package/_shims/auto/runtime-bun.mjs +0 -2
  440. package/_shims/auto/runtime-bun.mjs.map +0 -1
  441. package/_shims/auto/runtime-node.d.ts +0 -5
  442. package/_shims/auto/runtime-node.d.ts.map +0 -1
  443. package/_shims/auto/runtime-node.js +0 -21
  444. package/_shims/auto/runtime-node.js.map +0 -1
  445. package/_shims/auto/runtime-node.mjs +0 -2
  446. package/_shims/auto/runtime-node.mjs.map +0 -1
  447. package/_shims/auto/runtime.d.ts +0 -5
  448. package/_shims/auto/runtime.d.ts.map +0 -1
  449. package/_shims/auto/runtime.js +0 -21
  450. package/_shims/auto/runtime.js.map +0 -1
  451. package/_shims/auto/runtime.mjs +0 -2
  452. package/_shims/auto/runtime.mjs.map +0 -1
  453. package/_shims/auto/types-node.d.ts +0 -5
  454. package/_shims/auto/types-node.d.ts.map +0 -1
  455. package/_shims/auto/types-node.js +0 -21
  456. package/_shims/auto/types-node.js.map +0 -1
  457. package/_shims/auto/types-node.mjs +0 -2
  458. package/_shims/auto/types-node.mjs.map +0 -1
  459. package/_shims/auto/types.d.ts +0 -101
  460. package/_shims/auto/types.js +0 -3
  461. package/_shims/auto/types.mjs +0 -3
  462. package/_shims/bun-runtime.d.ts +0 -6
  463. package/_shims/bun-runtime.d.ts.map +0 -1
  464. package/_shims/bun-runtime.js +0 -14
  465. package/_shims/bun-runtime.js.map +0 -1
  466. package/_shims/bun-runtime.mjs +0 -10
  467. package/_shims/bun-runtime.mjs.map +0 -1
  468. package/_shims/index.d.ts +0 -83
  469. package/_shims/index.js +0 -17
  470. package/_shims/index.mjs +0 -11
  471. package/_shims/manual-types.d.ts +0 -12
  472. package/_shims/manual-types.js +0 -3
  473. package/_shims/manual-types.mjs +0 -3
  474. package/_shims/node-runtime.d.ts +0 -3
  475. package/_shims/node-runtime.d.ts.map +0 -1
  476. package/_shims/node-runtime.js +0 -89
  477. package/_shims/node-runtime.js.map +0 -1
  478. package/_shims/node-runtime.mjs +0 -56
  479. package/_shims/node-runtime.mjs.map +0 -1
  480. package/_shims/node-types.d.ts +0 -42
  481. package/_shims/node-types.js +0 -3
  482. package/_shims/node-types.mjs +0 -3
  483. package/_shims/registry.d.ts +0 -37
  484. package/_shims/registry.d.ts.map +0 -1
  485. package/_shims/registry.js +0 -41
  486. package/_shims/registry.js.map +0 -1
  487. package/_shims/registry.mjs +0 -37
  488. package/_shims/registry.mjs.map +0 -1
  489. package/_shims/web-runtime.d.ts +0 -5
  490. package/_shims/web-runtime.d.ts.map +0 -1
  491. package/_shims/web-runtime.js +0 -78
  492. package/_shims/web-runtime.js.map +0 -1
  493. package/_shims/web-runtime.mjs +0 -71
  494. package/_shims/web-runtime.mjs.map +0 -1
  495. package/_shims/web-types.d.ts +0 -83
  496. package/_shims/web-types.js +0 -3
  497. package/_shims/web-types.mjs +0 -3
  498. package/core.d.ts +0 -255
  499. package/core.d.ts.map +0 -1
  500. package/core.js +0 -924
  501. package/core.js.map +0 -1
  502. package/core.mjs +0 -892
  503. package/core.mjs.map +0 -1
  504. package/lib/webhook_auth.d.ts +0 -27
  505. package/lib/webhook_auth.d.ts.map +0 -1
  506. package/lib/webhook_auth.js +0 -50
  507. package/lib/webhook_auth.js.map +0 -1
  508. package/lib/webhook_auth.mjs +0 -45
  509. package/lib/webhook_auth.mjs.map +0 -1
  510. package/shims/node.d.ts +0 -30
  511. package/shims/node.d.ts.map +0 -1
  512. package/shims/node.js +0 -31
  513. package/shims/node.js.map +0 -1
  514. package/shims/node.mjs +0 -5
  515. package/shims/node.mjs.map +0 -1
  516. package/shims/web.d.ts +0 -26
  517. package/shims/web.d.ts.map +0 -1
  518. package/shims/web.js +0 -31
  519. package/shims/web.js.map +0 -1
  520. package/shims/web.mjs +0 -5
  521. package/shims/web.mjs.map +0 -1
  522. package/src/_shims/MultipartBody.ts +0 -9
  523. package/src/_shims/README.md +0 -46
  524. package/src/_shims/auto/runtime-bun.ts +0 -4
  525. package/src/_shims/auto/runtime-node.ts +0 -4
  526. package/src/_shims/auto/runtime.ts +0 -4
  527. package/src/_shims/auto/types-node.ts +0 -4
  528. package/src/_shims/auto/types.d.ts +0 -101
  529. package/src/_shims/auto/types.js +0 -3
  530. package/src/_shims/auto/types.mjs +0 -3
  531. package/src/_shims/bun-runtime.ts +0 -14
  532. package/src/_shims/index.d.ts +0 -83
  533. package/src/_shims/index.js +0 -17
  534. package/src/_shims/index.mjs +0 -11
  535. package/src/_shims/manual-types.d.ts +0 -12
  536. package/src/_shims/manual-types.js +0 -3
  537. package/src/_shims/manual-types.mjs +0 -3
  538. package/src/_shims/node-runtime.ts +0 -81
  539. package/src/_shims/node-types.d.ts +0 -42
  540. package/src/_shims/node-types.js +0 -3
  541. package/src/_shims/node-types.mjs +0 -3
  542. package/src/_shims/registry.ts +0 -67
  543. package/src/_shims/web-runtime.ts +0 -103
  544. package/src/_shims/web-types.d.ts +0 -83
  545. package/src/_shims/web-types.js +0 -3
  546. package/src/_shims/web-types.mjs +0 -3
  547. package/src/core.ts +0 -1236
  548. package/src/lib/webhook_auth.ts +0 -69
  549. package/src/shims/node.ts +0 -50
  550. package/src/shims/web.ts +0 -50
@@ -0,0 +1,926 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class BatchCall extends APIResource {
5
+ /**
6
+ * Create a batch call
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const batchCallResponse =
11
+ * await client.batchCall.createBatchCall({
12
+ * from_number: '+14157774444',
13
+ * tasks: [{ to_number: '+12137774445' }],
14
+ * });
15
+ * ```
16
+ */
17
+ createBatchCall(body: BatchCallCreateBatchCallParams, options?: RequestOptions): APIPromise<BatchCallResponse>;
18
+ }
19
+ export interface BatchCallResponse {
20
+ /**
21
+ * Unique id of the batch call.
22
+ */
23
+ batch_call_id: string;
24
+ from_number: string;
25
+ name: string;
26
+ scheduled_timestamp: number;
27
+ /**
28
+ * Number of tasks within the batch call
29
+ */
30
+ total_task_count: number;
31
+ /**
32
+ * Canonicalized minutes-based time windows. Present only if specified when the
33
+ * batch call was created or updated. See CallTimeWindow for format details
34
+ * ([startMin, endMin) in local minutes; no cross-midnight).
35
+ */
36
+ call_time_window?: BatchCallResponse.CallTimeWindow;
37
+ }
38
+ export declare namespace BatchCallResponse {
39
+ /**
40
+ * Canonicalized minutes-based time windows. Present only if specified when the
41
+ * batch call was created or updated. See CallTimeWindow for format details
42
+ * ([startMin, endMin) in local minutes; no cross-midnight).
43
+ */
44
+ interface CallTimeWindow {
45
+ /**
46
+ * List of TimeWindow (start/end in minutes since local midnight).
47
+ */
48
+ windows: Array<CallTimeWindow.Window>;
49
+ /**
50
+ * Optional list of days to which the windows apply. If omitted or empty, windows
51
+ * apply to every day.
52
+ */
53
+ day?: Array<'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'>;
54
+ /**
55
+ * IANA timezone (e.g. America/Los_Angeles). Defaults to America/Los_Angeles if
56
+ * omitted.
57
+ */
58
+ timezone?: string;
59
+ }
60
+ namespace CallTimeWindow {
61
+ interface Window {
62
+ /**
63
+ * End time in minutes since local midnight.
64
+ */
65
+ end: number;
66
+ /**
67
+ * Start time in minutes since local midnight.
68
+ */
69
+ start: number;
70
+ }
71
+ }
72
+ }
73
+ export interface BatchCallCreateBatchCallParams {
74
+ /**
75
+ * The number you own in E.164 format. Must be a number purchased from Retell or
76
+ * imported to Retell.
77
+ */
78
+ from_number: string;
79
+ /**
80
+ * A list of individual call tasks to be executed as part of the batch call. Each
81
+ * task represents a single outbound call and includes details such as the
82
+ * recipient's phone number and optional dynamic variables to personalize the call
83
+ * content.
84
+ */
85
+ tasks: Array<BatchCallCreateBatchCallParams.Task>;
86
+ /**
87
+ * Allowed calling windows in a specific timezone. Each window is a half-open
88
+ * interval [startMin, endMin) in minutes since 00:00 local time. Cross-midnight
89
+ * windows are NOT allowed (must satisfy startMin < endMin). `endMin = 1440`
90
+ * (24:00) is valid.
91
+ */
92
+ call_time_window?: BatchCallCreateBatchCallParams.CallTimeWindow;
93
+ /**
94
+ * The name of the batch call. Only used for your own reference.
95
+ */
96
+ name?: string;
97
+ /**
98
+ * Number of concurrency reserved for all other calls that are not triggered by
99
+ * batch calls, such as inbound calls.
100
+ */
101
+ reserved_concurrency?: number;
102
+ /**
103
+ * The scheduled time for sending the batch call, represented as a Unix timestamp
104
+ * in milliseconds. If omitted, the call will be sent immediately.
105
+ */
106
+ trigger_timestamp?: number;
107
+ }
108
+ export declare namespace BatchCallCreateBatchCallParams {
109
+ interface Task {
110
+ /**
111
+ * The The number you want to call, in E.164 format. If using a number purchased
112
+ * from Retell, only US numbers are supported as destination.
113
+ */
114
+ to_number: string;
115
+ /**
116
+ * For this particular call, override agent configuration with these settings. This
117
+ * allows you to customize agent behavior for individual calls without modifying
118
+ * the base agent.
119
+ */
120
+ agent_override?: Task.AgentOverride;
121
+ /**
122
+ * If true, the e.164 validation will be ignored for the from_number. This can be
123
+ * useful when you want to dial to internal pseudo numbers. This only applies when
124
+ * you are using custom telephony and does not apply when you are using Retell
125
+ * Telephony. If omitted, the default value is false.
126
+ */
127
+ ignore_e164_validation?: boolean;
128
+ /**
129
+ * An arbitrary object for storage purpose only. You can put anything here like
130
+ * your internal customer id associated with the call. Not used for processing. You
131
+ * can later get this field from the call object.
132
+ */
133
+ metadata?: unknown;
134
+ /**
135
+ * For this particular call, override the agent used with this agent id. This does
136
+ * not bind the agent to this number, this is for one time override.
137
+ */
138
+ override_agent_id?: string;
139
+ /**
140
+ * For this particular call, override the agent version used with this version.
141
+ * This does not bind the agent to this number, this is for one time override.
142
+ */
143
+ override_agent_version?: number;
144
+ /**
145
+ * Add optional dynamic variables in key value pairs of string that injects into
146
+ * your Response Engine prompt and tool description. Only applicable for Response
147
+ * Engine.
148
+ */
149
+ retell_llm_dynamic_variables?: {
150
+ [key: string]: unknown;
151
+ };
152
+ }
153
+ namespace Task {
154
+ /**
155
+ * For this particular call, override agent configuration with these settings. This
156
+ * allows you to customize agent behavior for individual calls without modifying
157
+ * the base agent.
158
+ */
159
+ interface AgentOverride {
160
+ /**
161
+ * Override agent configuration settings. Any properties specified here will
162
+ * override the base agent configuration for this call.
163
+ */
164
+ agent?: AgentOverride.Agent;
165
+ /**
166
+ * Override conversation flow configuration settings. Only applicable when using
167
+ * conversation flow as the response engine. Supported attributes - model_choice,
168
+ * model_temperature, tool_call_strict_mode, knowledge_base_ids, kb_config,
169
+ * start_speaker, begin_after_user_silence_ms.
170
+ */
171
+ conversation_flow?: AgentOverride.ConversationFlow;
172
+ /**
173
+ * Override Retell LLM configuration settings. Only applicable when using Retell
174
+ * LLM as the response engine. Supported attributes - model, s2s_model,
175
+ * model_temperature, model_high_priority, tool_call_strict_mode,
176
+ * knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
177
+ * begin_message.
178
+ */
179
+ retell_llm?: AgentOverride.RetellLlm;
180
+ }
181
+ namespace AgentOverride {
182
+ /**
183
+ * Override agent configuration settings. Any properties specified here will
184
+ * override the base agent configuration for this call.
185
+ */
186
+ interface Agent {
187
+ /**
188
+ * The name of the agent. Only used for your own reference.
189
+ */
190
+ agent_name?: string | null;
191
+ /**
192
+ * If set to true, DTMF input will be accepted and processed. If false, any DTMF
193
+ * input will be ignored. Default to true.
194
+ */
195
+ allow_user_dtmf?: boolean;
196
+ /**
197
+ * If set, will add ambient environment sound to the call to make experience more
198
+ * realistic. Currently supports the following options:
199
+ *
200
+ * - `coffee-shop`: Coffee shop ambience with people chatting in background.
201
+ * [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/coffee-shop.wav)
202
+ * - `convention-hall`: Convention hall ambience, with some echo and people
203
+ * chatting in background.
204
+ * [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/convention-hall.wav)
205
+ * - `summer-outdoor`: Summer outdoor ambience with cicada chirping.
206
+ * [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/summer-outdoor.wav)
207
+ * - `mountain-outdoor`: Mountain outdoor ambience with birds singing.
208
+ * [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/mountain-outdoor.wav)
209
+ * - `static-noise`: Constant static noise.
210
+ * [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/static-noise.wav)
211
+ * - `call-center`: Call center work noise.
212
+ * [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/call-center.wav)
213
+ * Set to `null` to remove ambient sound from this agent.
214
+ */
215
+ ambient_sound?: 'coffee-shop' | 'convention-hall' | 'summer-outdoor' | 'mountain-outdoor' | 'static-noise' | 'call-center' | null;
216
+ /**
217
+ * If set, will control the volume of the ambient sound. Value ranging from [0,2].
218
+ * Lower value means quieter ambient sound, while higher value means louder ambient
219
+ * sound. If unset, default value 1 will apply.
220
+ */
221
+ ambient_sound_volume?: number;
222
+ /**
223
+ * Prompt to determine whether the post call or chat analysis should mark the
224
+ * interaction as successful. Set to null to use the default prompt.
225
+ */
226
+ analysis_successful_prompt?: string | null;
227
+ /**
228
+ * Prompt to guide how the post call or chat analysis summary should be generated.
229
+ * When unset, the default system prompt is used. Set to null to use the default
230
+ * prompt.
231
+ */
232
+ analysis_summary_prompt?: string | null;
233
+ /**
234
+ * Only applicable when enable_backchannel is true. Controls how often the agent
235
+ * would backchannel when a backchannel is possible. Value ranging from [0,1].
236
+ * Lower value means less frequent backchannel, while higher value means more
237
+ * frequent backchannel. If unset, default value 0.8 will apply.
238
+ */
239
+ backchannel_frequency?: number;
240
+ /**
241
+ * Only applicable when enable_backchannel is true. A list of words that the agent
242
+ * would use as backchannel. If not set, default backchannel words will apply.
243
+ * Check out
244
+ * [backchannel default words](/agent/interaction-configuration#backchannel) for
245
+ * more details. Note that certain voices do not work too well with certain words,
246
+ * so it's recommended to experiment before adding any words.
247
+ */
248
+ backchannel_words?: Array<string> | null;
249
+ /**
250
+ * If set, will delay the first message by the specified amount of milliseconds, so
251
+ * that it gives user more time to prepare to take the call. Valid range is [0,
252
+ * 5000]. If not set or set to 0, agent will speak immediately. Only applicable
253
+ * when agent speaks first.
254
+ */
255
+ begin_message_delay_ms?: number;
256
+ /**
257
+ * Provide a customized list of keywords to bias the transcriber model, so that
258
+ * these words are more likely to get transcribed. Commonly used for names, brands,
259
+ * street, etc.
260
+ */
261
+ boosted_keywords?: Array<string> | null;
262
+ /**
263
+ * Custom STT configuration. Only used when stt_mode is set to custom.
264
+ */
265
+ custom_stt_config?: Agent.CustomSttConfig;
266
+ /**
267
+ * Granular setting to manage how Retell stores sensitive data (transcripts,
268
+ * recordings, logs, etc.). This replaces the deprecated
269
+ * `opt_out_sensitive_data_storage` field.
270
+ *
271
+ * - `everything`: Store all data including transcripts, recordings, and logs.
272
+ * - `everything_except_pii`: Store data without PII when PII is detected.
273
+ * - `basic_attributes_only`: Store only basic attributes; no
274
+ * transcripts/recordings/logs. If not set, default value of "everything" will
275
+ * apply.
276
+ */
277
+ data_storage_setting?: 'everything' | 'everything_except_pii' | 'basic_attributes_only';
278
+ /**
279
+ * If set, determines what denoising mode to use. Use "no-denoise" to bypass all
280
+ * audio denoising. Default to noise-cancellation.
281
+ */
282
+ denoising_mode?: 'no-denoise' | 'noise-cancellation' | 'noise-and-background-speech-cancellation';
283
+ /**
284
+ * Controls whether the agent would backchannel (agent interjects the speaker with
285
+ * phrases like "yeah", "uh-huh" to signify interest and engagement). Backchannel
286
+ * when enabled tends to show up more in longer user utterances. If not set, agent
287
+ * will not backchannel.
288
+ */
289
+ enable_backchannel?: boolean;
290
+ /**
291
+ * If set to true, will enable dynamic voice speed adjustment based on the user's
292
+ * speech rate and conversation context. If unset, default value false will apply.
293
+ */
294
+ enable_dynamic_voice_speed?: boolean;
295
+ /**
296
+ * If set to true, will detect whether the call enters a voicemail. Note that this
297
+ * feature is only available for phone calls.
298
+ */
299
+ enable_voicemail_detection?: boolean;
300
+ /**
301
+ * If users stay silent for a period after agent speech, end the call. The minimum
302
+ * value allowed is 10,000 ms (10 s). By default, this is set to 600000 (10 min).
303
+ */
304
+ end_call_after_silence_ms?: number;
305
+ /**
306
+ * When TTS provider for the selected voice is experiencing outages, we would use
307
+ * fallback voices listed here for the agent. Voice id and the fallback voice ids
308
+ * must be from different TTS providers. The system would go through the list in
309
+ * order, if the first one in the list is also having outage, it would use the next
310
+ * one. Set to null to remove voice fallback for the agent.
311
+ */
312
+ fallback_voice_ids?: Array<string> | null;
313
+ /**
314
+ * Configuration for guardrail checks to detect and prevent prohibited topics in
315
+ * agent output and user input.
316
+ */
317
+ guardrail_config?: Agent.GuardrailConfig;
318
+ /**
319
+ * Controls how sensitive the agent is to user interruptions. Value ranging from
320
+ * [0,1]. Lower value means it will take longer / more words for user to interrupt
321
+ * agent, while higher value means it's easier for user to interrupt agent. If
322
+ * unset, default value 1 will apply. When this is set to 0, agent would never be
323
+ * interrupted.
324
+ */
325
+ interruption_sensitivity?: number;
326
+ /**
327
+ * Whether the agent is public. When set to true, the agent is available for public
328
+ * agent preview link.
329
+ */
330
+ is_public?: boolean | null;
331
+ /**
332
+ * If this option is set, the call will try to detect IVR in the first 3 minutes of
333
+ * the call. Actions defined will be applied when the IVR is detected. Set this to
334
+ * null to disable IVR detection.
335
+ */
336
+ ivr_option?: Agent.IvrOption | null;
337
+ /**
338
+ * Specifies what language (and dialect) the speech recognition will operate in.
339
+ * For instance, selecting `en-GB` optimizes speech recognition for British
340
+ * English. If unset, will use default value `en-US`. Select `multi` for
341
+ * multilingual support.
342
+ */
343
+ language?: 'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA' | 'multi';
344
+ /**
345
+ * Maximum allowed length for the call, will force end the call if reached. The
346
+ * minimum value allowed is 60,000 ms (1 min), and maximum value allowed is
347
+ * 7,200,000 (2 hours). By default, this is set to 3,600,000 (1 hour).
348
+ */
349
+ max_call_duration_ms?: number;
350
+ /**
351
+ * If set to true, will normalize the some part of text (number, currency, date,
352
+ * etc) to spoken to its spoken form for more consistent speech synthesis
353
+ * (sometimes the voice synthesize system itself might read these wrong with the
354
+ * raw text). For example, it will convert "Call my number 2137112342 on Jul 5th,
355
+ * 2024 for the $24.12 payment" to "Call my number two one three seven one one two
356
+ * three four two on july fifth, twenty twenty four for the twenty four dollars
357
+ * twelve cents payment" before starting audio generation.
358
+ */
359
+ normalize_for_speech?: boolean;
360
+ /**
361
+ * Whether this agent opts in for signed URLs for public logs and recordings. When
362
+ * enabled, the generated URLs will include security signatures that restrict
363
+ * access and automatically expire after 24 hours.
364
+ */
365
+ opt_in_signed_url?: boolean;
366
+ /**
367
+ * Configuration for PII scrubbing from transcripts and recordings.
368
+ */
369
+ pii_config?: Agent.PiiConfig;
370
+ /**
371
+ * Post call analysis data to extract from the call. This data will augment the
372
+ * pre-defined variables extracted in the call analysis. This will be available
373
+ * after the call ends.
374
+ */
375
+ post_call_analysis_data?: Array<Agent.StringAnalysisData | Agent.EnumAnalysisData | Agent.BooleanAnalysisData | Agent.NumberAnalysisData> | null;
376
+ /**
377
+ * The model to use for post call analysis. Default to gpt-4.1-mini.
378
+ */
379
+ post_call_analysis_model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | null;
380
+ /**
381
+ * A list of words / phrases and their pronunciation to be used to guide the audio
382
+ * synthesize for consistent pronunciation. Currently only supported for English &
383
+ * 11labs voices. Set to null to remove pronunciation dictionary from this agent.
384
+ */
385
+ pronunciation_dictionary?: Array<Agent.PronunciationDictionary> | null;
386
+ /**
387
+ * If set, controls how many times agent would remind user when user is
388
+ * unresponsive. Must be a non negative integer. If unset, default value of 1 will
389
+ * apply (remind once). Set to 0 to disable agent from reminding.
390
+ */
391
+ reminder_max_count?: number;
392
+ /**
393
+ * If set (in milliseconds), will trigger a reminder to the agent to speak if the
394
+ * user has been silent for the specified duration after some agent speech. Must be
395
+ * a positive number. If unset, default value of 10000 ms (10 s) will apply.
396
+ */
397
+ reminder_trigger_ms?: number;
398
+ /**
399
+ * The Response Engine to attach to the agent. It is used to generate responses for
400
+ * the agent. You need to create a Response Engine first before attaching it to an
401
+ * agent.
402
+ */
403
+ response_engine?: Agent.ResponseEngineRetellLm | Agent.ResponseEngineCustomLm | Agent.ResponseEngineConversationFlow;
404
+ /**
405
+ * Controls how responsive is the agent. Value ranging from [0,1]. Lower value
406
+ * means less responsive agent (wait more, respond slower), while higher value
407
+ * means faster exchanges (respond when it can). If unset, default value 1 will
408
+ * apply.
409
+ */
410
+ responsiveness?: number;
411
+ /**
412
+ * If set, the phone ringing will last for the specified amount of milliseconds.
413
+ * This applies for both outbound call ringtime, and call transfer ringtime.
414
+ * Default to 30000 (30 s). Valid range is [5000, 90000].
415
+ */
416
+ ring_duration_ms?: number;
417
+ /**
418
+ * The expiration time for the signed url in milliseconds. Only applicable when
419
+ * opt_in_signed_url is true. If not set, default value of 86400000 (24 hours) will
420
+ * apply.
421
+ */
422
+ signed_url_expiration_ms?: number | null;
423
+ /**
424
+ * If set, determines whether speech to text should focus on latency or accuracy.
425
+ * Default to fast mode. When set to custom, custom_stt_config must be provided.
426
+ */
427
+ stt_mode?: 'fast' | 'accurate' | 'custom';
428
+ user_dtmf_options?: Agent.UserDtmfOptions | null;
429
+ /**
430
+ * Optional description of the agent version. Used for your own reference and
431
+ * documentation.
432
+ */
433
+ version_description?: string | null;
434
+ /**
435
+ * If set, determines the vocabulary set to use for transcription. This setting
436
+ * only applies for English agents, for non English agent, this setting is a no-op.
437
+ * Default to general.
438
+ */
439
+ vocab_specialization?: 'general' | 'medical';
440
+ /**
441
+ * Controls the emotional tone of the agent's voice. Currently supported for
442
+ * Cartesia and Minimax TTS providers. If unset, no emotion will be used.
443
+ */
444
+ voice_emotion?: 'calm' | 'sympathetic' | 'happy' | 'sad' | 'angry' | 'fearful' | 'surprised' | null;
445
+ /**
446
+ * Unique voice id used for the agent. Find list of available voices and their
447
+ * preview in Dashboard.
448
+ */
449
+ voice_id?: string;
450
+ /**
451
+ * Select the voice model used for the selected voice. Each provider has a set of
452
+ * available voice models. Set to null to remove voice model selection, and default
453
+ * ones will apply. Check out dashboard for more details of each voice model.
454
+ */
455
+ voice_model?: 'eleven_turbo_v2' | 'eleven_flash_v2' | 'eleven_turbo_v2_5' | 'eleven_flash_v2_5' | 'eleven_multilingual_v2' | 'sonic-2' | 'sonic-3' | 'sonic-3-latest' | 'sonic-turbo' | 'tts-1' | 'gpt-4o-mini-tts' | 'speech-02-turbo' | 'speech-2.8-turbo' | null;
456
+ /**
457
+ * Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower
458
+ * speech, while higher value means faster speech rate. If unset, default value 1
459
+ * will apply.
460
+ */
461
+ voice_speed?: number;
462
+ /**
463
+ * Controls how stable the voice is. Value ranging from [0,2]. Lower value means
464
+ * more stable, and higher value means more variant speech generation. Currently
465
+ * this setting only applies to `11labs` voices. If unset, default value 1 will
466
+ * apply.
467
+ */
468
+ voice_temperature?: number;
469
+ /**
470
+ * Configures when to stop running voicemail detection, as it becomes unlikely to
471
+ * hit voicemail after a couple minutes, and keep running it will only have
472
+ * negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum value
473
+ * allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
474
+ */
475
+ voicemail_detection_timeout_ms?: number;
476
+ /**
477
+ * The message to be played when the call enters a voicemail. Note that this
478
+ * feature is only available for phone calls. If you want to hangup after hitting
479
+ * voicemail, set this to empty string.
480
+ */
481
+ voicemail_message?: string;
482
+ /**
483
+ * If this option is set, the call will try to detect voicemail in the first 3
484
+ * minutes of the call. Actions defined (hangup, or leave a message) will be
485
+ * applied when the voicemail is detected. Set this to null to disable voicemail
486
+ * detection.
487
+ */
488
+ voicemail_option?: Agent.VoicemailOption | null;
489
+ /**
490
+ * If set, will control the volume of the agent. Value ranging from [0,2]. Lower
491
+ * value means quieter agent speech, while higher value means louder agent speech.
492
+ * If unset, default value 1 will apply.
493
+ */
494
+ volume?: number;
495
+ /**
496
+ * Which webhook events this agent should receive. If not set, defaults to
497
+ * call_started, call_ended, call_analyzed.
498
+ */
499
+ webhook_events?: Array<'call_started' | 'call_ended' | 'call_analyzed' | 'transcript_updated' | 'transfer_started' | 'transfer_bridged' | 'transfer_cancelled' | 'transfer_ended'> | null;
500
+ /**
501
+ * The timeout for the webhook in milliseconds. If not set, default value of 10000
502
+ * will apply.
503
+ */
504
+ webhook_timeout_ms?: number;
505
+ /**
506
+ * The webhook for agent to listen to call events. See what events it would get at
507
+ * [webhook doc](/features/webhook). If set, will binds webhook events for this
508
+ * agent to the specified url, and will ignore the account level webhook for this
509
+ * agent. Set to `null` to remove webhook url from this agent.
510
+ */
511
+ webhook_url?: string | null;
512
+ }
513
+ namespace Agent {
514
+ /**
515
+ * Custom STT configuration. Only used when stt_mode is set to custom.
516
+ */
517
+ interface CustomSttConfig {
518
+ /**
519
+ * Endpointing timeout in milliseconds. Minimum is 100 for azure, 10 for deepgram.
520
+ */
521
+ endpointing_ms: number;
522
+ /**
523
+ * The STT provider to use.
524
+ */
525
+ provider: 'azure' | 'deepgram';
526
+ }
527
+ /**
528
+ * Configuration for guardrail checks to detect and prevent prohibited topics in
529
+ * agent output and user input.
530
+ */
531
+ interface GuardrailConfig {
532
+ /**
533
+ * Selected prohibited user topic categories to check. When user messages contain
534
+ * these topics, the agent will respond with a placeholder message instead of
535
+ * processing the request.
536
+ */
537
+ input_topics?: Array<'platform_integrity_jailbreaking'> | null;
538
+ /**
539
+ * Selected prohibited agent topic categories to check. When agent messages contain
540
+ * these topics, they will be replaced with a placeholder message.
541
+ */
542
+ output_topics?: Array<'harassment' | 'self_harm' | 'sexual_exploitation' | 'violence' | 'defense_and_national_security' | 'illicit_and_harmful_activity' | 'gambling' | 'regulated_professional_advice' | 'child_safety_and_exploitation'> | null;
543
+ }
544
+ /**
545
+ * If this option is set, the call will try to detect IVR in the first 3 minutes of
546
+ * the call. Actions defined will be applied when the IVR is detected. Set this to
547
+ * null to disable IVR detection.
548
+ */
549
+ interface IvrOption {
550
+ action: IvrOption.Action;
551
+ }
552
+ namespace IvrOption {
553
+ interface Action {
554
+ type: 'hangup';
555
+ }
556
+ }
557
+ /**
558
+ * Configuration for PII scrubbing from transcripts and recordings.
559
+ */
560
+ interface PiiConfig {
561
+ /**
562
+ * List of PII categories to scrub from transcripts and recordings.
563
+ */
564
+ categories: Array<'person_name' | 'address' | 'email' | 'phone_number' | 'ssn' | 'passport' | 'driver_license' | 'credit_card' | 'bank_account' | 'password' | 'pin' | 'medical_id' | 'date_of_birth' | 'customer_account_number'>;
565
+ /**
566
+ * The processing mode for PII scrubbing. Currently only post-call is supported.
567
+ */
568
+ mode: 'post_call';
569
+ }
570
+ interface StringAnalysisData {
571
+ /**
572
+ * Description of the variable.
573
+ */
574
+ description: string;
575
+ /**
576
+ * Name of the variable.
577
+ */
578
+ name: string;
579
+ /**
580
+ * Type of the variable to extract.
581
+ */
582
+ type: 'string';
583
+ /**
584
+ * Examples of the variable value to teach model the style and syntax.
585
+ */
586
+ examples?: Array<string>;
587
+ }
588
+ interface EnumAnalysisData {
589
+ /**
590
+ * The possible values of the variable, must be non empty array.
591
+ */
592
+ choices: Array<string>;
593
+ /**
594
+ * Description of the variable.
595
+ */
596
+ description: string;
597
+ /**
598
+ * Name of the variable.
599
+ */
600
+ name: string;
601
+ /**
602
+ * Type of the variable to extract.
603
+ */
604
+ type: 'enum';
605
+ }
606
+ interface BooleanAnalysisData {
607
+ /**
608
+ * Description of the variable.
609
+ */
610
+ description: string;
611
+ /**
612
+ * Name of the variable.
613
+ */
614
+ name: string;
615
+ /**
616
+ * Type of the variable to extract.
617
+ */
618
+ type: 'boolean';
619
+ }
620
+ interface NumberAnalysisData {
621
+ /**
622
+ * Description of the variable.
623
+ */
624
+ description: string;
625
+ /**
626
+ * Name of the variable.
627
+ */
628
+ name: string;
629
+ /**
630
+ * Type of the variable to extract.
631
+ */
632
+ type: 'number';
633
+ }
634
+ interface PronunciationDictionary {
635
+ /**
636
+ * The phonetic alphabet to be used for pronunciation.
637
+ */
638
+ alphabet: 'ipa' | 'cmu';
639
+ /**
640
+ * Pronunciation of the word in the format of a IPA / CMU pronunciation.
641
+ */
642
+ phoneme: string;
643
+ /**
644
+ * The string of word / phrase to be annotated with pronunciation.
645
+ */
646
+ word: string;
647
+ }
648
+ interface ResponseEngineRetellLm {
649
+ /**
650
+ * id of the Retell LLM Response Engine.
651
+ */
652
+ llm_id: string;
653
+ /**
654
+ * type of the Response Engine.
655
+ */
656
+ type: 'retell-llm';
657
+ /**
658
+ * Version of the Retell LLM Response Engine.
659
+ */
660
+ version?: number | null;
661
+ }
662
+ interface ResponseEngineCustomLm {
663
+ /**
664
+ * LLM websocket url of the custom LLM.
665
+ */
666
+ llm_websocket_url: string;
667
+ /**
668
+ * type of the Response Engine.
669
+ */
670
+ type: 'custom-llm';
671
+ }
672
+ interface ResponseEngineConversationFlow {
673
+ /**
674
+ * ID of the Conversation Flow Response Engine.
675
+ */
676
+ conversation_flow_id: string;
677
+ /**
678
+ * type of the Response Engine.
679
+ */
680
+ type: 'conversation-flow';
681
+ /**
682
+ * Version of the Conversation Flow Response Engine.
683
+ */
684
+ version?: number | null;
685
+ }
686
+ interface UserDtmfOptions {
687
+ /**
688
+ * The maximum number of digits allowed in the user's DTMF (Dual-Tone
689
+ * Multi-Frequency) input per turn. Once this limit is reached, the input is
690
+ * considered complete and a response will be generated immediately.
691
+ */
692
+ digit_limit?: number | null;
693
+ /**
694
+ * A single key that signals the end of DTMF input. Acceptable values include any
695
+ * digit (0-9), the pound/hash symbol (#), or the asterisk (\*).
696
+ */
697
+ termination_key?: string | null;
698
+ /**
699
+ * The time (in milliseconds) to wait for user DTMF input before timing out. The
700
+ * timer resets with each digit received.
701
+ */
702
+ timeout_ms?: number;
703
+ }
704
+ /**
705
+ * If this option is set, the call will try to detect voicemail in the first 3
706
+ * minutes of the call. Actions defined (hangup, or leave a message) will be
707
+ * applied when the voicemail is detected. Set this to null to disable voicemail
708
+ * detection.
709
+ */
710
+ interface VoicemailOption {
711
+ action: VoicemailOption.VoicemailActionPrompt | VoicemailOption.VoicemailActionStaticText | VoicemailOption.VoicemailActionHangup | VoicemailOption.VoicemailActionBridgeTransfer;
712
+ }
713
+ namespace VoicemailOption {
714
+ interface VoicemailActionPrompt {
715
+ /**
716
+ * The prompt used to generate the text to be spoken when the call is detected to
717
+ * be in voicemail.
718
+ */
719
+ text: string;
720
+ type: 'prompt';
721
+ }
722
+ interface VoicemailActionStaticText {
723
+ /**
724
+ * The text to be spoken when the call is detected to be in voicemail.
725
+ */
726
+ text: string;
727
+ type: 'static_text';
728
+ }
729
+ interface VoicemailActionHangup {
730
+ type: 'hangup';
731
+ }
732
+ interface VoicemailActionBridgeTransfer {
733
+ type: 'bridge_transfer';
734
+ }
735
+ }
736
+ }
737
+ /**
738
+ * Override conversation flow configuration settings. Only applicable when using
739
+ * conversation flow as the response engine. Supported attributes - model_choice,
740
+ * model_temperature, tool_call_strict_mode, knowledge_base_ids, kb_config,
741
+ * start_speaker, begin_after_user_silence_ms.
742
+ */
743
+ interface ConversationFlow {
744
+ /**
745
+ * If set, the AI will begin the conversation after waiting for the user for the
746
+ * duration (in milliseconds) specified by this attribute. This only applies if the
747
+ * agent is configured to wait for the user to speak first. If not set, the agent
748
+ * will wait indefinitely for the user to speak.
749
+ */
750
+ begin_after_user_silence_ms?: number | null;
751
+ /**
752
+ * Knowledge base configuration for RAG retrieval.
753
+ */
754
+ kb_config?: ConversationFlow.KBConfig;
755
+ /**
756
+ * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
757
+ */
758
+ knowledge_base_ids?: Array<string> | null;
759
+ /**
760
+ * The model choice for the conversation flow.
761
+ */
762
+ model_choice?: ConversationFlow.ModelChoice;
763
+ /**
764
+ * Controls the randomness of the model's responses. Lower values make responses
765
+ * more deterministic.
766
+ */
767
+ model_temperature?: number | null;
768
+ /**
769
+ * Who starts the conversation - user or agent.
770
+ */
771
+ start_speaker?: 'user' | 'agent';
772
+ /**
773
+ * Whether to use strict mode for tool calls. Only applicable when using certain
774
+ * supported models.
775
+ */
776
+ tool_call_strict_mode?: boolean | null;
777
+ }
778
+ namespace ConversationFlow {
779
+ /**
780
+ * Knowledge base configuration for RAG retrieval.
781
+ */
782
+ interface KBConfig {
783
+ /**
784
+ * Similarity threshold for filtering search results
785
+ */
786
+ filter_score?: number;
787
+ /**
788
+ * Max number of knowledge base chunks to retrieve
789
+ */
790
+ top_k?: number;
791
+ }
792
+ /**
793
+ * The model choice for the conversation flow.
794
+ */
795
+ interface ModelChoice {
796
+ /**
797
+ * The LLM model to use
798
+ */
799
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash';
800
+ /**
801
+ * Type of model choice
802
+ */
803
+ type: 'cascading';
804
+ /**
805
+ * Whether to use high priority pool with more dedicated resource, default false
806
+ */
807
+ high_priority?: boolean;
808
+ }
809
+ }
810
+ /**
811
+ * Override Retell LLM configuration settings. Only applicable when using Retell
812
+ * LLM as the response engine. Supported attributes - model, s2s_model,
813
+ * model_temperature, model_high_priority, tool_call_strict_mode,
814
+ * knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
815
+ * begin_message.
816
+ */
817
+ interface RetellLlm {
818
+ /**
819
+ * If set, the AI will begin the conversation after waiting for the user for the
820
+ * duration (in milliseconds) specified by this attribute. This only applies if the
821
+ * agent is configured to wait for the user to speak first. If not set, the agent
822
+ * will wait indefinitely for the user to speak.
823
+ */
824
+ begin_after_user_silence_ms?: number | null;
825
+ /**
826
+ * First utterance said by the agent in the call. If not set, LLM will dynamically
827
+ * generate a message. If set to "", agent will wait for user to speak first.
828
+ */
829
+ begin_message?: string | null;
830
+ /**
831
+ * Knowledge base configuration for RAG retrieval.
832
+ */
833
+ kb_config?: RetellLlm.KBConfig | null;
834
+ /**
835
+ * A list of knowledge base ids to use for this resource.
836
+ */
837
+ knowledge_base_ids?: Array<string> | null;
838
+ /**
839
+ * Select the underlying text LLM. If not set, would default to gpt-4.1.
840
+ */
841
+ model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | null;
842
+ /**
843
+ * If set to true, will use high priority pool with more dedicated resource to
844
+ * ensure lower and more consistent latency, default to false. This feature usually
845
+ * comes with a higher cost.
846
+ */
847
+ model_high_priority?: boolean | null;
848
+ /**
849
+ * If set, will control the randomness of the response. Value ranging from [0,1].
850
+ * Lower value means more deterministic, while higher value means more random. If
851
+ * unset, default value 0 will apply. Note that for tool calling, a lower value is
852
+ * recommended.
853
+ */
854
+ model_temperature?: number;
855
+ /**
856
+ * Select the underlying speech to speech model. Can only set this or model, not
857
+ * both.
858
+ */
859
+ s2s_model?: 'gpt-4o-realtime' | 'gpt-4o-mini-realtime' | 'gpt-realtime' | 'gpt-realtime-mini' | null;
860
+ /**
861
+ * The speaker who starts the conversation. Required. Must be either 'user' or
862
+ * 'agent'.
863
+ */
864
+ start_speaker?: 'user' | 'agent';
865
+ /**
866
+ * Whether to use strict mode for tool calls. Only applicable when using certain
867
+ * supported models.
868
+ */
869
+ tool_call_strict_mode?: boolean | null;
870
+ }
871
+ namespace RetellLlm {
872
+ /**
873
+ * Knowledge base configuration for RAG retrieval.
874
+ */
875
+ interface KBConfig {
876
+ /**
877
+ * Similarity threshold for filtering search results
878
+ */
879
+ filter_score?: number;
880
+ /**
881
+ * Max number of knowledge base chunks to retrieve
882
+ */
883
+ top_k?: number;
884
+ }
885
+ }
886
+ }
887
+ }
888
+ /**
889
+ * Allowed calling windows in a specific timezone. Each window is a half-open
890
+ * interval [startMin, endMin) in minutes since 00:00 local time. Cross-midnight
891
+ * windows are NOT allowed (must satisfy startMin < endMin). `endMin = 1440`
892
+ * (24:00) is valid.
893
+ */
894
+ interface CallTimeWindow {
895
+ /**
896
+ * List of TimeWindow (start/end in minutes since local midnight).
897
+ */
898
+ windows: Array<CallTimeWindow.Window>;
899
+ /**
900
+ * Optional list of days to which the windows apply. If omitted or empty, windows
901
+ * apply to every day.
902
+ */
903
+ day?: Array<'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'>;
904
+ /**
905
+ * IANA timezone (e.g. America/Los_Angeles). Defaults to America/Los_Angeles if
906
+ * omitted.
907
+ */
908
+ timezone?: string;
909
+ }
910
+ namespace CallTimeWindow {
911
+ interface Window {
912
+ /**
913
+ * End time in minutes since local midnight.
914
+ */
915
+ end: number;
916
+ /**
917
+ * Start time in minutes since local midnight.
918
+ */
919
+ start: number;
920
+ }
921
+ }
922
+ }
923
+ export declare namespace BatchCall {
924
+ export { type BatchCallResponse as BatchCallResponse, type BatchCallCreateBatchCallParams as BatchCallCreateBatchCallParams, };
925
+ }
926
+ //# sourceMappingURL=batch-call.d.mts.map