@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
@@ -57,24 +57,25 @@ class WhatsappAccountsClient {
57
57
  this._options = (0, BaseClient_1.normalizeClientOptions)(options);
58
58
  }
59
59
  /**
60
- * List all WhatsApp accounts
60
+ * Get a WhatsApp account
61
61
  *
62
+ * @param {string} phone_number_id
62
63
  * @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
63
64
  *
64
65
  * @throws {@link ElevenLabs.UnprocessableEntityError}
65
66
  *
66
67
  * @example
67
- * await client.conversationalAi.whatsappAccounts.list()
68
+ * await client.conversationalAi.whatsappAccounts.get("phone_number_id")
68
69
  */
69
- list(requestOptions) {
70
- return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
70
+ get(phone_number_id, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__get(phone_number_id, requestOptions));
71
72
  }
72
- __list(requestOptions) {
73
+ __get(phone_number_id, requestOptions) {
73
74
  return __awaiter(this, void 0, void 0, function* () {
74
75
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
75
76
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
76
77
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
77
- 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/whatsapp-accounts"),
78
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/whatsapp-accounts/${core.url.encodePathParam(phone_number_id)}`),
78
79
  method: "GET",
79
80
  headers: _headers,
80
81
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -86,76 +87,7 @@ class WhatsappAccountsClient {
86
87
  });
87
88
  if (_response.ok) {
88
89
  return {
89
- data: serializers.ListWhatsAppAccountsResponse.parseOrThrow(_response.body, {
90
- unrecognizedObjectKeys: "passthrough",
91
- allowUnrecognizedUnionMembers: true,
92
- allowUnrecognizedEnumValues: true,
93
- breadcrumbsPrefix: ["response"],
94
- }),
95
- rawResponse: _response.rawResponse,
96
- };
97
- }
98
- if (_response.error.reason === "status-code") {
99
- switch (_response.error.statusCode) {
100
- case 422:
101
- throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
102
- unrecognizedObjectKeys: "passthrough",
103
- allowUnrecognizedUnionMembers: true,
104
- allowUnrecognizedEnumValues: true,
105
- breadcrumbsPrefix: ["response"],
106
- }), _response.rawResponse);
107
- default:
108
- throw new errors.ElevenLabsError({
109
- statusCode: _response.error.statusCode,
110
- body: _response.error.body,
111
- rawResponse: _response.rawResponse,
112
- });
113
- }
114
- }
115
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/whatsapp-accounts");
116
- });
117
- }
118
- /**
119
- * Import a WhatsApp account
120
- *
121
- * @param {ElevenLabs.conversationalAi.ImportWhatsAppAccountRequest} request
122
- * @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
123
- *
124
- * @throws {@link ElevenLabs.UnprocessableEntityError}
125
- *
126
- * @example
127
- * await client.conversationalAi.whatsappAccounts.import({
128
- * businessAccountId: "business_account_id",
129
- * phoneNumberId: "phone_number_id",
130
- * tokenCode: "token_code"
131
- * })
132
- */
133
- import(request, requestOptions) {
134
- return core.HttpResponsePromise.fromPromise(this.__import(request, requestOptions));
135
- }
136
- __import(request, requestOptions) {
137
- return __awaiter(this, void 0, void 0, function* () {
138
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
139
- 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);
140
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
141
- 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/whatsapp-accounts"),
142
- method: "POST",
143
- headers: _headers,
144
- contentType: "application/json",
145
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
146
- requestType: "json",
147
- body: serializers.conversationalAi.ImportWhatsAppAccountRequest.jsonOrThrow(request, {
148
- unrecognizedObjectKeys: "strip",
149
- }),
150
- 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,
151
- 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,
152
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
153
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
154
- logging: this._options.logging,
155
- });
156
- if (_response.ok) {
157
- return {
158
- data: serializers.ImportWhatsAppAccountResponse.parseOrThrow(_response.body, {
90
+ data: serializers.GetWhatsAppAccountResponse.parseOrThrow(_response.body, {
159
91
  unrecognizedObjectKeys: "passthrough",
160
92
  allowUnrecognizedUnionMembers: true,
161
93
  allowUnrecognizedEnumValues: true,
@@ -181,11 +113,11 @@ class WhatsappAccountsClient {
181
113
  });
182
114
  }
183
115
  }
184
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/whatsapp-accounts");
116
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/whatsapp-accounts/{phone_number_id}");
185
117
  });
186
118
  }
187
119
  /**
188
- * Get a WhatsApp account
120
+ * Delete a WhatsApp account
189
121
  *
190
122
  * @param {string} phone_number_id
191
123
  * @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -193,18 +125,18 @@ class WhatsappAccountsClient {
193
125
  * @throws {@link ElevenLabs.UnprocessableEntityError}
194
126
  *
195
127
  * @example
196
- * await client.conversationalAi.whatsappAccounts.get("phone_number_id")
128
+ * await client.conversationalAi.whatsappAccounts.delete("phone_number_id")
197
129
  */
198
- get(phone_number_id, requestOptions) {
199
- return core.HttpResponsePromise.fromPromise(this.__get(phone_number_id, requestOptions));
130
+ delete(phone_number_id, requestOptions) {
131
+ return core.HttpResponsePromise.fromPromise(this.__delete(phone_number_id, requestOptions));
200
132
  }
201
- __get(phone_number_id, requestOptions) {
133
+ __delete(phone_number_id, requestOptions) {
202
134
  return __awaiter(this, void 0, void 0, function* () {
203
135
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
204
136
  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);
205
137
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
206
138
  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/whatsapp-accounts/${core.url.encodePathParam(phone_number_id)}`),
207
- method: "GET",
139
+ method: "DELETE",
208
140
  headers: _headers,
209
141
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
210
142
  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,
@@ -214,15 +146,7 @@ class WhatsappAccountsClient {
214
146
  logging: this._options.logging,
215
147
  });
216
148
  if (_response.ok) {
217
- return {
218
- data: serializers.GetWhatsAppAccountResponse.parseOrThrow(_response.body, {
219
- unrecognizedObjectKeys: "passthrough",
220
- allowUnrecognizedUnionMembers: true,
221
- allowUnrecognizedEnumValues: true,
222
- breadcrumbsPrefix: ["response"],
223
- }),
224
- rawResponse: _response.rawResponse,
225
- };
149
+ return { data: _response.body, rawResponse: _response.rawResponse };
226
150
  }
227
151
  if (_response.error.reason === "status-code") {
228
152
  switch (_response.error.statusCode) {
@@ -241,32 +165,38 @@ class WhatsappAccountsClient {
241
165
  });
242
166
  }
243
167
  }
244
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/whatsapp-accounts/{phone_number_id}");
168
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/convai/whatsapp-accounts/{phone_number_id}");
245
169
  });
