@elevenlabs/elevenlabs-js 2.37.0 → 2.38.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 (442) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +2 -0
  3. package/api/resources/conversationalAi/resources/agents/client/Client.js +13 -3
  4. package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +3 -0
  5. package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +3 -0
  6. package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
  7. package/api/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.d.ts +1 -0
  8. package/api/resources/conversationalAi/resources/tests/client/Client.js +9 -1
  9. package/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +3 -1
  10. package/api/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +1 -0
  11. package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +1 -0
  12. package/api/resources/music/client/Client.d.ts +16 -0
  13. package/api/resources/music/client/Client.js +72 -0
  14. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
  15. package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
  16. package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
  17. package/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.d.ts +13 -0
  18. package/api/resources/music/client/requests/index.d.ts +1 -0
  19. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +22 -0
  20. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +72 -0
  21. package/api/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.d.ts +21 -0
  22. package/api/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts +1 -0
  23. package/api/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.d.ts +10 -0
  24. package/api/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.js +3 -0
  25. package/api/resources/pronunciationDictionaries/resources/rules/types/index.d.ts +1 -0
  26. package/api/resources/pronunciationDictionaries/resources/rules/types/index.js +1 -0
  27. package/api/resources/speechToText/client/Client.d.ts +1 -1
  28. package/api/resources/speechToText/client/Client.js +1 -1
  29. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -2
  30. package/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +1 -1
  31. package/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +1 -1
  32. package/api/types/AgentMetadata.d.ts +1 -0
  33. package/api/types/AsrProvider.d.ts +1 -0
  34. package/api/types/AsrProvider.js +1 -0
  35. package/api/types/BatchCallDetailedResponse.d.ts +1 -0
  36. package/api/types/BatchCallResponse.d.ts +1 -0
  37. package/api/types/CanvasPlacement.d.ts +4 -0
  38. package/api/types/ChapterStatisticsResponse.d.ts +3 -0
  39. package/api/types/CheckServiceAvailabilityParams.d.ts +3 -0
  40. package/api/types/CheckServiceAvailabilityParams.js +3 -0
  41. package/api/types/ClientEvent.d.ts +1 -0
  42. package/api/types/ClientEvent.js +1 -0
  43. package/api/types/ContentGuardrailInput.d.ts +1 -0
  44. package/api/types/ContentGuardrailOutput.d.ts +1 -0
  45. package/api/types/ConversationUserResponseModel.d.ts +2 -2
  46. package/api/types/CreateAssetParams.d.ts +3 -0
  47. package/api/types/CreateAssetParams.js +3 -0
  48. package/api/types/CreateClientAppointmentParams.d.ts +3 -0
  49. package/api/types/CreateClientAppointmentParams.js +3 -0
  50. package/api/types/CustomGuardrailConfig.d.ts +1 -2
  51. package/api/types/CustomGuardrailInput.d.ts +1 -1
  52. package/api/types/CustomGuardrailOutput.d.ts +1 -1
  53. package/{dist/api/types/CustomGuardrailsConfig.d.ts → api/types/CustomGuardrailsConfigInput.d.ts} +1 -1
  54. package/api/types/CustomGuardrailsConfigInput.js +3 -0
  55. package/api/types/CustomGuardrailsConfigOutput.d.ts +7 -0
  56. package/api/types/CustomGuardrailsConfigOutput.js +3 -0
  57. package/api/types/CustomLlm.d.ts +1 -1
  58. package/api/types/DeleteAssetParams.d.ts +3 -0
  59. package/api/types/DeleteAssetParams.js +3 -0
  60. package/api/types/DeleteCalendarEventParams.d.ts +3 -0
  61. package/api/types/DeleteCalendarEventParams.js +3 -0
  62. package/api/types/GetClientAppointmentsParams.d.ts +3 -0
  63. package/api/types/GetClientAppointmentsParams.js +3 -0
  64. package/api/types/GetWhatsAppAccountResponse.d.ts +1 -0
  65. package/api/types/GuardrailExecutionMode.d.ts +5 -0
  66. package/api/types/GuardrailExecutionMode.js +8 -0
  67. package/api/types/ListAssetsParams.d.ts +1 -0
  68. package/api/types/ListCalendarEventsParams.d.ts +3 -0
  69. package/api/types/ListCalendarEventsParams.js +3 -0
  70. package/api/types/ListProductsParams.d.ts +1 -0
  71. package/api/types/ListServicesParams.d.ts +1 -0
  72. package/api/types/ListStaffParams.d.ts +1 -0
  73. package/api/types/Llm.d.ts +1 -0
  74. package/api/types/Llm.js +1 -0
  75. package/api/types/ModerationGuardrailInput.d.ts +1 -0
  76. package/api/types/ModerationGuardrailOutput.d.ts +1 -0
  77. package/api/types/MusicUploadResponse.d.ts +10 -0
  78. package/api/types/MusicUploadResponse.js +3 -0
  79. package/api/types/ObjectJsonSchemaPropertyInput.d.ts +1 -0
  80. package/api/types/ObjectJsonSchemaPropertyOutput.d.ts +1 -0
  81. package/api/types/ProjectExtendedResponse.d.ts +2 -0
  82. package/api/types/ProjectResponse.d.ts +2 -0
  83. package/api/types/RequiredConstraint.d.ts +6 -0
  84. package/api/types/RequiredConstraint.js +3 -0
  85. package/api/types/RequiredConstraints.d.ts +8 -0
  86. package/api/types/RequiredConstraints.js +3 -0
  87. package/api/types/SongSection.d.ts +1 -1
  88. package/api/types/StudioAgentSettingsModel.d.ts +4 -0
  89. package/api/types/StudioAgentSettingsModel.js +3 -0
  90. package/api/types/StudioAgentToolSettingsModel.d.ts +3 -0
  91. package/api/types/StudioAgentToolSettingsModel.js +3 -0
  92. package/api/types/TelephonyCallConfig.d.ts +4 -0
  93. package/api/types/TelephonyCallConfig.js +3 -0
  94. package/api/types/UpdateAssetParams.d.ts +3 -0
  95. package/api/types/UpdateAssetParams.js +3 -0
  96. package/api/types/UpdateCalendarEventParams.d.ts +3 -0
  97. package/api/types/UpdateCalendarEventParams.js +3 -0
  98. package/api/types/VoiceStatisticsResponseModel.d.ts +8 -0
  99. package/api/types/VoiceStatisticsResponseModel.js +3 -0
  100. package/api/types/index.d.ts +19 -2
  101. package/api/types/index.js +19 -2
  102. package/dist/BaseClient.js +2 -2
  103. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +2 -0
  104. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +13 -3
  105. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +3 -0
  106. package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +3 -0
  107. package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
  108. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.d.ts +1 -0
  109. package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +9 -1
  110. package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +3 -1
  111. package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +1 -0
  112. package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +1 -0
  113. package/dist/api/resources/music/client/Client.d.ts +16 -0
  114. package/dist/api/resources/music/client/Client.js +72 -0
  115. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
  116. package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
  117. package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
  118. package/dist/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.d.ts +13 -0
  119. package/dist/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.js +3 -0
  120. package/dist/api/resources/music/client/requests/index.d.ts +1 -0
  121. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +22 -0
  122. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +72 -0
  123. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.d.ts +21 -0
  124. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.js +3 -0
  125. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts +1 -0
  126. package/dist/api/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.d.ts +10 -0
  127. package/dist/api/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.js +3 -0
  128. package/dist/api/resources/pronunciationDictionaries/resources/rules/types/index.d.ts +1 -0
  129. package/dist/api/resources/pronunciationDictionaries/resources/rules/types/index.js +1 -0
  130. package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
  131. package/dist/api/resources/speechToText/client/Client.js +1 -1
  132. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -2
  133. package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +1 -1
  134. package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +1 -1
  135. package/dist/api/types/AgentMetadata.d.ts +1 -0
  136. package/dist/api/types/AsrProvider.d.ts +1 -0
  137. package/dist/api/types/AsrProvider.js +1 -0
  138. package/dist/api/types/BatchCallDetailedResponse.d.ts +1 -0
  139. package/dist/api/types/BatchCallResponse.d.ts +1 -0
  140. package/dist/api/types/CanvasPlacement.d.ts +4 -0
  141. package/dist/api/types/ChapterStatisticsResponse.d.ts +3 -0
  142. package/dist/api/types/CheckServiceAvailabilityParams.d.ts +3 -0
  143. package/dist/api/types/CheckServiceAvailabilityParams.js +3 -0
  144. package/dist/api/types/ClientEvent.d.ts +1 -0
  145. package/dist/api/types/ClientEvent.js +1 -0
  146. package/dist/api/types/ContentGuardrailInput.d.ts +1 -0
  147. package/dist/api/types/ContentGuardrailOutput.d.ts +1 -0
  148. package/dist/api/types/ConversationUserResponseModel.d.ts +2 -2
  149. package/dist/api/types/CreateAssetParams.d.ts +3 -0
  150. package/dist/api/types/CreateAssetParams.js +3 -0
  151. package/dist/api/types/CreateClientAppointmentParams.d.ts +3 -0
  152. package/dist/api/types/CreateClientAppointmentParams.js +3 -0
  153. package/dist/api/types/CustomGuardrailConfig.d.ts +1 -2
  154. package/dist/api/types/CustomGuardrailInput.d.ts +1 -1
  155. package/dist/api/types/CustomGuardrailOutput.d.ts +1 -1
  156. package/{api/types/CustomGuardrailsConfig.d.ts → dist/api/types/CustomGuardrailsConfigInput.d.ts} +1 -1
  157. package/dist/api/types/CustomGuardrailsConfigInput.js +3 -0
  158. package/dist/api/types/CustomGuardrailsConfigOutput.d.ts +7 -0
  159. package/dist/api/types/CustomGuardrailsConfigOutput.js +3 -0
  160. package/dist/api/types/CustomLlm.d.ts +1 -1
  161. package/dist/api/types/DeleteAssetParams.d.ts +3 -0
  162. package/dist/api/types/DeleteAssetParams.js +3 -0
  163. package/dist/api/types/DeleteCalendarEventParams.d.ts +3 -0
  164. package/dist/api/types/DeleteCalendarEventParams.js +3 -0
  165. package/dist/api/types/GetClientAppointmentsParams.d.ts +3 -0
  166. package/dist/api/types/GetClientAppointmentsParams.js +3 -0
  167. package/dist/api/types/GetWhatsAppAccountResponse.d.ts +1 -0
  168. package/dist/api/types/GuardrailExecutionMode.d.ts +5 -0
  169. package/dist/api/types/GuardrailExecutionMode.js +8 -0
  170. package/dist/api/types/ListAssetsParams.d.ts +1 -0
  171. package/dist/api/types/ListCalendarEventsParams.d.ts +3 -0
  172. package/dist/api/types/ListCalendarEventsParams.js +3 -0
  173. package/dist/api/types/ListProductsParams.d.ts +1 -0
  174. package/dist/api/types/ListServicesParams.d.ts +1 -0
  175. package/dist/api/types/ListStaffParams.d.ts +1 -0
  176. package/dist/api/types/Llm.d.ts +1 -0
  177. package/dist/api/types/Llm.js +1 -0
  178. package/dist/api/types/ModerationGuardrailInput.d.ts +1 -0
  179. package/dist/api/types/ModerationGuardrailOutput.d.ts +1 -0
  180. package/dist/api/types/MusicUploadResponse.d.ts +10 -0
  181. package/dist/api/types/MusicUploadResponse.js +3 -0
  182. package/dist/api/types/ObjectJsonSchemaPropertyInput.d.ts +1 -0
  183. package/dist/api/types/ObjectJsonSchemaPropertyOutput.d.ts +1 -0
  184. package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
  185. package/dist/api/types/ProjectResponse.d.ts +2 -0
  186. package/dist/api/types/RequiredConstraint.d.ts +6 -0
  187. package/dist/api/types/RequiredConstraint.js +3 -0
  188. package/dist/api/types/RequiredConstraints.d.ts +8 -0
  189. package/dist/api/types/RequiredConstraints.js +3 -0
  190. package/dist/api/types/SongSection.d.ts +1 -1
  191. package/dist/api/types/StudioAgentSettingsModel.d.ts +4 -0
  192. package/dist/api/types/StudioAgentSettingsModel.js +3 -0
  193. package/dist/api/types/StudioAgentToolSettingsModel.d.ts +3 -0
  194. package/dist/api/types/StudioAgentToolSettingsModel.js +3 -0
  195. package/dist/api/types/TelephonyCallConfig.d.ts +4 -0
  196. package/dist/api/types/TelephonyCallConfig.js +3 -0
  197. package/dist/api/types/UpdateAssetParams.d.ts +3 -0
  198. package/dist/api/types/UpdateAssetParams.js +3 -0
  199. package/dist/api/types/UpdateCalendarEventParams.d.ts +3 -0
  200. package/dist/api/types/UpdateCalendarEventParams.js +3 -0
  201. package/dist/api/types/VoiceStatisticsResponseModel.d.ts +8 -0
  202. package/dist/api/types/VoiceStatisticsResponseModel.js +3 -0
  203. package/dist/api/types/index.d.ts +19 -2
  204. package/dist/api/types/index.js +19 -2
  205. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -1
  206. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -1
  207. package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -0
  208. package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -0
  209. package/dist/serialization/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.d.ts +2 -0
  210. package/dist/serialization/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.js +2 -0
  211. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +2 -0
  212. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.js +2 -0
  213. package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +1 -0
  214. package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.js +1 -0
  215. package/dist/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.d.ts +10 -0
  216. package/dist/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.js +42 -0
  217. package/dist/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts +1 -0
  218. package/dist/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/index.js +3 -1
  219. package/dist/serialization/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.d.ts +15 -0
  220. package/dist/serialization/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.js +49 -0
  221. package/dist/serialization/resources/pronunciationDictionaries/resources/rules/types/index.d.ts +1 -0
  222. package/dist/serialization/resources/pronunciationDictionaries/resources/rules/types/index.js +1 -0
  223. package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +1 -1
  224. package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +1 -1
  225. package/dist/serialization/types/AgentMetadata.d.ts +1 -0
  226. package/dist/serialization/types/AgentMetadata.js +1 -0
  227. package/dist/serialization/types/AsrProvider.d.ts +1 -1
  228. package/dist/serialization/types/AsrProvider.js +1 -1
  229. package/dist/serialization/types/BatchCallDetailedResponse.d.ts +2 -0
  230. package/dist/serialization/types/BatchCallDetailedResponse.js +2 -0
  231. package/dist/serialization/types/BatchCallResponse.d.ts +2 -0
  232. package/dist/serialization/types/BatchCallResponse.js +2 -0
  233. package/dist/serialization/types/CanvasPlacement.d.ts +4 -0
  234. package/dist/serialization/types/CanvasPlacement.js +4 -0
  235. package/dist/serialization/types/ChapterStatisticsResponse.d.ts +2 -0
  236. package/dist/serialization/types/ChapterStatisticsResponse.js +2 -0
  237. package/dist/serialization/types/CheckServiceAvailabilityParams.d.ts +9 -0
  238. package/dist/serialization/types/CheckServiceAvailabilityParams.js +41 -0
  239. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  240. package/dist/serialization/types/ClientEvent.js +1 -0
  241. package/dist/serialization/types/ContentGuardrailInput.d.ts +2 -0
  242. package/dist/serialization/types/ContentGuardrailInput.js +2 -0
  243. package/dist/serialization/types/ContentGuardrailOutput.d.ts +2 -0
  244. package/dist/serialization/types/ContentGuardrailOutput.js +2 -0
  245. package/dist/serialization/types/ConversationUserResponseModel.d.ts +2 -2
  246. package/dist/serialization/types/ConversationUserResponseModel.js +2 -2
  247. package/dist/serialization/types/CreateAssetParams.d.ts +9 -0
  248. package/dist/serialization/types/CreateAssetParams.js +41 -0
  249. package/dist/serialization/types/CreateClientAppointmentParams.d.ts +9 -0
  250. package/dist/serialization/types/CreateClientAppointmentParams.js +41 -0
  251. package/dist/serialization/types/CustomGuardrailConfig.d.ts +2 -2
  252. package/dist/serialization/types/CustomGuardrailConfig.js +2 -2
  253. package/dist/serialization/types/CustomGuardrailInput.d.ts +2 -2
  254. package/dist/serialization/types/CustomGuardrailInput.js +2 -2
  255. package/dist/serialization/types/CustomGuardrailOutput.d.ts +2 -2
  256. package/dist/serialization/types/CustomGuardrailOutput.js +2 -2
  257. package/{serialization/types/CustomGuardrailsConfig.d.ts → dist/serialization/types/CustomGuardrailsConfigInput.d.ts} +2 -2
  258. package/dist/serialization/types/{CustomGuardrailsConfig.js → CustomGuardrailsConfigInput.js} +2 -2
  259. package/dist/serialization/types/CustomGuardrailsConfigOutput.d.ts +10 -0
  260. package/dist/serialization/types/CustomGuardrailsConfigOutput.js +42 -0
  261. package/dist/serialization/types/DeleteAssetParams.d.ts +9 -0
  262. package/dist/serialization/types/DeleteAssetParams.js +41 -0
  263. package/dist/serialization/types/DeleteCalendarEventParams.d.ts +9 -0
  264. package/dist/serialization/types/DeleteCalendarEventParams.js +41 -0
  265. package/dist/serialization/types/GetClientAppointmentsParams.d.ts +9 -0
  266. package/dist/serialization/types/GetClientAppointmentsParams.js +41 -0
  267. package/dist/serialization/types/GetWhatsAppAccountResponse.d.ts +1 -0
  268. package/dist/serialization/types/GetWhatsAppAccountResponse.js +1 -0
  269. package/dist/serialization/types/GuardrailExecutionMode.d.ts +7 -0
  270. package/dist/serialization/types/{CustomGuardrailConfigModel.js → GuardrailExecutionMode.js} +2 -2
  271. package/dist/serialization/types/ListAssetsParams.d.ts +1 -0
  272. package/dist/serialization/types/ListAssetsParams.js +1 -0
  273. package/dist/serialization/types/ListCalendarEventsParams.d.ts +9 -0
  274. package/dist/serialization/types/ListCalendarEventsParams.js +41 -0
  275. package/dist/serialization/types/ListProductsParams.d.ts +1 -0
  276. package/dist/serialization/types/ListProductsParams.js +1 -0
  277. package/dist/serialization/types/ListServicesParams.d.ts +1 -0
  278. package/dist/serialization/types/ListServicesParams.js +1 -0
  279. package/dist/serialization/types/ListStaffParams.d.ts +1 -0
  280. package/dist/serialization/types/ListStaffParams.js +1 -0
  281. package/dist/serialization/types/Llm.d.ts +1 -1
  282. package/dist/serialization/types/Llm.js +1 -0
  283. package/dist/serialization/types/ModerationGuardrailInput.d.ts +2 -0
  284. package/dist/serialization/types/ModerationGuardrailInput.js +2 -0
  285. package/dist/serialization/types/ModerationGuardrailOutput.d.ts +2 -0
  286. package/dist/serialization/types/ModerationGuardrailOutput.js +2 -0
  287. package/dist/serialization/types/MusicUploadResponse.d.ts +11 -0
  288. package/dist/serialization/types/MusicUploadResponse.js +43 -0
  289. package/dist/serialization/types/ObjectJsonSchemaPropertyInput.d.ts +2 -0
  290. package/dist/serialization/types/ObjectJsonSchemaPropertyInput.js +2 -0
  291. package/dist/serialization/types/ObjectJsonSchemaPropertyOutput.d.ts +2 -0
  292. package/dist/serialization/types/ObjectJsonSchemaPropertyOutput.js +2 -0
  293. package/dist/serialization/types/ProjectExtendedResponse.d.ts +2 -0
  294. package/dist/serialization/types/ProjectExtendedResponse.js +2 -0
  295. package/dist/serialization/types/ProjectResponse.d.ts +2 -0
  296. package/dist/serialization/types/ProjectResponse.js +2 -0
  297. package/dist/serialization/types/RequiredConstraint.d.ts +9 -0
  298. package/dist/serialization/types/RequiredConstraint.js +41 -0
  299. package/dist/serialization/types/RequiredConstraints.d.ts +11 -0
  300. package/dist/serialization/types/RequiredConstraints.js +43 -0
  301. package/dist/serialization/types/StudioAgentSettingsModel.d.ts +10 -0
  302. package/dist/serialization/types/StudioAgentSettingsModel.js +42 -0
  303. package/dist/serialization/types/StudioAgentToolSettingsModel.d.ts +9 -0
  304. package/dist/serialization/types/StudioAgentToolSettingsModel.js +41 -0
  305. package/dist/serialization/types/TelephonyCallConfig.d.ts +9 -0
  306. package/dist/serialization/types/TelephonyCallConfig.js +41 -0
  307. package/dist/serialization/types/UpdateAssetParams.d.ts +9 -0
  308. package/dist/serialization/types/UpdateAssetParams.js +41 -0
  309. package/dist/serialization/types/UpdateCalendarEventParams.d.ts +9 -0
  310. package/dist/serialization/types/UpdateCalendarEventParams.js +41 -0
  311. package/dist/serialization/types/VoiceStatisticsResponseModel.d.ts +11 -0
  312. package/dist/serialization/types/VoiceStatisticsResponseModel.js +43 -0
  313. package/dist/serialization/types/index.d.ts +19 -2
  314. package/dist/serialization/types/index.js +19 -2
  315. package/dist/version.d.ts +1 -1
  316. package/dist/version.js +1 -1
  317. package/dist/wrapper/music.d.ts +3 -1
  318. package/dist/wrapper/music.js +29 -27
  319. package/package.json +1 -1
  320. package/reference.md +147 -1
  321. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -1
  322. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -1
  323. package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -0
  324. package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -0
  325. package/serialization/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.d.ts +2 -0
  326. package/serialization/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.js +2 -0
  327. package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +2 -0
  328. package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.js +2 -0
  329. package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +1 -0
  330. package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.js +1 -0
  331. package/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.d.ts +10 -0
  332. package/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.js +42 -0
  333. package/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts +1 -0
  334. package/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/index.js +3 -1
  335. package/serialization/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.d.ts +15 -0
  336. package/serialization/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.js +49 -0
  337. package/serialization/resources/pronunciationDictionaries/resources/rules/types/index.d.ts +1 -0
  338. package/serialization/resources/pronunciationDictionaries/resources/rules/types/index.js +1 -0
  339. package/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +1 -1
  340. package/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +1 -1
  341. package/serialization/types/AgentMetadata.d.ts +1 -0
  342. package/serialization/types/AgentMetadata.js +1 -0
  343. package/serialization/types/AsrProvider.d.ts +1 -1
  344. package/serialization/types/AsrProvider.js +1 -1
  345. package/serialization/types/BatchCallDetailedResponse.d.ts +2 -0
  346. package/serialization/types/BatchCallDetailedResponse.js +2 -0
  347. package/serialization/types/BatchCallResponse.d.ts +2 -0
  348. package/serialization/types/BatchCallResponse.js +2 -0
  349. package/serialization/types/CanvasPlacement.d.ts +4 -0
  350. package/serialization/types/CanvasPlacement.js +4 -0
  351. package/serialization/types/ChapterStatisticsResponse.d.ts +2 -0
  352. package/serialization/types/ChapterStatisticsResponse.js +2 -0
  353. package/serialization/types/CheckServiceAvailabilityParams.d.ts +9 -0
  354. package/serialization/types/CheckServiceAvailabilityParams.js +41 -0
  355. package/serialization/types/ClientEvent.d.ts +1 -1
  356. package/serialization/types/ClientEvent.js +1 -0
  357. package/serialization/types/ContentGuardrailInput.d.ts +2 -0
  358. package/serialization/types/ContentGuardrailInput.js +2 -0
  359. package/serialization/types/ContentGuardrailOutput.d.ts +2 -0
  360. package/serialization/types/ContentGuardrailOutput.js +2 -0
  361. package/serialization/types/ConversationUserResponseModel.d.ts +2 -2
  362. package/serialization/types/ConversationUserResponseModel.js +2 -2
  363. package/serialization/types/CreateAssetParams.d.ts +9 -0
  364. package/serialization/types/CreateAssetParams.js +41 -0
  365. package/serialization/types/CreateClientAppointmentParams.d.ts +9 -0
  366. package/serialization/types/CreateClientAppointmentParams.js +41 -0
  367. package/serialization/types/CustomGuardrailConfig.d.ts +2 -2
  368. package/serialization/types/CustomGuardrailConfig.js +2 -2
  369. package/serialization/types/CustomGuardrailInput.d.ts +2 -2
  370. package/serialization/types/CustomGuardrailInput.js +2 -2
  371. package/serialization/types/CustomGuardrailOutput.d.ts +2 -2
  372. package/serialization/types/CustomGuardrailOutput.js +2 -2
  373. package/{dist/serialization/types/CustomGuardrailsConfig.d.ts → serialization/types/CustomGuardrailsConfigInput.d.ts} +2 -2
  374. package/serialization/types/{CustomGuardrailsConfig.js → CustomGuardrailsConfigInput.js} +2 -2
  375. package/serialization/types/CustomGuardrailsConfigOutput.d.ts +10 -0
  376. package/serialization/types/CustomGuardrailsConfigOutput.js +42 -0
  377. package/serialization/types/DeleteAssetParams.d.ts +9 -0
  378. package/serialization/types/DeleteAssetParams.js +41 -0
  379. package/serialization/types/DeleteCalendarEventParams.d.ts +9 -0
  380. package/serialization/types/DeleteCalendarEventParams.js +41 -0
  381. package/serialization/types/GetClientAppointmentsParams.d.ts +9 -0
  382. package/serialization/types/GetClientAppointmentsParams.js +41 -0
  383. package/serialization/types/GetWhatsAppAccountResponse.d.ts +1 -0
  384. package/serialization/types/GetWhatsAppAccountResponse.js +1 -0
  385. package/serialization/types/GuardrailExecutionMode.d.ts +7 -0
  386. package/serialization/types/{CustomGuardrailConfigModel.js → GuardrailExecutionMode.js} +2 -2
  387. package/serialization/types/ListAssetsParams.d.ts +1 -0
  388. package/serialization/types/ListAssetsParams.js +1 -0
  389. package/serialization/types/ListCalendarEventsParams.d.ts +9 -0
  390. package/serialization/types/ListCalendarEventsParams.js +41 -0
  391. package/serialization/types/ListProductsParams.d.ts +1 -0
  392. package/serialization/types/ListProductsParams.js +1 -0
  393. package/serialization/types/ListServicesParams.d.ts +1 -0
  394. package/serialization/types/ListServicesParams.js +1 -0
  395. package/serialization/types/ListStaffParams.d.ts +1 -0
  396. package/serialization/types/ListStaffParams.js +1 -0
  397. package/serialization/types/Llm.d.ts +1 -1
  398. package/serialization/types/Llm.js +1 -0
  399. package/serialization/types/ModerationGuardrailInput.d.ts +2 -0
  400. package/serialization/types/ModerationGuardrailInput.js +2 -0
  401. package/serialization/types/ModerationGuardrailOutput.d.ts +2 -0
  402. package/serialization/types/ModerationGuardrailOutput.js +2 -0
  403. package/serialization/types/MusicUploadResponse.d.ts +11 -0
  404. package/serialization/types/MusicUploadResponse.js +43 -0
  405. package/serialization/types/ObjectJsonSchemaPropertyInput.d.ts +2 -0
  406. package/serialization/types/ObjectJsonSchemaPropertyInput.js +2 -0
  407. package/serialization/types/ObjectJsonSchemaPropertyOutput.d.ts +2 -0
  408. package/serialization/types/ObjectJsonSchemaPropertyOutput.js +2 -0
  409. package/serialization/types/ProjectExtendedResponse.d.ts +2 -0
  410. package/serialization/types/ProjectExtendedResponse.js +2 -0
  411. package/serialization/types/ProjectResponse.d.ts +2 -0
  412. package/serialization/types/ProjectResponse.js +2 -0
  413. package/serialization/types/RequiredConstraint.d.ts +9 -0
  414. package/serialization/types/RequiredConstraint.js +41 -0
  415. package/serialization/types/RequiredConstraints.d.ts +11 -0
  416. package/serialization/types/RequiredConstraints.js +43 -0
  417. package/serialization/types/StudioAgentSettingsModel.d.ts +10 -0
  418. package/serialization/types/StudioAgentSettingsModel.js +42 -0
  419. package/serialization/types/StudioAgentToolSettingsModel.d.ts +9 -0
  420. package/serialization/types/StudioAgentToolSettingsModel.js +41 -0
  421. package/serialization/types/TelephonyCallConfig.d.ts +9 -0
  422. package/serialization/types/TelephonyCallConfig.js +41 -0
  423. package/serialization/types/UpdateAssetParams.d.ts +9 -0
  424. package/serialization/types/UpdateAssetParams.js +41 -0
  425. package/serialization/types/UpdateCalendarEventParams.d.ts +9 -0
  426. package/serialization/types/UpdateCalendarEventParams.js +41 -0
  427. package/serialization/types/VoiceStatisticsResponseModel.d.ts +11 -0
  428. package/serialization/types/VoiceStatisticsResponseModel.js +43 -0
  429. package/serialization/types/index.d.ts +19 -2
  430. package/serialization/types/index.js +19 -2
  431. package/version.d.ts +1 -1
  432. package/version.js +1 -1
  433. package/wrapper/music.d.ts +3 -1
  434. package/wrapper/music.js +29 -27
  435. package/api/types/CustomGuardrailConfigModel.d.ts +0 -6
  436. package/api/types/CustomGuardrailConfigModel.js +0 -9
  437. package/dist/api/types/CustomGuardrailConfigModel.d.ts +0 -6
  438. package/dist/api/types/CustomGuardrailConfigModel.js +0 -9
  439. package/dist/serialization/types/CustomGuardrailConfigModel.d.ts +0 -7
  440. package/serialization/types/CustomGuardrailConfigModel.d.ts +0 -7
  441. /package/api/{types/CustomGuardrailsConfig.js → resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.js} +0 -0
  442. /package/{dist/api/types/CustomGuardrailsConfig.js → api/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.js} +0 -0
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.StudioAgentToolSettingsModel = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.StudioAgentToolSettingsModel = core.serialization.object({
40
+ skipConfirmation: core.serialization.property("skip_confirmation", core.serialization.boolean().optional()),
41
+ });
@@ -0,0 +1,9 @@
1
+ import type * as ElevenLabs from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const TelephonyCallConfig: core.serialization.ObjectSchema<serializers.TelephonyCallConfig.Raw, ElevenLabs.TelephonyCallConfig>;
5
+ export declare namespace TelephonyCallConfig {
6
+ interface Raw {
7
+ ringing_timeout_secs?: number | null;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.TelephonyCallConfig = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.TelephonyCallConfig = core.serialization.object({
40
+ ringingTimeoutSecs: core.serialization.property("ringing_timeout_secs", core.serialization.number().optional()),
41
+ });
@@ -0,0 +1,9 @@
1
+ import type * as ElevenLabs from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const UpdateAssetParams: core.serialization.ObjectSchema<serializers.UpdateAssetParams.Raw, ElevenLabs.UpdateAssetParams>;
5
+ export declare namespace UpdateAssetParams {
6
+ interface Raw {
7
+ smb_tool_type?: "update_asset" | null;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UpdateAssetParams = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.UpdateAssetParams = core.serialization.object({
40
+ smbToolType: core.serialization.property("smb_tool_type", core.serialization.stringLiteral("update_asset").optional()),
41
+ });
@@ -0,0 +1,9 @@
1
+ import type * as ElevenLabs from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const UpdateCalendarEventParams: core.serialization.ObjectSchema<serializers.UpdateCalendarEventParams.Raw, ElevenLabs.UpdateCalendarEventParams>;
5
+ export declare namespace UpdateCalendarEventParams {
6
+ interface Raw {
7
+ smb_tool_type?: "update_calendar_event" | null;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UpdateCalendarEventParams = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.UpdateCalendarEventParams = core.serialization.object({
40
+ smbToolType: core.serialization.property("smb_tool_type", core.serialization.stringLiteral("update_calendar_event").optional()),
41
+ });
@@ -0,0 +1,11 @@
1
+ import type * as ElevenLabs from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const VoiceStatisticsResponseModel: core.serialization.ObjectSchema<serializers.VoiceStatisticsResponseModel.Raw, ElevenLabs.VoiceStatisticsResponseModel>;
5
+ export declare namespace VoiceStatisticsResponseModel {
6
+ interface Raw {
7
+ voice_id: string;
8
+ characters_unconverted: number;
9
+ characters_converted: number;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.VoiceStatisticsResponseModel = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.VoiceStatisticsResponseModel = core.serialization.object({
40
+ voiceId: core.serialization.property("voice_id", core.serialization.string()),
41
+ charactersUnconverted: core.serialization.property("characters_unconverted", core.serialization.number()),
42
+ charactersConverted: core.serialization.property("characters_converted", core.serialization.number()),
43
+ });
@@ -197,6 +197,7 @@ export * from "./CharacterAlignmentResponseModel";
197
197
  export * from "./CharacterRefreshPeriod";
198
198
  export * from "./CharacterUsageResponse";
199
199
  export * from "./ChatSourceMedium";
200
+ export * from "./CheckServiceAvailabilityParams";
200
201
  export * from "./ClientEvent";
201
202
  export * from "./ClientToolConfigInput";
202
203
  export * from "./ClientToolConfigOutput";
@@ -310,7 +311,9 @@ export * from "./ConvertProjectResponseModel";
310
311
  export * from "./CreateAgentBranchResponseModel";
311
312
  export * from "./CreateAgentResponseModel";
312
313
  export * from "./CreateAgentTestResponseModel";
314
+ export * from "./CreateAssetParams";
313
315
  export * from "./CreateAudioNativeProjectRequest";
316
+ export * from "./CreateClientAppointmentParams";
314
317
  export * from "./CreateClientParams";
315
318
  export * from "./CreatePhoneNumberResponseModel";
316
319
  export * from "./CreatePreviouslyGeneratedVoiceRequest";
@@ -328,10 +331,10 @@ export * from "./CreateToolCallUnitTestRequestDynamicVariablesValue";
328
331
  export * from "./CreateTranscriptRequest";
329
332
  export * from "./CreateTwilioPhoneNumberRequest";
330
333
  export * from "./CustomGuardrailConfig";
331
- export * from "./CustomGuardrailConfigModel";
332
334
  export * from "./CustomGuardrailInput";
333
335
  export * from "./CustomGuardrailOutput";
334
- export * from "./CustomGuardrailsConfig";
336
+ export * from "./CustomGuardrailsConfigInput";
337
+ export * from "./CustomGuardrailsConfigOutput";
335
338
  export * from "./CustomLlm";
336
339
  export * from "./CustomLlmapiType";
337
340
  export * from "./CustomLlmRequestHeadersValue";
@@ -343,6 +346,8 @@ export * from "./DashboardDataCollectionChartModel";
343
346
  export * from "./DataCollectionResultCommonModel";
344
347
  export * from "./DefaultSharingGroupResponseModel";
345
348
  export * from "./DefaultSharingGroupResponseModelPermissionLevel";
349
+ export * from "./DeleteAssetParams";
350
+ export * from "./DeleteCalendarEventParams";
346
351
  export * from "./DeleteChapterRequest";
347
352
  export * from "./DeleteChapterResponseModel";
348
353
  export * from "./DeleteClientParams";
@@ -445,6 +450,7 @@ export * from "./GetChapterRequest";
445
450
  export * from "./GetChapterSnapshotsRequest";
446
451
  export * from "./GetChaptersRequest";
447
452
  export * from "./GetChaptersResponse";
453
+ export * from "./GetClientAppointmentsParams";
448
454
  export * from "./GetClientByPhoneParams";
449
455
  export * from "./GetConvAiDashboardSettingsResponseModel";
450
456
  export * from "./GetConvAiDashboardSettingsResponseModelChartsItem";
@@ -505,6 +511,7 @@ export * from "./GetVoicesResponse";
505
511
  export * from "./GetVoicesV2Response";
506
512
  export * from "./GetWhatsAppAccountResponse";
507
513
  export * from "./GetWorkspaceSecretsResponseModel";
514
+ export * from "./GuardrailExecutionMode";
508
515
  export * from "./GuardrailsV1Input";
509
516
  export * from "./GuardrailsV1Output";
510
517
  export * from "./HistoryAlignmentResponseModel";
@@ -544,6 +551,7 @@ export * from "./LanguageResponse";
544
551
  export * from "./LibraryVoiceResponse";
545
552
  export * from "./LibraryVoiceResponseModelCategory";
546
553
  export * from "./ListAssetsParams";
554
+ export * from "./ListCalendarEventsParams";
547
555
  export * from "./ListClientsParams";
548
556
  export * from "./ListMcpToolsResponseModel";
549
557
  export * from "./ListProductsParams";
@@ -612,6 +620,7 @@ export * from "./MultipartMusicResponse";
612
620
  export * from "./MultiSourceConfigJson";
613
621
  export * from "./MusicExploreSongSourceContext";
614
622
  export * from "./MusicPrompt";
623
+ export * from "./MusicUploadResponse";
615
624
  export * from "./NoCoachingSettings";
616
625
  export * from "./NonStreamingOutputFormats";
617
626
  export * from "./NormalizedAlignment";
@@ -751,6 +760,8 @@ export * from "./Render";
751
760
  export * from "./RenderStatus";
752
761
  export * from "./RenderType";
753
762
  export * from "./RequestPvcManualVerificationResponseModel";
763
+ export * from "./RequiredConstraint";
764
+ export * from "./RequiredConstraints";
754
765
  export * from "./ResourceAccessInfo";
755
766
  export * from "./ResourceAccessInfoRole";
756
767
  export * from "./ResourceMetadataResponseModel";
@@ -857,6 +868,8 @@ export * from "./StartPvcVoiceTrainingResponseModel";
857
868
  export * from "./StartSpeakerSeparationResponseModel";
858
869
  export * from "./StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel";
859
870
  export * from "./StreamingAudioChunkWithTimestampsResponse";
871
+ export * from "./StudioAgentSettingsModel";
872
+ export * from "./StudioAgentToolSettingsModel";
860
873
  export * from "./StudioClipReference";
861
874
  export * from "./StudioClipReferenceClipType";
862
875
  export * from "./Subscription";
@@ -869,6 +882,7 @@ export * from "./SystemToolConfigInput";
869
882
  export * from "./SystemToolConfigInputParams";
870
883
  export * from "./SystemToolConfigOutput";
871
884
  export * from "./SystemToolConfigOutputParams";
885
+ export * from "./TelephonyCallConfig";
872
886
  export * from "./TelephonyProvider";
873
887
  export * from "./TestConditionRationaleCommonModel";
874
888
  export * from "./TestConditionResultCommonModel";
@@ -952,7 +966,9 @@ export * from "./UnitTestToolCallEvaluationModelOutput";
952
966
  export * from "./UnitTestToolCallParameter";
953
967
  export * from "./UnitTestToolCallParameterEval";
954
968
  export * from "./UnitTestWorkflowNodeTransitionEvaluationNodeId";
969
+ export * from "./UpdateAssetParams";
955
970
  export * from "./UpdateAudioNativeProjectRequest";
971
+ export * from "./UpdateCalendarEventParams";
956
972
  export * from "./UpdateChapterRequest";
957
973
  export * from "./UpdateClientParams";
958
974
  export * from "./UpdateProductParams";
@@ -1000,6 +1016,7 @@ export * from "./VoiceSharingModerationCheckResponseModel";
1000
1016
  export * from "./VoiceSharingResponse";
1001
1017
  export * from "./VoiceSharingResponseModelCategory";
1002
1018
  export * from "./VoiceSharingState";
1019
+ export * from "./VoiceStatisticsResponseModel";
1003
1020
  export * from "./VoiceVerificationResponse";
1004
1021
  export * from "./WebhookAuthMethodType";
1005
1022
  export * from "./WebhookEventType";
@@ -213,6 +213,7 @@ __exportStar(require("./CharacterAlignmentResponseModel"), exports);
213
213
  __exportStar(require("./CharacterRefreshPeriod"), exports);
214
214
  __exportStar(require("./CharacterUsageResponse"), exports);
215
215
  __exportStar(require("./ChatSourceMedium"), exports);
216
+ __exportStar(require("./CheckServiceAvailabilityParams"), exports);
216
217
  __exportStar(require("./ClientEvent"), exports);
217
218
  __exportStar(require("./ClientToolConfigInput"), exports);
218
219
  __exportStar(require("./ClientToolConfigOutput"), exports);
@@ -326,7 +327,9 @@ __exportStar(require("./ConvertProjectResponseModel"), exports);
326
327
  __exportStar(require("./CreateAgentBranchResponseModel"), exports);
327
328
  __exportStar(require("./CreateAgentResponseModel"), exports);
328
329
  __exportStar(require("./CreateAgentTestResponseModel"), exports);
330
+ __exportStar(require("./CreateAssetParams"), exports);
329
331
  __exportStar(require("./CreateAudioNativeProjectRequest"), exports);
332
+ __exportStar(require("./CreateClientAppointmentParams"), exports);
330
333
  __exportStar(require("./CreateClientParams"), exports);
331
334
  __exportStar(require("./CreatePhoneNumberResponseModel"), exports);
332
335
  __exportStar(require("./CreatePreviouslyGeneratedVoiceRequest"), exports);
@@ -344,10 +347,10 @@ __exportStar(require("./CreateToolCallUnitTestRequestDynamicVariablesValue"), ex
344
347
  __exportStar(require("./CreateTranscriptRequest"), exports);
345
348
  __exportStar(require("./CreateTwilioPhoneNumberRequest"), exports);
346
349
  __exportStar(require("./CustomGuardrailConfig"), exports);
347
- __exportStar(require("./CustomGuardrailConfigModel"), exports);
348
350
  __exportStar(require("./CustomGuardrailInput"), exports);
349
351
  __exportStar(require("./CustomGuardrailOutput"), exports);
350
- __exportStar(require("./CustomGuardrailsConfig"), exports);
352
+ __exportStar(require("./CustomGuardrailsConfigInput"), exports);
353
+ __exportStar(require("./CustomGuardrailsConfigOutput"), exports);
351
354
  __exportStar(require("./CustomLlm"), exports);
352
355
  __exportStar(require("./CustomLlmapiType"), exports);
353
356
  __exportStar(require("./CustomLlmRequestHeadersValue"), exports);
@@ -359,6 +362,8 @@ __exportStar(require("./DashboardDataCollectionChartModel"), exports);
359
362
  __exportStar(require("./DataCollectionResultCommonModel"), exports);
360
363
  __exportStar(require("./DefaultSharingGroupResponseModel"), exports);
361
364
  __exportStar(require("./DefaultSharingGroupResponseModelPermissionLevel"), exports);
365
+ __exportStar(require("./DeleteAssetParams"), exports);
366
+ __exportStar(require("./DeleteCalendarEventParams"), exports);
362
367
  __exportStar(require("./DeleteChapterRequest"), exports);
363
368
  __exportStar(require("./DeleteChapterResponseModel"), exports);
364
369
  __exportStar(require("./DeleteClientParams"), exports);
@@ -461,6 +466,7 @@ __exportStar(require("./GetChapterRequest"), exports);
461
466
  __exportStar(require("./GetChapterSnapshotsRequest"), exports);
462
467
  __exportStar(require("./GetChaptersRequest"), exports);
463
468
  __exportStar(require("./GetChaptersResponse"), exports);
469
+ __exportStar(require("./GetClientAppointmentsParams"), exports);
464
470
  __exportStar(require("./GetClientByPhoneParams"), exports);
465
471
  __exportStar(require("./GetConvAiDashboardSettingsResponseModel"), exports);
466
472
  __exportStar(require("./GetConvAiDashboardSettingsResponseModelChartsItem"), exports);
@@ -521,6 +527,7 @@ __exportStar(require("./GetVoicesResponse"), exports);
521
527
  __exportStar(require("./GetVoicesV2Response"), exports);
522
528
  __exportStar(require("./GetWhatsAppAccountResponse"), exports);
523
529
  __exportStar(require("./GetWorkspaceSecretsResponseModel"), exports);
530
+ __exportStar(require("./GuardrailExecutionMode"), exports);
524
531
  __exportStar(require("./GuardrailsV1Input"), exports);
525
532
  __exportStar(require("./GuardrailsV1Output"), exports);
526
533
  __exportStar(require("./HistoryAlignmentResponseModel"), exports);
@@ -560,6 +567,7 @@ __exportStar(require("./LanguageResponse"), exports);
560
567
  __exportStar(require("./LibraryVoiceResponse"), exports);
561
568
  __exportStar(require("./LibraryVoiceResponseModelCategory"), exports);
562
569
  __exportStar(require("./ListAssetsParams"), exports);
570
+ __exportStar(require("./ListCalendarEventsParams"), exports);
563
571
  __exportStar(require("./ListClientsParams"), exports);
564
572
  __exportStar(require("./ListMcpToolsResponseModel"), exports);
565
573
  __exportStar(require("./ListProductsParams"), exports);
@@ -628,6 +636,7 @@ __exportStar(require("./MultipartMusicResponse"), exports);
628
636
  __exportStar(require("./MultiSourceConfigJson"), exports);
629
637
  __exportStar(require("./MusicExploreSongSourceContext"), exports);
630
638
  __exportStar(require("./MusicPrompt"), exports);
639
+ __exportStar(require("./MusicUploadResponse"), exports);
631
640
  __exportStar(require("./NoCoachingSettings"), exports);
632
641
  __exportStar(require("./NonStreamingOutputFormats"), exports);
633
642
  __exportStar(require("./NormalizedAlignment"), exports);
@@ -767,6 +776,8 @@ __exportStar(require("./Render"), exports);
767
776
  __exportStar(require("./RenderStatus"), exports);
768
777
  __exportStar(require("./RenderType"), exports);
769
778
  __exportStar(require("./RequestPvcManualVerificationResponseModel"), exports);
779
+ __exportStar(require("./RequiredConstraint"), exports);
780
+ __exportStar(require("./RequiredConstraints"), exports);
770
781
  __exportStar(require("./ResourceAccessInfo"), exports);
771
782
  __exportStar(require("./ResourceAccessInfoRole"), exports);
772
783
  __exportStar(require("./ResourceMetadataResponseModel"), exports);
@@ -873,6 +884,8 @@ __exportStar(require("./StartPvcVoiceTrainingResponseModel"), exports);
873
884
  __exportStar(require("./StartSpeakerSeparationResponseModel"), exports);
874
885
  __exportStar(require("./StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel"), exports);
875
886
  __exportStar(require("./StreamingAudioChunkWithTimestampsResponse"), exports);
887
+ __exportStar(require("./StudioAgentSettingsModel"), exports);
888
+ __exportStar(require("./StudioAgentToolSettingsModel"), exports);
876
889
  __exportStar(require("./StudioClipReference"), exports);
877
890
  __exportStar(require("./StudioClipReferenceClipType"), exports);
878
891
  __exportStar(require("./Subscription"), exports);
@@ -885,6 +898,7 @@ __exportStar(require("./SystemToolConfigInput"), exports);
885
898
  __exportStar(require("./SystemToolConfigInputParams"), exports);
886
899
  __exportStar(require("./SystemToolConfigOutput"), exports);
887
900
  __exportStar(require("./SystemToolConfigOutputParams"), exports);
901
+ __exportStar(require("./TelephonyCallConfig"), exports);
888
902
  __exportStar(require("./TelephonyProvider"), exports);
889
903
  __exportStar(require("./TestConditionRationaleCommonModel"), exports);
890
904
  __exportStar(require("./TestConditionResultCommonModel"), exports);
@@ -968,7 +982,9 @@ __exportStar(require("./UnitTestToolCallEvaluationModelOutput"), exports);
968
982
  __exportStar(require("./UnitTestToolCallParameter"), exports);
969
983
  __exportStar(require("./UnitTestToolCallParameterEval"), exports);
970
984
  __exportStar(require("./UnitTestWorkflowNodeTransitionEvaluationNodeId"), exports);
985
+ __exportStar(require("./UpdateAssetParams"), exports);
971
986
  __exportStar(require("./UpdateAudioNativeProjectRequest"), exports);
987
+ __exportStar(require("./UpdateCalendarEventParams"), exports);
972
988
  __exportStar(require("./UpdateChapterRequest"), exports);
973
989
  __exportStar(require("./UpdateClientParams"), exports);
974
990
  __exportStar(require("./UpdateProductParams"), exports);
@@ -1016,6 +1032,7 @@ __exportStar(require("./VoiceSharingModerationCheckResponseModel"), exports);
1016
1032
  __exportStar(require("./VoiceSharingResponse"), exports);
1017
1033
  __exportStar(require("./VoiceSharingResponseModelCategory"), exports);
1018
1034
  __exportStar(require("./VoiceSharingState"), exports);
1035
+ __exportStar(require("./VoiceStatisticsResponseModel"), exports);
1019
1036
  __exportStar(require("./VoiceVerificationResponse"), exports);
1020
1037
  __exportStar(require("./WebhookAuthMethodType"), exports);
1021
1038
  __exportStar(require("./WebhookEventType"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.37.0";
1
+ export declare const SDK_VERSION = "v2.38.1";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v2.37.0";
4
+ exports.SDK_VERSION = "v2.38.1";
@@ -1,6 +1,6 @@
1
+ import type * as ElevenLabs from "../api";
1
2
  import { MusicClient as GeneratedMusic } from "../api/resources/music/client/Client";
2
3
  import { CompositionPlanClient } from "../api/resources/music/resources/compositionPlan/client/Client";
3
- import type * as ElevenLabs from "../api";
4
4
  import * as core from "../core";
5
5
  export declare namespace Music {
6
6
  interface Options extends GeneratedMusic.Options {
@@ -123,4 +123,6 @@ export declare class Music {
123
123
  * Converts snake_case keys to camelCase recursively
124
124
  */
125
125
  private toCamelCase;
126
+ private findIndex;
127
+ private findAudioStartIndex;
126
128
  }
@@ -271,41 +271,17 @@ class Music {
271
271
  }
272
272
  // Find the start of audio data (after headers and empty line)
273
273
  let audioStart = secondBoundary + boundaryBytes.length;
274
- // Skip past the headers to find the empty line
275
- while (audioStart < responseBytes.length - 1) {
276
- if (responseBytes[audioStart] === 0x0a && responseBytes[audioStart + 1] === 0x0a) {
277
- // Found \n\n - audio starts after this
278
- audioStart += 2;
279
- break;
280
- }
281
- audioStart++;
282
- }
274
+ audioStart = this.findAudioStartIndex(responseBytes, audioStart);
283
275
  // Find the closing boundary to properly terminate the audio data
284
276
  // Multipart responses end with: \r\n--boundary--\r\n or \n--boundary--\n
285
277
  // Try \r\n first (HTTP standard), then fall back to \n
286
278
  const closingBoundaryCRLF = new TextEncoder().encode("\r\n" + boundary + "--");
287
279
  const closingBoundaryLF = new TextEncoder().encode("\n" + boundary + "--");
288
280
  let audioEnd = responseBytes.length;
289
- // Helper to find boundary pattern in response bytes
290
- const findBoundary = (pattern) => {
291
- for (let i = audioStart; i <= responseBytes.length - pattern.length; i++) {
292
- let match = true;
293
- for (let j = 0; j < pattern.length; j++) {
294
- if (responseBytes[i + j] !== pattern[j]) {
295
- match = false;
296
- break;
297
- }
298
- }
299
- if (match) {
300
- return i;
301
- }
302
- }
303
- return -1;
304
- };
305
281
  // Try CRLF first, then LF
306
- let foundAt = findBoundary(closingBoundaryCRLF);
282
+ let foundAt = this.findIndex(responseBytes, audioStart, closingBoundaryCRLF);
307
283
  if (foundAt === -1) {
308
- foundAt = findBoundary(closingBoundaryLF);
284
+ foundAt = this.findIndex(responseBytes, audioStart, closingBoundaryLF);
309
285
  }
310
286
  if (foundAt !== -1) {
311
287
  audioEnd = foundAt;
@@ -337,5 +313,31 @@ class Music {
337
313
  }
338
314
  return obj;
339
315
  }
316
+ findIndex(responseBytes, audioStart, pattern) {
317
+ for (let i = audioStart; i <= responseBytes.length - pattern.length; i++) {
318
+ let match = true;
319
+ for (let j = 0; j < pattern.length; j++) {
320
+ if (responseBytes[i + j] !== pattern[j]) {
321
+ match = false;
322
+ break;
323
+ }
324
+ }
325
+ if (match) {
326
+ return i;
327
+ }
328
+ }
329
+ return -1;
330
+ }
331
+ findAudioStartIndex(responseBytes, startIndex) {
332
+ const foundAtCRLF = this.findIndex(responseBytes, startIndex, new TextEncoder().encode("\r\n\r\n"));
333
+ if (foundAtCRLF !== -1) {
334
+ return foundAtCRLF + 4;
335
+ }
336
+ const foundAtLF = this.findIndex(responseBytes, startIndex, new TextEncoder().encode("\n\n"));
337
+ if (foundAtLF !== -1) {
338
+ return foundAtLF + 2;
339
+ }
340
+ throw new Error("Could not find body start index");
341
+ }
340
342
  }
341
343
  exports.Music = Music;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/elevenlabs-js",
3
- "version": "v2.37.0",
3
+ "version": "v2.38.1",
4
4
  "private": false,
5
5
  "repository": "github:elevenlabs/elevenlabs-js",
6
6
  "license": "MIT",