@elevenlabs/elevenlabs-js 2.11.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (428) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/conversationalAi/client/Client.d.ts +3 -0
  3. package/api/resources/conversationalAi/client/Client.js +25 -20
  4. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +18 -0
  5. package/api/resources/conversationalAi/resources/agents/client/Client.js +80 -0
  6. package/api/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +18 -0
  7. package/api/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.js +5 -0
  8. package/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  9. package/api/resources/conversationalAi/resources/index.d.ts +3 -0
  10. package/api/resources/conversationalAi/resources/index.js +4 -1
  11. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
  12. package/api/resources/conversationalAi/resources/tools/client/Client.js +1 -1
  13. package/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -6
  14. package/api/resources/pronunciationDictionaries/client/Client.js +90 -16
  15. package/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
  16. package/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +5 -0
  17. package/api/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
  18. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +4 -1
  19. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
  20. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +4 -1
  21. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
  22. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -1
  23. package/api/resources/textToDialogue/client/Client.d.ts +2 -2
  24. package/api/resources/textToDialogue/client/Client.js +2 -2
  25. package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
  26. package/api/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +8 -0
  27. package/api/types/AdhocAgentConfigOverrideForTestRequestModel.js +5 -0
  28. package/api/types/AgentFailureResponseExample.d.ts +7 -0
  29. package/api/types/AgentFailureResponseExample.js +5 -0
  30. package/api/types/AgentSuccessfulResponseExample.d.ts +7 -0
  31. package/api/types/AgentSuccessfulResponseExample.js +5 -0
  32. package/api/types/AgentTestingSettings.d.ts +2 -1
  33. package/api/types/AttachedTestModel.d.ts +6 -0
  34. package/api/types/AttachedTestModel.js +5 -0
  35. package/api/types/ClientEvent.d.ts +2 -1
  36. package/api/types/ClientEvent.js +1 -0
  37. package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
  38. package/api/types/CreateUnitTestResponseModel.d.ts +6 -0
  39. package/api/types/CreateUnitTestResponseModel.js +5 -0
  40. package/api/types/DetailedMusicResponse.d.ts +13 -0
  41. package/api/types/DetailedMusicResponse.js +5 -0
  42. package/api/types/ExactParameterEvaluationStrategy.d.ts +7 -0
  43. package/api/types/ExactParameterEvaluationStrategy.js +5 -0
  44. package/api/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +8 -0
  45. package/api/types/ExtendedSubscriptionResponseModelPendingChange.js +5 -0
  46. package/api/types/FeaturesUsageCommonModel.d.ts +2 -0
  47. package/api/types/GetTestSuiteInvocationResponseModel.d.ts +9 -0
  48. package/api/types/GetTestSuiteInvocationResponseModel.js +5 -0
  49. package/api/types/GetTestsPageResponseModel.d.ts +9 -0
  50. package/api/types/GetTestsPageResponseModel.js +5 -0
  51. package/api/types/GetTestsSummariesByIdsResponseModel.d.ts +8 -0
  52. package/api/types/GetTestsSummariesByIdsResponseModel.js +5 -0
  53. package/api/types/GetUnitTestResponseModel.d.ts +19 -0
  54. package/api/types/GetUnitTestResponseModel.js +5 -0
  55. package/api/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +4 -0
  56. package/api/types/GetUnitTestResponseModelDynamicVariablesValue.js +5 -0
  57. package/api/types/Llm.d.ts +3 -3
  58. package/api/types/Llm.js +2 -2
  59. package/api/types/LlmParameterEvaluationStrategy.d.ts +7 -0
  60. package/api/types/LlmParameterEvaluationStrategy.js +5 -0
  61. package/api/types/MultipartMusicResponse.d.ts +13 -0
  62. package/api/types/MultipartMusicResponse.js +5 -0
  63. package/api/types/PendingCancellationResponseModel.d.ts +8 -0
  64. package/api/types/PendingCancellationResponseModel.js +5 -0
  65. package/api/types/PendingSubscriptionSwitchResponseModel.d.ts +11 -0
  66. package/api/types/PendingSubscriptionSwitchResponseModel.js +5 -0
  67. package/api/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +19 -0
  68. package/api/types/PendingSubscriptionSwitchResponseModelNextTier.js +18 -0
  69. package/api/types/ReferencedToolCommonModel.d.ts +13 -0
  70. package/api/types/ReferencedToolCommonModel.js +5 -0
  71. package/api/types/RegexParameterEvaluationStrategy.d.ts +7 -0
  72. package/api/types/RegexParameterEvaluationStrategy.js +5 -0
  73. package/api/types/SingleTestRunRequestModel.d.ts +7 -0
  74. package/api/types/SingleTestRunRequestModel.js +5 -0
  75. package/api/types/SongMetadata.d.ts +15 -0
  76. package/api/types/SongMetadata.js +5 -0
  77. package/api/types/Subscription.d.ts +2 -0
  78. package/api/types/TestConditionRationaleCommonModel.d.ts +12 -0
  79. package/api/types/TestConditionRationaleCommonModel.js +5 -0
  80. package/api/types/TestConditionResultCommonModel.d.ts +8 -0
  81. package/api/types/TestConditionResultCommonModel.js +5 -0
  82. package/api/types/TestRunStatus.d.ts +9 -0
  83. package/api/types/TestRunStatus.js +11 -0
  84. package/api/types/TestToolResultModel.d.ts +7 -0
  85. package/api/types/TestToolResultModel.js +5 -0
  86. package/api/types/TestsFeatureUsageCommonModel.d.ts +8 -0
  87. package/api/types/TestsFeatureUsageCommonModel.js +5 -0
  88. package/api/types/UnitTestRunResponseModel.d.ts +14 -0
  89. package/api/types/UnitTestRunResponseModel.js +5 -0
  90. package/api/types/UnitTestSummaryResponseModel.d.ts +16 -0
  91. package/api/types/UnitTestSummaryResponseModel.js +5 -0
  92. package/api/types/UnitTestToolCallEvaluationModelInput.d.ts +10 -0
  93. package/api/types/UnitTestToolCallEvaluationModelInput.js +5 -0
  94. package/api/types/UnitTestToolCallEvaluationModelOutput.d.ts +10 -0
  95. package/api/types/UnitTestToolCallEvaluationModelOutput.js +5 -0
  96. package/api/types/UnitTestToolCallParameter.d.ts +8 -0
  97. package/api/types/UnitTestToolCallParameter.js +5 -0
  98. package/api/types/UnitTestToolCallParameterEval.d.ts +16 -0
  99. package/api/types/UnitTestToolCallParameterEval.js +5 -0
  100. package/api/types/WebhookAuthMethodType.d.ts +2 -1
  101. package/api/types/WebhookAuthMethodType.js +1 -0
  102. package/api/types/WorkflowFeaturesUsageCommonModel.d.ts +8 -0
  103. package/api/types/WorkflowFeaturesUsageCommonModel.js +5 -0
  104. package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +4 -1
  105. package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
  106. package/api/types/WorkspaceResourceType.d.ts +1 -2
  107. package/api/types/WorkspaceResourceType.js +0 -1
  108. package/api/types/index.d.ts +34 -0
  109. package/api/types/index.js +34 -0
  110. package/dist/Client.js +2 -2
  111. package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
  112. package/dist/api/resources/conversationalAi/client/Client.js +25 -20
  113. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +18 -0
  114. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +80 -0
  115. package/dist/api/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +18 -0
  116. package/dist/api/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.js +5 -0
  117. package/dist/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  118. package/dist/api/resources/conversationalAi/resources/index.d.ts +3 -0
  119. package/dist/api/resources/conversationalAi/resources/index.js +4 -1
  120. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
  121. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +1 -1
  122. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -6
  123. package/dist/api/resources/pronunciationDictionaries/client/Client.js +90 -16
  124. package/dist/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
  125. package/dist/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +5 -0
  126. package/dist/api/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
  127. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +4 -1
  128. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
  129. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +4 -1
  130. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
  131. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -1
  132. package/dist/api/resources/textToDialogue/client/Client.d.ts +2 -2
  133. package/dist/api/resources/textToDialogue/client/Client.js +2 -2
  134. package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
  135. package/dist/api/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +8 -0
  136. package/dist/api/types/AdhocAgentConfigOverrideForTestRequestModel.js +5 -0
  137. package/dist/api/types/AgentFailureResponseExample.d.ts +7 -0
  138. package/dist/api/types/AgentFailureResponseExample.js +5 -0
  139. package/dist/api/types/AgentSuccessfulResponseExample.d.ts +7 -0
  140. package/dist/api/types/AgentSuccessfulResponseExample.js +5 -0
  141. package/dist/api/types/AgentTestingSettings.d.ts +2 -1
  142. package/dist/api/types/AttachedTestModel.d.ts +6 -0
  143. package/dist/api/types/AttachedTestModel.js +5 -0
  144. package/dist/api/types/ClientEvent.d.ts +2 -1
  145. package/dist/api/types/ClientEvent.js +1 -0
  146. package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
  147. package/dist/api/types/CreateUnitTestResponseModel.d.ts +6 -0
  148. package/dist/api/types/CreateUnitTestResponseModel.js +5 -0
  149. package/dist/api/types/DetailedMusicResponse.d.ts +13 -0
  150. package/dist/api/types/DetailedMusicResponse.js +5 -0
  151. package/dist/api/types/ExactParameterEvaluationStrategy.d.ts +7 -0
  152. package/dist/api/types/ExactParameterEvaluationStrategy.js +5 -0
  153. package/dist/api/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +8 -0
  154. package/dist/api/types/ExtendedSubscriptionResponseModelPendingChange.js +5 -0
  155. package/dist/api/types/FeaturesUsageCommonModel.d.ts +2 -0
  156. package/dist/api/types/GetTestSuiteInvocationResponseModel.d.ts +9 -0
  157. package/dist/api/types/GetTestSuiteInvocationResponseModel.js +5 -0
  158. package/dist/api/types/GetTestsPageResponseModel.d.ts +9 -0
  159. package/dist/api/types/GetTestsPageResponseModel.js +5 -0
  160. package/dist/api/types/GetTestsSummariesByIdsResponseModel.d.ts +8 -0
  161. package/dist/api/types/GetTestsSummariesByIdsResponseModel.js +5 -0
  162. package/dist/api/types/GetUnitTestResponseModel.d.ts +19 -0
  163. package/dist/api/types/GetUnitTestResponseModel.js +5 -0
  164. package/dist/api/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +4 -0
  165. package/dist/api/types/GetUnitTestResponseModelDynamicVariablesValue.js +5 -0
  166. package/dist/api/types/Llm.d.ts +3 -3
  167. package/dist/api/types/Llm.js +2 -2
  168. package/dist/api/types/LlmParameterEvaluationStrategy.d.ts +7 -0
  169. package/dist/api/types/LlmParameterEvaluationStrategy.js +5 -0
  170. package/dist/api/types/MultipartMusicResponse.d.ts +13 -0
  171. package/dist/api/types/MultipartMusicResponse.js +5 -0
  172. package/dist/api/types/PendingCancellationResponseModel.d.ts +8 -0
  173. package/dist/api/types/PendingCancellationResponseModel.js +5 -0
  174. package/dist/api/types/PendingSubscriptionSwitchResponseModel.d.ts +11 -0
  175. package/dist/api/types/PendingSubscriptionSwitchResponseModel.js +5 -0
  176. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +19 -0
  177. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextTier.js +18 -0
  178. package/dist/api/types/ReferencedToolCommonModel.d.ts +13 -0
  179. package/dist/api/types/ReferencedToolCommonModel.js +5 -0
  180. package/dist/api/types/RegexParameterEvaluationStrategy.d.ts +7 -0
  181. package/dist/api/types/RegexParameterEvaluationStrategy.js +5 -0
  182. package/dist/api/types/SingleTestRunRequestModel.d.ts +7 -0
  183. package/dist/api/types/SingleTestRunRequestModel.js +5 -0
  184. package/dist/api/types/SongMetadata.d.ts +15 -0
  185. package/dist/api/types/SongMetadata.js +5 -0
  186. package/dist/api/types/Subscription.d.ts +2 -0
  187. package/dist/api/types/TestConditionRationaleCommonModel.d.ts +12 -0
  188. package/dist/api/types/TestConditionRationaleCommonModel.js +5 -0
  189. package/dist/api/types/TestConditionResultCommonModel.d.ts +8 -0
  190. package/dist/api/types/TestConditionResultCommonModel.js +5 -0
  191. package/dist/api/types/TestRunStatus.d.ts +9 -0
  192. package/dist/api/types/TestRunStatus.js +11 -0
  193. package/dist/api/types/TestToolResultModel.d.ts +7 -0
  194. package/dist/api/types/TestToolResultModel.js +5 -0
  195. package/dist/api/types/TestsFeatureUsageCommonModel.d.ts +8 -0
  196. package/dist/api/types/TestsFeatureUsageCommonModel.js +5 -0
  197. package/dist/api/types/UnitTestRunResponseModel.d.ts +14 -0
  198. package/dist/api/types/UnitTestRunResponseModel.js +5 -0
  199. package/dist/api/types/UnitTestSummaryResponseModel.d.ts +16 -0
  200. package/dist/api/types/UnitTestSummaryResponseModel.js +5 -0
  201. package/dist/api/types/UnitTestToolCallEvaluationModelInput.d.ts +10 -0
  202. package/dist/api/types/UnitTestToolCallEvaluationModelInput.js +5 -0
  203. package/dist/api/types/UnitTestToolCallEvaluationModelOutput.d.ts +10 -0
  204. package/dist/api/types/UnitTestToolCallEvaluationModelOutput.js +5 -0
  205. package/dist/api/types/UnitTestToolCallParameter.d.ts +8 -0
  206. package/dist/api/types/UnitTestToolCallParameter.js +5 -0
  207. package/dist/api/types/UnitTestToolCallParameterEval.d.ts +16 -0
  208. package/dist/api/types/UnitTestToolCallParameterEval.js +5 -0
  209. package/dist/api/types/WebhookAuthMethodType.d.ts +2 -1
  210. package/dist/api/types/WebhookAuthMethodType.js +1 -0
  211. package/dist/api/types/WorkflowFeaturesUsageCommonModel.d.ts +8 -0
  212. package/dist/api/types/WorkflowFeaturesUsageCommonModel.js +5 -0
  213. package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +4 -1
  214. package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
  215. package/dist/api/types/WorkspaceResourceType.d.ts +1 -2
  216. package/dist/api/types/WorkspaceResourceType.js +0 -1
  217. package/dist/api/types/index.d.ts +34 -0
  218. package/dist/api/types/index.js +34 -0
  219. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
  220. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.js +46 -0
  221. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  222. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  223. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +3 -0
  224. package/dist/serialization/resources/conversationalAi/resources/index.js +4 -1
  225. package/dist/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
  226. package/dist/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +44 -0
  227. package/dist/serialization/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
  228. package/dist/serialization/resources/pronunciationDictionaries/client/requests/index.js +3 -1
  229. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +1 -1
  230. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
  231. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +1 -1
  232. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
  233. package/dist/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +15 -0
  234. package/dist/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.js +46 -0
  235. package/dist/serialization/types/AgentFailureResponseExample.d.ts +13 -0
  236. package/dist/serialization/types/AgentFailureResponseExample.js +44 -0
  237. package/dist/serialization/types/AgentSuccessfulResponseExample.d.ts +13 -0
  238. package/dist/serialization/types/AgentSuccessfulResponseExample.js +44 -0
  239. package/dist/serialization/types/AgentTestingSettings.d.ts +2 -1
  240. package/dist/serialization/types/AgentTestingSettings.js +2 -1
  241. package/dist/serialization/types/AttachedTestModel.d.ts +12 -0
  242. package/dist/serialization/types/AttachedTestModel.js +43 -0
  243. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  244. package/dist/serialization/types/ClientEvent.js +1 -0
  245. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
  246. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
  247. package/dist/serialization/types/CreateUnitTestResponseModel.d.ts +12 -0
  248. package/dist/serialization/types/CreateUnitTestResponseModel.js +43 -0
  249. package/dist/serialization/types/DetailedMusicResponse.d.ts +15 -0
  250. package/dist/serialization/types/DetailedMusicResponse.js +46 -0
  251. package/dist/serialization/types/ExactParameterEvaluationStrategy.d.ts +12 -0
  252. package/dist/serialization/types/ExactParameterEvaluationStrategy.js +43 -0
  253. package/dist/serialization/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +12 -0
  254. package/dist/serialization/types/ExtendedSubscriptionResponseModelPendingChange.js +43 -0
  255. package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +4 -0
  256. package/dist/serialization/types/FeaturesUsageCommonModel.js +4 -0
  257. package/dist/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +15 -0
  258. package/dist/serialization/types/GetTestSuiteInvocationResponseModel.js +46 -0
  259. package/dist/serialization/types/GetTestsPageResponseModel.d.ts +15 -0
  260. package/dist/serialization/types/GetTestsPageResponseModel.js +46 -0
  261. package/dist/serialization/types/GetTestsSummariesByIdsResponseModel.d.ts +13 -0
  262. package/dist/serialization/types/GetTestsSummariesByIdsResponseModel.js +44 -0
  263. package/dist/serialization/types/GetUnitTestResponseModel.d.ts +24 -0
  264. package/dist/serialization/types/GetUnitTestResponseModel.js +57 -0
  265. package/dist/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +10 -0
  266. package/dist/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.js +46 -0
  267. package/dist/serialization/types/Llm.d.ts +1 -1
  268. package/dist/serialization/types/Llm.js +2 -2
  269. package/dist/serialization/types/LlmParameterEvaluationStrategy.d.ts +12 -0
  270. package/dist/serialization/types/LlmParameterEvaluationStrategy.js +43 -0
  271. package/dist/serialization/types/MultipartMusicResponse.d.ts +14 -0
  272. package/dist/serialization/types/MultipartMusicResponse.js +45 -0
  273. package/dist/serialization/types/PendingCancellationResponseModel.d.ts +13 -0
  274. package/dist/serialization/types/PendingCancellationResponseModel.js +44 -0
  275. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +15 -0
  276. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.js +46 -0
  277. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +10 -0
  278. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.js +52 -0
  279. package/dist/serialization/types/ReferencedToolCommonModel.d.ts +14 -0
  280. package/dist/serialization/types/ReferencedToolCommonModel.js +45 -0
  281. package/dist/serialization/types/RegexParameterEvaluationStrategy.d.ts +12 -0
  282. package/dist/serialization/types/RegexParameterEvaluationStrategy.js +43 -0
  283. package/dist/serialization/types/SingleTestRunRequestModel.d.ts +12 -0
  284. package/dist/serialization/types/SingleTestRunRequestModel.js +43 -0
  285. package/dist/serialization/types/SongMetadata.d.ts +16 -0
  286. package/dist/serialization/types/SongMetadata.js +47 -0
  287. package/dist/serialization/types/Subscription.d.ts +2 -0
  288. package/dist/serialization/types/Subscription.js +2 -0
  289. package/dist/serialization/types/TestConditionRationaleCommonModel.d.ts +13 -0
  290. package/dist/serialization/types/TestConditionRationaleCommonModel.js +44 -0
  291. package/dist/serialization/types/TestConditionResultCommonModel.d.ts +15 -0
  292. package/dist/serialization/types/TestConditionResultCommonModel.js +46 -0
  293. package/dist/serialization/types/TestRunStatus.d.ts +10 -0
  294. package/dist/serialization/types/TestRunStatus.js +41 -0
  295. package/dist/serialization/types/TestToolResultModel.d.ts +13 -0
  296. package/dist/serialization/types/TestToolResultModel.js +44 -0
  297. package/dist/serialization/types/TestsFeatureUsageCommonModel.d.ts +14 -0
  298. package/dist/serialization/types/TestsFeatureUsageCommonModel.js +45 -0
  299. package/dist/serialization/types/UnitTestRunResponseModel.d.ts +22 -0
  300. package/dist/serialization/types/UnitTestRunResponseModel.js +53 -0
  301. package/dist/serialization/types/UnitTestSummaryResponseModel.d.ts +17 -0
  302. package/dist/serialization/types/UnitTestSummaryResponseModel.js +48 -0
  303. package/dist/serialization/types/UnitTestToolCallEvaluationModelInput.d.ts +15 -0
  304. package/dist/serialization/types/UnitTestToolCallEvaluationModelInput.js +46 -0
  305. package/dist/serialization/types/UnitTestToolCallEvaluationModelOutput.d.ts +15 -0
  306. package/dist/serialization/types/UnitTestToolCallEvaluationModelOutput.js +46 -0
  307. package/dist/serialization/types/UnitTestToolCallParameter.d.ts +14 -0
  308. package/dist/serialization/types/UnitTestToolCallParameter.js +45 -0
  309. package/dist/serialization/types/UnitTestToolCallParameterEval.d.ts +22 -0
  310. package/dist/serialization/types/UnitTestToolCallParameterEval.js +53 -0
  311. package/dist/serialization/types/WebhookAuthMethodType.d.ts +1 -1
  312. package/dist/serialization/types/WebhookAuthMethodType.js +1 -1
  313. package/dist/serialization/types/WorkflowFeaturesUsageCommonModel.d.ts +14 -0
  314. package/dist/serialization/types/WorkflowFeaturesUsageCommonModel.js +45 -0
  315. package/dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +1 -1
  316. package/dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
  317. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  318. package/dist/serialization/types/WorkspaceResourceType.js +0 -1
  319. package/dist/serialization/types/index.d.ts +34 -0
  320. package/dist/serialization/types/index.js +34 -0
  321. package/dist/version.d.ts +1 -1
  322. package/dist/version.js +1 -1
  323. package/package.json +1 -1
  324. package/reference.md +801 -82
  325. package/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
  326. package/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.js +46 -0
  327. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  328. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  329. package/serialization/resources/conversationalAi/resources/index.d.ts +3 -0
  330. package/serialization/resources/conversationalAi/resources/index.js +4 -1
  331. package/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
  332. package/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +44 -0
  333. package/serialization/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
  334. package/serialization/resources/pronunciationDictionaries/client/requests/index.js +3 -1
  335. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +1 -1
  336. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
  337. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +1 -1
  338. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
  339. package/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +15 -0
  340. package/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.js +46 -0
  341. package/serialization/types/AgentFailureResponseExample.d.ts +13 -0
  342. package/serialization/types/AgentFailureResponseExample.js +44 -0
  343. package/serialization/types/AgentSuccessfulResponseExample.d.ts +13 -0
  344. package/serialization/types/AgentSuccessfulResponseExample.js +44 -0
  345. package/serialization/types/AgentTestingSettings.d.ts +2 -1
  346. package/serialization/types/AgentTestingSettings.js +2 -1
  347. package/serialization/types/AttachedTestModel.d.ts +12 -0
  348. package/serialization/types/AttachedTestModel.js +43 -0
  349. package/serialization/types/ClientEvent.d.ts +1 -1
  350. package/serialization/types/ClientEvent.js +1 -0
  351. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
  352. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
  353. package/serialization/types/CreateUnitTestResponseModel.d.ts +12 -0
  354. package/serialization/types/CreateUnitTestResponseModel.js +43 -0
  355. package/serialization/types/DetailedMusicResponse.d.ts +15 -0
  356. package/serialization/types/DetailedMusicResponse.js +46 -0
  357. package/serialization/types/ExactParameterEvaluationStrategy.d.ts +12 -0
  358. package/serialization/types/ExactParameterEvaluationStrategy.js +43 -0
  359. package/serialization/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +12 -0
  360. package/serialization/types/ExtendedSubscriptionResponseModelPendingChange.js +43 -0
  361. package/serialization/types/FeaturesUsageCommonModel.d.ts +4 -0
  362. package/serialization/types/FeaturesUsageCommonModel.js +4 -0
  363. package/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +15 -0
  364. package/serialization/types/GetTestSuiteInvocationResponseModel.js +46 -0
  365. package/serialization/types/GetTestsPageResponseModel.d.ts +15 -0
  366. package/serialization/types/GetTestsPageResponseModel.js +46 -0
  367. package/serialization/types/GetTestsSummariesByIdsResponseModel.d.ts +13 -0
  368. package/serialization/types/GetTestsSummariesByIdsResponseModel.js +44 -0
  369. package/serialization/types/GetUnitTestResponseModel.d.ts +24 -0
  370. package/serialization/types/GetUnitTestResponseModel.js +57 -0
  371. package/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +10 -0
  372. package/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.js +46 -0
  373. package/serialization/types/Llm.d.ts +1 -1
  374. package/serialization/types/Llm.js +2 -2
  375. package/serialization/types/LlmParameterEvaluationStrategy.d.ts +12 -0
  376. package/serialization/types/LlmParameterEvaluationStrategy.js +43 -0
  377. package/serialization/types/MultipartMusicResponse.d.ts +14 -0
  378. package/serialization/types/MultipartMusicResponse.js +45 -0
  379. package/serialization/types/PendingCancellationResponseModel.d.ts +13 -0
  380. package/serialization/types/PendingCancellationResponseModel.js +44 -0
  381. package/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +15 -0
  382. package/serialization/types/PendingSubscriptionSwitchResponseModel.js +46 -0
  383. package/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +10 -0
  384. package/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.js +52 -0
  385. package/serialization/types/ReferencedToolCommonModel.d.ts +14 -0
  386. package/serialization/types/ReferencedToolCommonModel.js +45 -0
  387. package/serialization/types/RegexParameterEvaluationStrategy.d.ts +12 -0
  388. package/serialization/types/RegexParameterEvaluationStrategy.js +43 -0
  389. package/serialization/types/SingleTestRunRequestModel.d.ts +12 -0
  390. package/serialization/types/SingleTestRunRequestModel.js +43 -0
  391. package/serialization/types/SongMetadata.d.ts +16 -0
  392. package/serialization/types/SongMetadata.js +47 -0
  393. package/serialization/types/Subscription.d.ts +2 -0
  394. package/serialization/types/Subscription.js +2 -0
  395. package/serialization/types/TestConditionRationaleCommonModel.d.ts +13 -0
  396. package/serialization/types/TestConditionRationaleCommonModel.js +44 -0
  397. package/serialization/types/TestConditionResultCommonModel.d.ts +15 -0
  398. package/serialization/types/TestConditionResultCommonModel.js +46 -0
  399. package/serialization/types/TestRunStatus.d.ts +10 -0
  400. package/serialization/types/TestRunStatus.js +41 -0
  401. package/serialization/types/TestToolResultModel.d.ts +13 -0
  402. package/serialization/types/TestToolResultModel.js +44 -0
  403. package/serialization/types/TestsFeatureUsageCommonModel.d.ts +14 -0
  404. package/serialization/types/TestsFeatureUsageCommonModel.js +45 -0
  405. package/serialization/types/UnitTestRunResponseModel.d.ts +22 -0
  406. package/serialization/types/UnitTestRunResponseModel.js +53 -0
  407. package/serialization/types/UnitTestSummaryResponseModel.d.ts +17 -0
  408. package/serialization/types/UnitTestSummaryResponseModel.js +48 -0
  409. package/serialization/types/UnitTestToolCallEvaluationModelInput.d.ts +15 -0
  410. package/serialization/types/UnitTestToolCallEvaluationModelInput.js +46 -0
  411. package/serialization/types/UnitTestToolCallEvaluationModelOutput.d.ts +15 -0
  412. package/serialization/types/UnitTestToolCallEvaluationModelOutput.js +46 -0
  413. package/serialization/types/UnitTestToolCallParameter.d.ts +14 -0
  414. package/serialization/types/UnitTestToolCallParameter.js +45 -0
  415. package/serialization/types/UnitTestToolCallParameterEval.d.ts +22 -0
  416. package/serialization/types/UnitTestToolCallParameterEval.js +53 -0
  417. package/serialization/types/WebhookAuthMethodType.d.ts +1 -1
  418. package/serialization/types/WebhookAuthMethodType.js +1 -1
  419. package/serialization/types/WorkflowFeaturesUsageCommonModel.d.ts +14 -0
  420. package/serialization/types/WorkflowFeaturesUsageCommonModel.js +45 -0
  421. package/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +1 -1
  422. package/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
  423. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  424. package/serialization/types/WorkspaceResourceType.js +0 -1
  425. package/serialization/types/index.d.ts +34 -0
  426. package/serialization/types/index.js +34 -0
  427. package/version.d.ts +1 -1
  428. package/version.js +1 -1
package/Client.js CHANGED
@@ -79,8 +79,8 @@ class ElevenLabsClient {
79
79
  "xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
82
- "X-Fern-SDK-Version": "v2.11.0",
83
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.11.0",
82
+ "X-Fern-SDK-Version": "v2.12.1",
83
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.12.1",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -7,6 +7,7 @@ import * as ElevenLabs from "../../../index";
7
7
  import { Conversations } from "../resources/conversations/client/Client";
8
8
  import { Twilio } from "../resources/twilio/client/Client";
9
9
  import { Agents } from "../resources/agents/client/Client";
10
+ import { Tests } from "../resources/tests/client/Client";
10
11
  import { PhoneNumbers } from "../resources/phoneNumbers/client/Client";
11
12
  import { LlmUsage } from "../resources/llmUsage/client/Client";
12
13
  import { KnowledgeBase } from "../resources/knowledgeBase/client/Client";
@@ -45,6 +46,7 @@ export declare class ConversationalAi {
45
46
  protected _conversations: Conversations | undefined;
46
47
  protected _twilio: Twilio | undefined;
47
48
  protected _agents: Agents | undefined;
49
+ protected _tests: Tests | undefined;
48
50
  protected _phoneNumbers: PhoneNumbers | undefined;
49
51
  protected _llmUsage: LlmUsage | undefined;
50
52
  protected _knowledgeBase: KnowledgeBase | undefined;
@@ -59,6 +61,7 @@ export declare class ConversationalAi {
59
61
  get conversations(): Conversations;
60
62
  get twilio(): Twilio;
61
63
  get agents(): Agents;
64
+ get tests(): Tests;
62
65
  get phoneNumbers(): PhoneNumbers;
63
66
  get llmUsage(): LlmUsage;
64
67
  get knowledgeBase(): KnowledgeBase;
@@ -55,16 +55,17 @@ const errors = __importStar(require("../../../../errors/index"));
55
55
  const Client_1 = require("../resources/conversations/client/Client");
56
56
  const Client_2 = require("../resources/twilio/client/Client");
57
57
  const Client_3 = require("../resources/agents/client/Client");
58
- const Client_4 = require("../resources/phoneNumbers/client/Client");
59
- const Client_5 = require("../resources/llmUsage/client/Client");
60
- const Client_6 = require("../resources/knowledgeBase/client/Client");
61
- const Client_7 = require("../resources/tools/client/Client");
62
- const Client_8 = require("../resources/settings/client/Client");
63
- const Client_9 = require("../resources/secrets/client/Client");
64
- const Client_10 = require("../resources/batchCalls/client/Client");
65
- const Client_11 = require("../resources/sipTrunk/client/Client");
66
- const Client_12 = require("../resources/mcpServers/client/Client");
67
- const Client_13 = require("../resources/dashboard/client/Client");
58
+ const Client_4 = require("../resources/tests/client/Client");
59
+ const Client_5 = require("../resources/phoneNumbers/client/Client");
60
+ const Client_6 = require("../resources/llmUsage/client/Client");
61
+ const Client_7 = require("../resources/knowledgeBase/client/Client");
62
+ const Client_8 = require("../resources/tools/client/Client");
63
+ const Client_9 = require("../resources/settings/client/Client");
64
+ const Client_10 = require("../resources/secrets/client/Client");
65
+ const Client_11 = require("../resources/batchCalls/client/Client");
66
+ const Client_12 = require("../resources/sipTrunk/client/Client");
67
+ const Client_13 = require("../resources/mcpServers/client/Client");
68
+ const Client_14 = require("../resources/dashboard/client/Client");
68
69
  class ConversationalAi {
69
70
  constructor(_options = {}) {
70
71
  this._options = _options;
@@ -81,45 +82,49 @@ class ConversationalAi {
81
82
  var _a;
82
83
  return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_3.Agents(this._options)));
83
84
  }
85
+ get tests() {
86
+ var _a;
87
+ return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_4.Tests(this._options)));
88
+ }
84
89
  get phoneNumbers() {
85
90
  var _a;
86
- return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_4.PhoneNumbers(this._options)));
91
+ return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_5.PhoneNumbers(this._options)));
87
92
  }
