@elevenlabs/elevenlabs-js 2.25.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) 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 +31 -26
  4. package/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +12 -0
  5. package/api/resources/conversationalAi/resources/analytics/client/Client.js +15 -0
  6. package/api/resources/conversationalAi/resources/analytics/client/index.d.ts +1 -0
  7. package/api/resources/conversationalAi/resources/analytics/client/index.js +2 -0
  8. package/api/resources/conversationalAi/resources/analytics/index.d.ts +2 -0
  9. package/api/resources/conversationalAi/resources/analytics/index.js +18 -0
  10. package/api/resources/conversationalAi/resources/analytics/resources/index.d.ts +2 -0
  11. package/api/resources/conversationalAi/resources/analytics/resources/index.js +41 -0
  12. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +28 -0
  13. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +139 -0
  14. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.d.ts +1 -0
  15. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.js +17 -0
  16. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.d.ts +10 -0
  17. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.js +3 -0
  18. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.d.ts +1 -0
  19. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.js +2 -0
  20. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.d.ts +1 -0
  21. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.js +17 -0
  22. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -0
  23. package/api/resources/conversationalAi/resources/conversations/client/Client.js +13 -1
  24. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +9 -0
  25. package/api/resources/conversationalAi/resources/index.d.ts +1 -0
  26. package/api/resources/conversationalAi/resources/index.js +2 -1
  27. package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -2
  28. package/api/resources/dubbing/resources/resource/client/Client.d.ts +17 -0
  29. package/api/resources/dubbing/resources/resource/client/Client.js +81 -0
  30. package/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +11 -0
  31. package/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +3 -0
  32. package/api/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
  33. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +12 -0
  34. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +76 -0
  35. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +10 -0
  36. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
  37. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +2 -0
  38. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
  39. package/api/resources/studio/resources/projects/client/Client.js +5 -0
  40. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +2 -0
  41. package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -0
  42. package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
  43. package/api/resources/webhooks/client/Client.d.ts +49 -0
  44. package/api/resources/webhooks/client/Client.js +242 -0
  45. package/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +15 -0
  46. package/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +3 -0
  47. package/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +13 -0
  48. package/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +3 -0
  49. package/api/resources/webhooks/client/requests/index.d.ts +2 -0
  50. package/api/types/AgentDefinitionSource.d.ts +1 -0
  51. package/api/types/AgentDefinitionSource.js +1 -0
  52. package/api/types/AgentWorkflowRequestModel.d.ts +2 -0
  53. package/api/types/AgentWorkflowResponseModel.d.ts +2 -0
  54. package/api/types/ClientEvent.d.ts +1 -0
  55. package/api/types/ClientEvent.js +1 -0
  56. package/api/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
  57. package/api/types/CustomLlm.d.ts +2 -0
  58. package/api/types/CustomLlmapiType.d.ts +5 -0
  59. package/api/types/CustomLlmapiType.js +8 -0
  60. package/api/types/DeleteWorkspaceWebhookResponseModel.d.ts +4 -0
  61. package/api/types/DeleteWorkspaceWebhookResponseModel.js +3 -0
  62. package/api/types/DubbingTranscriptUtterance.d.ts +2 -1
  63. package/api/types/DubbingTranscriptWord.d.ts +2 -2
  64. package/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +2 -0
  65. package/api/types/ExtendedSubscriptionResponseModelBillingPeriod.js +2 -0
  66. package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +2 -0
  67. package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +2 -0
  68. package/api/types/GetLiveCountResponse.d.ts +4 -0
  69. package/api/types/GetLiveCountResponse.js +3 -0
  70. package/api/types/MusicPrompt.d.ts +2 -2
  71. package/api/types/PatchWorkspaceWebhookResponseModel.d.ts +4 -0
  72. package/api/types/PatchWorkspaceWebhookResponseModel.js +3 -0
  73. package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +2 -0
  74. package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +2 -0
  75. package/api/types/ProjectExtendedResponseModelSourceType.d.ts +1 -0
  76. package/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
  77. package/api/types/ProjectResponseModelSourceType.d.ts +1 -0
  78. package/api/types/ProjectResponseModelSourceType.js +1 -0
  79. package/api/types/SegmentMigrationResponse.d.ts +3 -0
  80. package/api/types/SegmentMigrationResponse.js +3 -0
  81. package/api/types/SongSection.d.ts +2 -2
  82. package/api/types/SpeakerCreatedResponse.d.ts +4 -0
  83. package/api/types/SpeakerCreatedResponse.js +3 -0
  84. package/api/types/SubscriptionResponseModelBillingPeriod.d.ts +2 -0
  85. package/api/types/SubscriptionResponseModelBillingPeriod.js +2 -0
  86. package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +2 -0
  87. package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +2 -0
  88. package/api/types/TtsConversationalConfigInput.d.ts +0 -2
  89. package/api/types/TtsConversationalConfigOutput.d.ts +0 -2
  90. package/api/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
  91. package/api/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
  92. package/api/types/WebhookHmacSettings.d.ts +11 -0
  93. package/api/types/WebhookHmacSettings.js +3 -0
  94. package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -5
  95. package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -5
  96. package/api/types/WidgetTextContents.d.ts +14 -0
  97. package/api/types/WorkspaceCreateWebhookResponseModel.d.ts +4 -0
  98. package/api/types/WorkspaceCreateWebhookResponseModel.js +3 -0
  99. package/api/types/index.d.ts +8 -0
  100. package/api/types/index.js +8 -0
  101. package/dist/Client.js +2 -2
  102. package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
  103. package/dist/api/resources/conversationalAi/client/Client.js +31 -26
  104. package/dist/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +12 -0
  105. package/dist/api/resources/conversationalAi/resources/analytics/client/Client.js +15 -0
  106. package/dist/api/resources/conversationalAi/resources/analytics/client/index.d.ts +1 -0
  107. package/dist/api/resources/conversationalAi/resources/analytics/client/index.js +2 -0
  108. package/dist/api/resources/conversationalAi/resources/analytics/index.d.ts +2 -0
  109. package/dist/api/resources/conversationalAi/resources/analytics/index.js +18 -0
  110. package/dist/api/resources/conversationalAi/resources/analytics/resources/index.d.ts +2 -0
  111. package/dist/api/resources/conversationalAi/resources/analytics/resources/index.js +41 -0
  112. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +28 -0
  113. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +139 -0
  114. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.d.ts +1 -0
  115. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.js +17 -0
  116. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.d.ts +10 -0
  117. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.js +3 -0
  118. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.d.ts +1 -0
  119. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.js +2 -0
  120. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.d.ts +1 -0
  121. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.js +17 -0
  122. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -0
  123. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +13 -1
  124. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +9 -0
  125. package/dist/api/resources/conversationalAi/resources/index.d.ts +1 -0
  126. package/dist/api/resources/conversationalAi/resources/index.js +2 -1
  127. package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -2
  128. package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +17 -0
  129. package/dist/api/resources/dubbing/resources/resource/client/Client.js +81 -0
  130. package/dist/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +11 -0
  131. package/dist/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +3 -0
  132. package/dist/api/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
  133. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +12 -0
  134. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +76 -0
  135. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +10 -0
  136. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
  137. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +2 -0
  138. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
  139. package/dist/api/resources/studio/resources/projects/client/Client.js +5 -0
  140. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +2 -0
  141. package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -0
  142. package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
  143. package/dist/api/resources/webhooks/client/Client.d.ts +49 -0
  144. package/dist/api/resources/webhooks/client/Client.js +242 -0
  145. package/dist/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +15 -0
  146. package/dist/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +3 -0
  147. package/dist/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +13 -0
  148. package/dist/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +3 -0
  149. package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -0
  150. package/dist/api/types/AgentDefinitionSource.d.ts +1 -0
  151. package/dist/api/types/AgentDefinitionSource.js +1 -0
  152. package/dist/api/types/AgentWorkflowRequestModel.d.ts +2 -0
  153. package/dist/api/types/AgentWorkflowResponseModel.d.ts +2 -0
  154. package/dist/api/types/ClientEvent.d.ts +1 -0
  155. package/dist/api/types/ClientEvent.js +1 -0
  156. package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
  157. package/dist/api/types/CustomLlm.d.ts +2 -0
  158. package/dist/api/types/CustomLlmapiType.d.ts +5 -0
  159. package/dist/api/types/CustomLlmapiType.js +8 -0
  160. package/dist/api/types/DeleteWorkspaceWebhookResponseModel.d.ts +4 -0
  161. package/dist/api/types/DeleteWorkspaceWebhookResponseModel.js +3 -0
  162. package/dist/api/types/DubbingTranscriptUtterance.d.ts +2 -1
  163. package/dist/api/types/DubbingTranscriptWord.d.ts +2 -2
  164. package/dist/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +2 -0
  165. package/dist/api/types/ExtendedSubscriptionResponseModelBillingPeriod.js +2 -0
  166. package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +2 -0
  167. package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +2 -0
  168. package/dist/api/types/GetLiveCountResponse.d.ts +4 -0
  169. package/dist/api/types/GetLiveCountResponse.js +3 -0
  170. package/dist/api/types/MusicPrompt.d.ts +2 -2
  171. package/dist/api/types/PatchWorkspaceWebhookResponseModel.d.ts +4 -0
  172. package/dist/api/types/PatchWorkspaceWebhookResponseModel.js +3 -0
  173. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +2 -0
  174. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +2 -0
  175. package/dist/api/types/ProjectExtendedResponseModelSourceType.d.ts +1 -0
  176. package/dist/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
  177. package/dist/api/types/ProjectResponseModelSourceType.d.ts +1 -0
  178. package/dist/api/types/ProjectResponseModelSourceType.js +1 -0
  179. package/dist/api/types/SegmentMigrationResponse.d.ts +3 -0
  180. package/dist/api/types/SegmentMigrationResponse.js +3 -0
  181. package/dist/api/types/SongSection.d.ts +2 -2
  182. package/dist/api/types/SpeakerCreatedResponse.d.ts +4 -0
  183. package/dist/api/types/SpeakerCreatedResponse.js +3 -0
  184. package/dist/api/types/SubscriptionResponseModelBillingPeriod.d.ts +2 -0
  185. package/dist/api/types/SubscriptionResponseModelBillingPeriod.js +2 -0
  186. package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +2 -0
  187. package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +2 -0
  188. package/dist/api/types/TtsConversationalConfigInput.d.ts +0 -2
  189. package/dist/api/types/TtsConversationalConfigOutput.d.ts +0 -2
  190. package/dist/api/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
  191. package/dist/api/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
  192. package/dist/api/types/WebhookHmacSettings.d.ts +11 -0
  193. package/dist/api/types/WebhookHmacSettings.js +3 -0
  194. package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -5
  195. package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -5
  196. package/dist/api/types/WidgetTextContents.d.ts +14 -0
  197. package/dist/api/types/WorkspaceCreateWebhookResponseModel.d.ts +4 -0
  198. package/dist/api/types/WorkspaceCreateWebhookResponseModel.js +3 -0
  199. package/dist/api/types/index.d.ts +8 -0
  200. package/dist/api/types/index.js +8 -0
  201. package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +10 -0
  202. package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +42 -0
  203. package/dist/serialization/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
  204. package/dist/serialization/resources/dubbing/resources/resource/client/requests/index.js +3 -1
  205. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +10 -0
  206. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +42 -0
  207. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +1 -0
  208. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +1 -0
  209. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
  210. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.js +3 -1
  211. package/dist/serialization/resources/index.d.ts +2 -0
  212. package/dist/serialization/resources/index.js +3 -1
  213. package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
  214. package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
  215. package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
  216. package/dist/serialization/resources/webhooks/client/index.js +17 -0
  217. package/dist/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +10 -0
  218. package/dist/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +42 -0
  219. package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +10 -0
  220. package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +42 -0
  221. package/dist/serialization/resources/webhooks/client/requests/index.d.ts +2 -0
  222. package/dist/serialization/resources/webhooks/client/requests/index.js +7 -0
  223. package/dist/serialization/resources/webhooks/index.d.ts +1 -0
  224. package/dist/serialization/resources/webhooks/index.js +17 -0
  225. package/dist/serialization/types/AgentDefinitionSource.d.ts +1 -1
  226. package/dist/serialization/types/AgentDefinitionSource.js +1 -1
  227. package/dist/serialization/types/AgentWorkflowRequestModel.d.ts +1 -0
  228. package/dist/serialization/types/AgentWorkflowRequestModel.js +1 -0
  229. package/dist/serialization/types/AgentWorkflowResponseModel.d.ts +1 -0
  230. package/dist/serialization/types/AgentWorkflowResponseModel.js +1 -0
  231. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  232. package/dist/serialization/types/ClientEvent.js +1 -0
  233. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
  234. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +1 -0
  235. package/dist/serialization/types/CustomLlm.d.ts +2 -0
  236. package/dist/serialization/types/CustomLlm.js +2 -0
  237. package/dist/serialization/types/CustomLlmapiType.d.ts +7 -0
  238. package/dist/serialization/types/CustomLlmapiType.js +39 -0
  239. package/dist/serialization/types/DeleteWorkspaceWebhookResponseModel.d.ts +9 -0
  240. package/dist/serialization/types/DeleteWorkspaceWebhookResponseModel.js +41 -0
  241. package/dist/serialization/types/DubbingTranscriptUtterance.d.ts +2 -1
  242. package/dist/serialization/types/DubbingTranscriptUtterance.js +2 -1
  243. package/dist/serialization/types/DubbingTranscriptWord.d.ts +2 -2
  244. package/dist/serialization/types/DubbingTranscriptWord.js +2 -2
  245. package/dist/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +1 -1
  246. package/dist/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.js +1 -1
  247. package/dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +1 -1
  248. package/dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +1 -1
  249. package/dist/serialization/types/GetLiveCountResponse.d.ts +9 -0
  250. package/dist/serialization/types/GetLiveCountResponse.js +41 -0
  251. package/dist/serialization/types/PatchWorkspaceWebhookResponseModel.d.ts +9 -0
  252. package/dist/serialization/types/PatchWorkspaceWebhookResponseModel.js +41 -0
  253. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +1 -1
  254. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +1 -1
  255. package/dist/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
  256. package/dist/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
  257. package/dist/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
  258. package/dist/serialization/types/ProjectResponseModelSourceType.js +1 -1
  259. package/dist/serialization/types/SegmentMigrationResponse.d.ts +9 -0
  260. package/dist/serialization/types/SegmentMigrationResponse.js +41 -0
  261. package/dist/serialization/types/SpeakerCreatedResponse.d.ts +10 -0
  262. package/dist/serialization/types/SpeakerCreatedResponse.js +42 -0
  263. package/dist/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +1 -1
  264. package/dist/serialization/types/SubscriptionResponseModelBillingPeriod.js +1 -1
  265. package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +1 -1
  266. package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +1 -1
  267. package/dist/serialization/types/TtsConversationalConfigInput.d.ts +0 -2
  268. package/dist/serialization/types/TtsConversationalConfigInput.js +0 -2
  269. package/dist/serialization/types/TtsConversationalConfigOutput.d.ts +0 -2
  270. package/dist/serialization/types/TtsConversationalConfigOutput.js +0 -2
  271. package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
  272. package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideInput.js +0 -2
  273. package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
  274. package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.js +0 -2
  275. package/dist/serialization/types/WebhookHmacSettings.d.ts +11 -0
  276. package/dist/serialization/types/WebhookHmacSettings.js +43 -0
  277. package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +1 -1
  278. package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +3 -3
  279. package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +1 -1
  280. package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +3 -3
  281. package/dist/serialization/types/WidgetTextContents.d.ts +7 -0
  282. package/dist/serialization/types/WidgetTextContents.js +7 -0
  283. package/dist/serialization/types/WorkspaceCreateWebhookResponseModel.d.ts +10 -0
  284. package/dist/serialization/types/WorkspaceCreateWebhookResponseModel.js +42 -0
  285. package/dist/serialization/types/index.d.ts +8 -0
  286. package/dist/serialization/types/index.js +8 -0
  287. package/dist/version.d.ts +1 -1
  288. package/dist/version.js +1 -1
  289. package/dist/wrapper/music.js +34 -3
  290. package/dist/wrapper/realtime/connection.d.ts +110 -6
  291. package/dist/wrapper/realtime/connection.js +74 -2
  292. package/dist/wrapper/realtime/index.d.ts +1 -1
  293. package/package.json +1 -1
  294. package/reference.md +406 -0
  295. package/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +10 -0
  296. package/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +42 -0
  297. package/serialization/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
  298. package/serialization/resources/dubbing/resources/resource/client/requests/index.js +3 -1
  299. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +10 -0
  300. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +42 -0
  301. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +1 -0
  302. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +1 -0
  303. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
  304. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.js +3 -1
  305. package/serialization/resources/index.d.ts +2 -0
  306. package/serialization/resources/index.js +3 -1
  307. package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
  308. package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
  309. package/serialization/resources/webhooks/client/index.d.ts +1 -0
  310. package/serialization/resources/webhooks/client/index.js +17 -0
  311. package/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +10 -0
  312. package/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +42 -0
  313. package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +10 -0
  314. package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +42 -0
  315. package/serialization/resources/webhooks/client/requests/index.d.ts +2 -0
  316. package/serialization/resources/webhooks/client/requests/index.js +7 -0
  317. package/serialization/resources/webhooks/index.d.ts +1 -0
  318. package/serialization/resources/webhooks/index.js +17 -0
  319. package/serialization/types/AgentDefinitionSource.d.ts +1 -1
  320. package/serialization/types/AgentDefinitionSource.js +1 -1
  321. package/serialization/types/AgentWorkflowRequestModel.d.ts +1 -0
  322. package/serialization/types/AgentWorkflowRequestModel.js +1 -0
  323. package/serialization/types/AgentWorkflowResponseModel.d.ts +1 -0
  324. package/serialization/types/AgentWorkflowResponseModel.js +1 -0
  325. package/serialization/types/ClientEvent.d.ts +1 -1
  326. package/serialization/types/ClientEvent.js +1 -0
  327. package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
  328. package/serialization/types/ConversationHistoryMetadataCommonModel.js +1 -0
  329. package/serialization/types/CustomLlm.d.ts +2 -0
  330. package/serialization/types/CustomLlm.js +2 -0
  331. package/serialization/types/CustomLlmapiType.d.ts +7 -0
  332. package/serialization/types/CustomLlmapiType.js +39 -0
  333. package/serialization/types/DeleteWorkspaceWebhookResponseModel.d.ts +9 -0
  334. package/serialization/types/DeleteWorkspaceWebhookResponseModel.js +41 -0
  335. package/serialization/types/DubbingTranscriptUtterance.d.ts +2 -1
  336. package/serialization/types/DubbingTranscriptUtterance.js +2 -1
  337. package/serialization/types/DubbingTranscriptWord.d.ts +2 -2
  338. package/serialization/types/DubbingTranscriptWord.js +2 -2
  339. package/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +1 -1
  340. package/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.js +1 -1
  341. package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +1 -1
  342. package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +1 -1
  343. package/serialization/types/GetLiveCountResponse.d.ts +9 -0
  344. package/serialization/types/GetLiveCountResponse.js +41 -0
  345. package/serialization/types/PatchWorkspaceWebhookResponseModel.d.ts +9 -0
  346. package/serialization/types/PatchWorkspaceWebhookResponseModel.js +41 -0
  347. package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +1 -1
  348. package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +1 -1
  349. package/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
  350. package/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
  351. package/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
  352. package/serialization/types/ProjectResponseModelSourceType.js +1 -1
  353. package/serialization/types/SegmentMigrationResponse.d.ts +9 -0
  354. package/serialization/types/SegmentMigrationResponse.js +41 -0
  355. package/serialization/types/SpeakerCreatedResponse.d.ts +10 -0
  356. package/serialization/types/SpeakerCreatedResponse.js +42 -0
  357. package/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +1 -1
  358. package/serialization/types/SubscriptionResponseModelBillingPeriod.js +1 -1
  359. package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +1 -1
  360. package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +1 -1
  361. package/serialization/types/TtsConversationalConfigInput.d.ts +0 -2
  362. package/serialization/types/TtsConversationalConfigInput.js +0 -2
  363. package/serialization/types/TtsConversationalConfigOutput.d.ts +0 -2
  364. package/serialization/types/TtsConversationalConfigOutput.js +0 -2
  365. package/serialization/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
  366. package/serialization/types/TtsConversationalConfigWorkflowOverrideInput.js +0 -2
  367. package/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
  368. package/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.js +0 -2
  369. package/serialization/types/WebhookHmacSettings.d.ts +11 -0
  370. package/serialization/types/WebhookHmacSettings.js +43 -0
  371. package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +1 -1
  372. package/serialization/types/WebhookToolApiSchemaConfigInput.js +3 -3
  373. package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +1 -1
  374. package/serialization/types/WebhookToolApiSchemaConfigOutput.js +3 -3
  375. package/serialization/types/WidgetTextContents.d.ts +7 -0
  376. package/serialization/types/WidgetTextContents.js +7 -0
  377. package/serialization/types/WorkspaceCreateWebhookResponseModel.d.ts +10 -0
  378. package/serialization/types/WorkspaceCreateWebhookResponseModel.js +42 -0
  379. package/serialization/types/index.d.ts +8 -0
  380. package/serialization/types/index.js +8 -0
  381. package/version.d.ts +1 -1
  382. package/version.js +1 -1
  383. package/wrapper/music.js +34 -3
  384. package/wrapper/realtime/connection.d.ts +110 -6
  385. package/wrapper/realtime/connection.js +74 -2
  386. package/wrapper/realtime/index.d.ts +1 -1
