@elevenlabs/elevenlabs-js 2.10.0 → 2.12.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 (520) hide show
  1. package/Client.d.ts +160 -0
  2. package/Client.js +687 -2
  3. package/api/client/index.d.ts +1 -0
  4. package/api/client/index.js +17 -0
  5. package/api/client/requests/CreateUnitTestRequest.d.ts +37 -0
  6. package/api/client/requests/ListChatResponseTestsRouteRequest.d.ts +21 -0
  7. package/api/client/requests/ListTestsByIdsRequestModel.d.ts +13 -0
  8. package/api/client/requests/ListTestsByIdsRequestModel.js +5 -0
  9. package/api/client/requests/ResubmitTestsRequestModel.d.ts +19 -0
  10. package/api/client/requests/ResubmitTestsRequestModel.js +5 -0
  11. package/api/client/requests/RunAgentTestsRequestModel.d.ts +18 -0
  12. package/api/client/requests/RunAgentTestsRequestModel.js +5 -0
  13. package/api/client/requests/UpdateUnitTestRequest.d.ts +37 -0
  14. package/api/client/requests/UpdateUnitTestRequest.js +5 -0
  15. package/api/client/requests/index.d.ts +6 -0
  16. package/api/client/requests/index.js +2 -0
  17. package/api/index.d.ts +1 -0
  18. package/api/index.js +1 -0
  19. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
  20. package/api/resources/conversationalAi/resources/tools/client/Client.js +1 -1
  21. package/api/resources/music/client/Client.d.ts +6 -0
  22. package/api/resources/music/client/Client.js +67 -0
  23. package/api/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +5 -1
  24. package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
  25. package/api/resources/music/client/requests/index.d.ts +1 -0
  26. package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +28 -0
  27. package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +27 -0
  28. package/api/resources/music/types/index.d.ts +1 -0
  29. package/api/resources/music/types/index.js +1 -0
  30. package/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -6
  31. package/api/resources/pronunciationDictionaries/client/Client.js +90 -16
  32. package/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
  33. package/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +5 -0
  34. package/api/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
  35. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +4 -1
  36. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
  37. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +4 -1
  38. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
  39. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -1
  40. package/api/resources/textToDialogue/client/Client.d.ts +2 -2
  41. package/api/resources/textToDialogue/client/Client.js +2 -2
  42. package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
  43. package/api/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +8 -0
  44. package/api/types/AdhocAgentConfigOverrideForTestRequestModel.js +5 -0
  45. package/api/types/AgentFailureResponseExample.d.ts +7 -0
  46. package/api/types/AgentFailureResponseExample.js +5 -0
  47. package/api/types/AgentSuccessfulResponseExample.d.ts +7 -0
  48. package/api/types/AgentSuccessfulResponseExample.js +5 -0
  49. package/api/types/AgentTestingSettings.d.ts +2 -1
  50. package/api/types/AttachedTestModel.d.ts +6 -0
  51. package/api/types/AttachedTestModel.js +5 -0
  52. package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
  53. package/api/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
  54. package/api/types/CreateUnitTestRequestDynamicVariablesValue.js +5 -0
  55. package/api/types/CreateUnitTestResponseModel.d.ts +6 -0
  56. package/api/types/CreateUnitTestResponseModel.js +5 -0
  57. package/api/types/DetailedMusicResponse.d.ts +13 -0
  58. package/api/types/DetailedMusicResponse.js +5 -0
  59. package/api/types/ExactParameterEvaluationStrategy.d.ts +7 -0
  60. package/api/types/ExactParameterEvaluationStrategy.js +5 -0
  61. package/api/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +8 -0
  62. package/api/types/ExtendedSubscriptionResponseModelPendingChange.js +5 -0
  63. package/api/types/FeaturesUsageCommonModel.d.ts +1 -0
  64. package/api/types/GetTestSuiteInvocationResponseModel.d.ts +9 -0
  65. package/api/types/GetTestSuiteInvocationResponseModel.js +5 -0
  66. package/api/types/GetTestsPageResponseModel.d.ts +9 -0
  67. package/api/types/GetTestsPageResponseModel.js +5 -0
  68. package/api/types/GetTestsSummariesByIdsResponseModel.d.ts +8 -0
  69. package/api/types/GetTestsSummariesByIdsResponseModel.js +5 -0
  70. package/api/types/GetUnitTestResponseModel.d.ts +19 -0
  71. package/api/types/GetUnitTestResponseModel.js +5 -0
  72. package/api/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +4 -0
  73. package/api/types/GetUnitTestResponseModelDynamicVariablesValue.js +5 -0
  74. package/api/types/Llm.d.ts +3 -3
  75. package/api/types/Llm.js +2 -2
  76. package/api/types/LlmParameterEvaluationStrategy.d.ts +7 -0
  77. package/api/types/LlmParameterEvaluationStrategy.js +5 -0
  78. package/api/types/MultipartMusicResponse.d.ts +13 -0
  79. package/api/types/MultipartMusicResponse.js +5 -0
  80. package/api/types/PendingCancellationResponseModel.d.ts +8 -0
  81. package/api/types/PendingCancellationResponseModel.js +5 -0
  82. package/api/types/PendingSubscriptionSwitchResponseModel.d.ts +11 -0
  83. package/api/types/PendingSubscriptionSwitchResponseModel.js +5 -0
  84. package/api/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +19 -0
  85. package/api/types/PendingSubscriptionSwitchResponseModelNextTier.js +18 -0
  86. package/api/types/ReferencedToolCommonModel.d.ts +13 -0
  87. package/api/types/ReferencedToolCommonModel.js +5 -0
  88. package/api/types/RegexParameterEvaluationStrategy.d.ts +7 -0
  89. package/api/types/RegexParameterEvaluationStrategy.js +5 -0
  90. package/api/types/SingleTestRunRequestModel.d.ts +7 -0
  91. package/api/types/SingleTestRunRequestModel.js +5 -0
  92. package/api/types/SongMetadata.d.ts +15 -0
  93. package/api/types/SongMetadata.js +5 -0
  94. package/api/types/Subscription.d.ts +2 -0
  95. package/api/types/TestConditionRationaleCommonModel.d.ts +12 -0
  96. package/api/types/TestConditionRationaleCommonModel.js +5 -0
  97. package/api/types/TestConditionResultCommonModel.d.ts +8 -0
  98. package/api/types/TestConditionResultCommonModel.js +5 -0
  99. package/api/types/TestRunStatus.d.ts +9 -0
  100. package/api/types/TestRunStatus.js +11 -0
  101. package/api/types/TestToolResultModel.d.ts +7 -0
  102. package/api/types/TestToolResultModel.js +5 -0
  103. package/api/types/UnitTestRunResponseModel.d.ts +13 -0
  104. package/api/types/UnitTestRunResponseModel.js +5 -0
  105. package/api/types/UnitTestSummaryResponseModel.d.ts +16 -0
  106. package/api/types/UnitTestSummaryResponseModel.js +5 -0
  107. package/api/types/UnitTestToolCallEvaluationModelInput.d.ts +10 -0
  108. package/api/types/UnitTestToolCallEvaluationModelInput.js +5 -0
  109. package/api/types/UnitTestToolCallEvaluationModelOutput.d.ts +10 -0
  110. package/api/types/UnitTestToolCallEvaluationModelOutput.js +5 -0
  111. package/api/types/UnitTestToolCallParameter.d.ts +8 -0
  112. package/api/types/UnitTestToolCallParameter.js +5 -0
  113. package/api/types/UnitTestToolCallParameterEval.d.ts +16 -0
  114. package/api/types/UnitTestToolCallParameterEval.js +5 -0
  115. package/api/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
  116. package/api/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
  117. package/api/types/User.d.ts +3 -1
  118. package/api/types/WebhookAuthMethodType.d.ts +2 -1
  119. package/api/types/WebhookAuthMethodType.js +1 -0
  120. package/api/types/WorkflowFeaturesUsageCommonModel.d.ts +8 -0
  121. package/api/types/WorkflowFeaturesUsageCommonModel.js +5 -0
  122. package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +4 -1
  123. package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
  124. package/api/types/WorkspaceResourceType.d.ts +1 -2
  125. package/api/types/WorkspaceResourceType.js +0 -1
  126. package/api/types/index.d.ts +35 -1
  127. package/api/types/index.js +35 -1
  128. package/dist/Client.d.ts +160 -0
  129. package/dist/Client.js +687 -2
  130. package/dist/api/client/index.d.ts +1 -0
  131. package/dist/api/client/index.js +17 -0
  132. package/dist/api/client/requests/CreateUnitTestRequest.d.ts +37 -0
  133. package/dist/api/client/requests/CreateUnitTestRequest.js +5 -0
  134. package/dist/api/client/requests/ListChatResponseTestsRouteRequest.d.ts +21 -0
  135. package/dist/api/client/requests/ListChatResponseTestsRouteRequest.js +5 -0
  136. package/dist/api/client/requests/ListTestsByIdsRequestModel.d.ts +13 -0
  137. package/dist/api/client/requests/ListTestsByIdsRequestModel.js +5 -0
  138. package/dist/api/client/requests/ResubmitTestsRequestModel.d.ts +19 -0
  139. package/dist/api/client/requests/ResubmitTestsRequestModel.js +5 -0
  140. package/dist/api/client/requests/RunAgentTestsRequestModel.d.ts +18 -0
  141. package/dist/api/client/requests/RunAgentTestsRequestModel.js +5 -0
  142. package/dist/api/client/requests/UpdateUnitTestRequest.d.ts +37 -0
  143. package/dist/api/client/requests/UpdateUnitTestRequest.js +5 -0
  144. package/dist/api/client/requests/index.d.ts +6 -0
  145. package/dist/api/client/requests/index.js +2 -0
  146. package/dist/api/index.d.ts +1 -0
  147. package/dist/api/index.js +1 -0
  148. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
  149. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +1 -1
  150. package/dist/api/resources/music/client/Client.d.ts +6 -0
  151. package/dist/api/resources/music/client/Client.js +67 -0
  152. package/dist/api/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +5 -1
  153. package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
  154. package/dist/api/resources/music/client/requests/index.d.ts +1 -0
  155. package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +28 -0
  156. package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +27 -0
  157. package/dist/api/resources/music/types/index.d.ts +1 -0
  158. package/dist/api/resources/music/types/index.js +1 -0
  159. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -6
  160. package/dist/api/resources/pronunciationDictionaries/client/Client.js +90 -16
  161. package/dist/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
  162. package/dist/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +5 -0
  163. package/dist/api/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
  164. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +4 -1
  165. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
  166. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +4 -1
  167. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
  168. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -1
  169. package/dist/api/resources/textToDialogue/client/Client.d.ts +2 -2
  170. package/dist/api/resources/textToDialogue/client/Client.js +2 -2
  171. package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
  172. package/dist/api/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +8 -0
  173. package/dist/api/types/AdhocAgentConfigOverrideForTestRequestModel.js +5 -0
  174. package/dist/api/types/AgentFailureResponseExample.d.ts +7 -0
  175. package/dist/api/types/AgentFailureResponseExample.js +5 -0
  176. package/dist/api/types/AgentSuccessfulResponseExample.d.ts +7 -0
  177. package/dist/api/types/AgentSuccessfulResponseExample.js +5 -0
  178. package/dist/api/types/AgentTestingSettings.d.ts +2 -1
  179. package/dist/api/types/AttachedTestModel.d.ts +6 -0
  180. package/dist/api/types/AttachedTestModel.js +5 -0
  181. package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
  182. package/dist/api/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
  183. package/dist/api/types/CreateUnitTestRequestDynamicVariablesValue.js +5 -0
  184. package/dist/api/types/CreateUnitTestResponseModel.d.ts +6 -0
  185. package/dist/api/types/CreateUnitTestResponseModel.js +5 -0
  186. package/dist/api/types/DetailedMusicResponse.d.ts +13 -0
  187. package/dist/api/types/DetailedMusicResponse.js +5 -0
  188. package/dist/api/types/ExactParameterEvaluationStrategy.d.ts +7 -0
  189. package/dist/api/types/ExactParameterEvaluationStrategy.js +5 -0
  190. package/dist/api/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +8 -0
  191. package/dist/api/types/ExtendedSubscriptionResponseModelPendingChange.js +5 -0
  192. package/dist/api/types/FeaturesUsageCommonModel.d.ts +1 -0
  193. package/dist/api/types/GetTestSuiteInvocationResponseModel.d.ts +9 -0
  194. package/dist/api/types/GetTestSuiteInvocationResponseModel.js +5 -0
  195. package/dist/api/types/GetTestsPageResponseModel.d.ts +9 -0
  196. package/dist/api/types/GetTestsPageResponseModel.js +5 -0
  197. package/dist/api/types/GetTestsSummariesByIdsResponseModel.d.ts +8 -0
  198. package/dist/api/types/GetTestsSummariesByIdsResponseModel.js +5 -0
  199. package/dist/api/types/GetUnitTestResponseModel.d.ts +19 -0
  200. package/dist/api/types/GetUnitTestResponseModel.js +5 -0
  201. package/dist/api/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +4 -0
  202. package/dist/api/types/GetUnitTestResponseModelDynamicVariablesValue.js +5 -0
  203. package/dist/api/types/Llm.d.ts +3 -3
  204. package/dist/api/types/Llm.js +2 -2
  205. package/dist/api/types/LlmParameterEvaluationStrategy.d.ts +7 -0
  206. package/dist/api/types/LlmParameterEvaluationStrategy.js +5 -0
  207. package/dist/api/types/MultipartMusicResponse.d.ts +13 -0
  208. package/dist/api/types/MultipartMusicResponse.js +5 -0
  209. package/dist/api/types/PendingCancellationResponseModel.d.ts +8 -0
  210. package/dist/api/types/PendingCancellationResponseModel.js +5 -0
  211. package/dist/api/types/PendingSubscriptionSwitchResponseModel.d.ts +11 -0
  212. package/dist/api/types/PendingSubscriptionSwitchResponseModel.js +5 -0
  213. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +19 -0
  214. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextTier.js +18 -0
  215. package/dist/api/types/ReferencedToolCommonModel.d.ts +13 -0
  216. package/dist/api/types/ReferencedToolCommonModel.js +5 -0
  217. package/dist/api/types/RegexParameterEvaluationStrategy.d.ts +7 -0
  218. package/dist/api/types/RegexParameterEvaluationStrategy.js +5 -0
  219. package/dist/api/types/SingleTestRunRequestModel.d.ts +7 -0
  220. package/dist/api/types/SingleTestRunRequestModel.js +5 -0
  221. package/dist/api/types/SongMetadata.d.ts +15 -0
  222. package/dist/api/types/SongMetadata.js +5 -0
  223. package/dist/api/types/Subscription.d.ts +2 -0
  224. package/dist/api/types/TestConditionRationaleCommonModel.d.ts +12 -0
  225. package/dist/api/types/TestConditionRationaleCommonModel.js +5 -0
  226. package/dist/api/types/TestConditionResultCommonModel.d.ts +8 -0
  227. package/dist/api/types/TestConditionResultCommonModel.js +5 -0
  228. package/dist/api/types/TestRunStatus.d.ts +9 -0
  229. package/dist/api/types/TestRunStatus.js +11 -0
  230. package/dist/api/types/TestToolResultModel.d.ts +7 -0
  231. package/dist/api/types/TestToolResultModel.js +5 -0
  232. package/dist/api/types/UnitTestRunResponseModel.d.ts +13 -0
  233. package/dist/api/types/UnitTestRunResponseModel.js +5 -0
  234. package/dist/api/types/UnitTestSummaryResponseModel.d.ts +16 -0
  235. package/dist/api/types/UnitTestSummaryResponseModel.js +5 -0
  236. package/dist/api/types/UnitTestToolCallEvaluationModelInput.d.ts +10 -0
  237. package/dist/api/types/UnitTestToolCallEvaluationModelInput.js +5 -0
  238. package/dist/api/types/UnitTestToolCallEvaluationModelOutput.d.ts +10 -0
  239. package/dist/api/types/UnitTestToolCallEvaluationModelOutput.js +5 -0
  240. package/dist/api/types/UnitTestToolCallParameter.d.ts +8 -0
  241. package/dist/api/types/UnitTestToolCallParameter.js +5 -0
  242. package/dist/api/types/UnitTestToolCallParameterEval.d.ts +16 -0
  243. package/dist/api/types/UnitTestToolCallParameterEval.js +5 -0
  244. package/dist/api/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
  245. package/dist/api/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
  246. package/dist/api/types/User.d.ts +3 -1
  247. package/dist/api/types/WebhookAuthMethodType.d.ts +2 -1
  248. package/dist/api/types/WebhookAuthMethodType.js +1 -0
  249. package/dist/api/types/WorkflowFeaturesUsageCommonModel.d.ts +8 -0
  250. package/dist/api/types/WorkflowFeaturesUsageCommonModel.js +5 -0
  251. package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +4 -1
  252. package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
  253. package/dist/api/types/WorkspaceResourceType.d.ts +1 -2
  254. package/dist/api/types/WorkspaceResourceType.js +0 -1
  255. package/dist/api/types/index.d.ts +35 -1
  256. package/dist/api/types/index.js +35 -1
  257. package/dist/serialization/client/index.d.ts +1 -0
  258. package/dist/serialization/client/index.js +17 -0
  259. package/dist/serialization/client/requests/CreateUnitTestRequest.d.ts +23 -0
  260. package/dist/serialization/client/requests/CreateUnitTestRequest.js +56 -0
  261. package/dist/serialization/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
  262. package/dist/serialization/client/requests/ListTestsByIdsRequestModel.js +43 -0
  263. package/dist/serialization/client/requests/ResubmitTestsRequestModel.d.ts +15 -0
  264. package/dist/serialization/client/requests/ResubmitTestsRequestModel.js +46 -0
  265. package/dist/serialization/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
  266. package/dist/serialization/client/requests/RunAgentTestsRequestModel.js +46 -0
  267. package/dist/serialization/client/requests/UpdateUnitTestRequest.d.ts +23 -0
  268. package/dist/serialization/client/requests/UpdateUnitTestRequest.js +56 -0
  269. package/dist/serialization/client/requests/index.d.ts +5 -0
  270. package/dist/serialization/client/requests/index.js +13 -0
  271. package/dist/serialization/index.d.ts +1 -0
  272. package/dist/serialization/index.js +1 -0
  273. package/dist/serialization/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +5 -5
  274. package/dist/serialization/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -2
  275. package/dist/serialization/resources/music/client/requests/index.d.ts +1 -0
  276. package/dist/serialization/resources/music/client/requests/index.js +3 -1
  277. package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +10 -0
  278. package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +61 -0
  279. package/dist/serialization/resources/music/types/index.d.ts +1 -0
  280. package/dist/serialization/resources/music/types/index.js +1 -0
  281. package/dist/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
  282. package/dist/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +44 -0
  283. package/dist/serialization/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
  284. package/dist/serialization/resources/pronunciationDictionaries/client/requests/index.js +3 -1
  285. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +1 -1
  286. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
  287. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +1 -1
  288. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
  289. package/dist/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +15 -0
  290. package/dist/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.js +46 -0
  291. package/dist/serialization/types/AgentFailureResponseExample.d.ts +13 -0
  292. package/dist/serialization/types/AgentFailureResponseExample.js +44 -0
  293. package/dist/serialization/types/AgentSuccessfulResponseExample.d.ts +13 -0
  294. package/dist/serialization/types/AgentSuccessfulResponseExample.js +44 -0
  295. package/dist/serialization/types/AgentTestingSettings.d.ts +2 -1
  296. package/dist/serialization/types/AgentTestingSettings.js +2 -1
  297. package/dist/serialization/types/AttachedTestModel.d.ts +12 -0
  298. package/dist/serialization/types/AttachedTestModel.js +43 -0
  299. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
  300. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
  301. package/dist/serialization/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  302. package/dist/serialization/types/CreateUnitTestRequestDynamicVariablesValue.js +46 -0
  303. package/dist/serialization/types/CreateUnitTestResponseModel.d.ts +12 -0
  304. package/dist/serialization/types/CreateUnitTestResponseModel.js +43 -0
  305. package/dist/serialization/types/DetailedMusicResponse.d.ts +15 -0
  306. package/dist/serialization/types/DetailedMusicResponse.js +46 -0
  307. package/dist/serialization/types/ExactParameterEvaluationStrategy.d.ts +12 -0
  308. package/dist/serialization/types/ExactParameterEvaluationStrategy.js +43 -0
  309. package/dist/serialization/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +12 -0
  310. package/dist/serialization/types/ExtendedSubscriptionResponseModelPendingChange.js +43 -0
  311. package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +2 -0
  312. package/dist/serialization/types/FeaturesUsageCommonModel.js +2 -0
  313. package/dist/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +15 -0
  314. package/dist/serialization/types/GetTestSuiteInvocationResponseModel.js +46 -0
  315. package/dist/serialization/types/GetTestsPageResponseModel.d.ts +15 -0
  316. package/dist/serialization/types/GetTestsPageResponseModel.js +46 -0
  317. package/dist/serialization/types/GetTestsSummariesByIdsResponseModel.d.ts +13 -0
  318. package/dist/serialization/types/GetTestsSummariesByIdsResponseModel.js +44 -0
  319. package/dist/serialization/types/GetUnitTestResponseModel.d.ts +24 -0
  320. package/dist/serialization/types/GetUnitTestResponseModel.js +57 -0
  321. package/dist/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +10 -0
  322. package/dist/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.js +46 -0
  323. package/dist/serialization/types/Llm.d.ts +1 -1
  324. package/dist/serialization/types/Llm.js +2 -2
  325. package/dist/serialization/types/LlmParameterEvaluationStrategy.d.ts +12 -0
  326. package/dist/serialization/types/LlmParameterEvaluationStrategy.js +43 -0
  327. package/dist/serialization/types/MultipartMusicResponse.d.ts +14 -0
  328. package/dist/serialization/types/MultipartMusicResponse.js +45 -0
  329. package/dist/serialization/types/PendingCancellationResponseModel.d.ts +13 -0
  330. package/dist/serialization/types/PendingCancellationResponseModel.js +44 -0
  331. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +15 -0
  332. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.js +46 -0
  333. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +10 -0
  334. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.js +52 -0
  335. package/dist/serialization/types/ReferencedToolCommonModel.d.ts +14 -0
  336. package/dist/serialization/types/ReferencedToolCommonModel.js +45 -0
  337. package/dist/serialization/types/RegexParameterEvaluationStrategy.d.ts +12 -0
  338. package/dist/serialization/types/RegexParameterEvaluationStrategy.js +43 -0
  339. package/dist/serialization/types/SingleTestRunRequestModel.d.ts +12 -0
  340. package/dist/serialization/types/SingleTestRunRequestModel.js +43 -0
  341. package/dist/serialization/types/SongMetadata.d.ts +16 -0
  342. package/dist/serialization/types/SongMetadata.js +47 -0
  343. package/dist/serialization/types/Subscription.d.ts +2 -0
  344. package/dist/serialization/types/Subscription.js +2 -0
  345. package/dist/serialization/types/TestConditionRationaleCommonModel.d.ts +13 -0
  346. package/dist/serialization/types/TestConditionRationaleCommonModel.js +44 -0
  347. package/dist/serialization/types/TestConditionResultCommonModel.d.ts +15 -0
  348. package/dist/serialization/types/TestConditionResultCommonModel.js +46 -0
  349. package/dist/serialization/types/TestRunStatus.d.ts +10 -0
  350. package/dist/serialization/types/TestRunStatus.js +41 -0
  351. package/dist/serialization/types/TestToolResultModel.d.ts +13 -0
  352. package/dist/serialization/types/TestToolResultModel.js +44 -0
  353. package/dist/serialization/types/UnitTestRunResponseModel.d.ts +21 -0
  354. package/dist/serialization/types/UnitTestRunResponseModel.js +52 -0
  355. package/dist/serialization/types/UnitTestSummaryResponseModel.d.ts +17 -0
  356. package/dist/serialization/types/UnitTestSummaryResponseModel.js +48 -0
  357. package/dist/serialization/types/UnitTestToolCallEvaluationModelInput.d.ts +15 -0
  358. package/dist/serialization/types/UnitTestToolCallEvaluationModelInput.js +46 -0
  359. package/dist/serialization/types/UnitTestToolCallEvaluationModelOutput.d.ts +15 -0
  360. package/dist/serialization/types/UnitTestToolCallEvaluationModelOutput.js +46 -0
  361. package/dist/serialization/types/UnitTestToolCallParameter.d.ts +14 -0
  362. package/dist/serialization/types/UnitTestToolCallParameter.js +45 -0
  363. package/dist/serialization/types/UnitTestToolCallParameterEval.d.ts +22 -0
  364. package/dist/serialization/types/UnitTestToolCallParameterEval.js +53 -0
  365. package/dist/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  366. package/dist/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.js +46 -0
  367. package/dist/serialization/types/User.d.ts +1 -0
  368. package/dist/serialization/types/User.js +1 -0
  369. package/dist/serialization/types/WebhookAuthMethodType.d.ts +1 -1
  370. package/dist/serialization/types/WebhookAuthMethodType.js +1 -1
  371. package/dist/serialization/types/WorkflowFeaturesUsageCommonModel.d.ts +14 -0
  372. package/dist/serialization/types/WorkflowFeaturesUsageCommonModel.js +45 -0
  373. package/dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +1 -1
  374. package/dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
  375. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  376. package/dist/serialization/types/WorkspaceResourceType.js +0 -1
  377. package/dist/serialization/types/index.d.ts +35 -1
  378. package/dist/serialization/types/index.js +35 -1
  379. package/dist/version.d.ts +1 -1
  380. package/dist/version.js +1 -1
  381. package/dist/wrapper/ElevenLabsClient.d.ts +3 -0
  382. package/dist/wrapper/ElevenLabsClient.js +8 -0
  383. package/dist/wrapper/index.d.ts +1 -0
  384. package/dist/wrapper/index.js +3 -1
  385. package/dist/wrapper/music.d.ts +43 -0
  386. package/dist/wrapper/music.js +162 -0
  387. package/package.json +1 -1
  388. package/reference.md +74 -3
  389. package/serialization/client/index.d.ts +1 -0
  390. package/serialization/client/index.js +17 -0
  391. package/serialization/client/requests/CreateUnitTestRequest.d.ts +23 -0
  392. package/serialization/client/requests/CreateUnitTestRequest.js +56 -0
  393. package/serialization/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
  394. package/serialization/client/requests/ListTestsByIdsRequestModel.js +43 -0
  395. package/serialization/client/requests/ResubmitTestsRequestModel.d.ts +15 -0
  396. package/serialization/client/requests/ResubmitTestsRequestModel.js +46 -0
  397. package/serialization/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
  398. package/serialization/client/requests/RunAgentTestsRequestModel.js +46 -0
  399. package/serialization/client/requests/UpdateUnitTestRequest.d.ts +23 -0
  400. package/serialization/client/requests/UpdateUnitTestRequest.js +56 -0
  401. package/serialization/client/requests/index.d.ts +5 -0
  402. package/serialization/client/requests/index.js +13 -0
  403. package/serialization/index.d.ts +1 -0
  404. package/serialization/index.js +1 -0
  405. package/serialization/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +5 -5
  406. package/serialization/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -2
  407. package/serialization/resources/music/client/requests/index.d.ts +1 -0
  408. package/serialization/resources/music/client/requests/index.js +3 -1
  409. package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +10 -0
  410. package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +61 -0
  411. package/serialization/resources/music/types/index.d.ts +1 -0
  412. package/serialization/resources/music/types/index.js +1 -0
  413. package/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
  414. package/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +44 -0
  415. package/serialization/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
  416. package/serialization/resources/pronunciationDictionaries/client/requests/index.js +3 -1
  417. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +1 -1
  418. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
  419. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +1 -1
  420. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
  421. package/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +15 -0
  422. package/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.js +46 -0
  423. package/serialization/types/AgentFailureResponseExample.d.ts +13 -0
  424. package/serialization/types/AgentFailureResponseExample.js +44 -0
  425. package/serialization/types/AgentSuccessfulResponseExample.d.ts +13 -0
  426. package/serialization/types/AgentSuccessfulResponseExample.js +44 -0
  427. package/serialization/types/AgentTestingSettings.d.ts +2 -1
  428. package/serialization/types/AgentTestingSettings.js +2 -1
  429. package/serialization/types/AttachedTestModel.d.ts +12 -0
  430. package/serialization/types/AttachedTestModel.js +43 -0
  431. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
  432. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
  433. package/serialization/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  434. package/serialization/types/CreateUnitTestRequestDynamicVariablesValue.js +46 -0
  435. package/serialization/types/CreateUnitTestResponseModel.d.ts +12 -0
  436. package/serialization/types/CreateUnitTestResponseModel.js +43 -0
  437. package/serialization/types/DetailedMusicResponse.d.ts +15 -0
  438. package/serialization/types/DetailedMusicResponse.js +46 -0
  439. package/serialization/types/ExactParameterEvaluationStrategy.d.ts +12 -0
  440. package/serialization/types/ExactParameterEvaluationStrategy.js +43 -0
  441. package/serialization/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +12 -0
  442. package/serialization/types/ExtendedSubscriptionResponseModelPendingChange.js +43 -0
  443. package/serialization/types/FeaturesUsageCommonModel.d.ts +2 -0
  444. package/serialization/types/FeaturesUsageCommonModel.js +2 -0
  445. package/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +15 -0
  446. package/serialization/types/GetTestSuiteInvocationResponseModel.js +46 -0
  447. package/serialization/types/GetTestsPageResponseModel.d.ts +15 -0
  448. package/serialization/types/GetTestsPageResponseModel.js +46 -0
  449. package/serialization/types/GetTestsSummariesByIdsResponseModel.d.ts +13 -0
  450. package/serialization/types/GetTestsSummariesByIdsResponseModel.js +44 -0
  451. package/serialization/types/GetUnitTestResponseModel.d.ts +24 -0
  452. package/serialization/types/GetUnitTestResponseModel.js +57 -0
  453. package/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +10 -0
  454. package/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.js +46 -0
  455. package/serialization/types/Llm.d.ts +1 -1
  456. package/serialization/types/Llm.js +2 -2
  457. package/serialization/types/LlmParameterEvaluationStrategy.d.ts +12 -0
  458. package/serialization/types/LlmParameterEvaluationStrategy.js +43 -0
  459. package/serialization/types/MultipartMusicResponse.d.ts +14 -0
  460. package/serialization/types/MultipartMusicResponse.js +45 -0
  461. package/serialization/types/PendingCancellationResponseModel.d.ts +13 -0
  462. package/serialization/types/PendingCancellationResponseModel.js +44 -0
  463. package/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +15 -0
  464. package/serialization/types/PendingSubscriptionSwitchResponseModel.js +46 -0
  465. package/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +10 -0
  466. package/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.js +52 -0
  467. package/serialization/types/ReferencedToolCommonModel.d.ts +14 -0
  468. package/serialization/types/ReferencedToolCommonModel.js +45 -0
  469. package/serialization/types/RegexParameterEvaluationStrategy.d.ts +12 -0
  470. package/serialization/types/RegexParameterEvaluationStrategy.js +43 -0
  471. package/serialization/types/SingleTestRunRequestModel.d.ts +12 -0
  472. package/serialization/types/SingleTestRunRequestModel.js +43 -0
  473. package/serialization/types/SongMetadata.d.ts +16 -0
  474. package/serialization/types/SongMetadata.js +47 -0
  475. package/serialization/types/Subscription.d.ts +2 -0
  476. package/serialization/types/Subscription.js +2 -0
  477. package/serialization/types/TestConditionRationaleCommonModel.d.ts +13 -0
  478. package/serialization/types/TestConditionRationaleCommonModel.js +44 -0
  479. package/serialization/types/TestConditionResultCommonModel.d.ts +15 -0
  480. package/serialization/types/TestConditionResultCommonModel.js +46 -0
  481. package/serialization/types/TestRunStatus.d.ts +10 -0
  482. package/serialization/types/TestRunStatus.js +41 -0
  483. package/serialization/types/TestToolResultModel.d.ts +13 -0
  484. package/serialization/types/TestToolResultModel.js +44 -0
  485. package/serialization/types/UnitTestRunResponseModel.d.ts +21 -0
  486. package/serialization/types/UnitTestRunResponseModel.js +52 -0
  487. package/serialization/types/UnitTestSummaryResponseModel.d.ts +17 -0
  488. package/serialization/types/UnitTestSummaryResponseModel.js +48 -0
  489. package/serialization/types/UnitTestToolCallEvaluationModelInput.d.ts +15 -0
  490. package/serialization/types/UnitTestToolCallEvaluationModelInput.js +46 -0
  491. package/serialization/types/UnitTestToolCallEvaluationModelOutput.d.ts +15 -0
  492. package/serialization/types/UnitTestToolCallEvaluationModelOutput.js +46 -0
  493. package/serialization/types/UnitTestToolCallParameter.d.ts +14 -0
  494. package/serialization/types/UnitTestToolCallParameter.js +45 -0
  495. package/serialization/types/UnitTestToolCallParameterEval.d.ts +22 -0
  496. package/serialization/types/UnitTestToolCallParameterEval.js +53 -0
  497. package/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  498. package/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.js +46 -0
  499. package/serialization/types/User.d.ts +1 -0
  500. package/serialization/types/User.js +1 -0
  501. package/serialization/types/WebhookAuthMethodType.d.ts +1 -1
  502. package/serialization/types/WebhookAuthMethodType.js +1 -1
  503. package/serialization/types/WorkflowFeaturesUsageCommonModel.d.ts +14 -0
  504. package/serialization/types/WorkflowFeaturesUsageCommonModel.js +45 -0
  505. package/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +1 -1
  506. package/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
  507. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  508. package/serialization/types/WorkspaceResourceType.js +0 -1
  509. package/serialization/types/index.d.ts +35 -1
  510. package/serialization/types/index.js +35 -1
  511. package/version.d.ts +1 -1
  512. package/version.js +1 -1
  513. package/wrapper/ElevenLabsClient.d.ts +3 -0
  514. package/wrapper/ElevenLabsClient.js +8 -0
  515. package/wrapper/index.d.ts +1 -0
  516. package/wrapper/index.js +3 -1
  517. package/wrapper/music.d.ts +43 -0
  518. package/wrapper/music.js +162 -0
  519. /package/api/{types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js → client/requests/CreateUnitTestRequest.js} +0 -0
  520. /package/{dist/api/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js → api/client/requests/ListChatResponseTestsRouteRequest.js} +0 -0
