@elevenlabs/elevenlabs-js 2.20.1 → 2.22.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 (864) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +9 -4
  3. package/api/errors/ConflictError.d.ts +5 -0
  4. package/api/errors/ConflictError.js +50 -0
  5. package/api/errors/index.d.ts +1 -0
  6. package/api/errors/index.js +1 -0
  7. package/api/resources/conversationalAi/conversation/Conversation.d.ts +2 -0
  8. package/api/resources/conversationalAi/conversation/Conversation.js +4 -0
  9. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -4
  10. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +1 -4
  11. package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +3 -5
  12. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
  13. package/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
  14. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
  15. package/api/resources/conversationalAi/resources/index.d.ts +2 -1
  16. package/api/resources/conversationalAi/resources/index.js +3 -2
  17. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +3 -0
  18. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +5 -0
  19. package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +10 -2
  20. package/api/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
  21. package/api/resources/conversationalAi/resources/mcpServers/index.js +1 -0
  22. package/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +2 -0
  23. package/api/resources/conversationalAi/resources/mcpServers/resources/index.js +3 -1
  24. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +94 -0
  25. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +372 -0
  26. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.d.ts +2 -0
  27. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js +17 -0
  28. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +23 -0
  29. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +19 -0
  30. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.d.ts +2 -0
  31. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.js +2 -0
  32. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
  33. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +17 -0
  34. package/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +2 -0
  35. package/api/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
  36. package/api/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
  37. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +6 -4
  38. package/api/resources/conversationalAi/resources/tools/client/Client.js +6 -4
  39. package/api/resources/dubbing/client/Client.d.ts +1 -6
  40. package/api/resources/dubbing/client/Client.js +13 -10
  41. package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -10
  42. package/api/resources/index.d.ts +1 -0
  43. package/api/resources/index.js +2 -1
  44. package/api/resources/music/client/Client.d.ts +6 -0
  45. package/api/resources/music/client/Client.js +73 -0
  46. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -6
  47. package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -6
  48. package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +10 -0
  49. package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -6
  50. package/api/resources/music/client/requests/index.d.ts +1 -0
  51. package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +25 -0
  52. package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +28 -0
  53. package/api/resources/music/types/MusicSeparateStemsRequestStemVariationId.d.ts +6 -0
  54. package/api/resources/music/types/MusicSeparateStemsRequestStemVariationId.js +9 -0
  55. package/api/resources/music/types/index.d.ts +2 -0
  56. package/api/resources/music/types/index.js +2 -0
  57. package/api/resources/pronunciationDictionaries/client/Client.d.ts +0 -1
  58. package/api/resources/pronunciationDictionaries/client/Client.js +3 -2
  59. package/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +1 -2
  60. package/api/resources/speechToText/client/Client.d.ts +0 -1
  61. package/api/resources/speechToText/client/Client.js +3 -2
  62. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -3
  63. package/api/resources/studio/resources/projects/client/Client.d.ts +0 -1
  64. package/api/resources/studio/resources/projects/client/Client.js +3 -2
  65. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +1 -2
  66. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -3
  67. package/api/resources/studio/resources/projects/resources/content/client/Client.js +4 -4
  68. package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +2 -4
  69. package/api/resources/textToDialogue/client/Client.d.ts +27 -0
  70. package/api/resources/textToDialogue/client/Client.js +182 -0
  71. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +32 -0
  72. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +32 -0
  73. package/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
  74. package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
  75. package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +10 -0
  76. package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
  77. package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +10 -0
  78. package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +25 -0
  79. package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +28 -0
  80. package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +25 -0
  81. package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +28 -0
  82. package/api/resources/textToDialogue/types/index.d.ts +4 -0
  83. package/api/resources/textToDialogue/types/index.js +4 -0
  84. package/api/resources/tokens/client/Client.d.ts +20 -0
  85. package/api/resources/tokens/client/Client.js +15 -0
  86. package/api/resources/tokens/client/index.d.ts +1 -0
  87. package/api/resources/tokens/client/index.js +2 -0
  88. package/api/resources/tokens/index.d.ts +2 -0
  89. package/api/resources/tokens/index.js +18 -0
  90. package/api/resources/tokens/resources/index.d.ts +1 -0
  91. package/api/resources/tokens/resources/index.js +37 -0
  92. package/api/resources/tokens/resources/singleUse/client/Client.d.ts +45 -0
  93. package/api/resources/tokens/resources/singleUse/client/Client.js +130 -0
  94. package/api/resources/tokens/resources/singleUse/client/index.d.ts +1 -0
  95. package/api/resources/tokens/resources/singleUse/client/index.js +2 -0
  96. package/api/resources/tokens/resources/singleUse/index.d.ts +1 -0
  97. package/api/resources/tokens/resources/singleUse/index.js +17 -0
  98. package/api/types/ApiIntegrationWebhookOverridesInput.d.ts +11 -0
  99. package/api/types/ApiIntegrationWebhookOverridesInput.js +3 -0
  100. package/api/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.d.ts +2 -0
  101. package/api/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.js +3 -0
  102. package/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +11 -0
  103. package/api/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
  104. package/api/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.d.ts +2 -0
  105. package/api/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.js +3 -0
  106. package/api/types/ApiIntegrationWebhookToolConfigInput.d.ts +28 -0
  107. package/api/types/ApiIntegrationWebhookToolConfigInput.js +3 -0
  108. package/api/types/ApiIntegrationWebhookToolConfigOutput.d.ts +28 -0
  109. package/api/types/ApiIntegrationWebhookToolConfigOutput.js +3 -0
  110. package/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
  111. package/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
  112. package/api/types/BatchCallDetailedResponse.d.ts +2 -1
  113. package/api/types/BatchCallResponse.d.ts +2 -1
  114. package/api/types/ClientToolConfigInput.d.ts +4 -0
  115. package/api/types/ClientToolConfigOutput.d.ts +4 -0
  116. package/api/types/CreateTwilioPhoneNumberRequest.d.ts +3 -0
  117. package/api/types/GuardrailsV1Input.d.ts +5 -0
  118. package/api/types/GuardrailsV1Input.js +3 -0
  119. package/api/types/GuardrailsV1Output.d.ts +5 -0
  120. package/api/types/GuardrailsV1Output.js +3 -0
  121. package/api/types/InvoiceResponse.d.ts +4 -0
  122. package/api/types/LiteralJsonSchemaProperty.d.ts +2 -0
  123. package/api/types/LiteralOverride.d.ts +6 -0
  124. package/api/types/LiteralOverride.js +3 -0
  125. package/api/types/LiteralOverrideConstantValue.d.ts +1 -0
  126. package/api/types/LiteralOverrideConstantValue.js +3 -0
  127. package/api/types/Llm.d.ts +2 -0
  128. package/api/types/Llm.js +2 -0
  129. package/api/types/McpServerConfigInput.d.ts +9 -1
  130. package/api/types/McpServerConfigInputRequestHeadersValue.d.ts +1 -1
  131. package/api/types/McpServerConfigOutput.d.ts +9 -1
  132. package/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +1 -1
  133. package/api/types/McpToolConfigOverride.d.ts +17 -0
  134. package/api/types/McpToolConfigOverride.js +3 -0
  135. package/api/types/MetricType.d.ts +1 -0
  136. package/api/types/MetricType.js +1 -0
  137. package/api/types/ModerationConfig.d.ts +14 -0
  138. package/api/types/ModerationConfig.js +3 -0
  139. package/api/types/ModerationGuardrailInput.d.ts +4 -0
  140. package/api/types/ModerationGuardrailInput.js +3 -0
  141. package/api/types/ModerationGuardrailOutput.d.ts +4 -0
  142. package/api/types/ModerationGuardrailOutput.js +3 -0
  143. package/api/types/ObjectOverrideInput.d.ts +6 -0
  144. package/api/types/ObjectOverrideInput.js +3 -0
  145. package/api/types/ObjectOverrideInputPropertiesValue.d.ts +2 -0
  146. package/api/types/ObjectOverrideInputPropertiesValue.js +3 -0
  147. package/api/types/ObjectOverrideOutput.d.ts +6 -0
  148. package/api/types/ObjectOverrideOutput.js +3 -0
  149. package/api/types/ObjectOverrideOutputPropertiesValue.d.ts +2 -0
  150. package/api/types/ObjectOverrideOutputPropertiesValue.js +3 -0
  151. package/api/types/OutboundCallRecipient.d.ts +2 -1
  152. package/api/types/OutboundCallRecipientResponseModel.d.ts +2 -1
  153. package/api/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -0
  154. package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +6 -0
  155. package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +9 -0
  156. package/api/types/PhoneNumberDynamicVariableTransferDestination.d.ts +3 -0
  157. package/api/types/PhoneNumberDynamicVariableTransferDestination.js +3 -0
  158. package/api/types/PhoneNumberTransferTransferDestination.d.ts +7 -1
  159. package/api/types/PromptAgentApiModelInputToolsItem.d.ts +4 -1
  160. package/api/types/PromptAgentApiModelOutputToolsItem.d.ts +4 -1
  161. package/api/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +4 -1
  162. package/api/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +4 -1
  163. package/api/types/QueryOverride.d.ts +5 -0
  164. package/api/types/QueryOverride.js +3 -0
  165. package/api/types/ReferencedToolCommonModel.d.ts +1 -1
  166. package/api/types/ReferencedToolCommonModelType.d.ts +9 -0
  167. package/api/types/ReferencedToolCommonModelType.js +12 -0
  168. package/api/types/RegionConfigRequest.d.ts +9 -0
  169. package/api/types/RegionConfigRequest.js +3 -0
  170. package/api/types/SingleUseTokenResponseModel.d.ts +4 -0
  171. package/api/types/SingleUseTokenResponseModel.js +3 -0
  172. package/api/types/SingleUseTokenType.d.ts +1 -0
  173. package/api/types/SingleUseTokenType.js +3 -0
  174. package/api/types/SipUriDynamicVariableTransferDestination.d.ts +3 -0
  175. package/api/types/SipUriDynamicVariableTransferDestination.js +3 -0
  176. package/api/types/SongSection.d.ts +1 -1
  177. package/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
  178. package/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
  179. package/api/types/SystemToolConfigInput.d.ts +4 -0
  180. package/api/types/SystemToolConfigOutput.d.ts +4 -0
  181. package/api/types/ThresholdGuardrail.d.ts +4 -0
  182. package/api/types/ThresholdGuardrail.js +3 -0
  183. package/api/types/ToolCallSoundBehavior.d.ts +6 -0
  184. package/api/types/ToolCallSoundBehavior.js +9 -0
  185. package/api/types/ToolCallSoundType.d.ts +9 -0
  186. package/api/types/ToolCallSoundType.js +12 -0
  187. package/api/types/ToolRequestModelToolConfig.d.ts +4 -5
  188. package/api/types/ToolResponseModelToolConfig.d.ts +4 -1
  189. package/api/types/ToolType.d.ts +2 -0
  190. package/api/types/ToolType.js +2 -0
  191. package/api/types/TurnConfig.d.ts +2 -2
  192. package/api/types/TurnConfigWorkflowOverride.d.ts +2 -2
  193. package/api/types/TurnEagerness.d.ts +7 -0
  194. package/api/types/TurnEagerness.js +10 -0
  195. package/api/types/TwilioEdgeLocation.d.ts +13 -0
  196. package/api/types/TwilioEdgeLocation.js +16 -0
  197. package/api/types/TwilioRegionId.d.ts +7 -0
  198. package/api/types/TwilioRegionId.js +10 -0
  199. package/api/types/User.d.ts +0 -2
  200. package/api/types/VadConfig.d.ts +0 -2
  201. package/api/types/VadConfigWorkflowOverride.d.ts +0 -2
  202. package/api/types/VoiceSegment.d.ts +14 -0
  203. package/api/types/VoiceSegment.js +3 -0
  204. package/api/types/WebhookToolConfigInput.d.ts +6 -2
  205. package/api/types/WebhookToolConfigOutput.d.ts +6 -2
  206. package/api/types/WorkflowPhoneNumberNodeModelInputTransferDestination.d.ts +7 -1
  207. package/api/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.d.ts +7 -1
  208. package/api/types/WorkspaceResourceType.d.ts +4 -0
  209. package/api/types/WorkspaceResourceType.js +4 -0
  210. package/api/types/index.d.ts +35 -5
  211. package/api/types/index.js +35 -5
  212. package/dist/Client.d.ts +3 -0
  213. package/dist/Client.js +9 -4
  214. package/dist/api/errors/ConflictError.d.ts +5 -0
  215. package/dist/api/errors/ConflictError.js +50 -0
  216. package/dist/api/errors/index.d.ts +1 -0
  217. package/dist/api/errors/index.js +1 -0
  218. package/dist/api/resources/conversationalAi/conversation/Conversation.d.ts +2 -0
  219. package/dist/api/resources/conversationalAi/conversation/Conversation.js +4 -0
  220. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -4
  221. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +1 -4
  222. package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +3 -5
  223. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
  224. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
  225. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
  226. package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -1
  227. package/dist/api/resources/conversationalAi/resources/index.js +3 -2
  228. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +3 -0
  229. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +5 -0
  230. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +10 -2
  231. package/dist/api/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
  232. package/dist/api/resources/conversationalAi/resources/mcpServers/index.js +1 -0
  233. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +2 -0
  234. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.js +3 -1
  235. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +94 -0
  236. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +372 -0
  237. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.d.ts +2 -0
  238. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js +17 -0
  239. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +23 -0
  240. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js +3 -0
  241. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +19 -0
  242. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js +3 -0
  243. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.d.ts +2 -0
  244. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.js +2 -0
  245. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
  246. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +17 -0
  247. package/dist/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +2 -0
  248. package/dist/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +3 -0
  249. package/dist/api/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
  250. package/dist/api/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
  251. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +6 -4
  252. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +6 -4
  253. package/dist/api/resources/dubbing/client/Client.d.ts +1 -6
  254. package/dist/api/resources/dubbing/client/Client.js +13 -10
  255. package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -10
  256. package/dist/api/resources/index.d.ts +1 -0
  257. package/dist/api/resources/index.js +2 -1
  258. package/dist/api/resources/music/client/Client.d.ts +6 -0
  259. package/dist/api/resources/music/client/Client.js +73 -0
  260. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -6
  261. package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -6
  262. package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +10 -0
  263. package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.js +3 -0
  264. package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -6
  265. package/dist/api/resources/music/client/requests/index.d.ts +1 -0
  266. package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +25 -0
  267. package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +28 -0
  268. package/dist/api/resources/music/types/MusicSeparateStemsRequestStemVariationId.d.ts +6 -0
  269. package/dist/api/resources/music/types/MusicSeparateStemsRequestStemVariationId.js +9 -0
  270. package/dist/api/resources/music/types/index.d.ts +2 -0
  271. package/dist/api/resources/music/types/index.js +2 -0
  272. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +0 -1
  273. package/dist/api/resources/pronunciationDictionaries/client/Client.js +3 -2
  274. package/dist/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +1 -2
  275. package/dist/api/resources/speechToText/client/Client.d.ts +0 -1
  276. package/dist/api/resources/speechToText/client/Client.js +3 -2
  277. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -3
  278. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +0 -1
  279. package/dist/api/resources/studio/resources/projects/client/Client.js +3 -2
  280. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +1 -2
  281. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -3
  282. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +4 -4
  283. package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +2 -4
  284. package/dist/api/resources/textToDialogue/client/Client.d.ts +27 -0
  285. package/dist/api/resources/textToDialogue/client/Client.js +182 -0
  286. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +32 -0
  287. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +3 -0
  288. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +32 -0
  289. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +3 -0
  290. package/dist/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
  291. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
  292. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +10 -0
  293. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
  294. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +10 -0
  295. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +25 -0
  296. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +28 -0
  297. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +25 -0
  298. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +28 -0
  299. package/dist/api/resources/textToDialogue/types/index.d.ts +4 -0
  300. package/dist/api/resources/textToDialogue/types/index.js +4 -0
  301. package/dist/api/resources/tokens/client/Client.d.ts +20 -0
  302. package/dist/api/resources/tokens/client/Client.js +15 -0
  303. package/dist/api/resources/tokens/client/index.d.ts +1 -0
  304. package/dist/api/resources/tokens/client/index.js +2 -0
  305. package/dist/api/resources/tokens/index.d.ts +2 -0
  306. package/dist/api/resources/tokens/index.js +18 -0
  307. package/dist/api/resources/tokens/resources/index.d.ts +1 -0
  308. package/dist/api/resources/tokens/resources/index.js +37 -0
  309. package/dist/api/resources/tokens/resources/singleUse/client/Client.d.ts +45 -0
  310. package/dist/api/resources/tokens/resources/singleUse/client/Client.js +130 -0
  311. package/dist/api/resources/tokens/resources/singleUse/client/index.d.ts +1 -0
  312. package/dist/api/resources/tokens/resources/singleUse/client/index.js +2 -0
  313. package/dist/api/resources/tokens/resources/singleUse/index.d.ts +1 -0
  314. package/dist/api/resources/tokens/resources/singleUse/index.js +17 -0
  315. package/dist/api/types/ApiIntegrationWebhookOverridesInput.d.ts +11 -0
  316. package/dist/api/types/ApiIntegrationWebhookOverridesInput.js +3 -0
  317. package/dist/api/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.d.ts +2 -0
  318. package/dist/api/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.js +3 -0
  319. package/dist/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +11 -0
  320. package/dist/api/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
  321. package/dist/api/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.d.ts +2 -0
  322. package/dist/api/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.js +3 -0
  323. package/dist/api/types/ApiIntegrationWebhookToolConfigInput.d.ts +28 -0
  324. package/dist/api/types/ApiIntegrationWebhookToolConfigInput.js +3 -0
  325. package/dist/api/types/ApiIntegrationWebhookToolConfigOutput.d.ts +28 -0
  326. package/dist/api/types/ApiIntegrationWebhookToolConfigOutput.js +3 -0
  327. package/dist/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
  328. package/dist/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
  329. package/dist/api/types/BatchCallDetailedResponse.d.ts +2 -1
  330. package/dist/api/types/BatchCallResponse.d.ts +2 -1
  331. package/dist/api/types/ClientToolConfigInput.d.ts +4 -0
  332. package/dist/api/types/ClientToolConfigOutput.d.ts +4 -0
  333. package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +3 -0
  334. package/dist/api/types/GuardrailsV1Input.d.ts +5 -0
  335. package/dist/api/types/GuardrailsV1Input.js +3 -0
  336. package/dist/api/types/GuardrailsV1Output.d.ts +5 -0
  337. package/dist/api/types/GuardrailsV1Output.js +3 -0
  338. package/dist/api/types/InvoiceResponse.d.ts +4 -0
  339. package/dist/api/types/LiteralJsonSchemaProperty.d.ts +2 -0
  340. package/dist/api/types/LiteralOverride.d.ts +6 -0
  341. package/dist/api/types/LiteralOverride.js +3 -0
  342. package/dist/api/types/LiteralOverrideConstantValue.d.ts +1 -0
  343. package/dist/api/types/LiteralOverrideConstantValue.js +3 -0
  344. package/dist/api/types/Llm.d.ts +2 -0
  345. package/dist/api/types/Llm.js +2 -0
  346. package/dist/api/types/McpServerConfigInput.d.ts +9 -1
  347. package/dist/api/types/McpServerConfigInputRequestHeadersValue.d.ts +1 -1
  348. package/dist/api/types/McpServerConfigOutput.d.ts +9 -1
  349. package/dist/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +1 -1
  350. package/dist/api/types/McpToolConfigOverride.d.ts +17 -0
  351. package/dist/api/types/McpToolConfigOverride.js +3 -0
  352. package/dist/api/types/MetricType.d.ts +1 -0
  353. package/dist/api/types/MetricType.js +1 -0
  354. package/dist/api/types/ModerationConfig.d.ts +14 -0
  355. package/dist/api/types/ModerationConfig.js +3 -0
  356. package/dist/api/types/ModerationGuardrailInput.d.ts +4 -0
  357. package/dist/api/types/ModerationGuardrailInput.js +3 -0
  358. package/dist/api/types/ModerationGuardrailOutput.d.ts +4 -0
  359. package/dist/api/types/ModerationGuardrailOutput.js +3 -0
  360. package/dist/api/types/ObjectOverrideInput.d.ts +6 -0
  361. package/dist/api/types/ObjectOverrideInput.js +3 -0
  362. package/dist/api/types/ObjectOverrideInputPropertiesValue.d.ts +2 -0
  363. package/dist/api/types/ObjectOverrideInputPropertiesValue.js +3 -0
  364. package/dist/api/types/ObjectOverrideOutput.d.ts +6 -0
  365. package/dist/api/types/ObjectOverrideOutput.js +3 -0
  366. package/dist/api/types/ObjectOverrideOutputPropertiesValue.d.ts +2 -0
  367. package/dist/api/types/ObjectOverrideOutputPropertiesValue.js +3 -0
  368. package/dist/api/types/OutboundCallRecipient.d.ts +2 -1
  369. package/dist/api/types/OutboundCallRecipientResponseModel.d.ts +2 -1
  370. package/dist/api/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -0
  371. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +6 -0
  372. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +9 -0
  373. package/dist/api/types/PhoneNumberDynamicVariableTransferDestination.d.ts +3 -0
  374. package/dist/api/types/PhoneNumberDynamicVariableTransferDestination.js +3 -0
  375. package/dist/api/types/PhoneNumberTransferTransferDestination.d.ts +7 -1
  376. package/dist/api/types/PromptAgentApiModelInputToolsItem.d.ts +4 -1
  377. package/dist/api/types/PromptAgentApiModelOutputToolsItem.d.ts +4 -1
  378. package/dist/api/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +4 -1
  379. package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +4 -1
  380. package/dist/api/types/QueryOverride.d.ts +5 -0
  381. package/dist/api/types/QueryOverride.js +3 -0
  382. package/dist/api/types/ReferencedToolCommonModel.d.ts +1 -1
  383. package/dist/api/types/ReferencedToolCommonModelType.d.ts +9 -0
  384. package/dist/api/types/ReferencedToolCommonModelType.js +12 -0
  385. package/dist/api/types/RegionConfigRequest.d.ts +9 -0
  386. package/dist/api/types/RegionConfigRequest.js +3 -0
  387. package/dist/api/types/SingleUseTokenResponseModel.d.ts +4 -0
  388. package/dist/api/types/SingleUseTokenResponseModel.js +3 -0
  389. package/dist/api/types/SingleUseTokenType.d.ts +1 -0
  390. package/dist/api/types/SingleUseTokenType.js +3 -0
  391. package/dist/api/types/SipUriDynamicVariableTransferDestination.d.ts +3 -0
  392. package/dist/api/types/SipUriDynamicVariableTransferDestination.js +3 -0
  393. package/dist/api/types/SongSection.d.ts +1 -1
  394. package/dist/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
  395. package/dist/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
  396. package/dist/api/types/SystemToolConfigInput.d.ts +4 -0
  397. package/dist/api/types/SystemToolConfigOutput.d.ts +4 -0
  398. package/dist/api/types/ThresholdGuardrail.d.ts +4 -0
  399. package/dist/api/types/ThresholdGuardrail.js +3 -0
  400. package/dist/api/types/ToolCallSoundBehavior.d.ts +6 -0
  401. package/dist/api/types/ToolCallSoundBehavior.js +9 -0
  402. package/dist/api/types/ToolCallSoundType.d.ts +9 -0
  403. package/dist/api/types/ToolCallSoundType.js +12 -0
  404. package/dist/api/types/ToolRequestModelToolConfig.d.ts +4 -5
  405. package/dist/api/types/ToolResponseModelToolConfig.d.ts +4 -1
  406. package/dist/api/types/ToolType.d.ts +2 -0
  407. package/dist/api/types/ToolType.js +2 -0
  408. package/dist/api/types/TurnConfig.d.ts +2 -2
  409. package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -2
  410. package/dist/api/types/TurnEagerness.d.ts +7 -0
  411. package/dist/api/types/TurnEagerness.js +10 -0
  412. package/dist/api/types/TwilioEdgeLocation.d.ts +13 -0
  413. package/dist/api/types/TwilioEdgeLocation.js +16 -0
  414. package/dist/api/types/TwilioRegionId.d.ts +7 -0
  415. package/dist/api/types/TwilioRegionId.js +10 -0
  416. package/dist/api/types/User.d.ts +0 -2
  417. package/dist/api/types/VadConfig.d.ts +0 -2
  418. package/dist/api/types/VadConfigWorkflowOverride.d.ts +0 -2
  419. package/dist/api/types/VoiceSegment.d.ts +14 -0
  420. package/dist/api/types/VoiceSegment.js +3 -0
  421. package/dist/api/types/WebhookToolConfigInput.d.ts +6 -2
  422. package/dist/api/types/WebhookToolConfigOutput.d.ts +6 -2
  423. package/dist/api/types/WorkflowPhoneNumberNodeModelInputTransferDestination.d.ts +7 -1
  424. package/dist/api/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.d.ts +7 -1
  425. package/dist/api/types/WorkspaceResourceType.d.ts +4 -0
  426. package/dist/api/types/WorkspaceResourceType.js +4 -0
  427. package/dist/api/types/index.d.ts +35 -5
  428. package/dist/api/types/index.js +35 -5
  429. package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -1
  430. package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -1
  431. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -1
  432. package/dist/serialization/resources/conversationalAi/resources/index.js +3 -2
  433. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +8 -0
  434. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +10 -0
  435. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
  436. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.js +1 -0
  437. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +2 -0
  438. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +3 -1
  439. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.d.ts +1 -0
  440. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js +17 -0
  441. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +19 -0
  442. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js +51 -0
  443. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +18 -0
  444. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js +50 -0
  445. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.d.ts +2 -0
  446. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.js +7 -0
  447. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
  448. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +17 -0
  449. package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +9 -0
  450. package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +41 -0
  451. package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
  452. package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
  453. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -2
  454. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +0 -2
  455. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -2
  456. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +0 -2
  457. package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -2
  458. package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +0 -2
  459. package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +7 -0
  460. package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +61 -0
  461. package/dist/serialization/resources/music/types/MusicSeparateStemsRequestStemVariationId.d.ts +7 -0
  462. package/dist/serialization/resources/music/types/MusicSeparateStemsRequestStemVariationId.js +39 -0
  463. package/dist/serialization/resources/music/types/index.d.ts +2 -0
  464. package/dist/serialization/resources/music/types/index.js +2 -0
  465. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +19 -0
  466. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +51 -0
  467. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +19 -0
  468. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +51 -0
  469. package/dist/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
  470. package/dist/serialization/resources/textToDialogue/client/requests/index.js +5 -1
  471. package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
  472. package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +39 -0
  473. package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
  474. package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +39 -0
  475. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
  476. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +61 -0
  477. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +7 -0
  478. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +61 -0
  479. package/dist/serialization/resources/textToDialogue/types/index.d.ts +4 -0
  480. package/dist/serialization/resources/textToDialogue/types/index.js +4 -0
  481. package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +15 -0
  482. package/{serialization/types/SubscriptionUsageResponseModel.js → dist/serialization/types/ApiIntegrationWebhookOverridesInput.js} +12 -10
  483. package/dist/serialization/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.d.ts +8 -0
  484. package/dist/serialization/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.js +40 -0
  485. package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +15 -0
  486. package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.js +50 -0
  487. package/dist/serialization/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.d.ts +8 -0
  488. package/dist/serialization/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.js +40 -0
  489. package/dist/serialization/types/ApiIntegrationWebhookToolConfigInput.d.ts +28 -0
  490. package/dist/serialization/types/ApiIntegrationWebhookToolConfigInput.js +60 -0
  491. package/dist/serialization/types/ApiIntegrationWebhookToolConfigOutput.d.ts +28 -0
  492. package/dist/serialization/types/ApiIntegrationWebhookToolConfigOutput.js +60 -0
  493. package/dist/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
  494. package/dist/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
  495. package/dist/serialization/types/BatchCallDetailedResponse.d.ts +2 -1
  496. package/dist/serialization/types/BatchCallDetailedResponse.js +2 -1
  497. package/dist/serialization/types/BatchCallResponse.d.ts +2 -1
  498. package/dist/serialization/types/BatchCallResponse.js +2 -1
  499. package/dist/serialization/types/ClientToolConfigInput.d.ts +4 -0
  500. package/dist/serialization/types/ClientToolConfigInput.js +4 -0
  501. package/dist/serialization/types/ClientToolConfigOutput.d.ts +4 -0
  502. package/dist/serialization/types/ClientToolConfigOutput.js +4 -0
  503. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  504. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
  505. package/dist/serialization/types/GuardrailsV1Input.d.ts +11 -0
  506. package/dist/serialization/types/GuardrailsV1Input.js +43 -0
  507. package/dist/serialization/types/GuardrailsV1Output.d.ts +11 -0
  508. package/dist/serialization/types/GuardrailsV1Output.js +43 -0
  509. package/dist/serialization/types/InvoiceResponse.d.ts +2 -0
  510. package/dist/serialization/types/InvoiceResponse.js +2 -0
  511. package/dist/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
  512. package/dist/serialization/types/LiteralJsonSchemaProperty.js +1 -0
  513. package/dist/serialization/types/LiteralOverride.d.ts +12 -0
  514. package/dist/serialization/types/LiteralOverride.js +44 -0
  515. package/dist/serialization/types/LiteralOverrideConstantValue.d.ts +7 -0
  516. package/dist/serialization/types/LiteralOverrideConstantValue.js +44 -0
  517. package/dist/serialization/types/Llm.d.ts +1 -1
  518. package/dist/serialization/types/Llm.js +2 -0
  519. package/dist/serialization/types/McpServerConfigInput.d.ts +8 -0
  520. package/dist/serialization/types/McpServerConfigInput.js +8 -0
  521. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +2 -1
  522. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.js +2 -1
  523. package/dist/serialization/types/McpServerConfigOutput.d.ts +8 -0
  524. package/dist/serialization/types/McpServerConfigOutput.js +8 -0
  525. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +2 -1
  526. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.js +2 -1
  527. package/dist/serialization/types/McpToolConfigOverride.d.ts +19 -0
  528. package/dist/serialization/types/McpToolConfigOverride.js +51 -0
  529. package/dist/serialization/types/MetricType.d.ts +1 -1
  530. package/dist/serialization/types/MetricType.js +1 -0
  531. package/dist/serialization/types/ModerationConfig.d.ts +20 -0
  532. package/dist/serialization/types/ModerationConfig.js +52 -0
  533. package/dist/serialization/types/ModerationGuardrailInput.d.ts +10 -0
  534. package/dist/serialization/types/ModerationGuardrailInput.js +42 -0
  535. package/dist/serialization/types/ModerationGuardrailOutput.d.ts +10 -0
  536. package/dist/serialization/types/ModerationGuardrailOutput.js +42 -0
  537. package/dist/serialization/types/ObjectOverrideInput.d.ts +11 -0
  538. package/dist/serialization/types/ObjectOverrideInput.js +46 -0
  539. package/dist/serialization/types/ObjectOverrideInputPropertiesValue.d.ts +8 -0
  540. package/dist/serialization/types/ObjectOverrideInputPropertiesValue.js +44 -0
  541. package/dist/serialization/types/ObjectOverrideOutput.d.ts +11 -0
  542. package/dist/serialization/types/ObjectOverrideOutput.js +46 -0
  543. package/dist/serialization/types/ObjectOverrideOutputPropertiesValue.d.ts +8 -0
  544. package/dist/serialization/types/ObjectOverrideOutputPropertiesValue.js +44 -0
  545. package/dist/serialization/types/OutboundCallRecipient.d.ts +2 -1
  546. package/dist/serialization/types/OutboundCallRecipient.js +2 -1
  547. package/dist/serialization/types/OutboundCallRecipientResponseModel.d.ts +2 -1
  548. package/dist/serialization/types/OutboundCallRecipientResponseModel.js +2 -1
  549. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -0
  550. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -0
  551. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +7 -0
  552. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +39 -0
  553. package/dist/serialization/types/PhoneNumberDynamicVariableTransferDestination.d.ts +9 -0
  554. package/dist/serialization/types/PhoneNumberDynamicVariableTransferDestination.js +41 -0
  555. package/dist/serialization/types/PhoneNumberTransferTransferDestination.d.ts +9 -1
  556. package/dist/serialization/types/PhoneNumberTransferTransferDestination.js +4 -0
  557. package/dist/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +5 -1
  558. package/dist/serialization/types/PromptAgentApiModelInputToolsItem.js +2 -0
  559. package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +5 -1
  560. package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.js +2 -0
  561. package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +5 -1
  562. package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.js +2 -0
  563. package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +5 -1
  564. package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.js +2 -0
  565. package/dist/serialization/types/QueryOverride.d.ts +11 -0
  566. package/dist/serialization/types/QueryOverride.js +43 -0
  567. package/dist/serialization/types/ReferencedToolCommonModel.d.ts +2 -2
  568. package/dist/serialization/types/ReferencedToolCommonModel.js +2 -2
  569. package/dist/serialization/types/ReferencedToolCommonModelType.d.ts +7 -0
  570. package/dist/serialization/types/{ModerationStatusResponseModelSafetyStatus.js → ReferencedToolCommonModelType.js} +2 -2
  571. package/dist/serialization/types/RegionConfigRequest.d.ts +13 -0
  572. package/dist/serialization/types/RegionConfigRequest.js +45 -0
  573. package/dist/serialization/types/SingleUseTokenResponseModel.d.ts +9 -0
  574. package/dist/serialization/types/{ModerationStatusResponseModelWarningStatus.js → SingleUseTokenResponseModel.js} +4 -2
  575. package/dist/serialization/types/SingleUseTokenType.d.ts +7 -0
  576. package/{serialization/types/ModerationStatusResponseModelWarningStatus.js → dist/serialization/types/SingleUseTokenType.js} +2 -2
  577. package/dist/serialization/types/SipUriDynamicVariableTransferDestination.d.ts +9 -0
  578. package/dist/serialization/types/SipUriDynamicVariableTransferDestination.js +41 -0
  579. package/dist/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
  580. package/dist/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
  581. package/dist/serialization/types/SystemToolConfigInput.d.ts +4 -0
  582. package/dist/serialization/types/SystemToolConfigInput.js +4 -0
  583. package/dist/serialization/types/SystemToolConfigOutput.d.ts +4 -0
  584. package/dist/serialization/types/SystemToolConfigOutput.js +4 -0
  585. package/dist/serialization/types/ThresholdGuardrail.d.ts +10 -0
  586. package/dist/serialization/types/ThresholdGuardrail.js +42 -0
  587. package/dist/serialization/types/ToolCallSoundBehavior.d.ts +7 -0
  588. package/{serialization/types/ModerationStatusResponseModelSafetyStatus.js → dist/serialization/types/ToolCallSoundBehavior.js} +2 -2
  589. package/dist/serialization/types/ToolCallSoundType.d.ts +7 -0
  590. package/dist/serialization/types/ToolCallSoundType.js +39 -0
  591. package/dist/serialization/types/ToolRequestModelToolConfig.d.ts +5 -5
  592. package/dist/serialization/types/ToolRequestModelToolConfig.js +2 -3
  593. package/dist/serialization/types/ToolResponseModelToolConfig.d.ts +5 -1
  594. package/dist/serialization/types/ToolResponseModelToolConfig.js +2 -0
  595. package/dist/serialization/types/ToolType.d.ts +1 -1
  596. package/dist/serialization/types/ToolType.js +9 -1
  597. package/dist/serialization/types/TurnConfig.d.ts +2 -2
  598. package/dist/serialization/types/TurnConfig.js +2 -2
  599. package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -2
  600. package/dist/serialization/types/TurnConfigWorkflowOverride.js +2 -2
  601. package/dist/serialization/types/TurnEagerness.d.ts +7 -0
  602. package/dist/serialization/types/TurnEagerness.js +39 -0
  603. package/dist/serialization/types/TwilioEdgeLocation.d.ts +7 -0
  604. package/dist/serialization/types/TwilioEdgeLocation.js +49 -0
  605. package/dist/serialization/types/TwilioRegionId.d.ts +7 -0
  606. package/dist/serialization/types/TwilioRegionId.js +39 -0
  607. package/dist/serialization/types/User.d.ts +0 -2
  608. package/dist/serialization/types/User.js +0 -2
  609. package/dist/serialization/types/VadConfig.d.ts +0 -1
  610. package/dist/serialization/types/VadConfig.js +1 -3
  611. package/dist/serialization/types/VadConfigWorkflowOverride.d.ts +0 -1
  612. package/dist/serialization/types/VadConfigWorkflowOverride.js +1 -3
  613. package/dist/serialization/types/VoiceSegment.d.ts +14 -0
  614. package/dist/serialization/types/VoiceSegment.js +46 -0
  615. package/dist/serialization/types/WebhookToolConfigInput.d.ts +6 -2
  616. package/dist/serialization/types/WebhookToolConfigInput.js +6 -2
  617. package/dist/serialization/types/WebhookToolConfigOutput.d.ts +6 -2
  618. package/dist/serialization/types/WebhookToolConfigOutput.js +6 -2
  619. package/dist/serialization/types/WorkflowPhoneNumberNodeModelInputTransferDestination.d.ts +9 -1
  620. package/dist/serialization/types/WorkflowPhoneNumberNodeModelInputTransferDestination.js +4 -0
  621. package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.d.ts +9 -1
  622. package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.js +4 -0
  623. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  624. package/dist/serialization/types/WorkspaceResourceType.js +4 -0
  625. package/dist/serialization/types/index.d.ts +35 -5
  626. package/dist/serialization/types/index.js +35 -5
  627. package/dist/version.d.ts +1 -1
  628. package/dist/version.js +1 -1
  629. package/package.json +10 -10
  630. package/reference.md +524 -28
  631. package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -1
  632. package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -1
  633. package/serialization/resources/conversationalAi/resources/index.d.ts +2 -1
  634. package/serialization/resources/conversationalAi/resources/index.js +3 -2
  635. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +8 -0
  636. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +10 -0
  637. package/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
  638. package/serialization/resources/conversationalAi/resources/mcpServers/index.js +1 -0
  639. package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +2 -0
  640. package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +3 -1
  641. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.d.ts +1 -0
  642. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js +17 -0
  643. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +19 -0
  644. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js +51 -0
  645. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +18 -0
  646. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js +50 -0
  647. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.d.ts +2 -0
  648. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.js +7 -0
  649. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
  650. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +17 -0
  651. package/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +9 -0
  652. package/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +41 -0
  653. package/serialization/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
  654. package/serialization/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
  655. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -2
  656. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +0 -2
  657. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -2
  658. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +0 -2
  659. package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -2
  660. package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +0 -2
  661. package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +7 -0
  662. package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +61 -0
  663. package/serialization/resources/music/types/MusicSeparateStemsRequestStemVariationId.d.ts +7 -0
  664. package/serialization/resources/music/types/MusicSeparateStemsRequestStemVariationId.js +39 -0
  665. package/serialization/resources/music/types/index.d.ts +2 -0
  666. package/serialization/resources/music/types/index.js +2 -0
  667. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +19 -0
  668. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +51 -0
  669. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +19 -0
  670. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +51 -0
  671. package/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
  672. package/serialization/resources/textToDialogue/client/requests/index.js +5 -1
  673. package/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
  674. package/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +39 -0
  675. package/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
  676. package/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +39 -0
  677. package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
  678. package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +61 -0
  679. package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +7 -0
  680. package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +61 -0
  681. package/serialization/resources/textToDialogue/types/index.d.ts +4 -0
  682. package/serialization/resources/textToDialogue/types/index.js +4 -0
  683. package/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +15 -0
  684. package/{dist/serialization/types/SubscriptionUsageResponseModel.js → serialization/types/ApiIntegrationWebhookOverridesInput.js} +12 -10
  685. package/serialization/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.d.ts +8 -0
  686. package/serialization/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.js +40 -0
  687. package/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +15 -0
  688. package/serialization/types/ApiIntegrationWebhookOverridesOutput.js +50 -0
  689. package/serialization/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.d.ts +8 -0
  690. package/serialization/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.js +40 -0
  691. package/serialization/types/ApiIntegrationWebhookToolConfigInput.d.ts +28 -0
  692. package/serialization/types/ApiIntegrationWebhookToolConfigInput.js +60 -0
  693. package/serialization/types/ApiIntegrationWebhookToolConfigOutput.d.ts +28 -0
  694. package/serialization/types/ApiIntegrationWebhookToolConfigOutput.js +60 -0
  695. package/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
  696. package/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
  697. package/serialization/types/BatchCallDetailedResponse.d.ts +2 -1
  698. package/serialization/types/BatchCallDetailedResponse.js +2 -1
  699. package/serialization/types/BatchCallResponse.d.ts +2 -1
  700. package/serialization/types/BatchCallResponse.js +2 -1
  701. package/serialization/types/ClientToolConfigInput.d.ts +4 -0
  702. package/serialization/types/ClientToolConfigInput.js +4 -0
  703. package/serialization/types/ClientToolConfigOutput.d.ts +4 -0
  704. package/serialization/types/ClientToolConfigOutput.js +4 -0
  705. package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  706. package/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
  707. package/serialization/types/GuardrailsV1Input.d.ts +11 -0
  708. package/serialization/types/GuardrailsV1Input.js +43 -0
  709. package/serialization/types/GuardrailsV1Output.d.ts +11 -0
  710. package/serialization/types/GuardrailsV1Output.js +43 -0
  711. package/serialization/types/InvoiceResponse.d.ts +2 -0
  712. package/serialization/types/InvoiceResponse.js +2 -0
  713. package/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
  714. package/serialization/types/LiteralJsonSchemaProperty.js +1 -0
  715. package/serialization/types/LiteralOverride.d.ts +12 -0
  716. package/serialization/types/LiteralOverride.js +44 -0
  717. package/serialization/types/LiteralOverrideConstantValue.d.ts +7 -0
  718. package/serialization/types/LiteralOverrideConstantValue.js +44 -0
  719. package/serialization/types/Llm.d.ts +1 -1
  720. package/serialization/types/Llm.js +2 -0
  721. package/serialization/types/McpServerConfigInput.d.ts +8 -0
  722. package/serialization/types/McpServerConfigInput.js +8 -0
  723. package/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +2 -1
  724. package/serialization/types/McpServerConfigInputRequestHeadersValue.js +2 -1
  725. package/serialization/types/McpServerConfigOutput.d.ts +8 -0
  726. package/serialization/types/McpServerConfigOutput.js +8 -0
  727. package/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +2 -1
  728. package/serialization/types/McpServerConfigOutputRequestHeadersValue.js +2 -1
  729. package/serialization/types/McpToolConfigOverride.d.ts +19 -0
  730. package/serialization/types/McpToolConfigOverride.js +51 -0
  731. package/serialization/types/MetricType.d.ts +1 -1
  732. package/serialization/types/MetricType.js +1 -0
  733. package/serialization/types/ModerationConfig.d.ts +20 -0
  734. package/serialization/types/ModerationConfig.js +52 -0
  735. package/serialization/types/ModerationGuardrailInput.d.ts +10 -0
  736. package/serialization/types/ModerationGuardrailInput.js +42 -0
  737. package/serialization/types/ModerationGuardrailOutput.d.ts +10 -0
  738. package/serialization/types/ModerationGuardrailOutput.js +42 -0
  739. package/serialization/types/ObjectOverrideInput.d.ts +11 -0
  740. package/serialization/types/ObjectOverrideInput.js +46 -0
  741. package/serialization/types/ObjectOverrideInputPropertiesValue.d.ts +8 -0
  742. package/serialization/types/ObjectOverrideInputPropertiesValue.js +44 -0
  743. package/serialization/types/ObjectOverrideOutput.d.ts +11 -0
  744. package/serialization/types/ObjectOverrideOutput.js +46 -0
  745. package/serialization/types/ObjectOverrideOutputPropertiesValue.d.ts +8 -0
  746. package/serialization/types/ObjectOverrideOutputPropertiesValue.js +44 -0
  747. package/serialization/types/OutboundCallRecipient.d.ts +2 -1
  748. package/serialization/types/OutboundCallRecipient.js +2 -1
  749. package/serialization/types/OutboundCallRecipientResponseModel.d.ts +2 -1
  750. package/serialization/types/OutboundCallRecipientResponseModel.js +2 -1
  751. package/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -0
  752. package/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -0
  753. package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +7 -0
  754. package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +39 -0
  755. package/serialization/types/PhoneNumberDynamicVariableTransferDestination.d.ts +9 -0
  756. package/serialization/types/PhoneNumberDynamicVariableTransferDestination.js +41 -0
  757. package/serialization/types/PhoneNumberTransferTransferDestination.d.ts +9 -1
  758. package/serialization/types/PhoneNumberTransferTransferDestination.js +4 -0
  759. package/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +5 -1
  760. package/serialization/types/PromptAgentApiModelInputToolsItem.js +2 -0
  761. package/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +5 -1
  762. package/serialization/types/PromptAgentApiModelOutputToolsItem.js +2 -0
  763. package/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +5 -1
  764. package/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.js +2 -0
  765. package/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +5 -1
  766. package/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.js +2 -0
  767. package/serialization/types/QueryOverride.d.ts +11 -0
  768. package/serialization/types/QueryOverride.js +43 -0
  769. package/serialization/types/ReferencedToolCommonModel.d.ts +2 -2
  770. package/serialization/types/ReferencedToolCommonModel.js +2 -2
  771. package/serialization/types/ReferencedToolCommonModelType.d.ts +7 -0
  772. package/serialization/types/ReferencedToolCommonModelType.js +39 -0
  773. package/serialization/types/RegionConfigRequest.d.ts +13 -0
  774. package/serialization/types/RegionConfigRequest.js +45 -0
  775. package/serialization/types/SingleUseTokenResponseModel.d.ts +9 -0
  776. package/serialization/types/SingleUseTokenResponseModel.js +41 -0
  777. package/serialization/types/SingleUseTokenType.d.ts +7 -0
  778. package/serialization/types/SingleUseTokenType.js +39 -0
  779. package/serialization/types/SipUriDynamicVariableTransferDestination.d.ts +9 -0
  780. package/serialization/types/SipUriDynamicVariableTransferDestination.js +41 -0
  781. package/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
  782. package/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
  783. package/serialization/types/SystemToolConfigInput.d.ts +4 -0
  784. package/serialization/types/SystemToolConfigInput.js +4 -0
  785. package/serialization/types/SystemToolConfigOutput.d.ts +4 -0
  786. package/serialization/types/SystemToolConfigOutput.js +4 -0
  787. package/serialization/types/ThresholdGuardrail.d.ts +10 -0
  788. package/serialization/types/ThresholdGuardrail.js +42 -0
  789. package/serialization/types/ToolCallSoundBehavior.d.ts +7 -0
  790. package/serialization/types/ToolCallSoundBehavior.js +39 -0
  791. package/serialization/types/ToolCallSoundType.d.ts +7 -0
  792. package/serialization/types/ToolCallSoundType.js +39 -0
  793. package/serialization/types/ToolRequestModelToolConfig.d.ts +5 -5
  794. package/serialization/types/ToolRequestModelToolConfig.js +2 -3
  795. package/serialization/types/ToolResponseModelToolConfig.d.ts +5 -1
  796. package/serialization/types/ToolResponseModelToolConfig.js +2 -0
  797. package/serialization/types/ToolType.d.ts +1 -1
  798. package/serialization/types/ToolType.js +9 -1
  799. package/serialization/types/TurnConfig.d.ts +2 -2
  800. package/serialization/types/TurnConfig.js +2 -2
  801. package/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -2
  802. package/serialization/types/TurnConfigWorkflowOverride.js +2 -2
  803. package/serialization/types/TurnEagerness.d.ts +7 -0
  804. package/serialization/types/TurnEagerness.js +39 -0
  805. package/serialization/types/TwilioEdgeLocation.d.ts +7 -0
  806. package/serialization/types/TwilioEdgeLocation.js +49 -0
  807. package/serialization/types/TwilioRegionId.d.ts +7 -0
  808. package/serialization/types/TwilioRegionId.js +39 -0
  809. package/serialization/types/User.d.ts +0 -2
  810. package/serialization/types/User.js +0 -2
  811. package/serialization/types/VadConfig.d.ts +0 -1
  812. package/serialization/types/VadConfig.js +1 -3
  813. package/serialization/types/VadConfigWorkflowOverride.d.ts +0 -1
  814. package/serialization/types/VadConfigWorkflowOverride.js +1 -3
  815. package/serialization/types/VoiceSegment.d.ts +14 -0
  816. package/serialization/types/VoiceSegment.js +46 -0
  817. package/serialization/types/WebhookToolConfigInput.d.ts +6 -2
  818. package/serialization/types/WebhookToolConfigInput.js +6 -2
  819. package/serialization/types/WebhookToolConfigOutput.d.ts +6 -2
  820. package/serialization/types/WebhookToolConfigOutput.js +6 -2
  821. package/serialization/types/WorkflowPhoneNumberNodeModelInputTransferDestination.d.ts +9 -1
  822. package/serialization/types/WorkflowPhoneNumberNodeModelInputTransferDestination.js +4 -0
  823. package/serialization/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.d.ts +9 -1
  824. package/serialization/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.js +4 -0
  825. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  826. package/serialization/types/WorkspaceResourceType.js +4 -0
  827. package/serialization/types/index.d.ts +35 -5
  828. package/serialization/types/index.js +35 -5
  829. package/version.d.ts +1 -1
  830. package/version.js +1 -1
  831. package/api/types/ModerationStatusResponseModel.d.ts +0 -21
  832. package/api/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -6
  833. package/api/types/ModerationStatusResponseModelSafetyStatus.js +0 -9
  834. package/api/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -5
  835. package/api/types/ModerationStatusResponseModelWarningStatus.js +0 -8
  836. package/api/types/SubscriptionExtrasResponseModel.d.ts +0 -27
  837. package/api/types/SubscriptionUsageResponseModel.d.ts +0 -18
  838. package/dist/api/types/ModerationStatusResponseModel.d.ts +0 -21
  839. package/dist/api/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -6
  840. package/dist/api/types/ModerationStatusResponseModelSafetyStatus.js +0 -9
  841. package/dist/api/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -5
  842. package/dist/api/types/ModerationStatusResponseModelWarningStatus.js +0 -8
  843. package/dist/api/types/SubscriptionExtrasResponseModel.d.ts +0 -27
  844. package/dist/api/types/SubscriptionUsageResponseModel.d.ts +0 -18
  845. package/dist/serialization/types/ModerationStatusResponseModel.d.ts +0 -19
  846. package/dist/serialization/types/ModerationStatusResponseModel.js +0 -51
  847. package/dist/serialization/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -7
  848. package/dist/serialization/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -7
  849. package/dist/serialization/types/SubscriptionExtrasResponseModel.d.ts +0 -22
  850. package/dist/serialization/types/SubscriptionExtrasResponseModel.js +0 -54
  851. package/dist/serialization/types/SubscriptionUsageResponseModel.d.ts +0 -16
  852. package/serialization/types/ModerationStatusResponseModel.d.ts +0 -19
  853. package/serialization/types/ModerationStatusResponseModel.js +0 -51
  854. package/serialization/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -7
  855. package/serialization/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -7
  856. package/serialization/types/SubscriptionExtrasResponseModel.d.ts +0 -22
  857. package/serialization/types/SubscriptionExtrasResponseModel.js +0 -54
  858. package/serialization/types/SubscriptionUsageResponseModel.d.ts +0 -16
  859. /package/api/{types/ModerationStatusResponseModel.js → resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js} +0 -0
  860. /package/api/{types/SubscriptionExtrasResponseModel.js → resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js} +0 -0
  861. /package/api/{types/SubscriptionUsageResponseModel.js → resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js} +0 -0
  862. /package/{dist/api/types/ModerationStatusResponseModel.js → api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.js} +0 -0
  863. /package/{dist/api/types/SubscriptionExtrasResponseModel.js → api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js} +0 -0
  864. /package/{dist/api/types/SubscriptionUsageResponseModel.js → api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js} +0 -0
