@elevenlabs/elevenlabs-js 2.47.0 → 2.48.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 (295) hide show
  1. package/.fern/metadata.json +1 -1
  2. package/BaseClient.js +2 -2
  3. package/api/resources/conversationalAi/conversation/Conversation.js +1 -0
  4. package/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +2 -0
  5. package/api/resources/conversationalAi/conversation/events.d.ts +1 -0
  6. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
  7. package/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
  8. package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +1 -0
  9. package/api/resources/conversationalAi/resources/agents/resources/index.js +2 -1
  10. package/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.d.ts +27 -0
  11. package/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.js +116 -0
  12. package/api/resources/conversationalAi/resources/agents/resources/versions/client/index.d.ts +1 -0
  13. package/api/resources/conversationalAi/resources/agents/resources/versions/client/index.js +2 -0
  14. package/api/resources/conversationalAi/resources/agents/resources/versions/index.d.ts +1 -0
  15. package/api/resources/conversationalAi/resources/agents/resources/versions/index.js +17 -0
  16. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -0
  17. package/api/resources/conversationalAi/resources/conversations/client/Client.js +5 -1
  18. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
  19. package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +1 -0
  20. package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +5 -1
  21. package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +2 -0
  22. package/api/resources/workspace/resources/authConnections/client/Client.d.ts +16 -0
  23. package/api/resources/workspace/resources/authConnections/client/Client.js +63 -0
  24. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +4 -1
  25. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
  26. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +16 -0
  27. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +3 -0
  28. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +40 -0
  29. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +3 -0
  30. package/api/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
  31. package/api/resources/workspace/resources/authConnections/types/index.js +2 -0
  32. package/api/types/AgentAlertingMonitorConfig.d.ts +2 -0
  33. package/api/types/AgentAlertingSettings.d.ts +2 -0
  34. package/api/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
  35. package/api/types/ConversationInitiationSource.d.ts +1 -0
  36. package/api/types/ConversationInitiationSource.js +1 -0
  37. package/api/types/CreateBearerAuthRequest.d.ts +8 -0
  38. package/api/types/CreateBearerAuthRequest.js +3 -0
  39. package/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +2 -0
  40. package/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +2 -0
  41. package/api/types/InboundSipTrunkConfigRequestModel.d.ts +2 -0
  42. package/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
  43. package/api/types/ListCustomerFacingAgentsParams.d.ts +11 -0
  44. package/api/types/ListCustomerFacingAgentsParams.js +3 -0
  45. package/api/types/ListSpeechEnginesResponse.d.ts +1 -0
  46. package/api/types/Llm.d.ts +2 -0
  47. package/api/types/Llm.js +2 -0
  48. package/api/types/LoadProcedureToolConfig.d.ts +4 -0
  49. package/api/types/LoadProcedureToolConfig.js +3 -0
  50. package/api/types/LoadProcedureToolErrorStatus.d.ts +5 -0
  51. package/api/types/LoadProcedureToolErrorStatus.js +8 -0
  52. package/api/types/OAuth2ClientCredsResponse.d.ts +2 -0
  53. package/api/types/OutboundSipTrunkConfigRequestModel.d.ts +2 -0
  54. package/api/types/ProcedureAtVersion.d.ts +12 -0
  55. package/api/types/ProcedureAtVersion.js +3 -0
  56. package/api/types/ProcedureCompilerMode.d.ts +5 -1
  57. package/api/types/ProcedureCompilerMode.js +5 -0
  58. package/api/types/PromptAgentApiModelInput.d.ts +1 -1
  59. package/api/types/PromptAgentApiModelOutput.d.ts +1 -1
  60. package/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -1
  61. package/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -1
  62. package/api/types/SlackBotAuthResponse.d.ts +10 -0
  63. package/api/types/SlackBotAuthResponse.js +3 -0
  64. package/api/types/SpeechEngineResponse.d.ts +11 -0
  65. package/api/types/SpeechEngineSummaryResponse.d.ts +3 -1
  66. package/api/types/SystemToolConfigInputParams.d.ts +4 -1
  67. package/api/types/SystemToolConfigOutputParams.d.ts +4 -1
  68. package/api/types/UpdateBasicAuthRequest.d.ts +5 -0
  69. package/api/types/UpdateBasicAuthRequest.js +3 -0
  70. package/api/types/UpdateOAuth2ClientCredsRequest.d.ts +9 -0
  71. package/api/types/UpdateOAuth2ClientCredsRequest.js +3 -0
  72. package/api/types/UpdateOAuth2JwtRequest.d.ts +14 -0
  73. package/api/types/UpdateOAuth2JwtRequest.js +3 -0
  74. package/api/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +9 -0
  75. package/api/types/UpdateOAuth2JwtRequestAlgorithm.js +12 -0
  76. package/api/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +5 -0
  77. package/api/types/UpdateOAuth2JwtRequestTokenResponseField.js +8 -0
  78. package/api/types/WorkspaceResourceType.d.ts +2 -0
  79. package/api/types/WorkspaceResourceType.js +2 -0
  80. package/api/types/index.d.ts +11 -0
  81. package/api/types/index.js +11 -0
  82. package/dist/BaseClient.js +2 -2
  83. package/dist/api/resources/conversationalAi/conversation/Conversation.js +1 -0
  84. package/dist/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +2 -0
  85. package/dist/api/resources/conversationalAi/conversation/events.d.ts +1 -0
  86. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
  87. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
  88. package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +1 -0
  89. package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +2 -1
  90. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.d.ts +27 -0
  91. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.js +116 -0
  92. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/index.d.ts +1 -0
  93. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/index.js +2 -0
  94. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/index.d.ts +1 -0
  95. package/dist/api/resources/conversationalAi/resources/agents/resources/versions/index.js +17 -0
  96. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -0
  97. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +5 -1
  98. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
  99. package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +1 -0
  100. package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +5 -1
  101. package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +2 -0
  102. package/dist/api/resources/workspace/resources/authConnections/client/Client.d.ts +16 -0
  103. package/dist/api/resources/workspace/resources/authConnections/client/Client.js +63 -0
  104. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +4 -1
  105. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
  106. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +16 -0
  107. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +3 -0
  108. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +40 -0
  109. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +3 -0
  110. package/dist/api/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
  111. package/dist/api/resources/workspace/resources/authConnections/types/index.js +2 -0
  112. package/dist/api/types/AgentAlertingMonitorConfig.d.ts +2 -0
  113. package/dist/api/types/AgentAlertingSettings.d.ts +2 -0
  114. package/dist/api/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
  115. package/dist/api/types/ConversationInitiationSource.d.ts +1 -0
  116. package/dist/api/types/ConversationInitiationSource.js +1 -0
  117. package/dist/api/types/CreateBearerAuthRequest.d.ts +8 -0
  118. package/dist/api/types/CreateBearerAuthRequest.js +3 -0
  119. package/dist/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +2 -0
  120. package/dist/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +2 -0
  121. package/dist/api/types/InboundSipTrunkConfigRequestModel.d.ts +2 -0
  122. package/dist/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
  123. package/dist/api/types/ListCustomerFacingAgentsParams.d.ts +11 -0
  124. package/dist/api/types/ListCustomerFacingAgentsParams.js +3 -0
  125. package/dist/api/types/ListSpeechEnginesResponse.d.ts +1 -0
  126. package/dist/api/types/Llm.d.ts +2 -0
  127. package/dist/api/types/Llm.js +2 -0
  128. package/dist/api/types/LoadProcedureToolConfig.d.ts +4 -0
  129. package/dist/api/types/LoadProcedureToolConfig.js +3 -0
  130. package/dist/api/types/LoadProcedureToolErrorStatus.d.ts +5 -0
  131. package/dist/api/types/LoadProcedureToolErrorStatus.js +8 -0
  132. package/dist/api/types/OAuth2ClientCredsResponse.d.ts +2 -0
  133. package/dist/api/types/OutboundSipTrunkConfigRequestModel.d.ts +2 -0
  134. package/dist/api/types/ProcedureAtVersion.d.ts +12 -0
  135. package/dist/api/types/ProcedureAtVersion.js +3 -0
  136. package/dist/api/types/ProcedureCompilerMode.d.ts +5 -1
  137. package/dist/api/types/ProcedureCompilerMode.js +5 -0
  138. package/dist/api/types/PromptAgentApiModelInput.d.ts +1 -1
  139. package/dist/api/types/PromptAgentApiModelOutput.d.ts +1 -1
  140. package/dist/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -1
  141. package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -1
  142. package/dist/api/types/SlackBotAuthResponse.d.ts +10 -0
  143. package/dist/api/types/SlackBotAuthResponse.js +3 -0
  144. package/dist/api/types/SpeechEngineResponse.d.ts +11 -0
  145. package/dist/api/types/SpeechEngineSummaryResponse.d.ts +3 -1
  146. package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -1
  147. package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -1
  148. package/dist/api/types/UpdateBasicAuthRequest.d.ts +5 -0
  149. package/dist/api/types/UpdateBasicAuthRequest.js +3 -0
  150. package/dist/api/types/UpdateOAuth2ClientCredsRequest.d.ts +9 -0
  151. package/dist/api/types/UpdateOAuth2ClientCredsRequest.js +3 -0
  152. package/dist/api/types/UpdateOAuth2JwtRequest.d.ts +14 -0
  153. package/dist/api/types/UpdateOAuth2JwtRequest.js +3 -0
  154. package/dist/api/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +9 -0
  155. package/dist/api/types/UpdateOAuth2JwtRequestAlgorithm.js +12 -0
  156. package/dist/api/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +5 -0
  157. package/dist/api/types/UpdateOAuth2JwtRequestTokenResponseField.js +8 -0
  158. package/dist/api/types/WorkspaceResourceType.d.ts +2 -0
  159. package/dist/api/types/WorkspaceResourceType.js +2 -0
  160. package/dist/api/types/index.d.ts +11 -0
  161. package/dist/api/types/index.js +11 -0
  162. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +5 -1
  163. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.js +2 -0
  164. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
  165. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
  166. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +19 -0
  167. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +51 -0
  168. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +51 -0
  169. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +67 -0
  170. package/dist/serialization/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
  171. package/dist/serialization/resources/workspace/resources/authConnections/types/index.js +2 -0
  172. package/dist/serialization/types/AgentAlertingMonitorConfig.d.ts +1 -0
  173. package/dist/serialization/types/AgentAlertingMonitorConfig.js +1 -0
  174. package/dist/serialization/types/AgentAlertingSettings.d.ts +1 -0
  175. package/dist/serialization/types/AgentAlertingSettings.js +1 -0
  176. package/dist/serialization/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
  177. package/dist/serialization/types/AudioIsolationHistoryItemResponseModel.js +1 -0
  178. package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
  179. package/dist/serialization/types/ConversationInitiationSource.js +1 -0
  180. package/dist/serialization/types/CreateBearerAuthRequest.d.ts +11 -0
  181. package/dist/serialization/types/CreateBearerAuthRequest.js +43 -0
  182. package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +1 -0
  183. package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +1 -0
  184. package/dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +1 -0
  185. package/dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +1 -0
  186. package/dist/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +1 -0
  187. package/dist/serialization/types/InboundSipTrunkConfigRequestModel.js +1 -0
  188. package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
  189. package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
  190. package/dist/serialization/types/ListCustomerFacingAgentsParams.d.ts +9 -0
  191. package/dist/serialization/types/ListCustomerFacingAgentsParams.js +41 -0
  192. package/dist/serialization/types/Llm.d.ts +1 -1
  193. package/dist/serialization/types/Llm.js +2 -0
  194. package/dist/serialization/types/LoadProcedureToolConfig.d.ts +10 -0
  195. package/dist/serialization/types/LoadProcedureToolConfig.js +42 -0
  196. package/dist/serialization/types/LoadProcedureToolErrorStatus.d.ts +7 -0
  197. package/dist/serialization/types/LoadProcedureToolErrorStatus.js +39 -0
  198. package/dist/serialization/types/OAuth2ClientCredsResponse.d.ts +1 -0
  199. package/dist/serialization/types/OAuth2ClientCredsResponse.js +1 -0
  200. package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +1 -0
  201. package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.js +1 -0
  202. package/dist/serialization/types/ProcedureAtVersion.d.ts +13 -0
  203. package/dist/serialization/types/ProcedureAtVersion.js +45 -0
  204. package/dist/serialization/types/ProcedureCompilerMode.d.ts +1 -1
  205. package/dist/serialization/types/ProcedureCompilerMode.js +1 -1
  206. package/dist/serialization/types/SlackBotAuthResponse.d.ts +13 -0
  207. package/dist/serialization/types/SlackBotAuthResponse.js +45 -0
  208. package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
  209. package/dist/serialization/types/SystemToolConfigInputParams.js +2 -0
  210. package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
  211. package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -0
  212. package/dist/serialization/types/UpdateBasicAuthRequest.d.ts +11 -0
  213. package/dist/serialization/types/UpdateBasicAuthRequest.js +43 -0
  214. package/dist/serialization/types/UpdateOAuth2ClientCredsRequest.d.ts +15 -0
  215. package/dist/serialization/types/UpdateOAuth2ClientCredsRequest.js +47 -0
  216. package/dist/serialization/types/UpdateOAuth2JwtRequest.d.ts +21 -0
  217. package/dist/serialization/types/UpdateOAuth2JwtRequest.js +53 -0
  218. package/dist/serialization/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +7 -0
  219. package/dist/serialization/types/UpdateOAuth2JwtRequestAlgorithm.js +39 -0
  220. package/dist/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +7 -0
  221. package/dist/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.js +39 -0
  222. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  223. package/dist/serialization/types/WorkspaceResourceType.js +2 -0
  224. package/dist/serialization/types/index.d.ts +11 -0
  225. package/dist/serialization/types/index.js +11 -0
  226. package/dist/version.d.ts +1 -1
  227. package/dist/version.js +1 -1
  228. package/package.json +1 -1
  229. package/reference.md +147 -0
  230. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +5 -1
  231. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.js +2 -0
  232. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
  233. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
  234. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +19 -0
  235. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +51 -0
  236. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +51 -0
  237. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +67 -0
  238. package/serialization/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
  239. package/serialization/resources/workspace/resources/authConnections/types/index.js +2 -0
  240. package/serialization/types/AgentAlertingMonitorConfig.d.ts +1 -0
  241. package/serialization/types/AgentAlertingMonitorConfig.js +1 -0
  242. package/serialization/types/AgentAlertingSettings.d.ts +1 -0
  243. package/serialization/types/AgentAlertingSettings.js +1 -0
  244. package/serialization/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
  245. package/serialization/types/AudioIsolationHistoryItemResponseModel.js +1 -0
  246. package/serialization/types/ConversationInitiationSource.d.ts +1 -1
  247. package/serialization/types/ConversationInitiationSource.js +1 -0
  248. package/serialization/types/CreateBearerAuthRequest.d.ts +11 -0
  249. package/serialization/types/CreateBearerAuthRequest.js +43 -0
  250. package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +1 -0
  251. package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +1 -0
  252. package/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +1 -0
  253. package/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +1 -0
  254. package/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +1 -0
  255. package/serialization/types/InboundSipTrunkConfigRequestModel.js +1 -0
  256. package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
  257. package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
  258. package/serialization/types/ListCustomerFacingAgentsParams.d.ts +9 -0
  259. package/serialization/types/ListCustomerFacingAgentsParams.js +41 -0
  260. package/serialization/types/Llm.d.ts +1 -1
  261. package/serialization/types/Llm.js +2 -0
  262. package/serialization/types/LoadProcedureToolConfig.d.ts +10 -0
  263. package/serialization/types/LoadProcedureToolConfig.js +42 -0
  264. package/serialization/types/LoadProcedureToolErrorStatus.d.ts +7 -0
  265. package/serialization/types/LoadProcedureToolErrorStatus.js +39 -0
  266. package/serialization/types/OAuth2ClientCredsResponse.d.ts +1 -0
  267. package/serialization/types/OAuth2ClientCredsResponse.js +1 -0
  268. package/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +1 -0
  269. package/serialization/types/OutboundSipTrunkConfigRequestModel.js +1 -0
  270. package/serialization/types/ProcedureAtVersion.d.ts +13 -0
  271. package/serialization/types/ProcedureAtVersion.js +45 -0
  272. package/serialization/types/ProcedureCompilerMode.d.ts +1 -1
  273. package/serialization/types/ProcedureCompilerMode.js +1 -1
  274. package/serialization/types/SlackBotAuthResponse.d.ts +13 -0
  275. package/serialization/types/SlackBotAuthResponse.js +45 -0
  276. package/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
  277. package/serialization/types/SystemToolConfigInputParams.js +2 -0
  278. package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
  279. package/serialization/types/SystemToolConfigOutputParams.js +2 -0
  280. package/serialization/types/UpdateBasicAuthRequest.d.ts +11 -0
  281. package/serialization/types/UpdateBasicAuthRequest.js +43 -0
  282. package/serialization/types/UpdateOAuth2ClientCredsRequest.d.ts +15 -0
  283. package/serialization/types/UpdateOAuth2ClientCredsRequest.js +47 -0
  284. package/serialization/types/UpdateOAuth2JwtRequest.d.ts +21 -0
  285. package/serialization/types/UpdateOAuth2JwtRequest.js +53 -0
  286. package/serialization/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +7 -0
  287. package/serialization/types/UpdateOAuth2JwtRequestAlgorithm.js +39 -0
  288. package/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +7 -0
  289. package/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.js +39 -0
  290. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  291. package/serialization/types/WorkspaceResourceType.js +2 -0
  292. package/serialization/types/index.d.ts +11 -0
  293. package/serialization/types/index.js +11 -0
  294. package/version.d.ts +1 -1
  295. package/version.js +1 -1
