@elevenlabs/elevenlabs-js 2.33.0 → 2.34.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 (306) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +8 -0
  3. package/Client.js +37 -0
  4. package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
  5. package/api/resources/conversationalAi/resources/agents/index.d.ts +1 -0
  6. package/api/resources/conversationalAi/resources/agents/index.js +1 -0
  7. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +2 -0
  8. package/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +2 -0
  9. package/api/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
  10. package/api/resources/conversationalAi/resources/agents/types/index.js +17 -0
  11. package/api/resources/conversationalAi/resources/index.d.ts +1 -0
  12. package/api/resources/conversationalAi/resources/index.js +1 -0
  13. package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +6 -2
  14. package/api/resources/conversationalAi/resources/secrets/client/Client.js +18 -6
  15. package/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.d.ts +13 -0
  16. package/api/resources/conversationalAi/resources/secrets/client/requests/index.d.ts +1 -0
  17. package/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
  18. package/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
  19. package/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.d.ts +12 -29
  20. package/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.js +49 -118
  21. package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
  22. package/api/resources/textToDialogue/client/Client.d.ts +1 -1
  23. package/api/resources/textToDialogue/client/Client.js +3 -7
  24. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +4 -4
  25. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  26. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +3 -3
  27. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  28. package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +32 -0
  29. package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +35 -0
  30. package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +32 -0
  31. package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +35 -0
  32. package/api/resources/textToDialogue/types/index.d.ts +2 -0
  33. package/api/resources/textToDialogue/types/index.js +2 -0
  34. package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +2 -2
  35. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
  36. package/api/resources/workspace/resources/invites/client/Client.d.ts +3 -3
  37. package/api/resources/workspace/resources/invites/client/Client.js +3 -3
  38. package/api/types/AlignmentGuardrail.d.ts +3 -0
  39. package/api/types/ApiIntegrationWebhookOverridesInput.d.ts +2 -0
  40. package/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +2 -0
  41. package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
  42. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
  43. package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
  44. package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
  45. package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
  46. package/api/types/ConversationTurnMetrics.d.ts +1 -0
  47. package/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
  48. package/api/types/GetUnitTestResponseModel.d.ts +2 -0
  49. package/api/types/GetWorkspaceSecretsResponseModel.d.ts +4 -0
  50. package/api/types/GuardrailsV1Input.d.ts +1 -0
  51. package/api/types/GuardrailsV1Output.d.ts +1 -0
  52. package/api/types/InvoiceResponse.d.ts +1 -1
  53. package/api/types/NonStreamingOutputFormats.d.ts +10 -0
  54. package/api/types/NonStreamingOutputFormats.js +13 -0
  55. package/api/types/PermissionType.d.ts +6 -0
  56. package/api/types/PermissionType.js +6 -0
  57. package/api/types/ProcedureDraftRef.d.ts +4 -0
  58. package/api/types/ProcedureVersionRef.d.ts +6 -0
  59. package/api/types/ProcedureVersionRef.js +3 -0
  60. package/api/types/ResponseFilterMode.d.ts +6 -0
  61. package/api/types/ResponseFilterMode.js +9 -0
  62. package/api/types/SongMetadata.d.ts +0 -4
  63. package/api/types/TurnConfig.d.ts +2 -0
  64. package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
  65. package/api/types/UnitTestCommonModel.d.ts +2 -0
  66. package/api/types/User.d.ts +2 -0
  67. package/api/types/index.d.ts +5 -1
  68. package/api/types/index.js +5 -1
  69. package/dist/BaseClient.js +2 -2
  70. package/dist/Client.d.ts +8 -0
  71. package/dist/Client.js +37 -0
  72. package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
  73. package/dist/api/resources/conversationalAi/resources/agents/index.d.ts +1 -0
  74. package/dist/api/resources/conversationalAi/resources/agents/index.js +1 -0
  75. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +2 -0
  76. package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +2 -0
  77. package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +3 -0
  78. package/dist/api/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
  79. package/dist/api/resources/conversationalAi/resources/agents/types/index.js +17 -0
  80. package/dist/api/resources/conversationalAi/resources/index.d.ts +1 -0
  81. package/dist/api/resources/conversationalAi/resources/index.js +1 -0
  82. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +6 -2
  83. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +18 -6
  84. package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.d.ts +13 -0
  85. package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.js +3 -0
  86. package/dist/api/resources/conversationalAi/resources/secrets/client/requests/index.d.ts +1 -0
  87. package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
  88. package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
  89. package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.d.ts +12 -29
  90. package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.js +49 -118
  91. package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
  92. package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -1
  93. package/dist/api/resources/textToDialogue/client/Client.js +3 -7
  94. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +4 -4
  95. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  96. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +3 -3
  97. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  98. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +32 -0
  99. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +35 -0
  100. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +32 -0
  101. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +35 -0
  102. package/dist/api/resources/textToDialogue/types/index.d.ts +2 -0
  103. package/dist/api/resources/textToDialogue/types/index.js +2 -0
  104. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +2 -2
  105. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
  106. package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +3 -3
  107. package/dist/api/resources/workspace/resources/invites/client/Client.js +3 -3
  108. package/dist/api/types/AlignmentGuardrail.d.ts +3 -0
  109. package/dist/api/types/AlignmentGuardrail.js +3 -0
  110. package/dist/api/types/ApiIntegrationWebhookOverridesInput.d.ts +2 -0
  111. package/dist/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +2 -0
  112. package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
  113. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
  114. package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
  115. package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
  116. package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
  117. package/dist/api/types/ConversationTurnMetrics.d.ts +1 -0
  118. package/dist/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
  119. package/dist/api/types/GetUnitTestResponseModel.d.ts +2 -0
  120. package/dist/api/types/GetWorkspaceSecretsResponseModel.d.ts +4 -0
  121. package/dist/api/types/GuardrailsV1Input.d.ts +1 -0
  122. package/dist/api/types/GuardrailsV1Output.d.ts +1 -0
  123. package/dist/api/types/InvoiceResponse.d.ts +1 -1
  124. package/dist/api/types/NonStreamingOutputFormats.d.ts +10 -0
  125. package/dist/api/types/NonStreamingOutputFormats.js +13 -0
  126. package/dist/api/types/PermissionType.d.ts +6 -0
  127. package/dist/api/types/PermissionType.js +6 -0
  128. package/dist/api/types/ProcedureDraftRef.d.ts +4 -0
  129. package/dist/api/types/ProcedureDraftRef.js +3 -0
  130. package/dist/api/types/ProcedureVersionRef.d.ts +6 -0
  131. package/dist/api/types/ProcedureVersionRef.js +3 -0
  132. package/dist/api/types/ResponseFilterMode.d.ts +6 -0
  133. package/dist/api/types/ResponseFilterMode.js +9 -0
  134. package/dist/api/types/SongMetadata.d.ts +0 -4
  135. package/dist/api/types/TurnConfig.d.ts +2 -0
  136. package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
  137. package/dist/api/types/UnitTestCommonModel.d.ts +2 -0
  138. package/dist/api/types/User.d.ts +2 -0
  139. package/dist/api/types/index.d.ts +5 -1
  140. package/dist/api/types/index.js +5 -1
  141. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
  142. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +2 -0
  143. package/dist/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
  144. package/dist/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
  145. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +1 -0
  146. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +1 -0
  147. package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +9 -0
  148. package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +41 -0
  149. package/dist/serialization/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
  150. package/dist/serialization/resources/conversationalAi/resources/agents/types/index.js +17 -0
  151. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
  152. package/dist/serialization/resources/conversationalAi/resources/index.js +1 -0
  153. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +1 -0
  154. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +1 -0
  155. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +1 -0
  156. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +1 -0
  157. package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
  158. package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +1 -3
  159. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +7 -0
  160. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +68 -0
  161. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
  162. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +68 -0
  163. package/dist/serialization/resources/textToDialogue/types/index.d.ts +2 -0
  164. package/dist/serialization/resources/textToDialogue/types/index.js +2 -0
  165. package/dist/serialization/types/AlignmentGuardrail.d.ts +9 -0
  166. package/dist/serialization/types/{ImportWhatsAppAccountResponse.js → AlignmentGuardrail.js} +3 -3
  167. package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +3 -0
  168. package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.js +3 -0
  169. package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +3 -0
  170. package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
  171. package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
  172. package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +1 -0
  173. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
  174. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
  175. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
  176. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +1 -0
  177. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
  178. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
  179. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
  180. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
  181. package/dist/serialization/types/ConversationTurnMetrics.d.ts +1 -0
  182. package/dist/serialization/types/ConversationTurnMetrics.js +1 -0
  183. package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
  184. package/dist/serialization/types/DirectPublishingReadResponseModel.js +1 -0
  185. package/dist/serialization/types/GetUnitTestResponseModel.d.ts +1 -0
  186. package/dist/serialization/types/GetUnitTestResponseModel.js +1 -0
  187. package/dist/serialization/types/GetWorkspaceSecretsResponseModel.d.ts +2 -0
  188. package/dist/serialization/types/GetWorkspaceSecretsResponseModel.js +2 -0
  189. package/dist/serialization/types/GuardrailsV1Input.d.ts +2 -0
  190. package/dist/serialization/types/GuardrailsV1Input.js +2 -0
  191. package/dist/serialization/types/GuardrailsV1Output.d.ts +2 -0
  192. package/dist/serialization/types/GuardrailsV1Output.js +2 -0
  193. package/dist/serialization/types/NonStreamingOutputFormats.d.ts +7 -0
  194. package/dist/serialization/types/NonStreamingOutputFormats.js +47 -0
  195. package/dist/serialization/types/PermissionType.d.ts +1 -1
  196. package/dist/serialization/types/PermissionType.js +6 -0
  197. package/dist/serialization/types/ProcedureDraftRef.d.ts +9 -0
  198. package/{serialization/types/ImportWhatsAppAccountResponse.js → dist/serialization/types/ProcedureDraftRef.js} +3 -3
  199. package/dist/serialization/types/ProcedureVersionRef.d.ts +10 -0
  200. package/dist/serialization/{resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → types/ProcedureVersionRef.js} +5 -6
  201. package/dist/serialization/types/ResponseFilterMode.d.ts +7 -0
  202. package/dist/serialization/types/ResponseFilterMode.js +39 -0
  203. package/dist/serialization/types/SongMetadata.d.ts +0 -2
  204. package/dist/serialization/types/SongMetadata.js +0 -2
  205. package/dist/serialization/types/TurnConfig.d.ts +1 -0
  206. package/dist/serialization/types/TurnConfig.js +1 -0
  207. package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
  208. package/dist/serialization/types/TurnConfigWorkflowOverride.js +1 -0
  209. package/dist/serialization/types/UnitTestCommonModel.d.ts +1 -0
  210. package/dist/serialization/types/UnitTestCommonModel.js +1 -0
  211. package/dist/serialization/types/User.d.ts +1 -0
  212. package/dist/serialization/types/User.js +1 -0
  213. package/dist/serialization/types/index.d.ts +5 -1
  214. package/dist/serialization/types/index.js +5 -1
  215. package/dist/version.d.ts +1 -1
  216. package/dist/version.js +1 -1
  217. package/package.json +1 -1
  218. package/reference.md +40 -96
  219. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
  220. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +2 -0
  221. package/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
  222. package/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
  223. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +1 -0
  224. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +1 -0
  225. package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +9 -0
  226. package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +41 -0
  227. package/serialization/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
  228. package/serialization/resources/conversationalAi/resources/agents/types/index.js +17 -0
  229. package/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
  230. package/serialization/resources/conversationalAi/resources/index.js +1 -0
  231. package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +1 -0
  232. package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +1 -0
  233. package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +1 -0
  234. package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +1 -0
  235. package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
  236. package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +1 -3
  237. package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +7 -0
  238. package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +68 -0
  239. package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
  240. package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +68 -0
  241. package/serialization/resources/textToDialogue/types/index.d.ts +2 -0
  242. package/serialization/resources/textToDialogue/types/index.js +2 -0
  243. package/serialization/types/AlignmentGuardrail.d.ts +9 -0
  244. package/serialization/types/AlignmentGuardrail.js +41 -0
  245. package/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +3 -0
  246. package/serialization/types/ApiIntegrationWebhookOverridesInput.js +3 -0
  247. package/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +3 -0
  248. package/serialization/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
  249. package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
  250. package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +1 -0
  251. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
  252. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
  253. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
  254. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +1 -0
  255. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
  256. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
  257. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
  258. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
  259. package/serialization/types/ConversationTurnMetrics.d.ts +1 -0
  260. package/serialization/types/ConversationTurnMetrics.js +1 -0
  261. package/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
  262. package/serialization/types/DirectPublishingReadResponseModel.js +1 -0
  263. package/serialization/types/GetUnitTestResponseModel.d.ts +1 -0
  264. package/serialization/types/GetUnitTestResponseModel.js +1 -0
  265. package/serialization/types/GetWorkspaceSecretsResponseModel.d.ts +2 -0
  266. package/serialization/types/GetWorkspaceSecretsResponseModel.js +2 -0
  267. package/serialization/types/GuardrailsV1Input.d.ts +2 -0
  268. package/serialization/types/GuardrailsV1Input.js +2 -0
  269. package/serialization/types/GuardrailsV1Output.d.ts +2 -0
  270. package/serialization/types/GuardrailsV1Output.js +2 -0
  271. package/serialization/types/NonStreamingOutputFormats.d.ts +7 -0
  272. package/serialization/types/NonStreamingOutputFormats.js +47 -0
  273. package/serialization/types/PermissionType.d.ts +1 -1
  274. package/serialization/types/PermissionType.js +6 -0
  275. package/serialization/types/ProcedureDraftRef.d.ts +9 -0
  276. package/serialization/types/ProcedureDraftRef.js +41 -0
  277. package/serialization/types/ProcedureVersionRef.d.ts +10 -0
  278. package/serialization/{resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → types/ProcedureVersionRef.js} +5 -6
  279. package/serialization/types/ResponseFilterMode.d.ts +7 -0
  280. package/serialization/types/ResponseFilterMode.js +39 -0
  281. package/serialization/types/SongMetadata.d.ts +0 -2
  282. package/serialization/types/SongMetadata.js +0 -2
  283. package/serialization/types/TurnConfig.d.ts +1 -0
  284. package/serialization/types/TurnConfig.js +1 -0
  285. package/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
  286. package/serialization/types/TurnConfigWorkflowOverride.js +1 -0
  287. package/serialization/types/UnitTestCommonModel.d.ts +1 -0
  288. package/serialization/types/UnitTestCommonModel.js +1 -0
  289. package/serialization/types/User.d.ts +1 -0
  290. package/serialization/types/User.js +1 -0
  291. package/serialization/types/index.d.ts +5 -1
  292. package/serialization/types/index.js +5 -1
  293. package/version.d.ts +1 -1
  294. package/version.js +1 -1
  295. package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -13
  296. package/api/types/ImportWhatsAppAccountResponse.d.ts +0 -3
  297. package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -13
  298. package/dist/api/types/ImportWhatsAppAccountResponse.d.ts +0 -3
  299. package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -11
  300. package/dist/serialization/types/ImportWhatsAppAccountResponse.d.ts +0 -9
  301. package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -11
  302. package/serialization/types/ImportWhatsAppAccountResponse.d.ts +0 -9
  303. /package/api/resources/conversationalAi/resources/{whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js} +0 -0
  304. /package/api/{types/ImportWhatsAppAccountResponse.js → resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.js} +0 -0
  305. /package/{dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → api/types/AlignmentGuardrail.js} +0 -0
  306. /package/{dist/api/types/ImportWhatsAppAccountResponse.js → api/types/ProcedureDraftRef.js} +0 -0
@@ -0,0 +1,39 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ResponseFilterMode = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.ResponseFilterMode = core.serialization.enum_(["all", "allow"]);
@@ -9,7 +9,5 @@ export declare namespace SongMetadata {
9
9
  genres: string[];
10
10
  languages: string[];
11
11
  is_explicit?: boolean | null;
12
- bpm?: number | null;
13
- time_signature?: string | null;
14
12
  }
15
13
  }
@@ -42,6 +42,4 @@ exports.SongMetadata = core.serialization.object({
42
42
  genres: core.serialization.list(core.serialization.string()),
43
43
  languages: core.serialization.list(core.serialization.string()),
44
44
  isExplicit: core.serialization.property("is_explicit", core.serialization.boolean().optional()),
45
- bpm: core.serialization.number().optional(),
46
- timeSignature: core.serialization.property("time_signature", core.serialization.string().optional()),
47
45
  });
@@ -13,5 +13,6 @@ export declare namespace TurnConfig {
13
13
  soft_timeout_config?: SoftTimeoutConfig.Raw | null;
14
14
  turn_eagerness?: TurnEagerness.Raw | null;
15
15
  spelling_patience?: SpellingPatience.Raw | null;
16
+ speculative_turn?: boolean | null;
16
17
  }
17
18
  }