@@ -51,30 +51,31 @@ const errors = __importStar(require("../../../../errors/index"));
51
51
  const serializers = __importStar(require("../../../../serialization/index"));
52
52
  const ElevenLabs = __importStar(require("../../../index"));
53
53
  const Client_1 = require("../resources/agents/client/Client");
54
- const Client_2 = require("../resources/batchCalls/client/Client");
55
- const Client_3 = require("../resources/conversations/client/Client");
56
- const Client_4 = require("../resources/dashboard/client/Client");
57
- const Client_5 = require("../resources/knowledgeBase/client/Client");
58
- const Client_6 = require("../resources/llmUsage/client/Client");
59
- const Client_7 = require("../resources/mcpServers/client/Client");
60
- const Client_8 = require("../resources/phoneNumbers/client/Client");
61
- const Client_9 = require("../resources/secrets/client/Client");
62
- const Client_10 = require("../resources/settings/client/Client");
63
- const Client_11 = require("../resources/sipTrunk/client/Client");
64
- const Client_12 = require("../resources/tests/client/Client");
65
- const Client_13 = require("../resources/tools/client/Client");
66
- const Client_14 = require("../resources/twilio/client/Client");
54
+ const Client_2 = require("../resources/analytics/client/Client");
55
+ const Client_3 = require("../resources/batchCalls/client/Client");
56
+ const Client_4 = require("../resources/conversations/client/Client");
57
+ const Client_5 = require("../resources/dashboard/client/Client");
58
+ const Client_6 = require("../resources/knowledgeBase/client/Client");
59
+ const Client_7 = require("../resources/llmUsage/client/Client");
60
+ const Client_8 = require("../resources/mcpServers/client/Client");
61
+ const Client_9 = require("../resources/phoneNumbers/client/Client");
62
+ const Client_10 = require("../resources/secrets/client/Client");
63
+ const Client_11 = require("../resources/settings/client/Client");
64
+ const Client_12 = require("../resources/sipTrunk/client/Client");
65
+ const Client_13 = require("../resources/tests/client/Client");
66
+ const Client_14 = require("../resources/tools/client/Client");
67
+ const Client_15 = require("../resources/twilio/client/Client");
67
68
  class ConversationalAi {
68
69
  constructor(_options = {}) {
69
70
  this._options = _options;
70
71
  }
71
72
  get conversations() {
72
73
  var _a;
73
- return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_3.Conversations(this._options)));
74
+ return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_4.Conversations(this._options)));
74
75
  }
75
76
  get twilio() {
76
77
  var _a;
77
- return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_14.Twilio(this._options)));
78
+ return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_15.Twilio(this._options)));
78
79
  }
79
80
  get agents() {
80
81
  var _a;
@@ -82,47 +83,51 @@ class ConversationalAi {
82
83
  }
83
84
  get tests() {
84
85
  var _a;
85
- return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_12.Tests(this._options)));
86
+ return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_13.Tests(this._options)));
86
87
  }
87
88
  get phoneNumbers() {
88
89
  var _a;
89
- return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_8.PhoneNumbers(this._options)));
90
+ return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_9.PhoneNumbers(this._options)));
90
91
  }
91
92
  get llmUsage() {
92
93
  var _a;
93
- return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_6.LlmUsage(this._options)));
94
+ return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_7.LlmUsage(this._options)));
94
95
  }
95
96
  get knowledgeBase() {
96
97
  var _a;
97
- return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_5.KnowledgeBase(this._options)));
98
+ return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.KnowledgeBase(this._options)));
98
99
  }
99
100
  get tools() {
100
101
  var _a;
101
- return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_13.Tools(this._options)));
102
+ return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_14.Tools(this._options)));
102
103
  }
103
104
  get settings() {
104
105
  var _a;
105
- return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_10.Settings(this._options)));
106
+ return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_11.Settings(this._options)));
106
107
  }
107
108
  get secrets() {
108
109
  var _a;
109
- return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_9.Secrets(this._options)));
110
+ return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_10.Secrets(this._options)));
110
111
  }
111
112
  get batchCalls() {
112
113
  var _a;
113
- return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_2.BatchCalls(this._options)));
114
+ return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_3.BatchCalls(this._options)));
114
115
  }
115
116
  get sipTrunk() {
116
117
  var _a;
117
- return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_11.SipTrunk(this._options)));
118
+ return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_12.SipTrunk(this._options)));
118
119
  }
119
120
  get mcpServers() {
120
121
  var _a;
121
- return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_7.McpServers(this._options)));
122
+ return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_8.McpServers(this._options)));
123
+ }
124
+ get analytics() {
125
+ var _a;
126
+ return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_2.Analytics(this._options)));
122
127
  }
123
128
  get dashboard() {
124
129
  var _a;
125
- return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_4.Dashboard(this._options)));
130
+ return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_5.Dashboard(this._options)));
126
131
  }
127
132
  /**
128
133
  * 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>
@@ -0,0 +1,12 @@
1
+ import type { BaseClientOptions } from "../../../../../../BaseClient";
2
+ import { LiveCount } from "../resources/liveCount/client/Client";
3
+ export declare namespace Analytics {
4
+ interface Options extends BaseClientOptions {
5
+ }
6
+ }
7
+ export declare class Analytics {
8
+ protected readonly _options: Analytics.Options;
9
+ protected _liveCount: LiveCount | undefined;
10
+ constructor(_options?: Analytics.Options);
11
+ get liveCount(): LiveCount;
12
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Analytics = void 0;
5
+ const Client_1 = require("../resources/liveCount/client/Client");
6
+ class Analytics {
7
+ constructor(_options = {}) {
8
+ this._options = _options;
9
+ }
10
+ get liveCount() {
11
+ var _a;
12
+ return ((_a = this._liveCount) !== null && _a !== void 0 ? _a : (this._liveCount = new Client_1.LiveCount(this._options)));
13
+ }
14
+ }
15
+ exports.Analytics = Analytics;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./resources";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
18
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,2 @@
1
+ export * as liveCount from "./liveCount";
2
+ export * from "./liveCount/client/requests";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.liveCount = void 0;
40
+ exports.liveCount = __importStar(require("./liveCount"));
41
+ __exportStar(require("./liveCount/client/requests"), exports);
@@ -0,0 +1,28 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient";
2
+ import * as core from "../../../../../../../../core";
3
+ import * as ElevenLabs from "../../../../../../../index";
4
+ export declare namespace LiveCount {
5
+ interface Options extends BaseClientOptions {
6
+ }
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class LiveCount {
11
+ protected readonly _options: LiveCount.Options;
12
+ constructor(_options?: LiveCount.Options);
13
+ /**
14
+ * Get the live count of the ongoing conversations.
15
+ *
16
+ * @param {ElevenLabs.conversationalAi.analytics.LiveCountGetRequest} request
17
+ * @param {LiveCount.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
20
+ *
21
+ * @example
22
+ * await client.conversationalAi.analytics.liveCount.get({
23
+ * agentId: "agent_id"
24
+ * })
25
+ */
26
+ get(request?: ElevenLabs.conversationalAi.analytics.LiveCountGetRequest, requestOptions?: LiveCount.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetLiveCountResponse>;
27
+ private __get;
28
+ }
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.LiveCount = void 0;
47
+ const core = __importStar(require("../../../../../../../../core"));
48
+ const headers_1 = require("../../../../../../../../core/headers");
49
+ const environments = __importStar(require("../../../../../../../../environments"));
50
+ const errors = __importStar(require("../../../../../../../../errors/index"));
51
+ const serializers = __importStar(require("../../../../../../../../serialization/index"));
52
+ const ElevenLabs = __importStar(require("../../../../../../../index"));
53
+ class LiveCount {
54
+ constructor(_options = {}) {
55
+ this._options = _options;
56
+ }
57
+ /**
58
+ * Get the live count of the ongoing conversations.
59
+ *
60
+ * @param {ElevenLabs.conversationalAi.analytics.LiveCountGetRequest} request
61
+ * @param {LiveCount.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
64
+ *
65
+ * @example
66
+ * await client.conversationalAi.analytics.liveCount.get({
67
+ * agentId: "agent_id"
68
+ * })
69
+ */
70
+ get(request = {}, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
72
+ }
73
+ __get() {
74
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
75
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
76
+ const { agentId } = request;
77
+ const _queryParams = {};
78
+ if (agentId != null) {
79
+ _queryParams.agent_id = agentId;
80
+ }
81
+ const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
82
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
83
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/convai/analytics/live-count"),
84
+ method: "GET",
85
+ headers: _headers,
86
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
87
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
88
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
89
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
90
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
91
+ logging: this._options.logging,
92
+ });
93
+ if (_response.ok) {
94
+ return {
95
+ data: serializers.GetLiveCountResponse.parseOrThrow(_response.body, {
96
+ unrecognizedObjectKeys: "passthrough",
97
+ allowUnrecognizedUnionMembers: true,
98
+ allowUnrecognizedEnumValues: true,
99
+ breadcrumbsPrefix: ["response"],
100
+ }),
101
+ rawResponse: _response.rawResponse,
102
+ };
103
+ }
104
+ if (_response.error.reason === "status-code") {
105
+ switch (_response.error.statusCode) {
106
+ case 422:
107
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
108
+ unrecognizedObjectKeys: "passthrough",
109
+ allowUnrecognizedUnionMembers: true,
110
+ allowUnrecognizedEnumValues: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ }), _response.rawResponse);
113
+ default:
114
+ throw new errors.ElevenLabsError({
115
+ statusCode: _response.error.statusCode,
116
+ body: _response.error.body,
117
+ rawResponse: _response.rawResponse,
118
+ });
119
+ }
120
+ }
121
+ switch (_response.error.reason) {
122
+ case "non-json":
123
+ throw new errors.ElevenLabsError({
124
+ statusCode: _response.error.statusCode,
125
+ body: _response.error.rawBody,
126
+ rawResponse: _response.rawResponse,
127
+ });
128
+ case "timeout":
129
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/analytics/live-count.");
130
+ case "unknown":
131
+ throw new errors.ElevenLabsError({
132
+ message: _response.error.errorMessage,
133
+ rawResponse: _response.rawResponse,
134
+ });
135
+ }
136
+ });
137
+ }
138
+ }
139
+ exports.LiveCount = LiveCount;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * agentId: "agent_id"
5
+ * }
6
+ */
7
+ export interface LiveCountGetRequest {
8
+ /** The id of an agent to restrict the analytics to. */
9
+ agentId?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { LiveCountGetRequest } from "./LiveCountGetRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -65,6 +65,9 @@ export declare class Conversations {
65
65
  * callStartAfterUnix: 1,
66
66
  * callDurationMinSecs: 1,
67
67
  * callDurationMaxSecs: 1,
68
+ * ratingMax: 1,
69
+ * ratingMin: 1,
70
+ * hasFeedbackComment: true,
68
71
  * userId: "user_id",
69
72
  * pageSize: 1,
70
73
  * summaryMode: "exclude",
@@ -247,6 +247,9 @@ class Conversations {
247
247
  * callStartAfterUnix: 1,
248
248
  * callDurationMinSecs: 1,
249
249
  * callDurationMaxSecs: 1,
250
+ * ratingMax: 1,
251
+ * ratingMin: 1,
252
+ * hasFeedbackComment: true,
250
253
  * userId: "user_id",
251
254
  * pageSize: 1,
252
255
  * summaryMode: "exclude",
@@ -259,7 +262,7 @@ class Conversations {
259
262
  __list() {
260
263
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
261
264
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
262
- const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, userId, evaluationParams, dataCollectionParams, toolNames, pageSize, summaryMode, search, } = request;
265
+ const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, pageSize, summaryMode, search, } = request;
263
266
  const _queryParams = {};
264
267
  if (cursor != null) {
265
268
  _queryParams.cursor = cursor;
@@ -284,6 +287,15 @@ class Conversations {
284
287
  if (callDurationMaxSecs != null) {
285
288
  _queryParams.call_duration_max_secs = callDurationMaxSecs.toString();
286
289
  }
290
+ if (ratingMax != null) {
291
+ _queryParams.rating_max = ratingMax.toString();
292
+ }
293
+ if (ratingMin != null) {
294
+ _queryParams.rating_min = ratingMin.toString();
295
+ }
296
+ if (hasFeedbackComment != null) {
297
+ _queryParams.has_feedback_comment = hasFeedbackComment.toString();
298
+ }
287
299
  if (userId != null) {
288
300
  _queryParams.user_id = userId;
289
301
  }
@@ -9,6 +9,9 @@ import type * as ElevenLabs from "../../../../../../index";
9
9
  * callStartAfterUnix: 1,
10
10
  * callDurationMinSecs: 1,
11
11
  * callDurationMaxSecs: 1,
12
+ * ratingMax: 1,
13
+ * ratingMin: 1,
14
+ * hasFeedbackComment: true,
12
15
  * userId: "user_id",
13
16
  * pageSize: 1,
14
17
  * summaryMode: "exclude",
@@ -30,6 +33,12 @@ export interface ConversationsListRequest {
30
33
  callDurationMinSecs?: number;
31
34
  /** Maximum call duration in seconds. */
32
35
  callDurationMaxSecs?: number;
36
+ /** Maximum overall rating (1-5). */
37
+ ratingMax?: number;
38
+ /** Minimum overall rating (1-5). */
39
+ ratingMin?: number;
40
+ /** Filter conversations with user feedback comments. */
41
+ hasFeedbackComment?: boolean;
33
42
  /** Filter conversations by the user ID who initiated them. */
34
43
  userId?: string;
35
44
  /** Evaluation filters. Repeat param. Format: criteria_id:result. Example: eval=value_framing:success */
@@ -1,5 +1,6 @@
1
1
  export * as agents from "./agents";
2
2
  export * from "./agents/client/requests";
3
+ export * as analytics from "./analytics";
3
4
  export * as batchCalls from "./batchCalls";
4
5
  export * from "./batchCalls/client/requests";
5
6
  export * as conversations from "./conversations";
@@ -36,9 +36,10 @@ 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.twilio = exports.tools = exports.tests = exports.sipTrunk = exports.settings = exports.secrets = exports.phoneNumbers = exports.mcpServers = exports.llmUsage = exports.knowledgeBase = exports.dashboard = exports.conversations = exports.batchCalls = exports.agents = void 0;
39
+ exports.twilio = exports.tools = exports.tests = exports.sipTrunk = exports.settings = exports.secrets = exports.phoneNumbers = exports.mcpServers = exports.llmUsage = exports.knowledgeBase = exports.dashboard = exports.conversations = exports.batchCalls = exports.analytics = exports.agents = void 0;
40
40
  exports.agents = __importStar(require("./agents"));
41
41
  __exportStar(require("./agents/client/requests"), exports);
42
+ exports.analytics = __importStar(require("./analytics"));
42
43
  exports.batchCalls = __importStar(require("./batchCalls"));
43
44
  __exportStar(require("./batchCalls/client/requests"), exports);
44
45
  exports.conversations = __importStar(require("./conversations"));
@@ -17,9 +17,9 @@ export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
17
17
  name?: string;
18
18
  /** URL of the source video/audio file. */
19
19
  sourceUrl?: string;
20
- /** Source language. */
20
+ /** Source language. Expects a valid iso639-1 or iso639-3 language code. */
21
21
  sourceLang?: string;
22
- /** The Target language to dub the content into. */
22
+ /** The Target language to dub the content into. Expects a valid iso639-1 or iso639-3 language code. */
23
23
  targetLang?: string;
24
24
  /** [Experimental] An accent to apply when selecting voices from the library and to use to inform translation of the dialect to prefer. */
25
25
  targetAccent?: string;
@@ -32,6 +32,23 @@ export declare class Resource {
32
32
  */
33
33
  get(dubbing_id: string, requestOptions?: Resource.RequestOptions): core.HttpResponsePromise<ElevenLabs.DubbingResource>;
34
34
  private __get;
35
+ /**
36
+ * Change the attribution of one or more segments to a different speaker.
37
+ *
38
+ * @param {string} dubbing_id - ID of the dubbing project.
39
+ * @param {ElevenLabs.dubbing.BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost} request
40
+ * @param {Resource.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
43
+ *
44
+ * @example
45
+ * await client.dubbing.resource.migrateSegments("dubbing_id", {
46
+ * segmentIds: ["segment_ids"],
47
+ * speakerId: "speaker_id"
48
+ * })
49
+ */
50
+ migrateSegments(dubbing_id: string, request: ElevenLabs.dubbing.BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost, requestOptions?: Resource.RequestOptions): core.HttpResponsePromise<ElevenLabs.SegmentMigrationResponse>;
51
+ private __migrateSegments;
35
52
  /**
36
53
  * Regenerate the transcriptions for the specified segments. Does not automatically regenerate translations or dubs.
37
54
  *