@@ -36,5 +36,5 @@
36
36
  }
37
37
  }
38
38
  },
39
- "originGitCommit": "085495d2c98acb98352c8413534b07ef7d52e7e4"
39
+ "originGitCommit": "fc548535ea0ec086edcc143882b71607947e554a"
40
40
  }
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.47.0",
45
- "User-Agent": "@elevenlabs/elevenlabs-js/2.47.0",
44
+ "X-Fern-SDK-Version": "2.48.0",
45
+ "User-Agent": "@elevenlabs/elevenlabs-js/2.48.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,
@@ -179,6 +179,7 @@ class Conversation extends events_1.EventEmitter {
179
179
  custom_llm_extra_body: this.config.extraBody,
180
180
  conversation_config_override: this.config.conversationConfigOverride,
181
181
  dynamic_variables: this.config.dynamicVariables,
182
+ environment: this.config.environment,
182
183
  };
183
184
  this.ws.send(JSON.stringify(initEvent));
184
185
  // Set up audio input callback
@@ -8,6 +8,8 @@ export interface ConversationInitiationData {
8
8
  conversationConfigOverride?: Record<string, any>;
9
9
  /** Dynamic variables to use in the conversation */
10
10
  dynamicVariables?: Record<string, any>;
11
+ /** The environment to use for the conversation */
12
+ environment?: string;
11
13
  }
