@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,68 @@
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.TextToDialogueConvertRequestOutputFormat = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.TextToDialogueConvertRequestOutputFormat = core.serialization.enum_([
40
+ "alaw_8000",
41
+ "mp3_22050_32",
42
+ "mp3_24000_48",
43
+ "mp3_44100_128",
44
+ "mp3_44100_192",
45
+ "mp3_44100_32",
46
+ "mp3_44100_64",
47
+ "mp3_44100_96",
48
+ "opus_48000_128",
49
+ "opus_48000_192",
50
+ "opus_48000_32",
51
+ "opus_48000_64",
52
+ "opus_48000_96",
53
+ "pcm_16000",
54
+ "pcm_22050",
55
+ "pcm_24000",
56
+ "pcm_32000",
57
+ "pcm_44100",
58
+ "pcm_48000",
59
+ "pcm_8000",
60
+ "ulaw_8000",
61
+ "wav_16000",
62
+ "wav_22050",
63
+ "wav_24000",
64
+ "wav_32000",
65
+ "wav_44100",
66
+ "wav_48000",
67
+ "wav_8000",
68
+ ]);
@@ -0,0 +1,7 @@
1
+ import type * as ElevenLabs from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const TextToDialogueConvertWithTimestampsRequestOutputFormat: core.serialization.Schema<serializers.TextToDialogueConvertWithTimestampsRequestOutputFormat.Raw, ElevenLabs.TextToDialogueConvertWithTimestampsRequestOutputFormat>;
5
+ export declare namespace TextToDialogueConvertWithTimestampsRequestOutputFormat {
6
+ type Raw = "alaw_8000" | "mp3_22050_32" | "mp3_24000_48" | "mp3_44100_128" | "mp3_44100_192" | "mp3_44100_32" | "mp3_44100_64" | "mp3_44100_96" | "opus_48000_128" | "opus_48000_192" | "opus_48000_32" | "opus_48000_64" | "opus_48000_96" | "pcm_16000" | "pcm_22050" | "pcm_24000" | "pcm_32000" | "pcm_44100" | "pcm_48000" | "pcm_8000" | "ulaw_8000" | "wav_16000" | "wav_22050" | "wav_24000" | "wav_32000" | "wav_44100" | "wav_48000" | "wav_8000";
7
+ }
@@ -0,0 +1,68 @@
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.TextToDialogueConvertWithTimestampsRequestOutputFormat = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.TextToDialogueConvertWithTimestampsRequestOutputFormat = core.serialization.enum_([
40
+ "alaw_8000",
41
+ "mp3_22050_32",
42
+ "mp3_24000_48",
43
+ "mp3_44100_128",
44
+ "mp3_44100_192",
45
+ "mp3_44100_32",
46
+ "mp3_44100_64",
47
+ "mp3_44100_96",
48
+ "opus_48000_128",
49
+ "opus_48000_192",
50
+ "opus_48000_32",
51
+ "opus_48000_64",
52
+ "opus_48000_96",
53
+ "pcm_16000",
54
+ "pcm_22050",
55
+ "pcm_24000",
56
+ "pcm_32000",
57
+ "pcm_44100",
58
+ "pcm_48000",
59
+ "pcm_8000",
60
+ "ulaw_8000",
61
+ "wav_16000",
62
+ "wav_22050",
63
+ "wav_24000",
64
+ "wav_32000",
65
+ "wav_44100",
66
+ "wav_48000",
67
+ "wav_8000",
68
+ ]);
@@ -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);
@@ -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
+ export declare const AlignmentGuardrail: core.serialization.ObjectSchema<serializers.AlignmentGuardrail.Raw, ElevenLabs.AlignmentGuardrail>;
5
+ export declare namespace AlignmentGuardrail {
6
+ interface Raw {
7
+ is_enabled?: boolean | null;
8
+ }
9
+ }
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.ImportWhatsAppAccountResponse = void 0;
37
+ exports.AlignmentGuardrail = void 0;
38
38
  const core = __importStar(require("../../core"));