@@ -0,0 +1,372 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.ToolConfigs = void 0;
47
+ const environments = __importStar(require("../../../../../../../../environments"));
48
+ const core = __importStar(require("../../../../../../../../core"));
49
+ const ElevenLabs = __importStar(require("../../../../../../../index"));
50
+ const headers_1 = require("../../../../../../../../core/headers");
51
+ const serializers = __importStar(require("../../../../../../../../serialization/index"));
52
+ const errors = __importStar(require("../../../../../../../../errors/index"));
53
+ class ToolConfigs {
54
+ constructor(_options = {}) {
55
+ this._options = _options;
56
+ }
57
+ /**
58
+ * Create configuration overrides for a specific MCP tool.
59
+ *
60
+ * @param {string} mcpServerId - ID of the MCP Server.
61
+ * @param {ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModel} request
62
+ * @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link ElevenLabs.ConflictError}
65
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.conversationalAi.mcpServers.toolConfigs.create("mcp_server_id", {
69
+ * toolName: "tool_name"
70
+ * })
71
+ */
72
+ create(mcpServerId, request, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__create(mcpServerId, request, requestOptions));
74
+ }
75
+ __create(mcpServerId, request, requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c, _d, _e;
78
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
79
+ const _response = yield core.fetcher({
80
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-configs`),
81
+ method: "POST",
82
+ headers: _headers,
83
+ contentType: "application/json",
84
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
85
+ requestType: "json",
86
+ body: serializers.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModel.jsonOrThrow(request, {
87
+ unrecognizedObjectKeys: "strip",
88
+ }),
89
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
90
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
+ });
93
+ if (_response.ok) {
94
+ return {
95
+ data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
96
+ unrecognizedObjectKeys: "passthrough",
97
+ allowUnrecognizedUnionMembers: true,
98
+ allowUnrecognizedEnumValues: true,
99
+ breadcrumbsPrefix: ["response"],
100
+ }),
101
+ rawResponse: _response.rawResponse,
102
+ };
103
+ }
104
+ if (_response.error.reason === "status-code") {
105
+ switch (_response.error.statusCode) {
106
+ case 409:
107
+ throw new ElevenLabs.ConflictError(_response.error.body, _response.rawResponse);
108
+ case 422:
109
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
110
+ unrecognizedObjectKeys: "passthrough",
111
+ allowUnrecognizedUnionMembers: true,
112
+ allowUnrecognizedEnumValues: true,
113
+ breadcrumbsPrefix: ["response"],
114
+ }), _response.rawResponse);
115
+ default:
116
+ throw new errors.ElevenLabsError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.body,
119
+ rawResponse: _response.rawResponse,
120
+ });
121
+ }
122
+ }
123
+ switch (_response.error.reason) {
124
+ case "non-json":
125
+ throw new errors.ElevenLabsError({
126
+ statusCode: _response.error.statusCode,
127
+ body: _response.error.rawBody,
128
+ rawResponse: _response.rawResponse,
129
+ });
130
+ case "timeout":
131
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/mcp-servers/{mcp_server_id}/tool-configs.");
132
+ case "unknown":
133
+ throw new errors.ElevenLabsError({
134
+ message: _response.error.errorMessage,
135
+ rawResponse: _response.rawResponse,
136
+ });
137
+ }
138
+ });
139
+ }
140
+ /**
141
+ * Retrieve configuration overrides for a specific MCP tool.
142
+ *
143
+ * @param {string} mcpServerId - ID of the MCP Server.
144
+ * @param {string} toolName - Name of the MCP tool to retrieve config overrides for.
145
+ * @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
146
+ *
147
+ * @throws {@link ElevenLabs.NotFoundError}
148
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
149
+ *
150
+ * @example
151
+ * await client.conversationalAi.mcpServers.toolConfigs.get("mcp_server_id", "tool_name")
152
+ */
153
+ get(mcpServerId, toolName, requestOptions) {
154
+ return core.HttpResponsePromise.fromPromise(this.__get(mcpServerId, toolName, requestOptions));
155
+ }
156
+ __get(mcpServerId, toolName, requestOptions) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ var _a, _b, _c, _d, _e;
159
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
160
+ const _response = yield core.fetcher({
161
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-configs/${encodeURIComponent(toolName)}`),
162
+ method: "GET",
163
+ headers: _headers,
164
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
165
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
166
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
167
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
168
+ });
169
+ if (_response.ok) {
170
+ return {
171
+ data: serializers.McpToolConfigOverride.parseOrThrow(_response.body, {
172
+ unrecognizedObjectKeys: "passthrough",
173
+ allowUnrecognizedUnionMembers: true,
174
+ allowUnrecognizedEnumValues: true,
175
+ breadcrumbsPrefix: ["response"],
176
+ }),
177
+ rawResponse: _response.rawResponse,
178
+ };
179
+ }
180
+ if (_response.error.reason === "status-code") {
181
+ switch (_response.error.statusCode) {
182
+ case 404:
183
+ throw new ElevenLabs.NotFoundError(_response.error.body, _response.rawResponse);
184
+ case 422:
185
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
186
+ unrecognizedObjectKeys: "passthrough",
187
+ allowUnrecognizedUnionMembers: true,
188
+ allowUnrecognizedEnumValues: true,
189
+ breadcrumbsPrefix: ["response"],
190
+ }), _response.rawResponse);
191
+ default:
192
+ throw new errors.ElevenLabsError({
193
+ statusCode: _response.error.statusCode,
194
+ body: _response.error.body,
195
+ rawResponse: _response.rawResponse,
196
+ });
197
+ }
198
+ }
199
+ switch (_response.error.reason) {
200
+ case "non-json":
201
+ throw new errors.ElevenLabsError({
202
+ statusCode: _response.error.statusCode,
203
+ body: _response.error.rawBody,
204
+ rawResponse: _response.rawResponse,
205
+ });
206
+ case "timeout":
207
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/mcp-servers/{mcp_server_id}/tool-configs/{tool_name}.");
208
+ case "unknown":
209
+ throw new errors.ElevenLabsError({
210
+ message: _response.error.errorMessage,
211
+ rawResponse: _response.rawResponse,
212
+ });
213
+ }
214
+ });
215
+ }
216
+ /**
217
+ * Remove configuration overrides for a specific MCP tool.
218
+ *
219
+ * @param {string} mcpServerId - ID of the MCP Server.
220
+ * @param {string} toolName - Name of the MCP tool to remove config overrides for.
221
+ * @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
222
+ *
223
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
224
+ *
225
+ * @example
226
+ * await client.conversationalAi.mcpServers.toolConfigs.delete("mcp_server_id", "tool_name")
227
+ */
228
+ delete(mcpServerId, toolName, requestOptions) {
229
+ return core.HttpResponsePromise.fromPromise(this.__delete(mcpServerId, toolName, requestOptions));
230
+ }
231
+ __delete(mcpServerId, toolName, requestOptions) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ var _a, _b, _c, _d, _e;
234
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
235
+ const _response = yield core.fetcher({
236
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-configs/${encodeURIComponent(toolName)}`),
237
+ method: "DELETE",
238
+ headers: _headers,
239
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
240
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
241
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
242
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
243
+ });
244
+ if (_response.ok) {
245
+ return {
246
+ data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
247
+ unrecognizedObjectKeys: "passthrough",
248
+ allowUnrecognizedUnionMembers: true,
249
+ allowUnrecognizedEnumValues: true,
250
+ breadcrumbsPrefix: ["response"],
251
+ }),
252
+ rawResponse: _response.rawResponse,
253
+ };
254
+ }
255
+ if (_response.error.reason === "status-code") {
256
+ switch (_response.error.statusCode) {
257
+ case 422:
258
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
259
+ unrecognizedObjectKeys: "passthrough",
260
+ allowUnrecognizedUnionMembers: true,
261
+ allowUnrecognizedEnumValues: true,
262
+ breadcrumbsPrefix: ["response"],
263
+ }), _response.rawResponse);
264
+ default:
265
+ throw new errors.ElevenLabsError({
266
+ statusCode: _response.error.statusCode,
267
+ body: _response.error.body,
268
+ rawResponse: _response.rawResponse,
269
+ });
270
+ }
271
+ }
272
+ switch (_response.error.reason) {
273
+ case "non-json":
274
+ throw new errors.ElevenLabsError({
275
+ statusCode: _response.error.statusCode,
276
+ body: _response.error.rawBody,
277
+ rawResponse: _response.rawResponse,
278
+ });
279
+ case "timeout":
280
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/convai/mcp-servers/{mcp_server_id}/tool-configs/{tool_name}.");
281
+ case "unknown":
282
+ throw new errors.ElevenLabsError({
283
+ message: _response.error.errorMessage,
284
+ rawResponse: _response.rawResponse,
285
+ });
286
+ }
287
+ });
288
+ }
289
+ /**
290
+ * Update configuration overrides for a specific MCP tool.
291
+ *
292
+ * @param {string} mcpServerId - ID of the MCP Server.
293
+ * @param {string} toolName - Name of the MCP tool to update config overrides for.
294
+ * @param {ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModel} request
295
+ * @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
296
+ *
297
+ * @throws {@link ElevenLabs.NotFoundError}
298
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
299
+ *
300
+ * @example
301
+ * await client.conversationalAi.mcpServers.toolConfigs.update("mcp_server_id", "tool_name")
302
+ */
303
+ update(mcpServerId, toolName, request = {}, requestOptions) {
304
+ return core.HttpResponsePromise.fromPromise(this.__update(mcpServerId, toolName, request, requestOptions));
305
+ }
306
+ __update(mcpServerId_1, toolName_1) {
307
+ return __awaiter(this, arguments, void 0, function* (mcpServerId, toolName, request = {}, requestOptions) {
308
+ var _a, _b, _c, _d, _e;
309
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
310
+ const _response = yield core.fetcher({
311
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-configs/${encodeURIComponent(toolName)}`),
312
+ method: "PATCH",
313
+ headers: _headers,
314
+ contentType: "application/json",
315
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
316
+ requestType: "json",
317
+ body: serializers.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModel.jsonOrThrow(request, {
318
+ unrecognizedObjectKeys: "strip",
319
+ }),
320
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
321
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
322
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
323
+ });
324
+ if (_response.ok) {
325
+ return {
326
+ data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
327
+ unrecognizedObjectKeys: "passthrough",
328
+ allowUnrecognizedUnionMembers: true,
329
+ allowUnrecognizedEnumValues: true,
330
+ breadcrumbsPrefix: ["response"],
331
+ }),
332
+ rawResponse: _response.rawResponse,
333
+ };
334
+ }
335
+ if (_response.error.reason === "status-code") {
336
+ switch (_response.error.statusCode) {
337
+ case 404:
338
+ throw new ElevenLabs.NotFoundError(_response.error.body, _response.rawResponse);
339
+ case 422:
340
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
341
+ unrecognizedObjectKeys: "passthrough",
342
+ allowUnrecognizedUnionMembers: true,
343
+ allowUnrecognizedEnumValues: true,
344
+ breadcrumbsPrefix: ["response"],
345
+ }), _response.rawResponse);
346
+ default:
347
+ throw new errors.ElevenLabsError({
348
+ statusCode: _response.error.statusCode,
349
+ body: _response.error.body,
350
+ rawResponse: _response.rawResponse,
351
+ });
352
+ }
353
+ }
354
+ switch (_response.error.reason) {
355
+ case "non-json":
356
+ throw new errors.ElevenLabsError({
357
+ statusCode: _response.error.statusCode,
358
+ body: _response.error.rawBody,
359
+ rawResponse: _response.rawResponse,
360
+ });
361
+ case "timeout":
362
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling PATCH /v1/convai/mcp-servers/{mcp_server_id}/tool-configs/{tool_name}.");
363
+ case "unknown":
364
+ throw new errors.ElevenLabsError({
365
+ message: _response.error.errorMessage,
366
+ rawResponse: _response.rawResponse,
367
+ });
368
+ }
369
+ });
370
+ }
371
+ }
372
+ exports.ToolConfigs = ToolConfigs;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,23 @@
1
+ import * as ElevenLabs from "../../../../../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * toolName: "tool_name"
6
+ * }
7
+ */
8
+ export interface McpToolConfigOverrideCreateRequestModel {
9
+ /** If set, overrides the server's force_pre_tool_speech setting for this tool */
10
+ forcePreToolSpeech?: boolean;
11
+ /** If set, overrides the server's disable_interruptions setting for this tool */
12
+ disableInterruptions?: boolean;
13
+ /** If set, overrides the server's tool_call_sound setting for this tool */
14
+ toolCallSound?: ElevenLabs.ToolCallSoundType;
15
+ /** If set, overrides the server's tool_call_sound_behavior setting for this tool */
16
+ toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
17
+ /** If set, overrides the server's execution_mode setting for this tool */
18
+ executionMode?: ElevenLabs.ToolExecutionMode;
19
+ /** Dynamic variable assignments for this MCP tool */
20
+ assignments?: ElevenLabs.DynamicVariableAssignment[];
21
+ /** The name of the MCP tool */
22
+ toolName: string;
23
+ }
@@ -0,0 +1,19 @@
1
+ import * as ElevenLabs from "../../../../../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface McpToolConfigOverrideUpdateRequestModel {
7
+ /** If set, overrides the server's force_pre_tool_speech setting for this tool */
8
+ forcePreToolSpeech?: boolean;
9
+ /** If set, overrides the server's disable_interruptions setting for this tool */
10
+ disableInterruptions?: boolean;
11
+ /** If set, overrides the server's tool_call_sound setting for this tool */
12
+ toolCallSound?: ElevenLabs.ToolCallSoundType;
13
+ /** If set, overrides the server's tool_call_sound_behavior setting for this tool */
14
+ toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
15
+ /** If set, overrides the server's execution_mode setting for this tool */
16
+ executionMode?: ElevenLabs.ToolExecutionMode;
17
+ /** Dynamic variable assignments for this MCP tool */
18
+ assignments?: ElevenLabs.DynamicVariableAssignment[];
19
+ }
@@ -0,0 +1,2 @@
1
+ export { type McpToolConfigOverrideCreateRequestModel } from "./McpToolConfigOverrideCreateRequestModel";
2
+ export { type McpToolConfigOverrideUpdateRequestModel } from "./McpToolConfigOverrideUpdateRequestModel";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,2 @@
1
+ import * as ElevenLabs from "../../../../../index";
2
+ export type McpServerConfigUpdateRequestModelRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator | ElevenLabs.ConvAiDynamicVariable;
@@ -0,0 +1 @@
1
+ export * from "./McpServerConfigUpdateRequestModelRequestHeadersValue";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./McpServerConfigUpdateRequestModelRequestHeadersValue"), exports);
@@ -52,10 +52,11 @@ export declare class Tools {
52
52
  * @example
53
53
  * await client.conversationalAi.tools.create({
54
54
  * toolConfig: {
55
- * type: "client",
55
+ * type: "api_integration_webhook",
56
56
  * name: "name",
57
57
  * description: "description",
58
- * expectsResponse: false
58
+ * apiIntegrationId: "api_integration_id",
59
+ * apiIntegrationConnectionId: "api_integration_connection_id"
59
60
  * }
60
61
  * })
61
62
  */
@@ -99,10 +100,11 @@ export declare class Tools {
99
100
  * @example
100
101
  * await client.conversationalAi.tools.update("tool_id", {
101
102
  * toolConfig: {
102
- * type: "client",
103
+ * type: "api_integration_webhook",
103
104
  * name: "name",
104
105
  * description: "description",
105
- * expectsResponse: false
106
+ * apiIntegrationId: "api_integration_id",
107
+ * apiIntegrationConnectionId: "api_integration_connection_id"
106
108
  * }
107
109
  * })
108
110
  */
@@ -136,10 +136,11 @@ class Tools {
136
136
  * @example
137
137
  * await client.conversationalAi.tools.create({
138
138
  * toolConfig: {
139
- * type: "client",
139
+ * type: "api_integration_webhook",
140
140
  * name: "name",
141
141
  * description: "description",
142
- * expectsResponse: false
142
+ * apiIntegrationId: "api_integration_id",
143
+ * apiIntegrationConnectionId: "api_integration_connection_id"
143
144
  * }
144
145
  * })
145
146
  */
@@ -355,10 +356,11 @@ class Tools {
355
356
  * @example
356
357
  * await client.conversationalAi.tools.update("tool_id", {
357
358
  * toolConfig: {
358
- * type: "client",
359
+ * type: "api_integration_webhook",
359
360
  * name: "name",
360
361
  * description: "description",
361
- * expectsResponse: false
362
+ * apiIntegrationId: "api_integration_id",
363
+ * apiIntegrationConnectionId: "api_integration_connection_id"
362
364
  * }
363
365
  * })
364
366
  */
@@ -68,12 +68,7 @@ export declare class Dubbing {
68
68
  *
69
69
  * @example
70
70
  * import { createReadStream } from "fs";
71
- * await client.dubbing.create({
72
- * file: fs.createReadStream("/path/to/your/file"),
73
- * csvFile: fs.createReadStream("/path/to/your/file"),
74
- * foregroundAudioFile: fs.createReadStream("/path/to/your/file"),
75
- * backgroundAudioFile: fs.createReadStream("/path/to/your/file")
76
- * })
71
+ * await client.dubbing.create({})
77
72
  */
78
73
  create(request: ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost, requestOptions?: Dubbing.RequestOptions): core.HttpResponsePromise<ElevenLabs.DoDubbingResponse>;
79
74
  private __create;
@@ -182,12 +182,7 @@ class Dubbing {
182
182
  *
183
183
  * @example
184
184
  * import { createReadStream } from "fs";
185
- * await client.dubbing.create({
186
- * file: fs.createReadStream("/path/to/your/file"),
187
- * csvFile: fs.createReadStream("/path/to/your/file"),
188
- * foregroundAudioFile: fs.createReadStream("/path/to/your/file"),
189
- * backgroundAudioFile: fs.createReadStream("/path/to/your/file")
190
- * })
185
+ * await client.dubbing.create({})
191
186
  */
192
187
  create(request, requestOptions) {
193
188
  return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
@@ -196,10 +191,18 @@ class Dubbing {
196
191
  return __awaiter(this, void 0, void 0, function* () {
197
192
  var _a, _b, _c, _d, _e;
198
193
  const _request = yield core.newFormData();
199
- yield _request.appendFile("file", request.file);
200
- yield _request.appendFile("csv_file", request.csvFile);
201
- yield _request.appendFile("foreground_audio_file", request.foregroundAudioFile);
202
- yield _request.appendFile("background_audio_file", request.backgroundAudioFile);
194
+ if (request.file != null) {
195
+ yield _request.appendFile("file", request.file);
196
+ }
197
+ if (request.csvFile != null) {
198
+ yield _request.appendFile("csv_file", request.csvFile);
199
+ }
200
+ if (request.foregroundAudioFile != null) {
201
+ yield _request.appendFile("foreground_audio_file", request.foregroundAudioFile);
202
+ }
203
+ if (request.backgroundAudioFile != null) {
204
+ yield _request.appendFile("background_audio_file", request.backgroundAudioFile);
205
+ }
203
206
  if (request.name != null) {
204
207
  _request.append("name", request.name);
205
208
  }
@@ -2,22 +2,17 @@ import * as core from "../../../../../core";
2
2
  import * as ElevenLabs from "../../../../index";
3
3
  /**
4
4
  * @example
5
- * {
6
- * file: fs.createReadStream("/path/to/your/file"),
7
- * csvFile: fs.createReadStream("/path/to/your/file"),
8
- * foregroundAudioFile: fs.createReadStream("/path/to/your/file"),
9
- * backgroundAudioFile: fs.createReadStream("/path/to/your/file")
10
- * }
5
+ * {}
11
6
  */
12
7
  export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
13
8
  /** A list of file paths to audio recordings intended for voice cloning */
14
- file: core.file.Uploadable.FileLike;
9
+ file?: core.file.Uploadable.FileLike | undefined;
15
10
  /** CSV file containing transcription/translation metadata */
16
- csvFile: core.file.Uploadable.FileLike;
11
+ csvFile?: core.file.Uploadable.FileLike | undefined;
17
12
  /** For use only with csv input */
18
- foregroundAudioFile: core.file.Uploadable.FileLike;
13
+ foregroundAudioFile?: core.file.Uploadable.FileLike | undefined;
19
14
  /** For use only with csv input */
20
- backgroundAudioFile: core.file.Uploadable.FileLike;
15
+ backgroundAudioFile?: core.file.Uploadable.FileLike | undefined;
21
16
  /** Name of the dubbing project. */
22
17
  name?: string;
23
18
  /** URL of the source video/audio file. */
@@ -39,6 +39,7 @@ export * as models from "./models";
39
39
  export * as usage from "./usage";
40
40
  export * as webhooks from "./webhooks";
41
41
  export * as forcedAlignment from "./forcedAlignment";
42
+ export * as tokens from "./tokens";
42
43
  export * from "./history/client/requests";
43
44
  export * from "./textToSoundEffects/client/requests";
44
45
  export * from "./audioIsolation/client/requests";