12
14
  /**
13
15
  * Creates a default conversation initiation data object.
@@ -49,6 +49,7 @@ export interface ConversationInitiationClientDataEvent extends BaseClientToOrche
49
49
  custom_llm_extra_body?: Record<string, any>;
50
50
  conversation_config_override?: Record<string, any>;
51
51
  dynamic_variables?: Record<string, any>;
52
+ environment?: string;
52
53
  }
53
54
  /**
54
55
  * Event for client tool results.
@@ -9,6 +9,7 @@ import { KnowledgeBaseClient } from "../resources/knowledgeBase/client/Client";
9
9
  import { LinkClient } from "../resources/link/client/Client";
10
10
  import { LlmUsageClient } from "../resources/llmUsage/client/Client";
11
11
  import { SummariesClient } from "../resources/summaries/client/Client";
12
+ import { VersionsClient } from "../resources/versions/client/Client";
12
13
  import { WidgetClient } from "../resources/widget/client/Client";
13
14
  export declare namespace AgentsClient {
14
15
  type Options = BaseClientOptions;
@@ -23,6 +24,7 @@ export declare class AgentsClient {
23
24
  protected _knowledgeBase: KnowledgeBaseClient | undefined;
24
25
  protected _llmUsage: LlmUsageClient | undefined;
25
26
  protected _branches: BranchesClient | undefined;
27
+ protected _versions: VersionsClient | undefined;
26
28
  protected _deployments: DeploymentsClient | undefined;
27
29
  protected _drafts: DraftsClient | undefined;
28
30
  constructor(options?: AgentsClient.Options);
@@ -32,6 +34,7 @@ export declare class AgentsClient {
32
34
  get knowledgeBase(): KnowledgeBaseClient;
33
35
  get llmUsage(): LlmUsageClient;
34
36
  get branches(): BranchesClient;
37
+ get versions(): VersionsClient;
35
38
  get deployments(): DeploymentsClient;
36
39
  get drafts(): DraftsClient;
37
40
  /**
@@ -70,7 +70,8 @@ const Client_4 = require("../resources/knowledgeBase/client/Client");
70
70
  const Client_5 = require("../resources/link/client/Client");
71
71
  const Client_6 = require("../resources/llmUsage/client/Client");
72
72
  const Client_7 = require("../resources/summaries/client/Client");
73
- const Client_8 = require("../resources/widget/client/Client");
73
+ const Client_8 = require("../resources/versions/client/Client");
74
+ const Client_9 = require("../resources/widget/client/Client");
74
75
  class AgentsClient {
75
76
  constructor(options = {}) {
76
77
  this._options = (0, BaseClient_1.normalizeClientOptions)(options);
@@ -81,7 +82,7 @@ class AgentsClient {
81
82
  }
82
83
  get widget() {
83
84
  var _a;
84
- return ((_a = this._widget) !== null && _a !== void 0 ? _a : (this._widget = new Client_8.WidgetClient(this._options)));
85
+ return ((_a = this._widget) !== null && _a !== void 0 ? _a : (this._widget = new Client_9.WidgetClient(this._options)));
85
86
  }
86
87
  get link() {
87
88
  var _a;
@@ -99,6 +100,10 @@ class AgentsClient {
99
100
  var _a;
100
101
  return ((_a = this._branches) !== null && _a !== void 0 ? _a : (this._branches = new Client_1.BranchesClient(this._options)));
101
102
  }
103
+ get versions() {
104
+ var _a;
105
+ return ((_a = this._versions) !== null && _a !== void 0 ? _a : (this._versions = new Client_8.VersionsClient(this._options)));
106
+ }
102
107
  get deployments() {
103
108
  var _a;
104
109
  return ((_a = this._deployments) !== null && _a !== void 0 ? _a : (this._deployments = new Client_2.DeploymentsClient(this._options)));
@@ -11,5 +11,6 @@ export * from "./llmUsage/client/requests";
11
11
  export * as summaries from "./summaries";
12
12
  export * from "./summaries/client/requests";
13
13
  export * from "./summaries/types";
14
+ export * as versions from "./versions";
14
15
  export * as widget from "./widget";
15
16
  export * from "./widget/client/requests";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.widget = exports.summaries = exports.llmUsage = exports.link = exports.knowledgeBase = exports.drafts = exports.deployments = exports.branches = void 0;
39
+ exports.widget = exports.versions = exports.summaries = exports.llmUsage = exports.link = exports.knowledgeBase = exports.drafts = exports.deployments = exports.branches = void 0;
40
40
  exports.branches = __importStar(require("./branches"));
41
41
  __exportStar(require("./branches/client/requests"), exports);
42
42
  exports.deployments = __importStar(require("./deployments"));
@@ -50,5 +50,6 @@ __exportStar(require("./llmUsage/client/requests"), exports);
50
50
  exports.summaries = __importStar(require("./summaries"));
51
51
  __exportStar(require("./summaries/client/requests"), exports);
52
52
  __exportStar(require("./summaries/types"), exports);
53
+ exports.versions = __importStar(require("./versions"));
53
54
  exports.widget = __importStar(require("./widget"));
54
55
  __exportStar(require("./widget/client/requests"), exports);
@@ -0,0 +1,27 @@
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 VersionsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class VersionsClient {
11
+ protected readonly _options: NormalizedClientOptions<VersionsClient.Options>;
12
+ constructor(options?: VersionsClient.Options);
13
+ /**
14
+ * Get metadata for a specific agent version
15
+ *
16
+ * @param {string} agent_id - The id of an agent. This is returned on agent creation.
17
+ * @param {string} version_id - Unique identifier for the version.
18
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
21
+ *
22
+ * @example
23
+ * await client.conversationalAi.agents.versions.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtvrsn_0901k4aafjxxfxt93gd841r7tv5t")
24
+ */
25
+ get(agent_id: string, version_id: string, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AgentVersionMetadata>;
26
+ private __get;
27
+ }
@@ -0,0 +1,116 @@
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.VersionsClient = 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 VersionsClient {
56
+ constructor(options = {}) {
57
+ this._options = (0, BaseClient_1.normalizeClientOptions)(options);
58
+ }
59
+ /**
60
+ * Get metadata for a specific agent version
61
+ *
62
+ * @param {string} agent_id - The id of an agent. This is returned on agent creation.
63
+ * @param {string} version_id - Unique identifier for the version.
64
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
65
+ *
66
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
67
+ *
68
+ * @example
69
+ * await client.conversationalAi.agents.versions.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtvrsn_0901k4aafjxxfxt93gd841r7tv5t")
70
+ */
71
+ get(agent_id, version_id, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__get(agent_id, version_id, requestOptions));
73
+ }
74
+ __get(agent_id, version_id, requestOptions) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
77
+ 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);
78
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
79
+ 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)}/versions/${core.url.encodePathParam(version_id)}`),
80
+ method: "GET",
81
+ headers: _headers,
82
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
83
+ 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,
84
+ 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,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
87
+ logging: this._options.logging,
88
+ });
89
+ if (_response.ok) {
90
+ return {
91
+ data: serializers.AgentVersionMetadata.parseOrThrow(_response.body, {
92
+ unrecognizedObjectKeys: "passthrough",
93
+ allowUnrecognizedUnionMembers: true,
94
+ allowUnrecognizedEnumValues: true,
95
+ breadcrumbsPrefix: ["response"],
96
+ }),
97
+ rawResponse: _response.rawResponse,
98
+ };
99
+ }
100
+ if (_response.error.reason === "status-code") {
101
+ switch (_response.error.statusCode) {
102
+ case 422:
103
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
104
+ default:
105
+ throw new errors.ElevenLabsError({
106
+ statusCode: _response.error.statusCode,
107
+ body: _response.error.body,
108
+ rawResponse: _response.rawResponse,
109
+ });
110
+ }
111
+ }
112
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/agents/{agent_id}/versions/{version_id}");
113
+ });
114
+ }
115
+ }
116
+ exports.VersionsClient = VersionsClient;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -98,6 +98,7 @@ export declare class ConversationsClient {
98
98
  * summaryMode: "exclude",
99
99
  * search: "search",
100
100
  * conversationInitiationSource: "unknown",
101
+ * textOnly: true,
101
102
  * branchId: "branch_id",
102
103
  * topicIds: ["topic_ids"],
103
104
  * excludeStatuses: ["initiated"],
@@ -266,6 +266,7 @@ class ConversationsClient {
266
266
  * summaryMode: "exclude",
267
267
  * search: "search",
268
268
  * conversationInitiationSource: "unknown",
269
+ * textOnly: true,
269
270
  * branchId: "branch_id",
270
271
  * topicIds: ["topic_ids"],
271
272
  * excludeStatuses: ["initiated"],
@@ -278,7 +279,7 @@ class ConversationsClient {
278
279
  __list() {
279
280
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
280
281
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
281
- const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, branchId, topicIds, excludeStatuses, tagIds, } = request;
282
+ const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, textOnly, branchId, topicIds, excludeStatuses, tagIds, } = request;
282
283
  const _queryParams = {};
283
284
  if (cursor != null) {
284
285
  _queryParams.cursor = cursor;
@@ -375,6 +376,9 @@ class ConversationsClient {
375
376
  if (conversationInitiationSource != null) {
376
377
  _queryParams.conversation_initiation_source = serializers.ConversationInitiationSource.jsonOrThrow(conversationInitiationSource, { unrecognizedObjectKeys: "strip" });
377
378
  }
379
+ if (textOnly != null) {
380
+ _queryParams.text_only = textOnly.toString();
381
+ }
378
382
  if (branchId != null) {
379
383
  _queryParams.branch_id = branchId;
380
384
  }
@@ -23,6 +23,7 @@ import type * as ElevenLabs from "../../../../../../index";
23
23
  * summaryMode: "exclude",
24
24
  * search: "search",
25
25
  * conversationInitiationSource: "unknown",
26
+ * textOnly: true,
26
27
  * branchId: "branch_id",
27
28
  * topicIds: ["topic_ids"],
28
29
  * excludeStatuses: ["initiated"],
@@ -71,6 +72,7 @@ export interface ConversationsListRequest {
71
72
  /** Full-text or fuzzy search over transcript messages */
72
73
  search?: string;
73
74
  conversationInitiationSource?: ElevenLabs.ConversationInitiationSource;
75
+ textOnly?: boolean;
74
76
  /** Filter conversations by branch ID. */
75
77
  branchId?: string;
76
78
  /** Filter conversations by topic IDs assigned during topic discovery. */
@@ -40,6 +40,7 @@ export declare class MessagesClient {
40
40
  * pageSize: 1,
41
41
  * summaryMode: "exclude",
42
42
  * conversationInitiationSource: "unknown",
43
+ * textOnly: true,
43
44
  * branchId: "branch_id",
44
45
  * sortBy: "search_score",
45
46
  * cursor: "cursor"
@@ -86,6 +86,7 @@ class MessagesClient {
86
86
  * pageSize: 1,
87
87
  * summaryMode: "exclude",
88
88
  * conversationInitiationSource: "unknown",
89
+ * textOnly: true,
89
90
  * branchId: "branch_id",
90
91
  * sortBy: "search_score",
91
92
  * cursor: "cursor"
@@ -97,7 +98,7 @@ class MessagesClient {
97
98
  __textSearch(request, requestOptions) {
98
99
  return __awaiter(this, void 0, void 0, function* () {
99
100
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
100
- const { textQuery, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, conversationInitiationSource, branchId, sortBy, cursor, } = request;
101
+ const { textQuery, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, conversationInitiationSource, textOnly, branchId, sortBy, cursor, } = request;
101
102
  const _queryParams = {};
102
103
  _queryParams.text_query = textQuery;
103
104
  if (agentId != null) {
@@ -190,6 +191,9 @@ class MessagesClient {
190
191
  if (conversationInitiationSource != null) {
191
192
  _queryParams.conversation_initiation_source = serializers.ConversationInitiationSource.jsonOrThrow(conversationInitiationSource, { unrecognizedObjectKeys: "strip" });
192
193
  }
194
+ if (textOnly != null) {
195
+ _queryParams.text_only = textOnly.toString();
196
+ }
193
197
  if (branchId != null) {
194
198
  _queryParams.branch_id = branchId;
195
199
  }
@@ -22,6 +22,7 @@ import type * as ElevenLabs from "../../../../../../../../index";
22
22
  * pageSize: 1,
23
23
  * summaryMode: "exclude",
24
24
  * conversationInitiationSource: "unknown",
25
+ * textOnly: true,
25
26
  * branchId: "branch_id",
26
27
  * sortBy: "search_score",
27
28
  * cursor: "cursor"
@@ -67,6 +68,7 @@ export interface MessagesTextSearchRequest {
67
68
  /** Whether to include transcript summaries in the response. */
68
69
  summaryMode?: ElevenLabs.conversationalAi.conversations.MessagesTextSearchRequestSummaryMode;
69
70
  conversationInitiationSource?: ElevenLabs.ConversationInitiationSource;
71
+ textOnly?: boolean;
70
72
  /** Filter conversations by branch ID. */
71
73
  branchId?: string;
72
74
  /** Sort order for search results. 'search_score' sorts by search score, 'created_at' sorts by conversation start time. */
@@ -55,4 +55,20 @@ export declare class AuthConnectionsClient {
55
55
  */
56
56
  delete(auth_connection_id: string, requestOptions?: AuthConnectionsClient.RequestOptions): core.HttpResponsePromise<unknown>;
57
57
  private __delete;
58
+ /**
59
+ * Update an auth connection
60
+ *
61
+ * @param {string} auth_connection_id
62
+ * @param {ElevenLabs.workspace.AuthConnectionsUpdateRequestBody} request
63
+ * @param {AuthConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.workspace.authConnections.update("auth_connection_id", {
69
+ * authType: "oauth2_client_credentials"
70
+ * })
71
+ */
72
+ update(auth_connection_id: string, request: ElevenLabs.workspace.AuthConnectionsUpdateRequestBody, requestOptions?: AuthConnectionsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.workspace.AuthConnectionsUpdateResponse>;
73
+ private __update;
58
74
  }
@@ -224,5 +224,68 @@ class AuthConnectionsClient {
224
224
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/workspace/auth-connections/{auth_connection_id}");
225
225
  });
226
226
  }
227
+ /**
228
+ * Update an auth connection
229
+ *
230
+ * @param {string} auth_connection_id
231
+ * @param {ElevenLabs.workspace.AuthConnectionsUpdateRequestBody} request
232
+ * @param {AuthConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
233
+ *
234
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
235
+ *
236
+ * @example
237
+ * await client.workspace.authConnections.update("auth_connection_id", {
238
+ * authType: "oauth2_client_credentials"
239
+ * })
240
+ */
241
+ update(auth_connection_id, request, requestOptions) {
242
+ return core.HttpResponsePromise.fromPromise(this.__update(auth_connection_id, request, requestOptions));
243
+ }
244
+ __update(auth_connection_id, request, requestOptions) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
247
+ 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);
248
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
249
+ 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/workspace/auth-connections/${core.url.encodePathParam(auth_connection_id)}`),
250
+ method: "PATCH",
251
+ headers: _headers,
252
+ contentType: "application/json",
253
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
254
+ requestType: "json",
255
+ body: serializers.workspace.AuthConnectionsUpdateRequestBody.jsonOrThrow(request, {
256
+ unrecognizedObjectKeys: "strip",
257
+ }),
258
+ 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,
259
+ 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,
260
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
261
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
262
+ logging: this._options.logging,
263
+ });
264
+ if (_response.ok) {
265
+ return {
266
+ data: serializers.workspace.AuthConnectionsUpdateResponse.parseOrThrow(_response.body, {
267
+ unrecognizedObjectKeys: "passthrough",
268
+ allowUnrecognizedUnionMembers: true,
269
+ allowUnrecognizedEnumValues: true,
270
+ breadcrumbsPrefix: ["response"],
271
+ }),
272
+ rawResponse: _response.rawResponse,
273
+ };
274
+ }
275
+ if (_response.error.reason === "status-code") {
276
+ switch (_response.error.statusCode) {
277
+ case 422:
278
+ throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
279
+ default:
280
+ throw new errors.ElevenLabsError({
281
+ statusCode: _response.error.statusCode,
282
+ body: _response.error.body,
283
+ rawResponse: _response.rawResponse,
284
+ });
285
+ }
286
+ }
287
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/workspace/auth-connections/{auth_connection_id}");
288
+ });
289
+ }
227
290
  }
