@elevenlabs/elevenlabs-js 2.47.0 → 2.49.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 (982) hide show
  1. package/.fern/metadata.json +1 -1
  2. package/.fern/replay.lock +10 -0
  3. package/.gitattributes +1 -0
  4. package/BaseClient.js +2 -2
  5. package/Client.d.ts +3 -0
  6. package/Client.js +39 -34
  7. package/api/resources/conversationalAi/conversation/Conversation.js +1 -0
  8. package/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +2 -0
  9. package/api/resources/conversationalAi/conversation/events.d.ts +1 -0
  10. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
  11. package/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
  12. package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +1 -0
  13. package/api/resources/conversationalAi/resources/agents/resources/index.js +2 -1
  14. package/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.d.ts +27 -0
  15. package/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.js +116 -0
  16. package/api/resources/conversationalAi/resources/agents/resources/versions/client/index.d.ts +1 -0
  17. package/api/resources/conversationalAi/resources/agents/resources/versions/client/index.js +2 -0
  18. package/api/resources/conversationalAi/resources/agents/resources/versions/index.d.ts +1 -0
  19. package/api/resources/conversationalAi/resources/agents/resources/versions/index.js +17 -0
  20. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
  21. package/api/resources/conversationalAi/resources/conversations/client/Client.js +18 -6
  22. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetRequest.d.ts +9 -0
  23. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
  24. package/api/resources/conversationalAi/resources/conversations/client/requests/index.d.ts +1 -0
  25. package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +1 -0
  26. package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +5 -1
  27. package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +2 -0
  28. package/api/resources/conversationalAi/resources/conversations/types/ConversationsGetRequestFormat.d.ts +6 -0
  29. package/api/resources/conversationalAi/resources/conversations/types/ConversationsGetRequestFormat.js +9 -0
  30. package/api/resources/conversationalAi/resources/conversations/types/index.d.ts +1 -0
  31. package/api/resources/conversationalAi/resources/conversations/types/index.js +1 -0
  32. package/api/resources/index.d.ts +3 -0
  33. package/api/resources/index.js +4 -1
  34. package/api/resources/music/client/Client.js +3 -0
  35. package/api/resources/music/client/requests/BodyVideoToMusicV1MusicVideoToMusicPost.d.ts +2 -0
  36. package/api/resources/productions/client/Client.d.ts +12 -0
  37. package/api/resources/productions/client/Client.js +16 -0
  38. package/api/resources/productions/client/index.d.ts +1 -0
  39. package/api/resources/productions/client/index.js +2 -0
  40. package/api/resources/productions/index.d.ts +2 -0
  41. package/api/resources/productions/index.js +18 -0
  42. package/api/resources/productions/resources/index.d.ts +2 -0
  43. package/api/resources/productions/resources/index.js +41 -0
  44. package/api/resources/productions/resources/orders/client/Client.d.ts +104 -0
  45. package/api/resources/productions/resources/orders/client/Client.js +398 -0
  46. package/api/resources/productions/resources/orders/client/index.d.ts +1 -0
  47. package/api/resources/productions/resources/orders/client/index.js +17 -0
  48. package/api/resources/productions/resources/orders/client/requests/BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.d.ts +12 -0
  49. package/api/resources/productions/resources/orders/client/requests/OrdersListRequest.d.ts +23 -0
  50. package/api/resources/productions/resources/orders/client/requests/index.d.ts +2 -0
  51. package/api/resources/productions/resources/orders/client/requests/index.js +2 -0
  52. package/api/resources/productions/resources/orders/index.d.ts +2 -0
  53. package/api/resources/productions/resources/orders/index.js +18 -0
  54. package/api/resources/productions/resources/orders/resources/deliverables/client/Client.d.ts +26 -0
  55. package/api/resources/productions/resources/orders/resources/deliverables/client/Client.js +115 -0
  56. package/api/resources/productions/resources/orders/resources/deliverables/client/index.d.ts +1 -0
  57. package/api/resources/productions/resources/orders/resources/deliverables/client/index.js +2 -0
  58. package/api/resources/productions/resources/orders/resources/deliverables/index.d.ts +1 -0
  59. package/api/resources/productions/resources/orders/resources/deliverables/index.js +17 -0
  60. package/api/resources/productions/resources/orders/resources/index.d.ts +6 -0
  61. package/api/resources/productions/resources/orders/resources/index.js +45 -0
  62. package/api/resources/productions/resources/orders/resources/items/client/Client.d.ts +54 -0
  63. package/api/resources/productions/resources/orders/resources/items/client/Client.js +188 -0
  64. package/api/resources/productions/resources/orders/resources/items/client/index.d.ts +1 -0
  65. package/api/resources/productions/resources/orders/resources/items/client/index.js +17 -0
  66. package/api/resources/productions/resources/orders/resources/items/client/requests/BodyUpsertOrderItemV1ProductionsOrdersOrderIdItemsPost.d.ts +21 -0
  67. package/api/resources/productions/resources/orders/resources/items/client/requests/index.d.ts +1 -0
  68. package/api/resources/productions/resources/orders/resources/items/client/requests/index.js +2 -0
  69. package/api/resources/productions/resources/orders/resources/items/index.d.ts +1 -0
  70. package/api/resources/productions/resources/orders/resources/items/index.js +17 -0
  71. package/api/resources/productions/resources/orders/resources/languages/client/Client.d.ts +26 -0
  72. package/api/resources/productions/resources/orders/resources/languages/client/Client.js +115 -0
  73. package/api/resources/productions/resources/orders/resources/languages/client/index.d.ts +1 -0
  74. package/api/resources/productions/resources/orders/resources/languages/client/index.js +2 -0
  75. package/api/resources/productions/resources/orders/resources/languages/index.d.ts +1 -0
  76. package/api/resources/productions/resources/orders/resources/languages/index.js +17 -0
  77. package/api/resources/productions/resources/orders/resources/media/client/Client.d.ts +44 -0
  78. package/api/resources/productions/resources/orders/resources/media/client/Client.js +193 -0
  79. package/api/resources/productions/resources/orders/resources/media/client/index.d.ts +1 -0
  80. package/api/resources/productions/resources/orders/resources/media/client/index.js +17 -0
  81. package/api/resources/productions/resources/orders/resources/media/client/requests/BodyRegisterMediaV1ProductionsOrdersOrderIdMediaPost.d.ts +19 -0
  82. package/api/resources/productions/resources/orders/resources/media/client/requests/index.d.ts +1 -0
  83. package/api/resources/productions/resources/orders/resources/media/client/requests/index.js +2 -0
  84. package/api/resources/productions/resources/orders/resources/media/index.d.ts +1 -0
  85. package/api/resources/productions/resources/orders/resources/media/index.js +17 -0
  86. package/api/resources/speechEngine/client/Client.d.ts +1 -1
  87. package/api/resources/speechEngine/client/Client.js +1 -1
  88. package/api/resources/speechEngine/client/requests/CreateSpeechEngineRequest.d.ts +2 -0
  89. package/api/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.d.ts +1 -0
  90. package/api/resources/usage/client/Client.d.ts +1 -1
  91. package/api/resources/usage/client/Client.js +1 -1
  92. package/api/resources/v1RealtimeTranslation/index.d.ts +1 -0
  93. package/api/resources/v1RealtimeTranslation/index.js +17 -0
  94. package/api/resources/v1RealtimeTranslation/types/ReceiveRttMessage.d.ts +5 -0
  95. package/api/resources/v1RealtimeTranslation/types/SendRttMessage.d.ts +5 -0
  96. package/api/resources/v1RealtimeTranslation/types/SendRttMessage.js +3 -0
  97. package/api/resources/v1RealtimeTranslation/types/index.d.ts +2 -0
  98. package/api/resources/v1RealtimeTranslation/types/index.js +18 -0
  99. package/api/resources/voices/client/Client.d.ts +0 -3
  100. package/api/resources/voices/client/Client.js +0 -3
  101. package/api/resources/workspace/resources/authConnections/client/Client.d.ts +16 -0
  102. package/api/resources/workspace/resources/authConnections/client/Client.js +63 -0
  103. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +4 -1
  104. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
  105. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +16 -0
  106. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +3 -0
  107. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +40 -0
  108. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +3 -0
  109. package/api/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
  110. package/api/resources/workspace/resources/authConnections/types/index.js +2 -0
  111. package/api/resources/workspace/resources/usage/client/requests/BodyGetWorkspaceUsageV1WorkspaceAnalyticsQueryUsageByProductOverTimePost.d.ts +1 -0
  112. package/api/types/AgentAlertingMonitorConfig.d.ts +2 -0
  113. package/api/types/AgentAlertingSettings.d.ts +4 -0
  114. package/api/types/AgentAlertingWebhookNotifier.d.ts +7 -0
  115. package/api/types/AgentAlertingWebhookNotifier.js +3 -0
  116. package/api/types/AsrConversationalConfigOverride.d.ts +4 -0
  117. package/api/types/AsrConversationalConfigOverride.js +3 -0
  118. package/api/types/AsrConversationalConfigOverrideConfig.d.ts +4 -0
  119. package/api/types/AsrConversationalConfigOverrideConfig.js +3 -0
  120. package/api/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
  121. package/api/types/ChapterStatisticsResponse.d.ts +2 -0
  122. package/api/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -0
  123. package/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -0
  124. package/api/types/ConversationConfigClientOverrideInput.d.ts +2 -0
  125. package/api/types/ConversationConfigClientOverrideOutput.d.ts +2 -0
  126. package/api/types/ConversationInitiationSource.d.ts +1 -0
  127. package/api/types/ConversationInitiationSource.js +1 -0
  128. package/api/types/CreateBearerAuthRequest.d.ts +8 -0
  129. package/api/types/CreateBearerAuthRequest.js +3 -0
  130. package/api/types/CreateOrderResponse.d.ts +5 -0
  131. package/api/types/CreateOrderResponse.js +3 -0
  132. package/api/types/CueOptionsRequest.d.ts +14 -0
  133. package/api/types/CueOptionsRequest.js +3 -0
  134. package/api/types/DeliverableInfo.d.ts +10 -0
  135. package/api/types/DeliverableInfo.js +3 -0
  136. package/api/types/DubOrderItemRequest.d.ts +17 -0
  137. package/api/types/DubOrderItemRequest.js +3 -0
  138. package/api/types/GetConversationResponseModel.d.ts +2 -0
  139. package/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +2 -0
  140. package/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +2 -0
  141. package/api/types/InboundSipTrunkConfigRequestModel.d.ts +2 -0
  142. package/api/types/ItemId.d.ts +1 -0
  143. package/api/types/ItemId.js +3 -0
  144. package/api/types/LanguageInfo.d.ts +6 -0
  145. package/api/types/LanguageInfo.js +3 -0
  146. package/api/types/LanguagePairInfo.d.ts +7 -0
  147. package/api/types/LanguagePairInfo.js +3 -0
  148. package/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
  149. package/api/types/ListCustomerFacingAgentsParams.d.ts +11 -0
  150. package/api/types/ListCustomerFacingAgentsParams.js +3 -0
  151. package/api/types/ListOrdersResponse.d.ts +5 -0
  152. package/api/types/ListOrdersResponse.js +3 -0
  153. package/api/types/ListSpeechEnginesResponse.d.ts +1 -0
  154. package/api/types/Llm.d.ts +2 -0
  155. package/api/types/Llm.js +2 -0
  156. package/api/types/LoadProcedureToolConfig.d.ts +4 -0
  157. package/api/types/LoadProcedureToolConfig.js +3 -0
  158. package/api/types/LoadProcedureToolErrorStatus.d.ts +5 -0
  159. package/api/types/LoadProcedureToolErrorStatus.js +8 -0
  160. package/api/types/MediaId.d.ts +1 -0
  161. package/api/types/MediaId.js +3 -0
  162. package/api/types/OAuth2ClientCredsResponse.d.ts +2 -0
  163. package/api/types/OrderDeliverablesResponse.d.ts +5 -0
  164. package/api/types/OrderDeliverablesResponse.js +3 -0
  165. package/api/types/OrderId.d.ts +1 -0
  166. package/api/types/OrderId.js +3 -0
  167. package/api/types/OrderItemInfo.d.ts +9 -0
  168. package/api/types/OrderItemInfo.js +3 -0
  169. package/api/types/OrderItemKind.d.ts +5 -0
  170. package/api/types/OrderItemKind.js +8 -0
  171. package/api/types/OrderMediaResponse.d.ts +13 -0
  172. package/api/types/OrderMediaResponse.js +3 -0
  173. package/api/types/OrderRequestState.d.ts +9 -0
  174. package/api/types/OrderRequestState.js +12 -0
  175. package/api/types/OrderResponse.d.ts +23 -0
  176. package/api/types/OrderResponse.js +3 -0
  177. package/api/types/OrderState.d.ts +9 -0
  178. package/api/types/OrderState.js +12 -0
  179. package/api/types/OrderSummary.d.ts +15 -0
  180. package/api/types/OrderSummary.js +3 -0
  181. package/api/types/OutboundSipTrunkConfigRequestModel.d.ts +2 -0
  182. package/api/types/PairedLanguagesResponse.d.ts +5 -0
  183. package/api/types/PairedLanguagesResponse.js +3 -0
  184. package/api/types/ProcedureAtVersion.d.ts +12 -0
  185. package/api/types/ProcedureAtVersion.js +3 -0
  186. package/api/types/ProcedureCompilerMode.d.ts +5 -1
  187. package/api/types/ProcedureCompilerMode.js +5 -0
  188. package/api/types/PromptAgentApiModelInput.d.ts +1 -1
  189. package/api/types/PromptAgentApiModelOutput.d.ts +1 -1
  190. package/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -1
  191. package/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -1
  192. package/api/types/QuoteInfo.d.ts +4 -0
  193. package/api/types/QuoteInfo.js +3 -0
  194. package/api/types/RegisterMediaResponse.d.ts +5 -0
  195. package/api/types/RegisterMediaResponse.js +3 -0
  196. package/api/types/RemoveOrderItemResponse.d.ts +4 -0
  197. package/api/types/RemoveOrderItemResponse.js +3 -0
  198. package/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.d.ts +10 -0
  199. package/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.js +3 -0
  200. package/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.d.ts +10 -0
  201. package/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.js +3 -0
  202. package/api/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.d.ts +10 -0
  203. package/api/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.js +3 -0
  204. package/api/types/RttAudioPayload.d.ts +11 -0
  205. package/api/types/RttAudioPayload.js +3 -0
  206. package/api/types/RttEndOfStreamPayload.d.ts +7 -0
  207. package/api/types/RttEndOfStreamPayload.js +3 -0
  208. package/api/types/RttErrorPayload.d.ts +9 -0
  209. package/api/types/RttErrorPayload.js +3 -0
  210. package/api/types/RttFinalTranscriptPayload.d.ts +9 -0
  211. package/api/types/RttFinalTranscriptPayload.js +3 -0
  212. package/api/types/RttInputAudioChunkPayload.d.ts +9 -0
  213. package/api/types/RttInputAudioChunkPayload.js +3 -0
  214. package/api/types/RttInputFormatEnum.d.ts +11 -0
  215. package/api/types/RttInputFormatEnum.js +14 -0
  216. package/api/types/RttOutputFormatEnum.d.ts +15 -0
  217. package/api/types/RttOutputFormatEnum.js +18 -0
  218. package/api/types/RttPartialTranscriptPayload.d.ts +9 -0
  219. package/api/types/RttPartialTranscriptPayload.js +3 -0
  220. package/api/types/RttSessionStartedPayload.d.ts +11 -0
  221. package/api/types/RttSessionStartedPayload.js +3 -0
  222. package/api/types/RttStatusPayload.d.ts +9 -0
  223. package/api/types/RttStatusPayload.js +3 -0
  224. package/api/types/RttTranslationPayload.d.ts +9 -0
  225. package/api/types/RttTranslationPayload.js +3 -0
  226. package/api/types/SingleLanguagesResponse.d.ts +5 -0
  227. package/api/types/SingleLanguagesResponse.js +3 -0
  228. package/api/types/SlackBotAuthResponse.d.ts +10 -0
  229. package/api/types/SlackBotAuthResponse.js +3 -0
  230. package/api/types/SpeechEngineConversationInitiationClientDataConfig.d.ts +4 -0
  231. package/api/types/SpeechEngineConversationInitiationClientDataConfig.js +3 -0
  232. package/api/types/SpeechEngineResponse.d.ts +13 -0
  233. package/api/types/SpeechEngineSummaryResponse.d.ts +3 -1
  234. package/api/types/SubmitOrderResponse.d.ts +9 -0
  235. package/api/types/SubmitOrderResponse.js +3 -0
  236. package/api/types/SubtitleOrderItemRequest.d.ts +15 -0
  237. package/api/types/SubtitleOrderItemRequest.js +3 -0
  238. package/api/types/SystemToolConfigInputParams.d.ts +4 -1
  239. package/api/types/SystemToolConfigOutputParams.d.ts +4 -1
  240. package/api/types/UpdateBasicAuthRequest.d.ts +5 -0
  241. package/api/types/UpdateBasicAuthRequest.js +3 -0
  242. package/api/types/UpdateOAuth2ClientCredsRequest.d.ts +9 -0
  243. package/api/types/UpdateOAuth2ClientCredsRequest.js +3 -0
  244. package/api/types/UpdateOAuth2JwtRequest.d.ts +14 -0
  245. package/api/types/UpdateOAuth2JwtRequest.js +3 -0
  246. package/api/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +9 -0
  247. package/api/types/UpdateOAuth2JwtRequestAlgorithm.js +12 -0
  248. package/api/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +5 -0
  249. package/api/types/UpdateOAuth2JwtRequestTokenResponseField.js +8 -0
  250. package/api/types/UpdateOrderRequest.d.ts +4 -0
  251. package/api/types/UpdateOrderRequest.js +3 -0
  252. package/api/types/UpdateOrderResponse.d.ts +4 -0
  253. package/api/types/UpdateOrderResponse.js +3 -0
  254. package/api/types/UpsertOrderItemRequest.d.ts +7 -0
  255. package/api/types/UpsertOrderItemRequest.js +3 -0
  256. package/api/types/UpsertOrderItemResponse.d.ts +7 -0
  257. package/api/types/UpsertOrderItemResponse.js +3 -0
  258. package/api/types/VoiceStatisticsResponseModel.d.ts +2 -0
  259. package/api/types/WorkspaceResourceType.d.ts +3 -0
  260. package/api/types/WorkspaceResourceType.js +3 -0
  261. package/api/types/index.d.ts +58 -3
  262. package/api/types/index.js +58 -3
  263. package/dist/BaseClient.js +2 -2
  264. package/dist/Client.d.ts +3 -0
  265. package/dist/Client.js +39 -34
  266. package/dist/api/resources/conversationalAi/conversation/Conversation.js +1 -0
  267. package/dist/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +2 -0
  268. package/dist/api/resources/conversationalAi/conversation/events.d.ts +1 -0
  269. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
  270. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
  271. package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +1 -0
  272. package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +2 -1
  273. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.d.ts +27 -0
  274. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.js +116 -0
  275. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/index.d.ts +1 -0
  276. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/index.js +2 -0
  277. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/index.d.ts +1 -0
  278. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/index.js +17 -0
  279. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
  280. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +18 -6
  281. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetRequest.d.ts +9 -0
  282. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetRequest.js +3 -0
  283. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
  284. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/index.d.ts +1 -0
  285. package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +1 -0
  286. package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +5 -1
  287. package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +2 -0
  288. package/dist/api/resources/conversationalAi/resources/conversations/types/ConversationsGetRequestFormat.d.ts +6 -0
  289. package/dist/api/resources/conversationalAi/resources/conversations/types/ConversationsGetRequestFormat.js +9 -0
  290. package/dist/api/resources/conversationalAi/resources/conversations/types/index.d.ts +1 -0
  291. package/dist/api/resources/conversationalAi/resources/conversations/types/index.js +1 -0
  292. package/dist/api/resources/index.d.ts +3 -0
  293. package/dist/api/resources/index.js +4 -1
  294. package/dist/api/resources/music/client/Client.js +3 -0
  295. package/dist/api/resources/music/client/requests/BodyVideoToMusicV1MusicVideoToMusicPost.d.ts +2 -0
  296. package/dist/api/resources/productions/client/Client.d.ts +12 -0
  297. package/dist/api/resources/productions/client/Client.js +16 -0
  298. package/dist/api/resources/productions/client/index.d.ts +1 -0
  299. package/dist/api/resources/productions/client/index.js +2 -0
  300. package/dist/api/resources/productions/index.d.ts +2 -0
  301. package/dist/api/resources/productions/index.js +18 -0
  302. package/dist/api/resources/productions/resources/index.d.ts +2 -0
  303. package/dist/api/resources/productions/resources/index.js +41 -0
  304. package/dist/api/resources/productions/resources/orders/client/Client.d.ts +104 -0
  305. package/dist/api/resources/productions/resources/orders/client/Client.js +398 -0
  306. package/dist/api/resources/productions/resources/orders/client/index.d.ts +1 -0
  307. package/dist/api/resources/productions/resources/orders/client/index.js +17 -0
  308. package/dist/api/resources/productions/resources/orders/client/requests/BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.d.ts +12 -0
  309. package/dist/api/resources/productions/resources/orders/client/requests/BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.js +3 -0
  310. package/dist/api/resources/productions/resources/orders/client/requests/OrdersListRequest.d.ts +23 -0
  311. package/dist/api/resources/productions/resources/orders/client/requests/OrdersListRequest.js +3 -0
  312. package/dist/api/resources/productions/resources/orders/client/requests/index.d.ts +2 -0
  313. package/dist/api/resources/productions/resources/orders/client/requests/index.js +2 -0
  314. package/dist/api/resources/productions/resources/orders/index.d.ts +2 -0
  315. package/dist/api/resources/productions/resources/orders/index.js +18 -0
  316. package/dist/api/resources/productions/resources/orders/resources/deliverables/client/Client.d.ts +26 -0
  317. package/dist/api/resources/productions/resources/orders/resources/deliverables/client/Client.js +115 -0
  318. package/dist/api/resources/productions/resources/orders/resources/deliverables/client/index.d.ts +1 -0
  319. package/dist/api/resources/productions/resources/orders/resources/deliverables/client/index.js +2 -0
  320. package/dist/api/resources/productions/resources/orders/resources/deliverables/index.d.ts +1 -0
  321. package/dist/api/resources/productions/resources/orders/resources/deliverables/index.js +17 -0
  322. package/dist/api/resources/productions/resources/orders/resources/index.d.ts +6 -0
  323. package/dist/api/resources/productions/resources/orders/resources/index.js +45 -0
  324. package/dist/api/resources/productions/resources/orders/resources/items/client/Client.d.ts +54 -0
  325. package/dist/api/resources/productions/resources/orders/resources/items/client/Client.js +188 -0
  326. package/dist/api/resources/productions/resources/orders/resources/items/client/index.d.ts +1 -0
  327. package/dist/api/resources/productions/resources/orders/resources/items/client/index.js +17 -0
  328. package/dist/api/resources/productions/resources/orders/resources/items/client/requests/BodyUpsertOrderItemV1ProductionsOrdersOrderIdItemsPost.d.ts +21 -0
  329. package/dist/api/resources/productions/resources/orders/resources/items/client/requests/BodyUpsertOrderItemV1ProductionsOrdersOrderIdItemsPost.js +3 -0
  330. package/dist/api/resources/productions/resources/orders/resources/items/client/requests/index.d.ts +1 -0
  331. package/dist/api/resources/productions/resources/orders/resources/items/client/requests/index.js +2 -0
  332. package/dist/api/resources/productions/resources/orders/resources/items/index.d.ts +1 -0
  333. package/dist/api/resources/productions/resources/orders/resources/items/index.js +17 -0
  334. package/dist/api/resources/productions/resources/orders/resources/languages/client/Client.d.ts +26 -0
  335. package/dist/api/resources/productions/resources/orders/resources/languages/client/Client.js +115 -0
  336. package/dist/api/resources/productions/resources/orders/resources/languages/client/index.d.ts +1 -0
  337. package/dist/api/resources/productions/resources/orders/resources/languages/client/index.js +2 -0
  338. package/dist/api/resources/productions/resources/orders/resources/languages/index.d.ts +1 -0
  339. package/dist/api/resources/productions/resources/orders/resources/languages/index.js +17 -0
  340. package/dist/api/resources/productions/resources/orders/resources/media/client/Client.d.ts +44 -0
  341. package/dist/api/resources/productions/resources/orders/resources/media/client/Client.js +193 -0
  342. package/dist/api/resources/productions/resources/orders/resources/media/client/index.d.ts +1 -0
  343. package/dist/api/resources/productions/resources/orders/resources/media/client/index.js +17 -0
  344. package/dist/api/resources/productions/resources/orders/resources/media/client/requests/BodyRegisterMediaV1ProductionsOrdersOrderIdMediaPost.d.ts +19 -0
  345. package/dist/api/resources/productions/resources/orders/resources/media/client/requests/BodyRegisterMediaV1ProductionsOrdersOrderIdMediaPost.js +3 -0
  346. package/dist/api/resources/productions/resources/orders/resources/media/client/requests/index.d.ts +1 -0
  347. package/dist/api/resources/productions/resources/orders/resources/media/client/requests/index.js +2 -0
  348. package/dist/api/resources/productions/resources/orders/resources/media/index.d.ts +1 -0
  349. package/dist/api/resources/productions/resources/orders/resources/media/index.js +17 -0
  350. package/dist/api/resources/speechEngine/client/Client.d.ts +1 -1
  351. package/dist/api/resources/speechEngine/client/Client.js +1 -1
  352. package/dist/api/resources/speechEngine/client/requests/CreateSpeechEngineRequest.d.ts +2 -0
  353. package/dist/api/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.d.ts +1 -0
  354. package/dist/api/resources/usage/client/Client.d.ts +1 -1
  355. package/dist/api/resources/usage/client/Client.js +1 -1
  356. package/dist/api/resources/v1RealtimeTranslation/index.d.ts +1 -0
  357. package/dist/api/resources/v1RealtimeTranslation/index.js +17 -0
  358. package/dist/api/resources/v1RealtimeTranslation/types/ReceiveRttMessage.d.ts +5 -0
  359. package/dist/api/resources/v1RealtimeTranslation/types/ReceiveRttMessage.js +3 -0
  360. package/dist/api/resources/v1RealtimeTranslation/types/SendRttMessage.d.ts +5 -0
  361. package/dist/api/resources/v1RealtimeTranslation/types/SendRttMessage.js +3 -0
  362. package/dist/api/resources/v1RealtimeTranslation/types/index.d.ts +2 -0
  363. package/dist/api/resources/v1RealtimeTranslation/types/index.js +18 -0
  364. package/dist/api/resources/voices/client/Client.d.ts +0 -3
  365. package/dist/api/resources/voices/client/Client.js +0 -3
  366. package/dist/api/resources/workspace/resources/authConnections/client/Client.d.ts +16 -0
  367. package/dist/api/resources/workspace/resources/authConnections/client/Client.js +63 -0
  368. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +4 -1
  369. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
  370. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +16 -0
  371. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +3 -0
  372. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +40 -0
  373. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +3 -0
  374. package/dist/api/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
  375. package/dist/api/resources/workspace/resources/authConnections/types/index.js +2 -0
  376. package/dist/api/resources/workspace/resources/usage/client/requests/BodyGetWorkspaceUsageV1WorkspaceAnalyticsQueryUsageByProductOverTimePost.d.ts +1 -0
  377. package/dist/api/types/AgentAlertingMonitorConfig.d.ts +2 -0
  378. package/dist/api/types/AgentAlertingSettings.d.ts +4 -0
  379. package/dist/api/types/AgentAlertingWebhookNotifier.d.ts +7 -0
  380. package/dist/api/types/AgentAlertingWebhookNotifier.js +3 -0
  381. package/dist/api/types/AsrConversationalConfigOverride.d.ts +4 -0
  382. package/dist/api/types/AsrConversationalConfigOverride.js +3 -0
  383. package/dist/api/types/AsrConversationalConfigOverrideConfig.d.ts +4 -0
  384. package/dist/api/types/AsrConversationalConfigOverrideConfig.js +3 -0
  385. package/dist/api/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
  386. package/dist/api/types/ChapterStatisticsResponse.d.ts +2 -0
  387. package/dist/api/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -0
  388. package/dist/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -0
  389. package/dist/api/types/ConversationConfigClientOverrideInput.d.ts +2 -0
  390. package/dist/api/types/ConversationConfigClientOverrideOutput.d.ts +2 -0
  391. package/dist/api/types/ConversationInitiationSource.d.ts +1 -0
  392. package/dist/api/types/ConversationInitiationSource.js +1 -0
  393. package/dist/api/types/CreateBearerAuthRequest.d.ts +8 -0
  394. package/dist/api/types/CreateBearerAuthRequest.js +3 -0
  395. package/dist/api/types/CreateOrderResponse.d.ts +5 -0
  396. package/dist/api/types/CreateOrderResponse.js +3 -0
  397. package/dist/api/types/CueOptionsRequest.d.ts +14 -0
  398. package/dist/api/types/CueOptionsRequest.js +3 -0
  399. package/dist/api/types/DeliverableInfo.d.ts +10 -0
  400. package/dist/api/types/DeliverableInfo.js +3 -0
  401. package/dist/api/types/DubOrderItemRequest.d.ts +17 -0
  402. package/dist/api/types/DubOrderItemRequest.js +3 -0
  403. package/dist/api/types/GetConversationResponseModel.d.ts +2 -0
  404. package/dist/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +2 -0
  405. package/dist/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +2 -0
  406. package/dist/api/types/InboundSipTrunkConfigRequestModel.d.ts +2 -0
  407. package/dist/api/types/ItemId.d.ts +1 -0
  408. package/dist/api/types/ItemId.js +3 -0
  409. package/dist/api/types/LanguageInfo.d.ts +6 -0
  410. package/dist/api/types/LanguageInfo.js +3 -0
  411. package/dist/api/types/LanguagePairInfo.d.ts +7 -0
  412. package/dist/api/types/LanguagePairInfo.js +3 -0
  413. package/dist/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
  414. package/dist/api/types/ListCustomerFacingAgentsParams.d.ts +11 -0
  415. package/dist/api/types/ListCustomerFacingAgentsParams.js +3 -0
  416. package/dist/api/types/ListOrdersResponse.d.ts +5 -0
  417. package/dist/api/types/ListOrdersResponse.js +3 -0
  418. package/dist/api/types/ListSpeechEnginesResponse.d.ts +1 -0
  419. package/dist/api/types/Llm.d.ts +2 -0
  420. package/dist/api/types/Llm.js +2 -0
  421. package/dist/api/types/LoadProcedureToolConfig.d.ts +4 -0
  422. package/dist/api/types/LoadProcedureToolConfig.js +3 -0
  423. package/dist/api/types/LoadProcedureToolErrorStatus.d.ts +5 -0
  424. package/dist/api/types/LoadProcedureToolErrorStatus.js +8 -0
  425. package/dist/api/types/MediaId.d.ts +1 -0
  426. package/dist/api/types/MediaId.js +3 -0
  427. package/dist/api/types/OAuth2ClientCredsResponse.d.ts +2 -0
  428. package/dist/api/types/OrderDeliverablesResponse.d.ts +5 -0
  429. package/dist/api/types/OrderDeliverablesResponse.js +3 -0
  430. package/dist/api/types/OrderId.d.ts +1 -0
  431. package/dist/api/types/OrderId.js +3 -0
  432. package/dist/api/types/OrderItemInfo.d.ts +9 -0
  433. package/dist/api/types/OrderItemInfo.js +3 -0
  434. package/dist/api/types/OrderItemKind.d.ts +5 -0
  435. package/dist/api/types/OrderItemKind.js +8 -0
  436. package/dist/api/types/OrderMediaResponse.d.ts +13 -0
  437. package/dist/api/types/OrderMediaResponse.js +3 -0
  438. package/dist/api/types/OrderRequestState.d.ts +9 -0
  439. package/dist/api/types/OrderRequestState.js +12 -0
  440. package/dist/api/types/OrderResponse.d.ts +23 -0
  441. package/dist/api/types/OrderResponse.js +3 -0
  442. package/dist/api/types/OrderState.d.ts +9 -0
  443. package/dist/api/types/OrderState.js +12 -0
  444. package/dist/api/types/OrderSummary.d.ts +15 -0
  445. package/dist/api/types/OrderSummary.js +3 -0
  446. package/dist/api/types/OutboundSipTrunkConfigRequestModel.d.ts +2 -0
  447. package/dist/api/types/PairedLanguagesResponse.d.ts +5 -0
  448. package/dist/api/types/PairedLanguagesResponse.js +3 -0
  449. package/dist/api/types/ProcedureAtVersion.d.ts +12 -0
  450. package/dist/api/types/ProcedureAtVersion.js +3 -0
  451. package/dist/api/types/ProcedureCompilerMode.d.ts +5 -1
  452. package/dist/api/types/ProcedureCompilerMode.js +5 -0
  453. package/dist/api/types/PromptAgentApiModelInput.d.ts +1 -1
  454. package/dist/api/types/PromptAgentApiModelOutput.d.ts +1 -1
  455. package/dist/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -1
  456. package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -1
  457. package/dist/api/types/QuoteInfo.d.ts +4 -0
  458. package/dist/api/types/QuoteInfo.js +3 -0
  459. package/dist/api/types/RegisterMediaResponse.d.ts +5 -0
  460. package/dist/api/types/RegisterMediaResponse.js +3 -0
  461. package/dist/api/types/RemoveOrderItemResponse.d.ts +4 -0
  462. package/dist/api/types/RemoveOrderItemResponse.js +3 -0
  463. package/dist/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.d.ts +10 -0
  464. package/dist/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.js +3 -0
  465. package/dist/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.d.ts +10 -0
  466. package/dist/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.js +3 -0
  467. package/dist/api/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.d.ts +10 -0
  468. package/dist/api/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.js +3 -0
  469. package/dist/api/types/RttAudioPayload.d.ts +11 -0
  470. package/dist/api/types/RttAudioPayload.js +3 -0
  471. package/dist/api/types/RttEndOfStreamPayload.d.ts +7 -0
  472. package/dist/api/types/RttEndOfStreamPayload.js +3 -0
  473. package/dist/api/types/RttErrorPayload.d.ts +9 -0
  474. package/dist/api/types/RttErrorPayload.js +3 -0
  475. package/dist/api/types/RttFinalTranscriptPayload.d.ts +9 -0
  476. package/dist/api/types/RttFinalTranscriptPayload.js +3 -0
  477. package/dist/api/types/RttInputAudioChunkPayload.d.ts +9 -0
  478. package/dist/api/types/RttInputAudioChunkPayload.js +3 -0
  479. package/dist/api/types/RttInputFormatEnum.d.ts +11 -0
  480. package/dist/api/types/RttInputFormatEnum.js +14 -0
  481. package/dist/api/types/RttOutputFormatEnum.d.ts +15 -0
  482. package/dist/api/types/RttOutputFormatEnum.js +18 -0
  483. package/dist/api/types/RttPartialTranscriptPayload.d.ts +9 -0
  484. package/dist/api/types/RttPartialTranscriptPayload.js +3 -0
  485. package/dist/api/types/RttSessionStartedPayload.d.ts +11 -0
  486. package/dist/api/types/RttSessionStartedPayload.js +3 -0
  487. package/dist/api/types/RttStatusPayload.d.ts +9 -0
  488. package/dist/api/types/RttStatusPayload.js +3 -0
  489. package/dist/api/types/RttTranslationPayload.d.ts +9 -0
  490. package/dist/api/types/RttTranslationPayload.js +3 -0
  491. package/dist/api/types/SingleLanguagesResponse.d.ts +5 -0
  492. package/dist/api/types/SingleLanguagesResponse.js +3 -0
  493. package/dist/api/types/SlackBotAuthResponse.d.ts +10 -0
  494. package/dist/api/types/SlackBotAuthResponse.js +3 -0
  495. package/dist/api/types/SpeechEngineConversationInitiationClientDataConfig.d.ts +4 -0
  496. package/dist/api/types/SpeechEngineConversationInitiationClientDataConfig.js +3 -0
  497. package/dist/api/types/SpeechEngineResponse.d.ts +13 -0
  498. package/dist/api/types/SpeechEngineSummaryResponse.d.ts +3 -1
  499. package/dist/api/types/SubmitOrderResponse.d.ts +9 -0
  500. package/dist/api/types/SubmitOrderResponse.js +3 -0
  501. package/dist/api/types/SubtitleOrderItemRequest.d.ts +15 -0
  502. package/dist/api/types/SubtitleOrderItemRequest.js +3 -0
  503. package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -1
  504. package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -1
  505. package/dist/api/types/UpdateBasicAuthRequest.d.ts +5 -0
  506. package/dist/api/types/UpdateBasicAuthRequest.js +3 -0
  507. package/dist/api/types/UpdateOAuth2ClientCredsRequest.d.ts +9 -0
  508. package/dist/api/types/UpdateOAuth2ClientCredsRequest.js +3 -0
  509. package/dist/api/types/UpdateOAuth2JwtRequest.d.ts +14 -0
  510. package/dist/api/types/UpdateOAuth2JwtRequest.js +3 -0
  511. package/dist/api/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +9 -0
  512. package/dist/api/types/UpdateOAuth2JwtRequestAlgorithm.js +12 -0
  513. package/dist/api/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +5 -0
  514. package/dist/api/types/UpdateOAuth2JwtRequestTokenResponseField.js +8 -0
  515. package/dist/api/types/UpdateOrderRequest.d.ts +4 -0
  516. package/dist/api/types/UpdateOrderRequest.js +3 -0
  517. package/dist/api/types/UpdateOrderResponse.d.ts +4 -0
  518. package/dist/api/types/UpdateOrderResponse.js +3 -0
  519. package/dist/api/types/UpsertOrderItemRequest.d.ts +7 -0
  520. package/dist/api/types/UpsertOrderItemRequest.js +3 -0
  521. package/dist/api/types/UpsertOrderItemResponse.d.ts +7 -0
  522. package/dist/api/types/UpsertOrderItemResponse.js +3 -0
  523. package/dist/api/types/VoiceStatisticsResponseModel.d.ts +2 -0
  524. package/dist/api/types/WorkspaceResourceType.d.ts +3 -0
  525. package/dist/api/types/WorkspaceResourceType.js +3 -0
  526. package/dist/api/types/index.d.ts +58 -3
  527. package/dist/api/types/index.js +58 -3
  528. package/dist/serialization/resources/conversationalAi/resources/conversations/types/ConversationsGetRequestFormat.d.ts +7 -0
  529. package/dist/serialization/resources/conversationalAi/resources/conversations/types/ConversationsGetRequestFormat.js +39 -0
  530. package/dist/serialization/resources/conversationalAi/resources/conversations/types/index.d.ts +1 -0
  531. package/dist/serialization/resources/conversationalAi/resources/conversations/types/index.js +1 -0
  532. package/dist/serialization/resources/index.d.ts +3 -0
  533. package/dist/serialization/resources/index.js +4 -1
  534. package/dist/serialization/resources/productions/index.d.ts +1 -0
  535. package/dist/serialization/resources/productions/index.js +17 -0
  536. package/dist/serialization/resources/productions/resources/index.d.ts +2 -0
  537. package/dist/serialization/resources/productions/resources/index.js +41 -0
  538. package/dist/serialization/resources/productions/resources/orders/client/index.d.ts +1 -0
  539. package/dist/serialization/resources/productions/resources/orders/client/index.js +17 -0
  540. package/dist/serialization/resources/productions/resources/orders/client/requests/BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.d.ts +10 -0
  541. package/dist/serialization/resources/productions/resources/orders/client/requests/BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.js +42 -0
  542. package/dist/serialization/resources/productions/resources/orders/client/requests/index.d.ts +1 -0
  543. package/dist/serialization/resources/productions/resources/orders/client/requests/index.js +5 -0
  544. package/dist/serialization/resources/productions/resources/orders/index.d.ts +2 -0
  545. package/dist/serialization/resources/productions/resources/orders/index.js +18 -0
  546. package/dist/serialization/resources/productions/resources/orders/resources/index.d.ts +2 -0
  547. package/dist/serialization/resources/productions/resources/orders/resources/index.js +41 -0
  548. package/dist/serialization/resources/productions/resources/orders/resources/items/client/index.d.ts +1 -0
  549. package/dist/serialization/resources/productions/resources/orders/resources/items/client/index.js +17 -0
  550. package/dist/serialization/resources/productions/resources/orders/resources/items/client/requests/BodyUpsertOrderItemV1ProductionsOrdersOrderIdItemsPost.d.ts +10 -0
  551. package/dist/serialization/resources/productions/resources/orders/resources/items/client/requests/BodyUpsertOrderItemV1ProductionsOrdersOrderIdItemsPost.js +42 -0
  552. package/dist/serialization/resources/productions/resources/orders/resources/items/client/requests/index.d.ts +1 -0
  553. package/dist/serialization/resources/productions/resources/orders/resources/items/client/requests/index.js +5 -0
  554. package/dist/serialization/resources/productions/resources/orders/resources/items/index.d.ts +1 -0
  555. package/dist/serialization/resources/productions/resources/orders/resources/items/index.js +17 -0
  556. package/dist/serialization/resources/speechEngine/client/requests/CreateSpeechEngineRequest.d.ts +2 -0
  557. package/dist/serialization/resources/speechEngine/client/requests/CreateSpeechEngineRequest.js +2 -0
  558. package/dist/serialization/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.d.ts +2 -0
  559. package/dist/serialization/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.js +2 -0
  560. package/dist/serialization/resources/v1RealtimeTranslation/index.d.ts +1 -0
  561. package/dist/serialization/resources/v1RealtimeTranslation/index.js +17 -0
  562. package/dist/serialization/resources/v1RealtimeTranslation/types/ReceiveRttMessage.d.ts +14 -0
  563. package/dist/serialization/resources/v1RealtimeTranslation/types/ReceiveRttMessage.js +54 -0
  564. package/dist/serialization/resources/v1RealtimeTranslation/types/SendRttMessage.d.ts +9 -0
  565. package/dist/serialization/resources/v1RealtimeTranslation/types/SendRttMessage.js +41 -0
  566. package/dist/serialization/resources/v1RealtimeTranslation/types/index.d.ts +2 -0
  567. package/dist/serialization/resources/v1RealtimeTranslation/types/index.js +18 -0
  568. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +5 -1
  569. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.js +2 -0
  570. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
  571. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
  572. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +19 -0
  573. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +51 -0
  574. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +51 -0
  575. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +67 -0
  576. package/dist/serialization/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
  577. package/dist/serialization/resources/workspace/resources/authConnections/types/index.js +2 -0
  578. package/dist/serialization/types/AgentAlertingMonitorConfig.d.ts +1 -0
  579. package/dist/serialization/types/AgentAlertingMonitorConfig.js +1 -0
  580. package/dist/serialization/types/AgentAlertingSettings.d.ts +3 -0
  581. package/dist/serialization/types/AgentAlertingSettings.js +3 -0
  582. package/dist/serialization/types/AgentAlertingWebhookNotifier.d.ts +11 -0
  583. package/dist/serialization/types/AgentAlertingWebhookNotifier.js +43 -0
  584. package/dist/serialization/types/AsrConversationalConfigOverride.d.ts +9 -0
  585. package/dist/serialization/types/{CreateSpeechEngineResponse.js → AsrConversationalConfigOverride.js} +3 -3
  586. package/dist/serialization/types/AsrConversationalConfigOverrideConfig.d.ts +9 -0
  587. package/{serialization/types/CreateSpeechEngineResponse.js → dist/serialization/types/AsrConversationalConfigOverrideConfig.js} +3 -3
  588. package/dist/serialization/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
  589. package/dist/serialization/types/AudioIsolationHistoryItemResponseModel.js +1 -0
  590. package/dist/serialization/types/ChapterStatisticsResponse.d.ts +1 -0
  591. package/dist/serialization/types/ChapterStatisticsResponse.js +1 -0
  592. package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -0
  593. package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -0
  594. package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -0
  595. package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -0
  596. package/dist/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -0
  597. package/dist/serialization/types/ConversationConfigClientOverrideInput.js +2 -0
  598. package/dist/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -0
  599. package/dist/serialization/types/ConversationConfigClientOverrideOutput.js +2 -0
  600. package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
  601. package/dist/serialization/types/ConversationInitiationSource.js +1 -0
  602. package/dist/serialization/types/CreateBearerAuthRequest.d.ts +11 -0
  603. package/dist/serialization/types/{ApiIntegrationDocResponse.js → CreateBearerAuthRequest.js} +4 -4
  604. package/dist/serialization/types/CreateOrderResponse.d.ts +10 -0
  605. package/dist/serialization/types/CreateOrderResponse.js +42 -0
  606. package/dist/serialization/types/CueOptionsRequest.d.ts +14 -0
  607. package/dist/serialization/types/CueOptionsRequest.js +46 -0
  608. package/dist/serialization/types/DeliverableInfo.d.ts +12 -0
  609. package/dist/serialization/types/DeliverableInfo.js +44 -0
  610. package/dist/serialization/types/DubOrderItemRequest.d.ts +16 -0
  611. package/dist/serialization/types/DubOrderItemRequest.js +48 -0
  612. package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
  613. package/dist/serialization/types/GetConversationResponseModel.js +1 -0
  614. package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +1 -0
  615. package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +1 -0
  616. package/dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +1 -0
  617. package/dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +1 -0
  618. package/dist/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +1 -0
  619. package/dist/serialization/types/InboundSipTrunkConfigRequestModel.js +1 -0
  620. package/dist/serialization/types/ItemId.d.ts +7 -0
  621. package/dist/serialization/types/ItemId.js +39 -0
  622. package/dist/serialization/types/LanguageInfo.d.ts +10 -0
  623. package/dist/serialization/types/LanguageInfo.js +42 -0
  624. package/dist/serialization/types/LanguagePairInfo.d.ts +11 -0
  625. package/dist/serialization/types/LanguagePairInfo.js +43 -0
  626. package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
  627. package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
  628. package/dist/serialization/types/ListCustomerFacingAgentsParams.d.ts +9 -0
  629. package/dist/serialization/types/ListCustomerFacingAgentsParams.js +41 -0
  630. package/dist/serialization/types/ListOrdersResponse.d.ts +10 -0
  631. package/dist/serialization/types/ListOrdersResponse.js +42 -0
  632. package/dist/serialization/types/Llm.d.ts +1 -1
  633. package/dist/serialization/types/Llm.js +2 -0
  634. package/dist/serialization/types/LoadProcedureToolConfig.d.ts +10 -0
  635. package/dist/serialization/types/LoadProcedureToolConfig.js +42 -0
  636. package/dist/serialization/types/LoadProcedureToolErrorStatus.d.ts +7 -0
  637. package/dist/serialization/types/LoadProcedureToolErrorStatus.js +39 -0
  638. package/dist/serialization/types/MediaId.d.ts +7 -0
  639. package/dist/serialization/types/MediaId.js +39 -0
  640. package/dist/serialization/types/OAuth2ClientCredsResponse.d.ts +1 -0
  641. package/dist/serialization/types/OAuth2ClientCredsResponse.js +1 -0
  642. package/dist/serialization/types/OrderDeliverablesResponse.d.ts +10 -0
  643. package/dist/serialization/types/OrderDeliverablesResponse.js +42 -0
  644. package/dist/serialization/types/OrderId.d.ts +7 -0
  645. package/dist/serialization/types/OrderId.js +39 -0
  646. package/dist/serialization/types/OrderItemInfo.d.ts +14 -0
  647. package/dist/serialization/types/OrderItemInfo.js +46 -0
  648. package/dist/serialization/types/OrderItemKind.d.ts +7 -0
  649. package/dist/serialization/types/OrderItemKind.js +39 -0
  650. package/dist/serialization/types/OrderMediaResponse.d.ts +14 -0
  651. package/dist/serialization/types/OrderMediaResponse.js +46 -0
  652. package/dist/serialization/types/OrderRequestState.d.ts +7 -0
  653. package/dist/serialization/types/OrderRequestState.js +39 -0
  654. package/dist/serialization/types/OrderResponse.d.ts +21 -0
  655. package/dist/serialization/types/OrderResponse.js +53 -0
  656. package/dist/serialization/types/OrderState.d.ts +7 -0
  657. package/dist/serialization/types/OrderState.js +39 -0
  658. package/dist/serialization/types/OrderSummary.d.ts +16 -0
  659. package/dist/serialization/types/OrderSummary.js +48 -0
  660. package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +1 -0
  661. package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.js +1 -0
  662. package/dist/serialization/types/PairedLanguagesResponse.d.ts +10 -0
  663. package/dist/serialization/types/PairedLanguagesResponse.js +42 -0
  664. package/dist/serialization/types/ProcedureAtVersion.d.ts +13 -0
  665. package/dist/serialization/types/ProcedureAtVersion.js +45 -0
  666. package/dist/serialization/types/ProcedureCompilerMode.d.ts +1 -1
  667. package/dist/serialization/types/ProcedureCompilerMode.js +1 -1
  668. package/dist/serialization/types/QuoteInfo.d.ts +9 -0
  669. package/dist/serialization/types/QuoteInfo.js +41 -0
  670. package/dist/serialization/types/RegisterMediaResponse.d.ts +10 -0
  671. package/dist/serialization/types/RegisterMediaResponse.js +42 -0
  672. package/dist/serialization/types/RemoveOrderItemResponse.d.ts +9 -0
  673. package/dist/serialization/types/RemoveOrderItemResponse.js +41 -0
  674. package/dist/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.d.ts +15 -0
  675. package/dist/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.js +49 -0
  676. package/dist/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.d.ts +15 -0
  677. package/dist/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.js +49 -0
  678. package/dist/serialization/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.d.ts +15 -0
  679. package/dist/serialization/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.js +49 -0
  680. package/dist/serialization/types/RttAudioPayload.d.ts +11 -0
  681. package/dist/serialization/types/RttAudioPayload.js +43 -0
  682. package/dist/serialization/types/RttEndOfStreamPayload.d.ts +9 -0
  683. package/dist/serialization/types/RttEndOfStreamPayload.js +41 -0
  684. package/dist/serialization/types/RttErrorPayload.d.ts +10 -0
  685. package/dist/serialization/types/RttErrorPayload.js +42 -0
  686. package/dist/serialization/types/RttFinalTranscriptPayload.d.ts +10 -0
  687. package/dist/serialization/types/RttFinalTranscriptPayload.js +42 -0
  688. package/dist/serialization/types/RttInputAudioChunkPayload.d.ts +10 -0
  689. package/dist/serialization/types/RttInputAudioChunkPayload.js +42 -0
  690. package/dist/serialization/types/RttInputFormatEnum.d.ts +7 -0
  691. package/dist/serialization/types/RttInputFormatEnum.js +47 -0
  692. package/dist/serialization/types/RttOutputFormatEnum.d.ts +7 -0
  693. package/dist/serialization/types/RttOutputFormatEnum.js +51 -0
  694. package/dist/serialization/types/RttPartialTranscriptPayload.d.ts +10 -0
  695. package/dist/serialization/types/RttPartialTranscriptPayload.js +42 -0
  696. package/dist/serialization/types/RttSessionStartedPayload.d.ts +11 -0
  697. package/dist/serialization/types/{ListResponseApiIntegrationDocResponse.js → RttSessionStartedPayload.js} +5 -6
  698. package/dist/serialization/types/RttStatusPayload.d.ts +10 -0
  699. package/dist/serialization/types/RttStatusPayload.js +42 -0
  700. package/dist/serialization/types/RttTranslationPayload.d.ts +10 -0
  701. package/dist/serialization/types/RttTranslationPayload.js +42 -0
  702. package/dist/serialization/types/SingleLanguagesResponse.d.ts +10 -0
  703. package/dist/serialization/types/SingleLanguagesResponse.js +42 -0
  704. package/dist/serialization/types/SlackBotAuthResponse.d.ts +13 -0
  705. package/dist/serialization/types/SlackBotAuthResponse.js +45 -0
  706. package/dist/serialization/types/SpeechEngineConversationInitiationClientDataConfig.d.ts +9 -0
  707. package/dist/serialization/types/SpeechEngineConversationInitiationClientDataConfig.js +41 -0
  708. package/dist/serialization/types/SpeechEngineResponse.d.ts +2 -0
  709. package/dist/serialization/types/SpeechEngineResponse.js +2 -0
  710. package/dist/serialization/types/SubmitOrderResponse.d.ts +13 -0
  711. package/dist/serialization/types/SubmitOrderResponse.js +45 -0
  712. package/dist/serialization/types/SubtitleOrderItemRequest.d.ts +16 -0
  713. package/dist/serialization/types/SubtitleOrderItemRequest.js +48 -0
  714. package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
  715. package/dist/serialization/types/SystemToolConfigInputParams.js +2 -0
  716. package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
  717. package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -0
  718. package/dist/serialization/types/UpdateBasicAuthRequest.d.ts +11 -0
  719. package/dist/serialization/types/UpdateBasicAuthRequest.js +43 -0
  720. package/dist/serialization/types/UpdateOAuth2ClientCredsRequest.d.ts +15 -0
  721. package/dist/serialization/types/UpdateOAuth2ClientCredsRequest.js +47 -0
  722. package/dist/serialization/types/UpdateOAuth2JwtRequest.d.ts +21 -0
  723. package/dist/serialization/types/UpdateOAuth2JwtRequest.js +53 -0
  724. package/dist/serialization/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +7 -0
  725. package/dist/serialization/types/UpdateOAuth2JwtRequestAlgorithm.js +39 -0
  726. package/dist/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +7 -0
  727. package/dist/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.js +39 -0
  728. package/dist/serialization/types/UpdateOrderRequest.d.ts +9 -0
  729. package/{serialization/types/ApiIntegrationDocResponse.js → dist/serialization/types/UpdateOrderRequest.js} +2 -4
  730. package/dist/serialization/types/UpdateOrderResponse.d.ts +9 -0
  731. package/dist/serialization/types/UpdateOrderResponse.js +41 -0
  732. package/dist/serialization/types/UpsertOrderItemRequest.d.ts +12 -0
  733. package/dist/serialization/types/UpsertOrderItemRequest.js +44 -0
  734. package/dist/serialization/types/UpsertOrderItemResponse.d.ts +12 -0
  735. package/dist/serialization/types/UpsertOrderItemResponse.js +44 -0
  736. package/dist/serialization/types/VoiceStatisticsResponseModel.d.ts +1 -0
  737. package/dist/serialization/types/VoiceStatisticsResponseModel.js +1 -0
  738. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  739. package/dist/serialization/types/WorkspaceResourceType.js +3 -0
  740. package/dist/serialization/types/index.d.ts +58 -3
  741. package/dist/serialization/types/index.js +58 -3
  742. package/dist/version.d.ts +1 -1
  743. package/dist/version.js +1 -1
  744. package/dist/wrapper/speech-engine/SpeechEngineClientWrapper.js +1 -1
  745. package/package.json +1 -1
  746. package/reference.md +1021 -107
  747. package/serialization/resources/conversationalAi/resources/conversations/types/ConversationsGetRequestFormat.d.ts +7 -0
  748. package/serialization/resources/conversationalAi/resources/conversations/types/ConversationsGetRequestFormat.js +39 -0
  749. package/serialization/resources/conversationalAi/resources/conversations/types/index.d.ts +1 -0
  750. package/serialization/resources/conversationalAi/resources/conversations/types/index.js +1 -0
  751. package/serialization/resources/index.d.ts +3 -0
  752. package/serialization/resources/index.js +4 -1
  753. package/serialization/resources/productions/index.d.ts +1 -0
  754. package/serialization/resources/productions/index.js +17 -0
  755. package/serialization/resources/productions/resources/index.d.ts +2 -0
  756. package/serialization/resources/productions/resources/index.js +41 -0
  757. package/serialization/resources/productions/resources/orders/client/index.d.ts +1 -0
  758. package/serialization/resources/productions/resources/orders/client/index.js +17 -0
  759. package/serialization/resources/productions/resources/orders/client/requests/BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.d.ts +10 -0
  760. package/serialization/resources/productions/resources/orders/client/requests/BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.js +42 -0
  761. package/serialization/resources/productions/resources/orders/client/requests/index.d.ts +1 -0
  762. package/serialization/resources/productions/resources/orders/client/requests/index.js +5 -0
  763. package/serialization/resources/productions/resources/orders/index.d.ts +2 -0
  764. package/serialization/resources/productions/resources/orders/index.js +18 -0
  765. package/serialization/resources/productions/resources/orders/resources/index.d.ts +2 -0
  766. package/serialization/resources/productions/resources/orders/resources/index.js +41 -0
  767. package/serialization/resources/productions/resources/orders/resources/items/client/index.d.ts +1 -0
  768. package/serialization/resources/productions/resources/orders/resources/items/client/index.js +17 -0
  769. package/serialization/resources/productions/resources/orders/resources/items/client/requests/BodyUpsertOrderItemV1ProductionsOrdersOrderIdItemsPost.d.ts +10 -0
  770. package/serialization/resources/productions/resources/orders/resources/items/client/requests/BodyUpsertOrderItemV1ProductionsOrdersOrderIdItemsPost.js +42 -0
  771. package/serialization/resources/productions/resources/orders/resources/items/client/requests/index.d.ts +1 -0
  772. package/serialization/resources/productions/resources/orders/resources/items/client/requests/index.js +5 -0
  773. package/serialization/resources/productions/resources/orders/resources/items/index.d.ts +1 -0
  774. package/serialization/resources/productions/resources/orders/resources/items/index.js +17 -0
  775. package/serialization/resources/speechEngine/client/requests/CreateSpeechEngineRequest.d.ts +2 -0
  776. package/serialization/resources/speechEngine/client/requests/CreateSpeechEngineRequest.js +2 -0
  777. package/serialization/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.d.ts +2 -0
  778. package/serialization/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.js +2 -0
  779. package/serialization/resources/v1RealtimeTranslation/index.d.ts +1 -0
  780. package/serialization/resources/v1RealtimeTranslation/index.js +17 -0
  781. package/serialization/resources/v1RealtimeTranslation/types/ReceiveRttMessage.d.ts +14 -0
  782. package/serialization/resources/v1RealtimeTranslation/types/ReceiveRttMessage.js +54 -0
  783. package/serialization/resources/v1RealtimeTranslation/types/SendRttMessage.d.ts +9 -0
  784. package/serialization/resources/v1RealtimeTranslation/types/SendRttMessage.js +41 -0
  785. package/serialization/resources/v1RealtimeTranslation/types/index.d.ts +2 -0
  786. package/serialization/resources/v1RealtimeTranslation/types/index.js +18 -0
  787. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +5 -1
  788. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.js +2 -0
  789. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
  790. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
  791. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +19 -0
  792. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +51 -0
  793. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +51 -0
  794. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +67 -0
  795. package/serialization/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
  796. package/serialization/resources/workspace/resources/authConnections/types/index.js +2 -0
  797. package/serialization/types/AgentAlertingMonitorConfig.d.ts +1 -0
  798. package/serialization/types/AgentAlertingMonitorConfig.js +1 -0
  799. package/serialization/types/AgentAlertingSettings.d.ts +3 -0
  800. package/serialization/types/AgentAlertingSettings.js +3 -0
  801. package/serialization/types/AgentAlertingWebhookNotifier.d.ts +11 -0
  802. package/serialization/types/AgentAlertingWebhookNotifier.js +43 -0
  803. package/serialization/types/AsrConversationalConfigOverride.d.ts +9 -0
  804. package/serialization/types/AsrConversationalConfigOverride.js +41 -0
  805. package/serialization/types/AsrConversationalConfigOverrideConfig.d.ts +9 -0
  806. package/serialization/types/AsrConversationalConfigOverrideConfig.js +41 -0
  807. package/serialization/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
  808. package/serialization/types/AudioIsolationHistoryItemResponseModel.js +1 -0
  809. package/serialization/types/ChapterStatisticsResponse.d.ts +1 -0
  810. package/serialization/types/ChapterStatisticsResponse.js +1 -0
  811. package/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -0
  812. package/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -0
  813. package/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -0
  814. package/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -0
  815. package/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -0
  816. package/serialization/types/ConversationConfigClientOverrideInput.js +2 -0
  817. package/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -0
  818. package/serialization/types/ConversationConfigClientOverrideOutput.js +2 -0
  819. package/serialization/types/ConversationInitiationSource.d.ts +1 -1
  820. package/serialization/types/ConversationInitiationSource.js +1 -0
  821. package/serialization/types/CreateBearerAuthRequest.d.ts +11 -0
  822. package/serialization/types/CreateBearerAuthRequest.js +43 -0
  823. package/serialization/types/CreateOrderResponse.d.ts +10 -0
  824. package/serialization/types/CreateOrderResponse.js +42 -0
  825. package/serialization/types/CueOptionsRequest.d.ts +14 -0
  826. package/serialization/types/CueOptionsRequest.js +46 -0
  827. package/serialization/types/DeliverableInfo.d.ts +12 -0
  828. package/serialization/types/DeliverableInfo.js +44 -0
  829. package/serialization/types/DubOrderItemRequest.d.ts +16 -0
  830. package/serialization/types/DubOrderItemRequest.js +48 -0
  831. package/serialization/types/GetConversationResponseModel.d.ts +1 -0
  832. package/serialization/types/GetConversationResponseModel.js +1 -0
  833. package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +1 -0
  834. package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +1 -0
  835. package/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +1 -0
  836. package/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +1 -0
  837. package/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +1 -0
  838. package/serialization/types/InboundSipTrunkConfigRequestModel.js +1 -0
  839. package/serialization/types/ItemId.d.ts +7 -0
  840. package/serialization/types/ItemId.js +39 -0
  841. package/serialization/types/LanguageInfo.d.ts +10 -0
  842. package/serialization/types/LanguageInfo.js +42 -0
  843. package/serialization/types/LanguagePairInfo.d.ts +11 -0
  844. package/serialization/types/LanguagePairInfo.js +43 -0
  845. package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
  846. package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
  847. package/serialization/types/ListCustomerFacingAgentsParams.d.ts +9 -0
  848. package/serialization/types/ListCustomerFacingAgentsParams.js +41 -0
  849. package/serialization/types/ListOrdersResponse.d.ts +10 -0
  850. package/serialization/types/ListOrdersResponse.js +42 -0
  851. package/serialization/types/Llm.d.ts +1 -1
  852. package/serialization/types/Llm.js +2 -0
  853. package/serialization/types/LoadProcedureToolConfig.d.ts +10 -0
  854. package/serialization/types/LoadProcedureToolConfig.js +42 -0
  855. package/serialization/types/LoadProcedureToolErrorStatus.d.ts +7 -0
  856. package/serialization/types/LoadProcedureToolErrorStatus.js +39 -0
  857. package/serialization/types/MediaId.d.ts +7 -0
  858. package/serialization/types/MediaId.js +39 -0
  859. package/serialization/types/OAuth2ClientCredsResponse.d.ts +1 -0
  860. package/serialization/types/OAuth2ClientCredsResponse.js +1 -0
  861. package/serialization/types/OrderDeliverablesResponse.d.ts +10 -0
  862. package/serialization/types/OrderDeliverablesResponse.js +42 -0
  863. package/serialization/types/OrderId.d.ts +7 -0
  864. package/serialization/types/OrderId.js +39 -0
  865. package/serialization/types/OrderItemInfo.d.ts +14 -0
  866. package/serialization/types/OrderItemInfo.js +46 -0
  867. package/serialization/types/OrderItemKind.d.ts +7 -0
  868. package/serialization/types/OrderItemKind.js +39 -0
  869. package/serialization/types/OrderMediaResponse.d.ts +14 -0
  870. package/serialization/types/OrderMediaResponse.js +46 -0
  871. package/serialization/types/OrderRequestState.d.ts +7 -0
  872. package/serialization/types/OrderRequestState.js +39 -0
  873. package/serialization/types/OrderResponse.d.ts +21 -0
  874. package/serialization/types/OrderResponse.js +53 -0
  875. package/serialization/types/OrderState.d.ts +7 -0
  876. package/serialization/types/OrderState.js +39 -0
  877. package/serialization/types/OrderSummary.d.ts +16 -0
  878. package/serialization/types/OrderSummary.js +48 -0
  879. package/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +1 -0
  880. package/serialization/types/OutboundSipTrunkConfigRequestModel.js +1 -0
  881. package/serialization/types/PairedLanguagesResponse.d.ts +10 -0
  882. package/serialization/types/PairedLanguagesResponse.js +42 -0
  883. package/serialization/types/ProcedureAtVersion.d.ts +13 -0
  884. package/serialization/types/ProcedureAtVersion.js +45 -0
  885. package/serialization/types/ProcedureCompilerMode.d.ts +1 -1
  886. package/serialization/types/ProcedureCompilerMode.js +1 -1
  887. package/serialization/types/QuoteInfo.d.ts +9 -0
  888. package/serialization/types/QuoteInfo.js +41 -0
  889. package/serialization/types/RegisterMediaResponse.d.ts +10 -0
  890. package/serialization/types/RegisterMediaResponse.js +42 -0
  891. package/serialization/types/RemoveOrderItemResponse.d.ts +9 -0
  892. package/serialization/types/RemoveOrderItemResponse.js +41 -0
  893. package/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.d.ts +15 -0
  894. package/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.js +49 -0
  895. package/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.d.ts +15 -0
  896. package/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.js +49 -0
  897. package/serialization/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.d.ts +15 -0
  898. package/serialization/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.js +49 -0
  899. package/serialization/types/RttAudioPayload.d.ts +11 -0
  900. package/serialization/types/RttAudioPayload.js +43 -0
  901. package/serialization/types/RttEndOfStreamPayload.d.ts +9 -0
  902. package/serialization/types/RttEndOfStreamPayload.js +41 -0
  903. package/serialization/types/RttErrorPayload.d.ts +10 -0
  904. package/serialization/types/RttErrorPayload.js +42 -0
  905. package/serialization/types/RttFinalTranscriptPayload.d.ts +10 -0
  906. package/serialization/types/RttFinalTranscriptPayload.js +42 -0
  907. package/serialization/types/RttInputAudioChunkPayload.d.ts +10 -0
  908. package/serialization/types/RttInputAudioChunkPayload.js +42 -0
  909. package/serialization/types/RttInputFormatEnum.d.ts +7 -0
  910. package/serialization/types/RttInputFormatEnum.js +47 -0
  911. package/serialization/types/RttOutputFormatEnum.d.ts +7 -0
  912. package/serialization/types/RttOutputFormatEnum.js +51 -0
  913. package/serialization/types/RttPartialTranscriptPayload.d.ts +10 -0
  914. package/serialization/types/RttPartialTranscriptPayload.js +42 -0
  915. package/serialization/types/RttSessionStartedPayload.d.ts +11 -0
  916. package/serialization/types/RttSessionStartedPayload.js +43 -0
  917. package/serialization/types/RttStatusPayload.d.ts +10 -0
  918. package/serialization/types/RttStatusPayload.js +42 -0
  919. package/serialization/types/RttTranslationPayload.d.ts +10 -0
  920. package/serialization/types/RttTranslationPayload.js +42 -0
  921. package/serialization/types/SingleLanguagesResponse.d.ts +10 -0
  922. package/serialization/types/SingleLanguagesResponse.js +42 -0
  923. package/serialization/types/SlackBotAuthResponse.d.ts +13 -0
  924. package/serialization/types/SlackBotAuthResponse.js +45 -0
  925. package/serialization/types/SpeechEngineConversationInitiationClientDataConfig.d.ts +9 -0
  926. package/serialization/types/SpeechEngineConversationInitiationClientDataConfig.js +41 -0
  927. package/serialization/types/SpeechEngineResponse.d.ts +2 -0
  928. package/serialization/types/SpeechEngineResponse.js +2 -0
  929. package/serialization/types/SubmitOrderResponse.d.ts +13 -0
  930. package/serialization/types/SubmitOrderResponse.js +45 -0
  931. package/serialization/types/SubtitleOrderItemRequest.d.ts +16 -0
  932. package/serialization/types/SubtitleOrderItemRequest.js +48 -0
  933. package/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
  934. package/serialization/types/SystemToolConfigInputParams.js +2 -0
  935. package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
  936. package/serialization/types/SystemToolConfigOutputParams.js +2 -0
  937. package/serialization/types/UpdateBasicAuthRequest.d.ts +11 -0
  938. package/serialization/types/UpdateBasicAuthRequest.js +43 -0
  939. package/serialization/types/UpdateOAuth2ClientCredsRequest.d.ts +15 -0
  940. package/serialization/types/UpdateOAuth2ClientCredsRequest.js +47 -0
  941. package/serialization/types/UpdateOAuth2JwtRequest.d.ts +21 -0
  942. package/serialization/types/UpdateOAuth2JwtRequest.js +53 -0
  943. package/serialization/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +7 -0
  944. package/serialization/types/UpdateOAuth2JwtRequestAlgorithm.js +39 -0
  945. package/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +7 -0
  946. package/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.js +39 -0
  947. package/serialization/types/UpdateOrderRequest.d.ts +9 -0
  948. package/serialization/types/UpdateOrderRequest.js +41 -0
  949. package/serialization/types/UpdateOrderResponse.d.ts +9 -0
  950. package/serialization/types/UpdateOrderResponse.js +41 -0
  951. package/serialization/types/UpsertOrderItemRequest.d.ts +12 -0
  952. package/serialization/types/UpsertOrderItemRequest.js +44 -0
  953. package/serialization/types/UpsertOrderItemResponse.d.ts +12 -0
  954. package/serialization/types/UpsertOrderItemResponse.js +44 -0
  955. package/serialization/types/VoiceStatisticsResponseModel.d.ts +1 -0
  956. package/serialization/types/VoiceStatisticsResponseModel.js +1 -0
  957. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  958. package/serialization/types/WorkspaceResourceType.js +3 -0
  959. package/serialization/types/index.d.ts +58 -3
  960. package/serialization/types/index.js +58 -3
  961. package/version.d.ts +1 -1
  962. package/version.js +1 -1
  963. package/wrapper/speech-engine/SpeechEngineClientWrapper.js +1 -1
  964. package/api/types/ApiIntegrationDocResponse.d.ts +0 -8
  965. package/api/types/CreateSpeechEngineResponse.d.ts +0 -4
  966. package/api/types/ListResponseApiIntegrationDocResponse.d.ts +0 -5
  967. package/dist/api/types/ApiIntegrationDocResponse.d.ts +0 -8
  968. package/dist/api/types/CreateSpeechEngineResponse.d.ts +0 -4
  969. package/dist/api/types/ListResponseApiIntegrationDocResponse.d.ts +0 -5
  970. package/dist/serialization/types/ApiIntegrationDocResponse.d.ts +0 -11
  971. package/dist/serialization/types/CreateSpeechEngineResponse.d.ts +0 -9
  972. package/dist/serialization/types/ListResponseApiIntegrationDocResponse.d.ts +0 -12
  973. package/serialization/types/ApiIntegrationDocResponse.d.ts +0 -11
  974. package/serialization/types/CreateSpeechEngineResponse.d.ts +0 -9
  975. package/serialization/types/ListResponseApiIntegrationDocResponse.d.ts +0 -12
  976. package/serialization/types/ListResponseApiIntegrationDocResponse.js +0 -44
  977. /package/api/{types/ApiIntegrationDocResponse.js → resources/conversationalAi/resources/conversations/client/requests/ConversationsGetRequest.js} +0 -0
  978. /package/api/{types/CreateSpeechEngineResponse.js → resources/productions/resources/orders/client/requests/BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.js} +0 -0
  979. /package/api/{types/ListResponseApiIntegrationDocResponse.js → resources/productions/resources/orders/client/requests/OrdersListRequest.js} +0 -0
  980. /package/{dist/api/types/ApiIntegrationDocResponse.js → api/resources/productions/resources/orders/resources/items/client/requests/BodyUpsertOrderItemV1ProductionsOrdersOrderIdItemsPost.js} +0 -0
  981. /package/{dist/api/types/CreateSpeechEngineResponse.js → api/resources/productions/resources/orders/resources/media/client/requests/BodyRegisterMediaV1ProductionsOrdersOrderIdMediaPost.js} +0 -0
  982. /package/{dist/api/types/ListResponseApiIntegrationDocResponse.js → api/resources/v1RealtimeTranslation/types/ReceiveRttMessage.js} +0 -0
