@elevenlabs/elevenlabs-js 2.54.0 → 2.56.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 (621) hide show
  1. package/.fern/metadata.json +2 -2
  2. package/.fern/replay.lock +8 -2
  3. package/BaseClient.js +2 -2
  4. package/Client.d.ts +2 -2
  5. package/Client.js +4 -4
  6. package/README.md +17 -0
  7. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -2
  8. package/api/resources/conversationalAi/resources/agents/client/Client.js +6 -2
  9. package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +32 -0
  10. package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +121 -0
  11. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesPreviewMergeRequest.d.ts +13 -0
  12. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesPreviewMergeRequest.js +3 -0
  13. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +1 -0
  14. package/api/resources/index.d.ts +1 -0
  15. package/api/resources/index.js +1 -0
  16. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  17. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  18. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  19. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  20. package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
  21. package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
  22. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  23. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  24. package/api/resources/workspace/client/Client.d.ts +18 -1
  25. package/api/resources/workspace/client/Client.js +99 -0
  26. package/api/resources/workspace/client/index.d.ts +1 -1
  27. package/api/resources/workspace/client/index.js +15 -0
  28. package/api/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.d.ts +8 -0
  29. package/api/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.js +3 -0
  30. package/api/resources/workspace/client/requests/index.d.ts +1 -0
  31. package/api/resources/workspace/client/requests/index.js +2 -0
  32. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +4 -1
  33. package/api/types/AgentBranchSummary.d.ts +2 -0
  34. package/api/types/ApiIntegrationOAuth2AuthCodeResponse.d.ts +3 -6
  35. package/api/types/ApiIntegrationOAuth2CustomAppResponse.d.ts +3 -6
  36. package/api/types/AudioFilterId.d.ts +7 -0
  37. package/api/types/AudioFilterId.js +10 -0
  38. package/api/types/AuthConnectionStatus.d.ts +15 -0
  39. package/api/types/AuthConnectionStatus.js +18 -0
  40. package/api/types/BaseTurnConfig.d.ts +2 -0
  41. package/api/types/BasicAuthResponse.d.ts +3 -0
  42. package/api/types/BearerAuthResponse.d.ts +3 -0
  43. package/api/types/CaptionStyleModel.d.ts +4 -0
  44. package/api/types/CaptionStyleSectionAnimationModelEnterType.d.ts +3 -0
  45. package/api/types/CaptionStyleSectionAnimationModelEnterType.js +3 -0
  46. package/api/types/CaptionStyleSectionAnimationModelExitType.d.ts +3 -0
  47. package/api/types/CaptionStyleSectionAnimationModelExitType.js +3 -0
  48. package/api/types/CaptionStyleWordAnimationModelEnterType.d.ts +3 -0
  49. package/api/types/CaptionStyleWordAnimationModelEnterType.js +3 -0
  50. package/api/types/CaptionStyleWordAnimationModelExitType.d.ts +3 -0
  51. package/api/types/CaptionStyleWordAnimationModelExitType.js +3 -0
  52. package/api/types/CharacterAge.d.ts +6 -0
  53. package/api/types/CharacterAge.js +9 -0
  54. package/api/types/CharacterGender.d.ts +6 -0
  55. package/api/types/CharacterGender.js +9 -0
  56. package/api/types/CharacterMetadataResponseModel.d.ts +8 -0
  57. package/api/types/CharacterMetadataResponseModel.js +3 -0
  58. package/api/types/CharacterResponseModel.d.ts +6 -0
  59. package/api/types/CharacterResponseModel.js +3 -0
  60. package/api/types/ConvAiWebhooks.d.ts +1 -1
  61. package/api/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
  62. package/api/types/ConversationHistoryEvaluationCriteriaResultCommonModel.d.ts +3 -0
  63. package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -0
  64. package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -0
  65. package/api/types/ConversationHistoryTranscriptResponseModel.d.ts +2 -0
  66. package/api/types/ConversationReasoningModel.d.ts +4 -0
  67. package/api/types/ConversationReasoningModel.js +3 -0
  68. package/api/types/ConversationSummaryResponseModel.d.ts +2 -0
  69. package/api/types/ConversationUserResponseModel.d.ts +3 -0
  70. package/api/types/CreateAgentProcedureParams.d.ts +3 -0
  71. package/api/types/CreateAgentProcedureParams.js +3 -0
  72. package/api/types/CreateExotelPhoneNumberRequest.d.ts +2 -0
  73. package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  74. package/api/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  75. package/api/types/CriteriaScoringMode.d.ts +5 -0
  76. package/api/types/CriteriaScoringMode.js +8 -0
  77. package/api/types/CustomGuardrailConfig.d.ts +1 -1
  78. package/api/types/CustomHeaderAuthResponse.d.ts +3 -0
  79. package/api/types/DeleteAgentProcedureParams.d.ts +3 -0
  80. package/api/types/DeleteAgentProcedureParams.js +3 -0
  81. package/api/types/FrustratedConversationRef.d.ts +9 -0
  82. package/api/types/FrustratedConversationRef.js +3 -0
  83. package/api/types/FrustratedConversationRefOverallLabel.d.ts +6 -0
  84. package/api/types/FrustratedConversationRefOverallLabel.js +9 -0
  85. package/api/types/ListAgentProceduresParams.d.ts +3 -0
  86. package/api/types/ListAgentProceduresParams.js +3 -0
  87. package/api/types/ListAgentReferencesParams.d.ts +3 -0
  88. package/api/types/ListAgentReferencesParams.js +3 -0
  89. package/api/types/LiteralJsonSchemaPropertyType.d.ts +1 -7
  90. package/api/types/LiteralJsonSchemaPropertyType.js +0 -7
  91. package/api/types/LlmLiteralJsonSchemaPropertyType.d.ts +1 -7
  92. package/api/types/LlmLiteralJsonSchemaPropertyType.js +0 -7
  93. package/api/types/MergePreviewResponseModel.d.ts +33 -0
  94. package/api/types/MergePreviewResponseModel.js +3 -0
  95. package/api/types/MergePreviewResponseModelPhoneNumbersItem.d.ts +13 -0
  96. package/api/types/MergePreviewResponseModelPhoneNumbersItem.js +3 -0
  97. package/api/types/MtlsAuthResponse.d.ts +3 -0
  98. package/api/types/OAuth2ClientCredsResponse.d.ts +3 -0
  99. package/api/types/OAuth2JwtResponse.d.ts +3 -0
  100. package/api/types/PermissionType.d.ts +2 -0
  101. package/api/types/PermissionType.js +2 -0
  102. package/api/types/PhoneNumberTransfer.d.ts +2 -0
  103. package/api/types/PrivateKeyJwtResponse.d.ts +3 -0
  104. package/api/types/ProcedureAtVersionInput.d.ts +1 -1
  105. package/api/types/ProcedureAtVersionOutput.d.ts +1 -1
  106. package/api/types/PromptAgentApiModelInput.d.ts +2 -0
  107. package/api/types/PromptAgentApiModelOutput.d.ts +2 -0
  108. package/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +2 -0
  109. package/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +2 -0
  110. package/api/types/PromptEvaluationCriteria.d.ts +6 -0
  111. package/api/types/ScimGroupResponseModel.d.ts +8 -0
  112. package/api/types/ScimGroupResponseModel.js +3 -0
  113. package/api/types/ScopedAnalysisResult.d.ts +1 -0
  114. package/api/types/SentimentAggregate.d.ts +8 -0
  115. package/api/types/SentimentAggregate.js +3 -0
  116. package/api/types/SlackBotAuthResponse.d.ts +3 -0
  117. package/api/types/TurnConfig.d.ts +2 -0
  118. package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
  119. package/api/types/UpdateAgentProcedureParams.d.ts +3 -0
  120. package/api/types/UpdateAgentProcedureParams.js +3 -0
  121. package/api/types/UpdateBearerAuthRequest.d.ts +4 -0
  122. package/api/types/UpdateBearerAuthRequest.js +3 -0
  123. package/api/types/UrlSecretAuthResponse.d.ts +3 -0
  124. package/api/types/UuiTransferConfig.d.ts +18 -0
  125. package/api/types/UuiTransferConfig.js +3 -0
  126. package/api/types/UuiTransferConfigProtocolDiscriminatorMode.d.ts +6 -0
  127. package/api/types/UuiTransferConfigProtocolDiscriminatorMode.js +9 -0
  128. package/api/types/WebhookEventType.d.ts +2 -0
  129. package/api/types/WebhookEventType.js +2 -0
  130. package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
  131. package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
  132. package/api/types/WhatsAppAuthResponse.d.ts +3 -0
  133. package/api/types/WorkflowOverrideAgentNodeModelInput.d.ts +4 -4
  134. package/api/types/WorkflowOverrideAgentNodeModelOutput.d.ts +4 -4
  135. package/api/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
  136. package/api/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
  137. package/api/types/WorkspaceGroupPermission.d.ts +2 -0
  138. package/api/types/WorkspaceGroupPermission.js +2 -0
  139. package/api/types/WorkspaceGroupResponseModel.d.ts +1 -0
  140. package/api/types/index.d.ts +22 -1
  141. package/api/types/index.js +22 -1
  142. package/dist/BaseClient.js +2 -2
  143. package/dist/Client.d.ts +2 -2
  144. package/dist/Client.js +4 -4
  145. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -2
  146. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +6 -2
  147. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +32 -0
  148. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +121 -0
  149. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesPreviewMergeRequest.d.ts +13 -0
  150. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesPreviewMergeRequest.js +3 -0
  151. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +1 -0
  152. package/dist/api/resources/index.d.ts +1 -0
  153. package/dist/api/resources/index.js +1 -0
  154. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  155. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  156. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  157. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  158. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
  159. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
  160. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  161. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  162. package/dist/api/resources/workspace/client/Client.d.ts +18 -1
  163. package/dist/api/resources/workspace/client/Client.js +99 -0
  164. package/dist/api/resources/workspace/client/index.d.ts +1 -1
  165. package/dist/api/resources/workspace/client/index.js +15 -0
  166. package/dist/api/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.d.ts +8 -0
  167. package/dist/api/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.js +3 -0
  168. package/dist/api/resources/workspace/client/requests/index.d.ts +1 -0
  169. package/dist/api/resources/workspace/client/requests/index.js +2 -0
  170. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +4 -1
  171. package/dist/api/types/AgentBranchSummary.d.ts +2 -0
  172. package/dist/api/types/ApiIntegrationOAuth2AuthCodeResponse.d.ts +3 -6
  173. package/dist/api/types/ApiIntegrationOAuth2CustomAppResponse.d.ts +3 -6
  174. package/dist/api/types/AudioFilterId.d.ts +7 -0
  175. package/dist/api/types/AudioFilterId.js +10 -0
  176. package/dist/api/types/AuthConnectionStatus.d.ts +15 -0
  177. package/dist/api/types/AuthConnectionStatus.js +18 -0
  178. package/dist/api/types/BaseTurnConfig.d.ts +2 -0
  179. package/dist/api/types/BasicAuthResponse.d.ts +3 -0
  180. package/dist/api/types/BearerAuthResponse.d.ts +3 -0
  181. package/dist/api/types/CaptionStyleModel.d.ts +4 -0
  182. package/dist/api/types/CaptionStyleSectionAnimationModelEnterType.d.ts +3 -0
  183. package/dist/api/types/CaptionStyleSectionAnimationModelEnterType.js +3 -0
  184. package/dist/api/types/CaptionStyleSectionAnimationModelExitType.d.ts +3 -0
  185. package/dist/api/types/CaptionStyleSectionAnimationModelExitType.js +3 -0
  186. package/dist/api/types/CaptionStyleWordAnimationModelEnterType.d.ts +3 -0
  187. package/dist/api/types/CaptionStyleWordAnimationModelEnterType.js +3 -0
  188. package/dist/api/types/CaptionStyleWordAnimationModelExitType.d.ts +3 -0
  189. package/dist/api/types/CaptionStyleWordAnimationModelExitType.js +3 -0
  190. package/dist/api/types/CharacterAge.d.ts +6 -0
  191. package/dist/api/types/CharacterAge.js +9 -0
  192. package/dist/api/types/CharacterGender.d.ts +6 -0
  193. package/dist/api/types/CharacterGender.js +9 -0
  194. package/dist/api/types/CharacterMetadataResponseModel.d.ts +8 -0
  195. package/dist/api/types/CharacterMetadataResponseModel.js +3 -0
  196. package/dist/api/types/CharacterResponseModel.d.ts +6 -0
  197. package/dist/api/types/CharacterResponseModel.js +3 -0
  198. package/dist/api/types/ConvAiWebhooks.d.ts +1 -1
  199. package/dist/api/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
  200. package/dist/api/types/ConversationHistoryEvaluationCriteriaResultCommonModel.d.ts +3 -0
  201. package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -0
  202. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -0
  203. package/dist/api/types/ConversationHistoryTranscriptResponseModel.d.ts +2 -0
  204. package/dist/api/types/ConversationReasoningModel.d.ts +4 -0
  205. package/dist/api/types/ConversationReasoningModel.js +3 -0
  206. package/dist/api/types/ConversationSummaryResponseModel.d.ts +2 -0
  207. package/dist/api/types/ConversationUserResponseModel.d.ts +3 -0
  208. package/dist/api/types/CreateAgentProcedureParams.d.ts +3 -0
  209. package/dist/api/types/CreateAgentProcedureParams.js +3 -0
  210. package/dist/api/types/CreateExotelPhoneNumberRequest.d.ts +2 -0
  211. package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  212. package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  213. package/dist/api/types/CriteriaScoringMode.d.ts +5 -0
  214. package/dist/api/types/CriteriaScoringMode.js +8 -0
  215. package/dist/api/types/CustomGuardrailConfig.d.ts +1 -1
  216. package/dist/api/types/CustomHeaderAuthResponse.d.ts +3 -0
  217. package/dist/api/types/DeleteAgentProcedureParams.d.ts +3 -0
  218. package/dist/api/types/DeleteAgentProcedureParams.js +3 -0
  219. package/dist/api/types/FrustratedConversationRef.d.ts +9 -0
  220. package/dist/api/types/FrustratedConversationRef.js +3 -0
  221. package/dist/api/types/FrustratedConversationRefOverallLabel.d.ts +6 -0
  222. package/dist/api/types/FrustratedConversationRefOverallLabel.js +9 -0
  223. package/dist/api/types/ListAgentProceduresParams.d.ts +3 -0
  224. package/dist/api/types/ListAgentProceduresParams.js +3 -0
  225. package/dist/api/types/ListAgentReferencesParams.d.ts +3 -0
  226. package/dist/api/types/ListAgentReferencesParams.js +3 -0
  227. package/dist/api/types/LiteralJsonSchemaPropertyType.d.ts +1 -7
  228. package/dist/api/types/LiteralJsonSchemaPropertyType.js +0 -7
  229. package/dist/api/types/LlmLiteralJsonSchemaPropertyType.d.ts +1 -7
  230. package/dist/api/types/LlmLiteralJsonSchemaPropertyType.js +0 -7
  231. package/dist/api/types/MergePreviewResponseModel.d.ts +33 -0
  232. package/dist/api/types/MergePreviewResponseModel.js +3 -0
  233. package/dist/api/types/MergePreviewResponseModelPhoneNumbersItem.d.ts +13 -0
  234. package/dist/api/types/MergePreviewResponseModelPhoneNumbersItem.js +3 -0
  235. package/dist/api/types/MtlsAuthResponse.d.ts +3 -0
  236. package/dist/api/types/OAuth2ClientCredsResponse.d.ts +3 -0
  237. package/dist/api/types/OAuth2JwtResponse.d.ts +3 -0
  238. package/dist/api/types/PermissionType.d.ts +2 -0
  239. package/dist/api/types/PermissionType.js +2 -0
  240. package/dist/api/types/PhoneNumberTransfer.d.ts +2 -0
  241. package/dist/api/types/PrivateKeyJwtResponse.d.ts +3 -0
  242. package/dist/api/types/ProcedureAtVersionInput.d.ts +1 -1
  243. package/dist/api/types/ProcedureAtVersionOutput.d.ts +1 -1
  244. package/dist/api/types/PromptAgentApiModelInput.d.ts +2 -0
  245. package/dist/api/types/PromptAgentApiModelOutput.d.ts +2 -0
  246. package/dist/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +2 -0
  247. package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +2 -0
  248. package/dist/api/types/PromptEvaluationCriteria.d.ts +6 -0
  249. package/dist/api/types/ScimGroupResponseModel.d.ts +8 -0
  250. package/dist/api/types/ScimGroupResponseModel.js +3 -0
  251. package/dist/api/types/ScopedAnalysisResult.d.ts +1 -0
  252. package/dist/api/types/SentimentAggregate.d.ts +8 -0
  253. package/dist/api/types/SentimentAggregate.js +3 -0
  254. package/dist/api/types/SlackBotAuthResponse.d.ts +3 -0
  255. package/dist/api/types/TurnConfig.d.ts +2 -0
  256. package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
  257. package/dist/api/types/UpdateAgentProcedureParams.d.ts +3 -0
  258. package/dist/api/types/UpdateAgentProcedureParams.js +3 -0
  259. package/dist/api/types/UpdateBearerAuthRequest.d.ts +4 -0
  260. package/dist/api/types/UpdateBearerAuthRequest.js +3 -0
  261. package/dist/api/types/UrlSecretAuthResponse.d.ts +3 -0
  262. package/dist/api/types/UuiTransferConfig.d.ts +18 -0
  263. package/dist/api/types/UuiTransferConfig.js +3 -0
  264. package/dist/api/types/UuiTransferConfigProtocolDiscriminatorMode.d.ts +6 -0
  265. package/dist/api/types/UuiTransferConfigProtocolDiscriminatorMode.js +9 -0
  266. package/dist/api/types/WebhookEventType.d.ts +2 -0
  267. package/dist/api/types/WebhookEventType.js +2 -0
  268. package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
  269. package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
  270. package/dist/api/types/WhatsAppAuthResponse.d.ts +3 -0
  271. package/dist/api/types/WorkflowOverrideAgentNodeModelInput.d.ts +4 -4
  272. package/dist/api/types/WorkflowOverrideAgentNodeModelOutput.d.ts +4 -4
  273. package/dist/api/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
  274. package/dist/api/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
  275. package/dist/api/types/WorkspaceGroupPermission.d.ts +2 -0
  276. package/dist/api/types/WorkspaceGroupPermission.js +2 -0
  277. package/dist/api/types/WorkspaceGroupResponseModel.d.ts +1 -0
  278. package/dist/api/types/index.d.ts +22 -1
  279. package/dist/api/types/index.js +22 -1
  280. package/dist/serialization/resources/index.d.ts +1 -0
  281. package/dist/serialization/resources/index.js +1 -0
  282. package/dist/serialization/resources/workspace/client/index.d.ts +1 -0
  283. package/dist/serialization/resources/workspace/client/index.js +17 -0
  284. package/dist/serialization/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.d.ts +9 -0
  285. package/dist/serialization/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.js +41 -0
  286. package/dist/serialization/resources/workspace/client/requests/index.d.ts +1 -0
  287. package/dist/serialization/resources/workspace/client/requests/index.js +5 -0
  288. package/dist/serialization/resources/workspace/index.d.ts +1 -0
  289. package/dist/serialization/resources/workspace/index.js +1 -0
  290. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +5 -1
  291. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +2 -0
  292. package/dist/serialization/types/AgentBranchSummary.d.ts +1 -0
  293. package/dist/serialization/types/AgentBranchSummary.js +1 -0
  294. package/dist/serialization/types/ApiIntegrationOAuth2AuthCodeResponse.d.ts +4 -4
  295. package/dist/serialization/types/ApiIntegrationOAuth2AuthCodeResponse.js +4 -4
  296. package/dist/serialization/types/ApiIntegrationOAuth2CustomAppResponse.d.ts +4 -4
  297. package/dist/serialization/types/ApiIntegrationOAuth2CustomAppResponse.js +4 -4
  298. package/dist/serialization/types/AudioFilterId.d.ts +7 -0
  299. package/dist/serialization/types/{OAuthConnectionStatus.js → AudioFilterId.js} +2 -2
  300. package/dist/serialization/types/AuthConnectionStatus.d.ts +7 -0
  301. package/dist/serialization/types/AuthConnectionStatus.js +39 -0
  302. package/dist/serialization/types/BaseTurnConfig.d.ts +1 -0
  303. package/dist/serialization/types/BaseTurnConfig.js +1 -0
  304. package/dist/serialization/types/BasicAuthResponse.d.ts +4 -0
  305. package/dist/serialization/types/BasicAuthResponse.js +4 -0
  306. package/dist/serialization/types/BearerAuthResponse.d.ts +4 -0
  307. package/dist/serialization/types/BearerAuthResponse.js +4 -0
  308. package/dist/serialization/types/CaptionStyleModel.d.ts +4 -0
  309. package/dist/serialization/types/CaptionStyleModel.js +4 -0
  310. package/dist/serialization/types/CaptionStyleSectionAnimationModelEnterType.d.ts +1 -1
  311. package/dist/serialization/types/CaptionStyleSectionAnimationModelEnterType.js +11 -1
  312. package/dist/serialization/types/CaptionStyleSectionAnimationModelExitType.d.ts +1 -1
  313. package/dist/serialization/types/CaptionStyleSectionAnimationModelExitType.js +11 -1
  314. package/dist/serialization/types/CaptionStyleWordAnimationModelEnterType.d.ts +1 -1
  315. package/dist/serialization/types/CaptionStyleWordAnimationModelEnterType.js +11 -1
  316. package/dist/serialization/types/CaptionStyleWordAnimationModelExitType.d.ts +1 -1
  317. package/dist/serialization/types/CaptionStyleWordAnimationModelExitType.js +11 -1
  318. package/dist/serialization/types/CharacterAge.d.ts +7 -0
  319. package/{serialization/types/OAuthConnectionStatus.js → dist/serialization/types/CharacterAge.js} +2 -2
  320. package/dist/serialization/types/CharacterGender.d.ts +7 -0
  321. package/dist/serialization/types/CharacterGender.js +39 -0
  322. package/dist/serialization/types/CharacterMetadataResponseModel.d.ts +15 -0
  323. package/dist/serialization/types/CharacterMetadataResponseModel.js +47 -0
  324. package/dist/serialization/types/CharacterResponseModel.d.ts +12 -0
  325. package/dist/serialization/types/CharacterResponseModel.js +44 -0
  326. package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
  327. package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.js +1 -0
  328. package/dist/serialization/types/ConversationHistoryEvaluationCriteriaResultCommonModel.d.ts +4 -0
  329. package/dist/serialization/types/ConversationHistoryEvaluationCriteriaResultCommonModel.js +4 -0
  330. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -0
  331. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -0
  332. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -0
  333. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -0
  334. package/dist/serialization/types/ConversationHistoryTranscriptResponseModel.d.ts +3 -0
  335. package/dist/serialization/types/ConversationHistoryTranscriptResponseModel.js +3 -0
  336. package/dist/serialization/types/ConversationReasoningModel.d.ts +10 -0
  337. package/dist/serialization/types/ConversationReasoningModel.js +42 -0
  338. package/dist/serialization/types/ConversationSummaryResponseModel.d.ts +3 -0
  339. package/dist/serialization/types/ConversationSummaryResponseModel.js +3 -0
  340. package/dist/serialization/types/ConversationUserResponseModel.d.ts +4 -0
  341. package/dist/serialization/types/ConversationUserResponseModel.js +4 -0
  342. package/dist/serialization/types/CreateAgentProcedureParams.d.ts +9 -0
  343. package/dist/serialization/types/CreateAgentProcedureParams.js +41 -0
  344. package/dist/serialization/types/CreateExotelPhoneNumberRequest.d.ts +1 -0
  345. package/dist/serialization/types/CreateExotelPhoneNumberRequest.js +1 -0
  346. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
  347. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
  348. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +1 -0
  349. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +1 -0
  350. package/dist/serialization/types/CriteriaScoringMode.d.ts +7 -0
  351. package/dist/serialization/types/CriteriaScoringMode.js +39 -0
  352. package/dist/serialization/types/CustomHeaderAuthResponse.d.ts +4 -0
  353. package/dist/serialization/types/CustomHeaderAuthResponse.js +4 -0
  354. package/dist/serialization/types/DeleteAgentProcedureParams.d.ts +9 -0
  355. package/dist/serialization/types/DeleteAgentProcedureParams.js +41 -0
  356. package/dist/serialization/types/FrustratedConversationRef.d.ts +15 -0
  357. package/dist/serialization/types/FrustratedConversationRef.js +47 -0
  358. package/dist/serialization/types/FrustratedConversationRefOverallLabel.d.ts +7 -0
  359. package/dist/serialization/types/FrustratedConversationRefOverallLabel.js +39 -0
  360. package/dist/serialization/types/ListAgentProceduresParams.d.ts +9 -0
  361. package/dist/serialization/types/ListAgentProceduresParams.js +41 -0
  362. package/dist/serialization/types/ListAgentReferencesParams.d.ts +9 -0
  363. package/dist/serialization/types/ListAgentReferencesParams.js +41 -0
  364. package/dist/serialization/types/LiteralJsonSchemaPropertyType.d.ts +1 -1
  365. package/dist/serialization/types/LiteralJsonSchemaPropertyType.js +7 -1
  366. package/dist/serialization/types/LlmLiteralJsonSchemaPropertyType.d.ts +1 -1
  367. package/dist/serialization/types/LlmLiteralJsonSchemaPropertyType.js +7 -1
  368. package/dist/serialization/types/MergePreviewResponseModel.d.ts +30 -0
  369. package/dist/serialization/types/MergePreviewResponseModel.js +62 -0
  370. package/dist/serialization/types/MergePreviewResponseModelPhoneNumbersItem.d.ts +19 -0
  371. package/dist/serialization/types/MergePreviewResponseModelPhoneNumbersItem.js +51 -0
  372. package/dist/serialization/types/MtlsAuthResponse.d.ts +4 -0
  373. package/dist/serialization/types/MtlsAuthResponse.js +4 -0
  374. package/dist/serialization/types/OAuth2ClientCredsResponse.d.ts +4 -0
  375. package/dist/serialization/types/OAuth2ClientCredsResponse.js +4 -0
  376. package/dist/serialization/types/OAuth2JwtResponse.d.ts +4 -0
  377. package/dist/serialization/types/OAuth2JwtResponse.js +4 -0
  378. package/dist/serialization/types/PermissionType.d.ts +1 -1
  379. package/dist/serialization/types/PermissionType.js +2 -0
  380. package/dist/serialization/types/PhoneNumberTransfer.d.ts +2 -0
  381. package/dist/serialization/types/PhoneNumberTransfer.js +2 -0
  382. package/dist/serialization/types/PrivateKeyJwtResponse.d.ts +4 -0
  383. package/dist/serialization/types/PrivateKeyJwtResponse.js +4 -0
  384. package/dist/serialization/types/ProcedureAtVersionInput.d.ts +1 -1
  385. package/dist/serialization/types/ProcedureAtVersionInput.js +1 -1
  386. package/dist/serialization/types/ProcedureAtVersionOutput.d.ts +1 -1
  387. package/dist/serialization/types/ProcedureAtVersionOutput.js +1 -1
  388. package/dist/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
  389. package/dist/serialization/types/PromptAgentApiModelInput.js +1 -0
  390. package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
  391. package/dist/serialization/types/PromptAgentApiModelOutput.js +1 -0
  392. package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -0
  393. package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInput.js +1 -0
  394. package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -0
  395. package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.js +1 -0
  396. package/dist/serialization/types/PromptEvaluationCriteria.d.ts +4 -0
  397. package/dist/serialization/types/PromptEvaluationCriteria.js +4 -0
  398. package/dist/serialization/types/ScimGroupResponseModel.d.ts +14 -0
  399. package/dist/serialization/types/ScimGroupResponseModel.js +46 -0
  400. package/dist/serialization/types/ScopedAnalysisResult.d.ts +1 -0
  401. package/dist/serialization/types/ScopedAnalysisResult.js +1 -0
  402. package/dist/serialization/types/SentimentAggregate.d.ts +14 -0
  403. package/dist/serialization/types/SentimentAggregate.js +46 -0
  404. package/dist/serialization/types/SlackBotAuthResponse.d.ts +4 -0
  405. package/dist/serialization/types/SlackBotAuthResponse.js +4 -0
  406. package/dist/serialization/types/TurnConfig.d.ts +1 -0
  407. package/dist/serialization/types/TurnConfig.js +1 -0
  408. package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
  409. package/dist/serialization/types/TurnConfigWorkflowOverride.js +1 -0
  410. package/dist/serialization/types/UpdateAgentProcedureParams.d.ts +9 -0
  411. package/dist/serialization/types/UpdateAgentProcedureParams.js +41 -0
  412. package/dist/serialization/types/UpdateBearerAuthRequest.d.ts +10 -0
  413. package/dist/serialization/types/UpdateBearerAuthRequest.js +42 -0
  414. package/dist/serialization/types/UrlSecretAuthResponse.d.ts +4 -0
  415. package/dist/serialization/types/UrlSecretAuthResponse.js +4 -0
  416. package/dist/serialization/types/UuiTransferConfig.d.ts +12 -0
  417. package/dist/serialization/types/UuiTransferConfig.js +44 -0
  418. package/dist/serialization/types/UuiTransferConfigProtocolDiscriminatorMode.d.ts +7 -0
  419. package/dist/serialization/types/UuiTransferConfigProtocolDiscriminatorMode.js +39 -0
  420. package/dist/serialization/types/WebhookEventType.d.ts +1 -1
  421. package/dist/serialization/types/WebhookEventType.js +7 -1
  422. package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
  423. package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
  424. package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
  425. package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
  426. package/dist/serialization/types/WhatsAppAuthResponse.d.ts +4 -0
  427. package/dist/serialization/types/WhatsAppAuthResponse.js +4 -0
  428. package/dist/serialization/types/WorkflowOverrideAgentNodeModelInput.d.ts +2 -2
  429. package/dist/serialization/types/WorkflowOverrideAgentNodeModelInput.js +2 -2
  430. package/dist/serialization/types/WorkflowOverrideAgentNodeModelOutput.d.ts +2 -2
  431. package/dist/serialization/types/WorkflowOverrideAgentNodeModelOutput.js +2 -2
  432. package/dist/serialization/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
  433. package/dist/serialization/types/WorkflowPhoneNumberNodeModelInput.js +2 -0
  434. package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
  435. package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutput.js +2 -0
  436. package/dist/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
  437. package/dist/serialization/types/WorkspaceGroupPermission.js +2 -0
  438. package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +2 -0
  439. package/dist/serialization/types/WorkspaceGroupResponseModel.js +2 -0
  440. package/dist/serialization/types/index.d.ts +22 -1
  441. package/dist/serialization/types/index.js +22 -1
  442. package/dist/version.d.ts +1 -1
  443. package/dist/version.js +1 -1
  444. package/dist/wrapper/speech-engine/SpeechEngineResource.js +13 -3
  445. package/dist/wrapper/speech-engine/SpeechEngineServer.js +34 -20
  446. package/dist/wrapper/speech-engine/types.d.ts +11 -0
  447. package/package.json +1 -1
  448. package/reference.md +219 -2
  449. package/serialization/resources/index.d.ts +1 -0
  450. package/serialization/resources/index.js +1 -0
  451. package/serialization/resources/workspace/client/index.d.ts +1 -0
  452. package/serialization/resources/workspace/client/index.js +17 -0
  453. package/serialization/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.d.ts +9 -0
  454. package/serialization/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.js +41 -0
  455. package/serialization/resources/workspace/client/requests/index.d.ts +1 -0
  456. package/serialization/resources/workspace/client/requests/index.js +5 -0
  457. package/serialization/resources/workspace/index.d.ts +1 -0
  458. package/serialization/resources/workspace/index.js +1 -0
  459. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +5 -1
  460. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +2 -0
  461. package/serialization/types/AgentBranchSummary.d.ts +1 -0
  462. package/serialization/types/AgentBranchSummary.js +1 -0
  463. package/serialization/types/ApiIntegrationOAuth2AuthCodeResponse.d.ts +4 -4
  464. package/serialization/types/ApiIntegrationOAuth2AuthCodeResponse.js +4 -4
  465. package/serialization/types/ApiIntegrationOAuth2CustomAppResponse.d.ts +4 -4
  466. package/serialization/types/ApiIntegrationOAuth2CustomAppResponse.js +4 -4
  467. package/serialization/types/AudioFilterId.d.ts +7 -0
  468. package/serialization/types/AudioFilterId.js +39 -0
  469. package/serialization/types/AuthConnectionStatus.d.ts +7 -0
  470. package/serialization/types/AuthConnectionStatus.js +39 -0
  471. package/serialization/types/BaseTurnConfig.d.ts +1 -0
  472. package/serialization/types/BaseTurnConfig.js +1 -0
  473. package/serialization/types/BasicAuthResponse.d.ts +4 -0
  474. package/serialization/types/BasicAuthResponse.js +4 -0
  475. package/serialization/types/BearerAuthResponse.d.ts +4 -0
  476. package/serialization/types/BearerAuthResponse.js +4 -0
  477. package/serialization/types/CaptionStyleModel.d.ts +4 -0
  478. package/serialization/types/CaptionStyleModel.js +4 -0
  479. package/serialization/types/CaptionStyleSectionAnimationModelEnterType.d.ts +1 -1
  480. package/serialization/types/CaptionStyleSectionAnimationModelEnterType.js +11 -1
  481. package/serialization/types/CaptionStyleSectionAnimationModelExitType.d.ts +1 -1
  482. package/serialization/types/CaptionStyleSectionAnimationModelExitType.js +11 -1
  483. package/serialization/types/CaptionStyleWordAnimationModelEnterType.d.ts +1 -1
  484. package/serialization/types/CaptionStyleWordAnimationModelEnterType.js +11 -1
  485. package/serialization/types/CaptionStyleWordAnimationModelExitType.d.ts +1 -1
  486. package/serialization/types/CaptionStyleWordAnimationModelExitType.js +11 -1
  487. package/serialization/types/CharacterAge.d.ts +7 -0
  488. package/serialization/types/CharacterAge.js +39 -0
  489. package/serialization/types/CharacterGender.d.ts +7 -0
  490. package/serialization/types/CharacterGender.js +39 -0
  491. package/serialization/types/CharacterMetadataResponseModel.d.ts +15 -0
  492. package/serialization/types/CharacterMetadataResponseModel.js +47 -0
  493. package/serialization/types/CharacterResponseModel.d.ts +12 -0
  494. package/serialization/types/CharacterResponseModel.js +44 -0
  495. package/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
  496. package/serialization/types/ConversationHistoryAnalysisCommonModel.js +1 -0
  497. package/serialization/types/ConversationHistoryEvaluationCriteriaResultCommonModel.d.ts +4 -0
  498. package/serialization/types/ConversationHistoryEvaluationCriteriaResultCommonModel.js +4 -0
  499. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -0
  500. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -0
  501. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -0
  502. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -0
  503. package/serialization/types/ConversationHistoryTranscriptResponseModel.d.ts +3 -0
  504. package/serialization/types/ConversationHistoryTranscriptResponseModel.js +3 -0
  505. package/serialization/types/ConversationReasoningModel.d.ts +10 -0
  506. package/serialization/types/ConversationReasoningModel.js +42 -0
  507. package/serialization/types/ConversationSummaryResponseModel.d.ts +3 -0
  508. package/serialization/types/ConversationSummaryResponseModel.js +3 -0
  509. package/serialization/types/ConversationUserResponseModel.d.ts +4 -0
  510. package/serialization/types/ConversationUserResponseModel.js +4 -0
  511. package/serialization/types/CreateAgentProcedureParams.d.ts +9 -0
  512. package/serialization/types/CreateAgentProcedureParams.js +41 -0
  513. package/serialization/types/CreateExotelPhoneNumberRequest.d.ts +1 -0
  514. package/serialization/types/CreateExotelPhoneNumberRequest.js +1 -0
  515. package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
  516. package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
  517. package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +1 -0
  518. package/serialization/types/CreateTwilioPhoneNumberRequest.js +1 -0
  519. package/serialization/types/CriteriaScoringMode.d.ts +7 -0
  520. package/serialization/types/CriteriaScoringMode.js +39 -0
  521. package/serialization/types/CustomHeaderAuthResponse.d.ts +4 -0
  522. package/serialization/types/CustomHeaderAuthResponse.js +4 -0
  523. package/serialization/types/DeleteAgentProcedureParams.d.ts +9 -0
  524. package/serialization/types/DeleteAgentProcedureParams.js +41 -0
  525. package/serialization/types/FrustratedConversationRef.d.ts +15 -0
  526. package/serialization/types/FrustratedConversationRef.js +47 -0
  527. package/serialization/types/FrustratedConversationRefOverallLabel.d.ts +7 -0
  528. package/serialization/types/FrustratedConversationRefOverallLabel.js +39 -0
  529. package/serialization/types/ListAgentProceduresParams.d.ts +9 -0
  530. package/serialization/types/ListAgentProceduresParams.js +41 -0
  531. package/serialization/types/ListAgentReferencesParams.d.ts +9 -0
  532. package/serialization/types/ListAgentReferencesParams.js +41 -0
  533. package/serialization/types/LiteralJsonSchemaPropertyType.d.ts +1 -1
  534. package/serialization/types/LiteralJsonSchemaPropertyType.js +7 -1
  535. package/serialization/types/LlmLiteralJsonSchemaPropertyType.d.ts +1 -1
  536. package/serialization/types/LlmLiteralJsonSchemaPropertyType.js +7 -1
  537. package/serialization/types/MergePreviewResponseModel.d.ts +30 -0
  538. package/serialization/types/MergePreviewResponseModel.js +62 -0
  539. package/serialization/types/MergePreviewResponseModelPhoneNumbersItem.d.ts +19 -0
  540. package/serialization/types/MergePreviewResponseModelPhoneNumbersItem.js +51 -0
  541. package/serialization/types/MtlsAuthResponse.d.ts +4 -0
  542. package/serialization/types/MtlsAuthResponse.js +4 -0
  543. package/serialization/types/OAuth2ClientCredsResponse.d.ts +4 -0
  544. package/serialization/types/OAuth2ClientCredsResponse.js +4 -0
  545. package/serialization/types/OAuth2JwtResponse.d.ts +4 -0
  546. package/serialization/types/OAuth2JwtResponse.js +4 -0
  547. package/serialization/types/PermissionType.d.ts +1 -1
  548. package/serialization/types/PermissionType.js +2 -0
  549. package/serialization/types/PhoneNumberTransfer.d.ts +2 -0
  550. package/serialization/types/PhoneNumberTransfer.js +2 -0
  551. package/serialization/types/PrivateKeyJwtResponse.d.ts +4 -0
  552. package/serialization/types/PrivateKeyJwtResponse.js +4 -0
  553. package/serialization/types/ProcedureAtVersionInput.d.ts +1 -1
  554. package/serialization/types/ProcedureAtVersionInput.js +1 -1
  555. package/serialization/types/ProcedureAtVersionOutput.d.ts +1 -1
  556. package/serialization/types/ProcedureAtVersionOutput.js +1 -1
  557. package/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
  558. package/serialization/types/PromptAgentApiModelInput.js +1 -0
  559. package/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
  560. package/serialization/types/PromptAgentApiModelOutput.js +1 -0
  561. package/serialization/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -0
  562. package/serialization/types/PromptAgentApiModelWorkflowOverrideInput.js +1 -0
  563. package/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -0
  564. package/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.js +1 -0
  565. package/serialization/types/PromptEvaluationCriteria.d.ts +4 -0
  566. package/serialization/types/PromptEvaluationCriteria.js +4 -0
  567. package/serialization/types/ScimGroupResponseModel.d.ts +14 -0
  568. package/serialization/types/ScimGroupResponseModel.js +46 -0
  569. package/serialization/types/ScopedAnalysisResult.d.ts +1 -0
  570. package/serialization/types/ScopedAnalysisResult.js +1 -0
  571. package/serialization/types/SentimentAggregate.d.ts +14 -0
  572. package/serialization/types/SentimentAggregate.js +46 -0
  573. package/serialization/types/SlackBotAuthResponse.d.ts +4 -0
  574. package/serialization/types/SlackBotAuthResponse.js +4 -0
  575. package/serialization/types/TurnConfig.d.ts +1 -0
  576. package/serialization/types/TurnConfig.js +1 -0
  577. package/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
  578. package/serialization/types/TurnConfigWorkflowOverride.js +1 -0
  579. package/serialization/types/UpdateAgentProcedureParams.d.ts +9 -0
  580. package/serialization/types/UpdateAgentProcedureParams.js +41 -0
  581. package/serialization/types/UpdateBearerAuthRequest.d.ts +10 -0
  582. package/serialization/types/UpdateBearerAuthRequest.js +42 -0
  583. package/serialization/types/UrlSecretAuthResponse.d.ts +4 -0
  584. package/serialization/types/UrlSecretAuthResponse.js +4 -0
  585. package/serialization/types/UuiTransferConfig.d.ts +12 -0
  586. package/serialization/types/UuiTransferConfig.js +44 -0
  587. package/serialization/types/UuiTransferConfigProtocolDiscriminatorMode.d.ts +7 -0
  588. package/serialization/types/UuiTransferConfigProtocolDiscriminatorMode.js +39 -0
  589. package/serialization/types/WebhookEventType.d.ts +1 -1
  590. package/serialization/types/WebhookEventType.js +7 -1
  591. package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
  592. package/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
  593. package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
  594. package/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
  595. package/serialization/types/WhatsAppAuthResponse.d.ts +4 -0
  596. package/serialization/types/WhatsAppAuthResponse.js +4 -0
  597. package/serialization/types/WorkflowOverrideAgentNodeModelInput.d.ts +2 -2
  598. package/serialization/types/WorkflowOverrideAgentNodeModelInput.js +2 -2
  599. package/serialization/types/WorkflowOverrideAgentNodeModelOutput.d.ts +2 -2
  600. package/serialization/types/WorkflowOverrideAgentNodeModelOutput.js +2 -2
  601. package/serialization/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
  602. package/serialization/types/WorkflowPhoneNumberNodeModelInput.js +2 -0
  603. package/serialization/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
  604. package/serialization/types/WorkflowPhoneNumberNodeModelOutput.js +2 -0
  605. package/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
  606. package/serialization/types/WorkspaceGroupPermission.js +2 -0
  607. package/serialization/types/WorkspaceGroupResponseModel.d.ts +2 -0
  608. package/serialization/types/WorkspaceGroupResponseModel.js +2 -0
  609. package/serialization/types/index.d.ts +22 -1
  610. package/serialization/types/index.js +22 -1
  611. package/version.d.ts +1 -1
  612. package/version.js +1 -1
  613. package/wrapper/speech-engine/SpeechEngineResource.js +13 -3
  614. package/wrapper/speech-engine/SpeechEngineServer.js +34 -20
  615. package/wrapper/speech-engine/types.d.ts +11 -0
  616. package/api/types/OAuthConnectionStatus.d.ts +0 -6
  617. package/api/types/OAuthConnectionStatus.js +0 -9
  618. package/dist/api/types/OAuthConnectionStatus.d.ts +0 -6
  619. package/dist/api/types/OAuthConnectionStatus.js +0 -9
  620. package/dist/serialization/types/OAuthConnectionStatus.d.ts +0 -7
  621. package/serialization/types/OAuthConnectionStatus.d.ts +0 -7