246
170
  }
247
171
  /**
248
- * Delete a WhatsApp account
172
+ * Update a WhatsApp account
249
173
  *
250
174
  * @param {string} phone_number_id
175
+ * @param {ElevenLabs.conversationalAi.UpdateWhatsAppAccountRequest} request
251
176
  * @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
252
177
  *
253
178
  * @throws {@link ElevenLabs.UnprocessableEntityError}
254
179
  *
255
180
  * @example
256
- * await client.conversationalAi.whatsappAccounts.delete("phone_number_id")
181
+ * await client.conversationalAi.whatsappAccounts.update("phone_number_id")
257
182
  */
258
- delete(phone_number_id, requestOptions) {
259
- return core.HttpResponsePromise.fromPromise(this.__delete(phone_number_id, requestOptions));
183
+ update(phone_number_id, request = {}, requestOptions) {
184
+ return core.HttpResponsePromise.fromPromise(this.__update(phone_number_id, request, requestOptions));
260
185
  }
261
- __delete(phone_number_id, requestOptions) {
262
- return __awaiter(this, void 0, void 0, function* () {
186
+ __update(phone_number_id_1) {
187
+ return __awaiter(this, arguments, void 0, function* (phone_number_id, request = {}, requestOptions) {
263
188
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
264
189
  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);
265
190
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
266
191
  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/whatsapp-accounts/${core.url.encodePathParam(phone_number_id)}`),
267
- method: "DELETE",
192
+ method: "PATCH",
268
193
  headers: _headers,
194
+ contentType: "application/json",
269
195
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
196
+ requestType: "json",
197
+ body: serializers.conversationalAi.UpdateWhatsAppAccountRequest.jsonOrThrow(request, {
198
+ unrecognizedObjectKeys: "strip",
199
+ }),
270
200
  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,
271
201
  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,
272
202
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -293,38 +223,31 @@ class WhatsappAccountsClient {
293
223
  });
294
224
  }
295
225
  }
296
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/convai/whatsapp-accounts/{phone_number_id}");
226
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/convai/whatsapp-accounts/{phone_number_id}");
297
227
  });
298
228
  }
299
229
  /**
300
- * Update a WhatsApp account
230
+ * List all WhatsApp accounts
301
231
  *
302
- * @param {string} phone_number_id
303
- * @param {ElevenLabs.conversationalAi.UpdateWhatsAppAccountRequest} request
304
232
  * @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
305
233
  *
306
234
  * @throws {@link ElevenLabs.UnprocessableEntityError}
307
235
  *
308
236
  * @example
309
- * await client.conversationalAi.whatsappAccounts.update("phone_number_id")
237
+ * await client.conversationalAi.whatsappAccounts.list()
310
238
  */
311
- update(phone_number_id, request = {}, requestOptions) {
312
- return core.HttpResponsePromise.fromPromise(this.__update(phone_number_id, request, requestOptions));
239
+ list(requestOptions) {
240
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
313
241
  }
314
- __update(phone_number_id_1) {
315
- return __awaiter(this, arguments, void 0, function* (phone_number_id, request = {}, requestOptions) {
242
+ __list(requestOptions) {
243
+ return __awaiter(this, void 0, void 0, function* () {
316
244
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
317
245
  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);
318
246
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
319
- 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/whatsapp-accounts/${core.url.encodePathParam(phone_number_id)}`),
320
- method: "PATCH",
247
+ 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/whatsapp-accounts"),
248
+ method: "GET",
321
249
  headers: _headers,
322
- contentType: "application/json",
323
250
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
324
- requestType: "json",
325
- body: serializers.conversationalAi.UpdateWhatsAppAccountRequest.jsonOrThrow(request, {
326
- unrecognizedObjectKeys: "strip",
327
- }),
328
251
  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,
329
252
  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,
330
253
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -332,7 +255,15 @@ class WhatsappAccountsClient {
332
255
  logging: this._options.logging,
333
256
  });
334
257
  if (_response.ok) {
335
- return { data: _response.body, rawResponse: _response.rawResponse };
258
+ return {
259
+ data: serializers.ListWhatsAppAccountsResponse.parseOrThrow(_response.body, {
260
+ unrecognizedObjectKeys: "passthrough",
261
+ allowUnrecognizedUnionMembers: true,
262
+ allowUnrecognizedEnumValues: true,
263
+ breadcrumbsPrefix: ["response"],
264
+ }),
265
+ rawResponse: _response.rawResponse,
266
+ };
336
267
  }
337
268
  if (_response.error.reason === "status-code") {
338
269
  switch (_response.error.statusCode) {
@@ -351,7 +282,7 @@ class WhatsappAccountsClient {
351
282
  });
352
283
  }
353
284
  }
354
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/convai/whatsapp-accounts/{phone_number_id}");
285
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/whatsapp-accounts");
355
286
  });
356
287
  }