88
93
  get llmUsage() {
89
94
  var _a;
90
- return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_5.LlmUsage(this._options)));
95
+ return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_6.LlmUsage(this._options)));
91
96
  }
92
97
  get knowledgeBase() {
93
98
  var _a;
94
- return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.KnowledgeBase(this._options)));
99
+ return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_7.KnowledgeBase(this._options)));
95
100
  }
96
101
  get tools() {
97
102
  var _a;
98
- return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_7.Tools(this._options)));
103
+ return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_8.Tools(this._options)));
99
104
  }
100
105
  get settings() {
101
106
  var _a;
102
- return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_8.Settings(this._options)));
107
+ return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_9.Settings(this._options)));
103
108
  }
104
109
  get secrets() {
105
110
  var _a;
106
- return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_9.Secrets(this._options)));
111
+ return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_10.Secrets(this._options)));
107
112
  }
108
113
  get batchCalls() {
109
114
  var _a;
110
- return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_10.BatchCalls(this._options)));
115
+ return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_11.BatchCalls(this._options)));
111
116
  }
112
117
  get sipTrunk() {
113
118
  var _a;
114
- return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_11.SipTrunk(this._options)));
119
+ return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_12.SipTrunk(this._options)));
115
120
  }
116
121
  get mcpServers() {
117
122
  var _a;
118
- return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_12.McpServers(this._options)));
123
+ return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_13.McpServers(this._options)));
119
124
  }