@@ -36,6 +36,6 @@
36
36
  }
37
37
  }
38
38
  },
39
- "originGitCommit": "6bc810dbca1bc788da353b26d407710b915b9681",
40
- "sdkVersion": "2.54.0"
39
+ "originGitCommit": "789b771c055162f2d9cdaf951a122228d9cac9b5",
40
+ "sdkVersion": "2.55.0"
41
41
  }
package/.fern/replay.lock CHANGED
@@ -36,14 +36,20 @@ generations:
36
36
  cli_version: unknown
37
37
  generator_versions:
38
38
  fernapi/fern-typescript-sdk: 3.57.1
39
- current_generation: d4c3cd6446a5ea75f7a099685fb76dd3e1bb6e7a
39
+ - commit_sha: db6cac60a3dbf75908dc7750a534b4562274be7b
40
+ tree_hash: f563e7cddb9a82a0b01fad1a6e123e23ec20f310
41
+ timestamp: 2026-06-30T07:44:36.446Z
42
+ cli_version: unknown
43
+ generator_versions:
44
+ fernapi/fern-typescript-sdk: 3.57.1
45
+ current_generation: db6cac60a3dbf75908dc7750a534b4562274be7b
40
46
  patches:
41
47
  - id: patch-f50f1558
42
48
  content_hash: sha256:5a09c3db02b795ab544221e13bf2681e7f9bb43c07e8cd96ac063a405dc3a2c6