357
288
  }
@@ -1,2 +1 @@
1
- export type { ImportWhatsAppAccountRequest } from "./ImportWhatsAppAccountRequest";
2
1
  export type { UpdateWhatsAppAccountRequest } from "./UpdateWhatsAppAccountRequest";
@@ -37,7 +37,7 @@ export declare class TextToDialogueClient {
37
37
  *
38
38
  * @example
39
39
  * await client.textToDialogue.convertWithTimestamps({
40
- * outputFormat: "mp3_22050_32",
40
+ * outputFormat: "alaw_8000",
41
41
  * inputs: [{
42
42
  * text: "Hello, how are you?",
43
43
  * voiceId: "bYTqZQo3Jz7LQtmGTgwi"
@@ -80,9 +80,7 @@ class TextToDialogueClient {
80
80
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
81
81
  const _queryParams = {};
82
82
  if (outputFormat != null) {
83
- _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
84
- unrecognizedObjectKeys: "strip",
85
- });
83
+ _queryParams.output_format = serializers.TextToDialogueConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
86
84
  }
87
85
  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);
88
86
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -268,7 +266,7 @@ class TextToDialogueClient {
268
266
  *
269
267
  * @example
270
268
  * await client.textToDialogue.convertWithTimestamps({
271
- * outputFormat: "mp3_22050_32",
269
+ * outputFormat: "alaw_8000",
272
270
  * inputs: [{
273
271
  * text: "Hello, how are you?",
274
272
  * voiceId: "bYTqZQo3Jz7LQtmGTgwi"
@@ -287,9 +285,7 @@ class TextToDialogueClient {
287
285
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
288
286
  const _queryParams = {};
289
287
  if (outputFormat != null) {
290
- _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
291
- unrecognizedObjectKeys: "strip",
292
- });
288
+ _queryParams.output_format = serializers.TextToDialogueConvertWithTimestampsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
293
289
  }
294
290
  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);
295
291
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * outputFormat: "mp3_22050_32",
5
+ * outputFormat: "alaw_8000",
6
6
  * inputs: [{
7
7
  * text: "Hello, how are you?",
8
8
  * voiceId: "bYTqZQo3Jz7LQtmGTgwi"
@@ -13,9 +13,9 @@ import type * as ElevenLabs from "../../../../index";
13
13
  * }
14
14
  */
15
15
  export interface BodyTextToDialogueFullWithTimestamps {
16
- /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
17
- outputFormat?: ElevenLabs.AllowedOutputFormats;
18
- /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. */
16
+ /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
17
+ outputFormat?: ElevenLabs.TextToDialogueConvertWithTimestampsRequestOutputFormat;
18
+ /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. */
19
19
  inputs: ElevenLabs.DialogueInput[];
20
20
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
21
21
  modelId?: string;
@@ -14,7 +14,7 @@ import type * as ElevenLabs from "../../../../index";
14
14
  export interface BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost {
15
15
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
16
16
  outputFormat?: ElevenLabs.AllowedOutputFormats;
17
- /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. */
17
+ /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. */
18
18
  inputs: ElevenLabs.DialogueInput[];
19
19
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
20
20
  modelId?: string;
@@ -12,9 +12,9 @@ import type * as ElevenLabs from "../../../../index";
12
12
  * }
13
13
  */
14
14
  export interface BodyTextToDialogueMultiVoiceV1TextToDialoguePost {
15
- /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
16
- outputFormat?: ElevenLabs.AllowedOutputFormats;
17
- /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. */
15
+ /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
16
+ outputFormat?: ElevenLabs.TextToDialogueConvertRequestOutputFormat;
17
+ /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. */
18
18
  inputs: ElevenLabs.DialogueInput[];
19
19
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
20
20
  modelId?: string;
@@ -15,7 +15,7 @@ import type * as ElevenLabs from "../../../../index";
15
15
  export interface BodyTextToDialogueStreamWithTimestamps {
16
16
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
17
17
  outputFormat?: ElevenLabs.AllowedOutputFormats;
18
- /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. */
18
+ /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. */
19
19
  inputs: ElevenLabs.DialogueInput[];
20
20
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
21
21
  modelId?: string;
@@ -0,0 +1,32 @@
1
+ /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
2
+ export declare const TextToDialogueConvertRequestOutputFormat: {
3
+ readonly Alaw8000: "alaw_8000";
4
+ readonly Mp32205032: "mp3_22050_32";
5
+ readonly Mp32400048: "mp3_24000_48";
6
+ readonly Mp344100128: "mp3_44100_128";
7
+ readonly Mp344100192: "mp3_44100_192";
8
+ readonly Mp34410032: "mp3_44100_32";
9
+ readonly Mp34410064: "mp3_44100_64";
10
+ readonly Mp34410096: "mp3_44100_96";
11
+ readonly Opus48000128: "opus_48000_128";
12
+ readonly Opus48000192: "opus_48000_192";
13
+ readonly Opus4800032: "opus_48000_32";
14
+ readonly Opus4800064: "opus_48000_64";
15
+ readonly Opus4800096: "opus_48000_96";
16
+ readonly Pcm16000: "pcm_16000";
17
+ readonly Pcm22050: "pcm_22050";
18
+ readonly Pcm24000: "pcm_24000";
19
+ readonly Pcm32000: "pcm_32000";
20
+ readonly Pcm44100: "pcm_44100";
21
+ readonly Pcm48000: "pcm_48000";
22
+ readonly Pcm8000: "pcm_8000";
23
+ readonly Ulaw8000: "ulaw_8000";
24
+ readonly Wav16000: "wav_16000";
25
+ readonly Wav22050: "wav_22050";
26
+ readonly Wav24000: "wav_24000";
27
+ readonly Wav32000: "wav_32000";
28
+ readonly Wav44100: "wav_44100";
29
+ readonly Wav48000: "wav_48000";
30
+ readonly Wav8000: "wav_8000";
31
+ };
32
+ export type TextToDialogueConvertRequestOutputFormat = (typeof TextToDialogueConvertRequestOutputFormat)[keyof typeof TextToDialogueConvertRequestOutputFormat];
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TextToDialogueConvertRequestOutputFormat = void 0;
5
+ /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
6
+ exports.TextToDialogueConvertRequestOutputFormat = {
7
+ Alaw8000: "alaw_8000",
8
+ Mp32205032: "mp3_22050_32",
9
+ Mp32400048: "mp3_24000_48",
10
+ Mp344100128: "mp3_44100_128",
11
+ Mp344100192: "mp3_44100_192",
12
+ Mp34410032: "mp3_44100_32",
13
+ Mp34410064: "mp3_44100_64",
14
+ Mp34410096: "mp3_44100_96",
15
+ Opus48000128: "opus_48000_128",
16
+ Opus48000192: "opus_48000_192",
17
+ Opus4800032: "opus_48000_32",
18
+ Opus4800064: "opus_48000_64",
19
+ Opus4800096: "opus_48000_96",
20
+ Pcm16000: "pcm_16000",
21
+ Pcm22050: "pcm_22050",
22
+ Pcm24000: "pcm_24000",
23
+ Pcm32000: "pcm_32000",
24
+ Pcm44100: "pcm_44100",
25
+ Pcm48000: "pcm_48000",
26
+ Pcm8000: "pcm_8000",
27
+ Ulaw8000: "ulaw_8000",
28
+ Wav16000: "wav_16000",
29
+ Wav22050: "wav_22050",
30
+ Wav24000: "wav_24000",
31
+ Wav32000: "wav_32000",
32
+ Wav44100: "wav_44100",
33
+ Wav48000: "wav_48000",
34
+ Wav8000: "wav_8000",
35
+ };
@@ -0,0 +1,32 @@
1
+ /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
2
+ export declare const TextToDialogueConvertWithTimestampsRequestOutputFormat: {
3
+ readonly Alaw8000: "alaw_8000";
4
+ readonly Mp32205032: "mp3_22050_32";
5
+ readonly Mp32400048: "mp3_24000_48";
6
+ readonly Mp344100128: "mp3_44100_128";
7
+ readonly Mp344100192: "mp3_44100_192";
8
+ readonly Mp34410032: "mp3_44100_32";
9
+ readonly Mp34410064: "mp3_44100_64";
10
+ readonly Mp34410096: "mp3_44100_96";
11
+ readonly Opus48000128: "opus_48000_128";
12
+ readonly Opus48000192: "opus_48000_192";
13
+ readonly Opus4800032: "opus_48000_32";
14
+ readonly Opus4800064: "opus_48000_64";
15
+ readonly Opus4800096: "opus_48000_96";
16
+ readonly Pcm16000: "pcm_16000";
17
+ readonly Pcm22050: "pcm_22050";
18
+ readonly Pcm24000: "pcm_24000";
19
+ readonly Pcm32000: "pcm_32000";
20
+ readonly Pcm44100: "pcm_44100";
21
+ readonly Pcm48000: "pcm_48000";
22
+ readonly Pcm8000: "pcm_8000";
23
+ readonly Ulaw8000: "ulaw_8000";
24
+ readonly Wav16000: "wav_16000";
25
+ readonly Wav22050: "wav_22050";
26
+ readonly Wav24000: "wav_24000";
27
+ readonly Wav32000: "wav_32000";
28
+ readonly Wav44100: "wav_44100";
29
+ readonly Wav48000: "wav_48000";
30
+ readonly Wav8000: "wav_8000";
31
+ };
32
+ export type TextToDialogueConvertWithTimestampsRequestOutputFormat = (typeof TextToDialogueConvertWithTimestampsRequestOutputFormat)[keyof typeof TextToDialogueConvertWithTimestampsRequestOutputFormat];
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TextToDialogueConvertWithTimestampsRequestOutputFormat = void 0;
5
+ /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
6
+ exports.TextToDialogueConvertWithTimestampsRequestOutputFormat = {
7
+ Alaw8000: "alaw_8000",
8
+ Mp32205032: "mp3_22050_32",
9
+ Mp32400048: "mp3_24000_48",
10
+ Mp344100128: "mp3_44100_128",
11
+ Mp344100192: "mp3_44100_192",
12
+ Mp34410032: "mp3_44100_32",
13
+ Mp34410064: "mp3_44100_64",
14
+ Mp34410096: "mp3_44100_96",
15
+ Opus48000128: "opus_48000_128",
16
+ Opus48000192: "opus_48000_192",
17
+ Opus4800032: "opus_48000_32",
18
+ Opus4800064: "opus_48000_64",
19
+ Opus4800096: "opus_48000_96",
20
+ Pcm16000: "pcm_16000",
21
+ Pcm22050: "pcm_22050",
22
+ Pcm24000: "pcm_24000",
23
+ Pcm32000: "pcm_32000",
24
+ Pcm44100: "pcm_44100",
25
+ Pcm48000: "pcm_48000",
26
+ Pcm8000: "pcm_8000",
27
+ Ulaw8000: "ulaw_8000",
28
+ Wav16000: "wav_16000",
29
+ Wav22050: "wav_22050",
30
+ Wav24000: "wav_24000",
31
+ Wav32000: "wav_32000",
32
+ Wav44100: "wav_44100",
33
+ Wav48000: "wav_48000",
34
+ Wav8000: "wav_8000",
35
+ };
@@ -2,3 +2,5 @@ export * from "./BodyTextToDialogueFullWithTimestampsApplyTextNormalization";
2
2
  export * from "./BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization";
3
3
  export * from "./BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization";
4
4
  export * from "./BodyTextToDialogueStreamWithTimestampsApplyTextNormalization";
5
+ export * from "./TextToDialogueConvertRequestOutputFormat";
6
+ export * from "./TextToDialogueConvertWithTimestampsRequestOutputFormat";
@@ -18,3 +18,5 @@ __exportStar(require("./BodyTextToDialogueFullWithTimestampsApplyTextNormalizati
18
18
  __exportStar(require("./BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization"), exports);
19
19
  __exportStar(require("./BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization"), exports);
20
20
  __exportStar(require("./BodyTextToDialogueStreamWithTimestampsApplyTextNormalization"), exports);
21
+ __exportStar(require("./TextToDialogueConvertRequestOutputFormat"), exports);
22
+ __exportStar(require("./TextToDialogueConvertWithTimestampsRequestOutputFormat"), exports);
@@ -11,7 +11,7 @@ export declare class MembersClient {
11
11
  protected readonly _options: NormalizedClientOptions<MembersClient.Options>;
12
12
  constructor(options?: MembersClient.Options);
13
13
  /**
14
- * Removes a member from the specified group. This endpoint may only be called by workspace administrators.
14
+ * Removes a member from the specified group. Requires `group_members_manage` permission.
15
15
  *
16
16
  * @param {string} group_id - The ID of the target group.
17
17
  * @param {ElevenLabs.workspace.groups.BodyDeleteMemberFromUserGroupV1WorkspaceGroupsGroupIdMembersRemovePost} request
@@ -27,7 +27,7 @@ export declare class MembersClient {
27
27
  remove(group_id: string, request: ElevenLabs.workspace.groups.BodyDeleteMemberFromUserGroupV1WorkspaceGroupsGroupIdMembersRemovePost, requestOptions?: MembersClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteWorkspaceGroupMemberResponseModel>;
28
28
  private __remove;
29
29
  /**
30
- * Adds a member of your workspace to the specified group. This endpoint may only be called by workspace administrators.
30
+ * Adds a member of your workspace to the specified group. Requires `group_members_manage` permission.
31
31
  *
32
32
  * @param {string} group_id - The ID of the target group.
33
33
  * @param {ElevenLabs.workspace.groups.AddMemberToGroupRequest} request
@@ -57,7 +57,7 @@ class MembersClient {
57
57
  this._options = (0, BaseClient_1.normalizeClientOptions)(options);
58
58
  }
59
59
  /**
60
- * Removes a member from the specified group. This endpoint may only be called by workspace administrators.
60
+ * Removes a member from the specified group. Requires `group_members_manage` permission.
61
61
  *
62
62
  * @param {string} group_id - The ID of the target group.
63
63
  * @param {ElevenLabs.workspace.groups.BodyDeleteMemberFromUserGroupV1WorkspaceGroupsGroupIdMembersRemovePost} request
@@ -123,7 +123,7 @@ class MembersClient {
123
123
  });
124
124
  }
125
125
  /**
126
- * Adds a member of your workspace to the specified group. This endpoint may only be called by workspace administrators.
126
+ * Adds a member of your workspace to the specified group. Requires `group_members_manage` permission.
127
127
  *
128
128
  * @param {string} group_id - The ID of the target group.
129
129
  * @param {ElevenLabs.workspace.groups.AddMemberToGroupRequest} request
@@ -11,7 +11,7 @@ export declare class InvitesClient {
11
11
  protected readonly _options: NormalizedClientOptions<InvitesClient.Options>;
12
12
  constructor(options?: InvitesClient.Options);
13
13
  /**
14
- * 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.
14
+ * 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.
15
15
  *
16
16
  * @param {ElevenLabs.workspace.InviteUserRequest} request
17
17
  * @param {InvitesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -26,7 +26,7 @@ export declare class InvitesClient {
26
26
  create(request: ElevenLabs.workspace.InviteUserRequest, requestOptions?: InvitesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddWorkspaceInviteResponseModel>;
27
27
  private __create;
28
28
  /**
29
- * 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.
29
+ * 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.
30
30
  *
31
31
  * @param {ElevenLabs.workspace.BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost} request
32
32
  * @param {InvitesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -41,7 +41,7 @@ export declare class InvitesClient {
41
41
  createBatch(request: ElevenLabs.workspace.BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost, requestOptions?: InvitesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddWorkspaceInviteResponseModel>;
42
42
  private __createBatch;
43
43
  /**
44
- * 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.
44
+ * 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.
45
45
  *
46
46
  * @param {ElevenLabs.workspace.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete} request
47
47
  * @param {InvitesClient.RequestOptions} requestOptions - Request-specific configuration.