@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
@@ -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;
@@ -1,25 +1,32 @@
1
- /** 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. */
1
+ /** 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. */
2
2
  export declare const TextToSpeechConvertRequestOutputFormat: {
3
+ readonly Alaw8000: "alaw_8000";
3
4
  readonly Mp32205032: "mp3_22050_32";
4
5
  readonly Mp32400048: "mp3_24000_48";
6
+ readonly Mp344100128: "mp3_44100_128";
7
+ readonly Mp344100192: "mp3_44100_192";
5
8
  readonly Mp34410032: "mp3_44100_32";
6
9
  readonly Mp34410064: "mp3_44100_64";
7
10
  readonly Mp34410096: "mp3_44100_96";
8
- readonly Mp344100128: "mp3_44100_128";
9
- readonly Mp344100192: "mp3_44100_192";
10
- readonly Pcm8000: "pcm_8000";
11
+ readonly Opus48000128: "opus_48000_128";
12
+ readonly Opus48000192: "opus_48000_192";
13
+ readonly Opus4800032: "opus_48000_32";
14
+ readonly Opus4800064: "opus_48000_64";
15
+ readonly Opus4800096: "opus_48000_96";
11
16
  readonly Pcm16000: "pcm_16000";
12
17
  readonly Pcm22050: "pcm_22050";
13
18
  readonly Pcm24000: "pcm_24000";
14
19
  readonly Pcm32000: "pcm_32000";
15
20
  readonly Pcm44100: "pcm_44100";
16
21
  readonly Pcm48000: "pcm_48000";
22
+ readonly Pcm8000: "pcm_8000";
17
23
  readonly Ulaw8000: "ulaw_8000";
18
- readonly Alaw8000: "alaw_8000";
19
- readonly Opus4800032: "opus_48000_32";
20
- readonly Opus4800064: "opus_48000_64";
21
- readonly Opus4800096: "opus_48000_96";
22
- readonly Opus48000128: "opus_48000_128";
23
- readonly Opus48000192: "opus_48000_192";
24
+ readonly Wav16000: "wav_16000";
25
+ readonly Wav22050: "wav_22050";
26
+ readonly Wav24000: "wav_24000";
27
+ readonly Wav32000: "wav_32000";
28
+ readonly Wav44100: "wav_44100";
29
+ readonly Wav48000: "wav_48000";
30
+ readonly Wav8000: "wav_8000";
24
31
  };
25
32
  export type TextToSpeechConvertRequestOutputFormat = (typeof TextToSpeechConvertRequestOutputFormat)[keyof typeof TextToSpeechConvertRequestOutputFormat];
@@ -2,27 +2,34 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.TextToSpeechConvertRequestOutputFormat = void 0;
5
- /** 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. */
5
+ /** 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. */
6
6
  exports.TextToSpeechConvertRequestOutputFormat = {
7
+ Alaw8000: "alaw_8000",
7
8
  Mp32205032: "mp3_22050_32",
8
9
  Mp32400048: "mp3_24000_48",
10
+ Mp344100128: "mp3_44100_128",
11
+ Mp344100192: "mp3_44100_192",
9
12
  Mp34410032: "mp3_44100_32",
10
13
  Mp34410064: "mp3_44100_64",
11
14
  Mp34410096: "mp3_44100_96",
12
- Mp344100128: "mp3_44100_128",
13
- Mp344100192: "mp3_44100_192",
14
- Pcm8000: "pcm_8000",
15
+ Opus48000128: "opus_48000_128",
16
+ Opus48000192: "opus_48000_192",
17
+ Opus4800032: "opus_48000_32",
18
+ Opus4800064: "opus_48000_64",
19
+ Opus4800096: "opus_48000_96",
15
20
  Pcm16000: "pcm_16000",
16
21
  Pcm22050: "pcm_22050",
17
22
  Pcm24000: "pcm_24000",
18
23
  Pcm32000: "pcm_32000",
19
24
  Pcm44100: "pcm_44100",
20
25
  Pcm48000: "pcm_48000",
26
+ Pcm8000: "pcm_8000",
21
27
  Ulaw8000: "ulaw_8000",
22
- Alaw8000: "alaw_8000",
23
- Opus4800032: "opus_48000_32",
24
- Opus4800064: "opus_48000_64",
25
- Opus4800096: "opus_48000_96",
26
- Opus48000128: "opus_48000_128",
27
- Opus48000192: "opus_48000_192",
28
+ Wav16000: "wav_16000",
29
+ Wav22050: "wav_22050",
30
+ Wav24000: "wav_24000",
31
+ Wav32000: "wav_32000",
32
+ Wav44100: "wav_44100",
33
+ Wav48000: "wav_48000",
34
+ Wav8000: "wav_8000",
28
35
  };