43
49
  original_commit: f50f1558f741e331dd3949ded57771c012ef27ab
44
50
  original_message: Add missing methods and test (#399)
45
51
  original_author: Paul Asjes <paul.asjes@elevenlabs.io>
46
- base_generation: d4c3cd6446a5ea75f7a099685fb76dd3e1bb6e7a
52
+ base_generation: db6cac60a3dbf75908dc7750a534b4562274be7b
47
53
  files:
48
54
  - tests/unit/wrapper/music.test.ts
49
55
  patch_content: |
package/BaseClient.js CHANGED
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
41
41
  const headers = (0, headers_1.mergeHeaders)({
42
42
  "X-Fern-Language": "JavaScript",
43
43
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
44
- "X-Fern-SDK-Version": "2.54.0",
45
- "User-Agent": "@elevenlabs/elevenlabs-js/2.54.0",
44
+ "X-Fern-SDK-Version": "2.56.0",
45
+ "User-Agent": "@elevenlabs/elevenlabs-js/2.56.0",
46
46
  "X-Fern-Runtime": core.RUNTIME.type,
47
47
  "X-Fern-Runtime-Version": core.RUNTIME.version,
48
48
  "xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
package/Client.d.ts CHANGED
@@ -53,6 +53,7 @@ export declare class ElevenLabsClient {
53
53
  protected _audioNative: AudioNativeClient | undefined;
54
54
  protected _usage: UsageClient | undefined;
55
55
  protected _pronunciationDictionaries: PronunciationDictionariesClient | undefined;
56
+ protected _workspace: WorkspaceClient | undefined;
56
57
  protected _serviceAccounts: ServiceAccountsClient | undefined;
57
58
  protected _webhooks: WebhooksClient | undefined;
58
59
  protected _speechToText: SpeechToTextClient | undefined;
@@ -62,7 +63,6 @@ export declare class ElevenLabsClient {
62
63
  protected _environmentVariables: EnvironmentVariablesClient | undefined;
63
64
  protected _productions: ProductionsClient | undefined;
64
65
  protected _tokens: TokensClient | undefined;
65
- protected _workspace: WorkspaceClient | undefined;
66
66
  protected _workspaces: WorkspacesClient | undefined;
67
67
  constructor(options?: ElevenLabsClient.Options);
68
68
  get history(): HistoryClient;
@@ -82,6 +82,7 @@ export declare class ElevenLabsClient {
82
82
  get audioNative(): AudioNativeClient;
83
83
  get usage(): UsageClient;
84
84
  get pronunciationDictionaries(): PronunciationDictionariesClient;
85
+ get workspace(): WorkspaceClient;
85
86
  get serviceAccounts(): ServiceAccountsClient;
86
87
  get webhooks(): WebhooksClient;
87
88
  get speechToText(): SpeechToTextClient;
@@ -91,7 +92,6 @@ export declare class ElevenLabsClient {
91
92
  get environmentVariables(): EnvironmentVariablesClient;
92
93
  get productions(): ProductionsClient;
93
94
  get tokens(): TokensClient;
94
- get workspace(): WorkspaceClient;
95
95
  get workspaces(): WorkspacesClient;
96
96
  /**
97
97
  * Add a generated voice to the voice library.
package/Client.js CHANGED
@@ -150,6 +150,10 @@ class ElevenLabsClient {
150
150
  var _a;
151
151
  return ((_a = this._pronunciationDictionaries) !== null && _a !== void 0 ? _a : (this._pronunciationDictionaries = new Client_11.PronunciationDictionariesClient(this._options)));
152
152
  }
153
+ get workspace() {
154
+ var _a;
155
+ return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_27.WorkspaceClient(this._options)));
156
+ }
153
157
  get serviceAccounts() {
154
158
  var _a;
155
159
  return ((_a = this._serviceAccounts) !== null && _a !== void 0 ? _a : (this._serviceAccounts = new Client_13.ServiceAccountsClient(this._options)));
@@ -186,10 +190,6 @@ class ElevenLabsClient {
186
190
  var _a;
187
191
  return ((_a = this._tokens) !== null && _a !== void 0 ? _a : (this._tokens = new Client_22.TokensClient(this._options)));
188
192
  }
189
- get workspace() {
190
- var _a;
191
- return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_27.WorkspaceClient(this._options)));
192
- }
193
193
  get workspaces() {
194
194
  var _a;
195
195
  return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_28.WorkspacesClient(this._options)));
package/README.md CHANGED
@@ -178,6 +178,23 @@ server.start();
178
178
 
179
179
  Both `SpeechEngine.Server` and `speechEngine.attach()` automatically verify the `X-Elevenlabs-Speech-Engine-Authorization` header on every incoming connection, rejecting any requests that were not signed by ElevenLabs. The API key is read from `apiKey` in the options or the `ELEVENLABS_API_KEY` environment variable.
180
180
 
181
+ #### Disabling authentication
182
+
183
+ If you're running behind an infrastructure layer that already restricts incoming traffic to ElevenLabs (typically an IP allowlist scoped to [ElevenLabs' egress ranges](https://elevenlabs.io/docs/overview/capabilities/speech-engine#ip-allowlisting)), you can skip JWT verification by passing `disableAuth: true`:
184
+
185
+ ```ts
186
+ // Standalone — no apiKey required when disableAuth is true
187
+ new SpeechEngine.Server({ port: 3001, disableAuth: true, onTranscript }).start();
188
+
189
+ // Or on attach
190
+ elevenlabs.speechEngine.attach("seng_123", httpServer, "/api/speech-engine/ws", {
191
+ disableAuth: true,
192
+ onTranscript,
193
+ });
194
+ ```
195
+
196
+ When auth is disabled the server accepts any client that can reach it and logs a `console.warn` on startup. **Only use this if you have an IP allowlist or equivalent network-level restriction in front of the server** — without one, anyone on the internet can open a session and consume your compute and downstream LLM quota.
197
+
181
198
  ### Session events
182
199
 
183
200
  | Event | Method | Description |
@@ -137,7 +137,9 @@ export declare class AgentsClient {
137
137
  duplicate(agent_id: string, request?: ElevenLabs.conversationalAi.BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateAgentResponseModel>;
138
138
  private __duplicate;
139
139
  /**
140
- * Run a conversation between the agent and a simulated user.
140
+ * @deprecated
141
+ *
142
+ * Deprecated. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user.
141
143
  *
142
144
  * @param {string} agent_id - The id of an agent. This is returned on agent creation.
143
145
  * @param {ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost} request
@@ -159,7 +161,9 @@ export declare class AgentsClient {
159
161
  simulateConversation(agent_id: string, request: ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AgentSimulatedChatTestResponseModel>;
160
162
  private __simulateConversation;
161
163
  /**
162
- * Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.
164
+ * @deprecated
165
+ *
166
+ * Deprecated. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.
163
167
  *
164
168
  * @param {string} agent_id - The id of an agent. This is returned on agent creation.
165
169
  * @param {ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost} request
@@ -498,7 +498,9 @@ class AgentsClient {
498
498
  });
499
499
  }
500
500
  /**
501
- * Run a conversation between the agent and a simulated user.
501
+ * @deprecated
502
+ *
503
+ * Deprecated. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user.
502
504
  *
503
505
  * @param {string} agent_id - The id of an agent. This is returned on agent creation.
504
506
  * @param {ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost} request
@@ -565,7 +567,9 @@ class AgentsClient {
565
567
  });
566
568
  }
567
569
  /**
568
- * Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.
570
+ * @deprecated
571
+ *
572
+ * Deprecated. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.
569
573
  *
570
574
  * @param {string} agent_id - The id of an agent. This is returned on agent creation.
571
575
  * @param {ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost} request
@@ -74,6 +74,24 @@ export declare class BranchesClient {
74
74
  */
75
75
  update(agent_id: string, branch_id: string, request?: ElevenLabs.conversationalAi.agents.BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch, requestOptions?: BranchesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AgentBranchResponse>;
76
76
  private __update;
77
+ /**
78
+ * Returns the result of merging the source branch into the target branch without performing the merge. Useful for showing an accurate diff before confirming.
79
+ *
80
+ * @param {string} agent_id - The id of an agent. This is returned on agent creation.
81
+ * @param {string} source_branch_id - Unique identifier for the source branch to merge from.
82
+ * @param {ElevenLabs.conversationalAi.agents.BranchesPreviewMergeRequest} request
83
+ * @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
84
+ *
85
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
86
+ *
87
+ * @example
88
+ * await client.conversationalAi.agents.branches.previewMerge("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj", {
89
+ * targetBranchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
90
+ * force: true
91
+ * })
92
+ */
93
+ previewMerge(agent_id: string, source_branch_id: string, request: ElevenLabs.conversationalAi.agents.BranchesPreviewMergeRequest, requestOptions?: BranchesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.MergePreviewResponseModel>;
94
+ private __previewMerge;
77
95
  /**
78
96
  * Merge a branch into a target branch
79
97
  *
@@ -91,6 +109,20 @@ export declare class BranchesClient {
91
109
  */
92
110
  merge(agent_id: string, source_branch_id: string, request: ElevenLabs.conversationalAi.agents.BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost, requestOptions?: BranchesClient.RequestOptions): core.HttpResponsePromise<unknown>;
93
111
  private __merge;
112
+ /**
113
+ * Returns the result of rebasing the branch onto main without performing the rebase. Useful for showing an accurate diff before confirming.
114
+ *
115
+ * @param {string} agent_id - The id of an agent. This is returned on agent creation.
116
+ * @param {string} branch_id - Unique identifier for the source branch to merge from.
117
+ * @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
118
+ *
119
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
120
+ *
121
+ * @example
122
+ * await client.conversationalAi.agents.branches.previewRebase("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj")
123
+ */
124
+ previewRebase(agent_id: string, branch_id: string, requestOptions?: BranchesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.MergePreviewResponseModel>;
125
+ private __previewRebase;
94
126
  /**
95
127
  * Rebase a branch onto the latest main branch, incorporating main's changes while preserving the branch's own changes.
96
128
  *
@@ -310,6 +310,71 @@ class BranchesClient {
310
310
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/convai/agents/{agent_id}/branches/{branch_id}");
311
311
  });
312
312
  }
313
+ /**
314
+ * Returns the result of merging the source branch into the target branch without performing the merge. Useful for showing an accurate diff before confirming.
315
+ *
316
+ * @param {string} agent_id - The id of an agent. This is returned on agent creation.
317
+ * @param {string} source_branch_id - Unique identifier for the source branch to merge from.
318
+ * @param {ElevenLabs.conversationalAi.agents.BranchesPreviewMergeRequest} request
319
+ * @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
320
+ *
321
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
322
+ *
323
+ * @example
324
+ * await client.conversationalAi.agents.branches.previewMerge("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj", {
325
+ * targetBranchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
326
+ * force: true
327
+ * })
328
+ */
329
+ previewMerge(agent_id, source_branch_id, request, requestOptions) {
330
+ return core.HttpResponsePromise.fromPromise(this.__previewMerge(agent_id, source_branch_id, request, requestOptions));
331
+ }
332
+ __previewMerge(agent_id, source_branch_id, request, requestOptions) {
333
+ return __awaiter(this, void 0, void 0, function* () {
334
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
335
+ const { targetBranchId, force } = request;
336
+ const _queryParams = {
337
+ target_branch_id: targetBranchId,
338
+ force,
339
+ };
340
+ 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);
341
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
342
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/agents/${core.url.encodePathParam(agent_id)}/branches/${core.url.encodePathParam(source_branch_id)}/merge-preview`),
343
+ method: "GET",
344
+ headers: _headers,
345
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
346
+ 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,
347
+ 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,
348
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
349
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
350
+ logging: this._options.logging,
351
+ });
352
+ if (_response.ok) {
353
+ return {
354
+ data: serializers.MergePreviewResponseModel.parseOrThrow(_response.body, {
355
+ unrecognizedObjectKeys: "passthrough",
356
+ allowUnrecognizedUnionMembers: true,
357
+ allowUnrecognizedEnumValues: true,
358
+ breadcrumbsPrefix: ["response"],
359
+ }),
360
+ rawResponse: _response.rawResponse,
361
+ };
362
+ }
363
+ if (_response.error.reason === "status-code") {
364
+ switch (_response.error.statusCode) {
365
+ case 422:
366
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
367
+ default:
368
+ throw new errors.ElevenLabsError({
369
+ statusCode: _response.error.statusCode,
370
+ body: _response.error.body,
371
+ rawResponse: _response.rawResponse,
372
+ });
373
+ }
374
+ }
375
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge-preview");
376
+ });
377
+ }
313
378
  /**
314
379
  * Merge a branch into a target branch
315
380
  *
@@ -368,6 +433,62 @@ class BranchesClient {
368
433
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge");
369
434
  });
370
435
  }
436
+ /**
437
+ * Returns the result of rebasing the branch onto main without performing the rebase. Useful for showing an accurate diff before confirming.
438
+ *
439
+ * @param {string} agent_id - The id of an agent. This is returned on agent creation.
440
+ * @param {string} branch_id - Unique identifier for the source branch to merge from.
441
+ * @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
442
+ *
443
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
444
+ *
445
+ * @example
446
+ * await client.conversationalAi.agents.branches.previewRebase("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj")
447
+ */
448
+ previewRebase(agent_id, branch_id, requestOptions) {
449
+ return core.HttpResponsePromise.fromPromise(this.__previewRebase(agent_id, branch_id, requestOptions));
450
+ }
451
+ __previewRebase(agent_id, branch_id, requestOptions) {
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
454
+ 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);
455
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
456
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/agents/${core.url.encodePathParam(agent_id)}/branches/${core.url.encodePathParam(branch_id)}/rebase-preview`),
457
+ method: "GET",
458
+ headers: _headers,
459
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
460
+ 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,
461
+ 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,
462
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
463
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
464
+ logging: this._options.logging,
465
+ });
466
+ if (_response.ok) {
467
+ return {
468
+ data: serializers.MergePreviewResponseModel.parseOrThrow(_response.body, {
469
+ unrecognizedObjectKeys: "passthrough",
470
+ allowUnrecognizedUnionMembers: true,
471
+ allowUnrecognizedEnumValues: true,
472
+ breadcrumbsPrefix: ["response"],
473
+ }),
474
+ rawResponse: _response.rawResponse,
475
+ };
476
+ }
477
+ if (_response.error.reason === "status-code") {
478
+ switch (_response.error.statusCode) {
479
+ case 422:
480
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
481
+ default:
482
+ throw new errors.ElevenLabsError({
483
+ statusCode: _response.error.statusCode,
484
+ body: _response.error.body,
485
+ rawResponse: _response.rawResponse,
486
+ });
487
+ }
488
+ }
489
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/agents/{agent_id}/branches/{branch_id}/rebase-preview");
490
+ });
491
+ }
371
492
  /**
372
493
  * Rebase a branch onto the latest main branch, incorporating main's changes while preserving the branch's own changes.
373
494
  *
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * targetBranchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
5
+ * force: true
6
+ * }
7
+ */
8
+ export interface BranchesPreviewMergeRequest {
9
+ /** The ID of the target branch to merge into. */
10
+ targetBranchId: string;
11
+ /** When true, source branch changes always win conflicts regardless of timestamps */
12
+ force?: boolean;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,4 @@ export type { BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost } from "./Bo
2
2
  export type { BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost } from "./BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost";
3
3
  export type { BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch } from "./BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch";
4
4
  export type { BranchesListRequest } from "./BranchesListRequest";
5
+ export type { BranchesPreviewMergeRequest } from "./BranchesPreviewMergeRequest";
@@ -71,4 +71,5 @@ export * from "./voices/types";
71
71
  export * as webhooks from "./webhooks";
72
72
  export * from "./webhooks/client/requests";
73
73
  export * as workspace from "./workspace";
74
+ export * from "./workspace/client/requests";
74
75
  export * as workspaces from "./workspaces";
@@ -110,4 +110,5 @@ __exportStar(require("./voices/types"), exports);
110
110
  exports.webhooks = __importStar(require("./webhooks"));
111
111
  __exportStar(require("./webhooks/client/requests"), exports);
112
112
  exports.workspace = __importStar(require("./workspace"));
113
+ __exportStar(require("./workspace/client/requests"), exports);
113
114
  exports.workspaces = __importStar(require("./workspaces"));
@@ -22,7 +22,7 @@ export interface BodyTextToDialogueFullWithTimestamps {
22
22
  inputs: ElevenLabs.DialogueInput[];
23
23
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
24
24
  modelId?: string;
25
- /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
25
+ /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
26
26
  languageCode?: string;
27
27
  /** Settings controlling the dialogue generation. */
28
28
  settings?: ElevenLabs.ModelSettingsResponseModel;
@@ -20,7 +20,7 @@ export interface BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost
20
20
  inputs: ElevenLabs.DialogueInput[];
21
21
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
22
22
  modelId?: string;
23
- /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
23
+ /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
24
24
  languageCode?: string;
25
25
  /** Settings controlling the dialogue generation. */
26
26
  settings?: ElevenLabs.ModelSettingsResponseModel;
@@ -20,7 +20,7 @@ export interface BodyTextToDialogueMultiVoiceV1TextToDialoguePost {
20
20
  inputs: ElevenLabs.DialogueInput[];
21
21
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
22
22
  modelId?: string;
23
- /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
23
+ /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
24
24
  languageCode?: string;
25
25
  /** Settings controlling the dialogue generation. */
26
26
  settings?: ElevenLabs.ModelSettingsResponseModel;
@@ -22,7 +22,7 @@ export interface BodyTextToDialogueStreamWithTimestamps {
22
22
  inputs: ElevenLabs.DialogueInput[];
23
23
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
24
24
  modelId?: string;
25
- /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
25
+ /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
26
26
  languageCode?: string;
27
27
  /** Settings controlling the dialogue generation. */
28
28
  settings?: ElevenLabs.ModelSettingsResponseModel;
@@ -27,7 +27,7 @@ export interface BodyTextToSpeechFull {
27
27
  text: string;
28
28
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
29
29
  modelId?: string;
30
- /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
30
+ /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
31
31
  languageCode?: string;
32
32
  /** Voice settings overriding stored settings for the given voice. They are applied only on the given request. */
33
33
  voiceSettings?: ElevenLabs.VoiceSettings;
@@ -28,7 +28,7 @@ export interface BodyTextToSpeechFullWithTimestamps {
28
28
  text: string;
29
29
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
30
30
  modelId?: string;
31
- /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
31
+ /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
32
32
  languageCode?: string;
33
33
  /** Voice settings overriding stored settings for the given voice. They are applied only on the given request. */
34
34
  voiceSettings?: ElevenLabs.VoiceSettings;
@@ -27,7 +27,7 @@ export interface StreamTextToSpeechRequest {
27
27
  text: string;
28
28
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
29
29
  modelId?: string;
30
- /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
30
+ /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
31
31
  languageCode?: string;
32
32
  /** Voice settings overriding stored settings for the given voice. They are applied only on the given request. */
33
33
  voiceSettings?: ElevenLabs.VoiceSettings;
@@ -27,7 +27,7 @@ export interface StreamTextToSpeechWithTimestampsRequest {
27
27
  text: string;
28
28
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
29
29
  modelId?: string;
30
- /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
30
+ /** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
31
31
  languageCode?: string;
32
32
  /** Voice settings overriding stored settings for the given voice. They are applied only on the given request. */
33
33
  voiceSettings?: ElevenLabs.VoiceSettings;
@@ -1,5 +1,7 @@
1
- import type { BaseClientOptions } from "../../../../BaseClient";
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
2
  import { type NormalizedClientOptions } from "../../../../BaseClient";
3
+ import * as core from "../../../../core";
4
+ import * as ElevenLabs from "../../../index";
3
5
  import { AnalyticsClient } from "../resources/analytics/client/Client";
4
6
  import { AuditLogsClient } from "../resources/auditLogs/client/Client";
5
7
  import { AuthConnectionsClient } from "../resources/authConnections/client/Client";
@@ -10,6 +12,8 @@ import { ResourcesClient } from "../resources/resources/client/Client";
10
12
  import { UsageClient } from "../resources/usage/client/Client";
11
13
  export declare namespace WorkspaceClient {
12
14
  type Options = BaseClientOptions;
15
+ interface RequestOptions extends BaseRequestOptions {
16
+ }
13
17
  }
14
18
  export declare class WorkspaceClient {
15
19
  protected readonly _options: NormalizedClientOptions<WorkspaceClient.Options>;
@@ -30,4 +34,17 @@ export declare class WorkspaceClient {
30
34
  get resources(): ResourcesClient;
31
35
  get usage(): UsageClient;
32
36
  get analytics(): AnalyticsClient;
37
+ /**
38
+ * Set the workspace-wide Third-Party Disabling policy. When set, it forces, for every API key in the workspace, whether the holder of a key (potentially a third party who found it) may disable it via the self-disable endpoint or when it leaks publicly — overriding each key's own setting. Pass `true` to allow it for all keys, `false` to forbid it for all keys, or `null` to clear the override so per-key values and the plan default apply again. Workspace admins only; requires self-disable access.
39
+ *
40
+ * @param {ElevenLabs.BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost} request
41
+ * @param {WorkspaceClient.RequestOptions} requestOptions - Request-specific configuration.
42
+ *
43
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
44
+ *
45
+ * @example
46
+ * await client.workspace.setThirdPartyDisablingPolicy()
47
+ */
48
+ setThirdPartyDisablingPolicy(request?: ElevenLabs.BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost, requestOptions?: WorkspaceClient.RequestOptions): core.HttpResponsePromise<unknown>;
49
+ private __setThirdPartyDisablingPolicy;
33
50
  }