39
- exports.ImportWhatsAppAccountResponse = core.serialization.object({
40
- phoneNumberId: core.serialization.property("phone_number_id", core.serialization.string()),
39
+ exports.AlignmentGuardrail = core.serialization.object({
40
+ isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()),
41
41
  });
@@ -4,6 +4,7 @@ import * as serializers from "../index";
4
4
  import { ApiIntegrationWebhookOverridesInputRequestHeadersValue } from "./ApiIntegrationWebhookOverridesInputRequestHeadersValue";
5
5
  import { LiteralOverride } from "./LiteralOverride";
6
6
  import { QueryOverride } from "./QueryOverride";
7
+ import { ResponseFilterMode } from "./ResponseFilterMode";
7
8
  export declare const ApiIntegrationWebhookOverridesInput: core.serialization.ObjectSchema<serializers.ApiIntegrationWebhookOverridesInput.Raw, ElevenLabs.ApiIntegrationWebhookOverridesInput>;
8
9
  export declare namespace ApiIntegrationWebhookOverridesInput {
9
10
  interface Raw {
@@ -11,5 +12,7 @@ export declare namespace ApiIntegrationWebhookOverridesInput {
11
12
  query_params_schema?: QueryOverride.Raw | null;
12
13
  request_body_schema?: serializers.ObjectOverrideInput.Raw | null;
13
14
  request_headers?: Record<string, ApiIntegrationWebhookOverridesInputRequestHeadersValue.Raw | null | undefined> | null;
15
+ response_filter_mode?: ResponseFilterMode.Raw | null;
16
+ response_filters?: string[] | null;
14
17
  }
15
18
  }
@@ -40,6 +40,7 @@ const serializers = __importStar(require("../index"));
40
40
  const ApiIntegrationWebhookOverridesInputRequestHeadersValue_1 = require("./ApiIntegrationWebhookOverridesInputRequestHeadersValue");
41
41
  const LiteralOverride_1 = require("./LiteralOverride");
42
42
  const QueryOverride_1 = require("./QueryOverride");
43
+ const ResponseFilterMode_1 = require("./ResponseFilterMode");
43
44
  exports.ApiIntegrationWebhookOverridesInput = core.serialization.object({
44
45
  pathParamsSchema: core.serialization.property("path_params_schema", core.serialization.record(core.serialization.string(), LiteralOverride_1.LiteralOverride.optional()).optional()),
45
46
  queryParamsSchema: core.serialization.property("query_params_schema", QueryOverride_1.QueryOverride.optional()),
@@ -47,4 +48,6 @@ exports.ApiIntegrationWebhookOverridesInput = core.serialization.object({
47
48
  requestHeaders: core.serialization.property("request_headers", core.serialization
48
49
  .record(core.serialization.string(), ApiIntegrationWebhookOverridesInputRequestHeadersValue_1.ApiIntegrationWebhookOverridesInputRequestHeadersValue.optional())
49
50
  .optional()),
51
+ responseFilterMode: core.serialization.property("response_filter_mode", ResponseFilterMode_1.ResponseFilterMode.optional()),
52
+ responseFilters: core.serialization.property("response_filters", core.serialization.list(core.serialization.string()).optional()),
50
53
  });
@@ -4,6 +4,7 @@ import * as serializers from "../index";
4
4
  import { ApiIntegrationWebhookOverridesOutputRequestHeadersValue } from "./ApiIntegrationWebhookOverridesOutputRequestHeadersValue";
5
5
  import { LiteralOverride } from "./LiteralOverride";
6
6
  import { QueryOverride } from "./QueryOverride";
7
+ import { ResponseFilterMode } from "./ResponseFilterMode";
7
8
  export declare const ApiIntegrationWebhookOverridesOutput: core.serialization.ObjectSchema<serializers.ApiIntegrationWebhookOverridesOutput.Raw, ElevenLabs.ApiIntegrationWebhookOverridesOutput>;
8
9
  export declare namespace ApiIntegrationWebhookOverridesOutput {
9
10
  interface Raw {
@@ -11,5 +12,7 @@ export declare namespace ApiIntegrationWebhookOverridesOutput {
11
12
  query_params_schema?: QueryOverride.Raw | null;
12
13
  request_body_schema?: serializers.ObjectOverrideOutput.Raw | null;
13
14
  request_headers?: Record<string, ApiIntegrationWebhookOverridesOutputRequestHeadersValue.Raw | null | undefined> | null;
15
+ response_filter_mode?: ResponseFilterMode.Raw | null;
16
+ response_filters?: string[] | null;
14
17
  }
15
18
  }
@@ -40,6 +40,7 @@ const serializers = __importStar(require("../index"));
40
40
  const ApiIntegrationWebhookOverridesOutputRequestHeadersValue_1 = require("./ApiIntegrationWebhookOverridesOutputRequestHeadersValue");
41
41
  const LiteralOverride_1 = require("./LiteralOverride");
42
42
  const QueryOverride_1 = require("./QueryOverride");
43
+ const ResponseFilterMode_1 = require("./ResponseFilterMode");
43
44
  exports.ApiIntegrationWebhookOverridesOutput = core.serialization.object({
44
45
  pathParamsSchema: core.serialization.property("path_params_schema", core.serialization.record(core.serialization.string(), LiteralOverride_1.LiteralOverride.optional()).optional()),
45
46
  queryParamsSchema: core.serialization.property("query_params_schema", QueryOverride_1.QueryOverride.optional()),
@@ -47,4 +48,6 @@ exports.ApiIntegrationWebhookOverridesOutput = core.serialization.object({
47
48
  requestHeaders: core.serialization.property("request_headers", core.serialization
48
49
  .record(core.serialization.string(), ApiIntegrationWebhookOverridesOutputRequestHeadersValue_1.ApiIntegrationWebhookOverridesOutputRequestHeadersValue.optional())
49
50
  .optional()),
51
+ responseFilterMode: core.serialization.property("response_filter_mode", ResponseFilterMode_1.ResponseFilterMode.optional()),
52
+ responseFilters: core.serialization.property("response_filters", core.serialization.list(core.serialization.string()).optional()),
50
53
  });
@@ -12,6 +12,7 @@ export declare namespace ConversationHistoryTranscriptApiIntegrationWebhookTools
12
12
  tool_has_been_called: boolean;
13
13
  tool_latency_secs?: number | null;
14
14
  error_type?: string | null;
15
+ raw_error_message?: string | null;
15
16
  dynamic_variable_updates?: DynamicVariableUpdateCommonModel.Raw[] | null;
16
17
  type: "api_integration_webhook";
17
18
  integration_id: string;
@@ -45,6 +45,7 @@ exports.ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel
45
45
  toolHasBeenCalled: core.serialization.property("tool_has_been_called", core.serialization.boolean()),
46
46
  toolLatencySecs: core.serialization.property("tool_latency_secs", core.serialization.number().optional()),
47
47
  errorType: core.serialization.property("error_type", core.serialization.string().optional()),
48
+ rawErrorMessage: core.serialization.property("raw_error_message", core.serialization.string().optional()),
48
49
  dynamicVariableUpdates: core.serialization.property("dynamic_variable_updates", core.serialization.list(DynamicVariableUpdateCommonModel_1.DynamicVariableUpdateCommonModel).optional()),
49
50
  type: core.serialization.stringLiteral("api_integration_webhook"),
50
51
  integrationId: core.serialization.property("integration_id", core.serialization.string()),
@@ -13,6 +13,7 @@ export declare namespace ConversationHistoryTranscriptOtherToolsResultCommonMode
13
13
  tool_has_been_called: boolean;
14
14
  tool_latency_secs?: number | null;
15
15
  error_type?: string | null;
16
+ raw_error_message?: string | null;
16
17
  dynamic_variable_updates?: DynamicVariableUpdateCommonModel.Raw[] | null;
17
18
  type?: ConversationHistoryTranscriptOtherToolsResultCommonModelType.Raw | null;
18
19
  }
@@ -46,6 +46,7 @@ exports.ConversationHistoryTranscriptOtherToolsResultCommonModel = core.serializ
46
46
  toolHasBeenCalled: core.serialization.property("tool_has_been_called", core.serialization.boolean()),
47
47
  toolLatencySecs: core.serialization.property("tool_latency_secs", core.serialization.number().optional()),
48
48
  errorType: core.serialization.property("error_type", core.serialization.string().optional()),
49
+ rawErrorMessage: core.serialization.property("raw_error_message", core.serialization.string().optional()),
49
50
  dynamicVariableUpdates: core.serialization.property("dynamic_variable_updates", core.serialization.list(DynamicVariableUpdateCommonModel_1.DynamicVariableUpdateCommonModel).optional()),
50
51
  type: ConversationHistoryTranscriptOtherToolsResultCommonModelType_1.ConversationHistoryTranscriptOtherToolsResultCommonModelType.optional(),
51
52
  });
@@ -13,6 +13,7 @@ export declare namespace ConversationHistoryTranscriptSystemToolResultCommonMode
13
13
  tool_has_been_called: boolean;
14
14
  tool_latency_secs?: number | null;
15
15
  error_type?: string | null;
16
+ raw_error_message?: string | null;
16
17
  dynamic_variable_updates?: DynamicVariableUpdateCommonModel.Raw[] | null;
17
18
  type: "system";
18
19
  result?: ConversationHistoryTranscriptSystemToolResultCommonModelResult.Raw | null;
@@ -46,6 +46,7 @@ exports.ConversationHistoryTranscriptSystemToolResultCommonModel = core.serializ
46
46
  toolHasBeenCalled: core.serialization.property("tool_has_been_called", core.serialization.boolean()),
47
47
  toolLatencySecs: core.serialization.property("tool_latency_secs", core.serialization.number().optional()),
48
48
  errorType: core.serialization.property("error_type", core.serialization.string().optional()),
49
+ rawErrorMessage: core.serialization.property("raw_error_message", core.serialization.string().optional()),
49
50
  dynamicVariableUpdates: core.serialization.property("dynamic_variable_updates", core.serialization.list(DynamicVariableUpdateCommonModel_1.DynamicVariableUpdateCommonModel).optional()),
50
51
  type: core.serialization.stringLiteral("system"),
51
52
  result: ConversationHistoryTranscriptSystemToolResultCommonModelResult_1.ConversationHistoryTranscriptSystemToolResultCommonModelResult.optional(),
@@ -12,6 +12,7 @@ export declare namespace ConversationHistoryTranscriptWorkflowToolsResultCommonM
12
12
  tool_has_been_called: boolean;
13
13
  tool_latency_secs?: number | null;
14
14
  error_type?: string | null;
15
+ raw_error_message?: string | null;
15
16
  dynamic_variable_updates?: DynamicVariableUpdateCommonModel.Raw[] | null;
16
17
  type: "workflow";
17
18
  result?: serializers.WorkflowToolResponseModelInput.Raw | null;
@@ -46,6 +46,7 @@ exports.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput = core.
46
46
  toolHasBeenCalled: core.serialization.property("tool_has_been_called", core.serialization.boolean()),
47
47
  toolLatencySecs: core.serialization.property("tool_latency_secs", core.serialization.number().optional()),
48
48
  errorType: core.serialization.property("error_type", core.serialization.string().optional()),
49
+ rawErrorMessage: core.serialization.property("raw_error_message", core.serialization.string().optional()),
49
50
  dynamicVariableUpdates: core.serialization.property("dynamic_variable_updates", core.serialization.list(DynamicVariableUpdateCommonModel_1.DynamicVariableUpdateCommonModel).optional()),
50
51
  type: core.serialization.stringLiteral("workflow"),
51
52
  result: core.serialization.lazyObject(() => serializers.WorkflowToolResponseModelInput).optional(),
@@ -12,6 +12,7 @@ export declare namespace ConversationHistoryTranscriptWorkflowToolsResultCommonM
12
12
  tool_has_been_called: boolean;
13
13
  tool_latency_secs?: number | null;
14
14
  error_type?: string | null;
15
+ raw_error_message?: string | null;
15
16
  dynamic_variable_updates?: DynamicVariableUpdateCommonModel.Raw[] | null;
16
17
  type: "workflow";
17
18
  result?: serializers.WorkflowToolResponseModelOutput.Raw | null;
@@ -46,6 +46,7 @@ exports.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput = core
46
46
  toolHasBeenCalled: core.serialization.property("tool_has_been_called", core.serialization.boolean()),
47
47
  toolLatencySecs: core.serialization.property("tool_latency_secs", core.serialization.number().optional()),
48
48
  errorType: core.serialization.property("error_type", core.serialization.string().optional()),
49
+ rawErrorMessage: core.serialization.property("raw_error_message", core.serialization.string().optional()),
49
50
  dynamicVariableUpdates: core.serialization.property("dynamic_variable_updates", core.serialization.list(DynamicVariableUpdateCommonModel_1.DynamicVariableUpdateCommonModel).optional()),
50
51
  type: core.serialization.stringLiteral("workflow"),
51
52
  result: core.serialization.lazyObject(() => serializers.WorkflowToolResponseModelOutput).optional(),
@@ -6,5 +6,6 @@ export declare const ConversationTurnMetrics: core.serialization.ObjectSchema<se
6
6
  export declare namespace ConversationTurnMetrics {
7
7
  interface Raw {
8
8
  metrics?: Record<string, MetricRecord.Raw> | null;
9
+ convai_asr_provider?: string | null;
9
10
  }
10
11
  }
@@ -39,4 +39,5 @@ const core = __importStar(require("../../core"));
39
39
  const MetricRecord_1 = require("./MetricRecord");
40
40
  exports.ConversationTurnMetrics = core.serialization.object({
41
41
  metrics: core.serialization.record(core.serialization.string(), MetricRecord_1.MetricRecord).optional(),
42
+ convaiAsrProvider: core.serialization.property("convai_asr_provider", core.serialization.string().optional()),
42
43
  });
@@ -52,6 +52,7 @@ export declare namespace DirectPublishingReadResponseModel {
52
52
  payout_type?: DirectPublishingReadResponseModelPayoutType.Raw | null;
53
53
  list_price?: number | null;
54
54
  currency?: "usd" | null;
55
+ original_audio_project_export_id?: string | null;
55
56
  original_audio_document_id?: string | null;
56
57
  series_id?: string | null;
57
58
  volume?: number | null;
@@ -85,6 +85,7 @@ exports.DirectPublishingReadResponseModel = core.serialization.object({
85
85
  payoutType: core.serialization.property("payout_type", DirectPublishingReadResponseModelPayoutType_1.DirectPublishingReadResponseModelPayoutType.optional()),
86
86
  listPrice: core.serialization.property("list_price", core.serialization.number().optional()),
87
87
  currency: core.serialization.stringLiteral("usd").optional(),
88
+ originalAudioProjectExportId: core.serialization.property("original_audio_project_export_id", core.serialization.string().optional()),
88
89
  originalAudioDocumentId: core.serialization.property("original_audio_document_id", core.serialization.string().optional()),
89
90
  seriesId: core.serialization.property("series_id", core.serialization.string().optional()),
90
91
  volume: core.serialization.number().optional(),
@@ -16,6 +16,7 @@ export declare namespace GetUnitTestResponseModel {
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, GetUnitTestResponseModelDynamicVariablesValue.Raw | null | undefined> | null;
20
21
  type?: UnitTestCommonModelType.Raw | null;
21
22
  from_conversation_metadata?: TestFromConversationMetadataOutput.Raw | null;
@@ -49,6 +49,7 @@ exports.GetUnitTestResponseModel = 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(), GetUnitTestResponseModelDynamicVariablesValue_1.GetUnitTestResponseModelDynamicVariablesValue.optional())
54
55
  .optional()),
@@ -6,5 +6,7 @@ export declare const GetWorkspaceSecretsResponseModel: core.serialization.Object
6
6
  export declare namespace GetWorkspaceSecretsResponseModel {
7
7
  interface Raw {
8
8
  secrets: ConvAiWorkspaceStoredSecretConfig.Raw[];
9
+ next_cursor?: string | null;
10
+ has_more?: boolean | null;
9
11
  }
10
12
  }
@@ -39,4 +39,6 @@ const core = __importStar(require("../../core"));
39
39
  const ConvAiWorkspaceStoredSecretConfig_1 = require("./ConvAiWorkspaceStoredSecretConfig");
40
40
  exports.GetWorkspaceSecretsResponseModel = core.serialization.object({
41
41
  secrets: core.serialization.list(ConvAiWorkspaceStoredSecretConfig_1.ConvAiWorkspaceStoredSecretConfig),
42
+ nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
43
+ hasMore: core.serialization.property("has_more", core.serialization.boolean().optional()),
42
44
  });
@@ -1,11 +1,13 @@
1
1
  import type * as ElevenLabs from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { AlignmentGuardrail } from "./AlignmentGuardrail";
4
5
  import { ModerationGuardrailInput } from "./ModerationGuardrailInput";
5
6
  export declare const GuardrailsV1Input: core.serialization.ObjectSchema<serializers.GuardrailsV1Input.Raw, ElevenLabs.GuardrailsV1Input>;
6
7
  export declare namespace GuardrailsV1Input {
7
8
  interface Raw {
8
9
  version?: "1" | null;
10
+ alignment?: AlignmentGuardrail.Raw | null;
9
11
  moderation?: ModerationGuardrailInput.Raw | null;
10
12
  }
11
13
  }
@@ -36,8 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.GuardrailsV1Input = void 0;
38
38
  const core = __importStar(require("../../core"));
39
+ const AlignmentGuardrail_1 = require("./AlignmentGuardrail");
39
40
  const ModerationGuardrailInput_1 = require("./ModerationGuardrailInput");
40
41
  exports.GuardrailsV1Input = core.serialization.object({
41
42
  version: core.serialization.stringLiteral("1").optional(),
43
+ alignment: AlignmentGuardrail_1.AlignmentGuardrail.optional(),
42
44
  moderation: ModerationGuardrailInput_1.ModerationGuardrailInput.optional(),
43
45
  });
@@ -1,11 +1,13 @@
1
1
  import type * as ElevenLabs from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { AlignmentGuardrail } from "./AlignmentGuardrail";
4
5
  import { ModerationGuardrailOutput } from "./ModerationGuardrailOutput";
5
6
  export declare const GuardrailsV1Output: core.serialization.ObjectSchema<serializers.GuardrailsV1Output.Raw, ElevenLabs.GuardrailsV1Output>;
6
7
  export declare namespace GuardrailsV1Output {
7
8
  interface Raw {
8
9
  version?: "1" | null;
10
+ alignment?: AlignmentGuardrail.Raw | null;
9
11
  moderation?: ModerationGuardrailOutput.Raw | null;
10
12
  }
11
13
  }
@@ -36,8 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.GuardrailsV1Output = void 0;
38
38
  const core = __importStar(require("../../core"));
39
+ const AlignmentGuardrail_1 = require("./AlignmentGuardrail");
39
40
  const ModerationGuardrailOutput_1 = require("./ModerationGuardrailOutput");
40
41
  exports.GuardrailsV1Output = core.serialization.object({
41
42
  version: core.serialization.stringLiteral("1").optional(),
43
+ alignment: AlignmentGuardrail_1.AlignmentGuardrail.optional(),
42
44
  moderation: ModerationGuardrailOutput_1.ModerationGuardrailOutput.optional(),
43
45
  });
@@ -0,0 +1,7 @@
1
+ import type * as ElevenLabs from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const NonStreamingOutputFormats: core.serialization.Schema<serializers.NonStreamingOutputFormats.Raw, ElevenLabs.NonStreamingOutputFormats>;
5
+ export declare namespace NonStreamingOutputFormats {
6
+ type Raw = "wav_8000" | "wav_16000" | "wav_22050" | "wav_24000" | "wav_32000" | "wav_44100" | "wav_48000";
7
+ }
@@ -0,0 +1,47 @@
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.NonStreamingOutputFormats = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.NonStreamingOutputFormats = core.serialization.enum_([
40
+ "wav_8000",
41
+ "wav_16000",
42
+ "wav_22050",
43
+ "wav_24000",
44
+ "wav_32000",
45
+ "wav_44100",
46
+ "wav_48000",
47
+ ]);
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const PermissionType: core.serialization.Schema<serializers.PermissionType.Raw, ElevenLabs.PermissionType>;
5
5
  export declare namespace PermissionType {
6
- type Raw = "text_to_speech" | "speech_to_speech" | "speech_to_text" | "models_read" | "models_write" | "voices_read" | "voices_write" | "speech_history_read" | "speech_history_write" | "sound_generation" | "audio_isolation" | "voice_generation" | "dubbing_read" | "dubbing_write" | "pronunciation_dictionaries_read" | "pronunciation_dictionaries_write" | "user_read" | "user_write" | "projects_read" | "projects_write" | "audio_native_read" | "audio_native_write" | "workspace_read" | "workspace_write" | "forced_alignment" | "convai_read" | "convai_write" | "music_generation" | "add_voice_from_voice_library" | "create_instant_voice_clone" | "create_professional_voice_clone" | "publish_voice_to_voice_library" | "share_voice_externally" | "create_user_api_key" | "workspace_analytics_full_read";
6
+ type Raw = "text_to_speech" | "speech_to_speech" | "speech_to_text" | "models_read" | "models_write" | "voices_read" | "voices_write" | "speech_history_read" | "speech_history_write" | "sound_generation" | "audio_isolation" | "voice_generation" | "dubbing_read" | "dubbing_write" | "pronunciation_dictionaries_read" | "pronunciation_dictionaries_write" | "user_read" | "user_write" | "projects_read" | "projects_write" | "audio_native_read" | "audio_native_write" | "workspace_read" | "workspace_write" | "forced_alignment" | "convai_read" | "convai_write" | "music_generation" | "add_voice_from_voice_library" | "create_instant_voice_clone" | "create_professional_voice_clone" | "publish_voice_to_voice_library" | "share_voice_externally" | "create_user_api_key" | "workspace_analytics_full_read" | "webhooks_write" | "service_account_write" | "group_members_manage" | "workspace_members_invite" | "workspace_members_remove" | "terms_of_service_accept";
7
7
  }
@@ -72,4 +72,10 @@ exports.PermissionType = core.serialization.enum_([
72
72
  "share_voice_externally",
73
73
  "create_user_api_key",
74
74
  "workspace_analytics_full_read",
75
+ "webhooks_write",
76
+ "service_account_write",
77
+ "group_members_manage",
78
+ "workspace_members_invite",
79
+ "workspace_members_remove",
80
+ "terms_of_service_accept",
75
81
  ]);
@@ -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
+ export declare const ProcedureDraftRef: core.serialization.ObjectSchema<serializers.ProcedureDraftRef.Raw, ElevenLabs.ProcedureDraftRef>;
5
+ export declare namespace ProcedureDraftRef {
6
+ interface Raw {
7
+ procedure_id: string;
8
+ }
9
+ }
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.ImportWhatsAppAccountResponse = void 0;
37
+ exports.ProcedureDraftRef = void 0;
38
38
  const core = __importStar(require("../../core"));
39
- exports.ImportWhatsAppAccountResponse = core.serialization.object({
40
- phoneNumberId: core.serialization.property("phone_number_id", core.serialization.string()),
39
+ exports.ProcedureDraftRef = core.serialization.object({
40
+ procedureId: core.serialization.property("procedure_id", core.serialization.string()),
41
41
  });
@@ -0,0 +1,10 @@
1
+ import type * as ElevenLabs from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const ProcedureVersionRef: core.serialization.ObjectSchema<serializers.ProcedureVersionRef.Raw, ElevenLabs.ProcedureVersionRef>;
5
+ export declare namespace ProcedureVersionRef {
6
+ interface Raw {
7
+ procedure_id: string;
8
+ version_id: string;
9
+ }
10
+ }
@@ -34,10 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.ImportWhatsAppAccountRequest = void 0;
38
- const core = __importStar(require("../../../../../../../core"));
39
- exports.ImportWhatsAppAccountRequest = core.serialization.object({
40
- businessAccountId: core.serialization.property("business_account_id", core.serialization.string()),
41
- phoneNumberId: core.serialization.property("phone_number_id", core.serialization.string()),
42
- tokenCode: core.serialization.property("token_code", core.serialization.string()),
37
+ exports.ProcedureVersionRef = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.ProcedureVersionRef = core.serialization.object({
40
+ procedureId: core.serialization.property("procedure_id", core.serialization.string()),
41
+ versionId: core.serialization.property("version_id", core.serialization.string()),
43
42
  });
@@ -0,0 +1,7 @@
1
+ import type * as ElevenLabs from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const ResponseFilterMode: core.serialization.Schema<serializers.ResponseFilterMode.Raw, ElevenLabs.ResponseFilterMode>;
5
+ export declare namespace ResponseFilterMode {
6
+ type Raw = "all" | "allow";
7
+ }