@@ -1,25 +1,32 @@
1
- /** 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. */
1
+ /** 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. */
2
2
  export declare const TextToSpeechConvertWithTimestampsRequestOutputFormat: {
3
+ readonly Alaw8000: "alaw_8000";
3
4
  readonly Mp32205032: "mp3_22050_32";
4
5
  readonly Mp32400048: "mp3_24000_48";
6
+ readonly Mp344100128: "mp3_44100_128";
7
+ readonly Mp344100192: "mp3_44100_192";
5
8
  readonly Mp34410032: "mp3_44100_32";
6
9
  readonly Mp34410064: "mp3_44100_64";
7
10
  readonly Mp34410096: "mp3_44100_96";
8
- readonly Mp344100128: "mp3_44100_128";
9
- readonly Mp344100192: "mp3_44100_192";
10
- readonly Pcm8000: "pcm_8000";
11
+ readonly Opus48000128: "opus_48000_128";
12
+ readonly Opus48000192: "opus_48000_192";
13
+ readonly Opus4800032: "opus_48000_32";
14
+ readonly Opus4800064: "opus_48000_64";
15
+ readonly Opus4800096: "opus_48000_96";
11
16
  readonly Pcm16000: "pcm_16000";
12
17
  readonly Pcm22050: "pcm_22050";
13
18
  readonly Pcm24000: "pcm_24000";
14
19
  readonly Pcm32000: "pcm_32000";
15
20
  readonly Pcm44100: "pcm_44100";
16
21
  readonly Pcm48000: "pcm_48000";
22
+ readonly Pcm8000: "pcm_8000";
17
23
  readonly Ulaw8000: "ulaw_8000";
18
- readonly Alaw8000: "alaw_8000";
19
- readonly Opus4800032: "opus_48000_32";
20
- readonly Opus4800064: "opus_48000_64";
21
- readonly Opus4800096: "opus_48000_96";
22
- readonly Opus48000128: "opus_48000_128";
23
- readonly Opus48000192: "opus_48000_192";
24
+ readonly Wav16000: "wav_16000";
25
+ readonly Wav22050: "wav_22050";
26
+ readonly Wav24000: "wav_24000";
27
+ readonly Wav32000: "wav_32000";
28
+ readonly Wav44100: "wav_44100";
29
+ readonly Wav48000: "wav_48000";
30
+ readonly Wav8000: "wav_8000";
24
31
  };
25
32
  export type TextToSpeechConvertWithTimestampsRequestOutputFormat = (typeof TextToSpeechConvertWithTimestampsRequestOutputFormat)[keyof typeof TextToSpeechConvertWithTimestampsRequestOutputFormat];
@@ -2,27 +2,34 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.TextToSpeechConvertWithTimestampsRequestOutputFormat = void 0;
5
- /** 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. */
5
+ /** 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. */
6
6
  exports.TextToSpeechConvertWithTimestampsRequestOutputFormat = {
7
+ Alaw8000: "alaw_8000",
7
8
  Mp32205032: "mp3_22050_32",
8
9
  Mp32400048: "mp3_24000_48",
10
+ Mp344100128: "mp3_44100_128",
11
+ Mp344100192: "mp3_44100_192",
9
12
  Mp34410032: "mp3_44100_32",
10
13
  Mp34410064: "mp3_44100_64",
11
14
  Mp34410096: "mp3_44100_96",
12
- Mp344100128: "mp3_44100_128",
13
- Mp344100192: "mp3_44100_192",
14
- Pcm8000: "pcm_8000",
15
+ Opus48000128: "opus_48000_128",
16
+ Opus48000192: "opus_48000_192",
17
+ Opus4800032: "opus_48000_32",
18
+ Opus4800064: "opus_48000_64",
19
+ Opus4800096: "opus_48000_96",
15
20
  Pcm16000: "pcm_16000",
16
21
  Pcm22050: "pcm_22050",
17
22
  Pcm24000: "pcm_24000",
18
23
  Pcm32000: "pcm_32000",
19
24
  Pcm44100: "pcm_44100",
20
25
  Pcm48000: "pcm_48000",
26
+ Pcm8000: "pcm_8000",
21
27
  Ulaw8000: "ulaw_8000",
22
- Alaw8000: "alaw_8000",
23
- Opus4800032: "opus_48000_32",
24
- Opus4800064: "opus_48000_64",
25
- Opus4800096: "opus_48000_96",
26
- Opus48000128: "opus_48000_128",
27
- Opus48000192: "opus_48000_192",
28
+ Wav16000: "wav_16000",
29
+ Wav22050: "wav_22050",
30
+ Wav24000: "wav_24000",
31
+ Wav32000: "wav_32000",
32
+ Wav44100: "wav_44100",
33
+ Wav48000: "wav_48000",
34
+ Wav8000: "wav_8000",
28
35
  };
@@ -47,6 +47,7 @@ exports.VoicesClient = void 0;
47
47
  const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
+ const json_1 = require("../../../../core/json");
50
51
  const environments = __importStar(require("../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../errors/index"));
@@ -420,7 +421,12 @@ class VoicesClient {
420
421
  _request.append("description", request.description);
421
422
  }
422
423
  if (request.labels != null) {
423
- _request.append("labels", request.labels);
424
+ _request.append("labels", (() => {
425
+ const mapped = serializers.VoicesUpdateRequestLabels.jsonOrThrow(request.labels, {
426
+ unrecognizedObjectKeys: "strip",
427
+ });
428
+ return typeof mapped === "string" ? mapped : (0, json_1.toJson)(mapped);
429
+ })());
424
430
  }
425
431
  const _maybeEncodedRequest = yield _request.getRequest();
426
432
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "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 }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -1,4 +1,5 @@
1
1
  import type * as core from "../../../../../core";
2
+ import type * as ElevenLabs from "../../../../index";
2
3
  /**
3
4
  * @example
4
5
  * {
@@ -14,6 +15,6 @@ export interface BodyEditVoiceV1VoicesVoiceIdEditPost {
14
15
  removeBackgroundNoise?: boolean;
15
16
  /** A description of the voice. */
16
17
  description?: string;
17
- /** Serialized labels dictionary for the voice. */
18
- labels?: string;
18
+ /** Labels for the voice. Keys can be language, accent, gender, or age. */
19
+ labels?: ElevenLabs.VoicesUpdateRequestLabels;
19
20
  }
@@ -1,5 +1,6 @@
1
1
  export * as ivc from "./ivc";
2
2
  export * from "./ivc/client/requests";
3
+ export * from "./ivc/types";
3
4
  export * as pvc from "./pvc";
4
5
  export * from "./pvc/client/requests";
5
6
  export * as samples from "./samples";
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.settings = exports.samples = exports.pvc = exports.ivc = void 0;
40
40
  exports.ivc = __importStar(require("./ivc"));
41
41
  __exportStar(require("./ivc/client/requests"), exports);
42
+ __exportStar(require("./ivc/types"), exports);
42
43
  exports.pvc = __importStar(require("./pvc"));
43
44
  __exportStar(require("./pvc/client/requests"), exports);
44
45
  exports.samples = __importStar(require("./samples"));
@@ -47,6 +47,7 @@ exports.IvcClient = void 0;
47
47
  const BaseClient_1 = require("../../../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../../../core"));
49
49
  const headers_1 = require("../../../../../../core/headers");
50
+ const json_1 = require("../../../../../../core/json");
50
51
  const environments = __importStar(require("../../../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -89,7 +90,12 @@ class IvcClient {
89
90
  _request.append("description", request.description);
90
91
  }
91
92
  if (request.labels != null) {
92
- _request.append("labels", request.labels);
93
+ _request.append("labels", (() => {
94
+ const mapped = serializers.voices.IvcCreateRequestLabels.jsonOrThrow(request.labels, {
95
+ unrecognizedObjectKeys: "strip",
96
+ });
97
+ return typeof mapped === "string" ? mapped : (0, json_1.toJson)(mapped);
98
+ })());
93
99
  }
94
100
  const _maybeEncodedRequest = yield _request.getRequest();
95
101
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "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 }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -1,4 +1,5 @@
1
1
  import type * as core from "../../../../../../../core";
2
+ import type * as ElevenLabs from "../../../../../../index";
2
3
  /**
3
4
  * @example
4
5
  * {
@@ -15,6 +16,6 @@ export interface BodyAddVoiceV1VoicesAddPost {
15
16
  removeBackgroundNoise?: boolean;
16
17
  /** A description of the voice. */
17
18
  description?: string;
18
- /** Serialized labels dictionary for the voice. */
19
- labels?: string;
19
+ /** Labels for the voice. Keys can be language, accent, gender, or age. */
20
+ labels?: ElevenLabs.voices.IvcCreateRequestLabels;
20
21
  }
@@ -1 +1,2 @@
1
1
  export * from "./client";
2
+ export * from "./types";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Labels for the voice. Keys can be language, accent, gender, or age.
3
+ */
4
+ export type IvcCreateRequestLabels = Record<string, string> | string;
@@ -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 "./IvcCreateRequestLabels";
@@ -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("./IvcCreateRequestLabels"), exports);
@@ -9,6 +9,6 @@ export interface BodyEditPvcVoiceV1VoicesPvcVoiceIdPost {
9
9
  language?: string;
10
10
  /** Description to use for the created voice. */
11
11
  description?: string;
12
- /** Serialized labels dictionary for the voice. */
12
+ /** Labels for the voice. Keys can be language, accent, gender, or age. */
13
13
  labels?: Record<string, string | undefined>;
14
14
  }