@@ -0,0 +1,398 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.OrdersClient = void 0;
47
+ const BaseClient_1 = require("../../../../../../BaseClient");
48
+ const core = __importStar(require("../../../../../../core"));
49
+ const headers_1 = require("../../../../../../core/headers");
50
+ const environments = __importStar(require("../../../../../../environments"));
51
+ const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
52
+ const errors = __importStar(require("../../../../../../errors/index"));
53
+ const serializers = __importStar(require("../../../../../../serialization/index"));
54
+ const ElevenLabs = __importStar(require("../../../../../index"));
55
+ const Client_1 = require("../resources/deliverables/client/Client");
56
+ const Client_2 = require("../resources/items/client/Client");
57
+ const Client_3 = require("../resources/languages/client/Client");
58
+ const Client_4 = require("../resources/media/client/Client");
59
+ class OrdersClient {
60
+ constructor(options = {}) {
61
+ this._options = (0, BaseClient_1.normalizeClientOptions)(options);
62
+ }
63
+ get media() {
64
+ var _a;
65
+ return ((_a = this._media) !== null && _a !== void 0 ? _a : (this._media = new Client_4.MediaClient(this._options)));
66
+ }
67
+ get items() {
68
+ var _a;
69
+ return ((_a = this._items) !== null && _a !== void 0 ? _a : (this._items = new Client_2.ItemsClient(this._options)));
70
+ }
71
+ get deliverables() {
72
+ var _a;
73
+ return ((_a = this._deliverables) !== null && _a !== void 0 ? _a : (this._deliverables = new Client_1.DeliverablesClient(this._options)));
74
+ }
75
+ get languages() {
76
+ var _a;
77
+ return ((_a = this._languages) !== null && _a !== void 0 ? _a : (this._languages = new Client_3.LanguagesClient(this._options)));
78
+ }
79
+ /**
80
+ * Lists Productions orders in the workspace. Supports filtering by status and date range, with pagination.
81
+ *
82
+ * @param {ElevenLabs.productions.OrdersListRequest} request
83
+ * @param {OrdersClient.RequestOptions} requestOptions - Request-specific configuration.
84
+ *
85
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
86
+ *
87
+ * @example
88
+ * await client.productions.orders.list({
89
+ * pageSize: 1,
90
+ * offset: 1,
91
+ * status: ["open"],
92
+ * startDate: new Date("2024-01-15T09:30:00.000Z"),
93
+ * endDate: new Date("2024-01-15T09:30:00.000Z")
94
+ * })
95
+ */
96
+ list(request = {}, requestOptions) {
97
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
98
+ }
99
+ __list() {
100
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
101
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
102
+ const { pageSize, offset, status, startDate, endDate } = request;
103
+ const _queryParams = {};
104
+ if (pageSize != null) {
105
+ _queryParams.page_size = pageSize.toString();
106
+ }
107
+ if (offset != null) {
108
+ _queryParams.offset = offset.toString();
109
+ }
110
+ if (status != null) {
111
+ if (Array.isArray(status)) {
112
+ _queryParams.status = status.map((item) => serializers.OrderRequestState.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
113
+ }
114
+ else {
115
+ _queryParams.status = serializers.OrderRequestState.jsonOrThrow(status, {
116
+ unrecognizedObjectKeys: "strip",
117
+ });
118
+ }
119
+ }
120
+ if (startDate != null) {
121
+ _queryParams.start_date = startDate.toISOString();
122
+ }
123
+ if (endDate != null) {
124
+ _queryParams.end_date = endDate.toISOString();
125
+ }
126
+ 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);
127
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
128
+ 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/productions/orders"),
129
+ method: "GET",
130
+ headers: _headers,
131
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
132
+ 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,
133
+ 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,
134
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
135
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
136
+ logging: this._options.logging,
137
+ });
138
+ if (_response.ok) {
139
+ return {
140
+ data: serializers.ListOrdersResponse.parseOrThrow(_response.body, {
141
+ unrecognizedObjectKeys: "passthrough",
142
+ allowUnrecognizedUnionMembers: true,
143
+ allowUnrecognizedEnumValues: true,
144
+ breadcrumbsPrefix: ["response"],
145
+ }),
146
+ rawResponse: _response.rawResponse,
147
+ };
148
+ }
149
+ if (_response.error.reason === "status-code") {
150
+ switch (_response.error.statusCode) {
151
+ case 422:
152
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
153
+ default:
154
+ throw new errors.ElevenLabsError({
155
+ statusCode: _response.error.statusCode,
156
+ body: _response.error.body,
157
+ rawResponse: _response.rawResponse,
158
+ });
159
+ }
160
+ }
161
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/productions/orders");
162
+ });
163
+ }
164
+ /**
165
+ * Creates a new Productions order in the workspace. The order starts in the open state and can be configured with items before submission.
166
+ *
167
+ * @param {OrdersClient.RequestOptions} requestOptions - Request-specific configuration.
168
+ *
169
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
170
+ *
171
+ * @example
172
+ * await client.productions.orders.create()
173
+ */
174
+ create(requestOptions) {
175
+ return core.HttpResponsePromise.fromPromise(this.__create(requestOptions));
176
+ }
177
+ __create(requestOptions) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
180
+ 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);
181
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
182
+ 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/productions/orders"),
183
+ method: "POST",
184
+ headers: _headers,
185
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
186
+ 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,
187
+ 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,
188
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
189
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
190
+ logging: this._options.logging,
191
+ });
192
+ if (_response.ok) {
193
+ return {
194
+ data: serializers.CreateOrderResponse.parseOrThrow(_response.body, {
195
+ unrecognizedObjectKeys: "passthrough",
196
+ allowUnrecognizedUnionMembers: true,
197
+ allowUnrecognizedEnumValues: true,
198
+ breadcrumbsPrefix: ["response"],
199
+ }),
200
+ rawResponse: _response.rawResponse,
201
+ };
202
+ }
203
+ if (_response.error.reason === "status-code") {
204
+ switch (_response.error.statusCode) {
205
+ case 422:
206
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
207
+ default:
208
+ throw new errors.ElevenLabsError({
209
+ statusCode: _response.error.statusCode,
210
+ body: _response.error.body,
211
+ rawResponse: _response.rawResponse,
212
+ });
213
+ }
214
+ }
215
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/productions/orders");
216
+ });
217
+ }
218
+ /**
219
+ * Retrieves full details for a Productions order.
220
+ *
221
+ * Quote and pricing information may not be available immediately; if you wish to see the quote before submission, you may need to poll the order details until it is ready.
222
+ *
223
+ * @param {ElevenLabs.OrderId} order_id - The ID of the order.
224
+ * @param {OrdersClient.RequestOptions} requestOptions - Request-specific configuration.
225
+ *
226
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
227
+ *
228
+ * @example
229
+ * await client.productions.orders.get("order_id")
230
+ */
231
+ get(order_id, requestOptions) {
232
+ return core.HttpResponsePromise.fromPromise(this.__get(order_id, requestOptions));
233
+ }
234
+ __get(order_id, requestOptions) {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
237
+ 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);
238
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
239
+ 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/productions/orders/${core.url.encodePathParam(serializers.OrderId.jsonOrThrow(order_id))}`),
240
+ method: "GET",
241
+ headers: _headers,
242
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
243
+ 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,
244
+ 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,
245
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
246
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
247
+ logging: this._options.logging,
248
+ });
249
+ if (_response.ok) {
250
+ return {
251
+ data: serializers.OrderResponse.parseOrThrow(_response.body, {
252
+ unrecognizedObjectKeys: "passthrough",
253
+ allowUnrecognizedUnionMembers: true,
254
+ allowUnrecognizedEnumValues: true,
255
+ breadcrumbsPrefix: ["response"],
256
+ }),
257
+ rawResponse: _response.rawResponse,
258
+ };
259
+ }
260
+ if (_response.error.reason === "status-code") {
261
+ switch (_response.error.statusCode) {
262
+ case 422:
263
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
264
+ default:
265
+ throw new errors.ElevenLabsError({
266
+ statusCode: _response.error.statusCode,
267
+ body: _response.error.body,
268
+ rawResponse: _response.rawResponse,
269
+ });
270
+ }
271
+ }
272
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/productions/orders/{order_id}");
273
+ });
274
+ }
275
+ /**
276
+ * Updates an open order.
277
+ *
278
+ * @param {ElevenLabs.OrderId} order_id - The ID of the order.
279
+ * @param {ElevenLabs.productions.BodyUpdateOrderV1ProductionsOrdersOrderIdPatch} request
280
+ * @param {OrdersClient.RequestOptions} requestOptions - Request-specific configuration.
281
+ *
282
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
283
+ *
284
+ * @example
285
+ * await client.productions.orders.update("order_id", {
286
+ * request: {
287
+ * name: "Spanish Dubs"
288
+ * }
289
+ * })
290
+ */
291
+ update(order_id, request, requestOptions) {
292
+ return core.HttpResponsePromise.fromPromise(this.__update(order_id, request, requestOptions));
293
+ }
294
+ __update(order_id, request, requestOptions) {
295
+ return __awaiter(this, void 0, void 0, function* () {
296
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
297
+ 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);
298
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
299
+ 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/productions/orders/${core.url.encodePathParam(serializers.OrderId.jsonOrThrow(order_id))}`),
300
+ method: "PATCH",
301
+ headers: _headers,
302
+ contentType: "application/json",
303
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
304
+ requestType: "json",
305
+ body: serializers.productions.BodyUpdateOrderV1ProductionsOrdersOrderIdPatch.jsonOrThrow(request, {
306
+ unrecognizedObjectKeys: "strip",
307
+ }),
308
+ 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,
309
+ 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,
310
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
311
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
312
+ logging: this._options.logging,
313
+ });
314
+ if (_response.ok) {
315
+ return {
316
+ data: serializers.UpdateOrderResponse.parseOrThrow(_response.body, {
317
+ unrecognizedObjectKeys: "passthrough",
318
+ allowUnrecognizedUnionMembers: true,
319
+ allowUnrecognizedEnumValues: true,
320
+ breadcrumbsPrefix: ["response"],
321
+ }),
322
+ rawResponse: _response.rawResponse,
323
+ };
324
+ }
325
+ if (_response.error.reason === "status-code") {
326
+ switch (_response.error.statusCode) {
327
+ case 422:
328
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
329
+ default:
330
+ throw new errors.ElevenLabsError({
331
+ statusCode: _response.error.statusCode,
332
+ body: _response.error.body,
333
+ rawResponse: _response.rawResponse,
334
+ });
335
+ }
336
+ }
337
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/productions/orders/{order_id}");
338
+ });
339
+ }
340
+ /**
341
+ * Submits an open order for processing. The order must have at least one item. Once submitted, items can no longer be modified.
342
+ *
343
+ * Upon submission, the workspace will be charged for the order. The quote is based on information extracted from the uploaded media, such as its duration. The quote may not be available immediately; if you wish to see the quote before submission, you may need to poll the order details until the quote is ready.
344
+ *
345
+ * @param {ElevenLabs.OrderId} order_id - The ID of the order.
346
+ * @param {OrdersClient.RequestOptions} requestOptions - Request-specific configuration.
347
+ *
348
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
349
+ *
350
+ * @example
351
+ * await client.productions.orders.submit("order_id")
352
+ */
353
+ submit(order_id, requestOptions) {
354
+ return core.HttpResponsePromise.fromPromise(this.__submit(order_id, requestOptions));
355
+ }
356
+ __submit(order_id, requestOptions) {
357
+ return __awaiter(this, void 0, void 0, function* () {
358
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
359
+ 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);
360
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
361
+ 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/productions/orders/${core.url.encodePathParam(serializers.OrderId.jsonOrThrow(order_id))}/submit`),
362
+ method: "POST",
363
+ headers: _headers,
364
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
365
+ 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,
366
+ 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,
367
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
368
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
369
+ logging: this._options.logging,
370
+ });
371
+ if (_response.ok) {
372
+ return {
373
+ data: serializers.SubmitOrderResponse.parseOrThrow(_response.body, {
374
+ unrecognizedObjectKeys: "passthrough",
375
+ allowUnrecognizedUnionMembers: true,
376
+ allowUnrecognizedEnumValues: true,
377
+ breadcrumbsPrefix: ["response"],
378
+ }),
379
+ rawResponse: _response.rawResponse,
380
+ };
381
+ }
382
+ if (_response.error.reason === "status-code") {
383
+ switch (_response.error.statusCode) {
384
+ case 422:
385
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
386
+ default:
387
+ throw new errors.ElevenLabsError({
388
+ statusCode: _response.error.statusCode,
389
+ body: _response.error.body,
390
+ rawResponse: _response.rawResponse,
391
+ });
392
+ }
393
+ }
394
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/productions/orders/{order_id}/submit");
395
+ });
396
+ }
397
+ }
398
+ exports.OrdersClient = OrdersClient;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ import type * as ElevenLabs from "../../../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * request: {
6
+ * name: "Spanish Dubs"
7
+ * }
8
+ * }
9
+ */
10
+ export interface BodyUpdateOrderV1ProductionsOrdersOrderIdPatch {
11
+ request: ElevenLabs.UpdateOrderRequest;
12
+ }
@@ -0,0 +1,23 @@
1
+ import type * as ElevenLabs from "../../../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * pageSize: 1,
6
+ * offset: 1,
7
+ * status: ["open"],
8
+ * startDate: new Date("2024-01-15T09:30:00.000Z"),
9
+ * endDate: new Date("2024-01-15T09:30:00.000Z")
10
+ * }
11
+ */
12
+ export interface OrdersListRequest {
13
+ /** Maximum number of orders to return per page. */
14
+ pageSize?: number;
15
+ /** Number of orders to skip for pagination. */
16
+ offset?: number;
17
+ /** Filter orders by one or more statuses. */
18
+ status?: ElevenLabs.OrderRequestState | ElevenLabs.OrderRequestState[];
19
+ /** Filter orders created on or after this date. */
20
+ startDate?: Date;
21
+ /** Filter orders created on or before this date. */
22
+ endDate?: Date;
23
+ }
@@ -0,0 +1,2 @@
1
+ export type { BodyUpdateOrderV1ProductionsOrdersOrderIdPatch } from "./BodyUpdateOrderV1ProductionsOrdersOrderIdPatch";
2
+ export type { OrdersListRequest } from "./OrdersListRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./resources";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
18
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,26 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient";
2
+ import { type NormalizedClientOptions } from "../../../../../../../../BaseClient";
3
+ import * as core from "../../../../../../../../core";
4
+ import * as ElevenLabs from "../../../../../../../index";
5
+ export declare namespace DeliverablesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class DeliverablesClient {
11
+ protected readonly _options: NormalizedClientOptions<DeliverablesClient.Options>;
12
+ constructor(options?: DeliverablesClient.Options);
13
+ /**
14
+ * Retrieves the delivered files for a completed order. Returns an empty list if the order is not yet completed.
15
+ *
16
+ * @param {ElevenLabs.OrderId} order_id - The ID of the order.
17
+ * @param {DeliverablesClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
20
+ *
21
+ * @example
22
+ * await client.productions.orders.deliverables.list("order_id")
23
+ */
24
+ list(order_id: ElevenLabs.OrderId, requestOptions?: DeliverablesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.OrderDeliverablesResponse>;
25
+ private __list;
26
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.DeliverablesClient = void 0;
47
+ const BaseClient_1 = require("../../../../../../../../BaseClient");
48
+ const core = __importStar(require("../../../../../../../../core"));
49
+ const headers_1 = require("../../../../../../../../core/headers");
50
+ const environments = __importStar(require("../../../../../../../../environments"));
51
+ const handleNonStatusCodeError_1 = require("../../../../../../../../errors/handleNonStatusCodeError");
52
+ const errors = __importStar(require("../../../../../../../../errors/index"));
53
+ const serializers = __importStar(require("../../../../../../../../serialization/index"));
54
+ const ElevenLabs = __importStar(require("../../../../../../../index"));
55
+ class DeliverablesClient {
56
+ constructor(options = {}) {
57
+ this._options = (0, BaseClient_1.normalizeClientOptions)(options);
58
+ }
59
+ /**
60
+ * Retrieves the delivered files for a completed order. Returns an empty list if the order is not yet completed.
61
+ *
62
+ * @param {ElevenLabs.OrderId} order_id - The ID of the order.
63
+ * @param {DeliverablesClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.productions.orders.deliverables.list("order_id")
69
+ */
70
+ list(order_id, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__list(order_id, requestOptions));
72
+ }
73
+ __list(order_id, requestOptions) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
76
+ 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);
77
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
78
+ 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/productions/orders/${core.url.encodePathParam(serializers.OrderId.jsonOrThrow(order_id))}/deliverables`),
79
+ method: "GET",
80
+ headers: _headers,
81
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
82
+ 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,
83
+ 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,
84
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
86
+ logging: this._options.logging,
87
+ });
88
+ if (_response.ok) {
89
+ return {
90
+ data: serializers.OrderDeliverablesResponse.parseOrThrow(_response.body, {
91
+ unrecognizedObjectKeys: "passthrough",
92
+ allowUnrecognizedUnionMembers: true,
93
+ allowUnrecognizedEnumValues: true,
94
+ breadcrumbsPrefix: ["response"],
95
+ }),
96
+ rawResponse: _response.rawResponse,
97
+ };
98
+ }
99
+ if (_response.error.reason === "status-code") {
100
+ switch (_response.error.statusCode) {
101
+ case 422:
102
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
103
+ default:
104
+ throw new errors.ElevenLabsError({
105
+ statusCode: _response.error.statusCode,
106
+ body: _response.error.body,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ }
111
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/productions/orders/{order_id}/deliverables");
112
+ });
113
+ }
114
+ }
115
+ exports.DeliverablesClient = DeliverablesClient;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });