@elevenlabs/elevenlabs-js 2.31.0 → 2.32.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 (519) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
  3. package/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
  4. package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
  5. package/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
  6. package/api/resources/conversationalAi/resources/agents/resources/summaries/client/Client.d.ts +26 -0
  7. package/api/resources/conversationalAi/resources/agents/resources/summaries/client/Client.js +130 -0
  8. package/api/resources/conversationalAi/resources/agents/resources/summaries/client/index.d.ts +1 -0
  9. package/api/resources/conversationalAi/resources/agents/resources/summaries/client/index.js +17 -0
  10. package/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/SummariesGetRequest.d.ts +8 -0
  11. package/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/SummariesGetRequest.js +3 -0
  12. package/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/index.d.ts +1 -0
  13. package/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/index.js +2 -0
  14. package/api/resources/conversationalAi/resources/agents/resources/summaries/index.d.ts +2 -0
  15. package/api/resources/conversationalAi/resources/agents/resources/summaries/index.js +18 -0
  16. package/api/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.d.ts +10 -0
  17. package/api/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.js +3 -0
  18. package/api/resources/conversationalAi/resources/agents/resources/summaries/types/index.d.ts +1 -0
  19. package/api/resources/conversationalAi/resources/agents/resources/summaries/types/index.js +17 -0
  20. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +13 -0
  21. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +52 -0
  22. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +6 -3
  23. package/api/resources/conversationalAi/resources/conversations/client/Client.js +18 -6
  24. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +4 -1
  25. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +4 -1
  26. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
  27. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
  28. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
  29. package/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +0 -2
  30. package/api/resources/serviceAccounts/resources/apiKeys/types/index.js +0 -2
  31. package/api/resources/speechToText/client/Client.d.ts +1 -1
  32. package/api/resources/speechToText/client/Client.js +4 -2
  33. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -4
  34. package/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +6 -0
  35. package/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +9 -0
  36. package/api/resources/speechToText/types/index.d.ts +1 -0
  37. package/api/resources/speechToText/types/index.js +1 -0
  38. package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +4 -4
  39. package/api/resources/studio/resources/projects/client/Client.js +3 -1
  40. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +5 -5
  41. package/api/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.d.ts +14 -0
  42. package/api/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.js +17 -0
  43. package/api/resources/studio/resources/projects/types/index.d.ts +1 -0
  44. package/api/resources/studio/resources/projects/types/index.js +1 -0
  45. package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.d.ts +4 -4
  46. package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.js +4 -4
  47. package/api/resources/textToSpeech/client/Client.d.ts +1 -1
  48. package/api/resources/textToSpeech/client/Client.js +1 -1
  49. package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
  50. package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +2 -2
  51. package/api/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.d.ts +17 -10
  52. package/api/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.js +17 -10
  53. package/api/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.d.ts +17 -10
  54. package/api/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.js +17 -10
  55. package/api/resources/voices/client/Client.js +7 -1
  56. package/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +3 -2
  57. package/api/resources/voices/resources/index.d.ts +1 -0
  58. package/api/resources/voices/resources/index.js +1 -0
  59. package/api/resources/voices/resources/ivc/client/Client.js +7 -1
  60. package/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.d.ts +3 -2
  61. package/api/resources/voices/resources/ivc/index.d.ts +1 -0
  62. package/api/resources/voices/resources/ivc/index.js +1 -0
  63. package/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.d.ts +4 -0
  64. package/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.js +3 -0
  65. package/api/resources/voices/resources/ivc/types/index.d.ts +1 -0
  66. package/api/resources/voices/resources/ivc/types/index.js +17 -0
  67. package/api/resources/voices/resources/pvc/client/requests/BodyEditPvcVoiceV1VoicesPvcVoiceIdPost.d.ts +1 -1
  68. package/api/resources/voices/resources/pvc/client/requests/CreatePvcVoiceRequest.d.ts +1 -1
  69. package/api/resources/voices/types/VoicesUpdateRequestLabels.d.ts +4 -0
  70. package/api/resources/voices/types/VoicesUpdateRequestLabels.js +3 -0
  71. package/api/resources/voices/types/index.d.ts +1 -0
  72. package/api/resources/voices/types/index.js +1 -0
  73. package/api/types/AddKnowledgeBaseResponseModel.d.ts +3 -0
  74. package/api/types/AgentSummaryBatchSuccessfulResponseModel.d.ts +4 -0
  75. package/api/types/AgentSummaryBatchSuccessfulResponseModel.js +3 -0
  76. package/api/types/Contributor.d.ts +4 -0
  77. package/api/types/Contributor.js +3 -0
  78. package/api/types/ConversationHistoryAnalysisCommonModel.d.ts +2 -0
  79. package/api/types/CustomSipHeader.d.ts +9 -0
  80. package/api/types/CustomSipHeader.js +3 -0
  81. package/api/types/CustomSipHeaderWithDynamicVariable.d.ts +11 -0
  82. package/api/types/CustomSipHeaderWithDynamicVariable.js +3 -0
  83. package/api/types/DirectPublishingReadResponseModel.d.ts +50 -0
  84. package/api/types/DirectPublishingReadResponseModel.js +3 -0
  85. package/api/types/DirectPublishingReadResponseModelDisplayMode.d.ts +6 -0
  86. package/api/types/DirectPublishingReadResponseModelDisplayMode.js +9 -0
  87. package/api/types/DirectPublishingReadResponseModelGenreItem.d.ts +35 -0
  88. package/api/types/DirectPublishingReadResponseModelGenreItem.js +38 -0
  89. package/api/types/DirectPublishingReadResponseModelPayoutType.d.ts +6 -0
  90. package/api/types/DirectPublishingReadResponseModelPayoutType.js +9 -0
  91. package/api/types/DirectPublishingReadResponseModelTargetAudience.d.ts +7 -0
  92. package/api/types/DirectPublishingReadResponseModelTargetAudience.js +10 -0
  93. package/api/types/DubbingMetadataResponse.d.ts +6 -4
  94. package/api/types/DubbingModel.d.ts +1 -0
  95. package/api/types/DubbingModel.js +1 -0
  96. package/api/types/InvoiceResponse.d.ts +3 -1
  97. package/api/types/InvoiceResponseModelPaymentIntentStatussesItem.d.ts +10 -0
  98. package/api/types/InvoiceResponseModelPaymentIntentStatussesItem.js +13 -0
  99. package/api/types/LiteralJsonSchemaProperty.d.ts +7 -4
  100. package/api/types/LiteralJsonSchemaPropertyConstantValue.d.ts +1 -1
  101. package/api/{resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts → types/PermissionType.d.ts} +8 -2
  102. package/api/types/{WorkspaceApiKeyResponseModelPermissionsItem.js → PermissionType.js} +8 -2
  103. package/api/types/PhoneNumberTransfer.d.ts +2 -0
  104. package/api/types/PhoneNumberTransferCustomSipHeadersItem.d.ts +10 -0
  105. package/api/types/PhoneNumberTransferCustomSipHeadersItem.js +3 -0
  106. package/api/types/PreviewAudioDbModel.d.ts +7 -0
  107. package/api/types/PreviewAudioDbModel.js +3 -0
  108. package/api/types/ProjectExtendedResponse.d.ts +2 -0
  109. package/api/types/ReadLegalTerms.d.ts +5 -0
  110. package/api/types/ReadLegalTerms.js +3 -0
  111. package/api/types/ReadMetadataChapterDbModel.d.ts +10 -0
  112. package/api/types/ReadMetadataChapterDbModel.js +3 -0
  113. package/api/types/ReviewResponseModel.d.ts +9 -0
  114. package/api/types/ReviewResponseModel.js +3 -0
  115. package/api/types/ReviewResponseModelRejectReasonsItem.d.ts +21 -0
  116. package/api/types/ReviewResponseModelRejectReasonsItem.js +24 -0
  117. package/api/types/ReviewResponseModelReviewStatus.d.ts +6 -0
  118. package/api/types/ReviewResponseModelReviewStatus.js +9 -0
  119. package/api/types/SampleConfigDbModel.d.ts +7 -0
  120. package/api/types/SampleConfigDbModel.js +3 -0
  121. package/api/types/SampleConfigDbModelParentType.d.ts +5 -0
  122. package/api/types/SampleConfigDbModelParentType.js +8 -0
  123. package/api/types/SpellingPatience.d.ts +6 -0
  124. package/api/types/SpellingPatience.js +9 -0
  125. package/api/types/TurnConfig.d.ts +2 -0
  126. package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
  127. package/api/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
  128. package/api/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.d.ts +10 -0
  129. package/api/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.js +3 -0
  130. package/api/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
  131. package/api/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.d.ts +10 -0
  132. package/api/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.js +3 -0
  133. package/api/types/WorkspaceApiKeyResponseModel.d.ts +2 -1
  134. package/api/types/index.d.ts +23 -1
  135. package/api/types/index.js +23 -1
  136. package/dist/BaseClient.js +2 -2
  137. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
  138. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
  139. package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
  140. package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
  141. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/Client.d.ts +26 -0
  142. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/Client.js +130 -0
  143. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/index.d.ts +1 -0
  144. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/index.js +17 -0
  145. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/SummariesGetRequest.d.ts +8 -0
  146. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/SummariesGetRequest.js +3 -0
  147. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/index.d.ts +1 -0
  148. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/index.js +2 -0
  149. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/index.d.ts +2 -0
  150. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/index.js +18 -0
  151. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.d.ts +10 -0
  152. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.js +3 -0
  153. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/types/index.d.ts +1 -0
  154. package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/types/index.js +17 -0
  155. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +13 -0
  156. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +52 -0
  157. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +6 -3
  158. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +18 -6
  159. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +4 -1
  160. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +4 -1
  161. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
  162. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
  163. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
  164. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +0 -2
  165. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.js +0 -2
  166. package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
  167. package/dist/api/resources/speechToText/client/Client.js +4 -2
  168. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -4
  169. package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +6 -0
  170. package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +9 -0
  171. package/dist/api/resources/speechToText/types/index.d.ts +1 -0
  172. package/dist/api/resources/speechToText/types/index.js +1 -0
  173. package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +4 -4
  174. package/dist/api/resources/studio/resources/projects/client/Client.js +3 -1
  175. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +5 -5
  176. package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.d.ts +14 -0
  177. package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.js +17 -0
  178. package/dist/api/resources/studio/resources/projects/types/index.d.ts +1 -0
  179. package/dist/api/resources/studio/resources/projects/types/index.js +1 -0
  180. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.d.ts +4 -4
  181. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.js +4 -4
  182. package/dist/api/resources/textToSpeech/client/Client.d.ts +1 -1
  183. package/dist/api/resources/textToSpeech/client/Client.js +1 -1
  184. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
  185. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +2 -2
  186. package/dist/api/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.d.ts +17 -10
  187. package/dist/api/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.js +17 -10
  188. package/dist/api/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.d.ts +17 -10
  189. package/dist/api/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.js +17 -10
  190. package/dist/api/resources/voices/client/Client.js +7 -1
  191. package/dist/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +3 -2
  192. package/dist/api/resources/voices/resources/index.d.ts +1 -0
  193. package/dist/api/resources/voices/resources/index.js +1 -0
  194. package/dist/api/resources/voices/resources/ivc/client/Client.js +7 -1
  195. package/dist/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.d.ts +3 -2
  196. package/dist/api/resources/voices/resources/ivc/index.d.ts +1 -0
  197. package/dist/api/resources/voices/resources/ivc/index.js +1 -0
  198. package/dist/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.d.ts +4 -0
  199. package/dist/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.js +3 -0
  200. package/dist/api/resources/voices/resources/ivc/types/index.d.ts +1 -0
  201. package/dist/api/resources/voices/resources/ivc/types/index.js +17 -0
  202. package/dist/api/resources/voices/resources/pvc/client/requests/BodyEditPvcVoiceV1VoicesPvcVoiceIdPost.d.ts +1 -1
  203. package/dist/api/resources/voices/resources/pvc/client/requests/CreatePvcVoiceRequest.d.ts +1 -1
  204. package/dist/api/resources/voices/types/VoicesUpdateRequestLabels.d.ts +4 -0
  205. package/dist/api/resources/voices/types/VoicesUpdateRequestLabels.js +3 -0
  206. package/dist/api/resources/voices/types/index.d.ts +1 -0
  207. package/dist/api/resources/voices/types/index.js +1 -0
  208. package/dist/api/types/AddKnowledgeBaseResponseModel.d.ts +3 -0
  209. package/dist/api/types/AgentSummaryBatchSuccessfulResponseModel.d.ts +4 -0
  210. package/dist/api/types/AgentSummaryBatchSuccessfulResponseModel.js +3 -0
  211. package/dist/api/types/Contributor.d.ts +4 -0
  212. package/dist/api/types/Contributor.js +3 -0
  213. package/dist/api/types/ConversationHistoryAnalysisCommonModel.d.ts +2 -0
  214. package/dist/api/types/CustomSipHeader.d.ts +9 -0
  215. package/dist/api/types/CustomSipHeader.js +3 -0
  216. package/dist/api/types/CustomSipHeaderWithDynamicVariable.d.ts +11 -0
  217. package/dist/api/types/CustomSipHeaderWithDynamicVariable.js +3 -0
  218. package/dist/api/types/DirectPublishingReadResponseModel.d.ts +50 -0
  219. package/dist/api/types/DirectPublishingReadResponseModel.js +3 -0
  220. package/dist/api/types/DirectPublishingReadResponseModelDisplayMode.d.ts +6 -0
  221. package/dist/api/types/DirectPublishingReadResponseModelDisplayMode.js +9 -0
  222. package/dist/api/types/DirectPublishingReadResponseModelGenreItem.d.ts +35 -0
  223. package/dist/api/types/DirectPublishingReadResponseModelGenreItem.js +38 -0
  224. package/dist/api/types/DirectPublishingReadResponseModelPayoutType.d.ts +6 -0
  225. package/dist/api/types/DirectPublishingReadResponseModelPayoutType.js +9 -0
  226. package/dist/api/types/DirectPublishingReadResponseModelTargetAudience.d.ts +7 -0
  227. package/dist/api/types/DirectPublishingReadResponseModelTargetAudience.js +10 -0
  228. package/dist/api/types/DubbingMetadataResponse.d.ts +6 -4
  229. package/dist/api/types/DubbingModel.d.ts +1 -0
  230. package/dist/api/types/DubbingModel.js +1 -0
  231. package/dist/api/types/InvoiceResponse.d.ts +3 -1
  232. package/dist/api/types/InvoiceResponseModelPaymentIntentStatussesItem.d.ts +10 -0
  233. package/dist/api/types/InvoiceResponseModelPaymentIntentStatussesItem.js +13 -0
  234. package/dist/api/types/LiteralJsonSchemaProperty.d.ts +7 -4
  235. package/dist/api/types/LiteralJsonSchemaPropertyConstantValue.d.ts +1 -1
  236. package/{api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts → dist/api/types/PermissionType.d.ts} +8 -2
  237. package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js → dist/api/types/PermissionType.js} +8 -2
  238. package/dist/api/types/PhoneNumberTransfer.d.ts +2 -0
  239. package/dist/api/types/PhoneNumberTransferCustomSipHeadersItem.d.ts +10 -0
  240. package/dist/api/types/PhoneNumberTransferCustomSipHeadersItem.js +3 -0
  241. package/dist/api/types/PreviewAudioDbModel.d.ts +7 -0
  242. package/dist/api/types/PreviewAudioDbModel.js +3 -0
  243. package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
  244. package/dist/api/types/ReadLegalTerms.d.ts +5 -0
  245. package/dist/api/types/ReadLegalTerms.js +3 -0
  246. package/dist/api/types/ReadMetadataChapterDbModel.d.ts +10 -0
  247. package/dist/api/types/ReadMetadataChapterDbModel.js +3 -0
  248. package/dist/api/types/ReviewResponseModel.d.ts +9 -0
  249. package/dist/api/types/ReviewResponseModel.js +3 -0
  250. package/dist/api/types/ReviewResponseModelRejectReasonsItem.d.ts +21 -0
  251. package/dist/api/types/ReviewResponseModelRejectReasonsItem.js +24 -0
  252. package/dist/api/types/ReviewResponseModelReviewStatus.d.ts +6 -0
  253. package/dist/api/types/ReviewResponseModelReviewStatus.js +9 -0
  254. package/dist/api/types/SampleConfigDbModel.d.ts +7 -0
  255. package/dist/api/types/SampleConfigDbModel.js +3 -0
  256. package/dist/api/types/SampleConfigDbModelParentType.d.ts +5 -0
  257. package/dist/api/types/SampleConfigDbModelParentType.js +8 -0
  258. package/dist/api/types/SpellingPatience.d.ts +6 -0
  259. package/dist/api/types/SpellingPatience.js +9 -0
  260. package/dist/api/types/TurnConfig.d.ts +2 -0
  261. package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
  262. package/dist/api/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
  263. package/dist/api/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.d.ts +10 -0
  264. package/dist/api/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.js +3 -0
  265. package/dist/api/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
  266. package/dist/api/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.d.ts +10 -0
  267. package/dist/api/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.js +3 -0
  268. package/dist/api/types/WorkspaceApiKeyResponseModel.d.ts +2 -1
  269. package/dist/api/types/index.d.ts +23 -1
  270. package/dist/api/types/index.js +23 -1
  271. package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +2 -0
  272. package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.js +3 -1
  273. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/get.d.ts +8 -0
  274. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/get.js +40 -0
  275. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/index.d.ts +1 -0
  276. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/index.js +37 -0
  277. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/index.d.ts +2 -0
  278. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/index.js +18 -0
  279. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.d.ts +15 -0
  280. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.js +49 -0
  281. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/index.d.ts +1 -0
  282. package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/index.js +17 -0
  283. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
  284. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
  285. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
  286. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
  287. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +0 -2
  288. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +0 -2
  289. package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +7 -0
  290. package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +39 -0
  291. package/dist/serialization/resources/speechToText/types/index.d.ts +1 -0
  292. package/dist/serialization/resources/speechToText/types/index.js +1 -0
  293. package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.d.ts +7 -0
  294. package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.js +39 -0
  295. package/dist/serialization/resources/studio/resources/projects/types/index.d.ts +1 -0
  296. package/dist/serialization/resources/studio/resources/projects/types/index.js +1 -0
  297. package/dist/serialization/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.d.ts +1 -1
  298. package/dist/serialization/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.js +16 -9
  299. package/dist/serialization/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.d.ts +1 -1
  300. package/dist/serialization/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.js +16 -9
  301. package/dist/serialization/resources/voices/resources/index.d.ts +2 -0
  302. package/dist/serialization/resources/voices/resources/index.js +3 -1
  303. package/dist/serialization/resources/voices/resources/ivc/index.d.ts +1 -0
  304. package/dist/serialization/resources/voices/resources/ivc/index.js +17 -0
  305. package/dist/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.d.ts +7 -0
  306. package/dist/serialization/resources/{serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js → voices/resources/ivc/types/IvcCreateRequestLabels.js} +4 -30
  307. package/dist/serialization/resources/voices/resources/ivc/types/index.d.ts +1 -0
  308. package/dist/serialization/resources/voices/resources/ivc/types/index.js +17 -0
  309. package/dist/serialization/resources/voices/types/VoicesUpdateRequestLabels.d.ts +7 -0
  310. package/dist/serialization/resources/voices/types/VoicesUpdateRequestLabels.js +42 -0
  311. package/dist/serialization/resources/voices/types/index.d.ts +1 -0
  312. package/dist/serialization/resources/voices/types/index.js +1 -0
  313. package/dist/serialization/types/AddKnowledgeBaseResponseModel.d.ts +2 -0
  314. package/dist/serialization/types/AddKnowledgeBaseResponseModel.js +2 -0
  315. package/dist/serialization/types/AgentSummaryBatchSuccessfulResponseModel.d.ts +10 -0
  316. package/dist/serialization/types/AgentSummaryBatchSuccessfulResponseModel.js +42 -0
  317. package/dist/serialization/types/Contributor.d.ts +10 -0
  318. package/dist/serialization/types/Contributor.js +42 -0
  319. package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +2 -0
  320. package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.js +2 -0
  321. package/dist/serialization/types/CustomSipHeader.d.ts +10 -0
  322. package/dist/serialization/types/CustomSipHeader.js +42 -0
  323. package/dist/serialization/types/CustomSipHeaderWithDynamicVariable.d.ts +10 -0
  324. package/dist/serialization/types/CustomSipHeaderWithDynamicVariable.js +42 -0
  325. package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +65 -0
  326. package/dist/serialization/types/DirectPublishingReadResponseModel.js +97 -0
  327. package/dist/serialization/types/DirectPublishingReadResponseModelDisplayMode.d.ts +7 -0
  328. package/dist/serialization/types/DirectPublishingReadResponseModelDisplayMode.js +39 -0
  329. package/dist/serialization/types/DirectPublishingReadResponseModelGenreItem.d.ts +7 -0
  330. package/dist/serialization/types/DirectPublishingReadResponseModelGenreItem.js +72 -0
  331. package/dist/serialization/types/DirectPublishingReadResponseModelPayoutType.d.ts +7 -0
  332. package/dist/serialization/types/DirectPublishingReadResponseModelPayoutType.js +39 -0
  333. package/dist/serialization/types/DirectPublishingReadResponseModelTargetAudience.d.ts +7 -0
  334. package/dist/serialization/types/DirectPublishingReadResponseModelTargetAudience.js +39 -0
  335. package/dist/serialization/types/DubbingMetadataResponse.d.ts +1 -0
  336. package/dist/serialization/types/DubbingMetadataResponse.js +1 -0
  337. package/dist/serialization/types/DubbingModel.d.ts +1 -1
  338. package/dist/serialization/types/DubbingModel.js +1 -1
  339. package/dist/serialization/types/InvoiceResponse.d.ts +2 -0
  340. package/dist/serialization/types/InvoiceResponse.js +2 -0
  341. package/dist/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.d.ts +7 -0
  342. package/dist/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.js +47 -0
  343. package/dist/serialization/types/{WorkspaceApiKeyResponseModelPermissionsItem.d.ts → PermissionType.d.ts} +3 -3
  344. package/{serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js → dist/serialization/types/PermissionType.js} +8 -2
  345. package/dist/serialization/types/PhoneNumberTransfer.d.ts +2 -0
  346. package/dist/serialization/types/PhoneNumberTransfer.js +2 -0
  347. package/dist/serialization/types/PhoneNumberTransferCustomSipHeadersItem.d.ts +15 -0
  348. package/dist/serialization/types/PhoneNumberTransferCustomSipHeadersItem.js +49 -0
  349. package/dist/serialization/types/PreviewAudioDbModel.d.ts +13 -0
  350. package/dist/serialization/types/PreviewAudioDbModel.js +45 -0
  351. package/dist/serialization/types/ProjectExtendedResponse.d.ts +2 -0
  352. package/dist/serialization/types/ProjectExtendedResponse.js +2 -0
  353. package/dist/serialization/types/ReadLegalTerms.d.ts +11 -0
  354. package/dist/serialization/types/ReadLegalTerms.js +43 -0
  355. package/dist/serialization/types/ReadMetadataChapterDbModel.d.ts +16 -0
  356. package/dist/serialization/types/ReadMetadataChapterDbModel.js +48 -0
  357. package/dist/serialization/types/ReviewResponseModel.d.ts +16 -0
  358. package/dist/serialization/{resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js → types/ReviewResponseModel.js} +12 -32
  359. package/dist/serialization/types/ReviewResponseModelRejectReasonsItem.d.ts +7 -0
  360. package/dist/serialization/types/ReviewResponseModelRejectReasonsItem.js +58 -0
  361. package/dist/serialization/types/ReviewResponseModelReviewStatus.d.ts +7 -0
  362. package/dist/serialization/types/ReviewResponseModelReviewStatus.js +39 -0
  363. package/dist/serialization/types/SampleConfigDbModel.d.ts +13 -0
  364. package/dist/serialization/types/SampleConfigDbModel.js +45 -0
  365. package/dist/serialization/types/SampleConfigDbModelParentType.d.ts +7 -0
  366. package/dist/serialization/types/SampleConfigDbModelParentType.js +39 -0
  367. package/dist/serialization/types/SpellingPatience.d.ts +7 -0
  368. package/dist/serialization/types/SpellingPatience.js +39 -0
  369. package/dist/serialization/types/TurnConfig.d.ts +2 -0
  370. package/dist/serialization/types/TurnConfig.js +2 -0
  371. package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -0
  372. package/dist/serialization/types/TurnConfigWorkflowOverride.js +2 -0
  373. package/dist/serialization/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
  374. package/dist/serialization/types/WorkflowPhoneNumberNodeModelInput.js +2 -0
  375. package/dist/serialization/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.d.ts +15 -0
  376. package/dist/serialization/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.js +49 -0
  377. package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
  378. package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutput.js +2 -0
  379. package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.d.ts +15 -0
  380. package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.js +49 -0
  381. package/dist/serialization/types/WorkspaceApiKeyResponseModel.d.ts +3 -2
  382. package/dist/serialization/types/WorkspaceApiKeyResponseModel.js +3 -2
  383. package/dist/serialization/types/index.d.ts +23 -1
  384. package/dist/serialization/types/index.js +23 -1
  385. package/dist/version.d.ts +1 -1
  386. package/dist/version.js +1 -1
  387. package/dist/wrapper/realtime/scribe.js +3 -0
  388. package/package.json +1 -1
  389. package/reference.md +135 -5
  390. package/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +2 -0
  391. package/serialization/resources/conversationalAi/resources/agents/resources/index.js +3 -1
  392. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/get.d.ts +8 -0
  393. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/get.js +40 -0
  394. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/index.d.ts +1 -0
  395. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/index.js +37 -0
  396. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/index.d.ts +2 -0
  397. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/index.js +18 -0
  398. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.d.ts +15 -0
  399. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.js +49 -0
  400. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/index.d.ts +1 -0
  401. package/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/index.js +17 -0
  402. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
  403. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
  404. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
  405. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
  406. package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +0 -2
  407. package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +0 -2
  408. package/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +7 -0
  409. package/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +39 -0
  410. package/serialization/resources/speechToText/types/index.d.ts +1 -0
  411. package/serialization/resources/speechToText/types/index.js +1 -0
  412. package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.d.ts +7 -0
  413. package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.js +39 -0
  414. package/serialization/resources/studio/resources/projects/types/index.d.ts +1 -0
  415. package/serialization/resources/studio/resources/projects/types/index.js +1 -0
  416. package/serialization/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.d.ts +1 -1
  417. package/serialization/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.js +16 -9
  418. package/serialization/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.d.ts +1 -1
  419. package/serialization/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.js +16 -9
  420. package/serialization/resources/voices/resources/index.d.ts +2 -0
  421. package/serialization/resources/voices/resources/index.js +3 -1
  422. package/serialization/resources/voices/resources/ivc/index.d.ts +1 -0
  423. package/serialization/resources/voices/resources/ivc/index.js +17 -0
  424. package/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.d.ts +7 -0
  425. package/serialization/resources/{serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js → voices/resources/ivc/types/IvcCreateRequestLabels.js} +4 -30
  426. package/serialization/resources/voices/resources/ivc/types/index.d.ts +1 -0
  427. package/serialization/resources/voices/resources/ivc/types/index.js +17 -0
  428. package/serialization/resources/voices/types/VoicesUpdateRequestLabels.d.ts +7 -0
  429. package/serialization/resources/voices/types/VoicesUpdateRequestLabels.js +42 -0
  430. package/serialization/resources/voices/types/index.d.ts +1 -0
  431. package/serialization/resources/voices/types/index.js +1 -0
  432. package/serialization/types/AddKnowledgeBaseResponseModel.d.ts +2 -0
  433. package/serialization/types/AddKnowledgeBaseResponseModel.js +2 -0
  434. package/serialization/types/AgentSummaryBatchSuccessfulResponseModel.d.ts +10 -0
  435. package/serialization/types/AgentSummaryBatchSuccessfulResponseModel.js +42 -0
  436. package/serialization/types/Contributor.d.ts +10 -0
  437. package/serialization/types/Contributor.js +42 -0
  438. package/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +2 -0
  439. package/serialization/types/ConversationHistoryAnalysisCommonModel.js +2 -0
  440. package/serialization/types/CustomSipHeader.d.ts +10 -0
  441. package/serialization/types/CustomSipHeader.js +42 -0
  442. package/serialization/types/CustomSipHeaderWithDynamicVariable.d.ts +10 -0
  443. package/serialization/types/CustomSipHeaderWithDynamicVariable.js +42 -0
  444. package/serialization/types/DirectPublishingReadResponseModel.d.ts +65 -0
  445. package/serialization/types/DirectPublishingReadResponseModel.js +97 -0
  446. package/serialization/types/DirectPublishingReadResponseModelDisplayMode.d.ts +7 -0
  447. package/serialization/types/DirectPublishingReadResponseModelDisplayMode.js +39 -0
  448. package/serialization/types/DirectPublishingReadResponseModelGenreItem.d.ts +7 -0
  449. package/serialization/types/DirectPublishingReadResponseModelGenreItem.js +72 -0
  450. package/serialization/types/DirectPublishingReadResponseModelPayoutType.d.ts +7 -0
  451. package/serialization/types/DirectPublishingReadResponseModelPayoutType.js +39 -0
  452. package/serialization/types/DirectPublishingReadResponseModelTargetAudience.d.ts +7 -0
  453. package/serialization/types/DirectPublishingReadResponseModelTargetAudience.js +39 -0
  454. package/serialization/types/DubbingMetadataResponse.d.ts +1 -0
  455. package/serialization/types/DubbingMetadataResponse.js +1 -0
  456. package/serialization/types/DubbingModel.d.ts +1 -1
  457. package/serialization/types/DubbingModel.js +1 -1
  458. package/serialization/types/InvoiceResponse.d.ts +2 -0
  459. package/serialization/types/InvoiceResponse.js +2 -0
  460. package/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.d.ts +7 -0
  461. package/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.js +47 -0
  462. package/serialization/types/{WorkspaceApiKeyResponseModelPermissionsItem.d.ts → PermissionType.d.ts} +3 -3
  463. package/{dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js → serialization/types/PermissionType.js} +8 -2
  464. package/serialization/types/PhoneNumberTransfer.d.ts +2 -0
  465. package/serialization/types/PhoneNumberTransfer.js +2 -0
  466. package/serialization/types/PhoneNumberTransferCustomSipHeadersItem.d.ts +15 -0
  467. package/serialization/types/PhoneNumberTransferCustomSipHeadersItem.js +49 -0
  468. package/serialization/types/PreviewAudioDbModel.d.ts +13 -0
  469. package/serialization/types/PreviewAudioDbModel.js +45 -0
  470. package/serialization/types/ProjectExtendedResponse.d.ts +2 -0
  471. package/serialization/types/ProjectExtendedResponse.js +2 -0
  472. package/serialization/types/ReadLegalTerms.d.ts +11 -0
  473. package/serialization/types/ReadLegalTerms.js +43 -0
  474. package/serialization/types/ReadMetadataChapterDbModel.d.ts +16 -0
  475. package/serialization/types/ReadMetadataChapterDbModel.js +48 -0
  476. package/serialization/types/ReviewResponseModel.d.ts +16 -0
  477. package/serialization/types/ReviewResponseModel.js +48 -0
  478. package/serialization/types/ReviewResponseModelRejectReasonsItem.d.ts +7 -0
  479. package/serialization/types/ReviewResponseModelRejectReasonsItem.js +58 -0
  480. package/serialization/types/ReviewResponseModelReviewStatus.d.ts +7 -0
  481. package/serialization/types/ReviewResponseModelReviewStatus.js +39 -0
  482. package/serialization/types/SampleConfigDbModel.d.ts +13 -0
  483. package/serialization/types/SampleConfigDbModel.js +45 -0
  484. package/serialization/types/SampleConfigDbModelParentType.d.ts +7 -0
  485. package/serialization/types/SampleConfigDbModelParentType.js +39 -0
  486. package/serialization/types/SpellingPatience.d.ts +7 -0
  487. package/serialization/types/SpellingPatience.js +39 -0
  488. package/serialization/types/TurnConfig.d.ts +2 -0
  489. package/serialization/types/TurnConfig.js +2 -0
  490. package/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -0
  491. package/serialization/types/TurnConfigWorkflowOverride.js +2 -0
  492. package/serialization/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
  493. package/serialization/types/WorkflowPhoneNumberNodeModelInput.js +2 -0
  494. package/serialization/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.d.ts +15 -0
  495. package/serialization/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.js +49 -0
  496. package/serialization/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
  497. package/serialization/types/WorkflowPhoneNumberNodeModelOutput.js +2 -0
  498. package/serialization/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.d.ts +15 -0
  499. package/serialization/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.js +49 -0
  500. package/serialization/types/WorkspaceApiKeyResponseModel.d.ts +3 -2
  501. package/serialization/types/WorkspaceApiKeyResponseModel.js +3 -2
  502. package/serialization/types/index.d.ts +23 -1
  503. package/serialization/types/index.js +23 -1
  504. package/version.d.ts +1 -1
  505. package/version.js +1 -1
  506. package/wrapper/realtime/scribe.js +3 -0
  507. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts +0 -31
  508. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js +0 -34
  509. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts +0 -31
  510. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js +0 -34
  511. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts +0 -31
  512. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js +0 -34
  513. package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +0 -31
  514. package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +0 -34
  515. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts +0 -7
  516. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts +0 -7
  517. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts +0 -7
  518. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts +0 -7
  519. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js +0 -68
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./types";
@@ -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("./types"), exports);
@@ -0,0 +1,10 @@
1
+ import type * as ElevenLabs from "../../../../../../../index";
2
+ export type SummariesGetResponseValue = ElevenLabs.conversationalAi.agents.SummariesGetResponseValue.Success | ElevenLabs.conversationalAi.agents.SummariesGetResponseValue.Failure;
3
+ export declare namespace SummariesGetResponseValue {
4
+ interface Success extends ElevenLabs.AgentSummaryBatchSuccessfulResponseModel {
5
+ status: "success";
6
+ }
7
+ interface Failure extends ElevenLabs.BatchFailureResponseModel {
8
+ status: "failure";
9
+ }
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 * from "./SummariesGetResponseValue";
@@ -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("./SummariesGetResponseValue"), exports);
@@ -56,6 +56,19 @@ export declare class BatchCallsClient {
56
56
  */
57
57
  get(batch_id: string, requestOptions?: BatchCallsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.BatchCallDetailedResponse>;
58
58
  private __get;
59
+ /**
60
+ * Permanently delete a batch call and all recipient records. Conversations remain in history.
61
+ *
62
+ * @param {string} batch_id
63
+ * @param {BatchCallsClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.conversationalAi.batchCalls.delete("batch_id")
69
+ */
70
+ delete(batch_id: string, requestOptions?: BatchCallsClient.RequestOptions): core.HttpResponsePromise<void>;
71
+ private __delete;
59
72
  /**
60
73
  * Cancel a running batch call and set all recipients to cancelled status.
61
74
  *
@@ -254,6 +254,58 @@ class BatchCallsClient {
254
254
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/batch-calling/{batch_id}");
255
255
  });
256
256
  }
257
+ /**
258
+ * Permanently delete a batch call and all recipient records. Conversations remain in history.
259
+ *
260
+ * @param {string} batch_id
261
+ * @param {BatchCallsClient.RequestOptions} requestOptions - Request-specific configuration.
262
+ *
263
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
264
+ *
265
+ * @example
266
+ * await client.conversationalAi.batchCalls.delete("batch_id")
267
+ */
268
+ delete(batch_id, requestOptions) {
269
+ return core.HttpResponsePromise.fromPromise(this.__delete(batch_id, requestOptions));
270
+ }
271
+ __delete(batch_id, requestOptions) {
272
+ return __awaiter(this, void 0, void 0, function* () {
273
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
274
+ 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);
275
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
276
+ 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/batch-calling/${core.url.encodePathParam(batch_id)}`),
277
+ method: "DELETE",
278
+ headers: _headers,
279
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
280
+ 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,
281
+ 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,
282
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
283
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
284
+ logging: this._options.logging,
285
+ });
286
+ if (_response.ok) {
287
+ return { data: undefined, rawResponse: _response.rawResponse };
288
+ }
289
+ if (_response.error.reason === "status-code") {
290
+ switch (_response.error.statusCode) {
291
+ case 422:
292
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
293
+ unrecognizedObjectKeys: "passthrough",
294
+ allowUnrecognizedUnionMembers: true,
295
+ allowUnrecognizedEnumValues: true,
296
+ breadcrumbsPrefix: ["response"],
297
+ }), _response.rawResponse);
298
+ default:
299
+ throw new errors.ElevenLabsError({
300
+ statusCode: _response.error.statusCode,
301
+ body: _response.error.body,
302
+ rawResponse: _response.rawResponse,
303
+ });
304
+ }
305
+ }
306
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/convai/batch-calling/{batch_id}");
307
+ });
308
+ }
257
309
  /**
258
310
  * Cancel a running batch call and set all recipients to cancelled status.
259
311
  *
@@ -27,7 +27,8 @@ export declare class ConversationsClient {
27
27
  * @example
28
28
  * await client.conversationalAi.conversations.getSignedUrl({
29
29
  * agentId: "21m00Tcm4TlvDq8ikWAM",
30
- * includeConversationId: true
30
+ * includeConversationId: true,
31
+ * branchId: "branch_id"
31
32
  * })
32
33
  */
33
34
  getSignedUrl(request: ElevenLabs.conversationalAi.ConversationsGetSignedUrlRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ConversationSignedUrlResponseModel>;
@@ -43,7 +44,8 @@ export declare class ConversationsClient {
43
44
  * @example
44
45
  * await client.conversationalAi.conversations.getWebrtcToken({
45
46
  * agentId: "21m00Tcm4TlvDq8ikWAM",
46
- * participantName: "participant_name"
47
+ * participantName: "participant_name",
48
+ * branchId: "branch_id"
47
49
  * })
48
50
  */
49
51
  getWebrtcToken(request: ElevenLabs.conversationalAi.ConversationsGetWebrtcTokenRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.TokenResponseModel>;
@@ -72,7 +74,8 @@ export declare class ConversationsClient {
72
74
  * pageSize: 1,
73
75
  * summaryMode: "exclude",
74
76
  * search: "search",
75
- * conversationInitiationSource: "unknown"
77
+ * conversationInitiationSource: "unknown",
78
+ * branchId: "branch_id"
76
79
  * })
77
80
  */
78
81
  list(request?: ElevenLabs.conversationalAi.ConversationsListRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetConversationsPageResponseModel>;
@@ -77,7 +77,8 @@ class ConversationsClient {
77
77
  * @example
78
78
  * await client.conversationalAi.conversations.getSignedUrl({
79
79
  * agentId: "21m00Tcm4TlvDq8ikWAM",
80
- * includeConversationId: true
80
+ * includeConversationId: true,
81
+ * branchId: "branch_id"
81
82
  * })
82
83
  */
83
84
  getSignedUrl(request, requestOptions) {
@@ -86,12 +87,15 @@ class ConversationsClient {
86
87
  __getSignedUrl(request, requestOptions) {
87
88
  return __awaiter(this, void 0, void 0, function* () {
88
89
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
89
- const { agentId, includeConversationId } = request;
90
+ const { agentId, includeConversationId, branchId } = request;
90
91
  const _queryParams = {};
91
92
  _queryParams.agent_id = agentId;
92
93
  if (includeConversationId != null) {
93
94
  _queryParams.include_conversation_id = includeConversationId.toString();
94
95
  }
96
+ if (branchId != null) {
97
+ _queryParams.branch_id = branchId;
98
+ }
95
99
  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);
96
100
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
97
101
  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/conversation/get-signed-url"),
@@ -146,7 +150,8 @@ class ConversationsClient {
146
150
  * @example
147
151
  * await client.conversationalAi.conversations.getWebrtcToken({
148
152
  * agentId: "21m00Tcm4TlvDq8ikWAM",
149
- * participantName: "participant_name"
153
+ * participantName: "participant_name",
154
+ * branchId: "branch_id"
150
155
  * })
151
156
  */
152
157
  getWebrtcToken(request, requestOptions) {
@@ -155,12 +160,15 @@ class ConversationsClient {
155
160
  __getWebrtcToken(request, requestOptions) {
156
161
  return __awaiter(this, void 0, void 0, function* () {
157
162
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
158
- const { agentId, participantName } = request;
163
+ const { agentId, participantName, branchId } = request;
159
164
  const _queryParams = {};
160
165
  _queryParams.agent_id = agentId;
161
166
  if (participantName != null) {
162
167
  _queryParams.participant_name = participantName;
163
168
  }
169
+ if (branchId != null) {
170
+ _queryParams.branch_id = branchId;
171
+ }
164
172
  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);
165
173
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
166
174
  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/conversation/token"),
@@ -228,7 +236,8 @@ class ConversationsClient {
228
236
  * pageSize: 1,
229
237
  * summaryMode: "exclude",
230
238
  * search: "search",
231
- * conversationInitiationSource: "unknown"
239
+ * conversationInitiationSource: "unknown",
240
+ * branchId: "branch_id"
232
241
  * })
233
242
  */
234
243
  list(request = {}, requestOptions) {
@@ -237,7 +246,7 @@ class ConversationsClient {
237
246
  __list() {
238
247
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
239
248
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
240
- const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, } = request;
249
+ const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, branchId, } = request;
241
250
  const _queryParams = {};
242
251
  if (cursor != null) {
243
252
  _queryParams.cursor = cursor;
@@ -318,6 +327,9 @@ class ConversationsClient {
318
327
  if (conversationInitiationSource != null) {
319
328
  _queryParams.conversation_initiation_source = serializers.ConversationInitiationSource.jsonOrThrow(conversationInitiationSource, { unrecognizedObjectKeys: "strip" });
320
329
  }
330
+ if (branchId != null) {
331
+ _queryParams.branch_id = branchId;
332
+ }
321
333
  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);
322
334
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
323
335
  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/conversations"),
@@ -2,7 +2,8 @@
2
2
  * @example
3
3
  * {
4
4
  * agentId: "21m00Tcm4TlvDq8ikWAM",
5
- * includeConversationId: true
5
+ * includeConversationId: true,
6
+ * branchId: "branch_id"
6
7
  * }
7
8
  */
8
9
  export interface ConversationsGetSignedUrlRequest {
@@ -10,4 +11,6 @@ export interface ConversationsGetSignedUrlRequest {
10
11
  agentId: string;
11
12
  /** Whether to include a conversation_id with the response. If included, the conversation_signature cannot be used again. */
12
13
  includeConversationId?: boolean;
14
+ /** The ID of the branch to use */
15
+ branchId?: string;
13
16
  }
@@ -2,7 +2,8 @@
2
2
  * @example
3
3
  * {
4
4
  * agentId: "21m00Tcm4TlvDq8ikWAM",
5
- * participantName: "participant_name"
5
+ * participantName: "participant_name",
6
+ * branchId: "branch_id"
6
7
  * }
7
8
  */
8
9
  export interface ConversationsGetWebrtcTokenRequest {
@@ -10,4 +11,6 @@ export interface ConversationsGetWebrtcTokenRequest {
10
11
  agentId: string;
11
12
  /** Optional custom participant name. If not provided, user ID will be used */
12
13
  participantName?: string;
14
+ /** The ID of the branch to use */
15
+ branchId?: string;
13
16
  }
@@ -16,7 +16,8 @@ import type * as ElevenLabs from "../../../../../../index";
16
16
  * pageSize: 1,
17
17
  * summaryMode: "exclude",
18
18
  * search: "search",
19
- * conversationInitiationSource: "unknown"
19
+ * conversationInitiationSource: "unknown",
20
+ * branchId: "branch_id"
20
21
  * }
21
22
  */
22
23
  export interface ConversationsListRequest {
@@ -57,4 +58,6 @@ export interface ConversationsListRequest {
57
58
  /** Full-text or fuzzy search over transcript messages */
58
59
  search?: string;
59
60
  conversationInitiationSource?: ElevenLabs.ConversationInitiationSource;
61
+ /** Filter conversations by branch ID. */
62
+ branchId?: string;
60
63
  }
@@ -2,4 +2,4 @@ import type * as ElevenLabs from "../../../../../index";
2
2
  /**
3
3
  * The permissions of the XI API.
4
4
  */
5
- export type BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions = ElevenLabs.serviceAccounts.BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem[] | "all";
5
+ export type BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions = ElevenLabs.PermissionType[] | "all";
@@ -2,4 +2,4 @@ import type * as ElevenLabs from "../../../../../index";
2
2
  /**
3
3
  * The permissions of the XI API.
4
4
  */
5
- export type BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions = ElevenLabs.serviceAccounts.BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem[] | "all";
5
+ export type BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions = ElevenLabs.PermissionType[] | "all";
@@ -1,4 +1,2 @@
1
1
  export * from "./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions";
2
- export * from "./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem";
3
2
  export * from "./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions";
4
- export * from "./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem";
@@ -15,6 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions"), exports);
18
- __exportStar(require("./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem"), exports);
19
18
  __exportStar(require("./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions"), exports);
20
- __exportStar(require("./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem"), exports);
@@ -25,7 +25,7 @@ export declare class SpeechToTextClient {
25
25
  * import { createReadStream } from "fs";
26
26
  * await client.speechToText.convert({
27
27
  * enableLogging: true,
28
- * modelId: "model_id"
28
+ * modelId: "scribe_v1"
29
29
  * })
30
30
  */
31
31
  convert(request: ElevenLabs.BodySpeechToTextV1SpeechToTextPost, requestOptions?: SpeechToTextClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.SpeechToTextConvertResponse>;
@@ -74,7 +74,7 @@ class SpeechToTextClient {
74
74
  * import { createReadStream } from "fs";
75
75
  * await client.speechToText.convert({
76
76
  * enableLogging: true,
77
- * modelId: "model_id"
77
+ * modelId: "scribe_v1"
78
78
  * })
79
79
  */
80
80
  convert(request, requestOptions) {
@@ -88,7 +88,9 @@ class SpeechToTextClient {
88
88
  _queryParams.enable_logging = request.enableLogging.toString();
89
89
  }
90
90
  const _request = yield core.newFormData();
91
- _request.append("model_id", request.modelId);
91
+ _request.append("model_id", serializers.SpeechToTextConvertRequestModelId.jsonOrThrow(request.modelId, {
92
+ unrecognizedObjectKeys: "strip",
93
+ }));
92
94
  if (request.file != null) {
93
95
  yield _request.appendFile("file", request.file);
94
96
  }
@@ -4,20 +4,20 @@ import type * as ElevenLabs from "../../../../index";
4
4
  * @example
5
5
  * {
6
6
  * enableLogging: true,
7
- * modelId: "model_id"
7
+ * modelId: "scribe_v1"
8
8
  * }
9
9
  *
10
10
  * @example
11
11
  * {
12
12
  * enableLogging: true,
13
- * modelId: "model_id"
13
+ * modelId: "scribe_v1"
14
14
  * }
15
15
  */
16
16
  export interface BodySpeechToTextV1SpeechToTextPost {
17
17
  /** When enable_logging is set to false zero retention mode will be used for the request. This will mean log and transcript storage features are unavailable for this request. Zero retention mode may only be used by enterprise customers. */
18
18
  enableLogging?: boolean;
19
- /** The ID of the model to use for transcription, currently only 'scribe_v1' and 'scribe_v1_experimental' are available. */
20
- modelId: string;
19
+ /** The ID of the model to use for transcription. */
20
+ modelId: ElevenLabs.SpeechToTextConvertRequestModelId;
21
21
  /** The file to transcribe. All major audio and video formats are supported. Exactly one of the file or cloud_storage_url parameters must be provided. The file size must be less than 3.0GB. */
22
22
  file?: core.file.Uploadable | undefined;
23
23
  /** An ISO-639-1 or ISO-639-3 language_code corresponding to the language of the audio file. Can sometimes improve transcription performance if known beforehand. Defaults to null, in this case the language is predicted automatically. */
@@ -0,0 +1,6 @@
1
+ /** The ID of the model to use for transcription. */
2
+ export declare const SpeechToTextConvertRequestModelId: {
3
+ readonly ScribeV1: "scribe_v1";
4
+ readonly ScribeV2: "scribe_v2";
5
+ };
6
+ export type SpeechToTextConvertRequestModelId = (typeof SpeechToTextConvertRequestModelId)[keyof typeof SpeechToTextConvertRequestModelId];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SpeechToTextConvertRequestModelId = void 0;
5
+ /** The ID of the model to use for transcription. */
6
+ exports.SpeechToTextConvertRequestModelId = {
7
+ ScribeV1: "scribe_v1",
8
+ ScribeV2: "scribe_v2",
9
+ };
@@ -1,5 +1,6 @@
1
1
  export * from "./SpeechToTextConvertRequestEntityDetection";
2
2
  export * from "./SpeechToTextConvertRequestFileFormat";
3
+ export * from "./SpeechToTextConvertRequestModelId";
3
4
  export * from "./SpeechToTextConvertRequestTimestampsGranularity";
4
5
  export * from "./SpeechToTextConvertRequestWebhookMetadata";
5
6
  export * from "./SpeechToTextConvertResponse";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SpeechToTextConvertRequestEntityDetection"), exports);
18
18
  __exportStar(require("./SpeechToTextConvertRequestFileFormat"), exports);
19
+ __exportStar(require("./SpeechToTextConvertRequestModelId"), exports);
19
20
  __exportStar(require("./SpeechToTextConvertRequestTimestampsGranularity"), exports);
20
21
  __exportStar(require("./SpeechToTextConvertRequestWebhookMetadata"), exports);
21
22
  __exportStar(require("./SpeechToTextConvertResponse"), exports);
@@ -28,10 +28,10 @@ export interface BodyCreatePodcastV1StudioPodcastsPost {
28
28
  source: ElevenLabs.BodyCreatePodcastV1StudioPodcastsPostSource;
29
29
  /**
30
30
  * Output quality of the generated audio. Must be one of:
31
- * standard - standard output format, 128kbps with 44.1kHz sample rate.
32
- * high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
33
- * ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
34
- * ultra lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
31
+ * 'standard' - standard output format, 128kbps with 44.1kHz sample rate.
32
+ * 'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
33
+ * 'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
34
+ * 'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
35
35
  */
36
36
  qualityPreset?: ElevenLabs.BodyCreatePodcastV1StudioPodcastsPostQualityPreset;
37
37
  /**
@@ -176,7 +176,9 @@ class ProjectsClient {
176
176
  _request.append("from_content_json", request.fromContentJson);
177
177
  }
178
178
  if (request.qualityPreset != null) {
179
- _request.append("quality_preset", request.qualityPreset);
179
+ _request.append("quality_preset", serializers.studio.ProjectsCreateRequestQualityPreset.jsonOrThrow(request.qualityPreset, {
180
+ unrecognizedObjectKeys: "strip",
181
+ }));
180
182
  }
181
183
  if (request.title != null) {
182
184
  _request.append("title", request.title);
@@ -29,12 +29,12 @@ export interface BodyCreateStudioProjectV1StudioProjectsPost {
29
29
  fromContentJson?: string;
30
30
  /**
31
31
  * Output quality of the generated audio. Must be one of:
32
- * standard - standard output format, 128kbps with 44.1kHz sample rate.
33
- * high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
34
- * ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
35
- * ultra lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
32
+ * 'standard' - standard output format, 128kbps with 44.1kHz sample rate.
33
+ * 'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
34
+ * 'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
35
+ * 'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
36
36
  */
37
- qualityPreset?: string;
37
+ qualityPreset?: ElevenLabs.studio.ProjectsCreateRequestQualityPreset;
38
38
  /** An optional name of the author of the Studio project, this will be added as metadata to the mp3 file on Studio project or chapter download. */
39
39
  title?: string;
40
40
  /** An optional name of the author of the Studio project, this will be added as metadata to the mp3 file on Studio project or chapter download. */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Output quality of the generated audio. Must be one of:
3
+ * 'standard' - standard output format, 128kbps with 44.1kHz sample rate.
4
+ * 'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
5
+ * 'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
6
+ * 'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
7
+ */
8
+ export declare const ProjectsCreateRequestQualityPreset: {
9
+ readonly Standard: "standard";
10
+ readonly High: "high";
11
+ readonly Ultra: "ultra";
12
+ readonly UltraLossless: "ultra_lossless";
13
+ };
14
+ export type ProjectsCreateRequestQualityPreset = (typeof ProjectsCreateRequestQualityPreset)[keyof typeof ProjectsCreateRequestQualityPreset];
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProjectsCreateRequestQualityPreset = void 0;
5
+ /**
6
+ * Output quality of the generated audio. Must be one of:
7
+ * 'standard' - standard output format, 128kbps with 44.1kHz sample rate.
8
+ * 'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
9
+ * 'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
10
+ * 'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
11
+ */
12
+ exports.ProjectsCreateRequestQualityPreset = {
13
+ Standard: "standard",
14
+ High: "high",
15
+ Ultra: "ultra",
16
+ UltraLossless: "ultra_lossless",
17
+ };
@@ -1,4 +1,5 @@
1
1
  export * from "./ProjectsCreateRequestApplyTextNormalization";
2
2
  export * from "./ProjectsCreateRequestFiction";
3
+ export * from "./ProjectsCreateRequestQualityPreset";
3
4
  export * from "./ProjectsCreateRequestSourceType";
4
5
  export * from "./ProjectsCreateRequestTargetAudience";
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ProjectsCreateRequestApplyTextNormalization"), exports);
18
18
  __exportStar(require("./ProjectsCreateRequestFiction"), exports);
19
+ __exportStar(require("./ProjectsCreateRequestQualityPreset"), exports);
19
20
  __exportStar(require("./ProjectsCreateRequestSourceType"), exports);
20
21
  __exportStar(require("./ProjectsCreateRequestTargetAudience"), exports);
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Output quality of the generated audio. Must be one of:
3
- * standard - standard output format, 128kbps with 44.1kHz sample rate.
4
- * high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
5
- * ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
6
- * ultra lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
3
+ * 'standard' - standard output format, 128kbps with 44.1kHz sample rate.
4
+ * 'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
5
+ * 'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
6
+ * 'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
7
7
  */
8
8
  export declare const BodyCreatePodcastV1StudioPodcastsPostQualityPreset: {
9
9
  readonly Standard: "standard";
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.BodyCreatePodcastV1StudioPodcastsPostQualityPreset = void 0;
5
5
  /**
6
6
  * Output quality of the generated audio. Must be one of:
7
- * standard - standard output format, 128kbps with 44.1kHz sample rate.
8
- * high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
9
- * ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
10
- * ultra lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
7
+ * 'standard' - standard output format, 128kbps with 44.1kHz sample rate.
8
+ * 'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
9
+ * 'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
10
+ * 'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
11
11
  */
12
12
  exports.BodyCreatePodcastV1StudioPodcastsPostQualityPreset = {
13
13
  Standard: "standard",
@@ -29,7 +29,7 @@ export declare class TextToSpeechClient {
29
29
  * await client.textToSpeech.convertWithTimestamps("21m00Tcm4TlvDq8ikWAM", {
30
30
  * enableLogging: true,
31
31
  * optimizeStreamingLatency: 1,
32
- * outputFormat: "mp3_22050_32",
32
+ * outputFormat: "alaw_8000",
33
33
  * text: "This is a test for the API of ElevenLabs."
34
34
  * })
35
35
  */
@@ -142,7 +142,7 @@ class TextToSpeechClient {
142
142
  * await client.textToSpeech.convertWithTimestamps("21m00Tcm4TlvDq8ikWAM", {
143
143
  * enableLogging: true,
144
144
  * optimizeStreamingLatency: 1,
145
- * outputFormat: "mp3_22050_32",
145
+ * outputFormat: "alaw_8000",
146
146
  * text: "This is a test for the API of ElevenLabs."
147
147
  * })
148
148
  */
@@ -21,7 +21,7 @@ export interface BodyTextToSpeechFull {
21
21
  * Defaults to None.
22
22
  */
23
23
  optimizeStreamingLatency?: number;
24
- /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
24
+ /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
25
25
  outputFormat?: ElevenLabs.TextToSpeechConvertRequestOutputFormat;
26
26
  /** The text that will get converted into speech. */
27
27
  text: string;
@@ -4,7 +4,7 @@ import type * as ElevenLabs from "../../../../index";
4
4
  * {
5
5
  * enableLogging: true,
6
6
  * optimizeStreamingLatency: 1,
7
- * outputFormat: "mp3_22050_32",
7
+ * outputFormat: "alaw_8000",
8
8
  * text: "This is a test for the API of ElevenLabs."
9
9
  * }
10
10
  */
@@ -22,7 +22,7 @@ export interface BodyTextToSpeechFullWithTimestamps {
22
22
  * Defaults to None.
23
23
  */
24
24
  optimizeStreamingLatency?: number;
25
- /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
25
+ /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
26
26
  outputFormat?: ElevenLabs.TextToSpeechConvertWithTimestampsRequestOutputFormat;
27
27
  /** The text that will get converted into speech. */
28
28
  text: string;