@@ -46,4 +46,5 @@ exports.TurnConfig = core.serialization.object({
46
46
  softTimeoutConfig: core.serialization.property("soft_timeout_config", SoftTimeoutConfig_1.SoftTimeoutConfig.optional()),
47
47
  turnEagerness: core.serialization.property("turn_eagerness", TurnEagerness_1.TurnEagerness.optional()),
48
48
  spellingPatience: core.serialization.property("spelling_patience", SpellingPatience_1.SpellingPatience.optional()),
49
+ speculativeTurn: core.serialization.property("speculative_turn", core.serialization.boolean().optional()),
49
50
  });
@@ -13,5 +13,6 @@ export declare namespace TurnConfigWorkflowOverride {
13
13
  soft_timeout_config?: SoftTimeoutConfigWorkflowOverride.Raw | null;
14
14
  turn_eagerness?: TurnEagerness.Raw | null;
15
15
  spelling_patience?: SpellingPatience.Raw | null;
16
+ speculative_turn?: boolean | null;
16
17
  }
17
18
  }
@@ -46,4 +46,5 @@ exports.TurnConfigWorkflowOverride = core.serialization.object({
46
46
  softTimeoutConfig: core.serialization.property("soft_timeout_config", SoftTimeoutConfigWorkflowOverride_1.SoftTimeoutConfigWorkflowOverride.optional()),
47
47
  turnEagerness: core.serialization.property("turn_eagerness", TurnEagerness_1.TurnEagerness.optional()),
48
48
  spellingPatience: core.serialization.property("spelling_patience", SpellingPatience_1.SpellingPatience.optional()),
49
+ speculativeTurn: core.serialization.property("speculative_turn", core.serialization.boolean().optional()),
49
50
  });