228
291
  exports.AuthConnectionsClient = AuthConnectionsClient;
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../../index";
2
2
  /**
3
3
  * Auth connection to create
4
4
  */
5
- export type AuthConnectionsCreateRequestBody = ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Mtls;
5
+ export type AuthConnectionsCreateRequestBody = ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Mtls;
6
6
  export declare namespace AuthConnectionsCreateRequestBody {
7
7
  interface Oauth2ClientCredentials extends ElevenLabs.CreateOAuth2ClientCredsRequest {
8
8
  authType: "oauth2_client_credentials";
@@ -13,6 +13,9 @@ export declare namespace AuthConnectionsCreateRequestBody {
13
13
  interface BasicAuth extends ElevenLabs.CreateBasicAuthRequest {
14
14
  authType: "basic_auth";
15
15
  }
16
+ interface BearerAuth extends ElevenLabs.CreateBearerAuthRequest {
17
+ authType: "bearer_auth";
18
+ }
16
19
  interface Oauth2Jwt extends ElevenLabs.CreateOAuth2JwtRequest {
17
20
  authType: "oauth2_jwt";
18
21
  }
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../../index";
2
2
  /**
3
3
  * The type of auth connection config
4
4
  */
5
- export type AuthConnectionsCreateResponse = ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsCreateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsCreateResponse.WhatsappAuth;
5
+ export type AuthConnectionsCreateResponse = ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsCreateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsCreateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.SlackBotAuth;
6
6
  export declare namespace AuthConnectionsCreateResponse {
7
7
  interface Oauth2ClientCredentials extends ElevenLabs.OAuth2ClientCredsResponse {
8
8
  authType: "oauth2_client_credentials";
@@ -34,4 +34,7 @@ export declare namespace AuthConnectionsCreateResponse {
34
34
  interface WhatsappAuth extends ElevenLabs.WhatsAppAuthResponse {
35
35
  authType: "whatsapp_auth";
36
36
  }
37
+ interface SlackBotAuth extends ElevenLabs.SlackBotAuthResponse {
38
+ authType: "slack_bot_auth";
39
+ }
37
40
  }
@@ -0,0 +1,16 @@
1
+ import type * as ElevenLabs from "../../../../../index";
2
+ /**
3
+ * Updated auth connection fields
4
+ */
5
+ export type AuthConnectionsUpdateRequestBody = ElevenLabs.workspace.AuthConnectionsUpdateRequestBody.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsUpdateRequestBody.BasicAuth | ElevenLabs.workspace.AuthConnectionsUpdateRequestBody.Oauth2Jwt;
6
+ export declare namespace AuthConnectionsUpdateRequestBody {
7
+ interface Oauth2ClientCredentials extends ElevenLabs.UpdateOAuth2ClientCredsRequest {
8
+ authType: "oauth2_client_credentials";
9
+ }
10
+ interface BasicAuth extends ElevenLabs.UpdateBasicAuthRequest {
11
+ authType: "basic_auth";
12
+ }
13
+ interface Oauth2Jwt extends ElevenLabs.UpdateOAuth2JwtRequest {
14
+ authType: "oauth2_jwt";
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,40 @@
1
+ import type * as ElevenLabs from "../../../../../index";
2
+ /**
3
+ * The type of auth connection config
4
+ */
5
+ export type AuthConnectionsUpdateResponse = ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsUpdateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsUpdateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.SlackBotAuth;
6
+ export declare namespace AuthConnectionsUpdateResponse {
7
+ interface Oauth2ClientCredentials extends ElevenLabs.OAuth2ClientCredsResponse {
8
+ authType: "oauth2_client_credentials";
9
+ }
10
+ interface BasicAuth extends ElevenLabs.BasicAuthResponse {
11
+ authType: "basic_auth";
12
+ }
13
+ interface BearerAuth extends ElevenLabs.BearerAuthResponse {
14
+ authType: "bearer_auth";
15
+ }
16
+ interface Oauth2Jwt extends ElevenLabs.OAuth2JwtResponse {
17
+ authType: "oauth2_jwt";
18
+ }
19
+ interface PrivateKeyJwt extends ElevenLabs.PrivateKeyJwtResponse {
20
+ authType: "private_key_jwt";
21
+ }
22
+ interface Mtls extends ElevenLabs.MtlsAuthResponse {
23
+ authType: "mtls";
24
+ }
25
+ interface CustomHeaderAuth extends ElevenLabs.CustomHeaderAuthResponse {
26
+ authType: "custom_header_auth";
27
+ }
28
+ interface ApiIntegrationOauth2AuthCode extends ElevenLabs.ApiIntegrationOAuth2AuthCodeResponse {
29
+ authType: "api_integration_oauth2_auth_code";
30
+ }
31
+ interface ApiIntegrationOauth2CustomApp extends ElevenLabs.ApiIntegrationOAuth2CustomAppResponse {
32
+ authType: "api_integration_oauth2_custom_app";
33
+ }
34
+ interface WhatsappAuth extends ElevenLabs.WhatsAppAuthResponse {
35
+ authType: "whatsapp_auth";
36
+ }
37
+ interface SlackBotAuth extends ElevenLabs.SlackBotAuthResponse {
38
+ authType: "slack_bot_auth";
39
+ }
40
+ }
@@ -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 });
@@ -1,2 +1,4 @@
1
1
  export * from "./AuthConnectionsCreateRequestBody";
2
2
  export * from "./AuthConnectionsCreateResponse";
3
+ export * from "./AuthConnectionsUpdateRequestBody";
4
+ export * from "./AuthConnectionsUpdateResponse";
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AuthConnectionsCreateRequestBody"), exports);
18
18
  __exportStar(require("./AuthConnectionsCreateResponse"), exports);
19
+ __exportStar(require("./AuthConnectionsUpdateRequestBody"), exports);
20
+ __exportStar(require("./AuthConnectionsUpdateResponse"), exports);