120
125
  get dashboard() {
121
126
  var _a;
122
- return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_13.Dashboard(this._options)));
127
+ return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_14.Dashboard(this._options)));
123
128
  }
124
129
  /**
125
130
  * Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
@@ -166,4 +166,22 @@ export declare class Agents {
166
166
  */
167
167
  simulateConversationStream(agentId: string, request: ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<void>;
168
168
  private __simulateConversationStream;
169
+ /**
170
+ * Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.
171
+ *
172
+ * @param {string} agentId - The id of an agent. This is returned on agent creation.
173
+ * @param {ElevenLabs.conversationalAi.RunAgentTestsRequestModel} request
174
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
175
+ *
176
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
177
+ *
178
+ * @example
179
+ * await client.conversationalAi.agents.runTests("21m00Tcm4TlvDq8ikWAM", {
180
+ * tests: [{
181
+ * testId: "test_id"
182
+ * }]
183
+ * })
184
+ */
185
+ runTests(agentId: string, request: ElevenLabs.conversationalAi.RunAgentTestsRequestModel, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestSuiteInvocationResponseModel>;
186
+ private __runTests;
169
187
  }
@@ -671,5 +671,85 @@ class Agents {
671
671
  }
672
672
  });
673
673
  }
674
+ /**
675
+ * Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.
676
+ *
677
+ * @param {string} agentId - The id of an agent. This is returned on agent creation.
678
+ * @param {ElevenLabs.conversationalAi.RunAgentTestsRequestModel} request
679
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
680
+ *
681
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
682
+ *
683
+ * @example
684
+ * await client.conversationalAi.agents.runTests("21m00Tcm4TlvDq8ikWAM", {
685
+ * tests: [{
686
+ * testId: "test_id"
687
+ * }]
688
+ * })
689
+ */
690
+ runTests(agentId, request, requestOptions) {
691
+ return core.HttpResponsePromise.fromPromise(this.__runTests(agentId, request, requestOptions));
692
+ }
693
+ __runTests(agentId, request, requestOptions) {
694
+ return __awaiter(this, void 0, void 0, function* () {
695
+ var _a, _b, _c;
696
+ const _response = yield core.fetcher({
697
+ 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/convai/agents/${encodeURIComponent(agentId)}/run-tests`),
698
+ method: "POST",
699
+ 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),
700
+ contentType: "application/json",
701
+ requestType: "json",
702
+ body: serializers.conversationalAi.RunAgentTestsRequestModel.jsonOrThrow(request, {
703
+ unrecognizedObjectKeys: "strip",
704
+ }),
705
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
706
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
707
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
708
+ });
709
+ if (_response.ok) {
710
+ return {
711
+ data: serializers.GetTestSuiteInvocationResponseModel.parseOrThrow(_response.body, {
712
+ unrecognizedObjectKeys: "passthrough",
713
+ allowUnrecognizedUnionMembers: true,
714
+ allowUnrecognizedEnumValues: true,
715
+ breadcrumbsPrefix: ["response"],
716
+ }),
717
+ rawResponse: _response.rawResponse,
718
+ };
719
+ }
720
+ if (_response.error.reason === "status-code") {
721
+ switch (_response.error.statusCode) {
722
+ case 422:
723
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
724
+ unrecognizedObjectKeys: "passthrough",
725
+ allowUnrecognizedUnionMembers: true,
726
+ allowUnrecognizedEnumValues: true,
727
+ breadcrumbsPrefix: ["response"],
728
+ }), _response.rawResponse);
729
+ default:
730
+ throw new errors.ElevenLabsError({
731
+ statusCode: _response.error.statusCode,
732
+ body: _response.error.body,
733
+ rawResponse: _response.rawResponse,
734
+ });
735
+ }
736
+ }
737
+ switch (_response.error.reason) {
738
+ case "non-json":
739
+ throw new errors.ElevenLabsError({
740
+ statusCode: _response.error.statusCode,
741
+ body: _response.error.rawBody,
742
+ rawResponse: _response.rawResponse,
743
+ });
744
+ case "timeout":
745
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/agents/{agent_id}/run-tests.");
746
+ case "unknown":
747
+ throw new errors.ElevenLabsError({
748
+ message: _response.error.errorMessage,
749
+ rawResponse: _response.rawResponse,
750
+ });
751
+ }
752
+ });
753
+ }
674
754
  }
675
755
  exports.Agents = Agents;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * tests: [{
9
+ * testId: "test_id"
10
+ * }]
11
+ * }
12
+ */
13
+ export interface RunAgentTestsRequestModel {
14
+ /** List of tests to run on the agent */
15
+ tests: ElevenLabs.SingleTestRunRequestModel[];
16
+ /** Configuration overrides to use for testing. If not provided, the agent's default configuration will be used. */
17
+ agentConfigOverride?: ElevenLabs.AdhocAgentConfigOverrideForTestRequestModel;
18
+ }
@@ -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 });
@@ -4,3 +4,4 @@ export { type AgentsListRequest } from "./AgentsListRequest";
4
4
  export { type BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost } from "./BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost";
5
5
  export { type BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost } from "./BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost";
6
6
  export { type BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost } from "./BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost";
7
+ export { type RunAgentTestsRequestModel } from "./RunAgentTestsRequestModel";
@@ -1,5 +1,7 @@
1
1
  export * as conversations from "./conversations";
2
2
  export * from "./conversations/types";
3
+ export * as tests from "./tests";
4
+ export * from "./tests/types";
3
5
  export * as phoneNumbers from "./phoneNumbers";
4
6
  export * from "./phoneNumbers/types";
5
7
  export * as dashboard from "./dashboard";
@@ -16,6 +18,7 @@ export * as mcpServers from "./mcpServers";
16
18
  export * from "./conversations/client/requests";
17
19
  export * from "./twilio/client/requests";
18
20
  export * from "./agents/client/requests";
21
+ export * from "./tests/client/requests";
19
22
  export * from "./phoneNumbers/client/requests";
20
23
  export * from "./llmUsage/client/requests";
21
24
  export * from "./knowledgeBase/client/requests";
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.mcpServers = exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.tools = exports.llmUsage = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.phoneNumbers = exports.conversations = void 0;
39
+ exports.mcpServers = exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.tools = exports.llmUsage = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.phoneNumbers = exports.tests = exports.conversations = void 0;
40
40
  exports.conversations = __importStar(require("./conversations"));
41
41
  __exportStar(require("./conversations/types"), exports);
42
+ exports.tests = __importStar(require("./tests"));
43
+ __exportStar(require("./tests/types"), exports);
42
44
  exports.phoneNumbers = __importStar(require("./phoneNumbers"));
43
45
  __exportStar(require("./phoneNumbers/types"), exports);
44
46
  exports.dashboard = __importStar(require("./dashboard"));
@@ -55,6 +57,7 @@ exports.mcpServers = __importStar(require("./mcpServers"));
55
57
  __exportStar(require("./conversations/client/requests"), exports);
56
58
  __exportStar(require("./twilio/client/requests"), exports);
57
59
  __exportStar(require("./agents/client/requests"), exports);
60
+ __exportStar(require("./tests/client/requests"), exports);
58
61
  __exportStar(require("./phoneNumbers/client/requests"), exports);
59
62
  __exportStar(require("./llmUsage/client/requests"), exports);
60
63
  __exportStar(require("./knowledgeBase/client/requests"), exports);
@@ -31,7 +31,7 @@ export declare class Tools {
31
31
  protected readonly _options: Tools.Options;
32
32
  constructor(_options?: Tools.Options);
33
33
  /**
34
- * Get all available tools available in the workspace.
34
+ * Get all available tools in the workspace.
35
35
  *
36
36
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -57,7 +57,7 @@ class Tools {
57
57
  this._options = _options;
58
58
  }
59
59
  /**
60
- * Get all available tools available in the workspace.
60
+ * Get all available tools in the workspace.
61
61
  *
62
62
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
@@ -68,12 +68,6 @@ export declare class PronunciationDictionaries {
68
68
  */
69
69
  createFromRules(request: ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPost, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddPronunciationDictionaryResponseModel>;
70
70
  private __createFromRules;
71
- /**
72
- * Get a PLS file with a pronunciation dictionary version rules
73
- * @throws {@link ElevenLabs.UnprocessableEntityError}
74
- */
75
- download(dictionaryId: string, versionId: string, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
76
- private __download;
77
71
  /**
78
72
  * Get metadata for a pronunciation dictionary
79
73
  *
@@ -87,6 +81,26 @@ export declare class PronunciationDictionaries {
87
81
  */
88
82
  get(pronunciationDictionaryId: string, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetPronunciationDictionaryMetadataResponse>;
89
83
  private __get;
84
+ /**
85
+ * Partially update the pronunciation dictionary without changing the version
86
+ *
87
+ * @param {string} pronunciationDictionaryId - The id of the pronunciation dictionary
88
+ * @param {ElevenLabs.BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch} request
89
+ * @param {PronunciationDictionaries.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
92
+ *
93
+ * @example
94
+ * await client.pronunciationDictionaries.update("21m00Tcm4TlvDq8ikWAM")
95
+ */
96
+ update(pronunciationDictionaryId: string, request?: ElevenLabs.BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetPronunciationDictionaryMetadataResponse>;
97
+ private __update;
98
+ /**
99
+ * Get a PLS file with a pronunciation dictionary version rules
100
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
101
+ */
102
+ download(dictionaryId: string, versionId: string, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
103
+ private __download;
90
104
  /**
91
105
  * Get a list of the pronunciation dictionaries you have access to and their metadata
92
106
  *
@@ -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
  };