@@ -229,26 +229,40 @@ class PronunciationDictionaries {
229
229
  });
230
230
  }
231
231
  /**
232
- * Get a PLS file with a pronunciation dictionary version rules
232
+ * Get metadata for a pronunciation dictionary
233
+ *
234
+ * @param {string} pronunciationDictionaryId - The id of the pronunciation dictionary
235
+ * @param {PronunciationDictionaries.RequestOptions} requestOptions - Request-specific configuration.
236
+ *
233
237
  * @throws {@link ElevenLabs.UnprocessableEntityError}
238
+ *
239
+ * @example
240
+ * await client.pronunciationDictionaries.get("21m00Tcm4TlvDq8ikWAM")
234
241
  */
235
- download(dictionaryId, versionId, requestOptions) {
236
- return core.HttpResponsePromise.fromPromise(this.__download(dictionaryId, versionId, requestOptions));
242
+ get(pronunciationDictionaryId, requestOptions) {
243
+ return core.HttpResponsePromise.fromPromise(this.__get(pronunciationDictionaryId, requestOptions));
237
244
  }
238
- __download(dictionaryId, versionId, requestOptions) {
245
+ __get(pronunciationDictionaryId, requestOptions) {
239
246
  return __awaiter(this, void 0, void 0, function* () {
240
247
  var _a, _b, _c;
241
248
  const _response = yield core.fetcher({
242
- url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/pronunciation-dictionaries/${encodeURIComponent(dictionaryId)}/${encodeURIComponent(versionId)}/download`),
249
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/pronunciation-dictionaries/${encodeURIComponent(pronunciationDictionaryId)}`),
243
250
  method: "GET",
244
251
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
- responseType: "streaming",
246
252
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
247
253
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
248
254
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
249
255
  });
250
256
  if (_response.ok) {
251
- return { data: _response.body, rawResponse: _response.rawResponse };
257
+ return {
258
+ data: serializers.GetPronunciationDictionaryMetadataResponse.parseOrThrow(_response.body, {
259
+ unrecognizedObjectKeys: "passthrough",
260
+ allowUnrecognizedUnionMembers: true,
261
+ allowUnrecognizedEnumValues: true,
262
+ breadcrumbsPrefix: ["response"],
263
+ }),
264
+ rawResponse: _response.rawResponse,
265
+ };
252
266
  }
253
267
  if (_response.error.reason === "status-code") {
254
268
  switch (_response.error.statusCode) {
@@ -275,7 +289,7 @@ class PronunciationDictionaries {
275
289
  rawResponse: _response.rawResponse,
276
290
  });
277
291
  case "timeout":
278
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/pronunciation-dictionaries/{dictionary_id}/{version_id}/download.");
292
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/pronunciation-dictionaries/{pronunciation_dictionary_id}.");
279
293
  case "unknown":
280
294
  throw new errors.ElevenLabsError({
281
295
  message: _response.error.errorMessage,
@@ -285,26 +299,30 @@ class PronunciationDictionaries {
285
299
  });
286
300
  }
287
301
  /**
288
- * Get metadata for a pronunciation dictionary
302
+ * Partially update the pronunciation dictionary without changing the version
289
303
  *
290
304
  * @param {string} pronunciationDictionaryId - The id of the pronunciation dictionary
305
+ * @param {ElevenLabs.BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch} request
291
306
  * @param {PronunciationDictionaries.RequestOptions} requestOptions - Request-specific configuration.
292
307
  *
293
308
  * @throws {@link ElevenLabs.UnprocessableEntityError}
294
309
  *
295
310
  * @example
296
- * await client.pronunciationDictionaries.get("21m00Tcm4TlvDq8ikWAM")
311
+ * await client.pronunciationDictionaries.update("21m00Tcm4TlvDq8ikWAM")
297
312
  */
298
- get(pronunciationDictionaryId, requestOptions) {
299
- return core.HttpResponsePromise.fromPromise(this.__get(pronunciationDictionaryId, requestOptions));
313
+ update(pronunciationDictionaryId, request = {}, requestOptions) {
314
+ return core.HttpResponsePromise.fromPromise(this.__update(pronunciationDictionaryId, request, requestOptions));
300
315
  }
301
- __get(pronunciationDictionaryId, requestOptions) {
302
- return __awaiter(this, void 0, void 0, function* () {
316
+ __update(pronunciationDictionaryId_1) {
317
+ return __awaiter(this, arguments, void 0, function* (pronunciationDictionaryId, request = {}, requestOptions) {
303
318
  var _a, _b, _c;
304
319
  const _response = yield core.fetcher({
305
320
  url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/pronunciation-dictionaries/${encodeURIComponent(pronunciationDictionaryId)}`),
306
- method: "GET",
321
+ method: "PATCH",
307
322
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
323
+ contentType: "application/json",
324
+ requestType: "json",
325
+ body: serializers.BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
308
326
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
309
327
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
310
328
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -345,7 +363,63 @@ class PronunciationDictionaries {
345
363
  rawResponse: _response.rawResponse,
346
364
  });
347
365
  case "timeout":
348
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/pronunciation-dictionaries/{pronunciation_dictionary_id}.");
366
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling PATCH /v1/pronunciation-dictionaries/{pronunciation_dictionary_id}.");
367
+ case "unknown":
368
+ throw new errors.ElevenLabsError({
369
+ message: _response.error.errorMessage,
370
+ rawResponse: _response.rawResponse,
371
+ });
372
+ }
373
+ });
374
+ }
375
+ /**
376
+ * Get a PLS file with a pronunciation dictionary version rules
377
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
378
+ */
379
+ download(dictionaryId, versionId, requestOptions) {
380
+ return core.HttpResponsePromise.fromPromise(this.__download(dictionaryId, versionId, requestOptions));
381
+ }
382
+ __download(dictionaryId, versionId, requestOptions) {
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ var _a, _b, _c;
385
+ const _response = yield core.fetcher({
386
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/pronunciation-dictionaries/${encodeURIComponent(dictionaryId)}/${encodeURIComponent(versionId)}/download`),
387
+ method: "GET",
388
+ headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
389
+ responseType: "streaming",
390
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
391
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
392
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
393
+ });
394
+ if (_response.ok) {
395
+ return { data: _response.body, rawResponse: _response.rawResponse };
396
+ }
397
+ if (_response.error.reason === "status-code") {
398
+ switch (_response.error.statusCode) {
399
+ case 422:
400
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
401
+ unrecognizedObjectKeys: "passthrough",
402
+ allowUnrecognizedUnionMembers: true,
403
+ allowUnrecognizedEnumValues: true,
404
+ breadcrumbsPrefix: ["response"],
405
+ }), _response.rawResponse);
406
+ default:
407
+ throw new errors.ElevenLabsError({
408
+ statusCode: _response.error.statusCode,
409
+ body: _response.error.body,
410
+ rawResponse: _response.rawResponse,
411
+ });
412
+ }
413
+ }
414
+ switch (_response.error.reason) {
415
+ case "non-json":
416
+ throw new errors.ElevenLabsError({
417
+ statusCode: _response.error.statusCode,
418
+ body: _response.error.rawBody,
419
+ rawResponse: _response.rawResponse,
420
+ });
421
+ case "timeout":
422
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/pronunciation-dictionaries/{dictionary_id}/{version_id}/download.");
349
423
  case "unknown":
350
424
  throw new errors.ElevenLabsError({
351
425
  message: _response.error.errorMessage,
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch {
9
+ /** The name of the pronunciation dictionary, used for identification only. */
10
+ archived?: boolean;
11
+ /** The name of the pronunciation dictionary, used for identification only. */
12
+ name?: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export { type BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost } from "./BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost";
2
2
  export { type BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPost } from "./BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPost";
3
+ export { type BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch } from "./BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch";
3
4
  export { type PronunciationDictionariesListRequest } from "./PronunciationDictionariesListRequest";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem = "text_to_speech" | "speech_to_speech" | "speech_to_text" | "models_read" | "models_write" | "voices_read" | "voices_write" | "speech_history_read" | "speech_history_write" | "sound_generation" | "audio_isolation" | "voice_generation" | "dubbing_read" | "dubbing_write" | "pronunciation_dictionaries_read" | "pronunciation_dictionaries_write" | "user_read" | "user_write" | "projects_read" | "projects_write" | "audio_native_read" | "audio_native_write" | "workspace_read" | "workspace_write" | "forced_alignment";
4
+ export type BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem = "text_to_speech" | "speech_to_speech" | "speech_to_text" | "models_read" | "models_write" | "voices_read" | "voices_write" | "speech_history_read" | "speech_history_write" | "sound_generation" | "audio_isolation" | "voice_generation" | "dubbing_read" | "dubbing_write" | "pronunciation_dictionaries_read" | "pronunciation_dictionaries_write" | "user_read" | "user_write" | "projects_read" | "projects_write" | "audio_native_read" | "audio_native_write" | "workspace_read" | "workspace_write" | "forced_alignment" | "convai_read" | "convai_write" | "music_generation";
5
5
  export declare const BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem: {
6
6
  readonly TextToSpeech: "text_to_speech";
7
7
  readonly SpeechToSpeech: "speech_to_speech";
@@ -28,4 +28,7 @@ export declare const BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccou
28
28
  readonly WorkspaceRead: "workspace_read";
29
29
  readonly WorkspaceWrite: "workspace_write";
30
30
  readonly ForcedAlignment: "forced_alignment";
31
+ readonly ConvaiRead: "convai_read";
32
+ readonly ConvaiWrite: "convai_write";
33
+ readonly MusicGeneration: "music_generation";
31
34
  };
@@ -30,4 +30,7 @@ exports.BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKe
30
30
  WorkspaceRead: "workspace_read",
31
31
  WorkspaceWrite: "workspace_write",
32
32
  ForcedAlignment: "forced_alignment",
33
+ ConvaiRead: "convai_read",
34
+ ConvaiWrite: "convai_write",
35
+ MusicGeneration: "music_generation",
33
36
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem = "text_to_speech" | "speech_to_speech" | "speech_to_text" | "models_read" | "models_write" | "voices_read" | "voices_write" | "speech_history_read" | "speech_history_write" | "sound_generation" | "audio_isolation" | "voice_generation" | "dubbing_read" | "dubbing_write" | "pronunciation_dictionaries_read" | "pronunciation_dictionaries_write" | "user_read" | "user_write" | "projects_read" | "projects_write" | "audio_native_read" | "audio_native_write" | "workspace_read" | "workspace_write" | "forced_alignment";
4
+ export type BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem = "text_to_speech" | "speech_to_speech" | "speech_to_text" | "models_read" | "models_write" | "voices_read" | "voices_write" | "speech_history_read" | "speech_history_write" | "sound_generation" | "audio_isolation" | "voice_generation" | "dubbing_read" | "dubbing_write" | "pronunciation_dictionaries_read" | "pronunciation_dictionaries_write" | "user_read" | "user_write" | "projects_read" | "projects_write" | "audio_native_read" | "audio_native_write" | "workspace_read" | "workspace_write" | "forced_alignment" | "convai_read" | "convai_write" | "music_generation";
5
5
  export declare const BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem: {
6
6
  readonly TextToSpeech: "text_to_speech";
7
7
  readonly SpeechToSpeech: "speech_to_speech";
@@ -28,4 +28,7 @@ export declare const BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccount
28
28
  readonly WorkspaceRead: "workspace_read";
29
29
  readonly WorkspaceWrite: "workspace_write";
30
30
  readonly ForcedAlignment: "forced_alignment";
31
+ readonly ConvaiRead: "convai_read";
32
+ readonly ConvaiWrite: "convai_write";
33
+ readonly MusicGeneration: "music_generation";
31
34
  };
@@ -30,4 +30,7 @@ exports.BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeys
30
30
  WorkspaceRead: "workspace_read",
31
31
  WorkspaceWrite: "workspace_write",
32
32
  ForcedAlignment: "forced_alignment",
33
+ ConvaiRead: "convai_read",
34
+ ConvaiWrite: "convai_write",
35
+ MusicGeneration: "music_generation",
33
36
  };
@@ -38,7 +38,7 @@ export interface BodySpeechToTextV1SpeechToTextPost {
38
38
  additionalFormats?: ElevenLabs.AdditionalFormats;
39
39
  /** The format of input audio. Options are 'pcm_s16le_16' or 'other' For `pcm_s16le_16`, the input audio must be 16-bit PCM at a 16kHz sample rate, single channel (mono), and little-endian byte order. Latency will be lower than with passing an encoded waveform. */
40
40
  fileFormat?: ElevenLabs.SpeechToTextConvertRequestFileFormat;
41
- /** The valid AWS S3, Cloudflare R2 or Google Cloud Storage URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be a valid publicly accessible cloud storage URL. The file size must be less than 2GB. URL can be pre-signed. */
41
+ /** The HTTPS URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be accessible via HTTPS and the file size must be less than 2GB. Any valid HTTPS URL is accepted, including URLs from cloud storage providers (AWS S3, Google Cloud Storage, Cloudflare R2, etc.), CDNs, or any other HTTPS source. URLs can be pre-signed or include authentication tokens in query parameters. */
42
42
  cloudStorageUrl?: string;
43
43
  /** Whether to send the transcription result to configured speech-to-text webhooks. If set the request will return early without the transcription, which will be delivered later via webhook. */
44
44
  webhook?: boolean;
@@ -31,13 +31,13 @@ export declare class TextToDialogue {
31
31
  protected readonly _options: TextToDialogue.Options;
32
32
  constructor(_options?: TextToDialogue.Options);
33
33
  /**
34
- * <Warning>Eleven v3 API access is currently not publicly available, but will be soon.</Warning><br/>Converts a list of text and voice ID pairs into speech (dialogue) and returns audio.
34
+ * Converts a list of text and voice ID pairs into speech (dialogue) and returns audio.
35
35
  * @throws {@link ElevenLabs.UnprocessableEntityError}
36
36
  */
37
37
  convert(request: ElevenLabs.BodyTextToDialogueMultiVoiceV1TextToDialoguePost, requestOptions?: TextToDialogue.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
38
38
  private __convert;
39
39
  /**
40
- * <Warning>Eleven v3 API access is currently not publicly available, but will be soon.</Warning><br/>Converts a list of text and voice ID pairs into speech (dialogue) and returns an audio stream.
40
+ * Converts a list of text and voice ID pairs into speech (dialogue) and returns an audio stream.
41
41
  * @throws {@link ElevenLabs.UnprocessableEntityError}
42
42
  */
43
43
  stream(request: ElevenLabs.BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost, requestOptions?: TextToDialogue.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
@@ -68,7 +68,7 @@ class TextToDialogue {
68
68
  this._options = _options;
69
69
  }
70
70
  /**
71
- * <Warning>Eleven v3 API access is currently not publicly available, but will be soon.</Warning><br/>Converts a list of text and voice ID pairs into speech (dialogue) and returns audio.
71
+ * Converts a list of text and voice ID pairs into speech (dialogue) and returns audio.
72
72
  * @throws {@link ElevenLabs.UnprocessableEntityError}
73
73
  */
74
74
  convert(request, requestOptions) {
@@ -135,7 +135,7 @@ class TextToDialogue {
135
135
  });
136
136
  }
137
137
  /**
138
- * <Warning>Eleven v3 API access is currently not publicly available, but will be soon.</Warning><br/>Converts a list of text and voice ID pairs into speech (dialogue) and returns an audio stream.
138
+ * Converts a list of text and voice ID pairs into speech (dialogue) and returns an audio stream.
139
139
  * @throws {@link ElevenLabs.UnprocessableEntityError}
140
140
  */
141
141
  stream(request, requestOptions) {
@@ -15,7 +15,7 @@ export interface CreateSoundEffectRequest {
15
15
  outputFormat?: ElevenLabs.TextToSoundEffectsConvertRequestOutputFormat;
16
16
  /** The text that will get converted into a sound effect. */
17
17
  text: string;
18
- /** The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 22. If set to None we will guess the optimal duration using the prompt. Defaults to None. */
18
+ /** The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None. */
19
19
  durationSeconds?: number;
20
20
  /** A higher prompt influence makes your generation follow the prompt more closely while also making generations less variable. Must be a value between 0 and 1. Defaults to 0.3. */
21
21
  promptInfluence?: number;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface AdhocAgentConfigOverrideForTestRequestModel {
6
+ conversationConfig: ElevenLabs.ConversationalConfig;
7
+ platformSettings: ElevenLabs.AgentPlatformSettingsRequestModel;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AgentFailureResponseExample {
5
+ response: string;
6
+ type: "failure";
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AgentSuccessfulResponseExample {
5
+ response: string;
6
+ type: "success";
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as ElevenLabs from "../index";
4
5
  /**
5
6
  * Settings for agent testing configuration.
6
7
  */
7
8
  export interface AgentTestingSettings {
8
9
  /** List of test IDs that should be run for this agent */
9
- testIds?: string[];
10
+ attachedTests?: ElevenLabs.AttachedTestModel[];
10
11
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AttachedTestModel {
5
+ testId: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as ElevenLabs from "../index";
5
- export type ConversationHistoryTranscriptSystemToolResultCommonModelResult = ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.EndCallSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.LanguageDetectionSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.SkipTurnSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberSipSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberTwilioSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.VoicemailDetectionSuccess;
5
+ export type ConversationHistoryTranscriptSystemToolResultCommonModelResult = ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.EndCallSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.LanguageDetectionSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.SkipTurnSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TestingToolResult | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberSipSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberTwilioSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.VoicemailDetectionSuccess;
6
6
  export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModelResult {
7
7
  interface EndCallSuccess extends ElevenLabs.EndCallToolResultModel {
8
8
  resultType: "end_call_success";
@@ -19,6 +19,9 @@ export declare namespace ConversationHistoryTranscriptSystemToolResultCommonMode
19
19
  interface SkipTurnSuccess extends ElevenLabs.SkipTurnToolResponseModel {
20
20
  resultType: "skip_turn_success";
21
21
  }
22
+ interface TestingToolResult extends ElevenLabs.TestToolResultModel {
23
+ resultType: "testing_tool_result";
24
+ }
22
25
  interface TransferToAgentError extends ElevenLabs.TransferToAgentToolResultErrorModel {
23
26
  resultType: "transfer_to_agent_error";
24
27
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CreateUnitTestRequestDynamicVariablesValue = string | number | number | boolean;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateUnitTestResponseModel {
5
+ id: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ /**
6
+ * Response model for structured music generation endpoint
7
+ */
8
+ export interface DetailedMusicResponse {
9
+ /** The composition plan used to generate the song */
10
+ compositionPlan: ElevenLabs.MusicPrompt;
11
+ /** The metadata of the generated song */
12
+ songMetadata: ElevenLabs.SongMetadata;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ExactParameterEvaluationStrategy {
5
+ /** The exact string value that the parameter must match. */
6
+ expectedValue: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ /**
6
+ * The pending change for the user.
7
+ */
8
+ export type ExtendedSubscriptionResponseModelPendingChange = ElevenLabs.PendingSubscriptionSwitchResponseModel | ElevenLabs.PendingCancellationResponseModel;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,4 +14,5 @@ export interface FeaturesUsageCommonModel {
14
14
  toolDynamicVariableUpdates?: ElevenLabs.FeatureStatusCommonModel;
15
15
  isLivekit?: boolean;
16
16
  voicemailDetection?: ElevenLabs.FeatureStatusCommonModel;
17
+ workflow?: ElevenLabs.WorkflowFeaturesUsageCommonModel;
17
18
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface GetTestSuiteInvocationResponseModel {
6
+ id: string;
7
+ createdAt?: number;
8
+ testRuns: ElevenLabs.UnitTestRunResponseModel[];
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface GetTestsPageResponseModel {
6
+ tests: ElevenLabs.UnitTestSummaryResponseModel[];
7
+ nextCursor?: string;
8
+ hasMore: boolean;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface GetTestsSummariesByIdsResponseModel {
6
+ /** Dictionary mapping test IDs to their summary information */
7
+ tests: Record<string, ElevenLabs.UnitTestSummaryResponseModel>;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface GetUnitTestResponseModel {
6
+ chatHistory: ElevenLabs.ConversationHistoryTranscriptCommonModelOutput[];
7
+ /** A prompt that evaluates whether the agent's response is successful. Should return True or False. */
8
+ successCondition: string;
9
+ /** Non-empty list of example responses that should be considered successful */
10
+ successExamples: ElevenLabs.AgentSuccessfulResponseExample[];
11
+ /** Non-empty list of example responses that should be considered failures */
12
+ failureExamples: ElevenLabs.AgentFailureResponseExample[];
13
+ /** How to evaluate the agent's tool call (if any). If empty, the tool call is not evaluated. */
14
+ toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelOutput;
15
+ /** Dynamic variables to replace in the agent config during testing */
16
+ dynamicVariables?: Record<string, ElevenLabs.GetUnitTestResponseModelDynamicVariablesValue | undefined>;
17
+ id: string;
18
+ name: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type GetUnitTestResponseModelDynamicVariablesValue = string | number | number | boolean;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type Llm = "gpt-4o-mini" | "gpt-4o" | "gpt-4" | "gpt-4-turbo" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-3.5-turbo" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-flash-lite" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "claude-sonnet-4" | "claude-3-7-sonnet" | "claude-3-5-sonnet" | "claude-3-5-sonnet-v1" | "claude-3-haiku" | "grok-beta" | "custom-llm" | "qwen3-4b" | "qwen3-30b-a3b" | "watt-tool-8b" | "watt-tool-70b" | "gemini-2.5-flash-preview-05-20" | "gemini-2.5-flash-preview-04-17" | "gemini-2.5-flash-lite-preview-06-17" | "gemini-2.0-flash-lite-001" | "gemini-2.0-flash-001" | "gemini-1.5-flash-002" | "gemini-1.5-flash-001" | "gemini-1.5-pro-002" | "gemini-1.5-pro-001" | "claude-sonnet-4@20250514" | "claude-3-7-sonnet@20250219" | "claude-3-5-sonnet@20240620" | "claude-3-5-sonnet-v2@20241022" | "claude-3-haiku@20240307" | "gpt-5-2025-08-07" | "gpt-5-mini-2025-08-07" | "gpt-5-nano-2025-08-07" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "gpt-4o-mini-2024-07-18" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4-0613" | "gpt-4-0314" | "gpt-4-turbo-2024-04-09" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106";
4
+ export type Llm = "gpt-4o-mini" | "gpt-4o" | "gpt-4" | "gpt-4-turbo" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-3.5-turbo" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-flash-lite" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "claude-sonnet-4" | "claude-3-7-sonnet" | "claude-3-5-sonnet" | "claude-3-5-sonnet-v1" | "claude-3-haiku" | "grok-beta" | "custom-llm" | "qwen3-4b" | "qwen3-30b-a3b" | "gpt-oss-20b" | "gpt-oss-120b" | "gemini-2.5-flash-preview-05-20" | "gemini-2.5-flash-preview-04-17" | "gemini-2.5-flash-lite-preview-06-17" | "gemini-2.0-flash-lite-001" | "gemini-2.0-flash-001" | "gemini-1.5-flash-002" | "gemini-1.5-flash-001" | "gemini-1.5-pro-002" | "gemini-1.5-pro-001" | "claude-sonnet-4@20250514" | "claude-3-7-sonnet@20250219" | "claude-3-5-sonnet@20240620" | "claude-3-5-sonnet-v2@20241022" | "claude-3-haiku@20240307" | "gpt-5-2025-08-07" | "gpt-5-mini-2025-08-07" | "gpt-5-nano-2025-08-07" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "gpt-4o-mini-2024-07-18" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4-0613" | "gpt-4-0314" | "gpt-4-turbo-2024-04-09" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106";
5
5
  export declare const Llm: {
6
6
  readonly Gpt4OMini: "gpt-4o-mini";
7
7
  readonly Gpt4O: "gpt-4o";
@@ -29,8 +29,8 @@ export declare const Llm: {
29
29
  readonly CustomLlm: "custom-llm";
30
30
  readonly Qwen34B: "qwen3-4b";
31
31
  readonly Qwen330Ba3B: "qwen3-30b-a3b";
32
- readonly WattTool8B: "watt-tool-8b";
33
- readonly WattTool70B: "watt-tool-70b";
32
+ readonly GptOss20B: "gpt-oss-20b";
33
+ readonly GptOss120B: "gpt-oss-120b";
34
34
  readonly Gemini25FlashPreview0520: "gemini-2.5-flash-preview-05-20";
35
35
  readonly Gemini25FlashPreview0417: "gemini-2.5-flash-preview-04-17";
36
36
  readonly Gemini25FlashLitePreview0617: "gemini-2.5-flash-lite-preview-06-17";