@@ -16,6 +16,7 @@ export declare namespace UnitTestCommonModel {
16
16
  success_examples: AgentSuccessfulResponseExample.Raw[];
17
17
  failure_examples: AgentFailureResponseExample.Raw[];
18
18
  tool_call_parameters?: UnitTestToolCallEvaluationModelOutput.Raw | null;
19
+ check_any_tool_matches?: boolean | null;
19
20
  dynamic_variables?: Record<string, UnitTestCommonModelDynamicVariablesValue.Raw | null | undefined> | null;
20
21
  type?: UnitTestCommonModelType.Raw | null;
21
22
  from_conversation_metadata?: TestFromConversationMetadataOutput.Raw | null;
@@ -49,6 +49,7 @@ exports.UnitTestCommonModel = core.serialization.object({
49
49
  successExamples: core.serialization.property("success_examples", core.serialization.list(AgentSuccessfulResponseExample_1.AgentSuccessfulResponseExample)),
50
50
  failureExamples: core.serialization.property("failure_examples", core.serialization.list(AgentFailureResponseExample_1.AgentFailureResponseExample)),
51
51
  toolCallParameters: core.serialization.property("tool_call_parameters", UnitTestToolCallEvaluationModelOutput_1.UnitTestToolCallEvaluationModelOutput.optional()),
52
+ checkAnyToolMatches: core.serialization.property("check_any_tool_matches", core.serialization.boolean().optional()),
52
53
  dynamicVariables: core.serialization.property("dynamic_variables", core.serialization
53
54
  .record(core.serialization.string(), UnitTestCommonModelDynamicVariablesValue_1.UnitTestCommonModelDynamicVariablesValue.optional())
54
55
  .optional()),
@@ -12,6 +12,7 @@ export declare namespace User {
12
12
  can_use_delayed_payment_methods: boolean;
13
13
  is_onboarding_completed: boolean;
14
14
  is_onboarding_checklist_completed: boolean;
15
+ show_compliance_terms?: boolean | null;
15
16
  first_name?: string | null;
16
17
  is_api_key_hashed?: boolean | null;
17
18
  xi_api_key_preview?: string | null;
@@ -45,6 +45,7 @@ exports.User = core.serialization.object({
45
45
  canUseDelayedPaymentMethods: core.serialization.property("can_use_delayed_payment_methods", core.serialization.boolean()),
46
46
  isOnboardingCompleted: core.serialization.property("is_onboarding_completed", core.serialization.boolean()),
47
47
  isOnboardingChecklistCompleted: core.serialization.property("is_onboarding_checklist_completed", core.serialization.boolean()),
48
+ showComplianceTerms: core.serialization.property("show_compliance_terms", core.serialization.boolean().optional()),
48
49
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
49
50
  isApiKeyHashed: core.serialization.property("is_api_key_hashed", core.serialization.boolean().optional()),
50
51
  xiApiKeyPreview: core.serialization.property("xi_api_key_preview", core.serialization.string().optional()),
@@ -48,6 +48,7 @@ export * from "./AgentWorkflowResponseModel";
48
48
  export * from "./AgentWorkflowResponseModelNodesValue";
49
49
  export * from "./AgentWorkspaceOverridesInput";
50
50
  export * from "./AgentWorkspaceOverridesOutput";
51
+ export * from "./AlignmentGuardrail";
51
52
  export * from "./AllowedOutputFormats";
52
53
  export * from "./AllowlistItem";
53
54
  export * from "./ApiIntegrationWebhookOverridesInput";
@@ -446,7 +447,6 @@ export * from "./HistoryItemResponse";
446
447
  export * from "./HtmlExportOptions";
447
448
  export * from "./HttpValidationError";
448
449
  export * from "./ImageAvatar";
449
- export * from "./ImportWhatsAppAccountResponse";
450
450
  export * from "./InboundSipTrunkConfigRequestModel";
451
451
  export * from "./IntegrationType";
452
452
  export * from "./InvoiceResponse";
@@ -523,6 +523,7 @@ export * from "./ModerationGuardrailOutput";
523
523
  export * from "./MultichannelSpeechToTextResponseModel";
524
524
  export * from "./MultipartMusicResponse";
525
525
  export * from "./MusicPrompt";
526
+ export * from "./NonStreamingOutputFormats";
526
527
  export * from "./ObjectJsonSchemaPropertyInput";
527
528
  export * from "./ObjectJsonSchemaPropertyInputPropertiesValue";
528
529
  export * from "./ObjectJsonSchemaPropertyOutput";
@@ -564,6 +565,8 @@ export * from "./PostAgentAvatarResponseModel";
564
565
  export * from "./PostWorkspaceSecretResponseModel";
565
566
  export * from "./PreviewAudioDbModel";
566
567
  export * from "./PrivacyConfig";
568
+ export * from "./ProcedureDraftRef";
569
+ export * from "./ProcedureVersionRef";
567
570
  export * from "./ProjectCreationMetaResponseModel";
568
571
  export * from "./ProjectCreationMetaResponseModelStatus";
569
572
  export * from "./ProjectCreationMetaResponseModelType";
@@ -647,6 +650,7 @@ export * from "./ResourceAccessInfo";
647
650
  export * from "./ResourceAccessInfoRole";
648
651
  export * from "./ResourceMetadataResponseModel";
649
652
  export * from "./ResourceMetadataResponseModelAnonymousAccessLevelOverride";
653
+ export * from "./ResponseFilterMode";
650
654
  export * from "./ReviewResponseModel";
651
655
  export * from "./ReviewResponseModelRejectReasonsItem";
652
656
  export * from "./ReviewResponseModelReviewStatus";
@@ -64,6 +64,7 @@ __exportStar(require("./AgentWorkflowResponseModel"), exports);
64
64
  __exportStar(require("./AgentWorkflowResponseModelNodesValue"), exports);
65
65
  __exportStar(require("./AgentWorkspaceOverridesInput"), exports);
66
66
  __exportStar(require("./AgentWorkspaceOverridesOutput"), exports);
67
+ __exportStar(require("./AlignmentGuardrail"), exports);
67
68
  __exportStar(require("./AllowedOutputFormats"), exports);
68
69
  __exportStar(require("./AllowlistItem"), exports);
69
70
  __exportStar(require("./ApiIntegrationWebhookOverridesInput"), exports);
@@ -462,7 +463,6 @@ __exportStar(require("./HistoryItemResponse"), exports);
462
463
  __exportStar(require("./HtmlExportOptions"), exports);
463
464
  __exportStar(require("./HttpValidationError"), exports);
464
465
  __exportStar(require("./ImageAvatar"), exports);
465
- __exportStar(require("./ImportWhatsAppAccountResponse"), exports);
466
466
  __exportStar(require("./InboundSipTrunkConfigRequestModel"), exports);
467
467
  __exportStar(require("./IntegrationType"), exports);
468
468
  __exportStar(require("./InvoiceResponse"), exports);
@@ -539,6 +539,7 @@ __exportStar(require("./ModerationGuardrailOutput"), exports);
539
539
  __exportStar(require("./MultichannelSpeechToTextResponseModel"), exports);
540
540
  __exportStar(require("./MultipartMusicResponse"), exports);
541
541
  __exportStar(require("./MusicPrompt"), exports);
542
+ __exportStar(require("./NonStreamingOutputFormats"), exports);
542
543
  __exportStar(require("./ObjectJsonSchemaPropertyInput"), exports);
543
544
  __exportStar(require("./ObjectJsonSchemaPropertyInputPropertiesValue"), exports);
544
545
  __exportStar(require("./ObjectJsonSchemaPropertyOutput"), exports);
@@ -580,6 +581,8 @@ __exportStar(require("./PostAgentAvatarResponseModel"), exports);
580
581
  __exportStar(require("./PostWorkspaceSecretResponseModel"), exports);
581
582
  __exportStar(require("./PreviewAudioDbModel"), exports);
582
583
  __exportStar(require("./PrivacyConfig"), exports);
584
+ __exportStar(require("./ProcedureDraftRef"), exports);
585
+ __exportStar(require("./ProcedureVersionRef"), exports);
583
586
  __exportStar(require("./ProjectCreationMetaResponseModel"), exports);
584
587
  __exportStar(require("./ProjectCreationMetaResponseModelStatus"), exports);
585
588
  __exportStar(require("./ProjectCreationMetaResponseModelType"), exports);
@@ -663,6 +666,7 @@ __exportStar(require("./ResourceAccessInfo"), exports);
663
666
  __exportStar(require("./ResourceAccessInfoRole"), exports);
664
667
  __exportStar(require("./ResourceMetadataResponseModel"), exports);
665
668
  __exportStar(require("./ResourceMetadataResponseModelAnonymousAccessLevelOverride"), exports);
669
+ __exportStar(require("./ResponseFilterMode"), exports);
666
670
  __exportStar(require("./ReviewResponseModel"), exports);
667
671
  __exportStar(require("./ReviewResponseModelRejectReasonsItem"), exports);
668
672
  __exportStar(require("./ReviewResponseModelReviewStatus"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.33.0";
1
+ export declare const SDK_VERSION = "v2.34.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v2.33.0";
4
+ exports.SDK_VERSION = "v2.34.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/elevenlabs-js",
3
- "version": "v2.33.0",
3
+ "version": "v2.34.0",
4
4
  "private": false,
5
5
  "repository": "github:elevenlabs/elevenlabs-js",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -1073,7 +1073,7 @@ Generate dialogue from text with precise character-level timing information for
1073
1073
 
1074
1074
  ```typescript
1075
1075
  await client.textToDialogue.convertWithTimestamps({
1076
- outputFormat: "mp3_22050_32",
1076
+ outputFormat: "alaw_8000",
1077
1077
  inputs: [{
1078
1078
  text: "Hello, how are you?",
1079
1079
  voiceId: "bYTqZQo3Jz7LQtmGTgwi"
@@ -6832,7 +6832,7 @@ await client.conversationalAi.settings.update();
6832
6832
  </details>
6833
6833
 
6834
6834
  ## ConversationalAi Secrets
6835
- <details><summary><code>client.conversationalAi.secrets.<a href="/src/api/resources/conversationalAi/resources/secrets/client/Client.ts">list</a>() -> ElevenLabs.GetWorkspaceSecretsResponseModel</code></summary>
6835
+ <details><summary><code>client.conversationalAi.secrets.<a href="/src/api/resources/conversationalAi/resources/secrets/client/Client.ts">list</a>({ ...params }) -> ElevenLabs.GetWorkspaceSecretsResponseModel</code></summary>
6836
6836
  <dl>
6837
6837
  <dd>
6838
6838
 
@@ -6859,7 +6859,10 @@ Get all workspace secrets for the user
6859
6859
  <dd>
6860
6860
 
6861
6861
  ```typescript
6862
- await client.conversationalAi.secrets.list();
6862
+ await client.conversationalAi.secrets.list({
6863
+ pageSize: 1,
6864
+ cursor: "cursor"
6865
+ });
6863
6866
 
6864
6867
  ```
6865
6868
  </dd>
@@ -6875,6 +6878,14 @@ await client.conversationalAi.secrets.list();
6875
6878
  <dl>
6876
6879
  <dd>
6877
6880
 
6881
+ **request:** `ElevenLabs.conversationalAi.SecretsListRequest`
6882
+
6883
+ </dd>
6884
+ </dl>
6885
+
6886
+ <dl>
6887
+ <dd>
6888
+
6878
6889
  **requestOptions:** `SecretsClient.RequestOptions`
6879
6890
 
6880
6891
  </dd>
@@ -7866,62 +7877,7 @@ await client.conversationalAi.mcpServers.update("mcp_server_id");
7866
7877
  </details>
7867
7878
 
7868
7879
  ## ConversationalAi WhatsappAccounts
7869
- <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">list</a>() -> ElevenLabs.ListWhatsAppAccountsResponse</code></summary>
7870
- <dl>
7871
- <dd>
7872
-
7873
- #### 📝 Description
7874
-
7875
- <dl>
7876
- <dd>
7877
-
7878
- <dl>
7879
- <dd>
7880
-
7881
- List all WhatsApp accounts
7882
- </dd>
7883
- </dl>
7884
- </dd>
7885
- </dl>
7886
-
7887
- #### 🔌 Usage
7888
-
7889
- <dl>
7890
- <dd>
7891
-
7892
- <dl>
7893
- <dd>
7894
-
7895
- ```typescript
7896
- await client.conversationalAi.whatsappAccounts.list();
7897
-
7898
- ```
7899
- </dd>
7900
- </dl>
7901
- </dd>
7902
- </dl>
7903
-
7904
- #### ⚙️ Parameters
7905
-
7906
- <dl>
7907
- <dd>
7908
-
7909
- <dl>
7910
- <dd>
7911
-
7912
- **requestOptions:** `WhatsappAccountsClient.RequestOptions`
7913
-
7914
- </dd>
7915
- </dl>
7916
- </dd>
7917
- </dl>
7918
-
7919
-
7920
- </dd>
7921
- </dl>
7922
- </details>
7923
-
7924
- <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">import</a>({ ...params }) -> ElevenLabs.ImportWhatsAppAccountResponse</code></summary>
7880
+ <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">get</a>(phone_number_id) -> ElevenLabs.GetWhatsAppAccountResponse</code></summary>
7925
7881
  <dl>
7926
7882
  <dd>
7927
7883
 
@@ -7933,7 +7889,7 @@ await client.conversationalAi.whatsappAccounts.list();
7933
7889
  <dl>
7934
7890
  <dd>
7935
7891
 
7936
- Import a WhatsApp account
7892
+ Get a WhatsApp account
7937
7893
  </dd>
7938
7894
  </dl>
7939
7895
  </dd>
@@ -7948,11 +7904,7 @@ Import a WhatsApp account
7948
7904
  <dd>
7949
7905
 
7950
7906
  ```typescript
7951
- await client.conversationalAi.whatsappAccounts.import({
7952
- businessAccountId: "business_account_id",
7953
- phoneNumberId: "phone_number_id",
7954
- tokenCode: "token_code"
7955
- });
7907
+ await client.conversationalAi.whatsappAccounts.get("phone_number_id");
7956
7908
 
7957
7909
  ```
7958
7910
  </dd>
@@ -7968,7 +7920,7 @@ await client.conversationalAi.whatsappAccounts.import({
7968
7920
  <dl>
7969
7921
  <dd>
7970
7922
 
7971
- **request:** `ElevenLabs.conversationalAi.ImportWhatsAppAccountRequest`
7923
+ **phone_number_id:** `string`
7972
7924
 
7973
7925
  </dd>
7974
7926
  </dl>
@@ -7988,7 +7940,7 @@ await client.conversationalAi.whatsappAccounts.import({
7988
7940
  </dl>
7989
7941
  </details>
7990
7942
 
7991
- <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">get</a>(phone_number_id) -> ElevenLabs.GetWhatsAppAccountResponse</code></summary>
7943
+ <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">delete</a>(phone_number_id) -> unknown</code></summary>
7992
7944
  <dl>
7993
7945
  <dd>
7994
7946
 
@@ -8000,7 +7952,7 @@ await client.conversationalAi.whatsappAccounts.import({
8000
7952
  <dl>
8001
7953
  <dd>
8002
7954
 
8003
- Get a WhatsApp account
7955
+ Delete a WhatsApp account
8004
7956
  </dd>
8005
7957
  </dl>
8006
7958
  </dd>
@@ -8015,7 +7967,7 @@ Get a WhatsApp account
8015
7967
  <dd>
8016
7968
 
8017
7969
  ```typescript
8018
- await client.conversationalAi.whatsappAccounts.get("phone_number_id");
7970
+ await client.conversationalAi.whatsappAccounts.delete("phone_number_id");
8019
7971
 
8020
7972
  ```
8021
7973
  </dd>
@@ -8051,7 +8003,7 @@ await client.conversationalAi.whatsappAccounts.get("phone_number_id");
8051
8003
  </dl>
8052
8004
  </details>
8053
8005
 
8054
- <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">delete</a>(phone_number_id) -> unknown</code></summary>
8006
+ <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">update</a>(phone_number_id, { ...params }) -> unknown</code></summary>
8055
8007
  <dl>
8056
8008
  <dd>
8057
8009
 
@@ -8063,7 +8015,7 @@ await client.conversationalAi.whatsappAccounts.get("phone_number_id");
8063
8015
  <dl>
8064
8016
  <dd>
8065
8017
 
8066
- Delete a WhatsApp account
8018
+ Update a WhatsApp account
8067
8019
  </dd>
8068
8020
  </dl>
8069
8021
  </dd>
@@ -8078,7 +8030,7 @@ Delete a WhatsApp account
8078
8030
  <dd>
8079
8031
 
8080
8032
  ```typescript
8081
- await client.conversationalAi.whatsappAccounts.delete("phone_number_id");
8033
+ await client.conversationalAi.whatsappAccounts.update("phone_number_id");
8082
8034
 
8083
8035
  ```
8084
8036
  </dd>
@@ -8102,6 +8054,14 @@ await client.conversationalAi.whatsappAccounts.delete("phone_number_id");
8102
8054
  <dl>
8103
8055
  <dd>
8104
8056
 
8057
+ **request:** `ElevenLabs.conversationalAi.UpdateWhatsAppAccountRequest`
8058
+
8059
+ </dd>
8060
+ </dl>
8061
+
8062
+ <dl>
8063
+ <dd>
8064
+
8105
8065
  **requestOptions:** `WhatsappAccountsClient.RequestOptions`
8106
8066
 
8107
8067
  </dd>
@@ -8114,7 +8074,7 @@ await client.conversationalAi.whatsappAccounts.delete("phone_number_id");
8114
8074
  </dl>
8115
8075
  </details>
8116
8076
 
8117
- <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">update</a>(phone_number_id, { ...params }) -> unknown</code></summary>
8077
+ <details><summary><code>client.conversationalAi.whatsappAccounts.<a href="/src/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.ts">list</a>() -> ElevenLabs.ListWhatsAppAccountsResponse</code></summary>
8118
8078
  <dl>
8119
8079
  <dd>
8120
8080
 
@@ -8126,7 +8086,7 @@ await client.conversationalAi.whatsappAccounts.delete("phone_number_id");
8126
8086
  <dl>
8127
8087
  <dd>
8128
8088
 
8129
- Update a WhatsApp account
8089
+ List all WhatsApp accounts
8130
8090
  </dd>
8131
8091
  </dl>
8132
8092
  </dd>
@@ -8141,7 +8101,7 @@ Update a WhatsApp account
8141
8101
  <dd>
8142
8102
 
8143
8103
  ```typescript
8144
- await client.conversationalAi.whatsappAccounts.update("phone_number_id");
8104
+ await client.conversationalAi.whatsappAccounts.list();
8145
8105
 
8146
8106
  ```
8147
8107
  </dd>
@@ -8157,22 +8117,6 @@ await client.conversationalAi.whatsappAccounts.update("phone_number_id");
8157
8117
  <dl>
8158
8118
  <dd>
8159
8119
 
8160
- **phone_number_id:** `string`
8161
-
8162
- </dd>
8163
- </dl>
8164
-
8165
- <dl>
8166
- <dd>
8167
-
8168
- **request:** `ElevenLabs.conversationalAi.UpdateWhatsAppAccountRequest`
8169
-
8170
- </dd>
8171
- </dl>
8172
-
8173
- <dl>
8174
- <dd>
8175
-
8176
8120
  **requestOptions:** `WhatsappAccountsClient.RequestOptions`
8177
8121
 
8178
8122
  </dd>
@@ -16437,7 +16381,7 @@ await client.workspace.groups.search({
16437
16381
  <dl>
16438
16382
  <dd>
16439
16383
 
16440
- Sends an email invitation to join your workspace to the provided email. If the user doesn't have an account they will be prompted to create one. If the user accepts this invite they will be added as a user to your workspace and your subscription using one of your seats. This endpoint may only be called by workspace administrators. If the user is already in the workspace a 400 error will be returned.
16384
+ Sends an email invitation to join your workspace to the provided email. If the user doesn't have an account they will be prompted to create one. If the user accepts this invite they will be added as a user to your workspace and your subscription using one of your seats. This endpoint may only be called by workspace members with the WORKSPACE_MEMBERS_INVITE permission. If the user is already in the workspace a 400 error will be returned.
16441
16385
  </dd>
16442
16386
  </dl>
16443
16387
  </dd>
@@ -16502,7 +16446,7 @@ await client.workspace.invites.create({
16502
16446
  <dl>
16503
16447
  <dd>
16504
16448
 
16505
- Sends email invitations to join your workspace to the provided emails. Requires all email addresses to be part of a verified domain. If the users don't have an account they will be prompted to create one. If the users accept these invites they will be added as users to your workspace and your subscription using one of your seats. This endpoint may only be called by workspace administrators.
16449
+ Sends email invitations to join your workspace to the provided emails. Requires all email addresses to be part of a verified domain. If the users don't have an account they will be prompted to create one. If the users accept these invites they will be added as users to your workspace and your subscription using one of your seats. This endpoint may only be called by workspace members with the WORKSPACE_MEMBERS_INVITE permission.
16506
16450
  </dd>
16507
16451
  </dl>
16508
16452
  </dd>
@@ -16567,7 +16511,7 @@ await client.workspace.invites.createBatch({
16567
16511
  <dl>
16568
16512
  <dd>
16569
16513
 
16570
- Invalidates an existing email invitation. The invitation will still show up in the inbox it has been delivered to, but activating it to join the workspace won't work. This endpoint may only be called by workspace administrators.
16514
+ Invalidates an existing email invitation. The invitation will still show up in the inbox it has been delivered to, but activating it to join the workspace won't work. This endpoint may only be called by workspace members with the WORKSPACE_MEMBERS_INVITE permission.
16571
16515
  </dd>
16572
16516
  </dl>
16573
16517
  </dd>
@@ -16920,7 +16864,7 @@ await client.workspace.resources.unshare("resource_id", {
16920
16864
  <dl>
16921
16865
  <dd>
16922
16866
 
16923
- Removes a member from the specified group. This endpoint may only be called by workspace administrators.
16867
+ Removes a member from the specified group. Requires `group_members_manage` permission.
16924
16868
  </dd>
16925
16869
  </dl>
16926
16870
  </dd>
@@ -16993,7 +16937,7 @@ await client.workspace.groups.members.remove("group_id", {
16993
16937
  <dl>
16994
16938
  <dd>
16995
16939
 
16996
- Adds a member of your workspace to the specified group. This endpoint may only be called by workspace administrators.
16940
+ Adds a member of your workspace to the specified group. Requires `group_members_manage` permission.
16997
16941
  </dd>
16998
16942
  </dl>
16999
16943
  </dd>
@@ -4,6 +4,7 @@ import type * as serializers from "../../../../../../index";
4
4
  import { AgentPlatformSettingsRequestModel } from "../../../../../../types/AgentPlatformSettingsRequestModel";
5
5
  import { AgentWorkflowRequestModel } from "../../../../../../types/AgentWorkflowRequestModel";
6
6
  import { ConversationalConfig } from "../../../../../../types/ConversationalConfig";
7
+ import { BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem } from "../../types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem";
7
8
  export declare const UpdateAgentRequest: core.serialization.Schema<serializers.conversationalAi.UpdateAgentRequest.Raw, ElevenLabs.conversationalAi.UpdateAgentRequest>;
8
9
  export declare namespace UpdateAgentRequest {
9
10
  interface Raw {
@@ -13,5 +14,6 @@ export declare namespace UpdateAgentRequest {
13
14
  name?: string | null;
14
15
  tags?: string[] | null;
15
16
  version_description?: string | null;
17
+ procedure_refs?: BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.Raw[] | null;
16
18
  }
17
19
  }
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../../../../core"));
39
39
  const AgentPlatformSettingsRequestModel_1 = require("../../../../../../types/AgentPlatformSettingsRequestModel");
40
40
  const AgentWorkflowRequestModel_1 = require("../../../../../../types/AgentWorkflowRequestModel");
41
41
  const ConversationalConfig_1 = require("../../../../../../types/ConversationalConfig");
42
+ const BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem_1 = require("../../types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem");
42
43
  exports.UpdateAgentRequest = core.serialization.object({
43
44
  conversationConfig: core.serialization.property("conversation_config", ConversationalConfig_1.ConversationalConfig.optional()),
44
45
  platformSettings: core.serialization.property("platform_settings", AgentPlatformSettingsRequestModel_1.AgentPlatformSettingsRequestModel.optional()),
@@ -46,4 +47,5 @@ exports.UpdateAgentRequest = core.serialization.object({
46
47
  name: core.serialization.string().optional(),
47
48
  tags: core.serialization.list(core.serialization.string()).optional(),
48
49
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
50
+ procedureRefs: core.serialization.property("procedure_refs", core.serialization.list(BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem_1.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem).optional()),
49
51
  });
@@ -1,2 +1,3 @@
1
1
  export * from "./client";
2
2
  export * from "./resources";
3
+ export * from "./types";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
18
  __exportStar(require("./resources"), exports);
19
+ __exportStar(require("./types"), exports);
@@ -5,6 +5,7 @@ import { BranchProtectionStatus } from "../../../../../../../../types/BranchProt
5
5
  export declare const BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch: core.serialization.Schema<serializers.conversationalAi.agents.BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.Raw, ElevenLabs.conversationalAi.agents.BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch>;
6
6
  export declare namespace BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch {
7
7
  interface Raw {
8
+ name?: string | null;
8
9
  is_archived?: boolean | null;
9
10
  protection_status?: BranchProtectionStatus.Raw | null;
10
11
  }
@@ -38,6 +38,7 @@ exports.BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch = void 0
38
38
  const core = __importStar(require("../../../../../../../../../core"));
39
39
  const BranchProtectionStatus_1 = require("../../../../../../../../types/BranchProtectionStatus");
40
40
  exports.BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch = core.serialization.object({
41
+ name: core.serialization.string().optional(),
41
42
  isArchived: core.serialization.property("is_archived", core.serialization.boolean().optional()),
42
43
  protectionStatus: core.serialization.property("protection_status", BranchProtectionStatus_1.BranchProtectionStatus.optional()),
43
44
  });
@@ -0,0 +1,9 @@
1
+ import type * as ElevenLabs from "../../../../../../api/index";
2
+ import * as core from "../../../../../../core";
3
+ import type * as serializers from "../../../../../index";
4
+ import { ProcedureDraftRef } from "../../../../../types/ProcedureDraftRef";
5
+ import { ProcedureVersionRef } from "../../../../../types/ProcedureVersionRef";
6
+ export declare const BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem: core.serialization.Schema<serializers.conversationalAi.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.Raw, ElevenLabs.conversationalAi.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem>;
7
+ export declare namespace BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem {
8
+ type Raw = ProcedureVersionRef.Raw | ProcedureDraftRef.Raw;
9
+ }
@@ -0,0 +1,41 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem = void 0;
38
+ const core = __importStar(require("../../../../../../core"));
39
+ const ProcedureDraftRef_1 = require("../../../../../types/ProcedureDraftRef");
40
+ const ProcedureVersionRef_1 = require("../../../../../types/ProcedureVersionRef");
41
+ exports.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem = core.serialization.undiscriminatedUnion([ProcedureVersionRef_1.ProcedureVersionRef, ProcedureDraftRef_1.ProcedureDraftRef]);
@@ -0,0 +1 @@
1
+ export * from "./BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem";